mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
feat: 新增群员统计与退群事件,并把本地索引集中到设置页
- 群员统计:档案中按群统计发言排行与未发言成员,可复制纯文本、按平台能力发送 - 退群事件永久保存,并以本地推断条目并入档案消息流 - 设置新增本地索引页,集中管理聊天记录索引与图片文字索引
This commit is contained in:
1 parent
b6d287a299
commit
766cd94788
44 files changed
+3949
-24
No files matched your search
@@ -0,0 +1,80 @@
|
||||
import type { GroupExitMonitorEvent } from './group-exit-monitor'
|
||||
import type { Message } from './types'
|
||||
|
||||
/**
|
||||
* 退群事件在档案消息流里的标记类型。
|
||||
*
|
||||
* 复用它自己的 `type` 值而不是靠 `from === 'system'` 判断,是因为**真实微信也会发系统消息**
|
||||
* (入群通知、撤回提示等)。两者都走系统消息的分支渲染,但必须能被区分出来 ——
|
||||
* 退群事件是**本地推断的产物**,不是微信的原话,展示上不能让人误以为是。
|
||||
*/
|
||||
export const GROUP_EXIT_EVENT_MESSAGE_TYPE = 'group-exit-event'
|
||||
|
||||
/** 这条档案消息是不是退群推断事件。 */
|
||||
export function isGroupExitEventMessage(message: Message): boolean {
|
||||
return message.type === GROUP_EXIT_EVENT_MESSAGE_TYPE
|
||||
}
|
||||
|
||||
const pad2 = (value: number): string => String(value).padStart(2, '0')
|
||||
|
||||
/** 本地时区的 `YYYY-MM-DD HH:mm`。 */
|
||||
function formatLocalDateTime(epochMs: number): string {
|
||||
const date = new Date(epochMs)
|
||||
if (Number.isNaN(date.getTime())) return ''
|
||||
return (
|
||||
`${date.getFullYear()}-${pad2(date.getMonth() + 1)}-${pad2(date.getDate())} ` +
|
||||
`${pad2(date.getHours())}:${pad2(date.getMinutes())}`
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 把一个退群事件映射成档案里的消息条目。
|
||||
*
|
||||
* ⚠️ **单位陷阱**:`Message.createTime` 全项目都是 **epoch 秒**
|
||||
* (见 `messageGrouping.getMessageTime`:`new Date(timestamp * 1000)`),
|
||||
* 而事件的 `detectedAt` 是 **epoch 毫秒**。这里必须 `/1000`,
|
||||
* 否则事件会被排到 55000 年之后,或者干脆从时间轴上消失。
|
||||
*/
|
||||
export function toGroupExitEventMessage(event: GroupExitMonitorEvent): Message {
|
||||
const detectedAtMs = Number(event.detectedAt) || 0
|
||||
return {
|
||||
id: `group-exit:${event.id}`,
|
||||
from: 'system',
|
||||
type: GROUP_EXIT_EVENT_MESSAGE_TYPE,
|
||||
datetime: formatLocalDateTime(detectedAtMs),
|
||||
// 文本用事件自带的渲染结果(含"退群时间"等模板字段),不再二次拼接。
|
||||
content: event.message,
|
||||
isSender: false,
|
||||
senderId: event.memberWxid,
|
||||
name: event.memberName,
|
||||
createTime: Math.floor(detectedAtMs / 1000),
|
||||
sessionId: event.roomId
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 把退群事件合并进档案消息流,按时间升序排列(与 `MessageList` 的预期一致)。
|
||||
*
|
||||
* 已存在的同 id 消息不重复插入,所以重复调用是幂等的 ——
|
||||
* `getState` 会随着广播反复刷新,没有这层去重就会越插越多。
|
||||
*/
|
||||
export function mergeGroupExitEvents(
|
||||
messages: Message[],
|
||||
events: GroupExitMonitorEvent[]
|
||||
): Message[] {
|
||||
const existingIds = new Set(messages.map((message) => message.id))
|
||||
const extra = events
|
||||
.map(toGroupExitEventMessage)
|
||||
.filter((message) => !existingIds.has(message.id))
|
||||
if (!extra.length) return messages
|
||||
|
||||
const combined = [...messages, ...extra]
|
||||
combined.sort((a, b) => {
|
||||
const left = Number(a.createTime) || 0
|
||||
const right = Number(b.createTime) || 0
|
||||
if (left !== right) return left - right
|
||||
// 同一秒内保持输入顺序稳定,避免每次渲染都抖动。
|
||||
return 0
|
||||
})
|
||||
return combined
|
||||
}
|
||||
@@ -173,7 +173,10 @@ export function buildMemberLeftNotification(
|
||||
}
|
||||
|
||||
export interface GroupExitMonitorState {
|
||||
/** 最近一批事件(一次回报最多带回这么多条,避免把整部历史推过 IPC)。 */
|
||||
events: GroupExitMonitorEvent[]
|
||||
/** 永久保留的事件总数;`events` 只是其中最近的若干条。 */
|
||||
totalEventCount?: number
|
||||
enabled: boolean
|
||||
running: boolean
|
||||
nativeMonitorActive: boolean
|
||||
|
||||
@@ -0,0 +1,259 @@
|
||||
/**
|
||||
* 群员统计的跨层契约与文本渲染。
|
||||
*
|
||||
* 放在 `shared` 的理由:renderer 需要结果类型做展示、需要 formatter 生成「复制」内容,
|
||||
* 而 formatter 是**纯函数**(不依赖 Electron / Node),正好符合 shared 的约束 ——
|
||||
* 业务文本绝不能由 React 组件拼接,否则复制出来的内容和界面上看到的会各说各话。
|
||||
*/
|
||||
|
||||
/** 窗口内有发言的成员。 */
|
||||
export interface GroupMemberStatsActiveMember {
|
||||
senderId: string
|
||||
/** 主显示名(微信昵称优先,与项目既有优先级一致)。 */
|
||||
displayName: string
|
||||
/**
|
||||
* 群昵称(这个人在本群里显示的名字)。
|
||||
*
|
||||
* 与 `displayName` 相同或为空时不展示 —— 同一个人在不同群里叫不同名字,
|
||||
* 只给一个名字会让人对不上号,但两个名字一样时重复展示又是噪声。
|
||||
*/
|
||||
groupNickname: string
|
||||
messageCount: number
|
||||
/** 该成员在窗口内最后一条消息的时间,Unix epoch 毫秒。 */
|
||||
lastMessageTime: number
|
||||
}
|
||||
|
||||
/** 窗口内没有发言记录的**当前**群成员。 */
|
||||
export interface GroupMemberStatsSilentMember {
|
||||
senderId: string
|
||||
displayName: string
|
||||
groupNickname: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 派生索引相对源数据的新鲜度。
|
||||
*
|
||||
* - `fresh` 索引已追到源数据最新,结果可以当作完整结论
|
||||
* - `stale` 索引落后于源数据,结果**必须**标注为可能不完整
|
||||
* - `unknown` 口径缺失(例如源侧无缓存),无法判定,同样不得当作完整结论
|
||||
*/
|
||||
export type GroupStatsFreshness = 'fresh' | 'stale' | 'unknown'
|
||||
|
||||
/**
|
||||
* 群员统计查询请求(IPC 契约)。
|
||||
*
|
||||
* 时间用 epoch **毫秒**:这一路完全走 Knowledge,而 Knowledge 的内部口径就是毫秒。
|
||||
* 不沿用聊天消息的秒级口径,是为了让 service 内部不存在秒/毫秒跨边界 ——
|
||||
* 单位换错是**静默读到 0 条**,不会抛错。
|
||||
*/
|
||||
export interface GroupMemberStatsQuery {
|
||||
/** 群会话 md5(= `md5(username)`),与 `getGroupSnapshot(userMd5)` 同口径。 */
|
||||
userMd5: string
|
||||
/** 统计窗口起(含),Unix epoch 毫秒。 */
|
||||
startTime: number
|
||||
/** 统计窗口止(含),Unix epoch 毫秒。 */
|
||||
endTime: number
|
||||
}
|
||||
|
||||
export interface GroupMemberStatsResult {
|
||||
conversationId: string
|
||||
/** 统计窗口起(含),Unix epoch 毫秒。 */
|
||||
startTime: number
|
||||
/** 统计窗口止(含),Unix epoch 毫秒。 */
|
||||
endTime: number
|
||||
freshness: GroupStatsFreshness
|
||||
/**
|
||||
* 是否可作为完整结论使用。
|
||||
*
|
||||
* **只有 `freshness === 'fresh'` 时才为 true。** 界面不得把 stale 的「未发言」
|
||||
* 名单包装成完整结论 —— 那是会把实际发过言的人挂到群里的错误否定。
|
||||
*/
|
||||
complete: boolean
|
||||
/** 当前群成员总数。 */
|
||||
memberCount: number
|
||||
activeMemberCount: number
|
||||
silentMemberCount: number
|
||||
/** 按 `messageCount` 降序;同数按最后发言时间降序。 */
|
||||
activeMembers: GroupMemberStatsActiveMember[]
|
||||
/** 按显示名排序,便于人眼核对。 */
|
||||
silentMembers: GroupMemberStatsSilentMember[]
|
||||
/**
|
||||
* 窗口内 `sender_id` 缺失、无法归属任何成员的消息数。
|
||||
*
|
||||
* 只用于诊断,不计入任何成员的条数 —— 硬塞给某个人会制造假的「有发言」。
|
||||
*/
|
||||
unattributedMessages: number
|
||||
/** 窗口内被排除的系统消息数(微信侧 10000 / 10002 等)。 */
|
||||
excludedSystemMessages: number
|
||||
/**
|
||||
* 窗口内**最早一条消息**的时间(epoch ms);null 表示窗口内没有消息。
|
||||
*
|
||||
* 选「全部」时用它显示真实起点 ——「本机这个群第一条消息是 2020-02-02」,
|
||||
* 比「全部历史」这种含糊说法有用得多。
|
||||
*/
|
||||
firstMessageTime: number | null
|
||||
/** 必须展示给用户的边界说明;为空表示无需额外声明。 */
|
||||
limitations: string[]
|
||||
}
|
||||
|
||||
/** 未发言统计必须附带的边界说明(**不要删掉这个含义**)。 */
|
||||
export const GROUP_STATS_LIMITATION =
|
||||
'统计基于当前群成员名单与本地已归档消息。窗口期前入群、统计期间退群或加入的成员,以及未归档时段,可能影响结果,仅供参考。'
|
||||
|
||||
/** 索引未追平时必须展示的额外说明。 */
|
||||
export const GROUP_STATS_STALE_LIMITATION =
|
||||
'本地索引尚未完全同步,以下结果可能不完整。'
|
||||
|
||||
/** 统计时间范围的快捷选项。 */
|
||||
export type GroupStatsRangeKey = '7d' | '30d' | '90d' | 'all' | 'custom'
|
||||
|
||||
export const GROUP_STATS_RANGE_OPTIONS: Array<{ key: GroupStatsRangeKey; label: string }> = [
|
||||
{ key: '7d', label: '近 7 天' },
|
||||
{ key: '30d', label: '近 30 天' },
|
||||
{ key: '90d', label: '近 90 天' },
|
||||
{ key: 'all', label: '全部' },
|
||||
{ key: 'custom', label: '自定义' }
|
||||
]
|
||||
|
||||
const RANGE_DAYS: Record<'7d' | '30d' | '90d', number> = {
|
||||
'7d': 7,
|
||||
'30d': 30,
|
||||
'90d': 90
|
||||
}
|
||||
|
||||
/**
|
||||
* 由「结束时刻 + 快捷范围」推出起点(epoch ms)。
|
||||
*
|
||||
* 用固定 24h 天数而不是日历日:用户要的是「最近 30 天」这种滑动窗口,
|
||||
* 日历日会随月份长度漂移,滑窗不会。
|
||||
*
|
||||
* `all` 返回 0(Unix epoch 起点)—— 语义是「不放下界」,覆盖全部已归档历史。
|
||||
*/
|
||||
export function resolveGroupStatsRangeStart(
|
||||
key: Exclude<GroupStatsRangeKey, 'custom'>,
|
||||
endTime: number
|
||||
): number {
|
||||
if (key === 'all') return 0
|
||||
return endTime - RANGE_DAYS[key] * 24 * 60 * 60 * 1000
|
||||
}
|
||||
|
||||
const DIVIDER = '--------------------'
|
||||
|
||||
/**
|
||||
* 名单一行里的名字:`主名(群昵称)`。
|
||||
*
|
||||
* 同一个人在微信里和在这个群里可能叫两个名字,只给一个会让人对不上号;
|
||||
* 但两者相同时重复展示又是纯噪声,所以只在**真的不同**时才加括号。
|
||||
*/
|
||||
export function formatMemberLineName(member: {
|
||||
displayName: string
|
||||
groupNickname: string
|
||||
}): string {
|
||||
if (member.groupNickname && member.groupNickname !== member.displayName) {
|
||||
return `${member.displayName}(${member.groupNickname})`
|
||||
}
|
||||
return member.displayName
|
||||
}
|
||||
|
||||
const pad2 = (value: number): string => String(value).padStart(2, '0')
|
||||
|
||||
/** 本地时区的 `YYYY-MM-DD`。 */
|
||||
export function formatStatsDate(epochMs: number): string {
|
||||
const date = new Date(epochMs)
|
||||
if (Number.isNaN(date.getTime())) return ''
|
||||
return `${date.getFullYear()}-${pad2(date.getMonth() + 1)}-${pad2(date.getDate())}`
|
||||
}
|
||||
|
||||
/** 本地时区的 `YYYY-MM-DD HH:mm`。 */
|
||||
export function formatStatsDateTime(epochMs: number): string {
|
||||
const date = new Date(epochMs)
|
||||
if (Number.isNaN(date.getTime())) return ''
|
||||
return `${formatStatsDate(epochMs)} ${pad2(date.getHours())}:${pad2(date.getMinutes())}`
|
||||
}
|
||||
|
||||
/**
|
||||
* 区间的人类可读文案。
|
||||
*
|
||||
* 选「全部」时 `startTime === 0`(不放下界),此时用 `firstMessageTime`
|
||||
* 显示**本机这个群第一条消息**的真实日期 ——「2020-02-02 至 2026-09-20」比
|
||||
* 「全部历史」有用得多。两者都拿不到时才退化成「全部历史」,
|
||||
* 且绝不格式化成 1970-01-01 假装统计真的从那儿开始。
|
||||
*/
|
||||
const rangeLabel = (
|
||||
result: Pick<GroupMemberStatsResult, 'startTime' | 'endTime' | 'firstMessageTime'>
|
||||
): string => {
|
||||
const start = result.startTime > 0 ? result.startTime : result.firstMessageTime
|
||||
if (start && start > 0) {
|
||||
return `${formatStatsDate(start)} 至 ${formatStatsDate(result.endTime)}`
|
||||
}
|
||||
return `全部历史(至 ${formatStatsDate(result.endTime)})`
|
||||
}
|
||||
|
||||
/**
|
||||
* 未发言名单的纯文本模板。
|
||||
*
|
||||
* 刻意使用纯文本而非 Markdown:这段文本的归宿是聊天窗口,任何富文本标记
|
||||
* 在微信里都会变成裸露的符号。
|
||||
*/
|
||||
export function formatSilentMemberStats(
|
||||
result: GroupMemberStatsResult,
|
||||
options: { limit?: number } = {}
|
||||
): string {
|
||||
const limit = options.limit && options.limit > 0 ? options.limit : result.silentMembers.length
|
||||
const listed = result.silentMembers.slice(0, limit)
|
||||
|
||||
const lines = [
|
||||
'未发言统计',
|
||||
`以下当前群成员在 ${rangeLabel(result)} 的本地已归档消息中无发言记录`,
|
||||
DIVIDER
|
||||
]
|
||||
|
||||
if (listed.length === 0) {
|
||||
lines.push('(无)')
|
||||
} else {
|
||||
listed.forEach((member, index) => {
|
||||
lines.push(`${index + 1}. ${formatMemberLineName(member)}`)
|
||||
})
|
||||
if (listed.length < result.silentMembers.length) {
|
||||
lines.push(`… 其余 ${result.silentMembers.length - listed.length} 人未列出`)
|
||||
}
|
||||
}
|
||||
|
||||
const notes = [...result.limitations]
|
||||
if (notes.length) {
|
||||
lines.push('', `注:${notes.join(' ')}`)
|
||||
}
|
||||
return lines.join('\n')
|
||||
}
|
||||
|
||||
/** 活跃榜的纯文本模板。 */
|
||||
export function formatActiveMemberStats(
|
||||
result: GroupMemberStatsResult,
|
||||
options: { limit?: number } = {}
|
||||
): string {
|
||||
const limit = options.limit && options.limit > 0 ? options.limit : result.activeMembers.length
|
||||
const listed = result.activeMembers.slice(0, limit)
|
||||
|
||||
const lines = [
|
||||
'群聊活跃统计',
|
||||
`统计时间:${rangeLabel(result)}`,
|
||||
DIVIDER
|
||||
]
|
||||
|
||||
if (listed.length === 0) {
|
||||
lines.push('(无)')
|
||||
} else {
|
||||
listed.forEach((member, index) => {
|
||||
lines.push(`${index + 1}. ${formatMemberLineName(member)} ${member.messageCount} 条`)
|
||||
})
|
||||
if (listed.length < result.activeMembers.length) {
|
||||
lines.push(`… 其余 ${result.activeMembers.length - listed.length} 人未列出`)
|
||||
}
|
||||
}
|
||||
|
||||
const notes = [...result.limitations]
|
||||
if (notes.length) {
|
||||
lines.push('', `注:${notes.join(' ')}`)
|
||||
}
|
||||
return lines.join('\n')
|
||||
}
|
||||
@@ -878,3 +878,48 @@ export interface ImageTextIndexStatus {
|
||||
/** 各阶段耗时画像(可选的附加诊断字段,UI 不渲染)。 */
|
||||
stageTimings?: ImageTextIndexStageTimings
|
||||
}
|
||||
|
||||
/**
|
||||
* 图片索引的状态文案。
|
||||
*
|
||||
* **两处 UI 共用**(问问微信侧栏卡片 / 设置页宽版卡片)—— 各写一份必然会分叉,
|
||||
* 而这段文案里有几条不能丢的语义:
|
||||
* - 「已建立」不能等于「全失败」(`coverageState === 'failed'` 必须叫异常);
|
||||
* - 「取消」不等于「部分完成」(进度保留,但被打断过这件事要说出来);
|
||||
* - 未完成时进度封顶 99.9%(`imageTextProcessedPercent` 保证),不允许显示成 100%。
|
||||
*
|
||||
* 参数用宽松类型而不是具体 interface:调用方两边的局部状态形状不同(侧栏卡片多几个
|
||||
* 派生布尔值),传具体类型会逼着两边先做一次无用适配。
|
||||
*/
|
||||
export function imageTextStateLabel(input: {
|
||||
progressState?: string
|
||||
running: boolean
|
||||
paused: boolean
|
||||
established: boolean
|
||||
coverageState: string
|
||||
percent: number
|
||||
}): string {
|
||||
if (input.progressState === 'error') return '建立失败'
|
||||
if (input.running) return `建立中 · ${input.percent}%`
|
||||
if (input.paused) return `已暂停 · ${input.percent}%`
|
||||
if (input.progressState === 'cancelled') return `已取消 · ${input.percent}%`
|
||||
if (!input.established) return '未建立'
|
||||
if (input.coverageState === 'failed') return '图片文字索引异常'
|
||||
if (input.coverageState === 'complete') return '已完成'
|
||||
return `部分完成 · ${input.percent}%`
|
||||
}
|
||||
|
||||
/** 状态徽章色调(两处 UI 共用同一套映射)。 */
|
||||
export function imageTextStateTone(input: {
|
||||
progressState?: string
|
||||
running: boolean
|
||||
paused: boolean
|
||||
established: boolean
|
||||
coverageState: string
|
||||
}): 'ok' | 'warn' | 'error' | 'idle' {
|
||||
if (input.progressState === 'error' || input.coverageState === 'failed') return 'error'
|
||||
if (!input.established) return 'idle'
|
||||
if (input.running || input.paused || input.progressState === 'cancelled') return 'warn'
|
||||
if (input.coverageState === 'complete') return 'ok'
|
||||
return 'warn'
|
||||
}
|
||||
+68
-1
@@ -491,6 +491,62 @@ export interface KnowledgeStatusRequest {
|
||||
fts: KnowledgeFtsConfig
|
||||
}
|
||||
|
||||
/**
|
||||
* 单个会话内的「按发送者聚合」统计请求。
|
||||
*
|
||||
* 存在的理由:群员统计(谁说话了、说了多少条、谁一个字没说)只需要
|
||||
* `GROUP BY sender_id` 的聚合结果,**不需要**把消息逐条搬到主进程再算。
|
||||
*
|
||||
* 刻意不做成 `KnowledgeQuery` 的一个分支:检索是「找内容」,这里是「数人头」,
|
||||
* 两者的谓词与返回形状没有交集,塞在一起会让两端都长出用不到的条件分支。
|
||||
*/
|
||||
export interface KnowledgeMemberStatsRequest {
|
||||
accountId: string
|
||||
databaseRoot: string
|
||||
fts: KnowledgeFtsConfig
|
||||
/** 会话 md5(= `md5(username)`),不是原始 `@chatroom`。 */
|
||||
conversationId: string
|
||||
/** Unix epoch **毫秒**,闭区间。与 knowledge 内部口径一致,不经过 WCDB 的秒级边界。 */
|
||||
startTime: number
|
||||
/** Unix epoch **毫秒**,闭区间。 */
|
||||
endTime: number
|
||||
}
|
||||
|
||||
/** 单个发送者在指定会话 / 时间窗内的发言聚合。 */
|
||||
export interface KnowledgeMemberStatRow {
|
||||
senderId: string
|
||||
messageCount: number
|
||||
/** 该发送者在窗口内最后一条消息的时间(epoch ms)。 */
|
||||
lastMessageTime: number
|
||||
}
|
||||
|
||||
export interface KnowledgeMemberStatsResult {
|
||||
conversationId: string
|
||||
/** 窗口内、排除系统消息之后的总消息数(**含**未归属消息)。 */
|
||||
totalMessages: number
|
||||
/** 按 `messageCount` 降序。 */
|
||||
senders: KnowledgeMemberStatRow[]
|
||||
/**
|
||||
* 窗口内 `sender_id` 缺失的消息数。
|
||||
*
|
||||
* 这些消息**不得归属任何成员**:把它们硬塞给某个人,会让「未发言」名单出现
|
||||
* 错误否定,而这份名单是会被发到群里的。
|
||||
*/
|
||||
unattributedMessages: number
|
||||
/** 窗口内被 `kind = 'system'` 排除的消息数。 */
|
||||
excludedSystemMessages: number
|
||||
/**
|
||||
* 窗口内**最早一条消息**的时间(epoch ms),**不过滤 kind**。
|
||||
*
|
||||
* 用途:选「全部」时向用户显示真实的数据起点(「本机这个群第一条消息是什么时候」),
|
||||
* 而不是含糊的「全部历史」。刻意不过滤系统消息 —— 群的第一条往往就是建群通知,
|
||||
* 那才是用户认知里的「第一条」。
|
||||
*/
|
||||
earliestMessageTime: number | null
|
||||
/** 派生索引里最新一条消息的时间(epoch ms);null 表示无法判定。 */
|
||||
indexLatestAt: number | null
|
||||
}
|
||||
|
||||
/**
|
||||
* 索引「已覆盖到的源数据时间」与源数据「当前最新活跃时间」之间允许的固定落差。
|
||||
*
|
||||
@@ -515,7 +571,16 @@ export function isKnowledgeFresh(
|
||||
|
||||
export interface KnowledgeWorkerRequest {
|
||||
version: 1
|
||||
type: 'index' | 'preflight' | 'search' | 'status' | 'remove' | 'cancel' | 'close' | 'highWater'
|
||||
type:
|
||||
| 'index'
|
||||
| 'preflight'
|
||||
| 'search'
|
||||
| 'status'
|
||||
| 'remove'
|
||||
| 'cancel'
|
||||
| 'close'
|
||||
| 'highWater'
|
||||
| 'memberStats'
|
||||
requestId: string
|
||||
/** Parent monotonic wall-clock used only for transport timing. */
|
||||
sentAt?: number
|
||||
@@ -524,6 +589,7 @@ export interface KnowledgeWorkerRequest {
|
||||
| KnowledgeCapacityPreflightRequest
|
||||
| KnowledgeSearchRequest
|
||||
| KnowledgeStatusRequest
|
||||
| KnowledgeMemberStatsRequest
|
||||
| { accountId: string; databaseRoot: string }
|
||||
| { targetRequestId: string }
|
||||
| Record<string, never>
|
||||
@@ -539,6 +605,7 @@ export interface KnowledgeWorkerResponse {
|
||||
| KnowledgeCapacityPreflight
|
||||
| KnowledgeSearchResult
|
||||
| KnowledgeRuntimeStatus
|
||||
| KnowledgeMemberStatsResult
|
||||
| { removed: true }
|
||||
error?: string
|
||||
transport?: {
|
||||
|
||||
Reference in new issue
Block a user