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

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 (166) hide show
  1. package/README.md +63 -57
  2. package/cordis.patch.yml +5 -3
  3. package/cordis.yml +3 -2
  4. package/guide/dsh-tui-guide/configuration.en.md +1 -1
  5. package/guide/dsh-tui-guide/configuration.md +1 -1
  6. package/guide/dsh-tui-guide/getting-started.en.md +2 -2
  7. package/guide/dsh-tui-guide/getting-started.md +2 -2
  8. package/guide/dsh-tui-guide/user-guide.en.md +7 -2
  9. package/guide/dsh-tui-guide/user-guide.md +7 -2
  10. package/lib/settings.json +24 -8
  11. package/lib/types/adapter/ports/channel-view.d.ts +39 -3
  12. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  13. package/lib/types/agent/events.d.ts +3 -1
  14. package/lib/types/agent/events.d.ts.map +1 -1
  15. package/lib/types/backends/claude/tools.d.ts.map +1 -1
  16. package/lib/types/backends/claude/tools.js +8 -3
  17. package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
  18. package/lib/types/backends/codex/translate/presentation.js +5 -2
  19. package/lib/types/channel/interaction.d.ts.map +1 -1
  20. package/lib/types/channel/interaction.js +1 -0
  21. package/lib/types/channel/permissions.d.ts +15 -0
  22. package/lib/types/channel/permissions.d.ts.map +1 -1
  23. package/lib/types/channel/permissions.js +28 -0
  24. package/lib/types/channel/projection.d.ts.map +1 -1
  25. package/lib/types/channel/projection.js +11 -1
  26. package/lib/types/channel/questions.d.ts +26 -0
  27. package/lib/types/channel/questions.d.ts.map +1 -1
  28. package/lib/types/channel/questions.js +43 -0
  29. package/lib/types/commands.js +1 -1
  30. package/lib/types/components/MessageList.d.ts.map +1 -1
  31. package/lib/types/components/MessageList.js +3 -3
  32. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  33. package/lib/types/components/SplitDiffView.js +3 -2
  34. package/lib/types/components/StarPrompt.d.ts +5 -3
  35. package/lib/types/components/StarPrompt.d.ts.map +1 -1
  36. package/lib/types/components/StarPrompt.js +56 -6
  37. package/lib/types/components/SubagentCard.d.ts.map +1 -1
  38. package/lib/types/components/SubagentCard.js +1 -1
  39. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  40. package/lib/types/components/SubagentDashboard.js +3 -2
  41. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  42. package/lib/types/components/SubagentDetailScene.js +1 -1
  43. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  44. package/lib/types/components/messages/AssistantToolUseMessage.js +121 -23
  45. package/lib/types/components/teamRoster.d.ts +6 -3
  46. package/lib/types/components/teamRoster.d.ts.map +1 -1
  47. package/lib/types/dsh-adapter/approvals.d.ts +19 -0
  48. package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
  49. package/lib/types/dsh-adapter/approvals.js +17 -1
  50. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  51. package/lib/types/dsh-adapter/backend/translate.js +15 -3
  52. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  53. package/lib/types/dsh-adapter/channel/extensions.js +7 -4
  54. package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
  55. package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
  56. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
  57. package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
  58. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  59. package/lib/types/dsh-adapter/channel/settings-host.js +179 -33
  60. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
  61. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
  62. package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
  63. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
  64. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
  65. package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
  66. package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
  67. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
  68. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
  69. package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
  70. package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
  71. package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
  72. package/lib/types/dsh-adapter/compat/messages.js +2 -2
  73. package/lib/types/dsh-adapter/contract.d.ts +7 -4
  74. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  75. package/lib/types/dsh-adapter/contract.js +8 -4
  76. package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
  77. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
  78. package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
  79. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  80. package/lib/types/dsh-adapter/host-contract.js +2 -2
  81. package/lib/types/dsh-adapter/host-dsh.d.ts +2 -0
  82. package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
  83. package/lib/types/dsh-adapter/host-dsh.js +3 -0
  84. package/lib/types/dsh-adapter/index.d.ts +9 -1
  85. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  86. package/lib/types/dsh-adapter/index.js +5 -0
  87. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
  88. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
  89. package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
  90. package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
  91. package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
  92. package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
  93. package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
  94. package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
  95. package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
  96. package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
  97. package/lib/types/dsh-adapter/oauth/index.js +44 -0
  98. package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
  99. package/lib/types/dsh-adapter/oauth/service.js +5 -6
  100. package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
  101. package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
  102. package/lib/types/dsh-adapter/plugin-manage.js +3 -2
  103. package/lib/types/dsh-adapter/plugin.d.ts +237 -6
  104. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  105. package/lib/types/dsh-adapter/plugin.js +608 -23
  106. package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
  107. package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
  108. package/lib/types/dsh-adapter/session-projection-store.js +30 -23
  109. package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
  110. package/lib/types/dsh-adapter/sessionTree.js +4 -1
  111. package/lib/types/dsh-adapter/subagents.d.ts +1 -0
  112. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  113. package/lib/types/dsh-adapter/subagents.js +10 -2
  114. package/lib/types/dsh-adapter/team-mode.d.ts +29 -17
  115. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  116. package/lib/types/dsh-adapter/team-mode.js +138 -17
  117. package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
  118. package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
  119. package/lib/types/dsh-adapter/team-roster.js +206 -39
  120. package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
  121. package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
  122. package/lib/types/dsh-adapter/team-tools.js +81 -26
  123. package/lib/types/i18n.d.ts +65 -9
  124. package/lib/types/i18n.d.ts.map +1 -1
  125. package/lib/types/i18n.js +29 -8
  126. package/lib/types/ink/dom.d.ts.map +1 -1
  127. package/lib/types/ink/dom.js +13 -3
  128. package/lib/types/ink/flush-tick.d.ts +6 -0
  129. package/lib/types/ink/flush-tick.d.ts.map +1 -1
  130. package/lib/types/ink/flush-tick.js +31 -0
  131. package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
  132. package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
  133. package/lib/types/ink/hooks/use-terminal-title.js +23 -3
  134. package/lib/types/ink/ink.js +2 -2
  135. package/lib/types/ink/jumpback-state.d.ts +33 -0
  136. package/lib/types/ink/jumpback-state.d.ts.map +1 -0
  137. package/lib/types/ink/jumpback-state.js +51 -0
  138. package/lib/types/ink/jumpback.d.ts +78 -0
  139. package/lib/types/ink/jumpback.d.ts.map +1 -0
  140. package/lib/types/ink/jumpback.js +515 -0
  141. package/lib/types/ink/log-update.js +37 -14
  142. package/lib/types/ink/notify-helper/activate.cs +836 -0
  143. package/lib/types/ink/notify-helper/compile.d.ts +30 -0
  144. package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
  145. package/lib/types/ink/notify-helper/compile.js +235 -0
  146. package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
  147. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
  148. package/lib/types/ink/terminal-notification-windows.js +14 -21
  149. package/lib/types/ink/terminal-notification.d.ts +31 -2
  150. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  151. package/lib/types/ink/terminal-notification.js +51 -0
  152. package/lib/types/ink/terminal.d.ts +2 -1
  153. package/lib/types/ink/terminal.d.ts.map +1 -1
  154. package/lib/types/ink/terminal.js +9 -4
  155. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  156. package/lib/types/screens/AgentTranscriptScene.js +1 -1
  157. package/lib/types/screens/Chat.d.ts +4 -3
  158. package/lib/types/screens/Chat.d.ts.map +1 -1
  159. package/lib/types/screens/Chat.js +38 -9
  160. package/lib/types/settings/definitions.d.ts +12 -0
  161. package/lib/types/settings/definitions.d.ts.map +1 -1
  162. package/lib/types/settings/definitions.js +15 -7
  163. package/package.json +112 -112
  164. package/presets/liangshen/agent.cordis.yml +4 -0
  165. package/tui-profile/feed/README.md +1 -1
  166. package/tui-profile/feed/first-party.json +1 -1
