@dsmm/dsmm 0.2.0 → 0.2.2

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 (291) hide show
  1. package/README.md +38 -66
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +10 -2015
  3. package/agent-presets/dsmm-clarifier/agent.cordis.yml +24 -343
  4. package/agent-presets/dsmm-code-search/agent.cordis.yml +19 -6
  5. package/agent-presets/dsmm-coding/agent.cordis.yml +19 -438
  6. package/agent-presets/dsmm-complex/agent.cordis.yml +23 -1009
  7. package/agent-presets/dsmm-creative/agent.cordis.yml +25 -442
  8. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +29 -1013
  9. package/agent-presets/dsmm-deep/agent.cordis.yml +24 -1008
  10. package/agent-presets/dsmm-doc-search/agent.cordis.yml +19 -6
  11. package/agent-presets/dsmm-documenting/agent.cordis.yml +26 -439
  12. package/agent-presets/dsmm-frontend/agent.cordis.yml +21 -440
  13. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +22 -441
  14. package/agent-presets/dsmm-media-reader/agent.cordis.yml +19 -6
  15. package/agent-presets/dsmm-normal-task/agent.cordis.yml +19 -438
  16. package/agent-presets/dsmm-oracle/agent.cordis.yml +25 -340
  17. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +25 -340
  18. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +29 -2025
  19. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +24 -341
  20. package/agent-presets/dsmm-planner/agent.cordis.yml +14 -344
  21. package/agent-presets/dsmm-quick/agent.cordis.yml +19 -6
  22. package/agent-presets/dsmm-research/agent.cordis.yml +23 -8
  23. package/agent-presets/dsmm-reviewer/agent.cordis.yml +25 -340
  24. package/docs/agent-presets.md +36 -52
  25. package/docs/compatibility.md +50 -108
  26. package/docs/deferred-native-approval-risk.md +19 -0
  27. package/docs/design.md +2 -2
  28. package/docs/lsp.md +11 -21
  29. package/docs/migration-from-ocmm.md +2 -2
  30. package/docs/model-routing.md +84 -59
  31. package/docs/native-permissions.md +35 -0
  32. package/docs/profiles.md +40 -87
  33. package/docs/releasing.md +83 -2
  34. package/docs/roadmap.md +71 -17
  35. package/docs/settings-status.md +34 -169
  36. package/docs/skill-sync.md +52 -15
  37. package/lib/child-admission-contract.d.ts +37 -0
  38. package/lib/child-admission-contract.js +2 -0
  39. package/lib/child-admission.d.ts +42 -0
  40. package/lib/child-admission.js +162 -0
  41. package/lib/child-capture.d.ts +81 -0
  42. package/lib/child-capture.js +203 -0
  43. package/lib/child-evidence.d.ts +17 -0
  44. package/lib/child-evidence.js +43 -0
  45. package/lib/client/ChildrenPanel.d.ts +43 -0
  46. package/lib/client/ChildrenPanel.js +82 -0
  47. package/lib/client/DeploymentPage.js +15 -8
  48. package/lib/client/EditableChoice.d.ts +17 -0
  49. package/lib/client/EditableChoice.js +49 -0
  50. package/lib/client/PermissionsPanel.d.ts +14 -0
  51. package/lib/client/PermissionsPanel.js +46 -0
  52. package/lib/client/ProfilesSection.js +30 -15
  53. package/lib/client/RoleAvailability.d.ts +7 -0
  54. package/lib/client/RoleAvailability.js +19 -0
  55. package/lib/client/SessionProfiles.js +27 -9
  56. package/lib/client/StructuredEditor.js +15 -7
  57. package/lib/client/children-controller.d.ts +98 -0
  58. package/lib/client/children-controller.js +296 -0
  59. package/lib/client/children-locales.d.ts +367 -0
  60. package/lib/client/children-locales.js +69 -0
  61. package/lib/client/controller.d.ts +6 -1
  62. package/lib/client/controller.js +14 -8
  63. package/lib/client/deployment-data.d.ts +2 -1
  64. package/lib/client/deployment-data.js +34 -5
  65. package/lib/client/deployment-locales.d.ts +4 -0
  66. package/lib/client/deployment-locales.js +11 -2
  67. package/lib/client/diagnostics.d.ts +14 -0
  68. package/lib/client/diagnostics.js +53 -0
  69. package/lib/client/index.d.ts +4 -0
  70. package/lib/client/index.js +96 -2
  71. package/lib/client/locales.d.ts +54 -0
  72. package/lib/client/locales.js +34 -16
  73. package/lib/client/permission-client.d.ts +16 -0
  74. package/lib/client/permission-client.js +38 -0
  75. package/lib/client/permission-controller.d.ts +62 -0
  76. package/lib/client/permission-controller.js +149 -0
  77. package/lib/client/permission-locales.d.ts +114 -0
  78. package/lib/client/permission-locales.js +75 -0
  79. package/lib/client/session-labels.js +4 -4
  80. package/lib/client/structured.js +19 -5
  81. package/lib/client/styles.d.ts +1 -1
  82. package/lib/client/styles.js +20 -0
  83. package/lib/client.js +5780 -1679
  84. package/lib/core-permission-authority.d.ts +18 -0
  85. package/lib/core-permission-authority.js +255 -0
  86. package/lib/core-permissions.d.ts +8 -0
  87. package/lib/core-permissions.js +33 -0
  88. package/lib/delivery-authority.d.ts +68 -0
  89. package/lib/delivery-authority.js +260 -0
  90. package/lib/deployment-config.d.ts +23 -0
  91. package/lib/deployment-config.js +61 -40
  92. package/lib/deployment-permission-rules.d.ts +55 -0
  93. package/lib/deployment-permission-rules.js +306 -0
  94. package/lib/dsh-types.d.ts +10 -4
  95. package/lib/guards.d.ts +1 -1
  96. package/lib/guards.js +29 -8
  97. package/lib/host-llm-startup.d.ts +41 -0
  98. package/lib/host-llm-startup.js +65 -0
  99. package/lib/host-llm.d.ts +92 -0
  100. package/lib/host-llm.js +325 -0
  101. package/lib/index.d.ts +15 -4
  102. package/lib/index.js +300 -47
  103. package/lib/legacy-child-policy.d.ts +51 -0
  104. package/lib/legacy-child-policy.js +123 -0
  105. package/lib/legacy-read-composition.d.ts +20 -0
  106. package/lib/legacy-read-composition.js +144 -0
  107. package/lib/legacy-read-contracts.d.ts +157 -0
  108. package/lib/legacy-read-contracts.js +39 -0
  109. package/lib/legacy-read-host.d.ts +19 -0
  110. package/lib/legacy-read-host.js +67 -0
  111. package/lib/legacy-read-integration.d.ts +121 -0
  112. package/lib/legacy-read-integration.js +522 -0
  113. package/lib/legacy-read-proxy.d.ts +26 -0
  114. package/lib/legacy-read-proxy.js +237 -0
  115. package/lib/live-pi-ai-owner.d.ts +18 -0
  116. package/lib/live-pi-ai-owner.js +144 -0
  117. package/lib/llm-runtime.d.ts +11 -0
  118. package/lib/llm-runtime.js +21 -0
  119. package/lib/managed-settings.d.ts +5 -0
  120. package/lib/managed-settings.js +14 -0
  121. package/lib/model-parameter-policy.d.ts +11 -0
  122. package/lib/model-parameter-policy.js +27 -0
  123. package/lib/model-routing.js +28 -17
  124. package/lib/modules.d.ts +13 -5
  125. package/lib/modules.js +17 -1
  126. package/lib/native-child-evidence.d.ts +42 -0
  127. package/lib/native-child-evidence.js +133 -0
  128. package/lib/native-pi-ai-wire.d.ts +37 -0
  129. package/lib/native-pi-ai-wire.js +261 -0
  130. package/lib/native-scope.js +1 -1
  131. package/lib/permission-bash.d.ts +6 -0
  132. package/lib/permission-bash.js +7 -0
  133. package/lib/permission-control.d.ts +73 -0
  134. package/lib/permission-control.js +205 -0
  135. package/lib/permission-controller.d.ts +68 -0
  136. package/lib/permission-controller.js +317 -0
  137. package/lib/permission-errors.d.ts +7 -0
  138. package/lib/permission-errors.js +21 -0
  139. package/lib/permission-fs-search.d.ts +5 -0
  140. package/lib/permission-fs-search.js +7 -0
  141. package/lib/permission-fs.d.ts +5 -0
  142. package/lib/permission-fs.js +7 -0
  143. package/lib/permission-native-access.d.ts +11 -0
  144. package/lib/permission-native-access.js +6 -0
  145. package/lib/permission-native-command.d.ts +10 -0
  146. package/lib/permission-native-command.js +93 -0
  147. package/lib/permission-native-rules.d.ts +75 -0
  148. package/lib/permission-native-rules.js +278 -0
  149. package/lib/permission-pwsh.d.ts +6 -0
  150. package/lib/permission-pwsh.js +7 -0
  151. package/lib/permission-remote.d.ts +26 -0
  152. package/lib/permission-remote.js +53 -0
  153. package/lib/permission-rpc.d.ts +29 -0
  154. package/lib/permission-rpc.js +152 -0
  155. package/lib/permission-rules.d.ts +115 -0
  156. package/lib/permission-rules.js +256 -0
  157. package/lib/permission-settings.d.ts +45 -0
  158. package/lib/permission-settings.js +48 -0
  159. package/lib/permission-shell.d.ts +38 -0
  160. package/lib/permission-shell.js +150 -0
  161. package/lib/permission-web.d.ts +5 -0
  162. package/lib/permission-web.js +7 -0
  163. package/lib/preset-registry.js +36 -25
  164. package/lib/profile-diagnostics.d.ts +45 -0
  165. package/lib/profile-diagnostics.js +148 -0
  166. package/lib/profile-locale.d.ts +3 -0
  167. package/lib/profile-locale.js +2 -0
  168. package/lib/profile-remote.d.ts +8 -0
  169. package/lib/profile-remote.js +163 -39
  170. package/lib/profile-rpc.d.ts +4 -3
  171. package/lib/profile-rpc.js +14 -12
  172. package/lib/profile-runtime.d.ts +40 -1
  173. package/lib/profile-runtime.js +368 -93
  174. package/lib/profile-store.d.ts +11 -0
  175. package/lib/profile-store.js +143 -11
  176. package/lib/profile-types.d.ts +70 -1
  177. package/lib/profile-types.js +1 -0
  178. package/lib/profiles.d.ts +16 -2
  179. package/lib/profiles.js +156 -79
  180. package/lib/prompt-content.js +1 -1
  181. package/lib/prompts.d.ts +37 -2
  182. package/lib/prompts.js +111 -9
  183. package/lib/recovery-policy.js +20 -7
  184. package/lib/role-control-remote.d.ts +38 -0
  185. package/lib/role-control-remote.js +211 -0
  186. package/lib/role-control-rpc.d.ts +51 -0
  187. package/lib/role-control-rpc.js +377 -0
  188. package/lib/role-control-types.d.ts +92 -0
  189. package/lib/role-control-types.js +8 -0
  190. package/lib/role-invocation.d.ts +47 -0
  191. package/lib/role-invocation.js +135 -0
  192. package/lib/role-llm-runtime.d.ts +17 -0
  193. package/lib/role-llm-runtime.js +62 -0
  194. package/lib/role-llm.d.ts +31 -0
  195. package/lib/role-llm.js +66 -0
  196. package/lib/role-policy.d.ts +49 -8
  197. package/lib/role-policy.js +437 -60
  198. package/lib/role-providers.d.ts +1 -1
  199. package/lib/role-providers.js +30 -35
  200. package/lib/role-routing.d.ts +11 -2
  201. package/lib/role-routing.js +42 -25
  202. package/lib/role-runs.d.ts +135 -0
  203. package/lib/role-runs.js +304 -0
  204. package/lib/role-subagents.d.ts +58 -3
  205. package/lib/role-subagents.js +169 -56
  206. package/lib/roles.d.ts +5 -6
  207. package/lib/roles.js +10 -39
  208. package/lib/route-json.d.ts +19 -0
  209. package/lib/route-json.js +129 -0
  210. package/lib/routing-policy.d.ts +2 -0
  211. package/lib/routing-policy.js +12 -2
  212. package/lib/runtime-integration.d.ts +112 -0
  213. package/lib/runtime-integration.js +784 -0
  214. package/lib/runtime-recovery.js +18 -8
  215. package/lib/settings.d.ts +47 -13
  216. package/lib/settings.js +217 -82
  217. package/lib/skills.js +2 -2
  218. package/lib/status.d.ts +10 -1
  219. package/lib/status.js +11 -8
  220. package/lib/subagent-runtime.d.ts +45 -0
  221. package/lib/subagent-runtime.js +131 -0
  222. package/package.json +106 -56
  223. package/patches/subagent-runtime.yml +15 -0
  224. package/prompts/deepseek-flash.md +1 -1
  225. package/prompts/deepseek-v4-pro.md +2 -2
  226. package/prompts/deepwork.md +27 -18
  227. package/prompts/source/agents/clarifier.md +5 -3
  228. package/prompts/source/agents/orchestrator.md +18 -9
  229. package/prompts/source/agents/plan-critic.md +5 -1
  230. package/prompts/source/agents/planner.md +4 -2
  231. package/prompts/source/agents/reviewer.md +6 -0
  232. package/prompts/source/category/complex.md +4 -4
  233. package/prompts/source/category/creative.md +6 -4
  234. package/prompts/source/category/cross-cutting.md +10 -8
  235. package/prompts/source/category/deep.md +5 -3
  236. package/prompts/source/category/documenting.md +7 -1
  237. package/prompts/source/category/frontend.md +2 -2
  238. package/prompts/source/category/hard-reasoning.md +3 -3
  239. package/prompts/source/category/research.md +4 -2
  240. package/prompts/source/deepwork/claude-opus-5.md +2 -2
  241. package/prompts/source/deepwork/codex.md +1 -1
  242. package/prompts/source/deepwork/default.md +22 -15
  243. package/prompts/source/deepwork/gemini.md +23 -16
  244. package/prompts/source/deepwork/glm.md +21 -14
  245. package/prompts/source/deepwork/gpt.md +12 -6
  246. package/prompts/source/deepwork/planner.md +8 -5
  247. package/prompts/source/manifest.json +178 -63
  248. package/prompts/source/shared/dsh-host-contract.md +5 -3
  249. package/prompts/source/shared/locale.md +2 -2
  250. package/prompts/source/terminal/orchestrator.md +1 -1
  251. package/scripts/cold-profile-composition.mjs +329 -0
  252. package/scripts/cold-profile-sources.mjs +238 -0
  253. package/scripts/migrate-cold-profile.mjs +315 -0
  254. package/skills/ast-grep/SKILL.md +7 -4
  255. package/skills/brainstorming/SKILL.md +43 -22
  256. package/skills/coding-agent-sessions/SKILL.md +7 -4
  257. package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
  258. package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
  259. package/skills/debugging/SKILL.md +14 -9
  260. package/skills/debugging/references/methodology/00-setup.md +14 -62
  261. package/skills/debugging/references/methodology/02-investigate.md +4 -4
  262. package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
  263. package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
  264. package/skills/debugging/references/methodology/06-fix.md +6 -6
  265. package/skills/debugging/references/methodology/08-qa.md +5 -5
  266. package/skills/debugging/references/methodology/09-cleanup.md +15 -153
  267. package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
  268. package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
  269. package/skills/debugging/references/runtimes/native-binary.md +9 -54
  270. package/skills/debugging/references/runtimes/node.md +4 -15
  271. package/skills/debugging/references/runtimes/python.md +3 -15
  272. package/skills/debugging/references/runtimes/rust.md +2 -18
  273. package/skills/debugging/references/tools/dap.md +1 -1
  274. package/skills/debugging/references/tools/ghidra.md +4 -15
  275. package/skills/debugging/references/tools/playwright-cli.md +3 -15
  276. package/skills/debugging/references/tools/pwntools.md +4 -16
  277. package/skills/dispatching-parallel-agents/SKILL.md +18 -16
  278. package/skills/frontend/SKILL.md +7 -4
  279. package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
  280. package/skills/git-master/SKILL.md +7 -4
  281. package/skills/init-deep/SKILL.md +7 -4
  282. package/skills/receiving-code-review/SKILL.md +17 -12
  283. package/skills/remove-ai-slops/SKILL.md +39 -38
  284. package/skills/requesting-code-review/SKILL.md +19 -17
  285. package/skills/requesting-code-review/code-reviewer.md +13 -1
  286. package/skills/subagent-driven-development/SKILL.md +29 -26
  287. package/skills/subagent-driven-development/implementer-prompt.md +29 -11
  288. package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
  289. package/skills/using-git-worktrees/SKILL.md +7 -4
  290. package/skills/writing-plans/SKILL.md +29 -24
  291. package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
