@dsmm/dsmm 0.2.0 → 0.3.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.
- package/README.md +37 -67
- package/agent-presets/dsmm-builder/agent.cordis.yml +10 -2015
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +24 -343
- package/agent-presets/dsmm-code-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-coding/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-complex/agent.cordis.yml +23 -1009
- package/agent-presets/dsmm-creative/agent.cordis.yml +25 -442
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +29 -1013
- package/agent-presets/dsmm-deep/agent.cordis.yml +24 -1008
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-documenting/agent.cordis.yml +26 -439
- package/agent-presets/dsmm-frontend/agent.cordis.yml +21 -440
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +22 -441
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-oracle/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +29 -2025
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +24 -341
- package/agent-presets/dsmm-planner/agent.cordis.yml +14 -344
- package/agent-presets/dsmm-quick/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-research/agent.cordis.yml +23 -8
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +25 -340
- package/cordis.patch.yml +14 -0
- package/docs/agent-presets.md +36 -52
- package/docs/compatibility.md +47 -110
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +2 -2
- package/docs/lsp.md +11 -21
- package/docs/migration-from-ocmm.md +2 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +40 -87
- package/docs/releasing.md +123 -2
- package/docs/roadmap.md +71 -17
- package/docs/settings-status.md +34 -169
- package/docs/skill-sync.md +52 -15
- package/lib/agent-registry.d.ts +36 -0
- package/lib/agent-registry.js +75 -0
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +40 -0
- package/lib/child-admission.js +151 -0
- package/lib/child-capture.d.ts +85 -0
- package/lib/child-capture.js +205 -0
- package/lib/child-evidence.d.ts +17 -0
- package/lib/child-evidence.js +43 -0
- package/lib/client/ChildrenPanel.d.ts +43 -0
- package/lib/client/ChildrenPanel.js +82 -0
- package/lib/client/DeploymentPage.js +15 -8
- package/lib/client/EditableChoice.d.ts +17 -0
- package/lib/client/EditableChoice.js +49 -0
- package/lib/client/PermissionsPanel.d.ts +14 -0
- package/lib/client/PermissionsPanel.js +46 -0
- package/lib/client/ProfilesSection.js +30 -15
- package/lib/client/RoleAvailability.d.ts +7 -0
- package/lib/client/RoleAvailability.js +19 -0
- package/lib/client/SessionProfiles.js +27 -9
- package/lib/client/StructuredEditor.js +15 -7
- package/lib/client/children-controller.d.ts +98 -0
- package/lib/client/children-controller.js +296 -0
- package/lib/client/children-locales.d.ts +367 -0
- package/lib/client/children-locales.js +69 -0
- package/lib/client/controller.d.ts +6 -1
- package/lib/client/controller.js +14 -8
- package/lib/client/deployment-controller.js +1 -1
- package/lib/client/deployment-data.d.ts +2 -1
- package/lib/client/deployment-data.js +34 -5
- package/lib/client/deployment-locales.d.ts +4 -0
- package/lib/client/deployment-locales.js +11 -2
- package/lib/client/diagnostics.d.ts +14 -0
- package/lib/client/diagnostics.js +53 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +96 -2
- package/lib/client/locales.d.ts +54 -0
- package/lib/client/locales.js +34 -16
- package/lib/client/permission-client.d.ts +16 -0
- package/lib/client/permission-client.js +38 -0
- package/lib/client/permission-controller.d.ts +62 -0
- package/lib/client/permission-controller.js +149 -0
- package/lib/client/permission-locales.d.ts +114 -0
- package/lib/client/permission-locales.js +75 -0
- package/lib/client/session-labels.js +4 -4
- package/lib/client/structured.js +19 -5
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +20 -0
- package/lib/client.js +5780 -1679
- package/lib/core-permission-authority.d.ts +18 -0
- package/lib/core-permission-authority.js +255 -0
- package/lib/core-permissions.d.ts +8 -0
- package/lib/core-permissions.js +33 -0
- package/lib/delivery-authority.d.ts +83 -0
- package/lib/delivery-authority.js +397 -0
- package/lib/deployment-config.d.ts +23 -0
- package/lib/deployment-config.js +61 -40
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-types.d.ts +10 -4
- package/lib/guards.d.ts +1 -1
- package/lib/guards.js +29 -8
- package/lib/host-llm-startup.d.ts +41 -0
- package/lib/host-llm-startup.js +65 -0
- package/lib/host-llm.d.ts +92 -0
- package/lib/host-llm.js +325 -0
- package/lib/index.d.ts +15 -4
- package/lib/index.js +288 -48
- package/lib/live-pi-ai-owner.d.ts +18 -0
- package/lib/live-pi-ai-owner.js +144 -0
- package/lib/llm-runtime.d.ts +11 -0
- package/lib/llm-runtime.js +21 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +28 -17
- package/lib/modules.d.ts +13 -5
- package/lib/modules.js +17 -1
- package/lib/native-child-evidence.d.ts +40 -0
- package/lib/native-child-evidence.js +104 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.js +1 -1
- package/lib/permission-bash.d.ts +6 -0
- package/lib/permission-bash.js +7 -0
- package/lib/permission-control.d.ts +73 -0
- package/lib/permission-control.js +205 -0
- package/lib/permission-controller.d.ts +68 -0
- package/lib/permission-controller.js +317 -0
- package/lib/permission-errors.d.ts +7 -0
- package/lib/permission-errors.js +21 -0
- package/lib/permission-fs-search.d.ts +5 -0
- package/lib/permission-fs-search.js +7 -0
- package/lib/permission-fs.d.ts +5 -0
- package/lib/permission-fs.js +7 -0
- package/lib/permission-native-access.d.ts +11 -0
- package/lib/permission-native-access.js +6 -0
- package/lib/permission-native-command.d.ts +10 -0
- package/lib/permission-native-command.js +93 -0
- package/lib/permission-native-rules.d.ts +75 -0
- package/lib/permission-native-rules.js +278 -0
- package/lib/permission-pwsh.d.ts +6 -0
- package/lib/permission-pwsh.js +7 -0
- package/lib/permission-remote.d.ts +26 -0
- package/lib/permission-remote.js +53 -0
- package/lib/permission-rpc.d.ts +29 -0
- package/lib/permission-rpc.js +152 -0
- package/lib/permission-rules.d.ts +115 -0
- package/lib/permission-rules.js +256 -0
- package/lib/permission-settings.d.ts +45 -0
- package/lib/permission-settings.js +48 -0
- package/lib/permission-shell.d.ts +38 -0
- package/lib/permission-shell.js +150 -0
- package/lib/permission-web.d.ts +5 -0
- package/lib/permission-web.js +7 -0
- package/lib/preset-registry.js +36 -25
- package/lib/profile-diagnostics.d.ts +45 -0
- package/lib/profile-diagnostics.js +148 -0
- package/lib/profile-locale.d.ts +3 -0
- package/lib/profile-locale.js +2 -0
- package/lib/profile-remote.d.ts +8 -0
- package/lib/profile-remote.js +163 -39
- package/lib/profile-rpc.d.ts +4 -3
- package/lib/profile-rpc.js +20 -16
- package/lib/profile-runtime.d.ts +40 -1
- package/lib/profile-runtime.js +368 -93
- package/lib/profile-store.d.ts +11 -0
- package/lib/profile-store.js +143 -11
- package/lib/profile-types.d.ts +70 -1
- package/lib/profile-types.js +1 -0
- package/lib/profiles.d.ts +16 -2
- package/lib/profiles.js +156 -79
- package/lib/prompt-content.js +1 -1
- package/lib/prompts.d.ts +37 -2
- package/lib/prompts.js +111 -9
- package/lib/recovery-policy.js +20 -7
- package/lib/role-control-remote.d.ts +38 -0
- package/lib/role-control-remote.js +211 -0
- package/lib/role-control-rpc.d.ts +51 -0
- package/lib/role-control-rpc.js +381 -0
- package/lib/role-control-types.d.ts +92 -0
- package/lib/role-control-types.js +8 -0
- package/lib/role-invocation.d.ts +47 -0
- package/lib/role-invocation.js +135 -0
- package/lib/role-llm-runtime.d.ts +17 -0
- package/lib/role-llm-runtime.js +62 -0
- package/lib/role-llm.d.ts +31 -0
- package/lib/role-llm.js +66 -0
- package/lib/role-policy.d.ts +46 -8
- package/lib/role-policy.js +421 -61
- package/lib/role-providers.d.ts +2 -2
- package/lib/role-providers.js +27 -72
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +138 -0
- package/lib/role-runs.js +335 -0
- package/lib/role-subagents.d.ts +58 -3
- package/lib/role-subagents.js +179 -56
- package/lib/roles.d.ts +5 -6
- package/lib/roles.js +10 -39
- package/lib/route-json.d.ts +19 -0
- package/lib/route-json.js +129 -0
- package/lib/routing-policy.d.ts +2 -0
- package/lib/routing-policy.js +12 -2
- package/lib/runtime-integration.d.ts +81 -0
- package/lib/runtime-integration.js +702 -0
- package/lib/runtime-recovery.js +18 -8
- package/lib/session-persistence.d.ts +2 -1
- package/lib/session-persistence.js +1 -1
- package/lib/session-scope.js +4 -1
- package/lib/settings.d.ts +47 -13
- package/lib/settings.js +217 -82
- package/lib/skills.js +2 -2
- package/lib/status.d.ts +10 -1
- package/lib/status.js +11 -8
- package/lib/subagent-runtime.d.ts +57 -0
- package/lib/subagent-runtime.js +257 -0
- package/package.json +149 -89
- package/patches/subagent-runtime.yml +15 -0
- package/prompts/deepseek-flash.md +1 -1
- package/prompts/deepseek-v4-pro.md +2 -2
- package/prompts/deepwork.md +27 -18
- package/prompts/source/agents/clarifier.md +5 -3
- package/prompts/source/agents/orchestrator.md +18 -9
- package/prompts/source/agents/plan-critic.md +5 -1
- package/prompts/source/agents/planner.md +4 -2
- package/prompts/source/agents/reviewer.md +6 -0
- package/prompts/source/category/complex.md +4 -4
- package/prompts/source/category/creative.md +6 -4
- package/prompts/source/category/cross-cutting.md +10 -8
- package/prompts/source/category/deep.md +5 -3
- package/prompts/source/category/documenting.md +7 -1
- package/prompts/source/category/frontend.md +2 -2
- package/prompts/source/category/hard-reasoning.md +3 -3
- package/prompts/source/category/research.md +4 -2
- package/prompts/source/deepwork/claude-opus-5.md +2 -2
- package/prompts/source/deepwork/codex.md +1 -1
- package/prompts/source/deepwork/default.md +22 -15
- package/prompts/source/deepwork/gemini.md +23 -16
- package/prompts/source/deepwork/glm.md +21 -14
- package/prompts/source/deepwork/gpt.md +12 -6
- package/prompts/source/deepwork/planner.md +8 -5
- package/prompts/source/manifest.json +178 -63
- package/prompts/source/shared/dsh-host-contract.md +5 -3
- package/prompts/source/shared/locale.md +2 -2
- package/prompts/source/terminal/orchestrator.md +1 -1
- package/skills/ast-grep/SKILL.md +7 -4
- package/skills/brainstorming/SKILL.md +43 -22
- package/skills/coding-agent-sessions/SKILL.md +7 -4
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
- package/skills/debugging/SKILL.md +14 -9
- package/skills/debugging/references/methodology/00-setup.md +14 -62
- package/skills/debugging/references/methodology/02-investigate.md +4 -4
- package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
- package/skills/debugging/references/methodology/06-fix.md +6 -6
- package/skills/debugging/references/methodology/08-qa.md +5 -5
- package/skills/debugging/references/methodology/09-cleanup.md +15 -153
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
- package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
- package/skills/debugging/references/runtimes/native-binary.md +9 -54
- package/skills/debugging/references/runtimes/node.md +4 -15
- package/skills/debugging/references/runtimes/python.md +3 -15
- package/skills/debugging/references/runtimes/rust.md +2 -18
- package/skills/debugging/references/tools/dap.md +1 -1
- package/skills/debugging/references/tools/ghidra.md +4 -15
- package/skills/debugging/references/tools/playwright-cli.md +3 -15
- package/skills/debugging/references/tools/pwntools.md +4 -16
- package/skills/dispatching-parallel-agents/SKILL.md +18 -16
- package/skills/frontend/SKILL.md +7 -4
- package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
- package/skills/git-master/SKILL.md +7 -4
- package/skills/init-deep/SKILL.md +7 -4
- package/skills/receiving-code-review/SKILL.md +17 -12
- package/skills/remove-ai-slops/SKILL.md +39 -38
- package/skills/requesting-code-review/SKILL.md +19 -17
- package/skills/requesting-code-review/code-reviewer.md +13 -1
- package/skills/subagent-driven-development/SKILL.md +29 -26
- package/skills/subagent-driven-development/implementer-prompt.md +29 -11
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
- package/skills/using-git-worktrees/SKILL.md +7 -4
- package/skills/writing-plans/SKILL.md +29 -24
- package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
- package/scripts/repair-session-log.mjs +0 -476
- package/scripts/session-repair-native-verifier.mjs +0 -367
|
@@ -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:cancelled": string;
|
|
116
|
+
"reason:unavailable": string;
|
|
117
|
+
"reason:one-shot": string;
|
|
118
|
+
"reason:starting": string;
|
|
119
|
+
"reason:already-background": string;
|
|
120
|
+
"reason:already-settled": string;
|
|
121
|
+
"reason:read-only": string;
|
|
122
|
+
"reason:module-off": string;
|
|
123
|
+
"reason:role-disabled": string;
|
|
124
|
+
"reason:background-disabled": string;
|
|
125
|
+
"reason:jobs-unavailable": string;
|
|
126
|
+
"reason:unknown-mode": string;
|
|
127
|
+
"reason:not-direct-child": string;
|
|
128
|
+
"reason:delivery-fence-unavailable": string;
|
|
129
|
+
"reason:evidence-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:cancelled": string;
|
|
240
|
+
"reason:unavailable": string;
|
|
241
|
+
"reason:one-shot": string;
|
|
242
|
+
"reason:starting": string;
|
|
243
|
+
"reason:already-background": string;
|
|
244
|
+
"reason:already-settled": string;
|
|
245
|
+
"reason:read-only": string;
|
|
246
|
+
"reason:module-off": string;
|
|
247
|
+
"reason:role-disabled": string;
|
|
248
|
+
"reason:background-disabled": string;
|
|
249
|
+
"reason:jobs-unavailable": string;
|
|
250
|
+
"reason:unknown-mode": string;
|
|
251
|
+
"reason:not-direct-child": string;
|
|
252
|
+
"reason:delivery-fence-unavailable": string;
|
|
253
|
+
"reason:evidence-unavailable": string;
|
|
254
|
+
"reason:legacy-capability-denied": string;
|
|
255
|
+
pending: string;
|
|
256
|
+
unavailable: string;
|
|
257
|
+
text: string;
|
|
258
|
+
delivery: string;
|
|
259
|
+
role: string;
|
|
260
|
+
error: string;
|
|
261
|
+
childId: string;
|
|
262
|
+
disabled: string;
|
|
263
|
+
diagnostic: string;
|
|
264
|
+
enabled: string;
|
|
265
|
+
session: string;
|
|
266
|
+
field: string;
|
|
267
|
+
unknown: string;
|
|
268
|
+
starting: string;
|
|
269
|
+
background: string;
|
|
270
|
+
jobId: string;
|
|
271
|
+
toolCallId: string;
|
|
272
|
+
runId: string;
|
|
273
|
+
mode: string;
|
|
274
|
+
stale: string;
|
|
275
|
+
prompt: string;
|
|
276
|
+
captured: string;
|
|
277
|
+
level: string;
|
|
278
|
+
legacy: string;
|
|
279
|
+
unverified: string;
|
|
280
|
+
limitations: string;
|
|
281
|
+
depth: string;
|
|
282
|
+
initialRoute: string;
|
|
283
|
+
routeSource: string;
|
|
284
|
+
description: string;
|
|
285
|
+
epoch: string;
|
|
286
|
+
evidence: string;
|
|
287
|
+
yes: string;
|
|
288
|
+
no: string;
|
|
289
|
+
liveRoute: 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
|
+
queue: string;
|
|
299
|
+
steer: string;
|
|
300
|
+
authority: 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
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export const CHILDREN_NS = "conversation.dsmm-children";
|
|
2
|
+
export const childrenEn = {
|
|
3
|
+
title: "Deepwork children", description: "Observed native runs and child conversations. Refresh for current state; receipts are not completion.",
|
|
4
|
+
refresh: "Refresh", reading: "Reading…", pending: "Request pending…", noSession: "No native session scope. Child controls are unavailable.",
|
|
5
|
+
unavailable: "Observation unavailable. Reconnect and refresh; no action was inferred.", stale: "Previous observation only. Refresh before controlling this session.", foreign: "This view does not own the current native session scope.",
|
|
6
|
+
session: "Session", epoch: "Parent admission epoch", runs: "One-shot runs", children: "Direct children", descendants: "Descendant inspection",
|
|
7
|
+
emptyRuns: "No observed runs.", emptyChildren: "No observed direct children.", emptyDescendants: "No observed descendants.", treeUnavailable: "Descendants unavailable; this is not an empty successful listing.",
|
|
8
|
+
runState: "Last observed run state", activity: "Observed residency/activity (not completion)", starting: "Starting: native invocation identity has not been published.",
|
|
9
|
+
background: "Move this run to background", backgroundHint: "Hands this exact published run to native jobs; does not start another child.",
|
|
10
|
+
role: "Role", level: "Invocation level", mode: "Mode", reportedRoute: "Reported invocation route · compatibility projection, not comparison", routeSource: "Invocation route source · compatibility projection", routeUnreported: "Not reported; no root-route inference.",
|
|
11
|
+
initialRoute: "Initial route", liveRoute: "Latest own native request route", routeUnknown: "Unknown", initialRouteSource: "Initial route source", liveRouteSource: "Latest request route source", initialRouteReason: "Initial route unknown reason", liveRouteReason: "Latest request route unknown reason",
|
|
12
|
+
comparisonUnobserved: "Route comparison has not been observed. No initial or latest request route is inferred.", routeCaptureSource: "Original invocation capture", routeOwnHeaderSource: "This child's own native request header",
|
|
13
|
+
routeMissingCapture: "Original invocation capture is missing.", routeNoOwnHeader: "No own native request header has been observed yet.", routeInvalidOwnHeader: "The observed own native request header is invalid.", routeNotObserved: "The child's own native request route was not observed.",
|
|
14
|
+
invocationUnavailable: "Invocation capture unavailable; role and level are not inferred. Native request observation is separate.",
|
|
15
|
+
runId: "Run ID", childId: "Child ID", jobId: "Job ID", toolCallId: "Tool call ID", parentId: "Direct parent ID", depth: "Depth", subtree: "Child catalog contains descendants", yes: "Yes", no: "No",
|
|
16
|
+
readonly: "Inspection only", oneShot: "One-shot children cannot be resumed or messaged.",
|
|
17
|
+
prompt: "Message this child", text: "Message", delivery: "Delivery", queue: "Queue · later turn", steer: "Steer · nearest step", send: "Send message", interrupt: "Request interrupt",
|
|
18
|
+
deliveryHint: "Queue accepts a distinct later turn; Steer targets the nearest step. Idle/cold continuable children keep the same child ID.",
|
|
19
|
+
emptyMessage: "Enter message text or choose an available image before sending.", deniedImages: "Images are currently unavailable. Remove picked images to send a text-only message; their bytes are not automatically retried.",
|
|
20
|
+
images: "Add images", imagesHint: "PNG, JPEG, WebP or GIF body bytes. Native image/model admission still applies; no durable attachment IDs are supplied.", removeImage: "Remove image", imageReading: "Reading image bytes…",
|
|
21
|
+
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.",
|
|
22
|
+
acknowledge: "I checked; allow a new message", promptAccepted: "Inbox accepted message {id}. Execution is not confirmed.", interruptAccepted: "Interrupt request acknowledged. Running/queued work is not reported as completed; queued work remains native-owned.",
|
|
23
|
+
backgroundReceipt: "Transition receipt: {status}; same run {id}.", unknownAction: "Outcome unknown; refresh and verify the native run/child before another action.", error: "Request unavailable/refused: {code}.", field: "Field", diagnostic: "Branch diagnostic: {reason}; no successful child result is inferred.",
|
|
24
|
+
backgroundAvailability: "Background handoff", promptAvailability: "Human messages", interruptAvailability: "Interrupts", imageAvailability: "Images", enabled: "Available", disabled: "Unavailable",
|
|
25
|
+
runtime: "Observed runtime binding", fence: "Delivery fence ready", restart: "Explicit Host restart required", composition: "Explicit DSMM composition is required; UI settings do not replace the Host runtime.", duplicate: "Duplicate provider binding; fix explicit composition before restarting.", authority: "Host admission authority is not ready.",
|
|
26
|
+
evidence: "Admission evidence", captured: "Captured original admission", legacy: "Legacy conservative evidence · not full configuration recovery", evidenceMissing: "Original admission evidence is unavailable; do not infer it from current root settings.", originalEpoch: "Original child epoch", proven: "Proven fields", limitations: "Evidence limitations", noneProven: "No proven fields reported", noLimitations: "No additional limitations reported (not a claim of restored configuration).",
|
|
27
|
+
capabilityDenied: "Capability denied", nativeDefault: "Native default, not restored", displayOnly: "Display-only evidence", missingEvidence: "Missing evidence", notPersisted: "Not persisted", unverified: "Unverified", parentDenied: "Current parent denies this capability",
|
|
28
|
+
};
|
|
29
|
+
export const childrenZh = {
|
|
30
|
+
title: "Deepwork 子任务", description: "已观察到的原生运行和子会话。刷新以获取现况;回执不代表完成。",
|
|
31
|
+
refresh: "刷新", reading: "读取中…", pending: "请求处理中…", noSession: "没有原生会话作用域,子任务控制不可用。",
|
|
32
|
+
unavailable: "无法观察当前状态。重新连接并刷新;不推断动作结果。", stale: "仅显示此前观察。请刷新后再控制当前会话。", foreign: "此视图不拥有当前原生会话作用域。",
|
|
33
|
+
session: "会话", epoch: "当前父准入 epoch", runs: "一次性运行", children: "直接子会话", descendants: "后代检查",
|
|
34
|
+
emptyRuns: "没有观察到运行。", emptyChildren: "没有观察到直接子会话。", emptyDescendants: "没有观察到后代。", treeUnavailable: "后代列表不可用;这不代表已成功读取空列表。",
|
|
35
|
+
runState: "上次观察的运行状态", activity: "已观察驻留/活动状态(非完成)", starting: "正在启动:原生调用身份尚未发布。",
|
|
36
|
+
background: "将此运行移交后台", backgroundHint: "把此已发布的同一运行移交原生 jobs;不创建另一个子会话。",
|
|
37
|
+
role: "角色", level: "调用等级", mode: "模式", reportedRoute: "报告的调用路由 · 兼容投影,非路由对比", routeSource: "调用路由来源 · 兼容投影", routeUnreported: "未报告;不推断根会话路由。",
|
|
38
|
+
initialRoute: "初始路由", liveRoute: "最近一次自身原生请求路由", routeUnknown: "未知", initialRouteSource: "初始路由来源", liveRouteSource: "最近请求路由来源", initialRouteReason: "初始路由未知原因", liveRouteReason: "最近请求路由未知原因",
|
|
39
|
+
comparisonUnobserved: "尚未观察到路由对比,不推断初始或最近请求路由。", routeCaptureSource: "原始调用捕获", routeOwnHeaderSource: "此子会话自身的原生请求 header",
|
|
40
|
+
routeMissingCapture: "缺少原始调用捕获。", routeNoOwnHeader: "尚未观察到自身原生请求 header。", routeInvalidOwnHeader: "已观察的自身原生请求 header 无效。", routeNotObserved: "未观察此子会话自身的原生请求路由。",
|
|
41
|
+
invocationUnavailable: "调用捕获不可用,不推断角色或等级;原生请求观察是独立信息。",
|
|
42
|
+
runId: "Run ID", childId: "子会话 ID", jobId: "Job ID", toolCallId: "工具调用 ID", parentId: "直接父会话 ID", depth: "深度", subtree: "子会话目录含后代", yes: "是", no: "否",
|
|
43
|
+
readonly: "仅可检查", oneShot: "一次性子会话不能恢复或接收续话。",
|
|
44
|
+
prompt: "向此子会话发送消息", text: "消息内容", delivery: "投递方式", queue: "Queue · 后续独立轮次", steer: "Steer · 最近步骤边界", send: "发送消息", interrupt: "请求中断",
|
|
45
|
+
deliveryHint: "Queue 接受新的后续轮次;Steer 在最近步骤边界接收。空闲/冷恢复的 continuable 子会话仍使用同一 ID。",
|
|
46
|
+
emptyMessage: "发送前请输入消息或选择可用图片。", deniedImages: "图片目前不可用。移除已选图片后可发送纯文本消息;不自动重试其数据。",
|
|
47
|
+
images: "添加图片", imagesHint: "PNG、JPEG、WebP 或 GIF 的真实图片数据。仍由原生图片/模型准入校验;不提供虚构持久 attachment ID。", removeImage: "移除图片", imageReading: "正在读取图片数据…",
|
|
48
|
+
unknown: "发送结果未知。保留草稿,不自动重发。允许新消息前请检查原生子会话;新发送可能重复已接受的消息。",
|
|
49
|
+
acknowledge: "我已检查,允许新消息", promptAccepted: "收件箱已接受消息 {id};尚未确认执行。", interruptAccepted: "中断请求已确认,不表示运行或队列已完成;队列仍由原生系统管理。",
|
|
50
|
+
backgroundReceipt: "移交回执:{status};同一运行 {id}。", unknownAction: "结果未知,请刷新并核实原生运行/子会话后再操作。", error: "请求不可用或被拒绝:{code}。", field: "字段", diagnostic: "分支诊断:{reason};不推断成功的子会话结果。",
|
|
51
|
+
backgroundAvailability: "后台移交", promptAvailability: "用户消息", interruptAvailability: "中断", imageAvailability: "图片", enabled: "可用", disabled: "不可用",
|
|
52
|
+
runtime: "已观察运行时绑定", fence: "投递隔离已就绪", restart: "需要显式重启 Host", composition: "需要显式 DSMM 启动组合;UI 设置不能替换 Host 运行时。", duplicate: "存在重复 provider 绑定,请修正显式启动组合后再重启。", authority: "Host 准入权威尚未就绪。",
|
|
53
|
+
evidence: "准入证据", captured: "已捕获原始准入", legacy: "旧会话保守证据 · 非完整配置恢复", evidenceMissing: "原始准入证据不可用,不从当前根会话设置推断。", originalEpoch: "子会话原始 epoch", proven: "已证明字段", limitations: "证据限制", noneProven: "未报告已证明字段", noLimitations: "未报告额外限制(不代表配置已恢复)。",
|
|
54
|
+
capabilityDenied: "此能力被拒绝", nativeDefault: "使用原生默认值,非已恢复", displayOnly: "仅供显示的证据", missingEvidence: "缺少证据", notPersisted: "未持久化", unverified: "尚未验证", parentDenied: "当前父会话拒绝此能力",
|
|
55
|
+
};
|
|
56
|
+
export const childDisabledCopy = {
|
|
57
|
+
"module-off": ["Deepwork module is off.", "Deepwork 模块已关闭。"], "role-disabled": ["Role is denied by captured/current admission.", "角色被捕获/当前准入拒绝。"],
|
|
58
|
+
"read-only": ["This child is read-only.", "此子会话为只读。"], "background-disabled": ["Captured admission does not allow background handoff.", "捕获准入不允许后台移交。"],
|
|
59
|
+
"jobs-unavailable": ["Native jobs are unavailable for this owner.", "此 owner 的原生 jobs 不可用。"], "starting": ["Native run identity has not been published.", "原生 run 身份尚未发布。"],
|
|
60
|
+
"already-background": ["This run already belongs to native background jobs.", "此运行已由原生后台 jobs 管理。"], "already-settled": ["This run is already settled.", "此运行已经结束。"],
|
|
61
|
+
cancelled: ["This run was cancelled and cannot be revived.", "此运行已取消,不能复活。"], "one-shot": ["One-shot children cannot receive follow-up messages.", "一次性子会话不能接收续话。"],
|
|
62
|
+
"unknown-mode": ["Child mode is unverified.", "子会话模式未验证。"], "not-direct-child": ["Only the exact direct parent can control this child.", "只有精确的直接父会话可控制此子会话。"],
|
|
63
|
+
"delivery-fence-unavailable": ["Managed delivery fencing is unavailable; fix explicit Host composition.", "受管投递隔离不可用,请修正显式 Host 启动组合。"],
|
|
64
|
+
"evidence-unavailable": ["Required original admission evidence is unavailable.", "必需的原始准入证据不可用。"], "legacy-capability-denied": ["Legacy evidence does not prove this capability.", "旧会话证据无法证明此能力。"],
|
|
65
|
+
unavailable: ["Capability unavailable. Refresh after reconnecting.", "此能力不可用。重新连接后刷新。"],
|
|
66
|
+
};
|
|
67
|
+
export const childrenLocaleEn = { ...childrenEn, ...Object.fromEntries(Object.entries(childDisabledCopy).map(([reason, copy]) => [`reason:${reason}`, copy[0]])) };
|
|
68
|
+
export const childrenLocaleZh = { ...childrenZh, ...Object.fromEntries(Object.entries(childDisabledCopy).map(([reason, copy]) => [`reason:${reason}`, copy[1]])) };
|
|
69
|
+
//# sourceMappingURL=children-locales.js.map
|
|
@@ -3,7 +3,7 @@ import type { HostObservable } from "@deepseek-ai/dsh-client-ui-slots";
|
|
|
3
3
|
import type { SessionEventSource } from "@deepseek-ai/dsh-api-session-controller/client";
|
|
4
4
|
import type { ModelDirectoryState } from "@deepseek-ai/dsh-client-ui-model-selection/client";
|
|
5
5
|
import type { DsmmProfilesRemote } from "../profile-remote.js";
|
|
6
|
-
import type { ProfileErrorInfo, ProfileReadResult, ProfileSnapshot } from "../profile-types.js";
|
|
6
|
+
import type { ProfileDiagnostic, ProfileDiagnosticCode, ProfileDiagnosticLocation, ProfileErrorInfo, ProfileReadResult, ProfileSnapshot } from "../profile-types.js";
|
|
7
7
|
import type { SessionProfileSnapshot } from "../profile-types.js";
|
|
8
8
|
import type { ModelCatalog, SessionSelectModelRequest, SessionSelectModelValue } from "@deepseek-ai/dsh-api-session-controller";
|
|
9
9
|
import type { JsonPath } from "./structured.js";
|
|
@@ -11,6 +11,7 @@ export interface ProfileEditor {
|
|
|
11
11
|
id: string;
|
|
12
12
|
content: string;
|
|
13
13
|
revision: string | null;
|
|
14
|
+
warnings?: ProfileDiagnostic[];
|
|
14
15
|
}
|
|
15
16
|
export interface ProfilesNotice {
|
|
16
17
|
key: "saved" | "applied" | "reset";
|
|
@@ -21,6 +22,8 @@ export interface ProfilesIssue {
|
|
|
21
22
|
code: string;
|
|
22
23
|
message?: string;
|
|
23
24
|
field?: string;
|
|
25
|
+
reason?: ProfileDiagnosticCode;
|
|
26
|
+
location?: ProfileDiagnosticLocation;
|
|
24
27
|
source?: "selection" | "profile-model";
|
|
25
28
|
}
|
|
26
29
|
export interface SessionApplyOptions {
|
|
@@ -45,8 +48,10 @@ export interface ProfilesViewSnapshot {
|
|
|
45
48
|
sessionNotice: "applied" | "reset" | "applied-with-model" | "mode-on" | "mode-off" | null;
|
|
46
49
|
invalidFields: string[];
|
|
47
50
|
editorEpoch: number;
|
|
51
|
+
validationEpoch: number;
|
|
48
52
|
}
|
|
49
53
|
export interface ProfilesActions {
|
|
54
|
+
readProfileView(): ProfilesViewSnapshot;
|
|
50
55
|
refresh(): Promise<void>;
|
|
51
56
|
open(id: string): Promise<void>;
|
|
52
57
|
create(): Promise<void>;
|
package/lib/client/controller.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isProfileId } from "../profile-remote.js";
|
|
2
|
+
import { safeIssue } from "./diagnostics.js";
|
|
2
3
|
import { editStructuredPath, moveFallback } from "./structured.js";
|
|
3
4
|
function modelSelectionWatermark(window) {
|
|
4
5
|
let watermark = -1;
|
|
@@ -25,7 +26,7 @@ export function canReconcileSelection(snapshot) {
|
|
|
25
26
|
export class ProfilesController {
|
|
26
27
|
remote;
|
|
27
28
|
current = { snapshot: null, editor: null, dirty: false, busy: null, issue: null, notice: null, pendingEditor: null,
|
|
28
|
-
catalog: null, catalogBusy: false, catalogUnavailable: true, currentSessionId: null, session: null, sessionChoice: null, sessionBusy: null, sessionIssue: null, sessionNotice: null, invalidFields: [], editorEpoch: 0 };
|
|
29
|
+
catalog: null, catalogBusy: false, catalogUnavailable: true, currentSessionId: null, session: null, sessionChoice: null, sessionBusy: null, sessionIssue: null, sessionNotice: null, invalidFields: [], editorEpoch: 0, validationEpoch: 0 };
|
|
29
30
|
accepted = null;
|
|
30
31
|
listeners = new Set();
|
|
31
32
|
generation = 0;
|
|
@@ -58,6 +59,7 @@ export class ProfilesController {
|
|
|
58
59
|
},
|
|
59
60
|
};
|
|
60
61
|
actions = {
|
|
62
|
+
readProfileView: () => this.store.getSnapshot(),
|
|
61
63
|
refresh: () => this.refresh(), open: (id) => this.open(id), create: () => this.open(NEW_EDITOR), reload: () => this.reload(),
|
|
62
64
|
editId: (id) => this.editId(id), editContent: (content) => this.editContent(content),
|
|
63
65
|
save: () => this.save(), apply: () => this.apply(), reset: () => this.reset(),
|
|
@@ -310,7 +312,9 @@ export class ProfilesController {
|
|
|
310
312
|
try {
|
|
311
313
|
// The accepted DTO and current native view have the same validated ID;
|
|
312
314
|
// native strict codecs remain authoritative for its branded wire type.
|
|
313
|
-
|
|
315
|
+
const { provider, model, reasoningEffort } = accepted.profileModel;
|
|
316
|
+
await this.unwrap(selector.selectModel({ sessionId: id, provider, model,
|
|
317
|
+
...(reasoningEffort === undefined ? {} : { reasoningEffort }) }));
|
|
314
318
|
// Never echo the returned model locally: native projections own the
|
|
315
319
|
// actual picker, and a later native Models-tab selection must win.
|
|
316
320
|
if (live())
|
|
@@ -349,7 +353,7 @@ export class ProfilesController {
|
|
|
349
353
|
if (result.ok)
|
|
350
354
|
return result.value;
|
|
351
355
|
if (result.error.code === "dsmm-profiles/refused") {
|
|
352
|
-
throw
|
|
356
|
+
throw safeIssue(result.error.details);
|
|
353
357
|
}
|
|
354
358
|
if (["gateway/input-invalid", "gateway/arguments-invalid"].includes(String(result.error.code))) {
|
|
355
359
|
throw { kind: "domain", code: "validation", field, message: "The native Host rejected a request field. Check the profile ID and document size before retrying." };
|
|
@@ -371,8 +375,10 @@ export class ProfilesController {
|
|
|
371
375
|
await operation(live);
|
|
372
376
|
}
|
|
373
377
|
catch (error) {
|
|
374
|
-
if (live())
|
|
375
|
-
|
|
378
|
+
if (live()) {
|
|
379
|
+
const issue = this.issue(error);
|
|
380
|
+
this.publish({ issue, ...(busy === "save" && issue.kind === "domain" && issue.code === "validation" ? { validationEpoch: this.current.validationEpoch + 1 } : {}) });
|
|
381
|
+
}
|
|
376
382
|
}
|
|
377
383
|
finally {
|
|
378
384
|
if (live())
|
|
@@ -488,7 +494,7 @@ export class ProfilesController {
|
|
|
488
494
|
if (editor === null || !this.current.dirty || this.current.snapshot === null || this.current.busy !== null || this.current.pendingEditor !== null || this.current.invalidFields.length > 0)
|
|
489
495
|
return;
|
|
490
496
|
if (!isProfileId(editor.id)) {
|
|
491
|
-
this.publish({ issue: { kind: "domain", code: "validation", field: "id" }, notice: null });
|
|
497
|
+
this.publish({ issue: { kind: "domain", code: "validation", field: "id" }, notice: null, validationEpoch: this.current.validationEpoch + 1 });
|
|
492
498
|
return;
|
|
493
499
|
}
|
|
494
500
|
await this.perform("save", async (live) => {
|
|
@@ -499,7 +505,7 @@ export class ProfilesController {
|
|
|
499
505
|
// The accepted response proves save; applying remains a separate commit.
|
|
500
506
|
const old = this.current.snapshot;
|
|
501
507
|
const profiles = old.profiles.filter((item) => item.id !== document.id);
|
|
502
|
-
profiles.push({ id: document.id, revision: document.revision, ...(document.label === undefined ? {} : { label: document.label }) });
|
|
508
|
+
profiles.push({ id: document.id, revision: document.revision, ...(document.label === undefined ? {} : { label: document.label }), ...(document.warnings === undefined ? {} : { warnings: document.warnings }) });
|
|
503
509
|
profiles.sort((a, b) => a.id.localeCompare(b.id));
|
|
504
510
|
this.publish({ snapshot: { ...old, profiles }, notice: { key: "saved", id: document.id } });
|
|
505
511
|
});
|
|
@@ -526,7 +532,7 @@ export class ProfilesController {
|
|
|
526
532
|
}
|
|
527
533
|
acceptSelection(snapshot, notice) {
|
|
528
534
|
this.publish({ snapshot, notice: snapshot.selectionError === undefined ? notice : null,
|
|
529
|
-
issue: snapshot.selectionError === undefined ? null : {
|
|
535
|
+
issue: snapshot.selectionError === undefined ? null : { ...safeIssue(snapshot.selectionError), source: "selection" } });
|
|
530
536
|
}
|
|
531
537
|
}
|
|
532
538
|
//# sourceMappingURL=controller.js.map
|
|
@@ -77,7 +77,7 @@ export class DeploymentController {
|
|
|
77
77
|
canWriteProfile(snapshot = this.state.snapshot) {
|
|
78
78
|
const native = this.form?.state;
|
|
79
79
|
return this.currentConnection() && snapshot !== null && this.rowNamespace !== null && this.rowNamespace === snapshot.namespace
|
|
80
|
-
&& native?.status === "ready" && native.
|
|
80
|
+
&& native?.status === "ready" && native.writable
|
|
81
81
|
&& native.revision === snapshot.nativeFormRevision && snapshot.nativeForm !== null
|
|
82
82
|
&& equal(native.base ?? null, snapshot.nativeForm.base) && equal(native.user ?? null, snapshot.nativeForm.user);
|
|
83
83
|
}
|
|
@@ -11,6 +11,7 @@ export declare function editLayer(base: Record<string, unknown>, path: readonly
|
|
|
11
11
|
export declare function layerDiff(base: Record<string, unknown>, draft: Record<string, unknown>, prefix?: string[]): DeploymentPathEdit[];
|
|
12
12
|
export declare function validateEditorValue(value: unknown, schema: DeploymentSchemaNode, sparse?: boolean): boolean;
|
|
13
13
|
export declare function enumValues(schema: DeploymentSchemaNode): Array<string | number | boolean> | null;
|
|
14
|
-
|
|
14
|
+
export declare function visibleDeploymentPath(path: readonly string[]): boolean;
|
|
15
|
+
/** Only visible Host-projected inspector layers, never raw sparse editor input. */
|
|
15
16
|
export declare function inspectorPaths(snapshot: DeploymentEditorSnapshot, admitted: DeploymentAdmissionView | null): string[];
|
|
16
17
|
//# sourceMappingURL=deployment-data.d.ts.map
|