@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
@@ -30,9 +30,10 @@ function mountedProvider(profile) {
30
30
  /** Cordis service holder; `api` is set by the plugin's apply. */
31
31
  export class DshAuthService extends Service {
32
32
  api;
33
- coupons = new WhaleCouponStore();
33
+ coupons;
34
34
  constructor(ctx) {
35
35
  super(ctx, 'dshAuth');
36
+ this.coupons = new WhaleCouponStore(operation => ctx.logger.warn(`dsh-auth: account notification ${operation} failed`));
36
37
  }
37
38
  }
38
39
  /** Select a provider interactively among `candidates`. */
@@ -174,11 +175,9 @@ export function createDshAuthApi(deps) {
174
175
  }
175
176
  await loginDeepSeekAccount(account, callbackOrigin, ask, runSignal);
176
177
  deps.coupons?.clear();
177
- const getUnnotifiedBonuses = account.getUnnotifiedBonuses?.bind(account);
178
- const ackBonusNotified = account.ackBonusNotified?.bind(account);
179
- if (getUnnotifiedBonuses !== undefined && ackBonusNotified !== undefined) {
180
- void deps.coupons?.refresh({ getUnnotifiedBonuses, ackBonusNotified });
181
- }
178
+ // One build serves both account APIs: the store probes the live
179
+ // service for notifications (0.2.2-rc.2) or the legacy bonus surface.
180
+ void deps.coupons?.refresh(account);
182
181
  return { provider: target, oauthLabel: 'DeepSeek', expiresAt: undefined };
183
182
  })()).finally(() => { inflight.delete(target); });
184
183
  return run;
@@ -62,10 +62,12 @@ export type PluginManageQuestion =
62
62
  readonly kind: 'host-row';
63
63
  }
64
64
  /**
65
- * `disable` of the Agent Teams bundle while teammates run, are being
66
- * created, or may be running unseen (`unseen`, from a teammate session):
67
- * the team service stops them as it unloads, so the person decides with
68
- * that in view.
65
+ * `disable` of the **legacy** Agent Teams bundle (`0.2.2-rc.1` and earlier)
66
+ * while teammates run, are being created, or may be running unseen
67
+ * (`unseen`, from a teammate session): that team service stops them as it
68
+ * unloads, so the person decides with that in view. A selection host
69
+ * (`0.2.2-rc.2`+) never lists this retired bundle and switches Team per
70
+ * session with `/team off` instead, where running subagents keep running.
69
71
  */
