@deepseek-harness-tui/dsh-tui 0.19.0 → 0.20.1

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.
Files changed (224) hide show
  1. package/README.md +67 -57
  2. package/bin/dsh-tui.js +26 -8
  3. package/cordis.patch.yml +5 -3
  4. package/cordis.yml +3 -2
  5. package/guide/dsh-tui-guide/claude-backend.en.md +6 -5
  6. package/guide/dsh-tui-guide/claude-backend.md +5 -5
  7. package/guide/dsh-tui-guide/configuration.en.md +1 -1
  8. package/guide/dsh-tui-guide/configuration.md +1 -1
  9. package/guide/dsh-tui-guide/getting-started.en.md +2 -2
  10. package/guide/dsh-tui-guide/getting-started.md +2 -2
  11. package/guide/dsh-tui-guide/migrate.en.md +5 -0
  12. package/guide/dsh-tui-guide/migrate.md +4 -0
  13. package/guide/dsh-tui-guide/plugins.en.md +17 -1
  14. package/guide/dsh-tui-guide/plugins.md +12 -1
  15. package/guide/dsh-tui-guide/user-guide.en.md +7 -2
  16. package/guide/dsh-tui-guide/user-guide.md +7 -2
  17. package/lib/settings.json +24 -8
  18. package/lib/types/adapter/kernel/host-facade.d.ts +3 -1
  19. package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -1
  20. package/lib/types/adapter/kernel/host-facade.js +6 -0
  21. package/lib/types/adapter/kernel/runtime.d.ts.map +1 -1
  22. package/lib/types/adapter/kernel/runtime.js +5 -0
  23. package/lib/types/adapter/kernel/slices/extensions.d.ts +1 -0
  24. package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -1
  25. package/lib/types/adapter/kernel/slices/extensions.js +6 -1
  26. package/lib/types/adapter/kernel/slices/index.d.ts +1 -1
  27. package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -1
  28. package/lib/types/adapter/kernel/slices/index.js +3 -2
  29. package/lib/types/adapter/ports/channel-catalog.d.ts +19 -0
  30. package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
  31. package/lib/types/adapter/ports/channel-view.d.ts +39 -3
  32. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  33. package/lib/types/adapter/ports/extensions.d.ts +9 -0
  34. package/lib/types/adapter/ports/extensions.d.ts.map +1 -1
  35. package/lib/types/adapter/ports/index.d.ts +1 -1
  36. package/lib/types/adapter/ports/index.d.ts.map +1 -1
  37. package/lib/types/adapter/upstream/extensions-driver.d.ts +4 -1
  38. package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -1
  39. package/lib/types/adapter/upstream/extensions-driver.js +111 -1
  40. package/lib/types/adapter/upstream/index.d.ts +1 -1
  41. package/lib/types/adapter/upstream/index.d.ts.map +1 -1
  42. package/lib/types/adapter/upstream/index.js +1 -1
  43. package/lib/types/agent/events.d.ts +3 -1
  44. package/lib/types/agent/events.d.ts.map +1 -1
  45. package/lib/types/api.d.ts +1 -1
  46. package/lib/types/api.d.ts.map +1 -1
  47. package/lib/types/backends/claude/backend.d.ts.map +1 -1
  48. package/lib/types/backends/claude/backend.js +7 -2
  49. package/lib/types/backends/claude/tools.d.ts.map +1 -1
  50. package/lib/types/backends/claude/tools.js +8 -3
  51. package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
  52. package/lib/types/backends/codex/translate/presentation.js +5 -2
  53. package/lib/types/channel/interaction.d.ts.map +1 -1
  54. package/lib/types/channel/interaction.js +1 -0
  55. package/lib/types/channel/permissions.d.ts +15 -0
  56. package/lib/types/channel/permissions.d.ts.map +1 -1
  57. package/lib/types/channel/permissions.js +28 -0
  58. package/lib/types/channel/projection.d.ts.map +1 -1
  59. package/lib/types/channel/projection.js +11 -1
  60. package/lib/types/channel/questions.d.ts +26 -0
  61. package/lib/types/channel/questions.d.ts.map +1 -1
  62. package/lib/types/channel/questions.js +43 -0
  63. package/lib/types/commands.js +1 -1
  64. package/lib/types/components/FileSuggestions.d.ts +2 -2
  65. package/lib/types/components/FileSuggestions.d.ts.map +1 -1
  66. package/lib/types/components/FileSuggestions.js +25 -5
  67. package/lib/types/components/MessageList.d.ts.map +1 -1
  68. package/lib/types/components/MessageList.js +3 -3
  69. package/lib/types/components/PromptInput.d.ts +7 -1
  70. package/lib/types/components/PromptInput.d.ts.map +1 -1
  71. package/lib/types/components/PromptInput.js +81 -23
  72. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  73. package/lib/types/components/SplitDiffView.js +3 -2
  74. package/lib/types/components/StarPrompt.d.ts +5 -3
  75. package/lib/types/components/StarPrompt.d.ts.map +1 -1
  76. package/lib/types/components/StarPrompt.js +56 -6
  77. package/lib/types/components/SubagentCard.d.ts.map +1 -1
  78. package/lib/types/components/SubagentCard.js +1 -1
  79. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  80. package/lib/types/components/SubagentDashboard.js +3 -2
  81. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  82. package/lib/types/components/SubagentDetailScene.js +1 -1
  83. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  84. package/lib/types/components/messages/AssistantToolUseMessage.js +121 -23
  85. package/lib/types/components/teamRoster.d.ts +6 -3
  86. package/lib/types/components/teamRoster.d.ts.map +1 -1
  87. package/lib/types/dsh-adapter/approvals.d.ts +19 -0
  88. package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
  89. package/lib/types/dsh-adapter/approvals.js +17 -1
  90. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  91. package/lib/types/dsh-adapter/backend/translate.js +15 -3
  92. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  93. package/lib/types/dsh-adapter/channel/extensions.js +7 -4
  94. package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
  95. package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
  96. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
  97. package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
  98. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  99. package/lib/types/dsh-adapter/channel/settings-host.js +179 -33
  100. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
  101. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
  102. package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
  103. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
  104. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
  105. package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
  106. package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
  107. package/lib/types/dsh-adapter/childStderr.d.ts +1 -1
  108. package/lib/types/dsh-adapter/childStderr.d.ts.map +1 -1
  109. package/lib/types/dsh-adapter/childStderr.js +5 -0
  110. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
  111. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
  112. package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
  113. package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
  114. package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
  115. package/lib/types/dsh-adapter/compat/messages.js +2 -2
  116. package/lib/types/dsh-adapter/contract.d.ts +12 -5
  117. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  118. package/lib/types/dsh-adapter/contract.js +15 -4
  119. package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
  120. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
  121. package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
  122. package/lib/types/dsh-adapter/extensions.d.ts +3 -2
  123. package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
  124. package/lib/types/dsh-adapter/extensions.js +5 -2
  125. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  126. package/lib/types/dsh-adapter/host-contract.js +2 -2
  127. package/lib/types/dsh-adapter/host-dsh.d.ts +6 -0
  128. package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
  129. package/lib/types/dsh-adapter/host-dsh.js +29 -0
  130. package/lib/types/dsh-adapter/index.d.ts +9 -1
  131. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  132. package/lib/types/dsh-adapter/index.js +5 -0
  133. package/lib/types/dsh-adapter/mention-providers.d.ts +91 -0
  134. package/lib/types/dsh-adapter/mention-providers.d.ts.map +1 -0
  135. package/lib/types/dsh-adapter/mention-providers.js +214 -0
  136. package/lib/types/dsh-adapter/migrate/entry.d.ts +2 -0
  137. package/lib/types/dsh-adapter/migrate/entry.d.ts.map +1 -0
  138. package/lib/types/dsh-adapter/migrate/entry.js +46 -0
  139. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
  140. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
  141. package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
  142. package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
  143. package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
  144. package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
  145. package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
  146. package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
  147. package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
  148. package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
  149. package/lib/types/dsh-adapter/oauth/index.js +44 -0
  150. package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
  151. package/lib/types/dsh-adapter/oauth/service.js +5 -6
  152. package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
  153. package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
  154. package/lib/types/dsh-adapter/plugin-manage.js +3 -2
  155. package/lib/types/dsh-adapter/plugin.d.ts +237 -6
  156. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  157. package/lib/types/dsh-adapter/plugin.js +611 -23
  158. package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
  159. package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
  160. package/lib/types/dsh-adapter/session-projection-store.js +30 -23
  161. package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
  162. package/lib/types/dsh-adapter/sessionTree.js +4 -1
  163. package/lib/types/dsh-adapter/subagents.d.ts +1 -0
  164. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  165. package/lib/types/dsh-adapter/subagents.js +10 -2
  166. package/lib/types/dsh-adapter/team-mode.d.ts +29 -17
  167. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  168. package/lib/types/dsh-adapter/team-mode.js +138 -17
  169. package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
  170. package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
  171. package/lib/types/dsh-adapter/team-roster.js +206 -39
  172. package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
  173. package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
  174. package/lib/types/dsh-adapter/team-tools.js +81 -26
  175. package/lib/types/extensions.d.ts +2 -0
  176. package/lib/types/extensions.d.ts.map +1 -1
  177. package/lib/types/extensions.js +4 -1
  178. package/lib/types/i18n.d.ts +71 -11
  179. package/lib/types/i18n.d.ts.map +1 -1
  180. package/lib/types/i18n.js +32 -9
  181. package/lib/types/ink/dom.d.ts.map +1 -1
  182. package/lib/types/ink/dom.js +13 -3
  183. package/lib/types/ink/flush-tick.d.ts +6 -0
  184. package/lib/types/ink/flush-tick.d.ts.map +1 -1
  185. package/lib/types/ink/flush-tick.js +31 -0
  186. package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
  187. package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
  188. package/lib/types/ink/hooks/use-terminal-title.js +23 -3
  189. package/lib/types/ink/ink.js +2 -2
  190. package/lib/types/ink/jumpback-state.d.ts +33 -0
  191. package/lib/types/ink/jumpback-state.d.ts.map +1 -0
  192. package/lib/types/ink/jumpback-state.js +51 -0
  193. package/lib/types/ink/jumpback.d.ts +78 -0
  194. package/lib/types/ink/jumpback.d.ts.map +1 -0
  195. package/lib/types/ink/jumpback.js +515 -0
  196. package/lib/types/ink/log-update.js +37 -14
  197. package/lib/types/ink/notify-helper/activate.cs +836 -0
  198. package/lib/types/ink/notify-helper/compile.d.ts +30 -0
  199. package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
  200. package/lib/types/ink/notify-helper/compile.js +235 -0
  201. package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
  202. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
  203. package/lib/types/ink/terminal-notification-windows.js +14 -21
  204. package/lib/types/ink/terminal-notification.d.ts +31 -2
  205. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  206. package/lib/types/ink/terminal-notification.js +51 -0
  207. package/lib/types/ink/terminal.d.ts +2 -1
  208. package/lib/types/ink/terminal.d.ts.map +1 -1
  209. package/lib/types/ink/terminal.js +9 -4
  210. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  211. package/lib/types/screens/AgentTranscriptScene.js +1 -1
  212. package/lib/types/screens/Chat.d.ts +8 -4
  213. package/lib/types/screens/Chat.d.ts.map +1 -1
  214. package/lib/types/screens/Chat.js +40 -11
  215. package/lib/types/settings/definitions.d.ts +12 -0
  216. package/lib/types/settings/definitions.d.ts.map +1 -1
  217. package/lib/types/settings/definitions.js +15 -7
  218. package/lib/types/utils/fileSuggestions.d.ts +14 -3
  219. package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
  220. package/lib/types/utils/fileSuggestions.js +33 -0
  221. package/package.json +117 -112
  222. package/presets/liangshen/agent.cordis.yml +4 -0
  223. package/tui-profile/feed/README.md +1 -1
  224. package/tui-profile/feed/first-party.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"local-actions.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/local-actions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,IAAI,QAAQ,EAAE,MAAM,iBAAiB,C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;QAClB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAA;QACpC,QAAQ,CAAC,KAAK,EAAE;YAAE,OAAO,EAAE,OAAO,CAAA;SAAE,CAAA;KACrC,CAAA;IACD,KAAK,EAAE,YAAY,CAAA;IACnB,UAAU,EAAE,iBAAiB,CAAA;IAC7B,QAAQ,EAAE,OAAO,QAAQ,CAAA;CAC1B;IAIG;wEACoE;iBACvD,MAAM;qBAGI,OAAO,CAAC,MAAM,EAAE,CAAC;EA0B3C"}
