@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/prompts.d.ts
CHANGED
|
@@ -1,13 +1,54 @@
|
|
|
1
1
|
import type { DshLlmCallConfig } from "./dsh-types.js";
|
|
2
|
+
import type { ToolSchema } from "@deepseek-ai/dsh-llm";
|
|
3
|
+
import type { SourceRoleContent } from "./prompt-content.js";
|
|
2
4
|
import type { DsmmSettings } from "./settings.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
import type { DsmmInvocationView, DsmmRoleAvailabilityState, SubagentRuntimeAdmissionView } from "./profile-types.js";
|
|
6
|
+
import type { DsmmCallableEntry } from "./role-subagents.js";
|
|
7
|
+
import type { ChildAdmissionEvidenceView } from "./child-evidence.js";
|
|
8
|
+
export { SOURCE_ROLE_CATALOG, buildRolePersona } from "./prompt-content.js";
|
|
9
|
+
export type { SourceRoleContent } from "./prompt-content.js";
|
|
10
|
+
export declare const BASE_DEEPWORK_PROMPT: string;
|
|
11
|
+
export declare function promptModelVariants(role: string | undefined, model: string): string[];
|
|
12
|
+
export declare function roleModelCalibration(role: SourceRoleContent | undefined, model: string): string;
|
|
13
|
+
export declare const DEEPSEEK_V4_PRO_OVERLAY = "<dsmm-deepseek-v4-pro-calibration>\n\nDeepSeek V4 Pro calibration is active.\n\n- Treat complex coding, architecture, migration, debugging, and review tasks as deliberate reasoning tasks.\n- First classify the task and identify the evidence needed.\n- Use tools before making repository-specific or API-specific claims.\n- Runtime reasoning effort is enforced by `agent/request`, not this prompt.\n- Ordinary root model and effort stay under the native model picker. Explicit preflighted invocation effort takes precedence over calibration.\n- For other eligible child requests, `auto` preserves explicit upstream effort; `strict` uses the configured default only when the adapter advertises a supported effort. If none is advertised, leave the request unchanged.\n- Keep final answers concise and do not expose private chain-of-thought.\n- When tool calls are enabled through the provider, preserve the provider-required reasoning/tool-call continuity.\n\n</dsmm-deepseek-v4-pro-calibration>";
|
|
14
|
+
export declare const DEEPSEEK_FLASH_OVERLAY = "<dsmm-deepseek-flash-calibration>\n\nDeepSeek-V41-Flash applies only to the verified deepseek-official/deepseek-flash or deepseek-account/deepseek-flash routes. The host catalog and explicit user model choice are authoritative.\n\n- Keep work outcome-first and avoid procedural review or approval loops.\n- Runtime reasoning effort is chosen by the adapter only from the resolved model's advertised efforts. If the catalog advertises no reasoning efforts, leave the request unchanged.\n- Ordinary root model and effort stay native-owned; explicit preflighted invocation effort takes precedence. For other eligible child requests, auto preserves explicit upstream effort; strict uses only an advertised effort.\n- Do not assume max, high, temperature, or another model's capabilities. Do not claim model heterogeneity when all child roles use the same route.\n- Maintain tool-call continuity required by the provider and never reveal private reasoning.\n\n</dsmm-deepseek-flash-calibration>";
|
|
6
15
|
export interface DeepworkPromptOptions {
|
|
7
16
|
route?: Pick<DshLlmCallConfig, "provider" | "model">;
|
|
8
17
|
selectedPreset?: string;
|
|
18
|
+
/** Existing effective-role resolver supplies content identity, not route authority. */
|
|
19
|
+
roleId?: string | null;
|
|
9
20
|
overrideSection?: string;
|
|
10
|
-
skillPrompt?: string;
|
|
11
21
|
}
|
|
22
|
+
/** Host observations for this exact admitted Agent, not editor drafts or preset metadata. */
|
|
23
|
+
export interface DsmmPromptObservation {
|
|
24
|
+
scope: "root" | "child";
|
|
25
|
+
delegation: readonly DsmmCallableEntry[];
|
|
26
|
+
/** Already policy-filtered native schemas, including controls that really are callable. */
|
|
27
|
+
tools: readonly ToolSchema[];
|
|
28
|
+
roleAvailability?: readonly DsmmRoleAvailabilityState[];
|
|
29
|
+
invocation?: {
|
|
30
|
+
view: Readonly<DsmmInvocationView>;
|
|
31
|
+
routeKind: "initial" | "actual";
|
|
32
|
+
};
|
|
33
|
+
runtimeAdmission?: Readonly<SubagentRuntimeAdmissionView>;
|
|
34
|
+
capabilities?: {
|
|
35
|
+
nativeJobs?: boolean;
|
|
36
|
+
/** Admitted creation of new continuable children, not existing-child delivery. */
|
|
37
|
+
continuable?: boolean;
|
|
38
|
+
/** Observed managed running/idle/same-ID cold delivery to existing continuable children under this Agent's authority. */
|
|
39
|
+
managedChildDelivery?: boolean;
|
|
40
|
+
/** Only set after the operator/session/epoch-gated user surface is wired. */
|
|
41
|
+
foregroundHandoff?: {
|
|
42
|
+
surface: string;
|
|
43
|
+
};
|
|
44
|
+
nativeBrowserPrompt?: {
|
|
45
|
+
surface: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
childEvidence?: Readonly<ChildAdmissionEvidenceView>;
|
|
49
|
+
}
|
|
50
|
+
export declare function buildDsmmLocaleGuidance(settings: Pick<DsmmSettings, "locale">): string;
|
|
51
|
+
/** Register independently of the common-mode section, in the exact Agent scope. */
|
|
52
|
+
export declare function buildDsmmAgentGuidance(settings: DsmmSettings, observed: DsmmPromptObservation): string;
|
|
12
53
|
export declare function buildDeepworkPrompt(settings: DsmmSettings, options?: DeepworkPromptOptions): string;
|
|
13
54
|
//# sourceMappingURL=prompts.d.ts.map
|
package/lib/prompts.js
CHANGED
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Intent routing
|
|
9
|
-
|
|
10
|
-
Determine whether the user requests an explanation, diagnosis, implementation, or open-ended design. State the outcome and evidence in the user's language; classify aloud only when it helps the user.
|
|
11
|
-
|
|
12
|
-
## Workflow gates
|
|
13
|
-
|
|
14
|
-
- A clear implementation request authorizes its stated scope. Do not require design reapproval or a separate approval loop for equivalent implementation decisions.
|
|
15
|
-
- For complex business or behavior implementation, default to planner → plan-critic → implementation. Skip this sequence only for a bounded, simple, low-risk change or an explicit permitted user request. A task having multiple steps alone is not the criterion.
|
|
16
|
-
- Escalate choices that change scope or acceptance, weaken safety/data guarantees, change a public API/protocol or permissions, or cause an irreversible effect. Preserve explicit user configuration.
|
|
17
|
-
- Request implementation review when risk, uncertainty, or user requirements warrant it; reviewer is primary-lane self-review, while an Oracle is an externally configured cross-check. Do not run fixed review loops or manufacture an Oracle model.
|
|
18
|
-
- For completed implementation, gather evidence from tests, diagnostics, and real surfaces before declaring done.
|
|
19
|
-
- Keep scope exact. Do not add unrelated refactors, speculative abstractions, or surprise features.
|
|
20
|
-
- The bundled workflow skill set is available in this mode: \`brainstorming\`, \`writing-plans\`, \`subagent-driven-development\`, \`dispatching-parallel-agents\`, \`requesting-code-review\`, \`receiving-code-review\`, and \`remove-ai-slops\`.
|
|
21
|
-
- \`workflow.policy=risk-based\` uses the rules above. Explicit \`workflow.policy=legacy\` retains the configured \`strictGates\`, \`reviewCap\`, and \`finalReviewPolicy\` gates. Do not apply any Deepwork policy outside active \`{{modeName}}\` mode or DW-managed preset scope.
|
|
22
|
-
|
|
23
|
-
## Tool discipline
|
|
24
|
-
|
|
25
|
-
Use repository tools for repository-specific claims. Prefer narrow reads and searches before broad exploration. Use external documentation for library, API, CLI, or cloud-service details.
|
|
26
|
-
|
|
27
|
-
- Use the shell dialect available in the current DSH runtime. Keep commands short and inspectable; resolve exact paths before destructive actions and do not string-build cross-shell deletes.
|
|
28
|
-
- No autonomous Git writes: implementing or fixing does not authorize a commit, and a commit does not authorize pushing, tagging, rebasing, or releasing.
|
|
29
|
-
- Child tasks inherit the host's authority and depth limits. Delegate only through actually available DSH tools; preset files alone do not prove that a role is callable.
|
|
30
|
-
|
|
31
|
-
- Deepwork safety guards may enforce shell dialect, git-write approval, output-size, plan-format, question-label, and todo-discipline policy inside this mode; treat \`[dsmm safety]\` messages as binding policy feedback.
|
|
32
|
-
|
|
1
|
+
import { readPromptAsset as asset, SOURCE_ROLE_CATALOG, splitCategory } from "./prompt-content.js";
|
|
2
|
+
import { CHILD_EVIDENCE_FIELDS } from "./child-evidence.js";
|
|
3
|
+
export { SOURCE_ROLE_CATALOG, buildRolePersona } from "./prompt-content.js";
|
|
4
|
+
const activation = `<dsmm-deepwork-mode>
|
|
5
|
+
Use this workflow only while the \`{{modeName}}\` mode is effectively active. This is an opt-in boundary: ordinary presets default off; DW roles default on, but explicit off wins and retains only persona/access. Never force common workflow or skills on merely from a role name.
|
|
6
|
+
\`workflow.policy=risk-based\` follows the source workflow below. Explicit \`workflow.policy=legacy\` retains the configured \`strictGates\`, \`reviewCap\` and \`finalReviewPolicy\` gates; it is compatibility policy, not extra authorization. Role scope, output and terminal delegation policy are authoritative over all workflow/model guidance.
|
|
7
|
+
Skills are native metadata and lazy bodies, never automatically injected. Load matching skills only through the actual native skill catalog. Treat \`[dsmm safety]\` messages as binding feedback. Implementing does not authorize a commit; a commit does not authorize push/tag/rebase/release.
|
|
33
8
|
</dsmm-deepwork-mode>`;
|
|
9
|
+
export const BASE_DEEPWORK_PROMPT = [activation, asset("deepwork/default.md"), asset("shared/shell-safety.md"), asset("shared/dsh-host-contract.md")].join("\n\n---\n\n");
|
|
10
|
+
// Prompt-only matching follows src/intent/model-family.ts, not model routing.
|
|
11
|
+
function modelName(fullId) {
|
|
12
|
+
const name = fullId.slice(fullId.lastIndexOf("/") + 1).toLowerCase();
|
|
13
|
+
const vendors = { openai: /^(?:gpt-|o\d|chatgpt-|codex-)/u, anthropic: /^claude-/u, google: /^gemini-/u, zhipu: /^glm-/u, deepseek: /^deepseek-/u };
|
|
14
|
+
const parts = name.split("."), direct = parts.slice(1).join("."), regional = parts.slice(2).join(".");
|
|
15
|
+
if (vendors[parts[0]]?.test(direct))
|
|
16
|
+
return direct;
|
|
17
|
+
if (/^(?:[a-z]{2}|[a-z]{2}-[a-z]+-\d+)$/u.test(parts[0]) && vendors[parts[1]]?.test(regional))
|
|
18
|
+
return regional;
|
|
19
|
+
return name;
|
|
20
|
+
}
|
|
21
|
+
export function promptModelVariants(role, model) {
|
|
22
|
+
const name = modelName(model);
|
|
23
|
+
const gpt = name.includes("gpt") || model.toLowerCase().includes("codex");
|
|
24
|
+
const opus = /^claude-opus-5(?:[-.]5)?(?:$|[-.](?:20\d{6}(?:[-.][a-z0-9]+)*|[a-z][a-z0-9-]*))$/iu.test(name.replace(/^global\.anthropic\./iu, "").replace(/@default$/iu, ""));
|
|
25
|
+
const kimi = ["kimi-for-coding", "kimi-for-coding-highspeed"].includes(name) || /^(?:kimi-k2[.-]?[78]|k2[-.]?p[78])(?:$|[-_.])/u.test(name);
|
|
26
|
+
const additive = gpt ? ["gpt"] : kimi ? ["kimi-k27"] : /^swe-2(?:[-.]|$)/u.test(name) ? ["swe-2"] : [];
|
|
27
|
+
const base = role === "planner" ? "planner" : role === "orchestrator" && opus ? "claude-opus-5"
|
|
28
|
+
: model.toLowerCase().includes("codex") ? "codex" : gpt ? "gpt" : name.startsWith("gemini-") ? "gemini" : name.includes("glm") ? "glm" : "default";
|
|
29
|
+
return [...new Set([base, ...additive])].filter((variant) => variant !== "default");
|
|
30
|
+
}
|
|
31
|
+
export function roleModelCalibration(role, model) {
|
|
32
|
+
const variants = promptModelVariants(role?.sourceId, model);
|
|
33
|
+
const layers = variants.map((variant) => asset(`deepwork/${variant}.md`));
|
|
34
|
+
if (role?.kind === "category" && role.promptArtifact !== null) {
|
|
35
|
+
const category = splitCategory(asset(role.promptArtifact.replace("prompts/source/", "")));
|
|
36
|
+
const name = modelName(model);
|
|
37
|
+
const family = model.toLowerCase().includes("codex") || name.includes("gpt") ? "gpt" : name.startsWith("gemini-") ? "gemini" : name.includes("glm") ? "glm" : name.includes("claude") ? "claude" : "unknown";
|
|
38
|
+
// Categories carry only their own family layer + additive model calibration,
|
|
39
|
+
// not the base-agent Gemini/GLM/planner workflow variants.
|
|
40
|
+
return [category.calibrations.get(family), ...layers.filter((_layer, index) => ["gpt", "kimi-k27", "swe-2"].includes(variants[index]))].filter(Boolean).join("\n\n---\n\n");
|
|
41
|
+
}
|
|
42
|
+
return layers.join("\n\n---\n\n");
|
|
43
|
+
}
|
|
34
44
|
export const DEEPSEEK_V4_PRO_OVERLAY = `<dsmm-deepseek-v4-pro-calibration>
|
|
35
45
|
|
|
36
46
|
DeepSeek V4 Pro calibration is active.
|
|
@@ -39,8 +49,8 @@ DeepSeek V4 Pro calibration is active.
|
|
|
39
49
|
- First classify the task and identify the evidence needed.
|
|
40
50
|
- Use tools before making repository-specific or API-specific claims.
|
|
41
51
|
- Runtime reasoning effort is enforced by \`agent/request\`, not this prompt.
|
|
42
|
-
-
|
|
43
|
-
-
|
|
52
|
+
- Ordinary root model and effort stay under the native model picker. Explicit preflighted invocation effort takes precedence over calibration.
|
|
53
|
+
- For other eligible child requests, \`auto\` preserves explicit upstream effort; \`strict\` uses the configured default only when the adapter advertises a supported effort. If none is advertised, leave the request unchanged.
|
|
44
54
|
- Keep final answers concise and do not expose private chain-of-thought.
|
|
45
55
|
- When tool calls are enabled through the provider, preserve the provider-required reasoning/tool-call continuity.
|
|
46
56
|
|
|
@@ -51,13 +61,117 @@ DeepSeek-V41-Flash applies only to the verified deepseek-official/deepseek-flash
|
|
|
51
61
|
|
|
52
62
|
- Keep work outcome-first and avoid procedural review or approval loops.
|
|
53
63
|
- Runtime reasoning effort is chosen by the adapter only from the resolved model's advertised efforts. If the catalog advertises no reasoning efforts, leave the request unchanged.
|
|
54
|
-
-
|
|
64
|
+
- Ordinary root model and effort stay native-owned; explicit preflighted invocation effort takes precedence. For other eligible child requests, auto preserves explicit upstream effort; strict uses only an advertised effort.
|
|
55
65
|
- Do not assume max, high, temperature, or another model's capabilities. Do not claim model heterogeneity when all child roles use the same route.
|
|
56
66
|
- Maintain tool-call continuity required by the provider and never reveal private reasoning.
|
|
57
67
|
|
|
58
68
|
</dsmm-deepseek-flash-calibration>`;
|
|
69
|
+
const localeNames = {
|
|
70
|
+
en: "English", "zh-Hans": "Simplified Chinese", "zh-Hant": "Traditional Chinese", ja: "Japanese", ko: "Korean",
|
|
71
|
+
de: "German", fr: "French", es: "Spanish", "pt-BR": "Brazilian Portuguese", ru: "Russian"
|
|
72
|
+
};
|
|
73
|
+
export function buildDsmmLocaleGuidance(settings) {
|
|
74
|
+
return `<dsmm-visible-output-language>
|
|
75
|
+
${JSON.stringify({ capturedLocale: settings.locale ?? null, visibleOutputLanguage: settings.locale === undefined ? null : localeNames[settings.locale] })}
|
|
76
|
+
${settings.locale === undefined ? "No DSMM locale is captured; inherit applicable host/user language guidance, otherwise use the current request and conversation context." : `This Agent's immutable captured locale is ${settings.locale} (${localeNames[settings.locale]}). Use it as the default for visible replies, plans and role/category output.`}
|
|
77
|
+
The current user's explicit output-language request takes precedence. Preserve that instruction in child assignments. A parent's later profile change does not rewrite this child's captured preference. Preserve code, identifiers, commands, paths, protocol fields and exact quotations verbatim. This affects visible output only: it neither promises an internal reasoning language nor changes the host UI/project locale. Do not infer configuration or authority with natural-language matching.
|
|
78
|
+
</dsmm-visible-output-language>`;
|
|
79
|
+
}
|
|
80
|
+
function toolProperties(tool) {
|
|
81
|
+
return (tool.parameters.properties ?? {});
|
|
82
|
+
}
|
|
83
|
+
// Output projection must not serialize credentials/extra properties on structurally compatible DTOs.
|
|
84
|
+
function projectInvocation({ routeKind, view }) {
|
|
85
|
+
return { routeKind, view: {
|
|
86
|
+
role: view.role, label: view.label, level: view.level, routeSource: view.routeSource, mode: view.mode,
|
|
87
|
+
...(view.route === undefined ? {} : { route: { provider: view.route.provider, model: view.route.model,
|
|
88
|
+
...(view.route.reasoningEffort === undefined ? {} : { reasoningEffort: view.route.reasoningEffort }) } }),
|
|
89
|
+
...(view.runId === undefined ? {} : { runId: view.runId }), ...(view.childId === undefined ? {} : { childId: view.childId }),
|
|
90
|
+
...(view.jobId === undefined ? {} : { jobId: view.jobId })
|
|
91
|
+
} };
|
|
92
|
+
}
|
|
93
|
+
function projectChildEvidence(evidence) {
|
|
94
|
+
return { mode: evidence.mode, parentAdmissionEpoch: evidence.parentAdmissionEpoch,
|
|
95
|
+
...(evidence.mode === "captured" && evidence.originalAdmissionEpoch !== undefined ? { originalAdmissionEpoch: evidence.originalAdmissionEpoch } : {}),
|
|
96
|
+
provenFields: [...new Set(evidence.provenFields.filter(field => CHILD_EVIDENCE_FIELDS.includes(field)))],
|
|
97
|
+
limitations: evidence.limitations.filter(row => CHILD_EVIDENCE_FIELDS.includes(row.field)
|
|
98
|
+
&& ["missing-evidence", "not-persisted", "unverified", "parent-denied"].includes(row.code)
|
|
99
|
+
&& ["capability-denied", "native-default", "display-only"].includes(row.effect))
|
|
100
|
+
.slice(0, CHILD_EVIDENCE_FIELDS.length).map(row => ({ field: row.field, code: row.code, effect: row.effect })) };
|
|
101
|
+
}
|
|
102
|
+
/** Register independently of the common-mode section, in the exact Agent scope. */
|
|
103
|
+
export function buildDsmmAgentGuidance(settings, observed) {
|
|
104
|
+
const availability = new Map(observed.roleAvailability?.map(row => [row.id, row]));
|
|
105
|
+
const delegation = observed.delegation.flatMap(entry => {
|
|
106
|
+
const tool = observed.tools.find(tool => tool.name === entry.name);
|
|
107
|
+
if (tool === undefined)
|
|
108
|
+
return [];
|
|
109
|
+
const properties = toolProperties(tool);
|
|
110
|
+
const targetEnum = entry.targetParameter === undefined ? undefined : properties[entry.targetParameter]?.enum;
|
|
111
|
+
const targets = entry.targets.filter(id => (!availability.has(id) || availability.get(id).admitted)
|
|
112
|
+
&& (entry.targetParameter === undefined || Array.isArray(targetEnum) && targetEnum.includes(id)));
|
|
113
|
+
if (targets.length === 0)
|
|
114
|
+
return [];
|
|
115
|
+
const levelEnum = properties.level?.enum;
|
|
116
|
+
return [{ tool: entry.name, kind: entry.kind, ...(entry.targetParameter === undefined ? {} : { targetParameter: entry.targetParameter }),
|
|
117
|
+
targets: targets.map(id => ({ id, ...(properties.level === undefined ? {} : { levels: ["normal", "low", "high", "max"]
|
|
118
|
+
.filter(level => Array.isArray(levelEnum) && levelEnum.includes(level) && (level === "normal" || settings.roleRouting[id]?.levels?.[level] !== undefined)) }) })),
|
|
119
|
+
parameters: Object.keys(properties).filter(name => (name !== "route" || settings.subagents.allowRouteOverride)
|
|
120
|
+
&& (name !== "run_in_background" || settings.subagents.enableRunInBackground)),
|
|
121
|
+
routeOverride: settings.subagents.allowRouteOverride && properties.route !== undefined,
|
|
122
|
+
background: settings.subagents.enableRunInBackground && properties.run_in_background !== undefined }];
|
|
123
|
+
});
|
|
124
|
+
const controls = observed.tools.filter(tool => ["send_message", "interrupt_agent", "job_output", "job_list", "job_kill", "dsmm_children"].includes(tool.name));
|
|
125
|
+
const runtime = observed.runtimeAdmission === undefined ? undefined : {
|
|
126
|
+
binding: observed.runtimeAdmission.binding, deliveryFenceReady: observed.runtimeAdmission.deliveryFenceReady,
|
|
127
|
+
restartRequired: observed.runtimeAdmission.restartRequired,
|
|
128
|
+
...(observed.runtimeAdmission.reason === undefined ? {} : { reason: observed.runtimeAdmission.reason })
|
|
129
|
+
};
|
|
130
|
+
const deliveryFenceReady = runtime?.binding === "dsmm" && runtime.deliveryFenceReady;
|
|
131
|
+
const managedDelivery = deliveryFenceReady && observed.capabilities?.managedChildDelivery === true;
|
|
132
|
+
const lifecycle = {
|
|
133
|
+
backgroundEnabled: settings.subagents.enableRunInBackground,
|
|
134
|
+
backgroundMode: settings.subagents.backgroundMode,
|
|
135
|
+
nativeJobs: settings.subagents.enableRunInBackground && observed.capabilities?.nativeJobs === true,
|
|
136
|
+
continuable: settings.subagents.enableRunInBackground && observed.capabilities?.continuable === true && deliveryFenceReady,
|
|
137
|
+
managedChildDelivery: managedDelivery,
|
|
138
|
+
sendMessage: managedDelivery && controls.some(tool => tool.name === "send_message"),
|
|
139
|
+
childToParentReporting: observed.scope === "child" && controls.some(tool => tool.name === "send_message"),
|
|
140
|
+
foregroundHandoffSurface: settings.subagents.enableRunInBackground && observed.capabilities?.nativeJobs ? observed.capabilities.foregroundHandoff?.surface ?? null : null,
|
|
141
|
+
browserPromptSurface: managedDelivery ? observed.capabilities?.nativeBrowserPrompt?.surface ?? null : null,
|
|
142
|
+
...(runtime === undefined ? {} : { runtimeAdmission: runtime })
|
|
143
|
+
};
|
|
144
|
+
const sections = [buildDsmmLocaleGuidance(settings), `<dsmm-admitted-delegation>
|
|
145
|
+
${JSON.stringify({ scope: observed.scope, topology: settings.subagents.toolTopology, delegation,
|
|
146
|
+
controls: controls.map(tool => ({ tool: tool.name, parameters: Object.keys(toolProperties(tool)) })),
|
|
147
|
+
...(observed.roleAvailability === undefined ? {} : { roleAvailability: observed.roleAvailability.map(row => ({ id: row.id, admitted: row.admitted, ...(row.reason === undefined ? {} : { reason: row.reason }) })) }) }, null, 2)}
|
|
148
|
+
</dsmm-admitted-delegation>
|
|
149
|
+
Only the listed callable entries and target enums are observed here. Role availability alone is not tool availability. Inspect their native schemas; do not invent suffix roles, fields or tools. Omitted level and normal retain the default route; low/high/max are selectable only for the listed configured target levels, not workflow rigor or a fixed reasoning effort. Each level is a complete provider/model selection or an effort-only override with exact native preflight. Route override is deployment opt-in and additionally requires an exposed route parameter: provider/model must be paired; changing models discards the previous effort; effort-only uses the selected model's exact supported effort. An explicit complete invocation route does not silently use role fallback. Reusing a child does not reselect its role, level or route. Layout/level never enlarge target, read-only, inherited tool, ownership or depth authority. The ordinary root native model picker remains authoritative. Missing required planning/review capability returns to the stage owner, not a bypass.
|
|
150
|
+
`];
|
|
151
|
+
if (observed.invocation !== undefined)
|
|
152
|
+
sections.push(`<dsmm-observed-invocation>\n${JSON.stringify(projectInvocation(observed.invocation), null, 2)}\n</dsmm-observed-invocation>\nThe routeKind labels this observation: initial is preflighted start, not a claim about the current fallback route; actual is supplied by observed native request/status. Level is resource selection, never added permissions or a smaller verification obligation.`);
|
|
153
|
+
sections.push(`<dsmm-child-lifecycle>
|
|
154
|
+
<dsmm-child-lifecycle-state>\n${JSON.stringify(lifecycle, null, 2)}\n</dsmm-child-lifecycle-state>
|
|
155
|
+
${settings.subagents.enableRunInBackground ? "Background is enabled in this Agent's captured deployment policy; only tools that expose run_in_background may request it." : "Background is disabled in this Agent's captured policy; do not request it."}
|
|
156
|
+
${lifecycle.continuable && settings.subagents.backgroundMode === "continuable" ? "The admitted continuable configuration defaults background; explicit run_in_background:false still creates a non-reusable one-shot." : "No managed continuable default is established by this observation. One-shot calls default foreground; do not infer continuation from a persona or filename."}
|
|
157
|
+
${lifecycle.nativeJobs ? "Native jobs can own one-shot background work when the actual job controller admits it; use the returned job ID and exposed job controls." : "Native-job background ownership/controller is not established here; do not invent a job handle."}
|
|
158
|
+
${lifecycle.foregroundHandoffSurface !== null ? `The user surface ${lifecycle.foregroundHandoffSurface} may hand the existing foreground run to a native job, never start a duplicate. It rechecks exact operator/session/epoch, run ownership and background capacity before ownership transfer; failed preflight leaves foreground ownership/cancellation intact. A successful handoff releases only the foreground wait, not a child completion. Cancellation/settlement cannot revive a run.` : "No foreground-to-background user control is established here. Do not invent a tool or RPC for it."}
|
|
159
|
+
${lifecycle.sendMessage ? "Exposed send_message can address a permitted existing direct continuable child: running delivery reaches the nearest step, idle starts a next turn, and cold continuation uses the same durable child ID. An inbox receipt means accepted, not executed/completed. A settled one-shot cannot be revived. Reuse carries the child's original captured route/locale/authority intersected with the current exact parent's authority; it never inherits the parent's latest profile as its original policy." : "Managed parent-to-child continuation through send_message is not established here; do not advertise safe reuse from a static role or SDK method alone."}
|
|
160
|
+
${lifecycle.browserPromptSurface !== null ? `The actual native user surface ${lifecycle.browserPromptSurface} uses queue/steer for continuable children, with native attachment validation. Its operator/connection/session/epoch/lifetime gate precedes inbox acceptance. Do not impersonate an Agent sender. After acceptance do not automatically retry; an unknown disconnect outcome needs verification, not a guessed idempotency guarantee.` : "No operator-gated native user queue/steer surface is established here; do not announce an unconnected DSMM RPC."}
|
|
161
|
+
${controls.some(tool => tool.name === "interrupt_agent") ? "Exposed interrupt_agent requests cancellation, not proof of completion or a message-delivery fence." : "No child interruption tool is observed here."}
|
|
162
|
+
${lifecycle.childToParentReporting ? "Native child-to-parent reporting retains exact-sender/adjacency semantics; it does not grant parent-to-child delegation authority or replace the managed delivery gate." : ""}
|
|
163
|
+
${runtime === undefined ? "Managed runtime binding/readiness is unobserved; no delivery-fence guarantee follows from these resources." : deliveryFenceReady ? "The observed unique DSMM PUBLIC SubagentRuntime binding has a ready delivery fence. Binding readiness alone does not prove existing-child delivery capability. Where observed, current exact-parent tickets and target original evidence gate acceptance; later parent Apply does not rebind old children or cancel already accepted work. Native parent/Host teardown still cancels/drains owned work." : `Runtime binding=${runtime.binding}; deliveryFenceReady=${runtime.deliveryFenceReady}; restartRequired=${runtime.restartRequired}${runtime.reason === undefined ? "" : `; reason=${runtime.reason}`}. Managed child features require explicit startup composition: disable the stock subagents registration row, install the unique PUBLIC DSMM SubagentRuntime subclass, then restart. Never unload/drain a running stock instance to hot-replace it, register a shadow provider, or change the user's host configuration automatically.`}
|
|
164
|
+
Native capacity/depth, provider support, direct-parent ownership, captured permissions and cancellation remain mandatory in every branch. No OpenCode task_id/resume/retry protocol is supplied.
|
|
165
|
+
</dsmm-child-lifecycle>`);
|
|
166
|
+
if (observed.childEvidence !== undefined)
|
|
167
|
+
sections.push(`<dsmm-child-evidence>\n${JSON.stringify(projectChildEvidence(observed.childEvidence), null, 2)}\n</dsmm-child-evidence>\n${observed.childEvidence.mode === "legacy-conservative" ? "Any actually admitted continuation of this captureless legacy child is limited to useful proven capabilities under the same durable ID, intersected with current normal parent authority and native lineage/depth/tool filters. Evidence alone is not delivery availability. Missing evidence denies that capability with its reason; it is neither a blanket denial of all legacy children nor permission to copy the parent's latest policy, synthesize old capture/level, rewrite records or revive a one-shot." : "The child's original immutable capture is its authority ceiling. A different current parent epoch is not an instruction to rebind it."}`);
|
|
168
|
+
return sections.join("\n\n---\n\n");
|
|
169
|
+
}
|
|
59
170
|
export function buildDeepworkPrompt(settings, options = {}) {
|
|
60
|
-
const
|
|
171
|
+
const role = SOURCE_ROLE_CATALOG.find((role) => role.id === (options.roleId === undefined ? options.selectedPreset : options.roleId));
|
|
172
|
+
const common = role === undefined ? BASE_DEEPWORK_PROMPT : [activation, asset("deepwork/default.md")].join("\n\n---\n\n");
|
|
173
|
+
const family = roleModelCalibration(role, options.route?.model ?? "");
|
|
174
|
+
const base = [options.overrideSection?.trim() || common, family === "" ? "" : `<workflow-model-calibration>\nThe role prompt is authoritative for scope, permissions and output. Model calibration never grants tools or changes the native route.\n\n${family}\n</workflow-model-calibration>`].filter(Boolean).join("\n\n---\n\n").replaceAll("{{modeName}}", settings.modeName);
|
|
61
175
|
const workflowPolicy = settings.workflow.policy === "legacy" ? `<dsmm-workflow-policy>
|
|
62
176
|
policy: legacy
|
|
63
177
|
strictGates: ${String(settings.workflow.strictGates)}
|
|
@@ -65,18 +179,18 @@ reviewCap: ${String(settings.workflow.reviewCap)}
|
|
|
65
179
|
finalReviewPolicy: ${settings.workflow.finalReviewPolicy}
|
|
66
180
|
</dsmm-workflow-policy>` : `<dsmm-workflow-policy>policy: risk-based</dsmm-workflow-policy>`;
|
|
67
181
|
const route = options.route;
|
|
68
|
-
|
|
69
|
-
|
|
182
|
+
// Content assembly must not load the native routing/provider graph.
|
|
183
|
+
const providerId = route?.provider.toLowerCase(), modelId = route?.model.toLowerCase();
|
|
184
|
+
const model = providerId === "deepseek-official" && modelId === "deepseek-v4-pro" ? "v4-pro"
|
|
185
|
+
: ["deepseek-official", "deepseek-account"].includes(providerId ?? "") && modelId === "deepseek-flash" ? "flash" : undefined;
|
|
70
186
|
const calibration = model === "flash" ? settings.deepseekFlashCalibration : settings.deepseekV4ProCalibration;
|
|
71
187
|
const calibrationPolicy = model === undefined ? "" : `<dsmm-deepseek-${model}-policy>
|
|
72
188
|
calibrationMode: ${calibration}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
effectiveDesiredReasoningEffort: ${desiredDeepseekEffort(settings, options.selectedPreset, model)}
|
|
189
|
+
configuredDesiredReasoningEffort: ${model === "flash" ? settings.deepseekFlashDefaultReasoningEffort : settings.deepseekV4ProDefaultReasoningEffort}
|
|
190
|
+
This configured default is not an observed request effort. Native root selection, explicit invocation effort and adapter capability remain authoritative.
|
|
76
191
|
</dsmm-deepseek-${model}-policy>`;
|
|
77
192
|
const calibrated = model !== undefined && calibration !== "off"
|
|
78
193
|
? `${base}\n\n${model === "flash" ? DEEPSEEK_FLASH_OVERLAY : DEEPSEEK_V4_PRO_OVERLAY}\n\n${calibrationPolicy}` : base;
|
|
79
|
-
|
|
80
|
-
return options.skillPrompt === undefined || options.skillPrompt === "" ? prompt : `${prompt}\n\n${options.skillPrompt}`;
|
|
194
|
+
return `${calibrated}\n\n${workflowPolicy}`;
|
|
81
195
|
}
|
|
82
196
|
//# sourceMappingURL=prompts.js.map
|
package/lib/recovery-policy.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { isDeepStrictEqual } from "node:util";
|
|
2
|
+
import { normalizeModelRouteJson } from "./route-json.js";
|
|
3
|
+
import { modelRouteFromHeader } from "./role-llm.js";
|
|
1
4
|
const REQUEST_HEADER_REASONS = new Set(["initial", "resume", "change", "series"]);
|
|
2
5
|
const TODO_STATUSES = new Set(["pending", "in_progress", "completed"]);
|
|
3
6
|
const GOAL_OPERATIONS = new Set(["create", "edit", "pause", "resume", "complete", "block"]);
|
|
@@ -106,9 +109,6 @@ export function selectFallbackRoute({ failedRoute, attemptedRoutes, fallbackRout
|
|
|
106
109
|
function isRecord(value) {
|
|
107
110
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
108
111
|
}
|
|
109
|
-
function isNonEmptyString(value) {
|
|
110
|
-
return typeof value === "string" && value.trim() !== "";
|
|
111
|
-
}
|
|
112
112
|
function isNormalizedNonEmptyString(value) {
|
|
113
113
|
return typeof value === "string" && value !== "" && value === value.trim();
|
|
114
114
|
}
|
|
@@ -123,12 +123,15 @@ function hasExactKeys(value, expectedKeys) {
|
|
|
123
123
|
return keys.length === expectedKeys.length && keys.every((key) => expectedKeys.includes(key));
|
|
124
124
|
}
|
|
125
125
|
function readRoute(value) {
|
|
126
|
-
|
|
126
|
+
try {
|
|
127
|
+
return normalizeModelRouteJson(value, false, true);
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
127
130
|
return undefined;
|
|
128
|
-
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
133
|
function sameRoute(left, right) {
|
|
131
|
-
return left
|
|
134
|
+
return isDeepStrictEqual(readRoute(left), readRoute(right));
|
|
132
135
|
}
|
|
133
136
|
function appendUniqueRoute(routes, route) {
|
|
134
137
|
if (!routes.some((candidate) => sameRoute(candidate, route)))
|
|
@@ -168,7 +171,17 @@ function readHeaderRoute(event) {
|
|
|
168
171
|
return undefined;
|
|
169
172
|
if (!isRecord(data.header) || !isRecord(data.header.config))
|
|
170
173
|
return undefined;
|
|
171
|
-
|
|
174
|
+
try {
|
|
175
|
+
const provider = data.header.config.provider;
|
|
176
|
+
if (typeof provider !== "string")
|
|
177
|
+
return undefined;
|
|
178
|
+
// Decode native envelopes with valid grammar, then retain the exact durable identity.
|
|
179
|
+
const route = modelRouteFromHeader({ ...data.header, config: { ...data.header.config, provider: provider.trim() } });
|
|
180
|
+
return readRoute({ ...route, provider });
|
|
181
|
+
}
|
|
182
|
+
catch {
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
172
185
|
}
|
|
173
186
|
function endsTargetScope(event) {
|
|
174
187
|
const type = eventType(event);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RemoteResult, TypertRemoteContribution } from "@deepseek-ai/dsh-typert-protocol";
|
|
2
|
+
import type { TypertContribution } from "@deepseek-ai/dsh-typert-registry";
|
|
3
|
+
import type { BackgroundTransitionResult, ChildSessionSnapshot, RoleControlBackgroundRequest, RoleControlCapabilities, RoleControlDescendantsSnapshot, RoleControlErrorInfo, RoleControlInterruptRequest, SubagentInterruptReceipt, SubagentPromptReceipt, SubagentPromptRequest } from "./role-control-types.js";
|
|
4
|
+
export interface DsmmChildrenRemote {
|
|
5
|
+
describe(sessionId: string): Promise<RemoteResult<ChildSessionSnapshot>>;
|
|
6
|
+
descendants(sessionId: string): Promise<RemoteResult<RoleControlDescendantsSnapshot>>;
|
|
7
|
+
background(sessionId: string, request: RoleControlBackgroundRequest): Promise<RemoteResult<BackgroundTransitionResult>>;
|
|
8
|
+
prompt(sessionId: string, request: SubagentPromptRequest): Promise<RemoteResult<SubagentPromptReceipt>>;
|
|
9
|
+
interrupt(sessionId: string, request: RoleControlInterruptRequest): Promise<RemoteResult<SubagentInterruptReceipt>>;
|
|
10
|
+
}
|
|
11
|
+
declare module "@deepseek-ai/dsh-typert-protocol/types" {
|
|
12
|
+
interface TypertRemoteMap {
|
|
13
|
+
"dsmmChildren/describe": DsmmChildrenRemote["describe"];
|
|
14
|
+
"dsmmChildren/descendants": DsmmChildrenRemote["descendants"];
|
|
15
|
+
"dsmmChildren/background": DsmmChildrenRemote["background"];
|
|
16
|
+
"dsmmChildren/prompt": DsmmChildrenRemote["prompt"];
|
|
17
|
+
"dsmmChildren/interrupt": DsmmChildrenRemote["interrupt"];
|
|
18
|
+
}
|
|
19
|
+
interface TypertRemoteNamespaceMap {
|
|
20
|
+
dsmmChildren: DsmmChildrenRemote;
|
|
21
|
+
}
|
|
22
|
+
interface RemoteErrorDetailsMap {
|
|
23
|
+
"dsmm-children/refused": RoleControlErrorInfo;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare const parseRoleControlErrorInfo: (value: unknown) => RoleControlErrorInfo;
|
|
27
|
+
export declare const parseChildSessionSnapshot: (value: unknown) => ChildSessionSnapshot;
|
|
28
|
+
export declare const parseRoleControlDescendants: (value: unknown) => RoleControlDescendantsSnapshot;
|
|
29
|
+
export declare const parseRoleControlBackgroundRequest: (value: unknown) => RoleControlBackgroundRequest;
|
|
30
|
+
export declare const parseRoleControlPromptRequest: (value: unknown) => SubagentPromptRequest;
|
|
31
|
+
export declare const parseRoleControlInterruptRequest: (value: unknown) => RoleControlInterruptRequest;
|
|
32
|
+
export declare const parseRoleControlCapabilities: (value: unknown) => RoleControlCapabilities;
|
|
33
|
+
export declare const parseRoleControlSessionId: (value: unknown) => string;
|
|
34
|
+
/** Separate package identity prevents replacing the Profiles contribution. */
|
|
35
|
+
export declare const ROLE_CONTROL_REMOTE: TypertRemoteContribution;
|
|
36
|
+
export declare const ROLE_CONTROL_HOST: TypertContribution;
|
|
37
|
+
export default ROLE_CONTROL_REMOTE;
|
|
38
|
+
//# sourceMappingURL=role-control-remote.d.ts.map
|