@@ -44,7 +44,7 @@ const COMMAND_CLIP = 500;
44
44
  * @param req - The pending approval request.
45
45
  * @returns The localized reason, else `req.reason`.
46
46
  */
47
- function reasonOf(req) {
47
+ export function reasonOf(req) {
48
48
  const display = req.displayReason;
49
49
  if (display !== null && typeof display === 'object') {
50
50
  const byLang = display;
@@ -217,6 +217,22 @@ export class ApprovalStore {
217
217
  }
218
218
  return ids;
219
219
  }
220
+ /**
221
+ * Whether this exact request object is still parked (active or queued). A
222
+ * notification queued before the native transport dispatches uses it to drop
223
+ * a toast whose approval was answered in the meantime; object identity is the
224
+ * only per-ask identity the protocol carries (the request has no id of its
225
+ * own and a null callId is legal).
226
+ * @param request - The request object handed to {@link park}.
227
+ * @returns True while that ask is still waiting for a decision.
228
+ */
229
+ hasParkedRequest(request) {
230
+ for (const ask of this.active === undefined ? this.queue : [this.active, ...this.queue]) {
231
+ if (ask.request === request)
232
+ return true;
233
+ }
234
+ return false;
235
+ }
220
236
  /**
221
237
  * The first parked ask's detail for one agent — the agent view's row
222
238
  * summary while it needs input (the question it is blocked on).
@@ -1 +1 @@
1
- {"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/backend/translate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE,OAAO,KAAK,EAAE,YAAY,EAAqC,MAAM,0BAA0B,CAAA;AAC/F,OAAO,EAAa,KAAK,UAAU,EAAqB,KAAK,cAAc,EAA0D,MAAM,uBAAuB,CAAA;AAElK,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAI3D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,iBAA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iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAS1F,MAAM,WAAW,iBAAiB;IAChC;;0DAEsD;IACtD,KAAK,IAAI,iBAAiB,GAAG,SAAS,CAAA;IACtC;4EACwE;IACxE,KAAK,IAAI,OAAO,CAAA;IAChB;+DAC2D;IAC3D,WAAW,IAAI,OAAO,CAAA;CACvB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAmEtD;AAkGD,2EAA2E;AAC3E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB;4BAyL1B,YAAY,KAAG,SAAS,UAAU,EAAE;4BAmKpC,oBAAoB,KAAG,SAAS,UAAU,EAAE;8BAmB1C,SAAS,YAAY,EAAE,KAAG,SAAS,UAAU,EAAE;iBAY9D,IAAI;4BAjVS,MAAM,WAAW,MAAM,KAAG,YAAY,GAAG,SAAS;8BAgBhD,MAAM,WAAW,MAAM,QAAQ,YAAY,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,KAAG,cAAc,GAAG,SAAS;EA0UjI;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -2,6 +2,7 @@ import { NO_EVENTS } from '../../agent/events.js';
2
2
  import { isPeakHour } from '../../deepseekPricing.js';
3
3
  import { BACKGROUND_START_ACK, isSubagentToolName, parseJobOutputId, todoPanelItems, toolCommandOf } from '../channel/projection-helpers.js';
4
4
  import { harnessToolResultView, prepareReplayEvents, toolErrorText } from '../channel/transcript.js';
5
+ import { CompactionPreviews } from '../compat/compaction-previews.js';
5
6
  import { isCompactionCheckpointSource, toolResultPayload } from '../compat/messages.js';
6
7
  import { transcriptImagesOf } from '../transcript-images.js';
7
8
  import { isTeamToolName, TEAM_SPAWN_TOOL, teamMessageOf, teamToolCallView, teamToolResultView } from '../team-tools.js';
@@ -160,6 +161,7 @@ export function createDshTranslator(deps) {
160
161
  let lastStreamRevision = -1;
161
162
  /** Whether this session's first human prompt has been translated. */
162
163
  let promptSeen = false;
164
+ const compactionPreviews = new CompactionPreviews();
163
165
  /**
164
166
  * Open calls by callId until their result: what the result's presenter,
165
167
  * images and task feeds need. `card: false` = question-presented (the
@@ -248,10 +250,15 @@ export function createDshTranslator(deps) {
248
250
  // compat(dsh 0.2.0, log): a 0.2.0 mailbox delivery reads as the relay it became.
249
251
  const data = teamMailboxAsRelay(event.data);
250
252
  const base = { id: data.id, anchor: String(event.seq), seq: event.seq, time: event.time, blocks: data.content };
251
- // Both legacy and V4 checkpoints render as a folded summary rather than
253
+ // Full and partial checkpoints render as folded summaries rather than
252
254
  // disappearing with the other injected context.
253
255
  if (isCompactionCheckpointSource(data.source)) {
254
- return [{ type: 'user.message', ...base, source: 'compaction', text: textOf(data.content) }];
256
+ const compactPreview = compactionPreviews.take(data.source);
257
+ return [{
258
+ type: 'user.message', ...base, source: 'compaction', text: textOf(data.content),
259
+ ...(compactPreview === undefined ? {} : { compactPreview }),
260
+ ...(data.source.kind === 'spine-checkpoint' ? { compactionScope: 'partial' } : {}),
261
+ }];
255
262
  }
256
263
  // Same-session goal domain: goal-sourced messages are the round driver's
257
264
  // continuation prompts (positive rounds advance the counter); some hosts
@@ -347,6 +354,7 @@ export function createDshTranslator(deps) {
347
354
  };
348
355
  /** Translate one durable session event (live or as part of a replay). */
349
356
  const translateEvent = (event) => {
357
+ compactionPreviews.observe(event);
350
358
  const type = event.type;
351
359
  // Top-level `goal/change` events are how the goal service records durable
352
360
  // goal mutations (create/edit/pause/resume/complete/block/clear) —
@@ -392,7 +400,9 @@ export function createDshTranslator(deps) {
392
400
  openCalls.set(callId, { name: data.name, args: data.arguments, card: false });
393
401
  return [{ ...base, presentation: QUESTION }];
394
402
  }
395
- // The delegation tools render as the live subagent card.
403
+ // The delegation tools render as the live subagent card (a
404
+ // historical `spawn_teammate` call included: rc.2 removed the tool,
405
+ // but older logs still hold it and its result is not a card).
396
406
  if (isSubagentToolName(data.name)) {
397
407
  if (data.name === TEAM_SPAWN_TOOL)
398
408
  unwrittenSpawns.set(callId, base);
@@ -531,6 +541,7 @@ export function createDshTranslator(deps) {
531
541
  const translateReplay = (events) => {
532
542
  lastStreamRevision = -1;
533
543
  promptSeen = false;
544
+ compactionPreviews.clear();
534
545
  const out = [];
535
546
  for (const event of prepareReplayEvents(events)) {
536
547
  for (const translated of translateEvent(event))
@@ -542,6 +553,7 @@ export function createDshTranslator(deps) {
542
553
  const reset = () => {
543
554
  lastStreamRevision = -1;
544
555
  promptSeen = false;
556
+ compactionPreviews.clear();
545
557
  openCalls.clear();
546
558
  unwrittenSpawns.clear();
547
559
  };
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAyB5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AA6BpD,OAAO,EAAqB,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAsBzE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,OAAO,EACZ,aAAa,EAAE,SAAS,EACxB,OAAO,EAAE,oBAAoB,GAC5B,IAAI,CA2xBN"}
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAyB5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AA6BpD,OAAO,EAAqB,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAsBzE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,OAAO,EACZ,aAAa,EAAE,SAAS,EACxB,OAAO,EAAE,oBAAoB,GAC5B,IAAI,CA8xBN"}
@@ -212,7 +212,9 @@ export function attachDshExtensions(core, ctx, initialNative, options) {
212
212
  // `/team` is gated on its service, not on a backend capability: Help and `/`
213
213
  // completion read `commandList`, so this is the one catalog that can hide it
214
214
  // while `agentTeams` is absent. Keep the unfiltered list so a later service
215
- // mount restores the row without waiting for a skill-catalog refresh.
215
+ // mount restores the row without waiting for a skill-catalog refresh. On a
216
+ // selection host (0.2.2-rc.2+) `dsh-base` mounts the service unconditionally,
217
+ // so the row is always there — it carries the `/team on|off` switch.
216
218
  let commandBase = LOCAL_COMMANDS;
217
219
  const publishCommandList = (commands, emit = true) => {
218
220
  state.commandList = annotateCommandCapabilities(withTeamCommandVisibility(commands, teamServiceActive(ctx)), capabilitiesOf());
@@ -223,9 +225,10 @@ export function attachDshExtensions(core, ctx, initialNative, options) {
223
225
  // before the first skill-catalog refresh publishes a new one, and a command
224
226
  // whose capability is missing must never look usable in that window.
225
227
  publishCommandList(LOCAL_COMMANDS, false);
226
- // The team service appears and disappears with its bundle (HMR, a CLI or
227
- // Web write). Follow the same `internal/service` signal the team store reads,
228
- // so the command catalog and the Help/`/` popup change with it.
228
+ // The team service appears and disappears with its bundle on a bundle host
229
+ // (HMR, a CLI or Web write); a selection host mounts it with `dsh-base` for
230
+ // the whole process. Follow the same `internal/service` signal the team
231
+ // store reads, so the command catalog and the Help/`/` popup follow it.
229
232
  owner.own(ctx.on('internal/service', ((name) => {
230
233
  if (name === 'agentTeams')
231
234
  publishCommandList(commandBase);
@@ -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,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,GAAG,EAAE;QAAE,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IACnC,KAAK,EAAE;QAAE,OAAO,IAAI,OAAO,CAAA;KAAE,CAAA;IAC7B,OAAO,EAAE;QACP,OAAO,IAAI,OAAO,CAAA;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;EAyB3C"}
1
+ {"version":3,"file":"local-actions.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/local-actions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,GAAG,EAAE;QAAE,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IACnC,KAAK,EAAE;QAAE,OAAO,IAAI,OAAO,CAAA;KAAE,CAAA;IAC7B,OAAO,EAAE;QACP,OAAO,IAAI,OAAO,CAAA;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/dsh-adapter/channel/subagent-projection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAGzE,OAAO,EAAE,qBAAqB,EAAsB,MAAM,iBAAiB,CAAA;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACnG,OAAO,KAAK,EAAE,aAAa,EAAuB,uBAAuB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAClK,OAAO,KAAK,EAAE,YAAY,EAAyC,MAAM,YAAY,CAAA;AAmBrF,KAAK,eAAe,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,GAAG,cAAc,GAAG,MAAM,GAAG,YAAY,CAAC,CAAA;AAExG;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAA;IACjD;2CACuC;IACvC,MAAM,CAAC,CAAC,OAAO,EAAE;QACf,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;QAChC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;QAC/B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;QAC5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAA;QACpC,QAAQ,CAAC,OAAO,EAAE,SAAS;YAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAC9E,EAAE,MAA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