@@ -1,5 +1,6 @@
1
1
  import { t } from '../../i18n.js';
2
2
  import { snapshotLiveSessionEvents } from '../compat/liveSession.js';
3
+ import { listDirectChildren } from './subagent-projection.js';
3
4
  export { setActivityFrames } from './core/local-actions.js';
4
5
  /**
5
6
  * The DSH halves of the local actions (the backend-neutral ones live in
@@ -21,19 +22,22 @@ export function createLocalActions(deps) {
21
22
  return [t('subagent-not-mounted')];
22
23
  const capture = binding.capture();
23
24
  try {
24
- const children = await service.listChildren(binding.agent.session.id);
25
+ const children = await listDirectChildren(service, String(binding.agent.session.id));
25
26
  if (!current(capture))
26
27
  throw new Error('dsh-tui: Channel lifetime has ended');
27
28
  if (children.length === 0)
28
29
  return [t('subagent-none')];
29
30
  return children.map(child => {
30
- const id = typeof child.id === 'string' ? child.id : (child.id.value ?? '');
31
+ const id = child.id;
31
32
  // The host's non-running activity is not proof that a child was
32
33
  // archived: continuable children can be idle or temporarily unknown.
33
34
  // Prefer the live projection when this process still owns the run.
34
35
  const running = state.subagents.some(sub => sub.agentId === id && sub.status === 'running');
35
36
  const activity = running || child.activity === 'running' ? t('subagent-running') : t('subagent-unknown');
36
- return t('subagent-row', { mode: child.mode === 'continuable' ? t('subagent-resumable') : t('subagent-oneshot'), label: child.label ? `「${child.label}」` : '', activity, id: id.slice(0, 8) });
37
+ // rc.2 names the child (`reviewer/checker`), the addressable locator;
38
+ // a historical row has no name and keeps the short id.
39
+ const locator = child.name !== undefined && child.name !== '' ? child.name : id.slice(0, 8);
40
+ return t('subagent-row', { mode: child.mode === 'continuable' ? t('subagent-resumable') : t('subagent-oneshot'), label: child.label ? `「${child.label}」` : '', activity, id: locator });
37
41
  });
38
42
  }
39
43
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"projection-helpers.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/projection-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAc/C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQjF;AAED;;+EAE+E;AAC/E,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAa9E;AAED,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,QAAkC,CAAA;AAEnE,iFAAiF;AACjF,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,EAAE,GAAG,SAAS,CAWzE"}
1
+ {"version":3,"file":"projection-helpers.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/projection-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAgB/C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQjF;AAED;;+EAE+E;AAC/E,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAa9E;AAED,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,QAAkC,CAAA;AAEnE,iFAAiF;AACjF,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,EAAE,GAAG,SAAS,CAWzE"}
@@ -1,6 +1,8 @@
1
1
  /** Names the subagent delegation tools ship under (preset `toolName` values
2
2
  * plus the CLI default); each renders as a live subagent card, never a plain
3
- * tool card. */
3
+ * tool card. `spawn_teammate` is the retired rc.1 Agent Teams tool: rc.2 has
4
+ * no such tool, but a historical log still holds its calls and they fold
5
+ * into the subagent row instead of a raw arguments card. */
4
6
  const SUBAGENT_TOOL_NAMES = new Set([
5
7
  'task',
6
8
  'subagent',
@@ -8,7 +10,7 @@ const SUBAGENT_TOOL_NAMES = new Set([
8
10
  'subagent_claude_code',
9
11
  'subagent_codex',
10
12
  'spawn_task',
11
- // Agent Teams: a teammate is a continuable child of the Lead.
13
+ // compat(dsh <= 0.2.2-rc.1, log + old host): the retired team tool.
12
14
  'spawn_teammate',
13
15
  ]);
14
16
  export function isSubagentToolName(name) {
@@ -1 +1 @@
1
- {"version":3,"file":"settings-host.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/settings-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAIvD,OAAO,KAAK,EAAE,qBAAqB,EAA8C,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAiBpJ,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,qBAAqB,EAAE,GAAG,kBAAkB,EAAE,CAyG1H;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,EAAE,YAAY,GAAE,MAAM,IAAsB,GAAG,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,eAAe,GAAG,uBAAuB,GAAG,aAAa,CAAC,CA2VlM"}
1
+ {"version":3,"file":"settings-host.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/settings-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAIvD,OAAO,KAAK,EAAE,qBAAqB,EAAqE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAkC3K,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,qBAAqB,EAAE,GAAG,kBAAkB,EAAE,CA8O1H;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,EAAE,YAAY,GAAE,MAAM,IAAsB,GAAG,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,eAAe,GAAG,uBAAuB,GAAG,aAAa,CAAC,CA4VlM"}
@@ -15,6 +15,21 @@ const WEB_SETTINGS_PAGE = Object.freeze({
15
15
  title: 'Search',
16
16
  descriptions: Object.freeze({ zh: '搜索' }),
17
17
  });
18
+ /** Credential-reference shape the credentials seam accepts (mirrors the host guard). */
19
+ const CREDENTIAL_REF = /^[A-Za-z_][A-Za-z0-9_]*$/u;
20
+ /** A credential-reference draft: a valid name, or a clear for an empty one. */
21
+ function credentialRefWrite(text) {
22
+ const ref = text.trim();
23
+ if (ref === '')
24
+ return { kind: 'clear' };
25
+ return CREDENTIAL_REF.test(ref) ? { kind: 'set', value: ref } : undefined;
26
+ }
27
+ /** The credential choices 0.2.2-rc.2 offers for each Search/Fetch capability. */
28
+ const BILLING_OPTIONS = [
29
+ { value: 'auto', label: 'Auto', descriptions: { zh: '自动' } },
30
+ { value: 'account', label: 'Account', descriptions: { zh: '账号' } },
31
+ { value: 'api-key', label: 'API key', descriptions: { zh: 'API 密钥' } },
32
+ ];
18
33
  /** Forms over the host's web settings; provider selection remains owned by DSH. */
19
34
  export function webSettingsSections(ctx, namespaces) {
20
35
  const available = new Set(namespaces.map(view => view.ns));
@@ -50,6 +65,104 @@ export function webSettingsSections(ctx, namespaces) {
50
65
  // Older hosts keep their existing search route without an ineffective picker.
51
66
  if (apiNs === undefined)
52
67
  return [];
68
+ const valueOf = (ns) => ns === undefined ? undefined : namespaces.find(view => view.ns === ns)?.value;
69
+ const webValue = valueOf(webNs);
70
+ const apiValue = valueOf(apiNs);
71
+ // 0.2.2-rc.2 replaced the shared `baseURL`/`apiKeyEnv` pair with per-capability
72
+ // endpoint and credential fields plus a billing choice; older hosts keep the
73
+ // pair. Follow the live Config shape so every host gets controls that apply.
74
+ const splitApi = getPath(apiValue, ['searchBilling']) !== undefined
75
+ || getPath(apiValue, ['fetchBilling']) !== undefined;
76
+ /** A stored credential ref, when it is usable as a credentials-seam key. */
77
+ const credentialRefAt = (ns, path) => {
78
+ const value = getPath(valueOf(ns), path);
79
+ return typeof value === 'string' && CREDENTIAL_REF.test(value) ? value : undefined;
80
+ };
81
+ /**
82
+ * The credential reference of the active DeepSeek API-key route. An unpinned
83
+ * Search/Fetch on rc.2 follows that route's origin and `apiKeyEnv` (the same
84
+ * directory the web provider resolves); only without the route does the
85
+ * provider fall back to DEEPSEEK_API_KEY.
86
+ */
87
+ const officialRouteRef = () => {
88
+ const llm = ctx.get('llm');
89
+ let route;
90
+ try {
91
+ route = llm?.listConfigurableProviders?.().find(entry => entry.provider === 'deepseek-official');
92
+ }
93
+ catch {
94
+ return undefined;
95
+ }
96
+ if (route === undefined || route.settingsPath.length !== 0)
97
+ return undefined;
98
+ return credentialRefAt(route.settingsNs, ['apiKeyEnv']);
99
+ };
100
+ const sharedApiKeyRef = officialRouteRef() ?? 'DEEPSEEK_API_KEY';
101
+ /** A capability's own endpoint opts out of the model route's credential. */
102
+ const apiKeyRef = (capability) => {
103
+ const ownRef = credentialRefAt(apiNs, [`${capability}ApiKeyEnv`]);
104
+ if (ownRef !== undefined)
105
+ return ownRef;
106
+ const ownBaseURL = getPath(apiValue, [`${capability}BaseURL`]);
107
+ return typeof ownBaseURL === 'string' && ownBaseURL.length > 0
108
+ ? 'DEEPSEEK_API_KEY'
109
+ : sharedApiKeyRef;
110
+ };
111
+ const store = ctx.get('credentials');
112
+ /** One write-only secret control over an exact Config owner and ref. */
113
+ const secretField = (options) => {
114
+ if (options.ns === undefined || options.owner === undefined || store === undefined)
115
+ return undefined;
116
+ const authorization = Object.freeze(new WebCredentialAuthorization());
117
+ webCredentialFields.set(authorization, {
118
+ store: concreteService(store), owner: options.owner, ns: options.ns, ref: options.ref,
119
+ // Two controls can name the same ref (Search and Fetch share
120
+ // DEEPSEEK_API_KEY); the slot keeps one stale control from validating
121
+ // the other capability's identical ref.
122
+ slot: options.path.join('.'),
123
+ });
124
+ return {
125
+ path: options.path, label: options.label, descriptions: { zh: options.zh }, kind: 'text',
126
+ secret: { ref: options.ref, authorization },
127
+ hint: options.hint, hintDescriptions: { zh: options.hintZh },
128
+ };
129
+ };
130
+ // The Search key control follows the selected provider. With the rc.2 split
131
+ // fields a pinned `searchApiKeyEnv` names the store, otherwise the shared
132
+ // DEEPSEEK_API_KEY the provider falls back to; the legacy Messages route
133
+ // keeps its own `apiKeyEnv`.
134
+ const searchApi = getPath(webValue, ['searchProvider']) === 'deepseek-search-api';
135
+ const searchNs = searchApi ? apiNs : messagesNs ?? apiNs;
136
+ const searchOwner = searchApi ? apiOwner : messagesOwner ?? apiOwner;
137
+ const searchRef = searchApi && splitApi
138
+ ? apiKeyRef('search')
139
+ : credentialRefAt(searchNs, ['apiKeyEnv']) ?? 'DEEPSEEK_API_KEY';
140
+ const pinnedSearch = searchApi && splitApi;
141
+ const searchKey = secretField({
142
+ path: pinnedSearch ? ['searchApiKey'] : ['apiKey'], label: 'API key', zh: 'API 密钥',
143
+ ...(pinnedSearch
144
+ ? {
145
+ hint: 'Paste the key for the pinned Search endpoint (its searchApiKeyEnv reference, or the shared DEEPSEEK_API_KEY). Saved keys are never displayed.',
146
+ hintZh: '粘贴固定搜索端点所用密钥(searchApiKeyEnv 引用,未设置时为共享的 DEEPSEEK_API_KEY),保存后不再显示原值。',
147
+ }
148
+ : {
149
+ hint: 'Paste a key for the selected search API (the active DeepSeek API-key route reference; DEEPSEEK_API_KEY when no route is configured). Saved keys are never displayed.',
150
+ hintZh: '粘贴当前搜索 API 的密钥(跟随当前 DeepSeek API 密钥路由的引用;没有该路由时为 DEEPSEEK_API_KEY),保存后不再显示原值。',
151
+ }),
152
+ ns: searchNs, owner: searchOwner, ref: searchRef,
153
+ });
154
+ // The Fetch API can pin its own key on rc.2; when it shares the Search ref,
155
+ // the one control above already writes it.
156
+ const fetchApi = splitApi && getPath(webValue, ['fetchProvider']) === 'deepseek-fetch-api';
157
+ const fetchRef = fetchApi ? apiKeyRef('fetch') : undefined;
158
+ const fetchKey = fetchRef === undefined || fetchRef === searchRef
159
+ ? undefined
160
+ : secretField({
161
+ path: ['fetchApiKey'], label: 'Fetch API key', zh: '抓取 API 密钥',
162
+ hint: 'Paste the key for the Fetch endpoint (its fetchApiKeyEnv reference, or the active DeepSeek API-key route reference when it shares the Search key). Saved keys are never displayed.',
163
+ hintZh: '粘贴抓取端点所用密钥(fetchApiKeyEnv 引用;与搜索共用密钥时跟随当前路由引用),保存后不再显示原值。',
164
+ ns: apiNs, owner: apiOwner, ref: fetchRef,
165
+ });
53
166
  const sections = [];
54
167
  if (webNs !== undefined)
55
168
  sections.push({
@@ -73,43 +186,75 @@ export function webSettingsSections(ctx, namespaces) {
73
186
  { value: 'http', label: 'HTTP' },
74
187
  ],
75
188
  },
76
- ...(() => {
77
- const searchApi = getPath(namespaces.find(view => view.ns === webNs)?.value, ['searchProvider']) === 'deepseek-search-api';
78
- const ns = searchApi ? apiNs : messagesNs ?? apiNs;
79
- const owner = searchApi ? apiOwner : messagesOwner ?? apiOwner;
80
- const ref = getPath(namespaces.find(view => view.ns === ns)?.value, ['apiKeyEnv']) ?? 'DEEPSEEK_API_KEY';
81
- const store = ctx.get('credentials');
82
- if (owner === undefined || store === undefined || typeof ref !== 'string' || !/^[A-Za-z_][A-Za-z0-9_]*$/u.test(ref))
83
- return [];
84
- const authorization = Object.freeze(new WebCredentialAuthorization());
85
- const field = {
86
- path: ['apiKey'], label: 'API key', descriptions: { zh: 'API 密钥' }, kind: 'text', secret: { ref, authorization },
87
- hint: 'Paste a key for the selected search API. Saved keys are never displayed.',
88
- hintDescriptions: { zh: '粘贴当前搜索 API 的密钥,保存后不再显示原值。' },
89
- };
90
- webCredentialFields.set(authorization, { store: concreteService(store), owner, ns, ref });
91
- return [field];
92
- })(),
189
+ ...(searchKey === undefined ? [] : [searchKey]),
190
+ ...(fetchKey === undefined ? [] : [fetchKey]),
93
191
  ],
94
192
  });
193
+ const countField = {
194
+ path: ['count'], label: 'Search result count', descriptions: { zh: '搜索结果数' }, kind: 'number',
195
+ parse(text) {
196
+ if (text.trim() === '')
197
+ return { kind: 'clear' };
198
+ const value = Number(text);
199
+ return Number.isInteger(value) && value >= 1 && value <= 50 ? { kind: 'set', value } : undefined;
200
+ },
201
+ };
202
+ const sendOriginalQuestionField = {
203
+ path: ['sendOriginalQuestion'], label: 'Send original question', descriptions: { zh: '发送原始问题' }, kind: 'boolean',
204
+ hint: 'Send up to 128 characters of the latest user prompt with the search query.',
205
+ hintDescriptions: { zh: '搜索时附带最近一条用户提示,最多 128 个字符。' },
206
+ };
95
207
  sections.push({
96
208
  ns: apiNs, title: 'DeepSeek Search / Fetch API',
97
209
  descriptions: { zh: 'DeepSeek 搜索 / 抓取 API' }, page: WEB_SETTINGS_PAGE,
98
- fields: [
99
- { path: ['baseURL'], label: 'API base URL', descriptions: { zh: 'API 基础地址' }, kind: 'text',
100
- hint: 'Include the path prefix, without /search or /fetch.',
101
- hintDescriptions: { zh: '包含路径前缀,不含末尾的 /search 或 /fetch。' } },
102
- { path: ['count'], label: 'Search result count', descriptions: { zh: '搜索结果数' }, kind: 'number',
103
- parse(text) {
104
- if (text.trim() === '')
105
- return { kind: 'clear' };
106
- const value = Number(text);
107
- return Number.isInteger(value) && value >= 1 && value <= 50 ? { kind: 'set', value } : undefined;
108
- } },
109
- { path: ['sendOriginalQuestion'], label: 'Send original question', descriptions: { zh: '发送原始问题' }, kind: 'boolean',
110
- hint: 'Send up to 128 characters of the latest user prompt with the search query.',
111
- hintDescriptions: { zh: '搜索时附带最近一条用户提示,最多 128 个字符。' } },
112
- ],
210
+ fields: splitApi
211
+ ? [
212
+ countField,
213
+ sendOriginalQuestionField,
214
+ {
215
+ path: ['searchBaseURL'], label: 'Search API base URL', descriptions: { zh: '搜索 API 基础地址' }, kind: 'text',
216
+ hint: 'Optional Search endpoint including its path prefix; /search is appended. Pinning one takes Search off the conversation billing credential.',
217
+ hintDescriptions: { zh: '可选的搜索端点(含路径前缀,末尾自动追加 /search)。固定后搜索不再跟随会话的计费凭据。' },
218
+ },
219
+ {
220
+ path: ['searchApiKeyEnv'], label: 'Search API key reference', descriptions: { zh: '搜索 API 密钥引用' }, kind: 'text',
221
+ parse: credentialRefWrite,
222
+ hint: 'Credential reference the pinned Search endpoint uses; empty falls back to DEEPSEEK_API_KEY, or to the billing credential when no endpoint is pinned.',
223
+ hintDescriptions: { zh: '固定搜索端点使用的凭据引用;留空时回退 DEEPSEEK_API_KEY,未固定端点时改用计费凭据。' },
224
+ },
225
+ {
226
+ path: ['searchBilling'], label: 'Search billing', descriptions: { zh: '搜索计费凭据' }, kind: 'select',
227
+ options: BILLING_OPTIONS,
228
+ hint: 'Credential Search sends without its own endpoint/key. Auto follows the conversation.',
229
+ hintDescriptions: { zh: '搜索未固定自身端点/密钥时使用的凭据;自动跟随会话。' },
230
+ },
231
+ {
232
+ path: ['fetchBaseURL'], label: 'Fetch API base URL', descriptions: { zh: '抓取 API 基础地址' }, kind: 'text',
233
+ hint: 'Optional Fetch endpoint including its path prefix; /fetch is appended. Pinning one takes Fetch off the conversation billing credential.',
234
+ hintDescriptions: { zh: '可选的抓取端点(含路径前缀,末尾自动追加 /fetch)。固定后抓取不再跟随会话的计费凭据。' },
235
+ },
236
+ {
237
+ path: ['fetchApiKeyEnv'], label: 'Fetch API key reference', descriptions: { zh: '抓取 API 密钥引用' }, kind: 'text',
238
+ parse: credentialRefWrite,
239
+ hint: 'Credential reference the pinned Fetch endpoint uses; empty falls back to DEEPSEEK_API_KEY, or to the billing credential when no endpoint is pinned.',
240
+ hintDescriptions: { zh: '固定抓取端点使用的凭据引用;留空时回退 DEEPSEEK_API_KEY,未固定端点时改用计费凭据。' },
241
+ },
242
+ {
243
+ path: ['fetchBilling'], label: 'Fetch billing', descriptions: { zh: '抓取计费凭据' }, kind: 'select',
244
+ options: BILLING_OPTIONS,
245
+ hint: 'Credential Fetch sends without its own endpoint/key. Auto follows the conversation.',
246
+ hintDescriptions: { zh: '抓取未固定自身端点/密钥时使用的凭据;自动跟随会话。' },
247
+ },
248
+ ]
249
+ : [
250
+ {
251
+ path: ['baseURL'], label: 'API base URL', descriptions: { zh: 'API 基础地址' }, kind: 'text',
252
+ hint: 'Include the path prefix, without /search or /fetch.',
253
+ hintDescriptions: { zh: '包含路径前缀,不含末尾的 /search 或 /fetch。' },
254
+ },
255
+ countField,
256
+ sendOriginalQuestionField,
257
+ ],
113
258
  });
114
259
  if (messagesNs !== undefined)
115
260
  sections.push({
@@ -176,7 +321,8 @@ export function createSettingsHosts(ctx, assertActive = () => undefined) {
176
321
  const current = currentFields.flatMap(candidate => {
177
322
  const binding = candidate.secret?.authorization === undefined ? undefined : webCredentialFields.get(candidate.secret.authorization);
178
323
  return binding === undefined ? [] : [binding];
179
- }).some(binding => binding.owner === authorized.owner && binding.ns === authorized.ns && binding.ref === ref);
324
+ }).some(binding => binding.owner === authorized.owner && binding.ns === authorized.ns
325
+ && binding.ref === ref && binding.slot === authorized.slot);
180
326
  if (!current || authorized.ref !== ref || authorized.store !== concreteService(store)) {
181
327
  throw new Error(t('settings-web-key-changed'));
182
328
  }
@@ -13,9 +13,15 @@ type ProjectionState = Pick<ChannelState, 'rows' | 'subagents' | 'subagentCost'
13
13
  * cold resume and inbox admission, `interrupt` through its authority check.
14
14
  */
15
15
  export interface SubagentsServiceView {
16
+ /** Exact live runtime owner; historical ancestry alone is not authority. */
17
+ rootOf?(agent: Agent): Agent;
16
18
  interrupt?(target: string, reason: unknown): void;
17
19
  /** Browser-authored prompt to a direct continuable child: resolves with
18
- * the accepted message's inbox id. */
20
+ * the accepted message's inbox id. The rc.2 host removed parentSessionId
21
+ * and mode from this request (the child's tree root is resolved from the
22
+ * Session); the extra fields are ignored there and still required by an
23
+ * older host, so they stay.
24
+ */
19
25
  prompt?(request: {
20
26
  readonly requestId: string;
21
27
  readonly parentSessionId: string;
@@ -30,8 +36,12 @@ export interface SubagentsServiceView {
30
36
  readonly messageId: string;
31
37
  }>;
32
38
  /** Durable direct-child catalog read; no Agent is loaded, so the rows
33
- * carry no liveness guarantee. */
39
+ * carry no liveness guarantee. Removed in 0.2.2-rc.2 (use
40
+ * `listDescendants`); kept for older hosts. */
34
41
  listChildren?(parentSessionId: string, signal?: AbortSignal): Promise<readonly SubagentCatalogEntryView[]>;
42
+ /** Recursive durable catalog walk, pre-order; the 0.2.2-rc.2 replacement
43
+ * for `listChildren` (direct children are the depth-1 rows). */
44
+ listDescendants?(rootSessionId: string, signal?: AbortSignal): Promise<readonly SubagentDescendantEntryView[]>;
35
45
  }
36
46
  /** One `listChildren` catalog row (SubagentCatalogEntry, structural). */
37
47
  export interface SubagentCatalogEntryView {
@@ -39,7 +49,44 @@ export interface SubagentCatalogEntryView {
39
49
  readonly createdAt: number;
40
50
  readonly mode: 'one-shot' | 'continuable' | 'unknown';
41
51
  readonly label?: string;
52
+ /** Sibling-unique path name from catalog payload v3 (`reviewer/checker`);
53
+ * absent on historical entries. */
54
+ readonly name?: string;
42
55
  }
56
+ /** One `listDescendants` row (SubagentDescendantListEntry, structural). A
57
+ * diagnostic row reports an unreadable branch instead of a child. */
58
+ export interface SubagentDescendantEntryView {
59
+ readonly kind: 'child' | 'diagnostic';
60
+ readonly id: string;
61
+ readonly mode?: 'one-shot' | 'continuable' | 'external' | 'unknown';
62
+ readonly label?: string;
63
+ readonly name?: string;
64
+ readonly parentId?: string;
65
+ readonly depth?: number;
66
+ /** Slash-separated names from the requested root; absent when the child or
67
+ * an ancestor below the root has no name. */
68
+ readonly path?: string;
69
+ readonly activity?: 'running' | 'inactive';
70
+ }
71
+ /** One direct child of a parent session, normalized across the host service
72
+ * generations. 0.2.2-rc.2 removed the service's `listChildren` and kept the
73
+ * recursive `listDescendants`; that parent's direct children are its
74
+ * `parentId`-matching rows. */
75
+ export interface DirectChildView {
76
+ readonly id: string;
77
+ readonly mode: 'one-shot' | 'continuable' | 'external' | 'unknown';
78
+ readonly label?: string;
79
+ readonly name?: string;
80
+ /** Turn activity when the host states it (recursive rows only). */
81
+ readonly activity?: 'running' | 'inactive';
82
+ }
83
+ /**
84
+ * Read one parent's direct children through whichever roster method the host
85
+ * service serves (shape probe, not version gate). Rejects when neither the
86
+ * legacy `listChildren` nor the rc.2 `listDescendants` exists, so a missing
87
+ * service is never mistaken for an empty roster.
88
+ */
89
+ export declare function listDirectChildren(service: SubagentsServiceView | undefined, parentSessionId: string, signal?: AbortSignal): Promise<readonly DirectChildView[]>;
43
90
  interface ProjectionDependencies {
44
91
  rowIds: {
45
92
  value: number;
@@ -95,13 +142,17 @@ export declare function createSubagentProjection(getState: () => ProjectionState
95
142
  runId?: string;
96
143
  provider: string;
97
144
  local?: boolean;
98
- }) => void>[0], parent?: object | null): void;
145
+ }) => void>[0] & {
146
+ parentSessionId?: string;
147
+ }, parent?: object | null): void;
99
148
  onEnd(info: Parameters<(info: {
100
149
  id: string;
101
150
  runId?: string;
102
151
  stopReason: string;
103
152
  lastAssistantMessage?: unknown[];
104
- }) => void>[0], parent?: object | null): void;
153
+ }) => void>[0] & {
154
+ parentSessionId?: string;
155
+ }, parent?: object | null): void;
105
156
  onParentEvent: (event: unknown) => void;
106
157
  bootstrapFromLog(events: readonly unknown[]): void;
107
158
  syncNow: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"subagent-projection.d.ts","sourceRoot":"","sources":["../../../../src/ds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UAAU,QAyWH;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,KAAG,IAAI,CAzWnE,CAAC,CAAC,CAAC,GAAG;QAAE,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,WAAW,MAAM,GAAG,IAAI;2BAC9E,OAAO;6BACL,SAAS,OAAO,EAAE;;;;kBAzFxB,KAAK,KAAG,IAAI;qBAIT,KAAK,KAAG,IAAI;kBA+FpB,KAAK;;;EAItB"}
@@ -17,6 +17,36 @@ function relayTextOf(source, content) {
17
17
  * consuming a later delegation's title without retaining unbounded text.
18
18
  */
19
19
  const MAX_PENDING_TASK_DESCRIPTIONS = 32;
20
+ /**
21
+ * Read one parent's direct children through whichever roster method the host
22
+ * service serves (shape probe, not version gate). Rejects when neither the
23
+ * legacy `listChildren` nor the rc.2 `listDescendants` exists, so a missing
24
+ * service is never mistaken for an empty roster.
25
+ */
26
+ export async function listDirectChildren(service, parentSessionId, signal) {
27
+ if (service?.listChildren !== undefined) {
28
+ const rows = await service.listChildren(parentSessionId, signal);
29
+ return rows.map(row => ({
30
+ id: row.id,
31
+ mode: row.mode,
32
+ ...(row.label === undefined ? {} : { label: row.label }),
33
+ ...(row.name === undefined ? {} : { name: row.name }),
34
+ }));
35
+ }
36
+ if (service?.listDescendants !== undefined) {
37
+ const rows = await service.listDescendants(parentSessionId, signal);
38
+ return rows.flatMap(row => row.kind !== 'child' || row.parentId !== parentSessionId
39
+ ? []
40
+ : [{
41
+ id: row.id,
42
+ mode: row.mode ?? 'unknown',
43
+ ...(row.label === undefined ? {} : { label: row.label }),
44
+ ...((row.path ?? row.name) === undefined ? {} : { name: row.path ?? row.name }),
45
+ ...(row.activity === undefined ? {} : { activity: row.activity }),
46
+ }]);
47
+ }
48
+ throw new Error('dsh-tui: the subagents continuation service is unavailable');
49
+ }
20
50
  /**
21
51
  * Keep each parked parent's reducer alive, including session links and the
22
52
  * stream attempt/settlement cursor. A display snapshot cannot resume either
@@ -32,7 +62,31 @@ export function createSubagentProjection(getState, deps) {
32
62
  let active = make();
33
63
  let activeParent = deps.agent();
34
64
  let restored = false;
35
- const childProjection = (id, parent) => {
65
+ const childProjection = (id, parent, parentSessionId) => {
66
+ // rc.2 names the direct creator in the payload but dispatches on its
67
+ // exact live tree root. A durable id alone cannot authenticate a carrier
68
+ // from an older activation of that tree.
69
+ if (parentSessionId !== undefined) {
70
+ const service = deps.subagents();
71
+ const matches = (agent) => {
72
+ if (String(agent.session.id) !== parentSessionId || parent == null)
73
+ return false;
74
+ if (service?.rootOf === undefined)
75
+ return parent === agent;
76
+ try {
77
+ return service.rootOf(agent) === parent;
78
+ }
79
+ catch {
80
+ return false;
81
+ }
82
+ };
83
+ if (matches(activeParent))
84
+ return active;
85
+ for (const [agent, projection] of parked)
86
+ if (matches(agent))
87
+ return projection;
88
+ return undefined;
89
+ }
36
90
  // A lifecycle carrier names the DIRECT delegating parent. Its visibility
37
91
  // filter also admits ancestors, which is not evidence of ownership.
38
92
  if (parent != null)
@@ -93,27 +147,32 @@ export function createSubagentProjection(getState, deps) {
93
147
  };
94
148
  /**
95
149
  * The addressable roster: the parent's durable direct-child catalog,
96
- * filtered to continuable children only. One-shot, unknown-mode and
97
- * diagnostic rows are not addressable (fail closed), and a missing
150
+ * filtered to continuable children only. One-shot, external, unknown-mode
151
+ * and diagnostic rows are not addressable (fail closed), and a missing
98
152
  * continuation service rejects instead of answering an empty roster.
153
+ *
154
+ * The roster read is probed by shape, not version: 0.2.2-rc.2 removed the
155
+ * service's `listChildren` and kept only the recursive `listDescendants`
156
+ * (direct children = depth 1). Older hosts serve `listChildren` directly.
99
157
  */
100
158
  const listTargets = async () => {
101
159
  const service = deps.subagents();
102
- if (service?.listChildren === undefined)
103
- throw new Error('dsh-tui: the subagents continuation service is unavailable');
104
- const entries = await service.listChildren(String(deps.agent().session.id));
105
- return entries
106
- .filter(entry => entry.mode === 'continuable')
107
- .map(entry => {
108
- const status = active.store.get(entry.id)?.status;
160
+ const parentSessionId = String(deps.agent().session.id);
161
+ const identityOf = (id, info) => {
162
+ const status = active.store.get(id)?.status;
109
163
  return {
110
- agentId: entry.id,
111
- sessionId: entry.id,
112
- ...(entry.label === undefined ? {} : { label: entry.label }),
164
+ agentId: id,
165
+ sessionId: id,
166
+ ...(info.name === undefined ? {} : { name: info.name }),
167
+ ...(info.label === undefined ? {} : { label: info.label }),
113
168
  mode: 'continuable',
114
169
  ...(status === undefined ? {} : { status }),
115
170
  };
116
- });
171
+ };
172
+ const children = await listDirectChildren(service, parentSessionId);
173
+ return children
174
+ .filter(child => child.mode === 'continuable')
175
+ .map(child => identityOf(child.id, { name: child.name, label: child.label }));
117
176
  };
118
177
  return {
119
178
  get store() { return active.store; },
@@ -156,8 +215,8 @@ export function createSubagentProjection(getState, deps) {
156
215
  return true;
157
216
  return active.onStreamFrame(agent, frame);
158
217
  },
159
- onStart(info, parent) { childProjection(info.id, parent)?.onStart(info); },
160
- onEnd(info, parent) { childProjection(info.id, parent)?.onEnd(info); },
218
+ onStart(info, parent) { childProjection(info.id, parent, info.parentSessionId)?.onStart(info); },
219
+ onEnd(info, parent) { childProjection(info.id, parent, info.parentSessionId)?.onEnd(info); },
161
220
  onParentEvent: (event) => active.onParentEvent(event),
162
221
  bootstrapFromLog(events) {
163
222
  // Live parked reducers already consumed this log. Re-folding historical
@@ -223,6 +282,7 @@ function createSessionSubagentProjection(getState, deps) {
223
282
  }
224
283
  const view = {
225
284
  agentId: sub.agentId, runId: sub.runId, description: sub.description,
285
+ ...(sub.name === undefined ? {} : { name: sub.name }),
226
286
  ...(sub.mode === undefined ? {} : { mode: sub.mode }),
227
287
  provider: sub.provider, model: sub.model || 'default', effort: sub.effort,
228
288
  status: sub.status, startedAt: sub.startedAt, completedAt: sub.completedAt,
@@ -380,6 +440,7 @@ function createSessionSubagentProjection(getState, deps) {
380
440
  const running = child?.status === 'running';
381
441
  store.onDiscovered(childId, {
382
442
  label: info.label,
443
+ name: info.name,
383
444
  childCreatedAt: info.childCreatedAt,
384
445
  live: running,
385
446
  provider: info.provider ?? child?.options?.provider,
@@ -448,8 +509,11 @@ function createSessionSubagentProjection(getState, deps) {
448
509
  if (childId === undefined)
449
510
  return;
450
511
  const rawMode = typeof data.mode === 'string' ? data.mode : undefined;
512
+ const rawName = typeof data.name === 'string' && data.name !== '' ? data.name : undefined;
451
513
  discover(childId, {
452
514
  label: typeof data.label === 'string' ? data.label : undefined,
515
+ // v3 adds the sibling-unique (path) name; older payloads carry none.
516
+ name: rawName,
453
517
  childCreatedAt: typeof data.childCreatedAt === 'number' ? data.childCreatedAt : eventTime(event),
454
518
  // v0 rows carry no mode; v1 also retains 'unknown' children.
455
519
  ...(rawMode === 'one-shot' || rawMode === 'continuable' || rawMode === 'unknown' ? { mode: rawMode } : {}),
@@ -31,7 +31,7 @@
31
31
  import { type SessionEvent } from '@deepseek-ai/dsh-session';
32
32
  import type { SubagentTranscriptPage, SubagentTranscriptWindow } from '../../agent/capabilities.js';
33
33
  import type { DshTranslator } from '../backend/translate.js';
34
- import type { SubagentsServiceView } from './subagent-projection.js';
34
+ import { type SubagentsServiceView } from './subagent-projection.js';
35
35
  /**
36
36
  * One page window in source events. Claude pages by 400 SDK messages
37
37
  * (`SUBAGENT_TRANSCRIPT_PAGE`) and the shared "load older" chunk is
@@ -1 +1 @@
1
- {"version":3,"file":"subagent-transcript.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/subagent-transcript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAGnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;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