70
72
  | {
71
73
  readonly kind: 'team-active';
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-manage.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugin-manage.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAA4B,aAAa,EAAc,MAAM,uCAAuC,CAAA;AAChH,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAK/E,OAAO,EAAoE,KAAK,SAAS,EAA0B,MAAM,iBAAiB,CAAA;AAC1I,OAAO,EAAkF,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAG7I,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAK7E,mCAAmC;AACnC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AAElD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B;IACA,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B,GACC;IACA,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAA;IACpB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM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gB,CAAC,CAAA;IACpC;;;;;OAKG;IACH,OAAO,IAAI,IAAI,CAAA;CAChB;AAyGD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,GAAG,gBAAgB,CAsXzF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE;IAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAO,GAC1D,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,KAAK,gBAAgB,GAAG,SAAS,CAuBxE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAiB,GAAG,kBAAkB,GAAG,SAAS,CAGtH;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,MAAiB,GAC1B,uBAAuB,GAAG,SAAS,CAwCrC"}
@@ -252,8 +252,9 @@ export function createPluginManageFlow(options) {
252
252
  * - **`disable`** asks only about a row the host layer owns — the one whose
253
253
  * removal takes this application's own services down with it. A bundle and a
254
254
  * third-party row are reversible and run no new code, so the guard's
255
- * `allowed` is the whole answer — except the Agent Teams bundle while
256
- * teammates are active, whose running turns lose their team tools.
255
+ * `allowed` is the whole answer — except the legacy Agent Teams bundle
256
+ * while teammates are active (bundle hosts only; a selection host retired
257
+ * that bundle and uses `/team off`, which keeps subagents running).
257
258
  */
258
259
  async function ask(hostRowIds) {
259
260
  const resolved = target;
@@ -2,10 +2,13 @@ import type { Agent } from '@deepseek-ai/dsh-agent';
2
2
  import type { Context } from '@deepseek-ai/cordis';
3
3
  import { Config } from './index.js';
4
4
  import { type RuntimeConfig } from './compat/settings.js';
5
+ import type { PermissionRequestView } from '../agent/events.js';
5
6
  import { type CrashDetail } from '../utils/crashDetail.js';
6
7
  import { type PluginManagerView } from './plugin-manager.js';
7
8
  import { createTerminalNotifier, type NotificationMethod, type TaskNotifications } from '../ink/terminal-notification.js';
8
9
  import type { WindowsToastInput, WindowsToastResult } from '../ink/terminal-notification-windows.js';
10
+ import { type JumpBack } from '../ink/jumpback.js';
11
+ import type { QuestionItem, QuestionRequest } from '../channel/questions.js';
9
12
  import { initialPromptFromCmdlineArgs } from './startup-args.js';
10
13
  import { type KernelBackendId } from '../kernelPrefs.js';
11
14
  import { render } from '../ui.js';
@@ -69,20 +72,51 @@ export interface RuntimeApplyOptions {
69
72
  /** Filled with this runtime's exit funnel once mounted, cleared on teardown. */
70
73
  readonly exitSeam?: ProcessExitSeam;
71
74
  }
72
- /** Where a Windows task-completion announcement delivers, and where it falls back to. */
75
+ /**
76
+ * The jump-back capability one notification may promise (D4/D7/D8), as the
77
+ * orchestration in `../ink/jumpback.js` provides it. A regression injects a
78
+ * recorder here; production passes this process's orchestration.
79
+ */
80
+ export type TaskCompletionJumpBack = Pick<JumpBack, 'probe' | 'ensureProtocol' | 'writeMarker'>;
81
+ /** Where a Windows notification announcement delivers, and where it falls back to. */
73
82
  export interface TaskCompletionDelivery {
74
83
  /** Live inventory from the running profile; installed packages alone do not own events. */
75
84
  pluginManager?: Pick<PluginManagerView, 'listPlugins'>;
76
85
  /** Live owner/settings permission for pending native dispatch and fallback. */
77
86
  canDispatch?: () => boolean;
78
- /** Hand the completion to the native toast transport (D8 keeps the dedup inside it). */
87
+ /** Hand the notification to the native toast transport (D8 keeps the dedup inside it). */
79
88
  toast(input: WindowsToastInput): Promise<WindowsToastResult>;
80
89
  /** The terminal bell, used when the native transport is unavailable. */
81
90
  terminal(title: string, message: string): void;
91
+ /**
92
+ * Jump-back ports (D4/D7); absent, this process's orchestration is used
93
+ * once the setting is on. Nothing is asked at all while the setting is off.
94
+ */
95
+ jumpback?: TaskCompletionJumpBack;
96
+ /**
97
+ * The session this notification belongs to (D8): it names the documented marker
98
+ * file. Absent or unusable, a stable per-process name is used instead.
99
+ */
100
+ sessionId?: string;
101
+ /**
102
+ * The platform this delivery runs on (D4's win32 gate); defaults to
103
+ * `process.platform`. The regression injects it so the launch decision is
104
+ * assertable on a POSIX runner, mirroring the toast transport's own port.
105
+ */
106
+ platform?: NodeJS.Platform;
107
+ /**
108
+ * Whether an active external notifier owns this announcement. Defaults to
109
+ * yielding. Set `false` for a notice the external plugin does not cover:
110
+ * yielding hands the announcement to that plugin, and for a notice it cannot
111
+ * name (a plan review is not an approval and not an `ask_user_question` call)
112
+ * only the plugin's generic idle notice would remain, which does not say what
113
+ * is waiting.
114
+ */
115
+ yieldToExternal?: boolean;
82
116
  }
83
117
  /** The two live task-notification settings both delivery paths read. */
84
118
  export interface TaskNotificationSettings {
85
- /** When a completion is announced at all: `off` suppresses it entirely. */
119
+ /** When a notification is announced at all: `off` suppresses it entirely. */
86
120
  condition: TaskNotifications;
87
121
  /** How it is delivered: the native toast here, a terminal sequence or the bell there. */
88
122
  method: NotificationMethod;
@@ -114,7 +148,20 @@ export interface TaskNotificationSettingsHandle {
114
148
  */
115
149
  export declare function createTaskNotificationSettings(notifier: TerminalNotifier, initial: TaskNotificationSettings): TaskNotificationSettingsHandle;
116
150
  /**
117
- * Ring the terminal for a completion the host's gate already approved.
151
+ * Whether a notification is announced at all: the one gate shared by task
152
+ * completions and waiting interruptions, asked before the Windows transport so
153
+ * a suppressed notification never costs a PowerShell process, and so a
154
+ * delivered toast never also rings the bell. The Windows fallback re-enters
155
+ * through `ringTaskCompletion`, which carries this answer instead of asking the
156
+ * focus question again after the awaits.
157
+ * @param settings - The live notification settings.
158
+ * @param stdoutTty - Whether stdout is a TTY right now.
159
+ * @param focused - Whether the terminal reports focus right now.
160
+ * @returns True when the switch and the focus policy say this notification is due.
161
+ */
162
+ export declare function notificationAlertsEnabled(settings: TaskNotificationSettings, stdoutTty: boolean, focused: boolean): boolean;
163
+ /**
164
+ * Ring the terminal for a notification the host's gate already approved.
118
165
  *
119
166
  * The gate asks whether the terminal is focused; this port runs after the toast's
120
167
  * await, which is up to 30 s of PowerShell. Asking the focus question a second
@@ -129,7 +176,7 @@ export declare function createTaskNotificationSettings(notifier: TerminalNotifie
129
176
  */
130
177
  export declare function ringTaskCompletion(notifier: TerminalNotifier, settings: TaskNotificationSettings, title: string, message: string): void;
131
178
  /**
132
- * Show one task-completion toast and answer for what it did.
179
+ * Show one notification toast and answer for what it did.
133
180
  *
134
181
  * Exactly one answer reaches the terminal path: `unavailable` rings the bell
135
182
  * (AC-5), because the alternative is a notification the user never learns
@@ -140,10 +187,194 @@ export declare function ringTaskCompletion(notifier: TerminalNotifier, settings:
140
187
  * without a toast, a registry write or a child process.
141
188
  * @param title - The localized title.
142
189
  * @param message - The single-line summary; empty shows the title alone.
143
- * @param backendId - The session that completed; a DSH plugin only covers DSH events.
190
+ * @param backendId - The session the notification speaks for; a DSH plugin only covers DSH events.
144
191
  * @param delivery - The toast port, and the terminal path to fall back to.
145
192
  */
146
193
  export declare function deliverTaskCompletionOnWindows(title: string, message: string, backendId: string, delivery: TaskCompletionDelivery): Promise<void>;
194
+ export declare function applyJumpBackSetting(jumpback: Pick<JumpBack, 'sweepStale' | 'cleanup' | 'writeMarker'>, enabled: boolean, sessionId?: string, platform?: NodeJS.Platform): Promise<void>;
195
+ /**
196
+ * The approval notification body: the session, the tool and the asker's
197
+ * reason, in that order, with empty parts dropped. A session that is not named
198
+ * yet contributes a localized placeholder name rather than vanishing from the
199
+ * body altogether.
200
+ *
201
+ * The reason is host-provided text: DSH's sandbox escalation passes the model's
202
+ * own `justification` through verbatim, so it can carry arbitrary prose. It is
203
+ * normalized to one plain line and capped like the completion preview, but the
204
+ * body makes no redaction promise - the panel keeps the full reason and the
205
+ * gated command, and the tool call's arguments are never read for the body.
206
+ *
207
+ * The session name is the only part that may be shortened: a Windows toast
208
+ * keeps 80 cells of the body, and the tool and reason are what tells the
209
+ * reader which prompt is waiting, so the name is clipped first.
210
+ *
211
+ * Exported like the completion seams above so the regression can assert the
212
+ * exact body without a toast or a live approval request.
213
+ * @param sessionTitle - The attached session's title; empty before it is
214
+ * named, which falls back to a localized placeholder.
215
+ * @param toolName - The tool the prompt gates.
216
+ * @param reason - The asker's reason as the host provides it, when it gave one.
217
+ */
218
+ export declare function approvalNotificationMessage(sessionTitle: string, toolName: string, reason?: string): string;
219
+ /** One approval the notification seam may announce, with the facts its body needs. */
220
+ export interface ApprovalNotice {
221
+ /** The attached session's title; empty before it is named. */
222
+ readonly sessionTitle: string;
223
+ /** The tool the prompt gates. */
224
+ readonly toolName: string;
225
+ /** The asker's reason as the host provides it, when the request carries one. */
226
+ readonly reason?: string;
227
+ /** The backend that owns the attached session. */
228
+ readonly backendId: string;
229
+ }
230
+ /**
231
+ * Build the notice for a parked non-DSH prompt, or undefined when the prompt
232
+ * belongs to a subagent: that prompt still parks for the panel and its
233
+ * session-list badge, but it is not this window's waiting prompt and must not
234
+ * raise a notification here.
235
+ * @param request - The parked backend prompt.
236
+ * @param session - The attached session's title and backend.
237
+ * @returns The notice to announce, or undefined when the prompt is not this window's.
238
+ */
239
+ export declare function backendApprovalNotice(request: Pick<PermissionRequestView, 'agentId' | 'toolName' | 'reason'>, session: {
240
+ readonly title: string;
241
+ readonly backendId: string;
242
+ }): ApprovalNotice | undefined;
243
+ /**
244
+ * Build the notice for a DSH approval request, or undefined when the request
245
+ * belongs to another agent - a background session or a subagent. Those still
246
+ * park for the panel and its needs-input badge, but only the attached session's
247
+ * ask belongs in this window's notification.
248
+ * @param request - The agent id, tool and resolved reason of the approval request.
249
+ * @param session - The attached agent id, session title and backend.
250
+ * @returns The notice to announce, or undefined for another agent's request.
251
+ */
252
+ export declare function dshApprovalNotice(request: {
253
+ readonly agentId: string;
254
+ readonly toolName: string;
255
+ readonly reason?: string;
256
+ }, session: {
257
+ readonly attachedAgentId: string | undefined;
258
+ readonly title: string;
259
+ readonly backendId: string;
260
+ }): ApprovalNotice | undefined;
261
+ /**
262
+ * Whether a notification queued before the Windows transport may still be
263
+ * dispatched: the window must still own the channel, the switch must not have
264
+ * been turned off, the notice must speak for the session that is attached now,
265
+ * and the interruption it announces must still be waiting. A check that throws
266
+ * counts as released: a state the seam cannot read must not produce a toast
267
+ * about a prompt that may already be gone.
268
+ * @param input - The live facts read at dispatch time.
269
+ * @returns True when the notification is still true enough to show.
270
+ */
271
+ export declare function notificationDispatchAllowed(input: {
272
+ readonly ownerCurrent: boolean;
273
+ readonly condition: TaskNotifications;
274
+ readonly announcedSessionId: string | undefined;
275
+ readonly currentSessionId: string | undefined;
276
+ readonly stillWaiting?: () => boolean;
277
+ }): boolean;
278
+ /** The live facts one interruption announcement needs, injected so the seam is testable. */
279
+ export interface InterruptionAnnouncerFacts {
280
+ /** The terminal notifier the host configured, for the non-Windows path. */
281
+ readonly notifier: TerminalNotifier;
282
+ /** The live notification settings; the one writer mutates this object in place. */
283
+ readonly settings: () => TaskNotificationSettings;
284
+ /** Whether the shared focus/off gate says this notification is due right now. */
285
+ readonly alertsEnabled: () => boolean;
286
+ /** The platform the delivery method resolves against. */
287
+ readonly platform: NodeJS.Platform;
288
+ /** The attached session's id right now; the notice speaks for one session. */
289
+ readonly sessionId: () => string | undefined;
290
+ /** Whether the window still owns the channel at dispatch time. */
291
+ readonly ownerCurrent: () => boolean;
292
+ /** The DSH plugin inventory, when the host has one. */
293
+ readonly pluginManager: () => Pick<PluginManagerView, 'listPlugins'> | undefined;
294
+ /** The native toast transport. */
295
+ readonly toast: (input: WindowsToastInput) => Promise<WindowsToastResult>;
296
+ /** The jump-back orchestration this process hands every notification to. */
297
+ readonly jumpback: JumpBack;
298
+ }
299
+ /**
300
+ * Build the entry point that announces one waiting interruption - an approval,
301
+ * a waiting question or a plan review. The body is already
302
+ * decided by the caller; this seam owns the shared focus/off gate, the platform
303
+ * split, the jump-back ports and the dispatch rechecks. The gate runs before
304
+ * the Windows transport so a suppressed notification never costs a PowerShell
305
+ * process, and a delivered toast never also rings the bell.
306
+ * @param facts - The live ports and settings the announcement reads.
307
+ * @returns The function that announces one interruption; `options.yieldToExternal`
308
+ * is handed to the delivery, `options.stillWaiting` to its dispatch recheck.
309
+ */
310
+ export declare function createInterruptionAnnouncer(facts: InterruptionAnnouncerFacts): (title: string, message: string, backendId: string, options?: {
311
+ readonly stillWaiting?: () => boolean;
312
+ readonly yieldToExternal?: boolean;
313
+ }) => void;
314
+ /**
315
+ * The waiting-question notification body: the first question's header and
316
+ * question, trimmed and joined, with empty parts dropped. The body only has to
317
+ * say that the session is waiting for an answer - options, detail and link
318
+ * stay in the panel, because a lock screen is the wrong place to choose one.
319
+ * Both parts are host- or model-authored, so they get the same normalization as
320
+ * every other notification body (ANSI/C0 stripped, whitespace collapsed,
321
+ * 200-grapheme cap); a long question therefore cannot push the panel-only
322
+ * context into the notification, and a control sequence cannot reach either
323
+ * transport. Formatting only: {@link questionNotice} decides whether the ask is
324
+ * announced, and under which title.
325
+ * @param questions - The ask's questions, in display order.
326
+ */
327
+ export declare function questionNotificationMessage(questions: readonly QuestionItem[]): string;
328
+ /**
329
+ * The waiting-question notice: whether the ask is announced at all, under which
330
+ * title, and whether an external notifier owns it - decided once here so no
331
+ * caller has to infer it back from the title. A plan review is announced under
332
+ * its own title because what is waiting is a decision on a plan, not an answer
333
+ * to a generic prompt; naming it up front says so before the body is read.
334
+ *
335
+ * The plan review also stays in-house: cc-dsh-notifier announces approvals and
336
+ * `ask_user_question` calls (it listens to `approval/asked` and `tool/call`),
337
+ * and a plan review is neither. Yielding would leave only its generic idle
338
+ * notice, which does not say that a plan review is waiting. An ordinary ask
339
+ * keeps the default and yields to an active external notifier.
340
+ *
341
+ * A batch with nothing to say yields no notice: a title with an empty body is
342
+ * pure noise away from the terminal.
343
+ * @param questions - The ask's questions, in display order.
344
+ */
345
+ export declare function questionNotice(questions: readonly QuestionItem[]): {
346
+ titleKey: 'question-notification' | 'plan-review-notification';
347
+ message: string;
348
+ yieldToExternal: boolean;
349
+ } | undefined;
350
+ /**
351
+ * The DSH user-questions protocol names the asking agent on the raw request as
352
+ * `agent`; the neutral `QuestionRequest.agentId` is the *subagent* stamp the
353
+ * backend bridge adds. Read structurally, like `reasonOf` reads
354
+ * `displayReason`.
355
+ */
356
+ interface DshQuestionOwner {
357
+ /** The agent that asked; absent for agentless wizard requests (`/auth`, `/provider`). */
358
+ readonly agent?: {
359
+ readonly id: unknown;
360
+ };
361
+ }
362
+ /**
363
+ * The waiting-question notice for one ask, or undefined when the ask is not this
364
+ * window's. Two shapes name the asker: a backend bridge stamps the asking
365
+ * subagent in `agentId` (that ask still parks in the panel), while a DSH ask
366
+ * carries the protocol's `agent` object and, on the legacy `registerProvider`
367
+ * hosts, reaches this store for every in-process session. Only the attached
368
+ * session's asks become a system notification; an ask with no owner (a local
369
+ * wizard or `/auth`) has nothing to compare and is announced as before.
370
+ * Exported so the regression drives the production guard and title mapping
371
+ * instead of installing its own copy of them.
372
+ * @param request - The ask the store hands the observer, including the DSH
373
+ * protocol's structural `agent` when present.
374
+ * @param attachedAgentId - The session/agent this window is attached to now.
375
+ * @returns The notice to announce, or undefined when the ask stays in the panel.
376
+ */
377
+ export declare function waitingQuestionNotice(request: QuestionRequest & DshQuestionOwner, attachedAgentId?: string): ReturnType<typeof questionNotice>;
147
378
  export declare function apply(ctx: Context, runtimeConfig: RuntimeConfig<Config>, configOwner?: Context, runtimeOptions?: RuntimeApplyOptions): Promise<void>;
148
379
  /**
149
380
  * Distinguish a user-driven exit from a cordis context teardown (issue #12).
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAA;AAGhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAA+D,KAAK,aAAa,EAAE,MAAM,sBAAsB,CA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