dsh-rhine-lab-team 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.js CHANGED
@@ -739,7 +739,7 @@ window.__ModuleLoader__.load({
739
739
  const MEMBERS_TAB_ID = 'dsh-team/members'
740
740
 
741
741
  /** 每次改客户端都改这个戳,用来判断页面拿到的是不是新 bundle。 */
742
- const BUILD_STAMP = 'a15'
742
+ const BUILD_STAMP = 'a16'
743
743
 
744
744
  /**
745
745
  * 把「子会话 → Bot」的映射发布给 dsh-avatar-frame:
@@ -770,9 +770,30 @@ let lastIdentityRaw = null
770
770
  async function publishTeamIdentity(force = false) {
771
771
  try {
772
772
  // 账本全量:每个子会话都能对上 Bot(不只每个 Bot 的最近一次)。
773
- const response = await fetch('/dsh-team/identity-map')
774
- const data = await response.json()
775
- const map = data?.map ?? {}
773
+ // 映射现拼自 tasks + roster,identity-map 只作为补充:那条路由曾经因为
774
+ // 重载时漏撤而由旧实例一直供着,数据停在重载那一刻,新会话全漏。
775
+ const [identity, list, roster] = await Promise.all([
776
+ fetch('/dsh-team/identity-map').then((response) => (response.ok ? response.json() : null)).catch(() => null),
777
+ fetch('/dsh-team/tasks').then((response) => (response.ok ? response.json() : null)).catch(() => null),
778
+ fetch('/dsh-team/roster').then((response) => (response.ok ? response.json() : null)).catch(() => null),
779
+ ])
780
+ const map = { ...(identity?.map ?? {}) }
781
+ const names = new Map()
782
+ for (const member of roster?.members ?? []) {
783
+ if (member?.id) names.set(String(member.id), member.name ?? member.id)
784
+ }
785
+ for (const task of list?.tasks ?? []) {
786
+ const sessionId = String(task?.sessionId ?? '').trim()
787
+ const bot = String(task?.bot ?? '').trim()
788
+ if (sessionId === '' || bot === '') continue
789
+ map[sessionId] = {
790
+ id: bot,
791
+ name: names.get(bot) ?? bot,
792
+ src: `/dsh-team/avatar?bot=${encodeURIComponent(bot)}&v=3`,
793
+ onOpen: true,
794
+ speech: false,
795
+ }
796
+ }
776
797
  const raw = JSON.stringify(map)
777
798
  if (!force && raw === lastIdentityRaw) return
778
799
  lastIdentityRaw = raw
package/docs/RELEASE.md CHANGED
@@ -41,7 +41,8 @@ dsh plugin add <包名或本地路径>
41
41
 
42
42
  ## 版本
43
43
 
44
- - `0.5.4`(当前):任务依赖图(验收门、整链超时/取消、重启恢复)、强制审查链、成员信箱、窄版工作区、P1 三项、第 7 步文档;修复监考提醒被当成任务结果、晋升感言串段、窄面板名字截断。
44
+ - `0.5.5`(当前):修两处状态错位。①「待命」误判:成员卡原先只认账本里的 `running` 行,派活那次工具调用一旦被打断(用户在派活途中插话),账本被记成 `ready`,子会话却还在后台跑——面板显示「待命」、看门狗关机、干完也没有任何回报。现在成员繁忙状态同时看会话实际运行态(新增 `host/live-watch.js` 订阅子会话 `agent/status`);派活被打断时不再收 `ready`,任务保留 `running` 并标 `detached`,由后台接力每 3 秒查子会话是否真说完,拿到答复再收尾并广播 `task-done`。②热重载后新子会话头像回落主会话:`team-mode.js` 的 `dispose()` 漏撤 `identity-map` 与 `session-bot` 两条 exact 路由,重载时新实例撞 `duplicate exact route` 注册失败,`/dsh-team/identity-map` 一直由已卸载的旧实例供数、数据冻结在重载那一刻。现已补进撤单清单;客户端身份映射改为并行拉 `tasks`/`roster` 现拼,不再单依赖 `identity-map`。另:`host/runtime.js` 的 `tools.js`/`team-mode.js` 改成带版本参数的动态 import,翻开关即可热加载。
45
+ - `0.5.4`:任务依赖图(验收门、整链超时/取消、重启恢复)、强制审查链、成员信箱、窄版工作区、P1 三项、第 7 步文档;修复监考提醒被当成任务结果、晋升感言串段、窄面板名字截断。
45
46
  - `0.5.3`:团队设置面板三处 —— 称谓框不再被限定成数字;「超时」改名「单任务最长运行(秒)」,卡住提醒的三个参数收进设置不再摆在面板上;新建组面板里还没建组时,导出/导入先提示「请先创建组」。交付目录说明更正为文档目录。
46
47
  - `0.5.2`:0.5.1 的数据迁移清单补上 `.team-work/`(单聊与任务的工作目录)。用户自建的 Bot、分组、设置、知识库、账本全部随数据目录走,升级不再丢。
47
48
  - `0.5.1`:**运行期数据搬出包目录**(`$DSH_HOME/rhine-lab-team`,可用 `DSH_TEAM_HOME` 覆盖;包目录里的旧数据(bots/、.state/、.team-work/、.debug/)启动时自动搬一次)。0.5.0 升级曾把用户自建的 Bot 连带记忆一起抹掉,这一版修掉了。
@@ -51,4 +52,4 @@ dsh plugin add <包名或本地路径>
51
52
  - `0.2.0`:任务详情与重试、成本统计、能力卡与团队记忆编辑、Bot 交接、系统通知、模板、近实时刷新。
52
53
  - `0.1.0`:派活、验收、产物收集、记忆快照、名册与面板。
53
54
 
54
- `package.json` 现在是 `0.5.4`。发的时候跑一遍上面的检查。
55
+ `package.json` 现在是 `0.5.5`。发的时候跑一遍上面的检查。
@@ -0,0 +1,93 @@
1
+ /**
2
+ * 子会话「现在是不是在干活」的实时登记。
3
+ *
4
+ * 为什么单独一张表:账本(tasks)里的状态是派活那次工具调用写下来的,
5
+ * 一旦派活调用被中止(秘书正等结果时用户插话),账本会被提前收成 ready,
6
+ * 但子会话其实还在后台跑——面板于是显示「待命」,看门狗也跟着关了。
7
+ * 这里只认子会话自己发出来的 `agent/status`,与账本无关,面板以它为准。
8
+ */
9
+
10
+ /** sessionId -> { state, botId, at } */
11
+ const states = new Map()
12
+
13
+ /**
14
+ * 超过这个时间没再报过状态的登记,一律当成失效。
15
+ *
16
+ * 子会话正常会发 `idle`;真崩了可能一个字都不发,那就得靠时间兜底,
17
+ * 否则一个死会话能把 Bot 永久钉在「繁忙」上——跟原来那个「待命」是同一类错。
18
+ * 四小时与后台接力的放弃期限对齐。
19
+ */
20
+ const STALE_MS = 4 * 60 * 60 * 1000
21
+
22
+ /** 这条登记还作不作数。 */
23
+ function fresh(row) {
24
+ return Date.now() - (row?.at ?? 0) <= STALE_MS
25
+ }
26
+
27
+ /**
28
+ * 记一次子会话状态。
29
+ * @param sessionId - 子会话 id。
30
+ * @param state - `agent/status` 给的值(idle / running / …)。
31
+ * @param botId - 这个子会话属于哪个 Bot。
32
+ */
33
+ export function noteChildState(sessionId, state, botId) {
34
+ const id = String(sessionId ?? '').trim()
35
+ if (id === '') return
36
+ states.set(id, {
37
+ state: String(state ?? '').trim(),
38
+ botId: botId ? String(botId) : null,
39
+ at: Date.now(),
40
+ })
41
+ }
42
+
43
+ /**
44
+ * 忘掉一个子会话(会话被删 / 任务收了)。
45
+ * @param sessionId - 子会话 id。
46
+ */
47
+ export function forgetChild(sessionId) {
48
+ states.delete(String(sessionId ?? ''))
49
+ }
50
+
51
+ /**
52
+ * 现在正在干活的 Bot。
53
+ * @returns Bot id 的集合;`idle` 之外的任何状态都算在干活。
54
+ */
55
+ export function runningBots() {
56
+ const out = new Set()
57
+ for (const row of states.values()) {
58
+ if (!fresh(row)) continue
59
+ if (row.botId && row.state !== '' && row.state !== 'idle') out.add(row.botId)
60
+ }
61
+ return out
62
+ }
63
+
64
+ /**
65
+ * 一个子会话当前的状态。
66
+ * @param sessionId - 子会话 id。
67
+ * @returns 状态字符串;没登记过就是空串。
68
+ */
69
+ export function childStateOf(sessionId) {
70
+ const row = states.get(String(sessionId ?? ''))
71
+ return row && fresh(row) ? row.state : ''
72
+ }
73
+
74
+ /**
75
+ * 某个 Bot 名下正在跑的会话。
76
+ * @param botId - Bot id。
77
+ * @returns 会话 id 数组。
78
+ */
79
+ export function runningSessions(botId) {
80
+ const out = []
81
+ for (const [id, row] of states) {
82
+ if (!fresh(row)) continue
83
+ if (row.botId === botId && row.state !== '' && row.state !== 'idle') out.push(id)
84
+ }
85
+ return out
86
+ }
87
+
88
+ /**
89
+ * 清空登记。只给测试用——撑起现场再演练,别让上一次的残留把这次判成繁忙。
90
+ */
91
+ export function resetChildStates() {
92
+ states.clear()
93
+ }
package/host/runtime.js CHANGED
@@ -13,15 +13,28 @@
13
13
  import { appendFile, mkdir, readFile, writeFile } from 'node:fs/promises'
14
14
  import { join } from 'node:path'
15
15
  import { fileURLToPath } from 'node:url'
16
- import { installChildDecoration, readTeamMemory, registerMemoryTools, registerTeamTools, SECRETARY_RULES } from './tools.js'
17
16
  import { createWorkspaceGuard } from './guard.js'
18
17
  import { adoptSoulFile, loadBots, migratePersona } from './bots.js'
19
18
  import { ensureBuiltinBots } from './builtin-bots.js'
20
- import { installTeamMode, readRoster } from './team-mode.js'
21
19
  import { loadSettings, resolveDeliverableRoot, saveSettings } from './settings.js'
22
20
  import { createUsageBook } from './usage.js'
23
21
  import { createMailbox } from './mailbox.js'
24
22
  import { migrateDataRoot, resolveDataRoot } from './paths.js'
23
+ /**
24
+ * 工具层和面板路由这两块改得最勤,所以带缓存戳动态 import:
25
+ * 静态 import 会命中 ESM 模块缓存,改完翻开关也不会重新加载,只能重启 DSH。
26
+ * 里面的 ./bots.js 之类仍是普通 import——它们没改,共用一份就行。
27
+ */
28
+ const toolsModule = await import(`./tools.js?v=${Date.now()}`)
29
+ const teamModeModule = await import(`./team-mode.js?v=${Date.now()}`)
30
+ const {
31
+ installChildDecoration,
32
+ readTeamMemory,
33
+ registerMemoryTools,
34
+ registerTeamTools,
35
+ SECRETARY_RULES,
36
+ } = toolsModule
37
+ const { installTeamMode, readRoster } = teamModeModule
25
38
 
26
39
  /** 插件包目录:只放代码,不放数据。升级时它会被整个替换。 */
27
40
  const PACKAGE_ROOT = fileURLToPath(new URL('..', import.meta.url))
@@ -378,7 +391,8 @@ export async function apply(ctx, config = {}) {
378
391
  let pluginVersion = ''
379
392
  let dshEngine = ''
380
393
  try {
381
- const pkg = JSON.parse(await readFile(join(ROOT, 'package.json'), 'utf8'))
394
+ // 版本号在包目录里,不在数据目录里——以前读错了地方,体检报告永远是空的。
395
+ const pkg = JSON.parse(await readFile(join(PACKAGE_ROOT, 'package.json'), 'utf8'))
382
396
  pluginVersion = String(pkg.version ?? '')
383
397
  dshEngine = String(pkg.engines?.dsh ?? '')
384
398
  } catch {
package/host/team-mode.js CHANGED
@@ -19,6 +19,7 @@ import { growthSummary, normalizeGrowth } from './growth.js'
19
19
  import { sumTaskTokens } from './usage.js'
20
20
  import { updateGrowth } from './growth-store.js'
21
21
  import { commitMemory } from './memory.js'
22
+ import { runningBots } from './live-watch.js'
22
23
 
23
24
  const SWITCH_ROUTE = '/dsh-team/team-mode'
24
25
  const ROSTER_ROUTE = '/dsh-team/roster'
@@ -387,6 +388,9 @@ export function installTeamMode(ctx, options) {
387
388
  .map((entry) => ({
388
389
  taskId: entry.taskId,
389
390
  bot: entry.bot,
391
+ // 客户端要按「子会话 → Bot」拼头像映射:这条不发,头像就只能靠
392
+ // identity-map 那条路由,一旦它没注册上,新会话就顶主会话的脸。
393
+ sessionId: entry.sessionId ?? '',
390
394
  status: entry.status ?? 'running',
391
395
  startedAt: entry.startedAt ?? null,
392
396
  doneAt: entry.doneAt ?? null,
@@ -1596,6 +1600,8 @@ export function installTeamMode(ctx, options) {
1596
1600
  disposeImportBot,
1597
1601
  disposeImportBotFiles,
1598
1602
  disposeQuickstart,
1603
+ disposeIdentityMap,
1604
+ disposeSessionBot,
1599
1605
  ]) {
1600
1606
  try {
1601
1607
  dispose?.()
@@ -1691,11 +1697,14 @@ export async function readRoster(options) {
1691
1697
  continue
1692
1698
  }
1693
1699
  const running = live.get(bot.id) ?? []
1700
+ // 账本里的 running 只在派活那一次调用没被打断时才可靠;被打断时账本被提前收成
1701
+ // ready,子会话却还在跑,面板就会误显示「待命」。所以再看一眼子会话自己报的状态。
1702
+ const busyNow = runningBots()
1694
1703
  members.push({
1695
1704
  id: bot.id,
1696
1705
  name: bot.name ?? bot.id,
1697
1706
  role: bot.role ?? '',
1698
- status: bot.status === 'disabled' ? 'disabled' : running.length > 0 ? 'busy' : 'idle',
1707
+ status: bot.status === 'disabled' ? 'disabled' : running.length > 0 || busyNow.has(bot.id) ? 'busy' : 'idle',
1699
1708
  group: bot.group ?? '',
1700
1709
  stars: bot.stars ?? 0,
1701
1710
  // 插件自带的 Bot;limited 表示「限定」(带标签、删了能恢复)。
package/host/tools.js CHANGED
@@ -34,6 +34,7 @@ import { growthDetail, growthSummary, promote, regrade, settleRepeat, settleTask
34
34
  import { taskGain } from './progress.js'
35
35
  import { loadBots, stripSoulPlaceholder } from './bots.js'
36
36
  import { formatMailPrompt } from './mailbox.js'
37
+ import { forgetChild, noteChildState } from './live-watch.js'
37
38
 
38
39
  /** 插件自带审计员的 id;打 excellent 前必须先有它的审计记录。 */
39
40
  const AUDITOR_ID = 'auditor'
@@ -1320,6 +1321,94 @@ export function registerTeamTools(ctx, options) {
1320
1321
  return bot
1321
1322
  }
1322
1323
 
1324
+ /**
1325
+ * 派活那次调用被中止(秘书正等结果时用户插话)后,子会话其实还在后台跑。
1326
+ * 这里接力盯它:每 3 秒看一眼落盘会话有没有新的 turn/end,等到就把账本收成
1327
+ * ready、推一张卡片,再让这个 Bot 的子会话给秘书发一条消息把秘书叫醒。
1328
+ * 只读不打断——它在干活,别去碰它。
1329
+ */
1330
+ function watchDetachedTask({ taskId, bot, sessionId, startedAt, exec }) {
1331
+ const deadline = Date.now() + 4 * 60 * 60 * 1000
1332
+ let ticking = false
1333
+ const timer = setInterval(async () => {
1334
+ if (ticking) return
1335
+ ticking = true
1336
+ try {
1337
+ const row = tasks?.get(taskId)
1338
+ if (!row || !row.detached || row.status !== 'running') {
1339
+ clearInterval(timer)
1340
+ return
1341
+ }
1342
+ if (Date.now() > deadline) {
1343
+ row.status = 'timeout'
1344
+ row.doneAt = Date.now()
1345
+ row.note = '派活调用被中断后一直没等到这一轮说完,后台接力放弃'
1346
+ delete row.detached
1347
+ forgetChild(sessionId)
1348
+ void persistTasks?.()
1349
+ options.api?.broadcast?.({ type: 'tasks' })
1350
+ void debug?.({ event: 'detached-timeout', taskId, bot: bot.id })
1351
+ clearInterval(timer)
1352
+ return
1353
+ }
1354
+ const text = await readSessionTurnReply(sessionId, startedAt)
1355
+ if (!text) return
1356
+ const usage = usageBook?.take?.(sessionId)
1357
+ if (usage) row.tokens = usage
1358
+ row.status = 'ready'
1359
+ row.doneAt = Date.now()
1360
+ row.output = text.slice(0, 4000)
1361
+ row.note = '派活调用被中断,这一轮结果是后台接力补记的'
1362
+ delete row.detached
1363
+ forgetChild(sessionId)
1364
+ void persistTasks?.()
1365
+ options.api?.broadcast?.({ type: 'tasks' })
1366
+ options.api?.broadcast?.({
1367
+ type: 'task-done',
1368
+ taskId,
1369
+ bot: bot.id,
1370
+ status: 'ready',
1371
+ text: text.slice(0, 600),
1372
+ })
1373
+ void maybeQueueReview(row, exec)
1374
+ void debug?.({ event: 'detached-finish', taskId, bot: bot.id, bytes: text.length })
1375
+ // 账本变了不会自己开一轮,所以让子会话给秘书发一条消息,把秘书叫醒。
1376
+ // sendMessage 不允许自己发给自己,发送方必须是那个子会话本身。
1377
+ try {
1378
+ const child = liveChildren.get(sessionId)
1379
+ if (child && row.parentSession && subagents?.sendMessage) {
1380
+ await subagents.sendMessage(
1381
+ child,
1382
+ row.parentSession,
1383
+ [
1384
+ {
1385
+ type: 'text',
1386
+ text: `【团队】${bot.name ?? bot.id} 的 ${taskId} 已经干完(派活调用被中断,这条是后台补报的):\n${String(text).slice(0, 800)}`,
1387
+ },
1388
+ ],
1389
+ { signal: new AbortController().signal },
1390
+ )
1391
+ void debug?.({ event: 'detached-notify', taskId, ok: true })
1392
+ } else {
1393
+ void debug?.({
1394
+ event: 'detached-notify',
1395
+ taskId,
1396
+ ok: false,
1397
+ reason: child ? 'no-parent' : 'no-child',
1398
+ })
1399
+ }
1400
+ } catch (error) {
1401
+ void debug?.({ event: 'detached-notify', taskId, ok: false, error: String(error?.message ?? error) })
1402
+ }
1403
+ clearInterval(timer)
1404
+ } finally {
1405
+ ticking = false
1406
+ }
1407
+ }, 3000)
1408
+ // 别让这个定时器把进程钉住。
1409
+ timer.unref?.()
1410
+ }
1411
+
1323
1412
  const reviewQueued = new Set()
1324
1413
 
1325
1414
  // 有交付物的任务完成后,自动给它建一张审计子任务;终审仍由秘书做。
@@ -2182,26 +2271,54 @@ export function registerTeamTools(ctx, options) {
2182
2271
  const usage = usageBook?.take?.(started?.childId ?? childId)
2183
2272
  if (usage) entry.tokens = usage
2184
2273
  }
2185
- // 只把「还在跑」的行收成 ready:失败 / 超时 / 取消已经写过自己的状态,别覆盖。
2186
- if (entry && (!entry.status || entry.status === 'running')) {
2187
- entry.doneAt = Date.now()
2188
- entry.status = 'ready'
2189
- } else if (entry && !entry.doneAt) {
2190
- entry.doneAt = Date.now()
2191
- }
2192
- // 留下这一轮的回复:返工续聊时用来判断「这是不是新回复」。
2193
- if (entry && finalText !== '') entry.output = finalText.slice(0, 4000)
2194
- void persistTasks?.()
2195
- // 干完就推一张实时卡片:不等秘书收尾再贴。
2196
- if (entry?.status === 'ready') void maybeQueueReview(entry, exec)
2197
- if (entry) {
2198
- options.api?.broadcast?.({
2199
- type: 'task-done',
2274
+ const interrupted = exec?.signal?.aborted === true
2275
+ const stillRunning = Boolean(entry) && (!entry.status || entry.status === 'running')
2276
+ // 用户在秘书等结果时插话 → 这一次工具调用被判 aborted,但子会话没停。
2277
+ // 这时候不能把账本收成 ready:成员卡会显示「待命」,看门狗也跟着关掉。
2278
+ // 保留 running,交给后台接力,等这一轮真说完再收。
2279
+ if (entry && interrupted && stillRunning) {
2280
+ entry.detached = true
2281
+ entry.status = 'running'
2282
+ delete entry.doneAt
2283
+ void persistTasks?.()
2284
+ options.api?.broadcast?.({ type: 'tasks' })
2285
+ void debug?.({
2286
+ event: 'dispatch-interrupted',
2200
2287
  taskId,
2201
2288
  bot: bot.id,
2202
- status: entry.status,
2203
- text: String(entry.output ?? entry.note ?? '').slice(0, 600),
2289
+ sessionId: started?.childId ?? childId,
2290
+ })
2291
+ watchDetachedTask({
2292
+ taskId,
2293
+ bot,
2294
+ sessionId: started?.childId ?? childId,
2295
+ startedAt: entry.startedAt ?? Date.now(),
2296
+ exec,
2204
2297
  })
2298
+ } else {
2299
+ // 只把「还在跑」的行收成 ready:失败 / 超时 / 取消已经写过自己的状态,别覆盖。
2300
+ if (entry && (!entry.status || entry.status === 'running')) {
2301
+ entry.doneAt = Date.now()
2302
+ entry.status = 'ready'
2303
+ } else if (entry && !entry.doneAt) {
2304
+ entry.doneAt = Date.now()
2305
+ }
2306
+ // 留下这一轮的回复:返工续聊时用来判断「这是不是新回复」。
2307
+ if (entry && finalText !== '') entry.output = finalText.slice(0, 4000)
2308
+ // 这一趟收了尾,实时登记也撤掉,别让它一直算在「在干活」里。
2309
+ forgetChild(started?.childId ?? childId)
2310
+ void persistTasks?.()
2311
+ // 干完就推一张实时卡片:不等秘书收尾再贴。
2312
+ if (entry?.status === 'ready') void maybeQueueReview(entry, exec)
2313
+ if (entry) {
2314
+ options.api?.broadcast?.({
2315
+ type: 'task-done',
2316
+ taskId,
2317
+ bot: bot.id,
2318
+ status: entry.status,
2319
+ text: String(entry.output ?? entry.note ?? '').slice(0, 600),
2320
+ })
2321
+ }
2205
2322
  }
2206
2323
  }
2207
2324
  }
@@ -4228,7 +4345,21 @@ export function installChildDecoration(ctx, options) {
4228
4345
  })
4229
4346
  pending.delete(header.id)
4230
4347
  // 恢复出来的子会话进这里:续聊等回复时 agents.get 可能拿不到它。
4231
- if (hit) liveChildren.set(header.id, agent)
4348
+ if (hit) {
4349
+ liveChildren.set(header.id, agent)
4350
+ // 面板的「在不在干活」以子会话自己报的状态为准:账本那行可能因为派活调用
4351
+ // 被中止而提前收成 ready,只认账本就会出现「人在干活、卡上写待命」。
4352
+ try {
4353
+ const botId = hit.bot?.id
4354
+ noteChildState(header.id, 'running', botId)
4355
+ agent.ctx.on('agent/status', (event) => {
4356
+ const state = typeof event === 'string' ? event : event?.status
4357
+ noteChildState(header.id, state, botId)
4358
+ })
4359
+ } catch (error) {
4360
+ void debug?.({ event: 'live-watch-failed', error: String(error?.message ?? error) })
4361
+ }
4362
+ }
4232
4363
  if (!hit) {
4233
4364
  // 没有派活记录也不一定是普通会话:根会话就是秘书,它也要知道知识库。
4234
4365
  if (!header.parentSession) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-rhine-lab-team",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "type": "module",
5
5
  "description": "给 DeepSeek Harness 配一个工作团队:每个 Bot 有自己的记忆、分工、头像和 ID;在你的指导下或自己干活,都能积累经验、升级成长,成为你最放心可靠的团队成员。灵感与 UI 参考《明日方舟》,与官方无关。",
6
6
  "license": "MIT",
@@ -16,11 +16,6 @@
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
19
- "scripts": {
20
- "test": "node --test --experimental-test-isolation=none test/*.test.mjs",
21
- "check": "node scripts/check.mjs",
22
- "pack:check": "npm pack --dry-run"
23
- },
24
19
  "exports": {
25
20
  ".": "./index.js",
26
21
  "./client": "./client.js",
@@ -72,5 +67,10 @@
72
67
  ],
73
68
  "dependencies": {
74
69
  "dsh-avatar-frame": "latest"
70
+ },
71
+ "scripts": {
72
+ "test": "node --test --experimental-test-isolation=none test/*.test.mjs",
73
+ "check": "node scripts/check.mjs",
74
+ "pack:check": "npm pack --dry-run"
75
75
  }
76
- }
76
+ }