@dsmm/dsmm 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -24
- package/agent-presets/dsmm-builder/agent.cordis.yml +1949 -39
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +436 -14
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +56 -14
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +588 -0
- package/agent-presets/dsmm-coding/preset.yml +3 -0
- package/agent-presets/dsmm-complex/agent.cordis.yml +1140 -0
- package/agent-presets/dsmm-complex/preset.yml +3 -0
- package/agent-presets/dsmm-creative/agent.cordis.yml +536 -12
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1163 -0
- package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
- package/agent-presets/dsmm-deep/agent.cordis.yml +1173 -0
- package/agent-presets/dsmm-deep/preset.yml +3 -0
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +56 -14
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +581 -0
- package/agent-presets/dsmm-documenting/preset.yml +3 -0
- package/agent-presets/dsmm-frontend/agent.cordis.yml +580 -0
- package/agent-presets/dsmm-frontend/preset.yml +3 -0
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +572 -0
- package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +56 -14
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +546 -0
- package/agent-presets/dsmm-normal-task/preset.yml +3 -0
- package/agent-presets/dsmm-oracle/agent.cordis.yml +421 -12
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +421 -12
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +2023 -43
- package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +416 -13
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +462 -13
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +119 -0
- package/agent-presets/dsmm-quick/preset.yml +3 -0
- package/agent-presets/dsmm-research/agent.cordis.yml +141 -0
- package/agent-presets/dsmm-research/preset.yml +3 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +420 -13
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/cordis.patch.yml +1 -5
- package/docs/agent-presets.md +64 -15
- package/docs/compatibility.md +61 -13
- package/docs/design.md +41 -0
- package/docs/lsp.md +12 -2
- package/docs/migration-from-ocmm.md +8 -0
- package/docs/profiles.md +41 -15
- package/docs/releasing.md +78 -8
- package/docs/roadmap.md +6 -0
- package/docs/runtime-recovery.md +12 -0
- package/docs/safety-guards.md +7 -3
- package/docs/settings-status.md +148 -7
- package/docs/skill-sync.md +52 -14
- package/lib/client/DeploymentPage.d.ts +18 -0
- package/lib/client/DeploymentPage.js +120 -0
- package/lib/client/ProfilesSection.js +4 -2
- package/lib/client/deployment-controller.d.ts +50 -0
- package/lib/client/deployment-controller.js +193 -0
- package/lib/client/deployment-data.d.ts +16 -0
- package/lib/client/deployment-data.js +109 -0
- package/lib/client/deployment-locales.d.ts +66 -0
- package/lib/client/deployment-locales.js +72 -0
- package/lib/client/index.js +50 -0
- package/lib/client/locales.d.ts +4 -0
- package/lib/client/locales.js +4 -2
- package/lib/client/plugins-contract.d.ts +27 -0
- package/lib/client/plugins-contract.js +2 -0
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +16 -0
- package/lib/client.js +1048 -29
- 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/deployment-config.d.ts +37 -0
- package/lib/deployment-config.js +184 -0
- package/lib/dsh-home.d.ts +3 -0
- package/lib/dsh-home.js +10 -0
- package/lib/dsh-types.d.ts +12 -65
- package/lib/guards.d.ts +2 -1
- package/lib/guards.js +19 -2
- package/lib/index.d.ts +8 -1
- package/lib/index.js +115 -25
- package/lib/lsp.d.ts +13 -0
- package/lib/lsp.js +60 -0
- package/lib/mode.js +42 -47
- package/lib/model-routing.js +5 -2
- package/lib/modules.d.ts +27 -0
- package/lib/modules.js +21 -0
- package/lib/native-scope.d.ts +9 -0
- package/lib/native-scope.js +20 -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 +7 -4
- package/lib/preset-skills.d.ts +4 -1
- package/lib/preset-skills.js +60 -19
- package/lib/profile-remote.d.ts +14 -0
- package/lib/profile-remote.js +197 -4
- package/lib/profile-rpc.d.ts +24 -1
- package/lib/profile-rpc.js +139 -1
- package/lib/profile-runtime.d.ts +24 -0
- package/lib/profile-runtime.js +177 -33
- package/lib/profile-store.d.ts +45 -1
- package/lib/profile-store.js +236 -102
- package/lib/profile-types.d.ts +55 -0
- package/lib/prompt-content.d.ts +25 -0
- package/lib/prompt-content.js +27 -0
- package/lib/prompts.d.ts +8 -2
- package/lib/prompts.js +46 -34
- package/lib/role-policy.d.ts +51 -0
- package/lib/role-policy.js +224 -0
- package/lib/role-providers.d.ts +6 -2
- package/lib/role-providers.js +72 -39
- package/lib/role-subagents.d.ts +6 -2
- package/lib/role-subagents.js +187 -48
- package/lib/roles.d.ts +16 -4
- package/lib/roles.js +86 -186
- package/lib/runtime-recovery.js +16 -5
- package/lib/session-scope.js +2 -0
- package/lib/settings.d.ts +69 -1
- package/lib/settings.js +262 -91
- 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 +25 -0
- package/lib/status.js +47 -9
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +19 -2
- package/prompts/deepwork.md +144 -20
- package/prompts/source/agents/clarifier.md +45 -0
- package/prompts/source/agents/orchestrator.md +63 -0
- package/prompts/source/agents/plan-critic.md +25 -0
- package/prompts/source/agents/planner.md +19 -0
- package/prompts/source/agents/reviewer.md +17 -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 +38 -0
- package/prompts/source/category/cross-cutting.md +52 -0
- package/prompts/source/category/deep.md +62 -0
- package/prompts/source/category/documenting.md +62 -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 +56 -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 +129 -0
- package/prompts/source/deepwork/gemini.md +184 -0
- package/prompts/source/deepwork/glm.md +256 -0
- package/prompts/source/deepwork/gpt.md +43 -0
- package/prompts/source/deepwork/kimi-k27.md +13 -0
- package/prompts/source/deepwork/planner.md +41 -0
- package/prompts/source/deepwork/swe-2.md +13 -0
- package/prompts/source/manifest.json +3118 -0
- package/prompts/source/shared/dsh-host-contract.md +6 -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/skills/ast-grep/LICENSE +21 -0
- package/skills/ast-grep/README.md +138 -0
- package/skills/ast-grep/SKILL.md +284 -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 +102 -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 +144 -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 +125 -4
- package/skills/debugging/references/logging.md +2 -0
- package/skills/debugging/references/methodology/00-setup.md +2 -0
- package/skills/debugging/references/methodology/02-investigate.md +8 -2
- package/skills/debugging/references/methodology/03-flaky-triage.md +3 -1
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +4 -2
- package/skills/debugging/references/methodology/05-escalate.md +2 -0
- package/skills/debugging/references/methodology/06-fix.md +2 -0
- package/skills/debugging/references/methodology/08-qa.md +2 -0
- package/skills/debugging/references/methodology/09-cleanup.md +2 -0
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +4 -2
- package/skills/debugging/references/runtimes/bundled-js-binary.md +2 -0
- package/skills/debugging/references/runtimes/go.md +2 -0
- package/skills/debugging/references/runtimes/native-binary.md +2 -0
- package/skills/debugging/references/runtimes/node.md +2 -0
- package/skills/debugging/references/runtimes/python.md +2 -0
- package/skills/debugging/references/runtimes/rust.md +2 -0
- 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 +3 -1
- package/skills/debugging/references/tools/ghidra.md +2 -0
- package/skills/debugging/references/tools/playwright-cli.md +2 -0
- package/skills/debugging/references/tools/pwndbg.md +2 -0
- package/skills/debugging/references/tools/pwntools.md +2 -0
- package/skills/dispatching-parallel-agents/SKILL.md +94 -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 +142 -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 +112 -0
- package/skills/git-master/agents/openai.yaml +13 -0
- package/skills/init-deep/SKILL.md +279 -0
- package/skills/receiving-code-review/SKILL.md +112 -7
- package/skills/remove-ai-slops/SKILL.md +159 -8
- package/skills/requesting-code-review/SKILL.md +96 -3
- package/skills/requesting-code-review/code-reviewer.md +47 -0
- package/skills/subagent-driven-development/SKILL.md +176 -6
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
- package/skills/subagent-driven-development/implementer-prompt.md +69 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +32 -0
- package/skills/using-git-worktrees/SKILL.md +141 -0
- package/skills/writing-plans/SKILL.md +121 -7
- package/skills/writing-plans/plan-document-reviewer-prompt.md +38 -0
package/docs/releasing.md
CHANGED
|
@@ -1,4 +1,74 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DSMM 0.2.0 Source Readiness, Release and Rollback
|
|
2
|
+
|
|
3
|
+
## Current working-source authority
|
|
4
|
+
|
|
5
|
+
The reviewed source candidate is **@dsmm/dsmm@0.2.0**, tag **dsmm-scoped-v0.2.0**, artifact **dsmm-dsmm-0.2.0.tgz**. Native parity stages A/B/C0/C/D0/D change the working source; this is not the earlier release-only/menu-visibility candidate. Source readiness is not publication or installation completion. Only separately authorized parent-owned commit/push/tag/release operations may publish these bytes; installation waits for terminal completion. The historical proposal below preserves old identities, installed-state facts and proof contracts; it is not the current product specification or an executable release checklist for these changed bytes.
|
|
6
|
+
|
|
7
|
+
Current native metadata is `{meta: {title: "DSMM", description: <localized nonempty text>}}` in both exported locales. Package `@dsmm/dsmm`, Loader row `dsmm`, commands, public exports and technical role IDs are unchanged. Deepwork is the module/mode name, not the package/Core title. The catalog contains 22 canonical roles/categories (11 base roles and 11 categories) and fourteen configurable Agent-scoped native skills with metadata discovery and lazy resource/body loading. DW Orchestrator, DW Builder and DW Planner are eligible standing roots when enabled; the other 19 are auxiliary, and cross-cutting defaults off. Availability must be established by the actual native catalog/substrate, not template files.
|
|
8
|
+
|
|
9
|
+
### Configuration, mode and captured state
|
|
10
|
+
|
|
11
|
+
The global-only `modules.deepwork.enabled` master defaults `true`; ordinary session mode defaults `false`. A profile's `defaultActive` is not the global master and cannot bypass it. Saved explicit `deepwork/mode` intent wins over the profile mode default, including same-default intent. DW presets default on but are not locked: explicit off retains persona, read-only and Git/Host permissions. Module availability, mode intent and profile selection are separate state, not interchangeable switches.
|
|
12
|
+
|
|
13
|
+
Core stays mounted when Deepwork is cold-off: official native **Plugins → DSMM**, the real bundle/entry Config page and the fixed `dsmmConfig` RPC remain available without creating a session. **Save Global DSMM** edits only central sparse `config.json`; **Save current DSH profile override** edits only the exact entry's native volatile form/patch under Host authorization and revision checks. Named JSONC **Deepwork Profiles** is independent, not a replacement deployment store. `DSMM_CONFIG_SCHEMA` remains the plain/sparse public interface; optional volatile `DSMM_NATIVE_CONFIG_SCHEMA` is separate native transport, not expanded business defaults.
|
|
14
|
+
|
|
15
|
+
Inspection projects schema-allowlisted safe desired/startup/next-root/captured state; arbitrary raw config, paths, provider errors and credentials are not status output. The authorized configuration editor is the explicit raw-editor exception, not a model capability. Every Core RPC still requires actual invocation peer identity equal to `connection.operator`, public `webServer.host === '127.0.0.1'`, Host writability and final owner/lifetime checks; a loopback-looking client URL is not authority. Reads create no files or locks.
|
|
16
|
+
|
|
17
|
+
Saves do not restart, remount, cancel, reapply a named profile or fake a hot switch. Existing busy/blank parents and their future children keep captured deployment/epoch. A new ordinary root admits current valid desired values only within the startup substrate and original permission intersection. An explicit idle session-profile Apply changes only that old root's overlay; existing children remain old. Startup-only or absent module capability is **restart-required**. Desired-on after cold-off remains pending until an independent supported restart; profiles cannot overcome the master ceiling. See [settings/status](settings-status.md), [profiles](profiles.md) and [compatibility](compatibility.md).
|
|
18
|
+
|
|
19
|
+
### Cold tracked source and offline distribution checks
|
|
20
|
+
|
|
21
|
+
A cold tracked checkout has the authored OCMM source inputs, DSMM source-sync assets and generated role presets, but not the gitignored third-party frontend bodies/data/Python or provenance inventory. Default build, source check and readiness remain offline and fail closed until those fixed resources exist. Missing-resource refusal is expected cold-source evidence, not permission for a build to download implicitly.
|
|
22
|
+
|
|
23
|
+
From the repository root, after dependencies have been separately provisioned, run the one explicit source-materialization operation before **any** DSMM build (including `typecheck:test` and `test`, which build internally):
|
|
24
|
+
|
|
25
|
+
```powershell
|
|
26
|
+
node dsmm/scripts/materialize-frontend.mjs --sync
|
|
27
|
+
node dsmm/scripts/materialize-frontend.mjs --check
|
|
28
|
+
node --experimental-strip-types dsmm/scripts/check-source-assets.mjs
|
|
29
|
+
pnpm --dir dsmm build
|
|
30
|
+
pnpm --dir dsmm check:release
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`--sync` alone permits network access to declared immutable GitHub trees/blobs and LICENSE texts at the three commits in `scripts/frontend-recipe.mjs`. It validates exact mapped paths and Git blob bytes before writing; no third-party Python/script is executed, HEAD substituted or missing path dropped. Offline readiness covers all **118** frontend resources plus provenance, **158** source-sync records and **47** generated role assets. A second sync of a ready tree reports zero requests and zero differences. Keep original Root prompts/skills available for the source validator; do not hand-write generated assets or substitute existing repo caches for cold-source evidence.
|
|
34
|
+
|
|
35
|
+
For byte-preserving tracked-snapshot QA on Windows, use command-local `git -c core.autocrlf=false archive --format=tar --output <owned-snapshot.tar> HEAD`, then extract into a fresh marked directory. This does not change Git configuration. A default archive can apply checkout CRLF conversion even when HEAD's fixed LICENSE blobs are correct; such non-verbatim unowned bytes are deliberately refused by the materializer. Do not normalize or delete a license to bypass that guard. Neither this exact-blob snapshot nor read-only access to already installed dependencies proves a clean Linux `pnpm install`/`allowBuilds` path.
|
|
36
|
+
|
|
37
|
+
The future-source CI step now explicitly runs `node dsmm/scripts/materialize-frontend.mjs --sync` before DSMM build-bearing commands. All normal build/check commands remain offline. This source preparation changes no fixed tag/control identity, publish authentication, retry/deadline, cache, job conclusion, registry lane or immutable receipt policy; it is not evidence that CI or publication is green.
|
|
38
|
+
|
|
39
|
+
Linux source tests require a native Linux dependency closure from the unchanged frozen Root lock and the built Root `dist/bin/ocmm-lsp`. The POSIX session verifier dynamically imports the real `@deepseek-ai/node-addon-system/flock` wrapper, holds its native writer lease, and checks Linux `/proc` for carrier quiescence. A Windows `node_modules` bind is not that closure. CI builds the required frozen-artifact runtime first, records its immutable image ID, and copies its already-installed `@deepseek-ai/dsh@0.2.0-rc.2` directory from a never-started extraction container into fresh `RUNNER_TEMP` storage. The extractor validates SDK identity and contained native preset inputs, removes exactly its created container, and supplies the real manifest through the test-only `DSMM_TEST_DSH_ENTRY` resolver. Source fixtures retain their own scoped registry identity and all source tests run on the host with its normal Linux dependencies, built LSP and independently verified Go and `gopls` executables. The cold-cache Go definition/references test requires both tools; a cached Go SDK alone is not the language-server closure. Additional software provisioning requires separate explicit authorization. No second npm installation, Root manifest/lock change or local diagnostic hook is used. The frozen-artifact gate reuses the same immutable runtime image; workflow-owned tag cleanup is required before the prepare job succeeds. Missing native-addon/platform or language-server tools must remain failures; do not skip tests, forge writer exclusion or relax quiescence. Source SDK/container diagnostics are separate from acceptance of the fixed frozen artifact.
|
|
40
|
+
|
|
41
|
+
Source-validation software provisioning is authorized only for task-owned Docker/CI environments: Go **1.27.2** and gopls **v0.23.0**. CI keeps the toolchain, GOBIN, GOPATH, module/build caches and temporary Go files under a dedicated `RUNNER_TEMP` prefix, disables shared cache restoration and automatic toolchain switching, verifies both exact versions, and adds only the task-owned gopls directory to the job's PATH. No local installation, global Go configuration or Root lock mutation is authorized by this provision.
|
|
42
|
+
|
|
43
|
+
Development distribution acceptance additionally requires script-free `npm pack --dry-run --json --ignore-scripts` and a **real** `npm pack --json --ignore-scripts --pack-destination <marked-temporary-directory>` from the same built source, followed by unpacking and exact path/byte comparison with the preview. The current set is **459 files**, including compiled client/Core outputs, seven public exports, locales, complete skills/vendor resources, attribution/licenses and provenance. Resolve exports and exercise the unpacked module through real pinned rc.2 Cordis Loader, Settings and Gateway lifecycle in a keyless owned fixture: Core read/save/status remains usable cold-off, desired-on is pending, and no model request/job/install occurs. A preview, exports alone or importing checkout runtime does not prove standalone packed behavior. This development npm pack is not the release publisher's frozen pnpm artifact or installed-registry proof.
|
|
44
|
+
|
|
45
|
+
### Three distinct native evidence surfaces
|
|
46
|
+
|
|
47
|
+
1. **Actual Windows rc.2 Web**: real official native Config/Main entry paths and two isolated same-Home profile cases establish native Plugins discovery, independent saves, safe inspection and captured/restart behavior. Stable D evidence may be reused when those inputs are unchanged. A community tab is not the official primary entry point.
|
|
48
|
+
2. **Official Desktop fixed source**: `deepseek-ai/deepseek-harness@5badb15009ae1756c3afe0ae0cef1faafc290ccc` (`0.2.1-alpha.1`) is a shared-contract compatibility target, not an installed SDK upgrade or actual Desktop execution.
|
|
49
|
+
3. **Actual Electron/Desktop**: no executable is installed or run in this acceptance environment. Web/component/packed Loader evidence does not establish Electron activation, private profile migration or production installation.
|
|
50
|
+
|
|
51
|
+
### DSMM-local reviewed release controls
|
|
52
|
+
|
|
53
|
+
The Root controls remain unchanged historical authorities. `.github/workflows/dsmm-release.yml` invokes the source-owned `dsmm/scripts/dsmm-release.mjs`, `dsmm/scripts/check-dsmm-release-completion.mjs`, and `dsmm/scripts/dsmm-registry-install-probe.mjs`. These local controls preserve the original identity checks, frozen bootstrap policy, exact assets/checksums, registry/provenance checks, static-auth refusal, OIDC-only publishing, no repack/retry/overwrite policy and terminal five-job gate. An explicit **0.2.0** contract selects DSMM locale/native metadata, the exact 22-role catalog, current Core compiled outputs and mutable standing DW mode proof; no later version inherits this grammar without review. Shared picker helpers require the DSMM-local caller's `sourceContract: "0.2.0"` argument bound to that exact trusted package version. Default Root consumers reject 0.2.0 picker proof rather than infer the new grammar from a version or receipt flag; default mode-step validation retains the historical eight-scenario grammar. Historical 0.1.x titles, compiled inventories, locked-mode receipts and continuation identities remain valid only for their own identities. Never relabel old receipts as new acceptance.
|
|
54
|
+
|
|
55
|
+
CI packs once with pinned pnpm between local `assert-source` guards from the exact tracked tagged checkout after source/build checks. HEAD, peeled tag, event, workflow/control SHA, package version and trusted default-branch ancestry must agree before and after packing. Dirty tracked DSMM bytes (including a local roadmap edit), nonignored untracked package files, or dirty Root build manifests/lock/workspace/TypeScript configuration refuse packing. The Root inputs are read-only authority checks, not permission to edit them. Build outputs and verified materialized resources are the only generated package surfaces. Do not pack the concurrently edited developer checkout for publication; a fresh tagged Actions checkout includes only the committed roadmap version. Leave unrelated Root work and local plans/journals outside the release artifact.
|
|
56
|
+
|
|
57
|
+
The independent frozen-artifact Docker lane installs the unchanged tarball in fresh native Web/headless homes and drives actual delegation, read-only denials, profile CAS/epoch/history/recovery/model-selection and installed native metadata. The browser menu contract is `native-menu-mode-020`: retain every prior native picker/menu race, geometry, cleanup and authentication nonclaim, plus actual persisted **standing DW off/on** writes. The old locked label is not 0.2.0 proof. A separate cold-off real native Core Host proves strict operator-owned `dsmmConfig`, native entry SettingsForms, independent global/profile saves, no remount/session creation from saves, desired-on restart-required state and the master ceiling. Source tests or a boolean completion label cannot replace this native proof.
|
|
58
|
+
|
|
59
|
+
For 0.2.0, retain the default **120,000 ms** post-publication metadata visibility policy and **300,000 ms maximum** permitted override; the special shared 20-minute visibility policy remains exclusive to historical 0.1.9. Publisher absence checks remain single-shot and no visibility wait authorizes a publish retry. Wrong bytes, identities, provenance or install evidence fail closed. Do not extend budgets or skip proof because CI failed.
|
|
60
|
+
|
|
61
|
+
After the authorized tag's exact workflow run terminates, use the released checkout and a new receipt path:
|
|
62
|
+
|
|
63
|
+
```powershell
|
|
64
|
+
node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <actual-run> --run-attempt <actual-attempt> --control-sha <tagged-control-sha> --receipt <new-020-terminal-receipt.json>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Only exit `0` with receipt outcome `COMPLETED` proves release completion. The fixed run/attempt, all five exact job conclusions (`import-bootstrap` skipped for the future lane), tagged source, accepted Docker/package bytes, fresh registry install, genuine provenance and public GitHub assets/checksums must all match. Workflow success alone is insufficient. Exit `1` (`FAILED`) or `2` (`UNRESOLVED`) preserves immutable partial publication: report it, never move/recreate the tag, repack, overwrite assets, adopt another run's receipt, or repair in place. No 0.2.0 publication, production login or Desktop execution is claimed by this source-readiness document.
|
|
68
|
+
|
|
69
|
+
## Historical release-only 0.1.9 proposal (not current authorization)
|
|
70
|
+
|
|
71
|
+
The following procedure and historical facts are retained for audit. References to Deepwork metadata, twelve roles and standing DW locked mode belong to the old proof contract, **not** the current DSMM product above. They must not be applied to new changed bytes or adopted as current completion evidence.
|
|
2
72
|
|
|
3
73
|
This is a prospective procedure for the explicitly authorized 0.1.9 commit, new release and later local Desktop installation, not a completed-release receipt. The new identities are `@dsmm/dsmm@0.1.9`, tag `dsmm-scoped-v0.1.9`, and `dsmm-dsmm-0.1.9.tgz`. Deepwork/DW display names do not rename package or protocol IDs. Existing 0.1.1 and older releases remain immutable. The stopped 0.1.2 tag, frozen artifact and draft Release remain untouched and unpublished: do not dispatch its bootstrap publisher, finalize its draft, overwrite its bytes or move/delete/recreate its tag.
|
|
4
74
|
|
|
@@ -12,7 +82,7 @@ The completed 0.1.4 publication and its separately authorized continuation remai
|
|
|
12
82
|
|
|
13
83
|
The mandatory sequence is **fresh CI pack → independent frozen-byte Docker acceptance → verified OIDC npm/GitHub publication and terminal completion → authorized official-carrier Desktop rollout**. No global/system DSH, Desktop configuration, account/provider, credential, or real-session writes may occur before terminal verified publication. Local readiness alone does not authorize publication or migration.
|
|
14
84
|
|
|
15
|
-
|
|
85
|
+
### Preflight
|
|
16
86
|
|
|
17
87
|
Run these checks from the exact source selected for review; they are readiness evidence, not publication steps. Confirm pinned DSH 0.2.0-rc.2 package/CLI identity, seven exact public exports, both metadata locale resources, peer/client exports, license parity and the exact packed file set. Recheck scoped npm authority and absence of the new version/tag before authorized publication; a registry lookup cannot reserve ownership. Do not change root ocmm/LSP versions or regenerate the unrelated Codex adapter.
|
|
18
88
|
|
|
@@ -37,7 +107,7 @@ Use pnpm for actual install/build/test/**pack/publish**. The `npm pack --dry-run
|
|
|
37
107
|
|
|
38
108
|
For 0.1.9, clean Linux install/build verification must exercise the reviewed pnpm `allowBuilds` policy for exactly `esbuild@0.25.12` and `koffi@3.1.1`, with `strictDepBuilds: true`. A cached native binary or pre-existing `lib` tree cannot establish that the ignored-script failure is repaired. This is distinct from the deliberately script-free metadata dry-run above; do not weaken that diagnostic's lifecycle-script protection or approve all dependency scripts.
|
|
39
109
|
|
|
40
|
-
|
|
110
|
+
### Phase 1: frozen artifact and independent Docker gate
|
|
41
111
|
|
|
42
112
|
Use the dedicated `.github/workflows/dsmm-release.yml` **future tag path** for the authorized `dsmm-scoped-v0.1.9` push, not the old bootstrap dispatch. Tag/version, peeled source commit, control commit and event identity must agree. CI uses pinned Node 24 / pnpm 11.9.0, checks/builds the exact source, verifies generated assets, and packs **one new actual tarball** with pnpm. Inspect `dsmm-dsmm-0.1.9.tgz`, record its actual size/SHA256/SHA1/SHA512 integrity, and freeze it. Never reuse the old 0.1.2 hash/receipt/artifact or any completed successor's bytes.
|
|
43
113
|
|
|
@@ -67,7 +137,7 @@ Bind the hook and every trusted support module explicitly, including `profile-ui
|
|
|
67
137
|
|
|
68
138
|
The native component/RPC/storage test uses a supported composition-owned in-process carrier, not an anonymous production route or copied login. It is distinct from authenticated Desktop activation. Preserve sanitized scenario evidence and inspect the full intended diff before parent-owned authorized release operations. If any required scenario fails or the frozen bytes change, stop before publication/global migration.
|
|
69
139
|
|
|
70
|
-
|
|
140
|
+
### Phase 2: authorized immutable publication
|
|
71
141
|
|
|
72
142
|
Publication requires explicit authorization for the new identity. Recheck `@dsmm/dsmm@0.1.9` and `dsmm-scoped-v0.1.9` are absent. Confirm the one-time npm Trusted Publisher registration for repository `hugefiver/ocmm`, workflow filename `dsmm-release.yml`, with direct publish allowed. If supported setup/MFA is still missing, request that step; do not add a static token fallback or recurring manual release gate. The main ocmm workflow/checker does not cover DSMM: its dedicated workflow and DSMM terminal checker do.
|
|
73
143
|
|
|
@@ -77,7 +147,7 @@ The future publish job revalidates the accepted run/attempt-bound bytes and publ
|
|
|
77
147
|
|
|
78
148
|
Treat both identities as immutable: never overwrite an npm version and never move, delete, or recreate an immutable tag. Readiness documentation and a local tarball do not authorize a publish.
|
|
79
149
|
|
|
80
|
-
|
|
150
|
+
#### Publication identity verification
|
|
81
151
|
|
|
82
152
|
The prospective 0.1.9 release Action verifier gives public metadata, the exact tarball URL and genuine provenance one shared 20-minute (1,200-second / `1200000` ms) visibility deadline, with the `verify` job bounded to 45 minutes. The visibility budget is shared across all three read surfaces, never reset for each stage. Only HTTP 404 reads may wait within that budget; transport failures, other HTTP statuses, wrong bytes, altered source/run identities and invalid provenance still fail closed. This never retries publishing or weakens publisher absence checks. Failures expose only finite stage/code/HTTP-status diagnostics, never raw credentials or provider errors. The old 0.1.8 300-second budget and failed receipt stay immutable; the new controls apply only to the separately authorized new 0.1.9 identity. The original 0.1.7 CI cause remains unproven; this visibility hardening does not repair or reinterpret its failed receipt.
|
|
83
153
|
|
|
@@ -94,7 +164,7 @@ dsh --profile dsmm-0.1.9-verify --dump-config
|
|
|
94
164
|
npm view @dsmm/dsmm@0.1.9 dist.integrity --registry "https://registry.npmjs.org/"
|
|
95
165
|
```
|
|
96
166
|
|
|
97
|
-
|
|
167
|
+
#### Published 0.1.6 continuation (separately authorized)
|
|
98
168
|
|
|
99
169
|
Historical audit reference only: this completed 0.1.6 publication/continuation remains immutable. Do not dispatch it again, republish its package or substitute its completion for the prospective 0.1.9 gate. The preserved identities and original failed history below belong only to 0.1.6.
|
|
100
170
|
|
|
@@ -110,7 +180,7 @@ node scripts/check-dsmm-release-completion.mjs terminal-continuation --origin-ve
|
|
|
110
180
|
|
|
111
181
|
Only exit `0` with `COMPLETED` establishes that historical two-run terminal proof for 0.1.6, not permission for the new 0.1.9 rollout below. A green supplemental run alone is insufficient; `FAILED`/`UNRESOLVED` preserve immutable partial state. The omitted-selector APIs/CLI and old continuation workflow remain fixed to historical 0.1.4; neither that receipt nor its archive/provenance can establish 0.1.6 completion.
|
|
112
182
|
|
|
113
|
-
|
|
183
|
+
### Phase 3: official installed-carrier Desktop rollout
|
|
114
184
|
|
|
115
185
|
Only after terminal 0.1.9 completion may authorized global migration begin. First perform the separately bounded isolated real-model/tool check against the exact registry package. Coordinate a fully quit Desktop, recheck concurrent edits, and preserve a recoverable local snapshot of only task-changed package-manager/DSMM-owned files—not the entire credential or session store. Use the exact installed official Desktop carrier to install `@dsmm/dsmm@0.1.9`. It may manage packages while the app is quit; it may **not** boot/dump the reserved Desktop profile. Never substitute standalone npm DSH, a renamed/copied profile, checkout imports, `app.asar` patches, global PATH/pnpm changes, or auth bypasses. Preserve the enabled state and do not repeat unrelated CLI/TUI installation.
|
|
116
186
|
|
|
@@ -120,7 +190,7 @@ Any old unmarked-log repair remains a separately authorized exact private target
|
|
|
120
190
|
|
|
121
191
|
After a supported restart, verify actual Desktop package 0.1.9 activation, native Deepwork metadata, healthy selectable DW root names, retained auxiliary delegation/read-only denial, and actual Deepwork Profiles UI create/edit/save/apply/reset with independent file/pointer bytes. Verify live even-blank Agents remain unchanged on global Apply and current pinned selection persists across restart. Check one icon-only native profile menu in sessionless, blank and active views, safe refusal feedback and explicit model/effort authority: one normal profile list, one admitted-revision **Use profile model** action, durable Deepwork toggle intent on other presets, and standing DW locked enabled. Confirm accessible-only successes and short sanitized errors. Check unrelated deployment/provider/account/UI state remained intact. If authenticated native Desktop behavior cannot be observed, report that pending boundary; disk files, native metadata reads, headless tests and Docker component proof alone are insufficient for complete integration.
|
|
122
192
|
|
|
123
|
-
|
|
193
|
+
### Rollback
|
|
124
194
|
|
|
125
195
|
Runtime rollback resets to the deployment baseline or explicitly reapplies a reviewed prior configuration with concurrency/revision checks. Never mutate immutable files or restore drafts over later user edits. Existing live Agents retain their snapshots.
|
|
126
196
|
|
package/docs/roadmap.md
CHANGED
|
@@ -186,6 +186,12 @@ Expose dsmm settings ergonomically in dsh web-compatible surfaces while keeping
|
|
|
186
186
|
|
|
187
187
|
## v1.0 — Stable dsmm release
|
|
188
188
|
|
|
189
|
+
### Planned: abstract capabilities and Plugins management
|
|
190
|
+
|
|
191
|
+
**Planned, not implemented.** Introduce default, reusable capability policies and a Plugins management surface with global/profile/role-scoped enablement and tuning, rather than hard-coding another role-specific switch framework. The current role-sized native standard defaults are a bounded composition increment, not that management API or UI.
|
|
192
|
+
|
|
193
|
+
The design must bind each source baseline to an actually inspected version and frozen revision, distinguish Host services from role-owned rows and inherited native child composition, and retain fail-closed read-only/tool/delegation policy when new tools appear. DSH rc.2 is not claimed to provide preset `extends` or automatic standard inheritance. Saves should affect newly admitted roots, without remounting existing roots or rewriting their captured runtime services; any future profile policy must preserve the existing native model, caller-filter, immutable admission and module-off boundaries. No new schema, configuration controls or UI source implement these switches in this increment.
|
|
194
|
+
|
|
189
195
|
Status: the initial scoped package is `@dsmm/dsmm@0.1.0`; `0.1.1` adds native per-role model/effort policies and ordered role fallbacks. The v1.0 stable milestone remains future work and does not imply all OpenCode hooks or client surfaces are compatible.
|
|
190
196
|
|
|
191
197
|
### Goal
|
package/docs/runtime-recovery.md
CHANGED
|
@@ -100,3 +100,15 @@ To investigate an interrupted child, use the native durable descriptor and child
|
|
|
100
100
|
- No automatic child followup. No automatic parent followup.
|
|
101
101
|
|
|
102
102
|
Warnings are fixed and sanitized; they omit request bodies, provider error bodies, credentials, todo text, goal text, and arbitrary exception details.
|
|
103
|
+
|
|
104
|
+
## Native C consumption
|
|
105
|
+
|
|
106
|
+
Consumers use `getSettings(agent)`/admission epoch, not desired disk values. Saving
|
|
107
|
+
desired recovery off does not cancel an old admitted parent or its future children;
|
|
108
|
+
new ordinary roots capture the new policy. Exact live registry membership rejects
|
|
109
|
+
late disposed assistant/error/turn-stopping evidence before it can reserve retry
|
|
110
|
+
or steer. Native generation/turn/step/no-output ownership and finite budgets remain
|
|
111
|
+
the same controller; no parallel scheduler, queue, retry prompt or OCMM event-name
|
|
112
|
+
translation is added. Generic native retry ownership is unchanged. Continuable
|
|
113
|
+
message/interrupt/cold resume and native jobs cancellation are public native control
|
|
114
|
+
paths, not runtime-recovery retries or a fake one-shot task-id continuation.
|
package/docs/safety-guards.md
CHANGED
|
@@ -4,7 +4,7 @@ DSMM uses DSH 0.2-native safety guards on the tools pipeline. The guards use `to
|
|
|
4
4
|
|
|
5
5
|
## Scope
|
|
6
6
|
|
|
7
|
-
The default scope is `deepwork-or-dsmm-agent`:
|
|
7
|
+
The default scope is `deepwork-or-dsmm-agent`: helpers apply when the agent is in Deepwork or uses a DSMM preset. `guards.scope: always` extends the helpers; `off` disables these optional helpers, **not** mandatory role identity/read-only/delegation fences or native permissions. Common workflow off likewise grants no new authority.
|
|
8
8
|
|
|
9
9
|
## Settings
|
|
10
10
|
|
|
@@ -48,8 +48,12 @@ Known write operations are `add`, `am`, `apply`, `branch`, `checkout`, `cherry-p
|
|
|
48
48
|
|
|
49
49
|
DSMM's pre-execute handler runs before downstream handlers. Its own deny wins immediately. For its own ask, DSMM calls downstream and returns the ask only when downstream allowed the call; a downstream ask or deny is preserved. This keeps another safety policy's stricter decision intact rather than replacing it with DSMM's request. Structured-value replacements, errors, and blocked post-tool results are not truncated into apparently successful text.
|
|
50
50
|
|
|
51
|
-
Workflow and role instructions also prefer short shell operations and repository-native tools, prohibit cross-shell destructive path composition, require exact path checks before recursive deletion, and prohibit autonomous Git writes. These instructions complement—not replace—the host sandbox and approval pipeline. Read-only role tools
|
|
51
|
+
Workflow and role instructions also prefer short shell operations and repository-native tools, prohibit cross-shell destructive path composition, require exact path checks before recursive deletion, and prohibit autonomous Git writes. These instructions complement—not replace—the host sandbox and approval pipeline. Read-only role authority is bound to exact live Agent ownership/admission, not a persona label. Native caller filters remain intact. Agent admission restricts inherited tools and installs monotonic execution guards; own-layer definitions are identity-fenced, including a re-registered `read` impersonating a safe operation. rc.2 has no public hide-own-layer filter: a registration may remain displayed, but forbidden/unadmitted invocation must fail. Native sandbox/approval/observation remain authoritative.
|
|
52
52
|
|
|
53
53
|
## Plan mutation validation
|
|
54
54
|
|
|
55
|
-
Plan validation
|
|
55
|
+
Plan validation recognizes `docs/superpowers/plans/*.md` and `.omo/plans/*.md` beneath the session cwd. Complete `write` validates **only caller-supplied full content**; valid formatting is not authorization, and a stronger native deny or stale CAS still refuses.
|
|
56
|
+
|
|
57
|
+
On rc.2, protected `edit` has no proven authorized complete pre-commit document preview. When enabled, this helper returns typed pre-execute denial with `unsupported-full-preview`, after checking public edit argument shape. Use an authorized complete-document write instead. DSMM never reads the target with Node FS, proactively invokes native read, refreshes observation/CAS, parses opaque target identity, accepts caller content as a fake preview, or treats a truncated line view/new-string fragment as the final document. This is a fail-closed unsupported seam, not successful format validation or N/A. Native matching/CAS remain untouched; ordinary non-plan edits remain native. Helper off makes no final-document formatting guarantee and does not lift role/host permissions.
|
|
58
|
+
|
|
59
|
+
Planner main/child roles return complete Markdown for native `exit_plan_mode` review; `/plan` is collaboration state, not a sandbox or upgrade. An authorized coordinator persists through native write. Tests retain the original private-checklist regression, with zero target reads/body executions, no leaked sentinel and unchanged bytes, plus actual native complete writes, stronger denial, stale version and ordinary unique-match/replace-all coverage.
|
package/docs/settings-status.md
CHANGED
|
@@ -4,13 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
`/deepwork [off|message]` changes the receiving session's mode. `/dsmm-status` reports bounded normalized state; `/dsmm-status json` returns a defensive JSON snapshot with version 1. Other input returns `Usage: /dsmm-status [json]`.
|
|
6
6
|
|
|
7
|
-
Human-facing status/mode copy uses Deepwork.
|
|
7
|
+
Human-facing status/mode copy uses Deepwork. Technical commands, JSON fields and configurable `modeName` remain unchanged. In the stage A working source, the **Deepwork** toggle controls common workflow and DSMM skill visibility with one activation decision: ordinary presets are opt-in/effective-default, official minimal defaults off, and DW roles default on only until a saved explicit `deepwork/mode` choice. Even a same-default choice persists; this intent survives profile changes and reopen. DW roles are no longer locked; explicit off does not remove persona/read-only/Git/host permissions. Busy commands are rejected instead of mutating an open turn or silently queueing a pre-step change. The header's existing idle/CAS path remains authoritative. This source change does not claim publication, installation or Config UI acceptance.
|
|
8
8
|
|
|
9
9
|
Commands belong to the native command adapter. Headless task text is not a slash-command invocation.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## C0 layered deployment configuration
|
|
12
12
|
|
|
13
|
-
The
|
|
13
|
+
The working source remains version **0.1.9**. C0 supplies centralized storage/sparse inheritance/immutable capture; C consumes those boundaries for native role policy, continuation/background and startup MCP. D0 adds the global Deepwork module ceiling. D adds the actual native Plugins pages below, with isolated rc.2 Web browser evidence. Publication, private migration, final artifact gates and actual Electron acceptance remain separate.
|
|
14
|
+
|
|
15
|
+
Effective composition is **built-in defaults → sparse global deployment base → explicit native DSH entry/profile overrides → applied immutable named-profile/session overlay**. The global base is `<resolvedDshHome>/plugins/dsmm/config.json`, a UTF-8 JSON object containing only explicit DSMM fields. A missing file means an empty layer. The native entry remains a separate sparse layer in the active profile's Cordis configuration, not a copy of merged defaults. Named Profiles are runtime overlays, not another deployment layer editor.
|
|
16
|
+
|
|
17
|
+
`src/dsh-home.ts` resolves the public `resolveDshHome` export through `createRequire` anchored at the declared `dsh-skill-filesystem` peer. Priority is explicit trusted `profileContext.home`, then `DSH_HOME`, then the official `~/.dsh` default. Resolution failure is explicit, not a fallback to a developer's global SDK. **`home/plugins/dsmm` is DSMM's convention, not an official mandated plugin layout.** `profileContext.dir` identifies the native profile; it isn't used to guess home.
|
|
18
|
+
|
|
19
|
+
`DSMM_CONFIG_SCHEMA` remains the plain sparse public ABI. Native Loader `Config` uses the separate `DSMM_NATIVE_CONFIG_SCHEMA`, with flat optional volatile transport fields. Full business defaults and validation apply after layer resolution, not as transport defaults. Legacy raw flat callers keep every explicit value, including a value equal to the built-in default. The removed `settings.register()` namespace and old `$DSH_HOME/settings.yaml` aren't DSMM storage interfaces.
|
|
20
|
+
|
|
21
|
+
Direct public `Config(input)` calls return plain flat data and require complete explicit model-route pairs, preserving `resolveConfig(Config(input))`. Native Cordis consumes the same Config object's Standard Schema protocol to obtain sparse volatile refs. Sparse deployment-layer validation can inherit primary members across global/native layers; their full merge is revalidated. No schema-expanded defaults or resolved refs are used to infer raw presence.
|
|
22
|
+
|
|
23
|
+
The snapshot's `profile` is the assembled explicit native entry layer, which can include bundle/home/CLI pins; it isn't a claim that every field came from the editable profile file. When available, `nativeForm.base`/`user` retain the public redacted descriptor provenance and `nativeFormRevision` is its actual CAS. Higher host pins cannot be cleared by profile unset; native ConfigEditor rejects a write whose result is overridden by another host layer. DSMM doesn't inspect private layers or evaluate `!!js` to guess presence.
|
|
24
|
+
|
|
25
|
+
The following is an explicit native profile override, not the global file format. Keep existing values when editing a Cordis patch; its `config` replaces the row's config object:
|
|
14
26
|
|
|
15
27
|
```yaml
|
|
16
28
|
- id: dsmm
|
|
@@ -30,10 +42,119 @@ The Loader plugin entry remains the deployment baseline. Structural fields are *
|
|
|
30
42
|
enabled: false
|
|
31
43
|
```
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
Plain objects merge recursively and arrays replace whole arrays. Missing keys inherit; an empty object doesn't erase inherited children. Valid explicit `false`, `0`, `""` and `[]` aren't omission. Unset removes a key only from the edited layer: profile unset restores global inheritance, global unset restores defaults. `null` is accepted only where the field schema permits it. Unknown/prototype keys, non-JSON values, cycles and raw volatile refs are rejected; the complete merged desired settings are validated before startup or admission.
|
|
46
|
+
|
|
47
|
+
Native Settings **Deepwork Profiles** / **Deepwork 配置档** remains separate from plugin Config. New named drafts and revisions share `<resolvedDshHome>/plugins/dsmm/profiles/`; selection/session state is scoped by canonical native profile identity and actual DSMM entry ID. An existing current-profile legacy library is strictly read-only, with its original immutable pins retained and its origin shown in the named editor. See [runtime profiles](profiles.md) for formats and origin rules. Neither Web evidence nor these backend contracts proves Electron activation.
|
|
34
48
|
|
|
35
49
|
Save changes only the draft. Global Apply pins an immutable revision for **new unscoped Agents only**; existing even-blank Agents retain their admissions. The separate current-session selector uses the native view's actual session ID and idle maintenance/CAS/epoch fences. It changes only that ordinary root and future children; old children retain their old epoch. Cold resume honors an explicit sidecar or, when absent, the current global default. Global reset and session baseline pinning are distinct and leave drafts intact.
|
|
36
50
|
|
|
51
|
+
Here, “global Apply/default” means the runtime's scoped named-profile selection, not the shared global deployment file.
|
|
52
|
+
|
|
53
|
+
### Global module ceiling (D0)
|
|
54
|
+
|
|
55
|
+
The only recognized module is `deepwork`, controlled by `modules.deepwork.enabled` **only in the global `config.json` layer**:
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{"modules":{"deepwork":{"enabled":false}}}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Missing/unset means `true`, preserving existing availability; ordinary-session `defaultActive` still defaults to `false`. This is an allowed upper bound, not a session-mode override and not a pin for every other global field. Native profile/volatile Config, direct legacy flat Config, named profiles and session overlays reject `modules`; unknown module IDs/fields and nonboolean enabled values refuse. Internally resolved/captured settings include the field without becoming an external profile input.
|
|
62
|
+
|
|
63
|
+
Core remains installed and usable when Deepwork is off: fixed global configuration read/save, profile storage and immutable captures/CAS, status and mandatory identity/read-only/filter/native-permission fences. A cold-off startup does not register DW persona/common/calibration/workflow skills, role providers/aliases/controls, materialize presets, or mount DW routing/recovery/LSP. It does not delete bundled assets, presets or user data, or withdraw host/project skills, tools, LSP or subagents. A static DW preset may remain visible in the native filesystem picker; choosing it refuses before prompt-body/model execution. Unknown DSMM standing roots also refuse.
|
|
64
|
+
|
|
65
|
+
With `guards.scope:"always"`, configured shell safety and Git deny/approval gates remain Core safety, including on a cold-off ordinary root. `guards.scope:"off"` retains its existing optional-guard semantics; mandatory identity/native permissions still apply. DW plan/todo/question/output helpers remain unavailable while the module is off. Genuine native foreign children receive Core identity admission from their exact live parent and captured epoch, without installing DW role tools or granting a generic-spawn bypass to a DW-authorized parent.
|
|
66
|
+
|
|
67
|
+
Startup captures the actual DW substrate once. Each new ordinary root admits **latest valid global desired ∩ startup-mounted substrate ∩ existing policy**. Saving off on a mounted Host leaves old busy/idle parents and their future children on their exact captures, while new roots are off. Their generic/directed skills, standing presets, role aliases, continuable resume and mode-on requests cannot bypass the ceiling. Mode-on reports unavailable; saved historical mode intent is retained but never reported effective while the admitted module is off. Idle profile/mode changes only update that root's overlay/intent and do not absorb newer module state. Saving on after cold-off changes desired/pending only: no mount, reconciliation, disposal, cancellation, process launch or restart queue. New roots remain off/restart-required until an independently authorized Host restart. Restoring on does not rebind old off roots.
|
|
68
|
+
|
|
69
|
+
For later Config consumers, `DSMM_MODULE_DESCRIPTORS` and `DsmmModuleState` (exported from the package root) are plain static first-party data, not dynamic third-party JS/provider/installer APIs. The additive, no-argument `dsmmConfig.describeModules` uses the same local writable operator authority as `describe`/`save` and reads the latest valid global state; it is not opened to unauthorized read-only carriers. It returns descriptor `{id,label,key}`, global/default desired source, `startupMounted`, `admitted` (`null` without an Agent), next-root admission/reason and pending/reason. `hostBundleEnabled` is explicitly `"unknown"`: installed files, loaded DSMM core, desired DW availability, mounted substrate, admitted module and active mode are different facts.
|
|
70
|
+
|
|
71
|
+
`getSettings.moduleStates(agent)`, the optional session-profile response `modules`, and status `modules` project the receiving Agent's capture. `desired.capture` distinguishes `current-global`, `admission` and `startup`: a synchronous admission/status snapshot does not claim to have reread current disk state. D's UI combines the authorized current-global projection with the actual session projection instead of treating captured state as current desired. Native profile form revision/CAS remains separate; there is neither a Root-path RPC nor a cross-layer atomic save.
|
|
72
|
+
|
|
73
|
+
### Native Plugins configuration (D)
|
|
74
|
+
|
|
75
|
+
Open native **Plugins → DSMM**, or the installed **DSMM** bundle's page and its
|
|
76
|
+
actual **Configure DSMM** row. The item registers `plugins.item`; bundle and row
|
|
77
|
+
contributions use `plugins.bundle.config` (`@dsmm/dsmm`) and
|
|
78
|
+
`plugins.row.config` (`@dsmm/dsmm#<actual-row-id>`). The public page props are
|
|
79
|
+
`view: summary | page` plus optional `form`, not an invented standalone editor.
|
|
80
|
+
Bundle pages do not automatically supply a form: DSMM obtains only the server-
|
|
81
|
+
verified actual entry namespace's public ConfigForms seat. Row pages match their
|
|
82
|
+
supplied native form's namespace, revision and exact base/user metadata. If that
|
|
83
|
+
identity cannot be proved, profile controls are unavailable/readonly; they never
|
|
84
|
+
fall back to writing Global. Other instances are not cross-written.
|
|
85
|
+
|
|
86
|
+
The two editors have independent save/refresh/discard actions:
|
|
87
|
+
|
|
88
|
+
- **Global DSMM** uses fixed `dsmmConfig.save(expectedRevision, edits)` and the
|
|
89
|
+
actual-byte global revision. A save touches only `config.json`, retaining
|
|
90
|
+
untouched sparse fields. It is independently discoverable with no conversation,
|
|
91
|
+
named-profile client service or mounted DW substrate.
|
|
92
|
+
- **Current DSH profile override** uses the actual native form `mutate` with its
|
|
93
|
+
descriptor revision, never its schema-expanded `value` as raw presence. Only
|
|
94
|
+
changed fields and explicit unsets are sent. Existing startup-only
|
|
95
|
+
`sessionPersistence` is retained unchanged, not made editable or relocated.
|
|
96
|
+
- Roles/skills, calibration, workflow/review, guards, routing/retry/recovery,
|
|
97
|
+
subagent depth/background, preset materialization and LSP have native structural
|
|
98
|
+
controls or bounded Advanced JSON for complete applicable field coverage.
|
|
99
|
+
Advanced accepts strict JSON up to 32768 characters, closed known schema,
|
|
100
|
+
duplicate/prototype-key rejection and immediate error feedback. Sparse primary
|
|
101
|
+
members can inherit lower-layer members; the full merged value is validated.
|
|
102
|
+
New providers/accounts/models are not installed or configured here. The existing
|
|
103
|
+
native catalog/picker and independent named JSONC editor retain model authority.
|
|
104
|
+
- Missing keys **inherit**; explicit same-default values are **default pins**.
|
|
105
|
+
Unset removes only this layer, not higher Host pins. Modules' master is only in
|
|
106
|
+
Global; profile/named/session controls cannot bypass the ceiling. Only the
|
|
107
|
+
static known `deepwork` descriptor exists, not a registry/marketplace API.
|
|
108
|
+
|
|
109
|
+
Module summary and the field-source disclosure separate **merged desired**,
|
|
110
|
+
**startup-mounted/captured**, **next-root preview** (using the same admission
|
|
111
|
+
preparation) and **current session admission**. Without an actual session, current
|
|
112
|
+
admission is unknown; host bundle enablement stays unknown when not observable.
|
|
113
|
+
Named/global/profile/default source and capture are distinct from raw CAS values.
|
|
114
|
+
Cold-off desired-on shows pending independent restart, not success at hot mounting.
|
|
115
|
+
Mounted-on desired-off affects new roots, not old parents/future children.
|
|
116
|
+
|
|
117
|
+
Read-only `describeSession.configuration`, successful current-session selection,
|
|
118
|
+
and `describeSettings` desired/startup/next-root layers use a Host-side defensive
|
|
119
|
+
projection, not raw runtime settings or browser-only masking. LSP command,
|
|
120
|
+
arguments and working directory, preset root and recovery continuation prompt
|
|
121
|
+
use fixed `<configured>` markers; environment names are anonymous `variable-N`
|
|
122
|
+
keys and values are `<redacted>`. Environment source/capture metadata is aggregated
|
|
123
|
+
under `lsp.env` (mixed origins remain `mixed`), so even key names are not disclosed.
|
|
124
|
+
The strict result codecs reject raw private values in those read-only layers.
|
|
125
|
+
Actual `getSettings(agent)`, captured admissions and stored configuration are
|
|
126
|
+
unchanged. Raw sparse Global/profile/native-form editor input remains available
|
|
127
|
+
only through its existing C0 authorized editor boundary; it is not a status DTO.
|
|
128
|
+
|
|
129
|
+
The inspector sorts the union of safe desired/startup/next-root/admitted values
|
|
130
|
+
and source/capture paths, including fields present only in a named overlay. A
|
|
131
|
+
missing field is **Absent**, not an invented built-in value; unavailable layers
|
|
132
|
+
are **Unknown**. Startup sources come from the captured deployment when available.
|
|
133
|
+
An actual session shows its ID, epoch and scope; a known session without its
|
|
134
|
+
configuration projection is distinct from having no session. Apply and Baseline
|
|
135
|
+
return the already-committed in-memory admission immediately, without a post-commit
|
|
136
|
+
disk read or another validation that could reverse the successful transaction.
|
|
137
|
+
Global refresh does not silently rebind or refresh a session admission. Dirty
|
|
138
|
+
drafts/conflicts visibly remain separate from these captured revisions.
|
|
139
|
+
|
|
140
|
+
Refresh preserves dirty edits and their original revision. A stale revision is a
|
|
141
|
+
visible conflict; explicit **Discard draft and reload** alone rebases. Invalid
|
|
142
|
+
numeric/JSON input stays visible and disables save. Entry changes, disconnection,
|
|
143
|
+
connection-generation replacement and disposal fence old writes; no retry/rebase
|
|
144
|
+
loop or common Save-all is used. Errors are localized sanitized allowlisted
|
|
145
|
+
messages, never raw paths/arguments/environment/provider tokens; saving/success
|
|
146
|
+
uses accessible busy/polite live feedback and native keyboard/focus behavior.
|
|
147
|
+
|
|
148
|
+
### Save authority and concurrency
|
|
149
|
+
|
|
150
|
+
The fixed `dsmmConfig` Remote backend exposes `describe`, `describeModules`, `describeSettings` and `save` for exact set/unset edits with an expected global revision. It accepts no file, root or entry arguments and isn't a model-visible tool. All operations require a local writable control operator: the native invocation peer must equal `connection.operator`, the public current `webServer.host` must be exactly `127.0.0.1`, and `settings.writable` must be `true`. Unknown or remote/nonloopback carriers are unavailable; client `isLoopback` isn't authority. Reverse proxies and tunnels aren't automatically proven safe. Save rechecks lifetime/connection authority before commit, so disconnect or disposal cannot authorize a late write. Core owns the existing Typert descriptor contribution once; global configuration service lifetime does not depend on the DW/profile UI service mounting.
|
|
151
|
+
|
|
152
|
+
Reads create no directory, lock or config file. Saves use bounded safe file access, the actual bytes' SHA256 revision (or a distinct absent revision), a cooperative writer lock, final revision recheck and same-directory temporary-file rename. Stale or invalid input fails closed instead of overwriting it. Non-cooperating external editors can still race between the final recheck and rename; this isn't a universal external-editor transaction.
|
|
153
|
+
|
|
154
|
+
Global save changes only `config.json`: no profile patch, Loader reload/patch/dispose, cancellation or automatic profile apply. Native profile saves use only the volatile transport, with native authorization and entry CAS. The two layers have separate revisions and no cross-layer transaction. A save response acknowledges that layer, not that every running consumer has adopted it.
|
|
155
|
+
|
|
156
|
+
**Native signal distinction:** the rc.2 ConfigEditor/Include forced empty-pending reconciliation path emits the compatibility `loader/partial-dispose` signal even when it doesn't update or dispose a fiber. The real regression observes that signal while proving retained refs/fiber/services, zero actual scope/Agent disposals or updates, and completion of the original busy request. The signal alone isn't a lifecycle acknowledgment; no SDK patch, signal filtering or automatic restart hides it. Consumers must use actual lifetime/admission boundaries rather than treating this signal as disposal proof.
|
|
157
|
+
|
|
37
158
|
## Workflow compatibility
|
|
38
159
|
|
|
39
160
|
`workflow.policy` selects `risk-based` or `legacy`. An explicit policy wins; old explicitly supplied `strictGates`, `reviewCap`, or `finalReviewPolicy` selects legacy behavior when policy is omitted. With neither new nor legacy controls, risk-based behavior is the default. Schema parsing preserves this distinction.
|
|
@@ -44,9 +165,25 @@ Risk-based behavior scales discovery, planning, and review to uncertainty and in
|
|
|
44
165
|
|
|
45
166
|
`roleRouting` defaults to an empty map. Each canonical role accepts optional `primary`, ordered `fallbackRoutes`, `strategy` and bounded `rateLimit` fields. Profile-level `runtimePolicy` supplies inherited strategy/retry defaults. Child Agents use their configured startup lock or explicit per-role rate-limit rollover. Ordinary top-level Agents instead preserve the native model tab's exact model/effort and only retry on that same route. Native catalog/form controls edit JSONC paths without changing native global model defaults. The compact header menu has one profile list and one `@use-model` **Use profile model** action; a normal profile switch never selects a model. The action reads the current admitted immutable profile model without reapplying a later saved revision, uses native-default persistence like the Models tab, and preserves newer manual intent through existing race fencing. Successes are accessible live announcements only; visible errors are short sanitized codes/fields, not verbose normal menu descriptions. The deployment-only `roles` enable map remains separate. Unknown keys/malformed routes fail; omitted and explicit empty chains differ. See [model routing](model-routing.md) and [runtime recovery](runtime-recovery.md).
|
|
46
167
|
|
|
47
|
-
|
|
168
|
+
`DEFAULT_DSMM_SETTINGS` supplies the complete business defaults; the public sparse schema doesn't expand them into overrides. The current inventory has 22 roles/categories and 14 configurable skills, with cross-cutting opt-in/default false. Active Agent scopes expose enabled DSMM skills as native metadata/lazy bodies; explicit off wins even on a DW preset. Roles/skills remain outside named runtime profiles. Managed preset-directory materialization remains off by default and is an export facility rather than native discovery. Content/catalog presence doesn't prove the remaining C execution mechanisms.
|
|
169
|
+
|
|
170
|
+
Runtime overlays allow only `defaultActive`, `roleRouting`, `runtimePolicy`, `workflow`, `guards`, `runtimeRecovery`, and both `deepseekV4Pro*`/`deepseekFlash*` Calibration, DefaultReasoningEffort and MaxReasoningPresets fields. `modules`, `roles`, `skills`, `modeName`, `promptOrder`, `section`, `presets`, `subagents`, `lsp`, `sessionPersistence`, native provider/account/install controls, embedded profiles and unknown fields are rejected. A missing named-profile selection leaves the captured deployment baseline unchanged. Auth and native session logs stay in their existing locations; centralized storage doesn't move them or expand `sessionPersistence` authority.
|
|
171
|
+
|
|
172
|
+
`subagents.enableRunInBackground:false` and `backgroundMode:"one-shot"` default to foreground one-shot. Explicit opt-in can use native jobs or continuable children. Omitted `maxDepth` uses the host default (rc.2 1); explicit nonnegative integer limits remain native-enforced. These sparse deployment fields capture at new-root admission and remain frozen for old parents/future children. Missing startup jobs/control/persistence/provider substrate yields `restartRequired: ["subagents"]` and effective background disabled, not fabricated readiness. No new queue/controller is created.
|
|
173
|
+
|
|
174
|
+
## Capture and restart boundaries
|
|
175
|
+
|
|
176
|
+
Startup awaits global/profile read, merge and validation before any consumer mounts. The startup snapshot is frozen. Persistent registration, standing presets, `modeName`, `promptOrder`, preset materialization and LSP retain startup settings; late dependency install/injection doesn't reread desired settings.
|
|
177
|
+
|
|
178
|
+
When a native preset registry already exists, its frozen startup definitions finish registering before retained ordinary Agents are audited/admitted. Optional absent registries retain the existing late-install lifetime path, using that same startup getter. Direct trusted Cordis callers without a Loader entry use the stable `trusted-direct` namespace; fiber allocation never becomes a persisted entry identity.
|
|
48
179
|
|
|
49
|
-
|
|
180
|
+
A new ordinary root awaits the latest valid global/profile desired deployment and combines it with the applied immutable named overlay, never a later draft. Existing roots retain their entire captured snapshot, including blank/idle roots. Future children of an old parent inherit that parent's complete snapshot and epoch rather than today's desired settings. An explicit idle session-profile switch replaces only the allowed runtime overlay on that root's old deployment baseline.
|
|
181
|
+
|
|
182
|
+
New-root capture validates schema/file safety and standing startup capabilities, not every dormant role's model catalog entry. Native root requests retain the model tab's authority; child/alias preflight owns exact candidate selection, fallback and hard effort refusal before requests. Named selection/current-session Apply and retained-Agent startup admission keep their full semantic catalog audits and readiness guards. Capture isn't an automatic model-selection action or a promise that every declared role route is callable.
|
|
183
|
+
|
|
184
|
+
Role enable policy is constrained by the startup substrate and original permissions. A capability absent at startup is restart-required, not made available by saving desired settings. No restart/idle queue exists. Desired off isn't a claim that old admitted work was cancelled.
|
|
185
|
+
|
|
186
|
+
`getSettings(agent)` is the authority for an existing Agent. No-argument `getSettings()` remains the validated runtime named default, not raw desired settings. Invalid external edits refuse new admissions and writes without invalidating old frozen admissions. Cold resume creates a new admission from current valid desired deployment and the correct origin's pinned sidecar/default; it doesn't promise persistence of an exited process's old memory snapshot.
|
|
50
187
|
|
|
51
188
|
Existing `deepseekV4ProCalibration`, `deepseekV4ProDefaultReasoningEffort`, and `deepseekV4ProMaxReasoningPresets` remain compatible for child Agents. Flash has independent corresponding `deepseekFlash*` settings; calibration modes are off/auto/strict. Auto preserves explicit effort, strict chooses supported policy effort, and unsupported capabilities never justify guessed parameters. Ordinary root effort is always native-owned, including when a calibration setting says strict.
|
|
52
189
|
|
|
@@ -58,8 +195,12 @@ The snapshot reports `mode`, `route`, `calibration`, `runtimeRecovery`, and `eff
|
|
|
58
195
|
|
|
59
196
|
Status does not perform capability/network queries, expose credentials or provider errors, or report process-local pending retries. Model calibration is enforced in the actual request waterfall, not by status or prompt text.
|
|
60
197
|
|
|
198
|
+
Status masks configured preset/LSP working-directory paths, all LSP command/argument contents and LSP environment values with fixed markers; runtime LSP settings aren't changed. The trusted backend's `describeDeployment()` retains separate plain startup, desired and admitted snapshots, with the raw native input hash and optional native form CAS revision explicitly distinguished. `deployment.sources` describes desired input; admission `sources` describes effective values after startup pins/role constraints and named overlays. `sourceCaptures.fields` identifies startup versus captured deployment versus named-session origins, and its startup revision pair prevents attributing pinned values to the newer desired revision.
|
|
199
|
+
|
|
200
|
+
A named overlay's complete primary route replaces its lower primary, including removal of omitted effort. Effective provenance removes that entire replaced primary subtree before marking the overlay; nonexistent lower-only members aren't left in `sources` or capture fields.
|
|
201
|
+
|
|
61
202
|
Configured role policy/chain and the actual persisted current route are distinct facts. The normalized settings snapshot defensively copies nested role routes and lists; configuration presence is not a claim of successful provider authentication or a completed fallback.
|
|
62
203
|
|
|
63
204
|
For ordinary roots, effective status reports `startup-lock`, no applied profile primary/fallback chain, and reasoning action `native-owned`. The original child-role configuration remains available under `effectiveSettings`; it is not falsely presented as an automatic main-model override. `profileModel` in a session-profile response is only the declared model for an explicit user action, never proof that the native model has already changed.
|
|
64
205
|
|
|
65
|
-
Status describes the receiving Agent's admitted profile/revision/epoch, resolved strategy/retry policy and actual route state separately from future
|
|
206
|
+
Status describes the receiving Agent's admitted profile/revision/epoch, resolved strategy/retry policy and actual route state separately from desired deployment and future named defaults. Global bytes revision, native entry revision, startup capability and store origin are distinct facts, not one atomic cross-layer acknowledgment. `--dump-config` shows native Loader composition, not the complete global-aware DSMM effective snapshot or proof of runtime-profile application/authenticated UI behavior. D's field-level native presentation has isolated rc.2 Web evidence; final artifact/publication and actual Electron acceptance remain separate.
|
package/docs/skill-sync.md
CHANGED
|
@@ -1,20 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DSMM source-content synchronization
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The source baseline is OCMM `89ca14b`, with DSH fixed to **0.2.0-rc.2**. This is full-content adaptation, not short personas. The maintenance inventory lives in `scripts/source-inventory.mjs`; generated `prompts/source/manifest.json` records actual source → artifact → consumer, source anchors, adaptation rules, canonical role/skill inventories, attribution and exclusions. Runtime uses package-relative assets only; it never requires an OCMM checkout, global SDK path or maintenance compiler.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Inventories and assembly
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- `writing-plans` mirrors risk-scaled planning and blocker-focused plan criticism for complex behavior, not a mandatory plan for every multi-step change.
|
|
9
|
-
- `subagent-driven-development` mirrors the ocmm/deepwork decomposition and delegated implementation discipline, scoped to dsh-available tools.
|
|
10
|
-
- `dispatching-parallel-agents` mirrors the ocmm/deepwork guidance for independent parallel work.
|
|
11
|
-
- `requesting-code-review` mirrors risk- and evidence-driven reviewer selection, without fixed reviewer counts or unconditional final approval.
|
|
12
|
-
- `receiving-code-review` mirrors the ocmm/deepwork review-feedback handling flow.
|
|
13
|
-
- `remove-ai-slops` mirrors the ocmm cleanup workflow: lock behavior first, remove only behavior-preserving slop, then verify.
|
|
14
|
-
- `debugging` is on demand. `scripts/sync-debugging-assets.mjs` copies self-contained DAP and runtime references from `skills/debugging`, adapts OpenCode-only team wording and excludes the fixture/test scripts from production assets. The original source tests remain usable from the repository; shipped `dap.mjs` needs only Node and an already available adapter.
|
|
7
|
+
Primary/all personas also retain the actual source default `buildLocaleGuidance` prefix: infer the user's language, preserve identifiers/quotes, and respect any explicit host locale. This introduces no DSMM locale setting or private host-config lookup.
|
|
15
8
|
|
|
16
|
-
|
|
9
|
+
The 11 base roles come from `src/data/agents.ts`; the 11 categories come from `src/data/categories.ts`. Oracle slots reuse the full reviewer source. Builder/code-search/doc-search/media-reader have no standalone source role Markdown: their actual catalog responsibilities, source workflow and terminal TS policy are consumed, not invented personas. Existing `dsmm-creative` remains the one creative category. All 22 have stable metadata and templates; cross-cutting alone defaults off. File existence is never callable evidence.
|
|
17
10
|
|
|
18
|
-
|
|
11
|
+
`src/prompt-content.ts` is a content-only package loader; it avoids a roles → prompt/model-routing initialization cycle. Role/category bodies and source `terminalPromptSuffixFor` policies are assembled into persona once. Category `<model-calibration>` blocks are removed from persistent persona and selected separately. The active common section preserves the full default workflow; model guidance is additive and subordinate to persona, permissions and output contract. Planner adds its source doctrine; Opus 5/5.5 calibration is orchestrator-only; GPT/Codex gets the shared GPT layer once; Gemini/GLM, exact Kimi Code aliases and SWE-2 retain their applicable full source guidance. The v1 Codex variant is adapted tool compatibility, not a separate Codex host or adapter behavior stack.
|
|
19
12
|
|
|
20
|
-
|
|
13
|
+
The fourteen skills are brainstorming, writing-plans, requesting-code-review, receiving-code-review, subagent-driven-development, dispatching-parallel-agents, remove-ai-slops, debugging, frontend, git-master, ast-grep, coding-agent-sessions, init-deep, and using-git-worktrees. **Actual canonical remove-ai-slops is `skills/remove-ai-slops`**, not a nonexistent v1 copy or generated Codex/DSMM summary. Its ten cleanup categories and green regression protection remain; arbitrary batches, LOC splitting, redundant tests, forced status tokens and unauthorized Git restore are adapted to bounded evidence-led cleanup.
|
|
14
|
+
|
|
15
|
+
## Lazy native resources
|
|
16
|
+
|
|
17
|
+
All fourteen share deployment toggles and one Agent-scoped native metadata provider. No skill body is injected, including brainstorming. Ordinary presets require active Deepwork; DW roles default on, but explicit off wins while retaining persona/access. Metadata discovery does zero body I/O. Native `get` alone reads the cancellable SKILL body; relative references/scripts/assets resolve from its directory resourceBase.
|
|
18
|
+
|
|
19
|
+
The Stage A ancestor snapshot/precedence, incomplete-observation refusal, invocation policy and cancellation/generation/parent fencing remain unchanged. rc.2 broadcasts `skills/change` across registries but owns revision/cache per registry; broadcasts fence in-flight work, never permanently invalidate cached locators. No body/ancestor cache, notification reflection or fallback fulltext injection is added. Generated presets now compose native skill discovery/loading tools without a standing `preset-skills` provider.
|
|
20
|
+
|
|
21
|
+
The published 0.1.9 `./preset-skills` export retains its minimal Config/name/inject/apply compatibility shape; apply itself registers nothing. Its module is not dead: the main entry still calls the actual `registerAgentSkills` there, with unchanged registration/lifecycle. Likewise, `renderAgentCordis` and the shared renderer retain their ignored optional skills argument in its original second position so existing enabledRoles/roleRouting callers do not shift. Native Agent configuration controls visibility. This is a bounded public compatibility ruling, not a future provider/wrapper or remaining removal blocker; no module/function has been moved to another helper.
|
|
22
|
+
|
|
23
|
+
## Reproduce and check (maintainer checkout only)
|
|
24
|
+
|
|
25
|
+
Use existing Node/TypeScript/pnpm. A new checkout first needs explicit fixed-pin frontend materialization; this fetches only approved documentation/CSV/Python/license bytes and executes no third-party code or installer:
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
pnpm run sync:source
|
|
29
|
+
pnpm run sync:frontend # explicit network operation; no HEAD/alternate pin fallback
|
|
30
|
+
pnpm run sync:source # records validated frontend provenance in the manifest
|
|
31
|
+
pnpm run build
|
|
32
|
+
pnpm run generate:roles
|
|
33
|
+
pnpm run check:source
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
During development use direct targeted Node tests and typecheck. `sync:source -- --check` compares source-adapted results without writing; `generate:roles -- --check` checks renderer output without writing. Sync writes changed artifacts only; a second run must report no differences. An anchor mismatch fails before artifacts are written; do not silently accept changed source assembly. Update the baseline, mapping/rules and useful regressions together after reviewing a source change. Do not hand-edit generated prompt/source assets, skills or presets.
|
|
37
|
+
|
|
38
|
+
Source Markdown is kept in full, with precise anchored changes and an explicit DSH resource/authority boundary. Native read/glob/grep, web_search/web_fetch, write/edit, bash/pwsh and skill invocation are the tools mapped here. Question, LSP, image, browser, tracking, background and continuation behavior is conditional on the actual catalog/provider. No Task, todowrite, compress or Context7 MCP interface is invented. Template fields describe an assignment, not callable parameters. Native delegation groups preserve root/stage-owner Builder versus bounded child Builder, strict-leaf research, read-only utility restrictions and local-coordinator specialists; Stage C must enforce those policies on real execution paths.
|
|
39
|
+
|
|
40
|
+
Authored frontend router/tooling text overrides install-by-default/implicit latest behavior: inspect existing capabilities, require separate setup authorization, and report unverified evidence without hiding incomplete declared resources. Verbatim UI/UX README paths/cwd examples are superseded by the authored DSH entry: resolve the absolute native resourceBase script, require the already-active target project context, and supply an explicitly approved project-owned output-dir for persistence. The installed skill tree is never an output target; no tool cwd field or shell cd is invented. Public renderer inputs retain the old object shape with optional source metadata; only the canonical catalog requires those trusted source fields.
|
|
41
|
+
|
|
42
|
+
## Recursive resources, notices and exclusions
|
|
43
|
+
|
|
44
|
+
Every actual canonical skill tree is copied recursively, including meaningful fixtures/tests, scripts, licenses and notices. Python caches/pyc, node_modules and VCS state are excluded. Source `.gitignore`/`.npmignore` are not runtime resources and would hide meaningful packaged resources; the DSMM distribution uses its own package file inventory instead. Frontend's legacy lighthouse helper remains a reference but is not an executable QA entry point, as the canonical source itself requires. Installation, login, Git/destructive operations are not authorized by reference commands.
|
|
45
|
+
|
|
46
|
+
OCMM-derived modifications remain under the full package `LICENSE` (LicenseRef-AAAPL, not MIT-only). V1 fork comments preserve obra/superpowers lineage. Ast-grep and session tools retain their original LICENSE/SOURCE/NOTICE files; frontend ATTRIBUTION and Apache license are retained. Third-party resource attribution/pins are not replaced with project licensing.
|
|
47
|
+
|
|
48
|
+
`publish` is excluded because OCMM release identities/authority are not DSMM operations; `customize-opencode` configures another host. OpenCode-specific debugger team JSON is replaced with independent evidence responsibilities and permitted actual DSH tools, not declared N/A. Session-format references to OpenCode/Codex remain real product data, not a global name replacement.
|
|
49
|
+
|
|
50
|
+
### Fixed-pin frontend completeness and distribution gate
|
|
51
|
+
|
|
52
|
+
`scripts/frontend-recipe.mjs` maps every actual brand-table path (except project-original aside), all twelve taste resources plus the Stitch example, the UI/UX README/scripts/data and actual Python dependencies. Pins are Open Design `6afe7eae156bfa29251a51fd0636649c257f7444`, taste-skill `06d6028b5c623016c59ce8536f578e5a1127b499`, and UI/UX Pro Max `f32d6a61cdf0bfd57404c45854583fd19ff95088`. It never uses OMO's different pin or modifies a root/submodule checkout. Initial synchronization validates each exact Git-tree path and blob; missing paths fail explicitly. Verbatim core.py also needs app-interface, google-fonts and threejs/angular/laravel stacks: these same-pin dependencies ship alongside the source-declared web-interface mapping. Imports/data references are inspected statically, not executed.
|
|
53
|
+
|
|
54
|
+
Body/data/Python resources and `.frontend-materialized.json` are gitignored. Actual fixed-pin Apache/MIT license files, copyright/attribution and the recipe are committed. Frontend `.npmignore` overrides its `.gitignore` so every materialized runtime resource and its provenance inventory packs. Project-original aside/design/perfection files remain tracked and cannot be overwritten by a vendor path. Source hashes are content-integrity checks against Git blobs, not a runtime receipt framework or a substitute for per-path dependency/packing checks.
|
|
55
|
+
|
|
56
|
+
`node scripts/materialize-frontend.mjs` defaults to read-only/offline check. `pnpm run build`, `check:source` and `check:release` refuse incomplete/drifted materialization without downloading. Explicit `sync:frontend` reuses complete validated content with zero requests/writes; no arbitrary destination CLI is accepted. Runtime distribution needs only package-relative resources, never an upstream checkout or network materialization.
|
|
57
|
+
|
|
58
|
+
**E/CI handoff:** after installing the already-authorized build toolchain, run `sync:source`, explicit `sync:frontend`, `sync:source`, then build/generate/check/pack. A Git checkout alone does not contain the ignored bodies. Materialize before a source Docker build context is created; frozen tarballs must already carry the entire library. Do not insert network fetching into default build or use a compiled/ignored local tree as proof that CI packed it. Full packed inventory and missing-resource refusal remain separate evidence from native C/D capability/permission/lifecycle completion.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
|
|
2
|
+
import type { ConfigForms } from "@deepseek-ai/dsh-client-ui-settings/client";
|
|
3
|
+
import { DeploymentController } from "./deployment-controller.js";
|
|
4
|
+
import type { NativePageForm } from "./deployment-controller.js";
|
|
5
|
+
import type { DsmmConfigRemote } from "../profile-remote.js";
|
|
6
|
+
type Locale = PropsLocale<"plugins.dsmm">;
|
|
7
|
+
export interface DeploymentPageProps extends Locale {
|
|
8
|
+
view: "summary" | "page";
|
|
9
|
+
form?: NativePageForm;
|
|
10
|
+
core: DeploymentController;
|
|
11
|
+
remote: DsmmConfigRemote;
|
|
12
|
+
forms?: ConfigForms;
|
|
13
|
+
rowNamespace?: string;
|
|
14
|
+
profilePage?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function DeploymentPage(props: DeploymentPageProps): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=DeploymentPage.d.ts.map
|