@dsmm/dsmm 0.1.9 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -58
- package/agent-presets/dsmm-builder/agent.cordis.yml +91 -186
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +120 -17
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +169 -0
- package/agent-presets/dsmm-coding/preset.yml +3 -0
- package/agent-presets/dsmm-complex/agent.cordis.yml +154 -0
- package/agent-presets/dsmm-complex/preset.yml +3 -0
- package/agent-presets/dsmm-creative/agent.cordis.yml +122 -15
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +179 -0
- package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
- package/agent-presets/dsmm-deep/agent.cordis.yml +189 -0
- package/agent-presets/dsmm-deep/preset.yml +3 -0
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +168 -0
- package/agent-presets/dsmm-documenting/preset.yml +3 -0
- package/agent-presets/dsmm-frontend/agent.cordis.yml +161 -0
- package/agent-presets/dsmm-frontend/preset.yml +3 -0
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +153 -0
- package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +127 -0
- package/agent-presets/dsmm-normal-task/preset.yml +3 -0
- package/agent-presets/dsmm-oracle/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +174 -190
- package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +102 -16
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +134 -15
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +132 -0
- package/agent-presets/dsmm-quick/preset.yml +3 -0
- package/agent-presets/dsmm-research/agent.cordis.yml +156 -0
- package/agent-presets/dsmm-research/preset.yml +3 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +108 -16
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/cordis.patch.yml +1 -5
- package/docs/agent-presets.md +48 -15
- package/docs/compatibility.md +58 -68
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +43 -2
- package/docs/lsp.md +12 -12
- package/docs/migration-from-ocmm.md +10 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +43 -64
- package/docs/releasing.md +159 -8
- package/docs/roadmap.md +77 -17
- package/docs/runtime-recovery.md +12 -0
- package/docs/safety-guards.md +7 -3
- package/docs/settings-status.md +46 -40
- package/docs/skill-sync.md +89 -14
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +42 -0
- package/lib/child-admission.js +162 -0
- package/lib/child-capture.d.ts +81 -0
- package/lib/child-capture.js +203 -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.d.ts +18 -0
- package/lib/client/DeploymentPage.js +127 -0
- 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 +32 -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.d.ts +50 -0
- package/lib/client/deployment-controller.js +193 -0
- package/lib/client/deployment-data.d.ts +17 -0
- package/lib/client/deployment-data.js +138 -0
- package/lib/client/deployment-locales.d.ts +70 -0
- package/lib/client/deployment-locales.js +81 -0
- 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 +145 -1
- package/lib/client/locales.d.ts +58 -0
- package/lib/client/locales.js +38 -18
- 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/plugins-contract.d.ts +27 -0
- package/lib/client/plugins-contract.js +2 -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 +36 -0
- package/lib/client.js +6724 -1604
- package/lib/commands.js +3 -0
- package/lib/config-file-store.d.ts +23 -0
- package/lib/config-file-store.js +67 -0
- 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 +68 -0
- package/lib/delivery-authority.js +260 -0
- package/lib/deployment-config.d.ts +60 -0
- package/lib/deployment-config.js +205 -0
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-home.d.ts +3 -0
- package/lib/dsh-home.js +10 -0
- package/lib/dsh-types.d.ts +22 -69
- package/lib/guards.d.ts +3 -2
- package/lib/guards.js +44 -6
- 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 +23 -5
- package/lib/index.js +383 -40
- package/lib/legacy-child-policy.d.ts +51 -0
- package/lib/legacy-child-policy.js +123 -0
- package/lib/legacy-read-composition.d.ts +20 -0
- package/lib/legacy-read-composition.js +144 -0
- package/lib/legacy-read-contracts.d.ts +157 -0
- package/lib/legacy-read-contracts.js +39 -0
- package/lib/legacy-read-host.d.ts +19 -0
- package/lib/legacy-read-host.js +67 -0
- package/lib/legacy-read-integration.d.ts +121 -0
- package/lib/legacy-read-integration.js +522 -0
- package/lib/legacy-read-proxy.d.ts +26 -0
- package/lib/legacy-read-proxy.js +237 -0
- 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/lsp.d.ts +13 -0
- package/lib/lsp.js +60 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/mode.js +42 -47
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +33 -19
- package/lib/modules.d.ts +35 -0
- package/lib/modules.js +37 -0
- package/lib/native-child-evidence.d.ts +42 -0
- package/lib/native-child-evidence.js +133 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.d.ts +9 -0
- package/lib/native-scope.js +20 -0
- 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/plan-validation.js +6 -44
- package/lib/preset-materializer.js +2 -0
- package/lib/preset-registry.d.ts +1 -1
- package/lib/preset-registry.js +38 -24
- package/lib/preset-skills.d.ts +4 -1
- package/lib/preset-skills.js +60 -19
- 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 +22 -0
- package/lib/profile-remote.js +344 -27
- package/lib/profile-rpc.d.ts +25 -1
- package/lib/profile-rpc.js +143 -3
- package/lib/profile-runtime.d.ts +63 -0
- package/lib/profile-runtime.js +496 -77
- package/lib/profile-store.d.ts +56 -1
- package/lib/profile-store.js +377 -111
- package/lib/profile-types.d.ts +125 -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.d.ts +25 -0
- package/lib/prompt-content.js +27 -0
- package/lib/prompts.d.ts +45 -4
- package/lib/prompts.js +157 -43
- 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 +377 -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 +92 -0
- package/lib/role-policy.js +601 -0
- package/lib/role-providers.d.ts +7 -3
- package/lib/role-providers.js +74 -46
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +135 -0
- package/lib/role-runs.js +304 -0
- package/lib/role-subagents.d.ts +63 -4
- package/lib/role-subagents.js +299 -47
- package/lib/roles.d.ts +20 -9
- package/lib/roles.js +87 -216
- 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 +112 -0
- package/lib/runtime-integration.js +784 -0
- package/lib/runtime-recovery.js +34 -13
- package/lib/session-scope.js +2 -0
- package/lib/settings.d.ts +116 -14
- package/lib/settings.js +455 -149
- package/lib/skills.d.ts +24 -9
- package/lib/skills.js +114 -35
- package/lib/state.d.ts +10 -6
- package/lib/state.js +48 -49
- package/lib/status.d.ts +35 -1
- package/lib/status.js +58 -17
- package/lib/subagent-runtime.d.ts +45 -0
- package/lib/subagent-runtime.js +131 -0
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +112 -45
- 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 +153 -20
- package/prompts/source/agents/clarifier.md +47 -0
- package/prompts/source/agents/orchestrator.md +72 -0
- package/prompts/source/agents/plan-critic.md +29 -0
- package/prompts/source/agents/planner.md +21 -0
- package/prompts/source/agents/reviewer.md +23 -0
- package/prompts/source/catalog.json +548 -0
- package/prompts/source/category/coding.md +46 -0
- package/prompts/source/category/complex.md +29 -0
- package/prompts/source/category/creative.md +40 -0
- package/prompts/source/category/cross-cutting.md +54 -0
- package/prompts/source/category/deep.md +64 -0
- package/prompts/source/category/documenting.md +68 -0
- package/prompts/source/category/frontend.md +38 -0
- package/prompts/source/category/hard-reasoning.md +53 -0
- package/prompts/source/category/normal-task.md +27 -0
- package/prompts/source/category/quick.md +34 -0
- package/prompts/source/category/research.md +58 -0
- package/prompts/source/deepwork/claude-opus-5.md +28 -0
- package/prompts/source/deepwork/codex.md +9 -0
- package/prompts/source/deepwork/default.md +136 -0
- package/prompts/source/deepwork/gemini.md +191 -0
- package/prompts/source/deepwork/glm.md +263 -0
- package/prompts/source/deepwork/gpt.md +49 -0
- package/prompts/source/deepwork/kimi-k27.md +13 -0
- package/prompts/source/deepwork/planner.md +44 -0
- package/prompts/source/deepwork/swe-2.md +13 -0
- package/prompts/source/manifest.json +3233 -0
- package/prompts/source/shared/dsh-host-contract.md +8 -0
- package/prompts/source/shared/locale.md +8 -0
- package/prompts/source/shared/shell-safety.md +7 -0
- package/prompts/source/terminal/builder.md +13 -0
- package/prompts/source/terminal/clarifier.md +41 -0
- package/prompts/source/terminal/code-search.md +39 -0
- package/prompts/source/terminal/coding.md +41 -0
- package/prompts/source/terminal/complex.md +43 -0
- package/prompts/source/terminal/creative.md +41 -0
- package/prompts/source/terminal/cross-cutting.md +43 -0
- package/prompts/source/terminal/deep.md +43 -0
- package/prompts/source/terminal/doc-search.md +39 -0
- package/prompts/source/terminal/documenting.md +41 -0
- package/prompts/source/terminal/frontend.md +41 -0
- package/prompts/source/terminal/hard-reasoning.md +41 -0
- package/prompts/source/terminal/media-reader.md +39 -0
- package/prompts/source/terminal/normal-task.md +41 -0
- package/prompts/source/terminal/oracle-2nd.md +53 -0
- package/prompts/source/terminal/oracle.md +53 -0
- package/prompts/source/terminal/orchestrator.md +26 -0
- package/prompts/source/terminal/plan-critic.md +41 -0
- package/prompts/source/terminal/planner.md +42 -0
- package/prompts/source/terminal/quick.md +39 -0
- package/prompts/source/terminal/research.md +39 -0
- package/prompts/source/terminal/reviewer.md +53 -0
- package/scripts/cold-profile-composition.mjs +329 -0
- package/scripts/cold-profile-sources.mjs +238 -0
- package/scripts/migrate-cold-profile.mjs +315 -0
- package/skills/ast-grep/LICENSE +21 -0
- package/skills/ast-grep/README.md +138 -0
- package/skills/ast-grep/SKILL.md +287 -0
- package/skills/ast-grep/SOURCE +1 -0
- package/skills/ast-grep/install.ps1 +235 -0
- package/skills/ast-grep/install.sh +286 -0
- package/skills/ast-grep/references/cli.md +233 -0
- package/skills/ast-grep/references/install.md +168 -0
- package/skills/ast-grep/references/patterns.md +149 -0
- package/skills/ast-grep/references/pitfalls.md +305 -0
- package/skills/ast-grep/references/recipes.md +404 -0
- package/skills/ast-grep/references/sgconfig.md +250 -0
- package/skills/ast-grep/references/yaml-rules.md +511 -0
- package/skills/ast-grep/scripts/ast_grep_helper.py +760 -0
- package/skills/ast-grep/tests/smoke.ps1 +129 -0
- package/skills/ast-grep/tests/smoke.sh +212 -0
- package/skills/ast-grep/tests/test_resolver.py +154 -0
- package/skills/brainstorming/SKILL.md +123 -9
- package/skills/coding-agent-sessions/LICENSE-UPSTREAM.md +82 -0
- package/skills/coding-agent-sessions/NOTICE.md +24 -0
- package/skills/coding-agent-sessions/SKILL.md +147 -0
- package/skills/coding-agent-sessions/agents/openai.yaml +4 -0
- package/skills/coding-agent-sessions/pyrightconfig.json +5 -0
- package/skills/coding-agent-sessions/references/all-platforms.md +77 -0
- package/skills/coding-agent-sessions/references/claude.md +34 -0
- package/skills/coding-agent-sessions/references/codex.md +32 -0
- package/skills/coding-agent-sessions/references/opencode.md +45 -0
- package/skills/coding-agent-sessions/references/senpi.md +29 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +104 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
- package/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
- package/skills/coding-agent-sessions/scripts/tests/test_agent_sessions.py +322 -0
- package/skills/coding-agent-sessions/scripts/tests/test_aside_scanner.py +131 -0
- package/skills/coding-agent-sessions/scripts/tests/test_cli_contract.py +126 -0
- package/skills/coding-agent-sessions/scripts/tests/test_extended_scanners.py +262 -0
- package/skills/coding-agent-sessions/scripts/tests/test_optional_sqlite_scanners.py +79 -0
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -0
- package/skills/debugging/SKILL.md +130 -4
- package/skills/debugging/references/logging.md +2 -0
- package/skills/debugging/references/methodology/00-setup.md +16 -62
- package/skills/debugging/references/methodology/02-investigate.md +11 -5
- package/skills/debugging/references/methodology/03-flaky-triage.md +6 -4
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +6 -16
- package/skills/debugging/references/methodology/05-escalate.md +2 -0
- package/skills/debugging/references/methodology/06-fix.md +8 -6
- package/skills/debugging/references/methodology/08-qa.md +7 -5
- package/skills/debugging/references/methodology/09-cleanup.md +16 -152
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +7 -18
- package/skills/debugging/references/runtimes/bundled-js-binary.md +3 -16
- package/skills/debugging/references/runtimes/go.md +2 -0
- package/skills/debugging/references/runtimes/native-binary.md +11 -54
- package/skills/debugging/references/runtimes/node.md +6 -15
- package/skills/debugging/references/runtimes/python.md +5 -15
- package/skills/debugging/references/runtimes/rust.md +4 -18
- package/skills/debugging/references/scripts/dap.test.mjs +539 -0
- package/skills/debugging/references/scripts/fixture-adapter.mjs +164 -0
- package/skills/debugging/references/tools/dap.md +4 -2
- package/skills/debugging/references/tools/ghidra.md +6 -15
- package/skills/debugging/references/tools/playwright-cli.md +5 -15
- package/skills/debugging/references/tools/pwndbg.md +2 -0
- package/skills/debugging/references/tools/pwntools.md +6 -16
- package/skills/dispatching-parallel-agents/SKILL.md +96 -7
- package/skills/frontend/.frontend-materialized.json +856 -0
- package/skills/frontend/ATTRIBUTION.md +37 -0
- package/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/skills/frontend/LICENSE-taste-skill.txt +21 -0
- package/skills/frontend/LICENSE-ui-ux-pro-max.txt +21 -0
- package/skills/frontend/SKILL.md +145 -0
- package/skills/frontend/references/design/README.md +256 -0
- package/skills/frontend/references/design/_INDEX.md +206 -0
- package/skills/frontend/references/design/airbnb.md +393 -0
- package/skills/frontend/references/design/airtable.md +92 -0
- package/skills/frontend/references/design/apple.md +250 -0
- package/skills/frontend/references/design/aside.md +211 -0
- package/skills/frontend/references/design/binance.md +348 -0
- package/skills/frontend/references/design/bmw.md +183 -0
- package/skills/frontend/references/design/brutalist-skill.md +92 -0
- package/skills/frontend/references/design/bugatti.md +271 -0
- package/skills/frontend/references/design/cal.md +262 -0
- package/skills/frontend/references/design/claude.md +315 -0
- package/skills/frontend/references/design/clay.md +307 -0
- package/skills/frontend/references/design/clickhouse.md +284 -0
- package/skills/frontend/references/design/clone-from-url.md +69 -0
- package/skills/frontend/references/design/cohere.md +269 -0
- package/skills/frontend/references/design/coinbase.md +132 -0
- package/skills/frontend/references/design/composio.md +310 -0
- package/skills/frontend/references/design/cursor.md +312 -0
- package/skills/frontend/references/design/design-system-architecture.md +250 -0
- package/skills/frontend/references/design/elevenlabs.md +268 -0
- package/skills/frontend/references/design/expo.md +284 -0
- package/skills/frontend/references/design/ferrari.md +317 -0
- package/skills/frontend/references/design/figma.md +223 -0
- package/skills/frontend/references/design/framer.md +249 -0
- package/skills/frontend/references/design/gpt-tasteskill.md +74 -0
- package/skills/frontend/references/design/hashicorp.md +281 -0
- package/skills/frontend/references/design/ibm.md +335 -0
- package/skills/frontend/references/design/image-to-code-skill.md +1228 -0
- package/skills/frontend/references/design/imagegen-brandkit.md +798 -0
- package/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
- package/skills/frontend/references/design/imagegen-frontend-web.md +987 -0
- package/skills/frontend/references/design/interaction-skill.md +52 -0
- package/skills/frontend/references/design/intercom.md +149 -0
- package/skills/frontend/references/design/kraken.md +128 -0
- package/skills/frontend/references/design/lamborghini.md +291 -0
- package/skills/frontend/references/design/linear.app.md +370 -0
- package/skills/frontend/references/design/lovable.md +301 -0
- package/skills/frontend/references/design/mastercard.md +368 -0
- package/skills/frontend/references/design/meta.md +369 -0
- package/skills/frontend/references/design/minimalist-skill.md +85 -0
- package/skills/frontend/references/design/minimax.md +260 -0
- package/skills/frontend/references/design/mintlify.md +329 -0
- package/skills/frontend/references/design/miro.md +111 -0
- package/skills/frontend/references/design/mistral.ai.md +264 -0
- package/skills/frontend/references/design/mongodb.md +269 -0
- package/skills/frontend/references/design/nike.md +366 -0
- package/skills/frontend/references/design/notion.md +312 -0
- package/skills/frontend/references/design/nvidia.md +296 -0
- package/skills/frontend/references/design/ollama.md +270 -0
- package/skills/frontend/references/design/opencode.ai.md +284 -0
- package/skills/frontend/references/design/output-skill.md +49 -0
- package/skills/frontend/references/design/pinterest.md +233 -0
- package/skills/frontend/references/design/playstation.md +367 -0
- package/skills/frontend/references/design/posthog.md +259 -0
- package/skills/frontend/references/design/raycast.md +271 -0
- package/skills/frontend/references/design/react-dev-tooling-skill.md +232 -0
- package/skills/frontend/references/design/redesign-skill.md +178 -0
- package/skills/frontend/references/design/renault.md +314 -0
- package/skills/frontend/references/design/replicate.md +264 -0
- package/skills/frontend/references/design/resend.md +306 -0
- package/skills/frontend/references/design/revolut.md +188 -0
- package/skills/frontend/references/design/runwayml.md +247 -0
- package/skills/frontend/references/design/sanity.md +360 -0
- package/skills/frontend/references/design/sentry.md +265 -0
- package/skills/frontend/references/design/shopify.md +353 -0
- package/skills/frontend/references/design/soft-skill.md +98 -0
- package/skills/frontend/references/design/spacex.md +197 -0
- package/skills/frontend/references/design/spotify.md +249 -0
- package/skills/frontend/references/design/starbucks.md +583 -0
- package/skills/frontend/references/design/stitch-design-example.md +121 -0
- package/skills/frontend/references/design/stitch-skill.md +184 -0
- package/skills/frontend/references/design/stripe.md +325 -0
- package/skills/frontend/references/design/supabase.md +258 -0
- package/skills/frontend/references/design/superhuman.md +255 -0
- package/skills/frontend/references/design/taste-skill.md +1206 -0
- package/skills/frontend/references/design/tesla.md +289 -0
- package/skills/frontend/references/design/theverge.md +342 -0
- package/skills/frontend/references/design/together.ai.md +266 -0
- package/skills/frontend/references/design/uber.md +298 -0
- package/skills/frontend/references/design/vercel.md +313 -0
- package/skills/frontend/references/design/vodafone.md +426 -0
- package/skills/frontend/references/design/voltagent.md +326 -0
- package/skills/frontend/references/design/warp.md +256 -0
- package/skills/frontend/references/design/webflow.md +95 -0
- package/skills/frontend/references/design/wired.md +281 -0
- package/skills/frontend/references/design/wise.md +176 -0
- package/skills/frontend/references/design/x.ai.md +260 -0
- package/skills/frontend/references/design/zapier.md +331 -0
- package/skills/frontend/references/perfection/README.md +264 -0
- package/skills/frontend/references/perfection/react-perf-tooling.md +234 -0
- package/skills/frontend/references/ui-ux-db/README.md +659 -0
- package/skills/frontend/references/ui-ux-db/data/app-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/google-fonts.csv +1924 -0
- package/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
- package/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
- package/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/angular.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/laravel.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/threejs.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
- package/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
- package/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
- package/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
- package/skills/git-master/SKILL.md +115 -0
- package/skills/git-master/agents/openai.yaml +13 -0
- package/skills/init-deep/SKILL.md +282 -0
- package/skills/receiving-code-review/SKILL.md +117 -7
- package/skills/remove-ai-slops/SKILL.md +160 -8
- package/skills/requesting-code-review/SKILL.md +98 -3
- package/skills/requesting-code-review/code-reviewer.md +59 -0
- package/skills/subagent-driven-development/SKILL.md +179 -6
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
- package/skills/subagent-driven-development/implementer-prompt.md +87 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +37 -0
- package/skills/using-git-worktrees/SKILL.md +144 -0
- package/skills/writing-plans/SKILL.md +126 -7
- package/skills/writing-plans/plan-document-reviewer-prompt.md +47 -0
package/lib/client/index.js
CHANGED
|
@@ -4,18 +4,162 @@ import { NS, en, zh } from "./locales.js";
|
|
|
4
4
|
import { ProfilesSection } from "./ProfilesSection.js";
|
|
5
5
|
import { PROFILE_STYLES } from "./styles.js";
|
|
6
6
|
import { SessionProfiles } from "./SessionProfiles.js";
|
|
7
|
+
import { DeploymentController } from "./deployment-controller.js";
|
|
8
|
+
import { DeploymentPage } from "./DeploymentPage.js";
|
|
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";
|
|
7
19
|
export { ProfilesController, NEW_PROFILE_CONTENT } from "./controller.js";
|
|
8
20
|
export { ProfilesSection } from "./ProfilesSection.js";
|
|
9
21
|
export { NS, en, zh } from "./locales.js";
|
|
10
22
|
export { TYPERT_REMOTE } from "../profile-remote.js";
|
|
11
23
|
export { SessionProfiles } from "./SessionProfiles.js";
|
|
12
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";
|
|
13
28
|
/** No self-dependency on a namespace that this contribution has not mounted. */
|
|
14
29
|
export const inject = ["slots", "locale", "remote"];
|
|
15
30
|
export async function apply(ctx) {
|
|
16
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
|
+
});
|
|
77
|
+
let deployment = null;
|
|
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
|
+
});
|
|
116
|
+
// This core-owned graph must not depend on DW, named profiles or a session.
|
|
117
|
+
await ctx.inject(["remote.dsmmConfig"], (coreCtx) => {
|
|
118
|
+
const core = new DeploymentController(coreCtx.remote.dsmmConfig, "global");
|
|
119
|
+
void coreCtx.inject(["connection"], connectionCtx => {
|
|
120
|
+
core.bindConnection(connectionCtx.connection.generation);
|
|
121
|
+
void core.refresh();
|
|
122
|
+
});
|
|
123
|
+
deployment = core;
|
|
124
|
+
if (profiles !== null)
|
|
125
|
+
core.setSession(profiles.store.getSnapshot().session);
|
|
126
|
+
coreCtx.effect(() => () => { deployment = null; core.dispose(); }, "dsmm: core settings editor");
|
|
127
|
+
coreCtx.effect(() => coreCtx.locale.register(DEPLOYMENT_NS, { en: deploymentEn, zh: deploymentZh }), "dsmm: core locale");
|
|
128
|
+
coreCtx.effect(() => {
|
|
129
|
+
const style = document.createElement("style");
|
|
130
|
+
style.dataset.dsmmSettings = "";
|
|
131
|
+
style.textContent = PROFILE_STYLES;
|
|
132
|
+
document.head.append(style);
|
|
133
|
+
return () => style.remove();
|
|
134
|
+
}, "dsmm: core styles");
|
|
135
|
+
const t = coreCtx.locale.bind(DEPLOYMENT_NS);
|
|
136
|
+
const inject = () => ({ core, remote: coreCtx.remote.dsmmConfig });
|
|
137
|
+
coreCtx.slots.inject("plugins.item", () => coreCtx.slots.register({ name: "plugins.item", id: "dsmm", label: () => t("title"), order: 30, locale: DEPLOYMENT_NS, inject }, DeploymentPage));
|
|
138
|
+
// Native ConfigForms owns its transport/authority; absent service leaves only core controls.
|
|
139
|
+
void coreCtx.inject(["configForms"], formCtx => {
|
|
140
|
+
const injectProfile = () => ({ ...inject(), forms: formCtx.configForms, profilePage: true });
|
|
141
|
+
formCtx.slots.inject("plugins.bundle.config", () => formCtx.slots.register({ name: "plugins.bundle.config", key: "@dsmm/dsmm", locale: DEPLOYMENT_NS, inject: injectProfile }, DeploymentPage));
|
|
142
|
+
let namespace = null, disposeRow;
|
|
143
|
+
const registerRow = () => {
|
|
144
|
+
const next = core.getSnapshot().snapshot?.namespace ?? null;
|
|
145
|
+
if (next === namespace)
|
|
146
|
+
return;
|
|
147
|
+
disposeRow?.();
|
|
148
|
+
namespace = next;
|
|
149
|
+
if (next !== null)
|
|
150
|
+
disposeRow = formCtx.slots.inject("plugins.row.config", () => formCtx.slots.register({ name: "plugins.row.config", key: `@dsmm/dsmm#${next}`, locale: DEPLOYMENT_NS, inject: () => ({ ...injectProfile(), rowNamespace: next }) }, DeploymentPage));
|
|
151
|
+
};
|
|
152
|
+
registerRow();
|
|
153
|
+
formCtx.effect(() => core.subscribe(registerRow));
|
|
154
|
+
formCtx.effect(() => () => disposeRow?.());
|
|
155
|
+
});
|
|
156
|
+
void core.refresh();
|
|
157
|
+
});
|
|
17
158
|
await ctx.inject(["remote.dsmmProfiles"], (profileCtx) => {
|
|
18
159
|
const controller = new ProfilesController(profileCtx.remote.dsmmProfiles);
|
|
160
|
+
profiles = controller;
|
|
161
|
+
profileCtx.effect(() => controller.store.subscribe(() => { deployment?.setSession(controller.store.getSnapshot().session); observeChildAdmission(); }));
|
|
162
|
+
profileCtx.effect(() => () => { profiles = null; deployment?.setSession(null); });
|
|
19
163
|
profileCtx.effect(() => () => controller.dispose(), "dsmm: profile editor");
|
|
20
164
|
profileCtx.effect(() => profileCtx.locale.register(NS, { en, zh }), "dsmm: profile locale");
|
|
21
165
|
profileCtx.effect(() => {
|
|
@@ -35,7 +179,7 @@ export async function apply(ctx) {
|
|
|
35
179
|
// fallback never replaces ordinary native/plugin leading navigation.
|
|
36
180
|
profileCtx.slots.inject("conversation.header.leading", () => profileCtx.slots.register({
|
|
37
181
|
name: "conversation.header.leading", priority: Number.MAX_SAFE_INTEGER, locale: NS,
|
|
38
|
-
inject: () => ({ hooks: { profiles: controller.store },
|
|
182
|
+
inject: () => ({ hooks: { profiles: controller.store }, ...controller.actions }),
|
|
39
183
|
}, SessionProfiles));
|
|
40
184
|
// Optional native services have their own lifetime. Do not await them or
|
|
41
185
|
// make sessionless Settings depend on a Conversation/session provider.
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
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;
|
|
57
|
+
centralOrigin: string;
|
|
58
|
+
legacyOrigin: string;
|
|
59
|
+
explicitOrigin: string;
|
|
60
|
+
readOnlyOrigin: string;
|
|
3
61
|
headerCompactProfiles: string;
|
|
4
62
|
headerCompactRefresh: string;
|
|
5
63
|
headerNoSession: string;
|
package/lib/client/locales.js
CHANGED
|
@@ -1,20 +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.",
|
|
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.",
|
|
3
13
|
headerCompactProfiles: "Profiles · keep model", headerCompactRefresh: "Refresh", headerNoSession: "Select a session to make changes.",
|
|
4
14
|
headerModeEnable: "Enable Deepwork", headerModeDisable: "Disable Deepwork", headerModePreset: "Deepwork · DW preset", headerModeUnavailable: "Deepwork unavailable", headerModeOn: "Deepwork enabled.", headerModeOff: "Deepwork disabled.", headerUseCurrentModel: "Use profile model",
|
|
5
15
|
title: "Deepwork Profiles", description: "Save independent runtime configurations and choose which one new sessions use.",
|
|
6
|
-
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.",
|
|
7
17
|
editorSelect: "Profile to edit", choose: "Choose a profile", newDraft: "New unsaved profile", new: "New profile",
|
|
8
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.",
|
|
9
|
-
configuration: "Runtime configuration (JSONC)", configurationHint: "Document: version 1, matching id, optional label, and settings.
|
|
10
|
-
structuralHint: "
|
|
11
|
-
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…",
|
|
12
22
|
refresh: "Refresh profiles", refreshing: "Refreshing profiles…", reload: "Reload saved profile", loading: "Loading profiles…", reading: "Reading profile…",
|
|
13
23
|
empty: "No saved profiles yet. Create a profile to start; the deployment baseline remains applied.",
|
|
14
24
|
baseline: "Applied to new sessions: deployment baseline.", appliedProfile: "Applied to new sessions: {id} (revision {revision}).",
|
|
15
25
|
appliedInvalid: "The stored selection cannot be confirmed. Existing sessions remain unchanged. Resolve the Host diagnostic before applying or resetting a profile.",
|
|
16
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.",
|
|
17
|
-
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.",
|
|
18
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.",
|
|
19
29
|
discardPrompt: "Discard the unsaved draft before changing the editor?", discard: "Discard changes", cancel: "Cancel",
|
|
20
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.",
|
|
@@ -24,19 +34,19 @@ export const en = {
|
|
|
24
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.",
|
|
25
35
|
invalidProfile: "Unavailable profile: {id}", details: "Host diagnostic", retry: "Resolve the diagnostic, refresh profiles, then retry.",
|
|
26
36
|
globalScope: "Global default for future sessions", sessionScope: "Current native session", sessionSelect: "Current-session profile",
|
|
27
|
-
globalActionHint: "
|
|
28
|
-
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}",
|
|
29
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.",
|
|
30
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.",
|
|
31
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.",
|
|
32
42
|
headerModelChoiceChanged: "Profile applied; newer native model choice kept.",
|
|
33
43
|
headerActivationRefused: "Profile activation was refused. Check its configuration and native model catalog.", headerSelectionRefused: "The profile change could not be confirmed.", headerIssueCode: "Reason: {code}.", headerIssueField: "Configuration field: {field}.", headerRetryHint: "Refresh profiles and current-session state, resolve the indicated issue in Settings or native Models, then retry when the session is idle.",
|
|
34
44
|
headerMaintenanceRefused: "Native maintenance owns this session. The previous profile is kept.", headerBusyRefused: "The session is busy. The previous profile is kept.", headerCancelledRefused: "The profile request was cancelled. Refresh current-session state before retrying; do not assume a change completed.", headerUnavailableRefused: "The native session or profile service is unavailable. Reconnect and refresh before retrying.", headerWaitRetryHint: "Wait for the native work or maintenance to finish, then Refresh and retry. No profile change is queued automatically.",
|
|
35
|
-
noSession: "No native session is selected.
|
|
45
|
+
noSession: "No native session is selected. Applying to the current session is unavailable.",
|
|
36
46
|
sessionUnavailable: "The current session could not be confirmed. Refresh its state before retrying; the prior policy is kept.",
|
|
37
47
|
sessionBusy: "Switching is unavailable: {reason}. The Host must reserve a truly idle ordinary session before applying.",
|
|
38
48
|
sessionState: "Session {id}: {profile}; scope {scope}; admission epoch {epoch}.", sessionBaseline: "deployment baseline",
|
|
39
|
-
sessionGlobalCaptured: "captured
|
|
49
|
+
sessionGlobalCaptured: "captured admission (exact profile identity unavailable)",
|
|
40
50
|
sessionAdmittedProfile: "{id} (revision {revision})", sessionFutureDefault: "Global default for future unscoped sessions: {profile}. This does not change this session's admission.",
|
|
41
51
|
sessionConflict: "The session selection or admission epoch changed elsewhere. The prior display and draft are kept. Refresh current-session state before applying again.",
|
|
42
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",
|
|
@@ -58,21 +68,31 @@ export const en = {
|
|
|
58
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.",
|
|
59
69
|
};
|
|
60
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: "选择编辑器对应的已保存固定修订,而不是脏草稿。保存不会选择或应用。",
|
|
80
|
+
centralOrigin: "具名资源:共享中央存储。", legacyOrigin: "具名资源:旧原生配置存储(只读)。", explicitOrigin: "具名资源:显式指定的存储。", readOnlyOrigin: "此旧存储只读,不复制或迁移文件;选择与当前会话操作仍使用各自的权限。",
|
|
61
81
|
headerCompactProfiles: "配置档 · 保留模型", headerCompactRefresh: "刷新", headerNoSession: "选择会话后可更改。",
|
|
62
82
|
headerModeEnable: "启用 Deepwork", headerModeDisable: "关闭 Deepwork", headerModePreset: "Deepwork · DW 预设", headerModeUnavailable: "Deepwork 不可用", headerModeOn: "Deepwork 已启用。", headerModeOff: "Deepwork 已关闭。", headerUseCurrentModel: "使用配置档模型",
|
|
63
83
|
title: "Deepwork 配置档", description: "保存独立的运行时配置,并选择新会话使用的配置档。",
|
|
64
|
-
newSessions: "
|
|
84
|
+
newSessions: "此固定修订仅作为未来会话默认值。当前准入与已有子会话不变;明确的会话选择保留自己的权限。",
|
|
65
85
|
editorSelect: "要编辑的配置档", choose: "选择配置档", newDraft: "新的未保存配置档", new: "新建配置档",
|
|
66
86
|
profileId: "配置档 ID(名称)", idHint: "使用 1–64 个小写字母、数字、连字符或下划线。保存后不能修改 ID。可在 JSONC 文档中添加可选的显示名称 label。",
|
|
67
|
-
configuration: "运行时配置(JSONC)", configurationHint: "文档包含 version: 1
|
|
68
|
-
structuralHint: "
|
|
69
|
-
save: "保存配置档", saving: "正在保存配置档…", apply: "
|
|
87
|
+
configuration: "运行时配置(JSONC)", configurationHint: "文档包含 version: 1、相同 id、可选 label 和 settings。支持角色路由与调用等级、语言、角色可用性、拓扑、流程、守卫、恢复、校准与默认推理强度。已退休的最高强度预设字段会被拒绝,不自动迁移。",
|
|
88
|
+
structuralHint: "技能、提示内容、预设安装、提供商与账户、后台与深度及任意路由权限仅可在部署中配置。请勿粘贴凭证。JSONC 与结构化控件共享草稿,不规范化无关字节。",
|
|
89
|
+
save: "保存配置档", saving: "正在保存配置档…", apply: "设为未来默认", applying: "正在选择未来默认…", reset: "未来会话使用基线", resetting: "正在重置未来默认…",
|
|
70
90
|
refresh: "刷新配置档", refreshing: "正在刷新配置档…", reload: "重新加载已保存配置档", loading: "正在加载配置档…", reading: "正在读取配置档…",
|
|
71
91
|
empty: "尚无已保存的配置档。可新建配置档;当前仍应用部署基线。",
|
|
72
92
|
baseline: "新会话使用:部署基线。", appliedProfile: "新会话使用:{id}(修订 {revision})。",
|
|
73
93
|
appliedInvalid: "无法确认保存的选择。已有会话未改变。请先解决 Host 诊断,再应用或重置配置档。",
|
|
74
94
|
selectionConflict: "保存的选择已被此 Host 之外的操作修改。此 Host 的新会话仍使用上方策略。请应用已保存配置档或重置为基线以协调选择;重启将采用保存的选择。已有会话未改变。",
|
|
75
|
-
dirty: "
|
|
95
|
+
dirty: "草稿与保存修订不同。选择前请保存或明确丢弃。", savedNotApplied: "已保存修订;不是未来默认的固定修订。", savedApplied: "保存修订与未来默认固定修订一致,但未必是当前准入。",
|
|
76
96
|
saved: "已保存 {id},未改变已应用的策略。", applied: "已为新会话应用 {id},已有会话未改变。", resetDone: "已为新会话重置为部署基线,已有会话未改变。",
|
|
77
97
|
discardPrompt: "切换编辑器之前,是否丢弃未保存的草稿?", discard: "丢弃更改", cancel: "取消",
|
|
78
98
|
conflict: "已保存文件或选择已被其他操作修改。草稿和原选择已保留。请刷新配置档,然后重新加载已保存配置档或检查草稿后重试。",
|
|
@@ -82,15 +102,15 @@ export const zh = {
|
|
|
82
102
|
transport: "原生连接无法确认此操作。草稿已保留。重试之前请刷新 Host 状态;不要假定保存或应用已完成。",
|
|
83
103
|
invalidProfile: "不可用配置档:{id}", details: "Host 诊断", retry: "请解决诊断问题,刷新配置档后重试。",
|
|
84
104
|
globalScope: "未来会话的全局默认值", sessionScope: "当前原生会话", sessionSelect: "当前会话配置档",
|
|
85
|
-
globalActionHint: "
|
|
86
|
-
headerProfile: "配置档", headerProfileLabel: "当前会话配置档(会话栏)", headerCaptured: "
|
|
105
|
+
globalActionHint: "「设为未来默认」只为未来会话选择已保存修订,不应用到当前会话。",
|
|
106
|
+
headerProfile: "配置档", headerProfileLabel: "当前会话配置档(会话栏)", headerCaptured: "已捕获准入 · 精确配置档不可用", headerSavedUnavailable: "保存的配置档不可用", headerCurrentProfile: "当前配置档:{profile}", headerRefresh: "刷新配置档和当前会话状态", headerUseModelAction: "使用配置档模型:{profile}",
|
|
87
107
|
headerLoading: "加载配置档…", headerApplying: "应用配置档…", headerApplied: "配置档已应用。", headerBusy: "会话忙碌。", headerUnavailable: "配置档不可用。", headerDraft: "请在设置中保存或丢弃草稿。", headerConflict: "会话配置档或准入代次已在其他位置改变,请刷新当前会话状态后重试。", headerRefused: "未确认配置档更改,请检查设置。",
|
|
88
108
|
headerKeepModelGroup: "切换配置档 — 保留当前模型", headerUseModelGroup: "切换并使用配置档模型", headerModelDefaultHint: "普通切换保留当前模型。明确切换并使用模型还会像模型页一样保存原生模型默认值。", headerNoProfileModel: "配置档已应用,未配置主模型。当前模型已保留。", headerModelUnconfirmed: "配置档已应用,模型更改未确认。请检查模型或设置页。", headerAppliedWithModel: "配置档和原生模型已应用。",
|
|
89
109
|
headerModelChoiceChanged: "配置档已应用,已保留更新的原生模型选择。",
|
|
90
110
|
headerActivationRefused: "配置档启用被拒绝,请检查其配置和原生模型目录。", headerSelectionRefused: "无法确认配置档更改。", headerIssueCode: "原因:{code}。", headerIssueField: "配置字段:{field}。", headerRetryHint: "请刷新配置档和当前会话状态,在设置或原生模型页解决所示问题,然后在会话空闲时重试。",
|
|
91
111
|
headerMaintenanceRefused: "原生维护正在占用此会话,原配置档已保留。", headerBusyRefused: "会话正在运行,原配置档已保留。", headerCancelledRefused: "配置档请求已取消,请刷新当前会话状态后重试,不要假定更改已完成。", headerUnavailableRefused: "原生会话或配置档服务不可用,请重新连接并刷新后重试。", headerWaitRetryHint: "请等待原生运行或维护结束,然后刷新并重试。不会自动排队应用配置档。",
|
|
92
|
-
noSession: "
|
|
93
|
-
sessionGlobalCaptured: "
|
|
112
|
+
noSession: "未选择原生会话。无法应用到当前会话。", sessionUnavailable: "无法确认当前会话。重试前请刷新状态;原策略已保留。", sessionBusy: "暂不可切换:{reason}。Host 必须先保留真正空闲的普通会话。", sessionState: "会话 {id}:{profile};范围 {scope};准入代次 {epoch}。", sessionBaseline: "部署基线",
|
|
113
|
+
sessionGlobalCaptured: "已捕获准入(精确配置档身份不可用)",
|
|
94
114
|
sessionAdmittedProfile: "{id}(修订 {revision})", sessionFutureDefault: "未来没有独立选择的会话的全局默认值:{profile}。这不会改变当前会话的准入。",
|
|
95
115
|
sessionConflict: "会话选择或准入代次已在其他位置改变。原显示和草稿已保留。再次应用前请刷新当前会话状态。",
|
|
96
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
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PERMISSION_REMOTE } from "../permission-remote.js";
|
|
2
|
+
export class PermissionClientError extends Error {
|
|
3
|
+
code;
|
|
4
|
+
constructor(code) {
|
|
5
|
+
super("Permission operation unavailable.");
|
|
6
|
+
this.code = code;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
const codes = new Set(["not-owned", "stale", "cancelled", "unavailable", "validation", "not-found", "scope-unavailable", "replayed", "denied"]);
|
|
10
|
+
/** The public Connection carrier supplies cancellation; C owns wire codecs and authority. */
|
|
11
|
+
export function permissionClient(connection) {
|
|
12
|
+
return async (method, args, signal) => {
|
|
13
|
+
const descriptor = PERMISSION_REMOTE.descriptors.find(item => item.method === method);
|
|
14
|
+
const payload = {};
|
|
15
|
+
descriptor.parameters.forEach((parameter, index) => { payload[parameter.wire] = args[index]; });
|
|
16
|
+
let result;
|
|
17
|
+
try {
|
|
18
|
+
result = await connection.rpc.call("/api", `dsmmPermissions/${method}`, { args: payload }, signal);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
throw new PermissionClientError(signal.aborted ? "cancelled" : "transport");
|
|
22
|
+
}
|
|
23
|
+
if (!result.ok) {
|
|
24
|
+
const code = Reflect.get(result.error.details, "code");
|
|
25
|
+
throw new PermissionClientError(result.error.code === "dsmm-permissions/refused" && codes.has(code) ? code : "unavailable");
|
|
26
|
+
}
|
|
27
|
+
signal.throwIfAborted();
|
|
28
|
+
try {
|
|
29
|
+
if (descriptor.result.mode !== "strict")
|
|
30
|
+
throw new Error("Strict permission codec required.");
|
|
31
|
+
return descriptor.result.create().parse(result.value);
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
throw new PermissionClientError("protocol");
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=permission-client.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PermissionControlSettings } from "../permission-settings.js";
|
|
2
|
+
import type { PermissionRuleDraft, PermissionRulesSaveRequest, PermissionRulesSaveResult } from "../permission-rules.js";
|
|
3
|
+
import type { PermissionInvoker, PermissionIssue } from "./permission-client.js";
|
|
4
|
+
export interface PermissionDraft {
|
|
5
|
+
outsideReads: PermissionControlSettings["outsideReads"];
|
|
6
|
+
webSearch: PermissionControlSettings["webSearch"];
|
|
7
|
+
webFetch: PermissionControlSettings["webFetch"];
|
|
8
|
+
upsert: readonly PermissionRuleDraft[];
|
|
9
|
+
revoke: readonly string[];
|
|
10
|
+
editor: PermissionRuleDraft | null;
|
|
11
|
+
}
|
|
12
|
+
export interface PermissionView {
|
|
13
|
+
generation: number;
|
|
14
|
+
sessionId: string | null;
|
|
15
|
+
scope: "unknown" | "root" | "child";
|
|
16
|
+
connected: boolean;
|
|
17
|
+
reading: boolean;
|
|
18
|
+
busy: "save" | null;
|
|
19
|
+
rules: PermissionRulesSaveResult | null;
|
|
20
|
+
base: PermissionRulesSaveResult["snapshot"] | null;
|
|
21
|
+
draft: PermissionDraft | null;
|
|
22
|
+
rulesIssue: PermissionIssue | null;
|
|
23
|
+
dirty: boolean;
|
|
24
|
+
notice: "saved" | null;
|
|
25
|
+
}
|
|
26
|
+
export declare function permissionChanges(view: PermissionView): PermissionRulesSaveRequest | null;
|
|
27
|
+
/** Borrowed native selection plus last-observed C state; never a Root or policy authority. */
|
|
28
|
+
export declare class PermissionController {
|
|
29
|
+
private state;
|
|
30
|
+
private listeners;
|
|
31
|
+
private invoke;
|
|
32
|
+
private connection;
|
|
33
|
+
private owner;
|
|
34
|
+
private request;
|
|
35
|
+
private requestSequence;
|
|
36
|
+
private timer?;
|
|
37
|
+
private watchers;
|
|
38
|
+
private disposed;
|
|
39
|
+
readonly store: {
|
|
40
|
+
getSnapshot: () => PermissionView;
|
|
41
|
+
subscribe: (listener: () => void) => (() => void);
|
|
42
|
+
};
|
|
43
|
+
private publish;
|
|
44
|
+
private cancel;
|
|
45
|
+
private fence;
|
|
46
|
+
bindConnection(invoke: PermissionInvoker | null, generation?: unknown): void;
|
|
47
|
+
bindScope(sessionId: string | null, owner: object | null, scope: PermissionView["scope"]): void;
|
|
48
|
+
watch(): () => void;
|
|
49
|
+
dispose(): void;
|
|
50
|
+
private live;
|
|
51
|
+
private schedule;
|
|
52
|
+
private issue;
|
|
53
|
+
private synchronized;
|
|
54
|
+
canSave(generation: number): boolean;
|
|
55
|
+
refresh(generation: number, discard?: boolean): Promise<void>;
|
|
56
|
+
edit(generation: number, patch: Partial<PermissionDraft>): void;
|
|
57
|
+
stageRule(generation: number): void;
|
|
58
|
+
stageRevoke(generation: number, id: string): void;
|
|
59
|
+
private begin;
|
|
60
|
+
save(generation: number): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=permission-controller.d.ts.map
|