@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { parseTree } from "jsonc-parser";
|
|
2
|
+
import { copyRouteJson, normalizeModelRouteJson } from "../route-json.js";
|
|
2
3
|
export function record(value) {
|
|
3
4
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
4
5
|
}
|
|
@@ -65,18 +66,41 @@ export function layerDiff(base, draft, prefix = []) {
|
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
export function validateEditorValue(value, schema, sparse = false) {
|
|
69
|
+
if (schema.type === "transform")
|
|
70
|
+
return schema.inner !== undefined && validateEditorValue(value, schema.inner, sparse);
|
|
71
|
+
if (schema.type === "any") {
|
|
72
|
+
try {
|
|
73
|
+
copyRouteJson(value);
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
68
80
|
if (schema.type === "union")
|
|
69
81
|
return schema.alternatives?.some(node => validateEditorValue(value, node, sparse)) === true;
|
|
70
82
|
if (schema.type === "const")
|
|
71
83
|
return value === schema.value;
|
|
84
|
+
if (schema.type === "object" && schema.additionalProperties === "json") {
|
|
85
|
+
try {
|
|
86
|
+
if (schema.fields?.provider?.type === "string" && schema.fields.model?.type === "string") {
|
|
87
|
+
normalizeModelRouteJson(value, sparse, true);
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
copyRouteJson(value);
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
72
96
|
if (schema.type === "object" || schema.type === "dict")
|
|
73
97
|
return record(value) && (sparse || schema.type !== "object" || Object.entries(schema.fields ?? {}).every(([key, node]) => !node.required || Object.hasOwn(value, key))) && Object.entries(value).every(([key, child]) => {
|
|
74
98
|
if (["__proto__", "prototype", "constructor"].includes(key))
|
|
75
99
|
return false;
|
|
76
100
|
if (schema.keys !== undefined && !schema.keys.includes(key))
|
|
77
101
|
return false;
|
|
78
|
-
const node = schema.type === "dict" ? schema.inner : schema.fields
|
|
79
|
-
return node !== undefined
|
|
102
|
+
const node = schema.type === "dict" ? schema.inner : schema.fields !== undefined && Object.hasOwn(schema.fields, key) ? schema.fields[key] : undefined;
|
|
103
|
+
return node !== undefined ? validateEditorValue(child, node, sparse) : schema.type === "object" && schema.additionalProperties === "json";
|
|
80
104
|
});
|
|
81
105
|
if (schema.type === "array")
|
|
82
106
|
return Array.isArray(value) && (schema.max === undefined || value.length <= schema.max) && schema.inner !== undefined && value.every(child => validateEditorValue(child, schema.inner));
|
|
@@ -90,12 +114,17 @@ export function enumValues(schema) {
|
|
|
90
114
|
return schema.type === "union" && schema.alternatives?.every(node => node.type === "const")
|
|
91
115
|
? schema.alternatives.map(node => node.value) : null;
|
|
92
116
|
}
|
|
93
|
-
|
|
117
|
+
export function visibleDeploymentPath(path) {
|
|
118
|
+
return path[0] !== "lsp" && (path[0] !== "permissionControl" || path.length === 1 || path.length === 2 && path[1] === "enabled");
|
|
119
|
+
}
|
|
120
|
+
/** Only visible Host-projected inspector layers, never raw sparse editor input. */
|
|
94
121
|
export function inspectorPaths(snapshot, admitted) {
|
|
95
122
|
const paths = new Set([...Object.keys(snapshot.sources), ...Object.keys(snapshot.startupSources ?? {}), ...Object.keys(snapshot.nextRoot?.sources ?? {}),
|
|
96
123
|
...Object.keys(snapshot.nextRoot?.captures ?? {}), ...Object.keys(admitted?.sources ?? {}), ...Object.keys(admitted?.captures ?? {})]);
|
|
97
124
|
const visit = (value, path) => {
|
|
98
|
-
if (
|
|
125
|
+
if (!visibleDeploymentPath(path))
|
|
126
|
+
return;
|
|
127
|
+
if (record(value) && Object.keys(value).length)
|
|
99
128
|
for (const [key, child] of Object.entries(value))
|
|
100
129
|
visit(child, [...path, key]);
|
|
101
130
|
else if (path.length)
|
|
@@ -104,6 +133,6 @@ export function inspectorPaths(snapshot, admitted) {
|
|
|
104
133
|
for (const value of [snapshot.desired, snapshot.startup, snapshot.nextRoot?.settings, admitted?.settings])
|
|
105
134
|
if (value !== undefined)
|
|
106
135
|
visit(value, []);
|
|
107
|
-
return [...paths].sort();
|
|
136
|
+
return [...paths].filter(path => visibleDeploymentPath(path.split("."))).sort();
|
|
108
137
|
}
|
|
109
138
|
//# sourceMappingURL=deployment-data.js.map
|
|
@@ -12,6 +12,10 @@ export declare const deploymentEn: {
|
|
|
12
12
|
ceiling: string;
|
|
13
13
|
hostUnknown: string;
|
|
14
14
|
boundaries: string;
|
|
15
|
+
core: string;
|
|
16
|
+
coreHint: string;
|
|
17
|
+
modelParametersHint: string;
|
|
18
|
+
permissionControlHint: string;
|
|
15
19
|
saveGlobal: string;
|
|
16
20
|
saveProfile: string;
|
|
17
21
|
saving: string;
|
|
@@ -8,7 +8,10 @@ export const deploymentEn = {
|
|
|
8
8
|
unavailableForm: "No verified writable form. Open this entry’s bundle or row config to edit profile overrides.",
|
|
9
9
|
ceiling: "Deepwork master is Global-only; profiles and session modes cannot lift its captured ceiling.",
|
|
10
10
|
hostUnknown: "Host bundle status: unknown (separate switch).",
|
|
11
|
-
boundaries: "New roots capture saved settings within startup capabilities. Save does not restart
|
|
11
|
+
boundaries: "New roots capture saved settings within startup capabilities. Save does not restart the Host; startup-only changes require a separate Host restart, which may cancel sessions.",
|
|
12
|
+
core: "Core", coreHint: "Core-owned desired settings. Model-parameter passthrough is ordinary config, not a subplugin. The permission-control enabled flag is startup-pinned. Save does not change current-session admission; inspect desired, startup and admitted values below. Unavailable admission stays unknown.",
|
|
13
|
+
modelParametersHint: "Default On. Off retains saved custom/opaque model parameters without forwarding them, and DSMM reasoningEffort / reasoning_effort aliases use native defaults. Standard SDK parameters and explicit native root choices remain intact. Raw JSON and exact effort values remain editable; saving desired settings does not verify provider transport readiness.",
|
|
14
|
+
permissionControlHint: "Permission-control module desired switch (default On), captured at startup. Global/native Save does not remove current protections or prove runtime coverage. Rules and exact Root approvals use the separate Permission control page; a restart remains independent.",
|
|
12
15
|
saveGlobal: "Save Global config", saveProfile: "Save profile overrides", saving: "Saving…", refresh: "Refresh", discard: "Discard and reload", dirty: "Unsaved changes", saved: "Saved",
|
|
13
16
|
inherit: "Inherit", explicit: "Override", defaultPin: "Built-in default pinned", hostPin: "Host pin remains when cleared",
|
|
14
17
|
globalSource: "Global", profileSource: "DSH profile", defaultsSource: "Built-in default", namedSource: "Named/session", startupSource: "Startup capture", deploymentCapture: "Deployment capture",
|
|
@@ -34,7 +37,10 @@ export const deploymentZh = {
|
|
|
34
37
|
unavailableForm: "没有已核验的可写表单。请打开此实例的 bundle 或条目配置以编辑覆盖。",
|
|
35
38
|
ceiling: "Deepwork 总开关仅全局可改;配置和会话模式不能突破已捕获上限。",
|
|
36
39
|
hostUnknown: "宿主整包状态:未知(独立开关)。",
|
|
37
|
-
boundaries: "
|
|
40
|
+
boundaries: "新根会话在启动能力内采用已保存设置。保存不重启宿主;仅启动时生效的更改需另行重启宿主,可能取消会话。",
|
|
41
|
+
core: "Core 核心配置", coreHint: "Core 所有的 desired 意图配置。模型参数透传为普通配置,非子插件;权限控制 enabled 仅启动时捕获。保存不改变当前会话准入;下方可检查意图、启动与准入值,不可用的准入仍为未知。",
|
|
42
|
+
modelParametersHint: "默认开启。关闭后仍保存 custom/opaque 模型参数但不发送;DSMM reasoningEffort/reasoning_effort 两种别名采用原生默认值。标准 SDK 参数与根会话原生显式选择保留。仍可编辑原始 JSON 和精确 effort 值;保存意图不代表提供商传输已就绪。",
|
|
43
|
+
permissionControlHint: "权限控制子模块 desired 开关(默认开启),仅启动时捕获。Global/native 保存不移除当前保护,也不证明运行时覆盖。规则及精确 Root 批准在独立“权限控制”页处理;重启仍为独立操作。",
|
|
38
44
|
saveGlobal: "保存全局配置", saveProfile: "保存当前配置覆盖", saving: "正在保存…", refresh: "刷新", discard: "丢弃并重载", dirty: "未保存", saved: "已保存",
|
|
39
45
|
inherit: "继承", explicit: "覆盖", defaultPin: "固定为内建默认值", hostPin: "清除后仍有宿主固定值",
|
|
40
46
|
globalSource: "全局", profileSource: "DSH 配置", defaultsSource: "内建默认", namedSource: "具名/会话", startupSource: "启动捕获", deploymentCapture: "部署捕获",
|
|
@@ -53,6 +59,8 @@ export const deploymentZh = {
|
|
|
53
59
|
};
|
|
54
60
|
/** Stable public field names stay visible alongside localized context. */
|
|
55
61
|
export const deploymentFieldLabels = {
|
|
62
|
+
modelParameters: ["Model parameters", "模型参数"], passthrough: ["Model parameter passthrough", "模型参数透传"],
|
|
63
|
+
permissionControl: ["Permission-control module", "权限控制子模块"],
|
|
56
64
|
modules: ["Modules", "子模块"], skills: ["Skills", "技能"], roles: ["Agent roles", "Agent 角色"],
|
|
57
65
|
deepwork: ["Deepwork", "Deepwork"], deepseekV4ProCalibration: ["DeepSeek V4 Pro calibration", "DeepSeek V4 Pro 校准"], deepseekV4ProDefaultReasoningEffort: ["DeepSeek V4 Pro default reasoning", "DeepSeek V4 Pro 默认推理强度"], deepseekV4ProMaxReasoningPresets: ["DeepSeek V4 Pro max presets", "DeepSeek V4 Pro 最高强度预设"], deepseekFlashCalibration: ["DeepSeek Flash calibration", "DeepSeek Flash 校准"], deepseekFlashDefaultReasoningEffort: ["DeepSeek Flash default reasoning", "DeepSeek Flash 默认推理强度"], deepseekFlashMaxReasoningPresets: ["DeepSeek Flash max presets", "DeepSeek Flash 最高强度预设"],
|
|
58
66
|
roleRouting: ["Existing-provider routes", "已有提供商路由"], runtimePolicy: ["Routing and retry policy", "路由与重试策略"],
|
|
@@ -60,6 +68,7 @@ export const deploymentFieldLabels = {
|
|
|
60
68
|
subagents: ["Subagents", "子 Agent"], lsp: ["LSP", "LSP"], presets: ["Preset materialization", "预设物化"],
|
|
61
69
|
modeName: ["Mode name", "模式名称"], section: ["Prompt section", "提示词章节"], promptOrder: ["Prompt order", "提示词顺序"], defaultActive: ["Default Deepwork mode", "默认 Deepwork 模式"],
|
|
62
70
|
enabled: ["Enabled", "启用"], materialize: ["Materialize presets", "物化预设"], scope: ["Guard scope", "保护范围"],
|
|
71
|
+
plannerRootEnabled: ["Planner main-chat preset (restart required)", "Planner 主聊天预设(需重启)"],
|
|
63
72
|
shellCommandSafety: ["Shell command safety", "Shell 命令安全"], gitWriteGuard: ["Git write policy", "Git 写入策略"],
|
|
64
73
|
toolOutputTruncation: ["Tool output truncation", "工具输出截断"], maxInlineBytes: ["Inline byte limit", "内联字节上限"],
|
|
65
74
|
planFormatValidation: ["Plan format validation", "计划格式校验"], questionLabelHelper: ["Question labels", "提问标签"], maxLabelChars: ["Label character limit", "标签字符上限"], todoDisciplineHelper: ["Todo discipline", "待办纪律"],
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
|
|
2
|
+
import type { ProfileDiagnostic, ProfileErrorInfo } from "../profile-types.js";
|
|
3
|
+
import type { ProfilesIssue } from "./controller.js";
|
|
4
|
+
/** Wire grammar is checked again at presentation; raw exception text is never retained. */
|
|
5
|
+
export declare function safeIssue(info: unknown): ProfilesIssue;
|
|
6
|
+
export declare function profileWarnings(warnings: ProfileDiagnostic[] | undefined): ProfileDiagnostic[];
|
|
7
|
+
export declare function draftWarnings(content: string): ProfileDiagnostic[];
|
|
8
|
+
export declare function ProfileWarnings({ warnings, t }: PropsLocale<"settings.dsmm-profiles"> & {
|
|
9
|
+
warnings?: ProfileDiagnostic[];
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
export declare function IssueDetails({ issue, t }: PropsLocale<"settings.dsmm-profiles"> & {
|
|
12
|
+
issue: ProfilesIssue | ProfileErrorInfo;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=diagnostics.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { findNodeAtLocation } from "jsonc-parser";
|
|
3
|
+
import { diagnostic, fieldLocation, inspectJsonDocument } from "../profile-diagnostics.js";
|
|
4
|
+
import { parseProfileDiagnostic, parseProfileErrorInfo } from "../profile-remote.js";
|
|
5
|
+
/** Wire grammar is checked again at presentation; raw exception text is never retained. */
|
|
6
|
+
export function safeIssue(info) {
|
|
7
|
+
try {
|
|
8
|
+
const parsed = parseProfileErrorInfo(info);
|
|
9
|
+
return { kind: "domain", code: parsed.code, ...(parsed.field === undefined ? {} : { field: parsed.field }),
|
|
10
|
+
...(parsed.reason === undefined ? {} : { reason: parsed.reason }), ...(parsed.location === undefined ? {} : { location: parsed.location }) };
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
return { kind: "assembly", code: "unavailable" };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function profileWarnings(warnings) {
|
|
17
|
+
return (warnings ?? []).flatMap(value => {
|
|
18
|
+
try {
|
|
19
|
+
const warning = parseProfileDiagnostic(value);
|
|
20
|
+
return warning.severity === "warning" && warning.code === "blank-label" && warning.field === "label" ? [warning] : [];
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export function draftWarnings(content) {
|
|
28
|
+
const { tree, diagnostics } = inspectJsonDocument(content);
|
|
29
|
+
if (tree?.type !== "object" || diagnostics.length !== 0)
|
|
30
|
+
return [];
|
|
31
|
+
const node = findNodeAtLocation(tree, ["label"]);
|
|
32
|
+
if (node?.type !== "string")
|
|
33
|
+
return [];
|
|
34
|
+
const label = node.value;
|
|
35
|
+
if (label.length > 120 || /[\u0000-\u001f\u007f]/u.test(label) || label.trim() !== ""
|
|
36
|
+
|| new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(new TextEncoder().encode(label)) !== label)
|
|
37
|
+
return [];
|
|
38
|
+
return [diagnostic("blank-label", "label", fieldLocation(content, tree, "label"))];
|
|
39
|
+
}
|
|
40
|
+
export function ProfileWarnings({ warnings, t }) {
|
|
41
|
+
return _jsx(_Fragment, { children: profileWarnings(warnings).map(warning => _jsxs("div", { className: "dsmm-warning", "data-dsmm-warning": true, children: [_jsx("p", { children: t("warningMarker", { code: warning.code, field: warning.field }) }), _jsxs("details", { children: [_jsx("summary", { children: t("details") }), _jsx("p", { children: t("blankLabelWarning") })] })] }, `${warning.code}:${warning.field}`)) });
|
|
42
|
+
}
|
|
43
|
+
export function IssueDetails({ issue, t }) {
|
|
44
|
+
const safe = safeIssue({ code: issue.code, message: "", ...(issue.field === undefined ? {} : { field: issue.field }),
|
|
45
|
+
...(issue.reason === undefined ? {} : { reason: issue.reason }), ...(issue.location === undefined ? {} : { location: issue.location }) });
|
|
46
|
+
return _jsxs("div", { className: "dsmm-diagnostic", children: [_jsx("p", { children: t("blockingMarker", { code: safe.reason ?? safe.code, field: safe.field ?? "document" }) }), safe.location !== undefined && _jsx("p", { children: t("diagnosticLocation", { line: safe.location.line, column: safe.location.column }) }), safe.reason !== undefined && _jsxs("details", { children: [_jsx("summary", { children: t("details") }), _jsx("p", { children: t(DIAGNOSTIC_LABELS[safe.reason]) })] })] });
|
|
47
|
+
}
|
|
48
|
+
const DIAGNOSTIC_LABELS = {
|
|
49
|
+
"invalid-jsonc": "diagnosticJsonc", "duplicate-field": "diagnosticDuplicate", "unsafe-field": "diagnosticUnsafe", "unknown-field": "diagnosticUnknown",
|
|
50
|
+
"deprecated-field": "diagnosticDeprecated", "invalid-type": "diagnosticType", "unsupported-value": "diagnosticValue", "invalid-route": "diagnosticRoute",
|
|
51
|
+
"required-role": "diagnosticRequired", "deployment-ceiling": "diagnosticCeiling", "blank-label": "blankLabelWarning",
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=diagnostics.js.map
|
package/lib/client/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ export { NS, en, zh } from "./locales.js";
|
|
|
7
7
|
export { TYPERT_REMOTE } from "../profile-remote.js";
|
|
8
8
|
export { SessionProfiles } from "./SessionProfiles.js";
|
|
9
9
|
export { structuredDocument, editStructuredPath, moveFallback } from "./structured.js";
|
|
10
|
+
export { ChildrenController } from "./children-controller.js";
|
|
11
|
+
export type { ChildrenActions, ChildrenSnapshot, ChildrenIssue } from "./children-controller.js";
|
|
12
|
+
export { ChildrenPanel } from "./ChildrenPanel.js";
|
|
13
|
+
export { ROLE_CONTROL_REMOTE } from "../role-control-remote.js";
|
|
10
14
|
/** No self-dependency on a namespace that this contribution has not mounted. */
|
|
11
15
|
export declare const inject: readonly ["slots", "locale", "remote"];
|
|
12
16
|
export declare function apply(ctx: Context): Promise<void>;
|
package/lib/client/index.js
CHANGED
|
@@ -7,18 +7,112 @@ import { SessionProfiles } from "./SessionProfiles.js";
|
|
|
7
7
|
import { DeploymentController } from "./deployment-controller.js";
|
|
8
8
|
import { DeploymentPage } from "./DeploymentPage.js";
|
|
9
9
|
import { DEPLOYMENT_NS, deploymentEn, deploymentZh } from "./deployment-locales.js";
|
|
10
|
+
import { ROLE_CONTROL_REMOTE } from "../role-control-remote.js";
|
|
11
|
+
import { ChildrenController } from "./children-controller.js";
|
|
12
|
+
import { ChildrenPanel } from "./ChildrenPanel.js";
|
|
13
|
+
import { CHILDREN_NS, childrenLocaleEn, childrenLocaleZh } from "./children-locales.js";
|
|
14
|
+
import { PERMISSION_REMOTE } from "../permission-remote.js";
|
|
15
|
+
import { permissionClient } from "./permission-client.js";
|
|
16
|
+
import { PermissionController } from "./permission-controller.js";
|
|
17
|
+
import { PermissionsPanel } from "./PermissionsPanel.js";
|
|
18
|
+
import { PERMISSIONS_NS, permissionEn, permissionZh } from "./permission-locales.js";
|
|
10
19
|
export { ProfilesController, NEW_PROFILE_CONTENT } from "./controller.js";
|
|
11
20
|
export { ProfilesSection } from "./ProfilesSection.js";
|
|
12
21
|
export { NS, en, zh } from "./locales.js";
|
|
13
22
|
export { TYPERT_REMOTE } from "../profile-remote.js";
|
|
14
23
|
export { SessionProfiles } from "./SessionProfiles.js";
|
|
15
24
|
export { structuredDocument, editStructuredPath, moveFallback } from "./structured.js";
|
|
25
|
+
export { ChildrenController } from "./children-controller.js";
|
|
26
|
+
export { ChildrenPanel } from "./ChildrenPanel.js";
|
|
27
|
+
export { ROLE_CONTROL_REMOTE } from "../role-control-remote.js";
|
|
16
28
|
/** No self-dependency on a namespace that this contribution has not mounted. */
|
|
17
29
|
export const inject = ["slots", "locale", "remote"];
|
|
18
30
|
export async function apply(ctx) {
|
|
19
31
|
await ctx.remote.$mount(TYPERT_REMOTE);
|
|
32
|
+
await ctx.remote.$mount(ROLE_CONTROL_REMOTE);
|
|
33
|
+
await ctx.remote.$mount(PERMISSION_REMOTE);
|
|
34
|
+
const permissions = new PermissionController();
|
|
35
|
+
ctx.effect(() => () => permissions.dispose(), "dsmm: permission controls");
|
|
36
|
+
ctx.effect(() => ctx.locale.register(PERMISSIONS_NS, { en: permissionEn, zh: permissionZh }), "dsmm: permission locale");
|
|
37
|
+
ctx.effect(() => {
|
|
38
|
+
const style = document.createElement("style");
|
|
39
|
+
style.dataset.dsmmPermissions = "";
|
|
40
|
+
style.textContent = PROFILE_STYLES;
|
|
41
|
+
document.head.append(style);
|
|
42
|
+
return () => style.remove();
|
|
43
|
+
}, "dsmm: permission styles");
|
|
44
|
+
const permissionInject = () => ({ controller: permissions }), permissionT = ctx.locale.bind(PERMISSIONS_NS);
|
|
45
|
+
ctx.slots.inject("settings.section", () => ctx.slots.register({ name: "settings.section", id: "dsmm-permissions", order: 35,
|
|
46
|
+
label: () => permissionT("title"), locale: PERMISSIONS_NS, inject: permissionInject }, PermissionsPanel));
|
|
47
|
+
ctx.slots.inject("conversation.view", () => ctx.slots.register({ name: "conversation.view", id: "dsmm-permissions", order: 35,
|
|
48
|
+
label: () => permissionT("title"), locale: PERMISSIONS_NS, inject: permissionInject }, PermissionsPanel));
|
|
49
|
+
void ctx.inject(["connection"], connectionCtx => {
|
|
50
|
+
const handle = connectionCtx.connection, invoke = permissionClient(handle);
|
|
51
|
+
const update = () => { const generation = handle.generation.getSnapshot(); permissions.bindConnection(generation === undefined ? null : invoke, generation); };
|
|
52
|
+
update();
|
|
53
|
+
connectionCtx.effect(() => handle.generation.subscribe(update));
|
|
54
|
+
connectionCtx.effect(() => () => permissions.bindConnection(null), "dsmm: permission connection withdrawal");
|
|
55
|
+
});
|
|
56
|
+
void ctx.inject(["uiSession", "sessions"], sessionCtx => {
|
|
57
|
+
const source = sessionCtx.uiSession.adapter.current, sessions = sessionCtx.sessions;
|
|
58
|
+
let observed, stop;
|
|
59
|
+
const update = () => {
|
|
60
|
+
const id = source.getSnapshot().key, binding = id === undefined ? undefined : sessions.binding(id);
|
|
61
|
+
if (binding !== observed) {
|
|
62
|
+
stop?.();
|
|
63
|
+
observed = binding;
|
|
64
|
+
stop = binding?.session.subscribe(update);
|
|
65
|
+
}
|
|
66
|
+
const snapshot = binding?.session.getSnapshot(), catalog = sessions.list.getSnapshot(), summary = id === undefined ? undefined : catalog.byId[id];
|
|
67
|
+
const child = snapshot?.subagent != null || summary?.origin === "subagent" || summary?.parentId !== undefined;
|
|
68
|
+
const root = id !== undefined && binding?.sessionId === id && snapshot?.sessionId === id && snapshot.openState === "open" && !snapshot.removed
|
|
69
|
+
&& catalog.ids.includes(id) && summary !== undefined && !child;
|
|
70
|
+
permissions.bindScope(id ?? null, binding ?? null, child ? "child" : root ? "root" : "unknown");
|
|
71
|
+
};
|
|
72
|
+
update();
|
|
73
|
+
sessionCtx.effect(() => source.subscribe(update));
|
|
74
|
+
sessionCtx.effect(() => sessions.list.subscribe(update));
|
|
75
|
+
sessionCtx.effect(() => () => { stop?.(); permissions.bindScope(null, null, "unknown"); }, "dsmm: permission native session withdrawal");
|
|
76
|
+
});
|
|
20
77
|
let deployment = null;
|
|
21
78
|
let profiles = null;
|
|
79
|
+
let children = null;
|
|
80
|
+
const observeChildAdmission = () => {
|
|
81
|
+
const session = profiles?.store.getSnapshot().session;
|
|
82
|
+
if (session !== null && session !== undefined)
|
|
83
|
+
children?.observeAdmission(session.sessionId, session.admissionEpoch);
|
|
84
|
+
};
|
|
85
|
+
await ctx.inject(["remote.dsmmChildren"], childCtx => {
|
|
86
|
+
const controller = new ChildrenController(childCtx.remote.dsmmChildren);
|
|
87
|
+
children = controller;
|
|
88
|
+
childCtx.effect(() => () => { children = null; controller.dispose(); }, "dsmm: child controls");
|
|
89
|
+
childCtx.effect(() => childCtx.locale.register(CHILDREN_NS, { en: childrenLocaleEn, zh: childrenLocaleZh }), "dsmm: child locale");
|
|
90
|
+
childCtx.effect(() => {
|
|
91
|
+
const style = document.createElement("style");
|
|
92
|
+
style.dataset.dsmmChildren = "";
|
|
93
|
+
style.textContent = PROFILE_STYLES;
|
|
94
|
+
document.head.append(style);
|
|
95
|
+
return () => style.remove();
|
|
96
|
+
}, "dsmm: child styles");
|
|
97
|
+
const t = childCtx.locale.bind(CHILDREN_NS);
|
|
98
|
+
childCtx.slots.inject("conversation.view", () => childCtx.slots.register({ name: "conversation.view", id: "dsmm-children", order: 30,
|
|
99
|
+
label: () => t("title"), locale: CHILDREN_NS, inject: () => ({ hooks: { children: controller.store }, ...controller.actions }) }, ChildrenPanel));
|
|
100
|
+
void childCtx.inject(["connection"], connectionCtx => {
|
|
101
|
+
const handle = connectionCtx.connection;
|
|
102
|
+
const update = () => { const generation = handle.generation.getSnapshot(); controller.bindConnection(generation === undefined ? null : handle, generation); };
|
|
103
|
+
update();
|
|
104
|
+
connectionCtx.effect(() => handle.generation.subscribe(update));
|
|
105
|
+
connectionCtx.effect(() => () => controller.bindConnection(null), "dsmm: child connection withdrawal");
|
|
106
|
+
});
|
|
107
|
+
void childCtx.inject(["uiSession", "sessions"], sessionCtx => {
|
|
108
|
+
const source = sessionCtx.uiSession.adapter.current, nativeSessions = sessionCtx.sessions;
|
|
109
|
+
const update = () => { const id = source.getSnapshot().key; controller.bindScope(id ?? null, id === undefined ? null : nativeSessions.binding(id) ?? null); observeChildAdmission(); };
|
|
110
|
+
update();
|
|
111
|
+
sessionCtx.effect(() => source.subscribe(update));
|
|
112
|
+
sessionCtx.effect(() => () => controller.bindScope(null, null), "dsmm: child session withdrawal");
|
|
113
|
+
});
|
|
114
|
+
observeChildAdmission();
|
|
115
|
+
});
|
|
22
116
|
// This core-owned graph must not depend on DW, named profiles or a session.
|
|
23
117
|
await ctx.inject(["remote.dsmmConfig"], (coreCtx) => {
|
|
24
118
|
const core = new DeploymentController(coreCtx.remote.dsmmConfig, "global");
|
|
@@ -64,7 +158,7 @@ export async function apply(ctx) {
|
|
|
64
158
|
await ctx.inject(["remote.dsmmProfiles"], (profileCtx) => {
|
|
65
159
|
const controller = new ProfilesController(profileCtx.remote.dsmmProfiles);
|
|
66
160
|
profiles = controller;
|
|
67
|
-
profileCtx.effect(() => controller.store.subscribe(() => deployment?.setSession(controller.store.getSnapshot().session)));
|
|
161
|
+
profileCtx.effect(() => controller.store.subscribe(() => { deployment?.setSession(controller.store.getSnapshot().session); observeChildAdmission(); }));
|
|
68
162
|
profileCtx.effect(() => () => { profiles = null; deployment?.setSession(null); });
|
|
69
163
|
profileCtx.effect(() => () => controller.dispose(), "dsmm: profile editor");
|
|
70
164
|
profileCtx.effect(() => profileCtx.locale.register(NS, { en, zh }), "dsmm: profile locale");
|
|
@@ -85,7 +179,7 @@ export async function apply(ctx) {
|
|
|
85
179
|
// fallback never replaces ordinary native/plugin leading navigation.
|
|
86
180
|
profileCtx.slots.inject("conversation.header.leading", () => profileCtx.slots.register({
|
|
87
181
|
name: "conversation.header.leading", priority: Number.MAX_SAFE_INTEGER, locale: NS,
|
|
88
|
-
inject: () => ({ hooks: { profiles: controller.store },
|
|
182
|
+
inject: () => ({ hooks: { profiles: controller.store }, ...controller.actions }),
|
|
89
183
|
}, SessionProfiles));
|
|
90
184
|
// Optional native services have their own lifetime. Do not await them or
|
|
91
185
|
// make sessionless Settings depend on a Conversation/session provider.
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
export declare const NS = "settings.dsmm-profiles";
|
|
2
2
|
export declare const en: {
|
|
3
|
+
diagnosticJsonc: string;
|
|
4
|
+
diagnosticDuplicate: string;
|
|
5
|
+
diagnosticUnsafe: string;
|
|
6
|
+
diagnosticUnknown: string;
|
|
7
|
+
diagnosticDeprecated: string;
|
|
8
|
+
diagnosticType: string;
|
|
9
|
+
diagnosticValue: string;
|
|
10
|
+
diagnosticRoute: string;
|
|
11
|
+
diagnosticRequired: string;
|
|
12
|
+
diagnosticCeiling: string;
|
|
13
|
+
browseZone: string;
|
|
14
|
+
editZone: string;
|
|
15
|
+
savedRevision: string;
|
|
16
|
+
savedInventory: string;
|
|
17
|
+
futurePin: string;
|
|
18
|
+
noEditor: string;
|
|
19
|
+
warningMarker: string;
|
|
20
|
+
blockingMarker: string;
|
|
21
|
+
blankLabelWarning: string;
|
|
22
|
+
diagnosticLocation: string;
|
|
23
|
+
savedWarnings: string;
|
|
24
|
+
draftWarnings: string;
|
|
25
|
+
futureWarnings: string;
|
|
26
|
+
admissionWarnings: string;
|
|
27
|
+
warningProfile: string;
|
|
28
|
+
omitLabel: string;
|
|
29
|
+
businessLocale: string;
|
|
30
|
+
inheritLocale: string;
|
|
31
|
+
unsupportedLocale: string;
|
|
32
|
+
localeHint: string;
|
|
33
|
+
toolTopology: string;
|
|
34
|
+
topologyHint: string;
|
|
35
|
+
levelName: string;
|
|
36
|
+
levelMode: string;
|
|
37
|
+
levelUnconfigured: string;
|
|
38
|
+
levelEffortOnly: string;
|
|
39
|
+
levelFullRoute: string;
|
|
40
|
+
normalLevel: string;
|
|
41
|
+
orchestratorLevels: string;
|
|
42
|
+
levelsHint: string;
|
|
43
|
+
namedRole: string;
|
|
44
|
+
namedRoleHint: string;
|
|
45
|
+
availabilityUnknown: string;
|
|
46
|
+
roleRequired: string;
|
|
47
|
+
roleOptional: string;
|
|
48
|
+
roleCeiling: string;
|
|
49
|
+
roleProvenance: string;
|
|
50
|
+
roleUnavailableReason: string;
|
|
51
|
+
admittedRoles: string;
|
|
52
|
+
bindingUnknown: string;
|
|
53
|
+
bindingState: string;
|
|
54
|
+
bindingReason: string;
|
|
55
|
+
sessionModelHint: string;
|
|
56
|
+
savedOnlyHint: string;
|
|
3
57
|
centralOrigin: string;
|
|
4
58
|
legacyOrigin: string;
|
|
5
59
|
explicitOrigin: string;
|
package/lib/client/locales.js
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
export const NS = "settings.dsmm-profiles";
|
|
2
2
|
export const en = {
|
|
3
|
+
diagnosticJsonc: "Correct the JSONC syntax at the indicated location.", diagnosticDuplicate: "Remove the duplicate field at this location.", diagnosticUnsafe: "Unsafe object keys are not supported; remove this field.", diagnosticUnknown: "Remove this unsupported field. Private and installation configuration belongs in native deployment settings.", diagnosticDeprecated: "This retired field is rejected. Configure explicit role levels instead; no migration is performed.", diagnosticType: "Use the declared field type and bounded value.", diagnosticValue: "Choose an explicitly supported value. Output-language choices are shown in the structured language field.", diagnosticRoute: "Use a complete provider/model route or a nonempty exact-effort override.", diagnosticRequired: "This role is required by the selected Deepwork policy and cannot be disabled.", diagnosticCeiling: "A named profile cannot enable capabilities outside its captured startup/deployment ceiling.",
|
|
4
|
+
browseZone: "Browse saved profiles", editZone: "Edit draft", savedRevision: "Saved revision: {revision}", savedInventory: "Saved profiles and diagnostics", futurePin: "Future selection revision: {revision}", noEditor: "Open a saved profile or create a draft to edit. Browsing does not activate a profile.",
|
|
5
|
+
warningMarker: "Warning · nonblocking · {code} · {field}", blockingMarker: "Blocked · {code} · {field}", blankLabelWarning: "The label is blank. The profile ID is used for display; the original document can still be saved and selected.", diagnosticLocation: "JSONC line {line}, column {column}.",
|
|
6
|
+
savedWarnings: "Saved revision warnings", draftWarnings: "Draft warnings", futureWarnings: "Future-default pin warnings", admissionWarnings: "Current-admission warnings", warningProfile: "warning (nonblocking)",
|
|
7
|
+
omitLabel: "Inherit display name from ID (omit label)", businessLocale: "Default output language", inheritLocale: "Inherit deployment / native language", unsupportedLocale: "Unsupported draft language — choose an allowed value", localeHint: "Omitted locale inherits the deployment preference, then native/user language. An explicit user request wins. This never changes the interface language.",
|
|
8
|
+
toolTopology: "Subagent tool topology", topologyHint: "per-role exposes role tools plus the category entry; parameterized exposes role/category entries. Omitted inherits deployment (default per-role). Background, depth and route-override permissions remain deployment-only.",
|
|
9
|
+
levelName: "Invocation level: {level}", levelMode: "{level} override", levelUnconfigured: "Not configured / inherit deployment level", levelEffortOnly: "Exact effort only", levelFullRoute: "Complete provider/model route", normalLevel: "normal · default route (read-only alias; omission means normal)", orchestratorLevels: "The ordinary orchestrator root has no invocation levels. Its native model is unchanged.", levelsHint: "Levels are call resources, not workflow tiers. An unconfigured requested level is rejected; an effort-only override uses the resolved model. An explicit complete route replaces model and effort together.",
|
|
10
|
+
namedRole: "{name} named-profile availability", namedRoleHint: "Omitted inherits the captured deployment ceiling. Required roles cannot be disabled; enable requests cannot lift startup or deployment restrictions. Routing remains editable even for disabled roles.", availabilityUnknown: "Role availability metadata is unavailable. Required status and startup/deployment ceilings cannot be inferred; refresh before requesting an availability change.", roleRequired: "Required role · {reason}", roleOptional: "Optional role", roleCeiling: "Startup: {startup}; deployment: {deployment}; captured admission: {admitted}.", roleProvenance: "Source: {source}; capture: {capture}.", roleUnavailableReason: "Availability reason: {reason}.",
|
|
11
|
+
admittedRoles: "Captured role availability", bindingUnknown: "Subagent runtime binding is unconfirmed; no delivery-readiness guarantee can be inferred from configuration.", bindingState: "Captured subagent binding: {binding}; delivery fence: {ready}; restart required: {restart}.", bindingReason: "Binding reason: {reason}.", sessionModelHint: "Apply/Baseline keep the native root model and existing children. Only Use profile model explicitly asks native model selection to change.", savedOnlyHint: "Select the editor's saved immutable revision, not its dirty draft. Save does not select or apply it.",
|
|
3
12
|
centralOrigin: "Named resources: shared central store.", legacyOrigin: "Named resources: legacy native-profile store (read-only).", explicitOrigin: "Named resources: explicitly configured store.", readOnlyOrigin: "This legacy store is read-only. Files are not copied or migrated; selection and current-session actions retain their own authority.",
|
|
4
13
|
headerCompactProfiles: "Profiles · keep model", headerCompactRefresh: "Refresh", headerNoSession: "Select a session to make changes.",
|
|
5
14
|
headerModeEnable: "Enable Deepwork", headerModeDisable: "Disable Deepwork", headerModePreset: "Deepwork · DW preset", headerModeUnavailable: "Deepwork unavailable", headerModeOn: "Deepwork enabled.", headerModeOff: "Deepwork disabled.", headerUseCurrentModel: "Use profile model",
|
|
6
15
|
title: "Deepwork Profiles", description: "Save independent runtime configurations and choose which one new sessions use.",
|
|
7
|
-
newSessions: "
|
|
16
|
+
newSessions: "This saved pin is the default for future sessions only. Current admissions and existing children remain unchanged; explicit session selections retain their own authority.",
|
|
8
17
|
editorSelect: "Profile to edit", choose: "Choose a profile", newDraft: "New unsaved profile", new: "New profile",
|
|
9
18
|
profileId: "Profile ID (name)", idHint: "Use 1–64 lowercase letters, digits, hyphens or underscores. The ID cannot be changed after saving. Add an optional display label in the JSONC document.",
|
|
10
|
-
configuration: "Runtime configuration (JSONC)", configurationHint: "Document: version 1, matching id, optional label, and settings.
|
|
11
|
-
structuralHint: "
|
|
12
|
-
save: "Save profile", saving: "Saving profile…", apply: "
|
|
19
|
+
configuration: "Runtime configuration (JSONC)", configurationHint: "Document: version 1, matching id, optional label, and settings. Runtime overlays support role routes/levels, locale, role availability, topology, workflow, guards, recovery, calibration and default effort. Retired max-preset fields are rejected, not migrated.",
|
|
20
|
+
structuralHint: "Skills, prompt content, preset installation, providers/accounts, background/depth and arbitrary route permissions remain deployment-only. Never paste credentials. JSONC and structured controls edit the same draft without normalizing unrelated bytes.",
|
|
21
|
+
save: "Save profile", saving: "Saving profile…", apply: "Set as future default", applying: "Selecting future default…", reset: "Use baseline for future sessions", resetting: "Resetting future default…",
|
|
13
22
|
refresh: "Refresh profiles", refreshing: "Refreshing profiles…", reload: "Reload saved profile", loading: "Loading profiles…", reading: "Reading profile…",
|
|
14
23
|
empty: "No saved profiles yet. Create a profile to start; the deployment baseline remains applied.",
|
|
15
24
|
baseline: "Applied to new sessions: deployment baseline.", appliedProfile: "Applied to new sessions: {id} (revision {revision}).",
|
|
16
25
|
appliedInvalid: "The stored selection cannot be confirmed. Existing sessions remain unchanged. Resolve the Host diagnostic before applying or resetting a profile.",
|
|
17
26
|
selectionConflict: "The stored selection changed outside this Host. This Host still uses the policy shown above for new sessions. Apply a saved profile or reset to baseline to reconcile it; restarting adopts the stored selection. Existing sessions stay unchanged.",
|
|
18
|
-
dirty: "
|
|
27
|
+
dirty: "Draft differs from the saved revision. Save or explicitly discard before selecting it.", savedNotApplied: "Saved revision; not the future-default pin.", savedApplied: "Saved revision matches the future-default pin, not necessarily the current admission.",
|
|
19
28
|
saved: "Saved {id}. The applied policy was not changed.", applied: "Applied {id} for new sessions. Existing sessions were not changed.", resetDone: "Reset to the deployment baseline for new sessions. Existing sessions were not changed.",
|
|
20
29
|
discardPrompt: "Discard the unsaved draft before changing the editor?", discard: "Discard changes", cancel: "Cancel",
|
|
21
30
|
conflict: "The saved file or selection changed elsewhere. Your draft and the prior selection were kept. Refresh profiles, then reload the saved profile or review your draft before retrying.",
|
|
@@ -25,8 +34,8 @@ export const en = {
|
|
|
25
34
|
transport: "The native connection could not confirm this operation. Your draft is kept. Refresh the Host state before retrying; do not assume a save or apply completed.",
|
|
26
35
|
invalidProfile: "Unavailable profile: {id}", details: "Host diagnostic", retry: "Resolve the diagnostic, refresh profiles, then retry.",
|
|
27
36
|
globalScope: "Global default for future sessions", sessionScope: "Current native session", sessionSelect: "Current-session profile",
|
|
28
|
-
globalActionHint: "
|
|
29
|
-
headerProfile: "Profile", headerProfileLabel: "Current-session profile (header)", headerCaptured: "captured
|
|
37
|
+
globalActionHint: "Set as future default selects only the saved revision for future sessions. It does not apply to the current session.",
|
|
38
|
+
headerProfile: "Profile", headerProfileLabel: "Current-session profile (header)", headerCaptured: "captured admission · exact profile unavailable", headerSavedUnavailable: "saved profile unavailable", headerCurrentProfile: "Current profile: {profile}", headerRefresh: "Refresh profiles and current-session state", headerUseModelAction: "Use profile model: {profile}",
|
|
30
39
|
headerLoading: "Loading profile…", headerApplying: "Applying profile…", headerApplied: "Profile applied.", headerBusy: "Session is busy.", headerUnavailable: "Profile unavailable.", headerDraft: "Save or discard the draft in Settings.", headerConflict: "The session profile or admission changed elsewhere. Refresh current-session state before retrying.", headerRefused: "Profile change unconfirmed. Check Settings.",
|
|
31
40
|
headerKeepModelGroup: "Switch profile — keep current model", headerUseModelGroup: "Switch and use profile model", headerModelDefaultHint: "Normal switching preserves the current model. Explicit switch-and-use-model also saves the native model default, like the Models tab.",
|
|
32
41
|
headerNoProfileModel: "Profile applied; no main model configured. Current model kept.", headerModelUnconfirmed: "Profile applied; model change unconfirmed. Check Models/Settings.", headerAppliedWithModel: "Profile and native model applied.",
|
|
@@ -37,7 +46,7 @@ export const en = {
|
|
|
37
46
|
sessionUnavailable: "The current session could not be confirmed. Refresh its state before retrying; the prior policy is kept.",
|
|
38
47
|
sessionBusy: "Switching is unavailable: {reason}. The Host must reserve a truly idle ordinary session before applying.",
|
|
39
48
|
sessionState: "Session {id}: {profile}; scope {scope}; admission epoch {epoch}.", sessionBaseline: "deployment baseline",
|
|
40
|
-
sessionGlobalCaptured: "captured
|
|
49
|
+
sessionGlobalCaptured: "captured admission (exact profile identity unavailable)",
|
|
41
50
|
sessionAdmittedProfile: "{id} (revision {revision})", sessionFutureDefault: "Global default for future unscoped sessions: {profile}. This does not change this session's admission.",
|
|
42
51
|
sessionConflict: "The session selection or admission epoch changed elsewhere. The prior display and draft are kept. Refresh current-session state before applying again.",
|
|
43
52
|
sessionApply: "Apply profile to current session", sessionApplying: "Applying current-session profile…", sessionReset: "Pin baseline for current session", sessionResetting: "Pinning current-session baseline…", sessionRefresh: "Refresh current-session state",
|
|
@@ -59,22 +68,31 @@ export const en = {
|
|
|
59
68
|
advanced: "Advanced JSONC", rawInvalid: "Structured editing is unavailable for this invalid raw draft. Correct Advanced JSONC; no fields, comments or bytes have been normalized.", invalidNumber: "Correct this bounded integer before saving or changing roles. The invalid value has not replaced the saved draft policy.",
|
|
60
69
|
};
|
|
61
70
|
export const zh = {
|
|
71
|
+
diagnosticJsonc: "请修正所示位置的 JSONC 语法。", diagnosticDuplicate: "请删除此位置的重复字段。", diagnosticUnsafe: "不支持不安全对象键,请删除此字段。", diagnosticUnknown: "请删除不支持的字段。私有及安装配置应放在原生部署设置中。", diagnosticDeprecated: "此已退休字段被拒绝,请改用明确的角色调用等级,不自动迁移。", diagnosticType: "请使用声明的字段类型和有界数值。", diagnosticValue: "请选择明确支持的值。允许的输出语言见结构化语言字段。", diagnosticRoute: "请提供完整提供商与模型路由,或非空精确强度覆盖。", diagnosticRequired: "所选 Deepwork 策略要求此角色,不可禁用。", diagnosticCeiling: "具名配置档不能启用超出已捕获启动或部署上限的能力。",
|
|
72
|
+
browseZone: "浏览已保存配置档", editZone: "编辑草稿", savedRevision: "保存的修订:{revision}", savedInventory: "已保存配置档与诊断", futurePin: "未来默认选择修订:{revision}", noEditor: "打开已保存配置档或新建草稿。浏览不会启用配置档。",
|
|
73
|
+
warningMarker: "警告 · 不阻断 · {code} · {field}", blockingMarker: "已阻断 · {code} · {field}", blankLabelWarning: "显示名称为空,使用配置档 ID 显示。原文仍可保存和选择。", diagnosticLocation: "JSONC 第 {line} 行,第 {column} 列。",
|
|
74
|
+
savedWarnings: "保存修订的警告", draftWarnings: "草稿警告", futureWarnings: "未来默认固定修订的警告", admissionWarnings: "当前准入的警告", warningProfile: "警告(不阻断)",
|
|
75
|
+
omitLabel: "使用 ID 显示(省略 label)", businessLocale: "默认输出语言", inheritLocale: "继承部署或原生语言", unsupportedLocale: "草稿语言不受支持,请选择允许值", localeHint: "省略 locale 时继承部署偏好,再继承原生或用户语言。本次用户明确请求优先,不改变界面语言。",
|
|
76
|
+
toolTopology: "子 Agent 工具拓扑", topologyHint: "per-role 暴露角色工具及类别入口;parameterized 暴露角色与类别参数化入口。省略时继承部署(默认 per-role)。后台、深度及路由覆盖权限仅可在部署中配置。",
|
|
77
|
+
levelName: "调用资源等级:{level}", levelMode: "{level} 覆盖", levelUnconfigured: "未配置或继承部署等级", levelEffortOnly: "仅精确推理强度", levelFullRoute: "完整提供商与模型路由", normalLevel: "normal · 默认路由(只读别名;省略即 normal)", orchestratorLevels: "普通 orchestrator 根会话没有调用等级,不改变其原生模型。", levelsHint: "等级代表调用资源,不代表流程等级。请求未配置等级会被拒绝;仅强度覆盖使用已解析模型;完整路由同时替换模型和强度。",
|
|
78
|
+
namedRole: "{name} 的具名配置可用性", namedRoleHint: "省略时继承已捕获部署上限。必需角色不可禁用;启用请求不能突破启动或部署限制。禁用角色仍可编辑路由。", availabilityUnknown: "角色可用性元数据不可用,不能猜测必需集合或启动与部署上限。请求更改可用性前请刷新。", roleRequired: "必需角色 · {reason}", roleOptional: "可选角色", roleCeiling: "启动:{startup};部署:{deployment};捕获准入:{admitted}。", roleProvenance: "来源:{source};捕获:{capture}。", roleUnavailableReason: "可用性原因:{reason}。",
|
|
79
|
+
admittedRoles: "已捕获角色可用性", bindingUnknown: "尚未确认子 Agent 运行时绑定,不能从配置推断投递守卫已就绪。", bindingState: "捕获的子 Agent 绑定:{binding};投递守卫:{ready};需重启:{restart}。", bindingReason: "绑定原因:{reason}。", sessionModelHint: "应用或固定基线保留原生根模型和已有子会话。只有「使用配置档模型」会明确请求原生模型切换。", savedOnlyHint: "选择编辑器对应的已保存固定修订,而不是脏草稿。保存不会选择或应用。",
|
|
62
80
|
centralOrigin: "具名资源:共享中央存储。", legacyOrigin: "具名资源:旧原生配置存储(只读)。", explicitOrigin: "具名资源:显式指定的存储。", readOnlyOrigin: "此旧存储只读,不复制或迁移文件;选择与当前会话操作仍使用各自的权限。",
|
|
63
81
|
headerCompactProfiles: "配置档 · 保留模型", headerCompactRefresh: "刷新", headerNoSession: "选择会话后可更改。",
|
|
64
82
|
headerModeEnable: "启用 Deepwork", headerModeDisable: "关闭 Deepwork", headerModePreset: "Deepwork · DW 预设", headerModeUnavailable: "Deepwork 不可用", headerModeOn: "Deepwork 已启用。", headerModeOff: "Deepwork 已关闭。", headerUseCurrentModel: "使用配置档模型",
|
|
65
83
|
title: "Deepwork 配置档", description: "保存独立的运行时配置,并选择新会话使用的配置档。",
|
|
66
|
-
newSessions: "
|
|
84
|
+
newSessions: "此固定修订仅作为未来会话默认值。当前准入与已有子会话不变;明确的会话选择保留自己的权限。",
|
|
67
85
|
editorSelect: "要编辑的配置档", choose: "选择配置档", newDraft: "新的未保存配置档", new: "新建配置档",
|
|
68
86
|
profileId: "配置档 ID(名称)", idHint: "使用 1–64 个小写字母、数字、连字符或下划线。保存后不能修改 ID。可在 JSONC 文档中添加可选的显示名称 label。",
|
|
69
|
-
configuration: "运行时配置(JSONC)", configurationHint: "文档包含 version: 1
|
|
70
|
-
structuralHint: "
|
|
71
|
-
save: "保存配置档", saving: "正在保存配置档…", apply: "
|
|
87
|
+
configuration: "运行时配置(JSONC)", configurationHint: "文档包含 version: 1、相同 id、可选 label 和 settings。支持角色路由与调用等级、语言、角色可用性、拓扑、流程、守卫、恢复、校准与默认推理强度。已退休的最高强度预设字段会被拒绝,不自动迁移。",
|
|
88
|
+
structuralHint: "技能、提示内容、预设安装、提供商与账户、后台与深度及任意路由权限仅可在部署中配置。请勿粘贴凭证。JSONC 与结构化控件共享草稿,不规范化无关字节。",
|
|
89
|
+
save: "保存配置档", saving: "正在保存配置档…", apply: "设为未来默认", applying: "正在选择未来默认…", reset: "未来会话使用基线", resetting: "正在重置未来默认…",
|
|
72
90
|
refresh: "刷新配置档", refreshing: "正在刷新配置档…", reload: "重新加载已保存配置档", loading: "正在加载配置档…", reading: "正在读取配置档…",
|
|
73
91
|
empty: "尚无已保存的配置档。可新建配置档;当前仍应用部署基线。",
|
|
74
92
|
baseline: "新会话使用:部署基线。", appliedProfile: "新会话使用:{id}(修订 {revision})。",
|
|
75
93
|
appliedInvalid: "无法确认保存的选择。已有会话未改变。请先解决 Host 诊断,再应用或重置配置档。",
|
|
76
94
|
selectionConflict: "保存的选择已被此 Host 之外的操作修改。此 Host 的新会话仍使用上方策略。请应用已保存配置档或重置为基线以协调选择;重启将采用保存的选择。已有会话未改变。",
|
|
77
|
-
dirty: "
|
|
95
|
+
dirty: "草稿与保存修订不同。选择前请保存或明确丢弃。", savedNotApplied: "已保存修订;不是未来默认的固定修订。", savedApplied: "保存修订与未来默认固定修订一致,但未必是当前准入。",
|
|
78
96
|
saved: "已保存 {id},未改变已应用的策略。", applied: "已为新会话应用 {id},已有会话未改变。", resetDone: "已为新会话重置为部署基线,已有会话未改变。",
|
|
79
97
|
discardPrompt: "切换编辑器之前,是否丢弃未保存的草稿?", discard: "丢弃更改", cancel: "取消",
|
|
80
98
|
conflict: "已保存文件或选择已被其他操作修改。草稿和原选择已保留。请刷新配置档,然后重新加载已保存配置档或检查草稿后重试。",
|
|
@@ -84,15 +102,15 @@ export const zh = {
|
|
|
84
102
|
transport: "原生连接无法确认此操作。草稿已保留。重试之前请刷新 Host 状态;不要假定保存或应用已完成。",
|
|
85
103
|
invalidProfile: "不可用配置档:{id}", details: "Host 诊断", retry: "请解决诊断问题,刷新配置档后重试。",
|
|
86
104
|
globalScope: "未来会话的全局默认值", sessionScope: "当前原生会话", sessionSelect: "当前会话配置档",
|
|
87
|
-
globalActionHint: "
|
|
88
|
-
headerProfile: "配置档", headerProfileLabel: "当前会话配置档(会话栏)", headerCaptured: "
|
|
105
|
+
globalActionHint: "「设为未来默认」只为未来会话选择已保存修订,不应用到当前会话。",
|
|
106
|
+
headerProfile: "配置档", headerProfileLabel: "当前会话配置档(会话栏)", headerCaptured: "已捕获准入 · 精确配置档不可用", headerSavedUnavailable: "保存的配置档不可用", headerCurrentProfile: "当前配置档:{profile}", headerRefresh: "刷新配置档和当前会话状态", headerUseModelAction: "使用配置档模型:{profile}",
|
|
89
107
|
headerLoading: "加载配置档…", headerApplying: "应用配置档…", headerApplied: "配置档已应用。", headerBusy: "会话忙碌。", headerUnavailable: "配置档不可用。", headerDraft: "请在设置中保存或丢弃草稿。", headerConflict: "会话配置档或准入代次已在其他位置改变,请刷新当前会话状态后重试。", headerRefused: "未确认配置档更改,请检查设置。",
|
|
90
108
|
headerKeepModelGroup: "切换配置档 — 保留当前模型", headerUseModelGroup: "切换并使用配置档模型", headerModelDefaultHint: "普通切换保留当前模型。明确切换并使用模型还会像模型页一样保存原生模型默认值。", headerNoProfileModel: "配置档已应用,未配置主模型。当前模型已保留。", headerModelUnconfirmed: "配置档已应用,模型更改未确认。请检查模型或设置页。", headerAppliedWithModel: "配置档和原生模型已应用。",
|
|
91
109
|
headerModelChoiceChanged: "配置档已应用,已保留更新的原生模型选择。",
|
|
92
110
|
headerActivationRefused: "配置档启用被拒绝,请检查其配置和原生模型目录。", headerSelectionRefused: "无法确认配置档更改。", headerIssueCode: "原因:{code}。", headerIssueField: "配置字段:{field}。", headerRetryHint: "请刷新配置档和当前会话状态,在设置或原生模型页解决所示问题,然后在会话空闲时重试。",
|
|
93
111
|
headerMaintenanceRefused: "原生维护正在占用此会话,原配置档已保留。", headerBusyRefused: "会话正在运行,原配置档已保留。", headerCancelledRefused: "配置档请求已取消,请刷新当前会话状态后重试,不要假定更改已完成。", headerUnavailableRefused: "原生会话或配置档服务不可用,请重新连接并刷新后重试。", headerWaitRetryHint: "请等待原生运行或维护结束,然后刷新并重试。不会自动排队应用配置档。",
|
|
94
112
|
noSession: "未选择原生会话。无法应用到当前会话。", sessionUnavailable: "无法确认当前会话。重试前请刷新状态;原策略已保留。", sessionBusy: "暂不可切换:{reason}。Host 必须先保留真正空闲的普通会话。", sessionState: "会话 {id}:{profile};范围 {scope};准入代次 {epoch}。", sessionBaseline: "部署基线",
|
|
95
|
-
sessionGlobalCaptured: "
|
|
113
|
+
sessionGlobalCaptured: "已捕获准入(精确配置档身份不可用)",
|
|
96
114
|
sessionAdmittedProfile: "{id}(修订 {revision})", sessionFutureDefault: "未来没有独立选择的会话的全局默认值:{profile}。这不会改变当前会话的准入。",
|
|
97
115
|
sessionConflict: "会话选择或准入代次已在其他位置改变。原显示和草稿已保留。再次应用前请刷新当前会话状态。",
|
|
98
116
|
sessionApply: "应用配置档到当前会话", sessionApplying: "正在应用当前会话配置档…", sessionReset: "为当前会话固定基线", sessionResetting: "正在固定当前会话基线…", sessionRefresh: "刷新当前会话状态", sessionApplied: "已仅对此会话应用保存的修订。全局默认值和已有子会话未改变。", sessionResetDone: "已仅对此会话固定部署基线。全局默认值未改变。", sessionDirty: "应用当前会话选择之前,请保存或明确丢弃编辑器草稿。",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ConnectionHandle } from "@deepseek-ai/dsh-client-connection/client";
|
|
2
|
+
import type { PermissionRemote } from "../permission-remote.js";
|
|
3
|
+
import type { RemoteResult } from "@deepseek-ai/dsh-typert-protocol";
|
|
4
|
+
export type PermissionMethod = keyof PermissionRemote;
|
|
5
|
+
export type PermissionValue<M extends PermissionMethod> = Awaited<ReturnType<PermissionRemote[M]>> extends RemoteResult<infer Value> ? Value : never;
|
|
6
|
+
export type PermissionIssue = "not-owned" | "stale" | "cancelled" | "unavailable" | "validation" | "not-found" | "scope-unavailable" | "replayed" | "denied" | "transport" | "protocol";
|
|
7
|
+
export declare class PermissionClientError extends Error {
|
|
8
|
+
readonly code: PermissionIssue;
|
|
9
|
+
constructor(code: PermissionIssue);
|
|
10
|
+
}
|
|
11
|
+
export interface PermissionInvoker {
|
|
12
|
+
<M extends PermissionMethod>(method: M, args: Parameters<PermissionRemote[M]>, signal: AbortSignal): Promise<PermissionValue<M>>;
|
|
13
|
+
}
|
|
14
|
+
/** The public Connection carrier supplies cancellation; C owns wire codecs and authority. */
|
|
15
|
+
export declare function permissionClient(connection: ConnectionHandle): PermissionInvoker;
|
|
16
|
+
//# sourceMappingURL=permission-client.d.ts.map
|