@@ -0,0 +1,296 @@
1
+ import { ROLE_CONTROL_REMOTE, parseChildSessionSnapshot, parseRoleControlDescendants, parseRoleControlErrorInfo, parseRoleControlPromptRequest } from "../role-control-remote.js";
2
+ export const EMPTY_CHILD_DRAFT = { text: "", delivery: "queue", images: [], imageBusy: false, uncertain: false };
3
+ export const childActionKey = (childId) => `child:${childId}`;
4
+ export const runActionKey = (toolCallId, runId) => `run:${JSON.stringify([toolCallId, runId])}`;
5
+ export function enabled(availability) { return availability?.enabled === true; }
6
+ class ControlFailure extends Error {
7
+ safe;
8
+ constructor(safe) {
9
+ super("Child control refused.");
10
+ this.safe = safe;
11
+ }
12
+ }
13
+ /** Client presentation/draft state only. Host owns all run, inbox and admission authority. */
14
+ export class ChildrenController {
15
+ remote;
16
+ current = { sessionId: null, generation: 0, snapshot: null, descendants: null, fresh: false, reading: false,
17
+ issue: null, descendantIssue: null, drafts: new Map(), pending: new Map(), issues: new Map(), outcomes: new Map() };
18
+ owner = null;
19
+ connection = null;
20
+ connectionGeneration;
21
+ observedAdmission = null;
22
+ disposed = false;
23
+ listeners = new Set();
24
+ store = {
25
+ getSnapshot: () => this.current,
26
+ subscribe: (listener) => { this.listeners.add(listener); return () => { this.listeners.delete(listener); }; },
27
+ };
28
+ actions = {
29
+ refresh: generation => this.refresh(generation), background: (generation, call, run) => this.background(generation, call, run),
30
+ prompt: (generation, child) => this.prompt(generation, child), interrupt: (generation, child) => this.interrupt(generation, child),
31
+ editText: (generation, child, text) => this.editDraft(generation, child, { text }),
32
+ setDelivery: (generation, child, delivery) => this.editDraft(generation, child, { delivery }),
33
+ addImages: (generation, child, files) => this.addImages(generation, child, files),
34
+ removeImage: (generation, child, image) => { const draft = this.draft(child); if (!draft.imageBusy)
35
+ this.editDraft(generation, child, { images: draft.images.filter(part => part !== image) }); },
36
+ acknowledgeUnknown: (generation, child) => { if (this.available(generation))
37
+ this.editDraft(generation, child, { uncertain: false }); },
38
+ };
39
+ constructor(remote) {
40
+ this.remote = remote;
41
+ }
42
+ dispose() { if (this.disposed)
43
+ return; this.owner = null; this.connection = null; this.fence(false); this.disposed = true; this.listeners.clear(); }
44
+ bindConnection(connection, generation) {
45
+ if (this.disposed || connection === this.connection && generation === this.connectionGeneration)
46
+ return;
47
+ this.connection = connection;
48
+ this.connectionGeneration = generation;
49
+ this.fence(true);
50
+ if (connection !== null)
51
+ void this.refresh(this.current.generation);
52
+ }
53
+ bindScope(sessionId, owner) {
54
+ if (this.disposed || sessionId === this.current.sessionId && owner === this.owner)
55
+ return;
56
+ this.owner = owner;
57
+ this.observedAdmission = null;
58
+ this.fence(false, sessionId);
59
+ if (sessionId !== null && owner !== null)
60
+ void this.refresh(this.current.generation);
61
+ }
62
+ observeAdmission(sessionId, epoch) {
63
+ if (this.disposed || sessionId !== this.current.sessionId || epoch === this.observedAdmission)
64
+ return;
65
+ this.observedAdmission = epoch;
66
+ if (this.current.snapshot?.admissionEpoch === epoch)
67
+ return;
68
+ this.fence(true);
69
+ void this.refresh(this.current.generation);
70
+ }
71
+ publish(patch) {
72
+ if (this.disposed)
73
+ return;
74
+ this.current = { ...this.current, ...patch };
75
+ for (const listener of this.listeners)
76
+ listener();
77
+ }
78
+ fence(preserveDrafts, sessionId = this.current.sessionId) {
79
+ const drafts = new Map();
80
+ if (preserveDrafts)
81
+ for (const [id, draft] of this.current.drafts)
82
+ drafts.set(id, { ...draft, imageBusy: false,
83
+ uncertain: draft.uncertain || this.current.pending.get(childActionKey(id)) === "prompt" });
84
+ this.publish({ sessionId, generation: this.current.generation + 1, snapshot: preserveDrafts ? this.current.snapshot : null,
85
+ fresh: false, descendants: null, reading: false, drafts, pending: new Map(), issues: new Map(), outcomes: new Map(), issue: null, descendantIssue: null });
86
+ }
87
+ live(generation) { return !this.disposed && generation === this.current.generation && this.owner !== null && this.connection !== null && this.current.sessionId !== null; }
88
+ available(generation) { return this.live(generation) && this.current.fresh && !this.current.reading; }
89
+ draft(id) { return this.current.drafts.get(id) ?? EMPTY_CHILD_DRAFT; }
90
+ child(id) { return this.current.snapshot?.children.find(child => child.id === id && child.parentSessionId === this.current.sessionId); }
91
+ editDraft(generation, id, patch) {
92
+ if (this.disposed || generation !== this.current.generation || this.child(id)?.mode !== "continuable" || this.current.pending.has(childActionKey(id)))
93
+ return;
94
+ this.publishDraft(id, patch);
95
+ }
96
+ publishDraft(id, patch) {
97
+ const drafts = new Map(this.current.drafts);
98
+ drafts.set(id, { ...this.draft(id), ...patch });
99
+ this.publish({ drafts });
100
+ }
101
+ issue(error) {
102
+ if (error instanceof ControlFailure)
103
+ return error.safe;
104
+ return { kind: "transport", code: "unavailable", unknown: true };
105
+ }
106
+ async unwrap(method, call) {
107
+ const result = await call();
108
+ if (!result.ok) {
109
+ if (result.error.code === "dsmm-children/refused") {
110
+ let info;
111
+ try {
112
+ info = parseRoleControlErrorInfo(result.error.details);
113
+ }
114
+ catch {
115
+ throw new ControlFailure({ kind: "protocol", code: "unavailable", unknown: true });
116
+ }
117
+ throw new ControlFailure({ kind: "domain", ...info });
118
+ }
119
+ throw new ControlFailure({ kind: "transport", code: "unavailable", unknown: true });
120
+ }
121
+ try {
122
+ const codec = ROLE_CONTROL_REMOTE.descriptors.find(row => row.method === method).result;
123
+ if (codec.mode !== "strict")
124
+ throw new TypeError("Child result requires a strict codec.");
125
+ return codec.create().parse(result.value);
126
+ }
127
+ catch {
128
+ throw new ControlFailure({ kind: "protocol", code: "unavailable", unknown: true });
129
+ }
130
+ }
131
+ async refresh(generation) {
132
+ if (!this.live(generation) || this.current.reading || this.current.pending.size > 0 || [...this.current.drafts.values()].some(draft => draft.imageBusy))
133
+ return;
134
+ const id = this.current.sessionId;
135
+ this.publish({ reading: true, issue: null, descendantIssue: null, fresh: false });
136
+ const [description, descendants] = await Promise.allSettled([this.unwrap("describe", () => this.remote.describe(id)), this.unwrap("descendants", () => this.remote.descendants(id))]);
137
+ if (!this.live(generation))
138
+ return;
139
+ if (description.status === "rejected") {
140
+ this.publish({ reading: false, issue: this.issue(description.reason), descendants: null });
141
+ return;
142
+ }
143
+ const snapshot = parseChildSessionSnapshot(description.value);
144
+ if (snapshot.sessionId !== id) {
145
+ this.publish({ reading: false, issue: { kind: "protocol", code: "not-owned" }, descendants: null });
146
+ return;
147
+ }
148
+ if (this.observedAdmission !== null && snapshot.admissionEpoch !== this.observedAdmission) {
149
+ this.publish({ reading: false, issue: { kind: "protocol", code: "conflict" }, descendants: null });
150
+ return;
151
+ }
152
+ let tree = null, descendantIssue = null;
153
+ if (descendants.status === "rejected")
154
+ descendantIssue = this.issue(descendants.reason);
155
+ else {
156
+ tree = parseRoleControlDescendants(descendants.value);
157
+ if (tree.sessionId !== id || tree.admissionEpoch !== snapshot.admissionEpoch) {
158
+ tree = null;
159
+ descendantIssue = { kind: "protocol", code: "conflict" };
160
+ }
161
+ }
162
+ this.publish({ snapshot, descendants: tree, descendantIssue, fresh: true, reading: false, generation: generation + 1 });
163
+ }
164
+ begin(key, kind) {
165
+ const pending = new Map(this.current.pending), issues = new Map(this.current.issues), outcomes = new Map(this.current.outcomes);
166
+ pending.set(key, kind);
167
+ issues.delete(key);
168
+ outcomes.delete(key);
169
+ this.publish({ pending, issues, outcomes });
170
+ }
171
+ finish(key) { const pending = new Map(this.current.pending); pending.delete(key); this.publish({ pending }); }
172
+ refuse(key, error) { const issues = new Map(this.current.issues); issues.set(key, this.issue(error)); this.publish({ issues }); }
173
+ accepted(key, outcome) { const outcomes = new Map(this.current.outcomes); outcomes.set(key, outcome); this.publish({ outcomes }); }
174
+ async background(generation, toolCallId, runId) {
175
+ const key = runActionKey(toolCallId, runId), snapshot = this.current.snapshot;
176
+ const run = snapshot?.runs.find(row => row.toolCallId === toolCallId && row.invocation?.runId === runId);
177
+ if (!this.available(generation) || this.current.pending.has(key) || this.current.outcomes.get(key)?.kind === "background"
178
+ || run?.state !== "running" || !enabled(run.background) || !enabled(snapshot?.capabilities.background))
179
+ return;
180
+ this.begin(key, "background");
181
+ try {
182
+ const receipt = await this.unwrap("background", () => this.remote.background(snapshot.sessionId, { sessionId: snapshot.sessionId, toolCallId, runId, expectedAdmissionEpoch: snapshot.admissionEpoch }));
183
+ if (!this.live(generation))
184
+ return;
185
+ if (receipt.runId !== runId)
186
+ throw new ControlFailure({ kind: "protocol", code: "conflict", unknown: true });
187
+ this.accepted(key, { kind: "background", receipt });
188
+ }
189
+ catch (error) {
190
+ if (this.live(generation))
191
+ this.refuse(key, error);
192
+ }
193
+ finally {
194
+ if (this.live(generation))
195
+ this.finish(key);
196
+ }
197
+ }
198
+ canControl(generation, id, action) {
199
+ const child = this.child(id);
200
+ return this.available(generation) && !this.current.pending.has(childActionKey(id)) && child?.mode === "continuable" && !child.readonly
201
+ && enabled(child.controls[action]) && enabled(this.current.snapshot?.capabilities[action]);
202
+ }
203
+ async prompt(generation, id) {
204
+ const draft = this.draft(id), key = childActionKey(id);
205
+ if (!this.canControl(generation, id, "prompt") || draft.uncertain || draft.imageBusy || draft.text.trim() === "" && draft.images.length === 0
206
+ || draft.images.length > 0 && !enabled(this.current.snapshot?.capabilities.images))
207
+ return;
208
+ this.begin(key, "prompt");
209
+ try {
210
+ let clientTimeZone;
211
+ try {
212
+ clientTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
213
+ }
214
+ catch { /* Omission delegates to native zone handling. */ }
215
+ let request;
216
+ try {
217
+ request = parseRoleControlPromptRequest({ requestId: crypto.randomUUID(), parentSessionId: this.current.sessionId, childSessionId: id, mode: "continuable", delivery: draft.delivery,
218
+ content: [...(draft.text === "" ? [] : [{ type: "text", text: draft.text }]), ...draft.images], ...(clientTimeZone === undefined ? {} : { clientTimeZone }) });
219
+ }
220
+ catch {
221
+ throw new ControlFailure({ kind: "local", code: "invalid-content" });
222
+ }
223
+ const receipt = await this.unwrap("prompt", () => this.remote.prompt(this.current.sessionId, request));
224
+ if (!this.live(generation))
225
+ return;
226
+ this.accepted(key, { kind: "prompt", receipt });
227
+ const drafts = new Map(this.current.drafts);
228
+ drafts.set(id, { ...draft, text: "", images: [], uncertain: false });
229
+ this.publish({ drafts });
230
+ }
231
+ catch (error) {
232
+ if (this.live(generation)) {
233
+ const issue = this.issue(error);
234
+ this.refuse(key, error);
235
+ if (issue.unknown) {
236
+ const drafts = new Map(this.current.drafts);
237
+ drafts.set(id, { ...this.draft(id), uncertain: true });
238
+ this.publish({ drafts });
239
+ }
240
+ }
241
+ }
242
+ finally {
243
+ if (this.live(generation))
244
+ this.finish(key);
245
+ }
246
+ }
247
+ async interrupt(generation, id) {
248
+ if (!this.canControl(generation, id, "interrupt"))
249
+ return;
250
+ const key = childActionKey(id);
251
+ this.begin(key, "interrupt");
252
+ try {
253
+ const receipt = await this.unwrap("interrupt", () => this.remote.interrupt(this.current.sessionId, { parentSessionId: this.current.sessionId, childSessionId: id, mode: "continuable" }));
254
+ if (this.live(generation))
255
+ this.accepted(key, { kind: "interrupt", receipt });
256
+ }
257
+ catch (error) {
258
+ if (this.live(generation))
259
+ this.refuse(key, error);
260
+ }
261
+ finally {
262
+ if (this.live(generation))
263
+ this.finish(key);
264
+ }
265
+ }
266
+ async addImages(generation, id, files) {
267
+ if (!this.canControl(generation, id, "prompt") || !enabled(this.current.snapshot?.capabilities.images) || this.draft(id).imageBusy || files.length === 0)
268
+ return;
269
+ this.editDraft(generation, id, { imageBusy: true });
270
+ try {
271
+ const images = [];
272
+ for (const file of files) {
273
+ const bytes = new Uint8Array(await file.arrayBuffer());
274
+ if (!this.live(generation))
275
+ return;
276
+ let body = "";
277
+ for (const byte of bytes)
278
+ body += String.fromCharCode(byte);
279
+ const parsed = parseRoleControlPromptRequest({ requestId: "image-intake", parentSessionId: this.current.sessionId, childSessionId: id, mode: "continuable", delivery: "queue",
280
+ content: [{ type: "image", mediaType: file.type, data: btoa(body), name: file.name }] });
281
+ images.push(parsed.content[0]);
282
+ }
283
+ if (this.live(generation))
284
+ this.publishDraft(id, { images: [...this.draft(id).images, ...images] });
285
+ }
286
+ catch {
287
+ if (this.live(generation))
288
+ this.refuse(childActionKey(id), new ControlFailure({ kind: "local", code: "invalid-content" }));
289
+ }
290
+ finally {
291
+ if (this.live(generation))
292
+ this.publishDraft(id, { imageBusy: false });
293
+ }
294
+ }
295
+ }
296
+ //# sourceMappingURL=children-controller.js.map
@@ -0,0 +1,367 @@
1
+ import type { RoleControlDisabledReason } from "../role-control-types.js";
2
+ export declare const CHILDREN_NS = "conversation.dsmm-children";
3
+ export declare const childrenEn: {
4
+ readonly title: "Deepwork children";
5
+ readonly description: "Observed native runs and child conversations. Refresh for current state; receipts are not completion.";
6
+ readonly refresh: "Refresh";
7
+ readonly reading: "Reading…";
8
+ readonly pending: "Request pending…";
9
+ readonly noSession: "No native session scope. Child controls are unavailable.";
10
+ readonly unavailable: "Observation unavailable. Reconnect and refresh; no action was inferred.";
11
+ readonly stale: "Previous observation only. Refresh before controlling this session.";
12
+ readonly foreign: "This view does not own the current native session scope.";
13
+ readonly session: "Session";
14
+ readonly epoch: "Parent admission epoch";
15
+ readonly runs: "One-shot runs";
16
+ readonly children: "Direct children";
17
+ readonly descendants: "Descendant inspection";
18
+ readonly emptyRuns: "No observed runs.";
19
+ readonly emptyChildren: "No observed direct children.";
20
+ readonly emptyDescendants: "No observed descendants.";
21
+ readonly treeUnavailable: "Descendants unavailable; this is not an empty successful listing.";
22
+ readonly runState: "Last observed run state";
23
+ readonly activity: "Observed residency/activity (not completion)";
24
+ readonly starting: "Starting: native invocation identity has not been published.";
25
+ readonly background: "Move this run to background";
26
+ readonly backgroundHint: "Hands this exact published run to native jobs; does not start another child.";
27
+ readonly role: "Role";
28
+ readonly level: "Invocation level";
29
+ readonly mode: "Mode";
30
+ readonly reportedRoute: "Reported invocation route · compatibility projection, not comparison";
31
+ readonly routeSource: "Invocation route source · compatibility projection";
32
+ readonly routeUnreported: "Not reported; no root-route inference.";
33
+ readonly initialRoute: "Initial route";
34
+ readonly liveRoute: "Latest own native request route";
35
+ readonly routeUnknown: "Unknown";
36
+ readonly initialRouteSource: "Initial route source";
37
+ readonly liveRouteSource: "Latest request route source";
38
+ readonly initialRouteReason: "Initial route unknown reason";
39
+ readonly liveRouteReason: "Latest request route unknown reason";
40
+ readonly comparisonUnobserved: "Route comparison has not been observed. No initial or latest request route is inferred.";
41
+ readonly routeCaptureSource: "Original invocation capture";
42
+ readonly routeOwnHeaderSource: "This child's own native request header";
43
+ readonly routeMissingCapture: "Original invocation capture is missing.";
44
+ readonly routeNoOwnHeader: "No own native request header has been observed yet.";
45
+ readonly routeInvalidOwnHeader: "The observed own native request header is invalid.";
46
+ readonly routeNotObserved: "The child's own native request route was not observed.";
47
+ readonly invocationUnavailable: "Invocation capture unavailable; role and level are not inferred. Native request observation is separate.";
48
+ readonly runId: "Run ID";
49
+ readonly childId: "Child ID";
50
+ readonly jobId: "Job ID";
51
+ readonly toolCallId: "Tool call ID";
52
+ readonly parentId: "Direct parent ID";
53
+ readonly depth: "Depth";
54
+ readonly subtree: "Child catalog contains descendants";
55
+ readonly yes: "Yes";
56
+ readonly no: "No";
57
+ readonly readonly: "Inspection only";
58
+ readonly oneShot: "One-shot children cannot be resumed or messaged.";
59
+ readonly prompt: "Message this child";
60
+ readonly text: "Message";
61
+ readonly delivery: "Delivery";
62
+ readonly queue: "Queue · later turn";
63
+ readonly steer: "Steer · nearest step";
64
+ readonly send: "Send message";
65
+ readonly interrupt: "Request interrupt";
66
+ readonly deliveryHint: "Queue accepts a distinct later turn; Steer targets the nearest step. Idle/cold continuable children keep the same child ID.";
67
+ readonly emptyMessage: "Enter message text or choose an available image before sending.";
68
+ readonly deniedImages: "Images are currently unavailable. Remove picked images to send a text-only message; their bytes are not automatically retried.";
69
+ readonly images: "Add images";
70
+ readonly imagesHint: "PNG, JPEG, WebP or GIF body bytes. Native image/model admission still applies; no durable attachment IDs are supplied.";
71
+ readonly removeImage: "Remove image";
72
+ readonly imageReading: "Reading image bytes…";
73
+ readonly unknown: "Send outcome unknown. Draft retained; do not resend automatically. Check the native child conversation before allowing a new message, which may duplicate an accepted one.";
74
+ readonly acknowledge: "I checked; allow a new message";
75
+ readonly promptAccepted: "Inbox accepted message {id}. Execution is not confirmed.";
76
+ readonly interruptAccepted: "Interrupt request acknowledged. Running/queued work is not reported as completed; queued work remains native-owned.";
77
+ readonly backgroundReceipt: "Transition receipt: {status}; same run {id}.";
78
+ readonly unknownAction: "Outcome unknown; refresh and verify the native run/child before another action.";
79
+ readonly error: "Request unavailable/refused: {code}.";
80
+ readonly field: "Field";
81
+ readonly diagnostic: "Branch diagnostic: {reason}; no successful child result is inferred.";
82
+ readonly backgroundAvailability: "Background handoff";
83
+ readonly promptAvailability: "Human messages";
84
+ readonly interruptAvailability: "Interrupts";
85
+ readonly imageAvailability: "Images";
86
+ readonly enabled: "Available";
87
+ readonly disabled: "Unavailable";
88
+ readonly runtime: "Observed runtime binding";
89
+ readonly fence: "Delivery fence ready";
90
+ readonly restart: "Explicit Host restart required";
91
+ readonly composition: "Explicit DSMM composition is required; UI settings do not replace the Host runtime.";
92
+ readonly duplicate: "Duplicate provider binding; fix explicit composition before restarting.";
93
+ readonly authority: "Host admission authority is not ready.";
94
+ readonly evidence: "Admission evidence";
95
+ readonly captured: "Captured original admission";
96
+ readonly legacy: "Legacy conservative evidence · not full configuration recovery";
97
+ readonly evidenceMissing: "Original admission evidence is unavailable; do not infer it from current root settings.";
98
+ readonly originalEpoch: "Original child epoch";
99
+ readonly proven: "Proven fields";
100
+ readonly limitations: "Evidence limitations";
101
+ readonly noneProven: "No proven fields reported";
102
+ readonly noLimitations: "No additional limitations reported (not a claim of restored configuration).";
103
+ readonly capabilityDenied: "Capability denied";
104
+ readonly nativeDefault: "Native default, not restored";
105
+ readonly displayOnly: "Display-only evidence";
106
+ readonly missingEvidence: "Missing evidence";
107
+ readonly notPersisted: "Not persisted";
108
+ readonly unverified: "Unverified";
109
+ readonly parentDenied: "Current parent denies this capability";
110
+ };
111
+ export declare const childrenZh: Record<keyof typeof childrenEn, string>;
112
+ export declare const childDisabledCopy: Record<RoleControlDisabledReason, readonly [string, string]>;
113
+ export type ChildrenLocaleKey = keyof typeof childrenEn | `reason:${RoleControlDisabledReason}`;
114
+ export declare const childrenLocaleEn: {
115
+ "reason:unavailable": string;
116
+ "reason:cancelled": string;
117
+ "reason:starting": string;
118
+ "reason:one-shot": string;
119
+ "reason:already-background": string;
120
+ "reason:already-settled": string;
121
+ "reason:read-only": string;
122
+ "reason:module-off": string;
123
+ "reason:evidence-unavailable": string;
124
+ "reason:role-disabled": string;
125
+ "reason:background-disabled": string;
126
+ "reason:jobs-unavailable": string;
127
+ "reason:unknown-mode": string;
128
+ "reason:not-direct-child": string;
129
+ "reason:delivery-fence-unavailable": string;
130
+ "reason:legacy-capability-denied": string;
131
+ title: "Deepwork children";
132
+ description: "Observed native runs and child conversations. Refresh for current state; receipts are not completion.";
133
+ refresh: "Refresh";
134
+ reading: "Reading…";
135
+ pending: "Request pending…";
136
+ noSession: "No native session scope. Child controls are unavailable.";
137
+ unavailable: "Observation unavailable. Reconnect and refresh; no action was inferred.";
138
+ stale: "Previous observation only. Refresh before controlling this session.";
139
+ foreign: "This view does not own the current native session scope.";
140
+ session: "Session";
141
+ epoch: "Parent admission epoch";
142
+ runs: "One-shot runs";
143
+ children: "Direct children";
144
+ descendants: "Descendant inspection";
145
+ emptyRuns: "No observed runs.";
146
+ emptyChildren: "No observed direct children.";
147
+ emptyDescendants: "No observed descendants.";
148
+ treeUnavailable: "Descendants unavailable; this is not an empty successful listing.";
149
+ runState: "Last observed run state";
150
+ activity: "Observed residency/activity (not completion)";
151
+ starting: "Starting: native invocation identity has not been published.";
152
+ background: "Move this run to background";
153
+ backgroundHint: "Hands this exact published run to native jobs; does not start another child.";
154
+ role: "Role";
155
+ level: "Invocation level";
156
+ mode: "Mode";
157
+ reportedRoute: "Reported invocation route · compatibility projection, not comparison";
158
+ routeSource: "Invocation route source · compatibility projection";
159
+ routeUnreported: "Not reported; no root-route inference.";
160
+ initialRoute: "Initial route";
161
+ liveRoute: "Latest own native request route";
162
+ routeUnknown: "Unknown";
163
+ initialRouteSource: "Initial route source";
164
+ liveRouteSource: "Latest request route source";
165
+ initialRouteReason: "Initial route unknown reason";
166
+ liveRouteReason: "Latest request route unknown reason";
167
+ comparisonUnobserved: "Route comparison has not been observed. No initial or latest request route is inferred.";
168
+ routeCaptureSource: "Original invocation capture";
169
+ routeOwnHeaderSource: "This child's own native request header";
170
+ routeMissingCapture: "Original invocation capture is missing.";
171
+ routeNoOwnHeader: "No own native request header has been observed yet.";
172
+ routeInvalidOwnHeader: "The observed own native request header is invalid.";
173
+ routeNotObserved: "The child's own native request route was not observed.";
174
+ invocationUnavailable: "Invocation capture unavailable; role and level are not inferred. Native request observation is separate.";
175
+ runId: "Run ID";
176
+ childId: "Child ID";
177
+ jobId: "Job ID";
178
+ toolCallId: "Tool call ID";
179
+ parentId: "Direct parent ID";
180
+ depth: "Depth";
181
+ subtree: "Child catalog contains descendants";
182
+ yes: "Yes";
183
+ no: "No";
184
+ readonly: "Inspection only";
185
+ oneShot: "One-shot children cannot be resumed or messaged.";
186
+ prompt: "Message this child";
187
+ text: "Message";
188
+ delivery: "Delivery";
189
+ queue: "Queue · later turn";
190
+ steer: "Steer · nearest step";
191
+ send: "Send message";
192
+ interrupt: "Request interrupt";
193
+ deliveryHint: "Queue accepts a distinct later turn; Steer targets the nearest step. Idle/cold continuable children keep the same child ID.";
194
+ emptyMessage: "Enter message text or choose an available image before sending.";
195
+ deniedImages: "Images are currently unavailable. Remove picked images to send a text-only message; their bytes are not automatically retried.";
196
+ images: "Add images";
197
+ imagesHint: "PNG, JPEG, WebP or GIF body bytes. Native image/model admission still applies; no durable attachment IDs are supplied.";
198
+ removeImage: "Remove image";
199
+ imageReading: "Reading image bytes…";
200
+ unknown: "Send outcome unknown. Draft retained; do not resend automatically. Check the native child conversation before allowing a new message, which may duplicate an accepted one.";
201
+ acknowledge: "I checked; allow a new message";
202
+ promptAccepted: "Inbox accepted message {id}. Execution is not confirmed.";
203
+ interruptAccepted: "Interrupt request acknowledged. Running/queued work is not reported as completed; queued work remains native-owned.";
204
+ backgroundReceipt: "Transition receipt: {status}; same run {id}.";
205
+ unknownAction: "Outcome unknown; refresh and verify the native run/child before another action.";
206
+ error: "Request unavailable/refused: {code}.";
207
+ field: "Field";
208
+ diagnostic: "Branch diagnostic: {reason}; no successful child result is inferred.";
209
+ backgroundAvailability: "Background handoff";
210
+ promptAvailability: "Human messages";
211
+ interruptAvailability: "Interrupts";
212
+ imageAvailability: "Images";
213
+ enabled: "Available";
214
+ disabled: "Unavailable";
215
+ runtime: "Observed runtime binding";
216
+ fence: "Delivery fence ready";
217
+ restart: "Explicit Host restart required";
218
+ composition: "Explicit DSMM composition is required; UI settings do not replace the Host runtime.";
219
+ duplicate: "Duplicate provider binding; fix explicit composition before restarting.";
220
+ authority: "Host admission authority is not ready.";
221
+ evidence: "Admission evidence";
222
+ captured: "Captured original admission";
223
+ legacy: "Legacy conservative evidence · not full configuration recovery";
224
+ evidenceMissing: "Original admission evidence is unavailable; do not infer it from current root settings.";
225
+ originalEpoch: "Original child epoch";
226
+ proven: "Proven fields";
227
+ limitations: "Evidence limitations";
228
+ noneProven: "No proven fields reported";
229
+ noLimitations: "No additional limitations reported (not a claim of restored configuration).";
230
+ capabilityDenied: "Capability denied";
231
+ nativeDefault: "Native default, not restored";
232
+ displayOnly: "Display-only evidence";
233
+ missingEvidence: "Missing evidence";
234
+ notPersisted: "Not persisted";
235
+ unverified: "Unverified";
236
+ parentDenied: "Current parent denies this capability";
237
+ };
238
+ export declare const childrenLocaleZh: {
239
+ "reason:unavailable": string;
240
+ "reason:cancelled": string;
241
+ "reason:starting": string;
242
+ "reason:one-shot": string;
243
+ "reason:already-background": string;
244
+ "reason:already-settled": string;
245
+ "reason:read-only": string;
246
+ "reason:module-off": string;
247
+ "reason:evidence-unavailable": string;
248
+ "reason:role-disabled": string;
249
+ "reason:background-disabled": string;
250
+ "reason:jobs-unavailable": string;
251
+ "reason:unknown-mode": string;
252
+ "reason:not-direct-child": string;
253
+ "reason:delivery-fence-unavailable": string;
254
+ "reason:legacy-capability-denied": string;
255
+ text: string;
256
+ authority: string;
257
+ error: string;
258
+ disabled: string;
259
+ unavailable: string;
260
+ diagnostic: string;
261
+ enabled: string;
262
+ role: string;
263
+ session: string;
264
+ field: string;
265
+ unknown: string;
266
+ starting: string;
267
+ background: string;
268
+ jobId: string;
269
+ toolCallId: string;
270
+ runId: string;
271
+ mode: string;
272
+ childId: string;
273
+ stale: string;
274
+ prompt: string;
275
+ captured: string;
276
+ level: string;
277
+ legacy: string;
278
+ unverified: string;
279
+ limitations: string;
280
+ depth: string;
281
+ initialRoute: string;
282
+ routeSource: string;
283
+ description: string;
284
+ evidence: string;
285
+ epoch: string;
286
+ yes: string;
287
+ no: string;
288
+ liveRoute: string;
289
+ pending: string;
290
+ descendants: string;
291
+ interrupt: string;
292
+ images: string;
293
+ runtime: string;
294
+ activity: string;
295
+ readonly: string;
296
+ runs: string;
297
+ children: string;
298
+ delivery: string;
299
+ queue: string;
300
+ steer: string;
301
+ foreign: string;
302
+ reading: string;
303
+ title: string;
304
+ refresh: string;
305
+ noSession: string;
306
+ emptyRuns: string;
307
+ emptyChildren: string;
308
+ emptyDescendants: string;
309
+ treeUnavailable: string;
310
+ runState: string;
311
+ backgroundHint: string;
312
+ reportedRoute: string;
313
+ routeUnreported: string;
314
+ routeUnknown: string;
315
+ initialRouteSource: string;
316
+ liveRouteSource: string;
317
+ initialRouteReason: string;
318
+ liveRouteReason: string;
319
+ comparisonUnobserved: string;
320
+ routeCaptureSource: string;
321
+ routeOwnHeaderSource: string;
322
+ routeMissingCapture: string;
323
+ routeNoOwnHeader: string;
324
+ routeInvalidOwnHeader: string;
325
+ routeNotObserved: string;
326
+ invocationUnavailable: string;
327
+ parentId: string;
328
+ subtree: string;
329
+ oneShot: string;
330
+ send: string;
331
+ deliveryHint: string;
332
+ emptyMessage: string;
333
+ deniedImages: string;
334
+ imagesHint: string;
335
+ removeImage: string;
336
+ imageReading: string;
337
+ acknowledge: string;
338
+ promptAccepted: string;
339
+ interruptAccepted: string;
340
+ backgroundReceipt: string;
341
+ unknownAction: string;
342
+ backgroundAvailability: string;
343
+ promptAvailability: string;
344
+ interruptAvailability: string;
345
+ imageAvailability: string;
346
+ fence: string;
347
+ restart: string;
348
+ composition: string;
349
+ duplicate: string;
350
+ evidenceMissing: string;
351
+ originalEpoch: string;
352
+ proven: string;
353
+ noneProven: string;
354
+ noLimitations: string;
355
+ capabilityDenied: string;
356
+ nativeDefault: string;
357
+ displayOnly: string;
358
+ missingEvidence: string;
359
+ notPersisted: string;
360
+ parentDenied: string;
361
+ };
362
+ declare module "@deepseek-ai/dsh-client-ui-slots" {
363
+ interface LocaleNamespaceMap {
364
+ "conversation.dsmm-children": ChildrenLocaleKey;
365
+ }
366
+ }
367
+ //# sourceMappingURL=children-locales.d.ts.map