@dsmm/dsmm 0.1.8 → 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 -22
- 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 +67 -17
- package/docs/design.md +41 -0
- package/docs/lsp.md +12 -2
- package/docs/migration-from-ocmm.md +8 -0
- package/docs/profiles.md +42 -16
- package/docs/releasing.md +100 -28
- 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/lib/skills.d.ts
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
import type { DshAgent, DshSkillRegistration, DshSkillRegistry } from "./dsh-types.js";
|
|
3
|
+
import type { DsmmSettings, DsmmSettingsGetter } from "./settings.js";
|
|
4
|
+
import type { DeepworkModeController } from "./state.js";
|
|
5
|
+
export declare const DSMM_SKILL_NAMES: readonly ["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", "using-git-worktrees"];
|
|
6
|
+
export declare const MVP_SKILL_NAMES: readonly ["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", "using-git-worktrees"];
|
|
5
7
|
export type DsmmSkillName = (typeof DSMM_SKILL_NAMES)[number];
|
|
6
|
-
export
|
|
7
|
-
export type DsmmAvailableSkillName = DsmmSkillName | (typeof DSMM_ON_DEMAND_SKILL_NAMES)[number];
|
|
8
|
+
export type DsmmAvailableSkillName = DsmmSkillName;
|
|
8
9
|
export type MvpSkillName = DsmmSkillName;
|
|
10
|
+
/** Packaged metadata only; discovery never reads SKILL.md. */
|
|
11
|
+
export declare const DSMM_SKILL_DESCRIPTIONS: Record<DsmmAvailableSkillName, string>;
|
|
12
|
+
export declare const BUNDLED_SKILL_RANK = 600;
|
|
13
|
+
export declare function bundledSkillMetadata(name: DsmmAvailableSkillName): Omit<DshSkillRegistration, "content">;
|
|
9
14
|
export declare function parseSkillMarkdown(markdown: string): {
|
|
10
15
|
name: string;
|
|
11
16
|
description: string;
|
|
12
17
|
content: string;
|
|
13
18
|
};
|
|
14
19
|
export declare function enabledSkillNames(settings: DsmmSettings): readonly DsmmSkillName[];
|
|
15
|
-
export declare function
|
|
16
|
-
export
|
|
17
|
-
|
|
20
|
+
export declare function readBundledSkill(name: DsmmAvailableSkillName, signal: AbortSignal): Promise<DshSkillRegistration>;
|
|
21
|
+
export interface BundledSkillProviderOptions {
|
|
22
|
+
agent: DshAgent;
|
|
23
|
+
controller: DeepworkModeController;
|
|
24
|
+
getSettings: DsmmSettingsGetter;
|
|
25
|
+
/** Body I/O seam for deterministic cancellation/race contract tests. */
|
|
26
|
+
load?: typeof readBundledSkill;
|
|
27
|
+
}
|
|
28
|
+
/** Exact Agent layer, native revision cache, metadata-only ancestor avoidance. */
|
|
29
|
+
export declare function registerBundledSkills(ctx: Context, skills: DshSkillRegistry, options: BundledSkillProviderOptions): {
|
|
30
|
+
dispose(): void;
|
|
31
|
+
invalidate(): void;
|
|
32
|
+
};
|
|
18
33
|
//# sourceMappingURL=skills.d.ts.map
|
package/lib/skills.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { scopeOf, scopeParentOf } from "./native-scope.js";
|
|
4
5
|
export const DSMM_SKILL_NAMES = [
|
|
5
6
|
"brainstorming",
|
|
6
7
|
"writing-plans",
|
|
@@ -8,18 +9,51 @@ export const DSMM_SKILL_NAMES = [
|
|
|
8
9
|
"receiving-code-review",
|
|
9
10
|
"subagent-driven-development",
|
|
10
11
|
"dispatching-parallel-agents",
|
|
11
|
-
"remove-ai-slops"
|
|
12
|
+
"remove-ai-slops",
|
|
13
|
+
"debugging",
|
|
14
|
+
"frontend",
|
|
15
|
+
"git-master",
|
|
16
|
+
"ast-grep",
|
|
17
|
+
"coding-agent-sessions",
|
|
18
|
+
"init-deep",
|
|
19
|
+
"using-git-worktrees"
|
|
12
20
|
];
|
|
13
21
|
export const MVP_SKILL_NAMES = DSMM_SKILL_NAMES;
|
|
14
|
-
export const DSMM_ON_DEMAND_SKILL_NAMES = ["debugging"];
|
|
15
22
|
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
23
|
+
/** Packaged metadata only; discovery never reads SKILL.md. */
|
|
24
|
+
// BEGIN SOURCE SKILL METADATA
|
|
25
|
+
export const DSMM_SKILL_DESCRIPTIONS = {
|
|
26
|
+
"brainstorming": "Use before creative or materially ambiguous work to clarify outcomes, constraints, risks, and an appropriate implementation direction.",
|
|
27
|
+
"writing-plans": "Use when you have a spec or requirements for a multi-step task, before touching code",
|
|
28
|
+
"requesting-code-review": "Use when an implemented change benefits from independent review before delivery or merge",
|
|
29
|
+
"receiving-code-review": "Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation",
|
|
30
|
+
"subagent-driven-development": "Use when executing implementation plans with independent tasks in the current session",
|
|
31
|
+
"dispatching-parallel-agents": "Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies",
|
|
32
|
+
"remove-ai-slops": "Remove AI-generated code slop from branch changes or an explicit file list. Locks behavior with regression tests FIRST, then runs categorized cleanup with bounded permitted work, then verifies with quality gates. Covers 10 slop categories. MUST USE when the user asks to \"remove slop\", \"clean AI code\", \"deslop\", \"clean up AI-generated code\", \"remove AI slop\", or wants to clean up AI-generated patterns.",
|
|
33
|
+
"debugging": "MUST USE for any real runtime debugging across ANY language or binary — crashes, silent failures, wrong responses, stuck processes, memory leaks, async misbehavior, unexplained timing, flaky tests, intermittent failures, passes in isolation, different test fails, order-dependent behavior, CI-only failures, reverse engineering. Runs a hypothesis-driven loop: form ≥3 hypotheses, investigate in parallel, after 2 failed evidence rounds allow one hard-reasoning escalation only when the task is genuinely difficult, confirm root cause, capture a failing reproduction before the fix and verify the same case after, fix minimally, QA by actually USING the system, scrub artifacts. The actual HOW lives in `references/` — READ THEM. Triggers: 'debug this', 'why is X not working', 'hanging', 'attach a debugger', 'reverse engineer', 'pwndbg', 'gdb', 'lldb', 'node inspect', 'tsx debug', 'pdb', 'dlv', 'delve', 'rust-gdb', 'set a breakpoint', 'context window exploded', 'why is the response empty', 'attach the debugger', 'debug it', 'why is this happening', 'trace this bug', 'reproduce and fix', 'silent failure', 'HTTP 200 but empty', 'why did it stop', 'inspect the binary', 'reverse engineering', 'playwright', 'flaky test', 'intermittent failure', 'passes in isolation', 'different test fails', 'order-dependent', 'CI-only failure'.",
|
|
34
|
+
"frontend": "MUST USE for ANY frontend, web UI, UX, or visual work — building, styling, or redesigning pages/components, React project setup, performance audits, design QA. Routes three rulesets: design (anti-slop taste router over 12 taste skills + 70 brand DESIGN.md refs — Apple, Stripe, Linear, Notion, Vercel, Claude, Nike, Aside — plus composable interaction mechanics and the React dev tooling gate: react-grab, react-scan, react-doctor), perfection (Lighthouse 100 in every category via real Playwright Chromium audits, NEVER the lighthouse CLI, never by weakening UX), ui-ux-db (searchable 50+ styles, 97 palettes, 57 font pairings, 99 UX guidelines). Triggers: frontend, UI, UX, design, redesign, styling, layout, animation, motion, interaction, interaction mechanics, state, reduced-motion, taste, premium, luxury, minimal, brutalist, Awwwards, anti-slop, polish, DESIGN.md, mockup, react setup, react-scan, react-doctor, lighthouse, performance, Core Web Vitals, LCP, CLS, INP, SEO, accessibility, a11y, WCAG, audit my site, make this faster, color palette, font pairing, looks generic, make it pretty, like X brand, clone site, clone from url.",
|
|
35
|
+
"git-master": "MUST USE whenever a task needs a commit or git-history investigation. Covers atomic commits, staging, commit-message style, rebase, squash, fixup/autosquash, blame, bisect, reflog, git log -S/-G, and questions like who wrote this or when was this added. Do not use for ordinary code edits unless the user asks for git work.",
|
|
36
|
+
"ast-grep": "Use ast-grep (sg) only when the task explicitly requires exact syntax-tree matching or a deterministic codemod that simpler rg/LSP lookup cannot express reliably. Examples: rewrite a specific call/import shape, strip `as any`, find empty catch blocks, or scan/apply YAML rules. Do not trigger for ordinary repository discovery, symbol navigation, text search, or one-off lookups that rg/LSP can answer.",
|
|
37
|
+
"coding-agent-sessions": "MUST USE when asked to find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across Codex, Claude Code/Desktop, OpenCode, Senpi/pi, oh-my-pi (omp), gajae-code (gjc), OpenClaw, Factory Droid, Amp, Gemini/Kimi/Qwen CLIs, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Aside browser-agent sessions, or unknown local agent logs. Covers transcripts, session IDs, rollout JSONL, state SQLite, Claude projects/pre-compact histories, OpenCode messages/parts, child/subagent linkage, cwd/model/time/token filters, archives, and cost clues. Expands fuzzy recall into parallel query lanes and first probes known stores so absent platforms are skipped cheaply. Triggers: coding agent sessions, Codex/Claude/OpenCode/Senpi/pi/oh-my-pi/omp/gajae-code/gjc/OpenClaw/Droid/Amp/Kodu/Cursor/Aider/Aside sessions, transcript search, session history, session ID, read transcript, token usage, subagent sessions, what did I do yesterday, did we already do this.",
|
|
38
|
+
"init-deep": "(builtin) Initialize hierarchical AGENTS.md knowledge base",
|
|
39
|
+
"using-git-worktrees": "Use ONLY when the user explicitly asks to use a git worktree for isolated feature work. Do not auto-trigger. Creates a linked worktree, sets up the project, and verifies a clean baseline before development begins."
|
|
40
|
+
};
|
|
41
|
+
// END SOURCE SKILL METADATA
|
|
42
|
+
export const BUNDLED_SKILL_RANK = 600;
|
|
43
|
+
export function bundledSkillMetadata(name) {
|
|
44
|
+
const directory = join(packageRoot, "skills", name);
|
|
45
|
+
return { name, description: DSMM_SKILL_DESCRIPTIONS[name], source: "bundled", provider: "dsmm",
|
|
46
|
+
resourceBase: { kind: "directory", path: directory }, invocation: { modelInvocable: true, userInvocable: true } };
|
|
47
|
+
}
|
|
16
48
|
export function parseSkillMarkdown(markdown) {
|
|
17
49
|
const match = /^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/u.exec(markdown);
|
|
18
50
|
if (match === null)
|
|
19
51
|
throw new Error("skill markdown must start with YAML frontmatter");
|
|
20
52
|
const frontmatter = match[1];
|
|
21
|
-
const
|
|
22
|
-
|
|
53
|
+
const decode = (value) => value === undefined ? undefined
|
|
54
|
+
: value.startsWith('"') ? JSON.parse(value) : value.replace(/^'|'$/gu, "").replaceAll("''", "'");
|
|
55
|
+
const name = decode(/^name:\s*(.+)$/mu.exec(frontmatter)?.[1]?.trim());
|
|
56
|
+
const description = decode(/^description:\s*(.+)$/mu.exec(frontmatter)?.[1]?.trim());
|
|
23
57
|
if (name === undefined || description === undefined)
|
|
24
58
|
throw new Error("skill frontmatter needs name and description");
|
|
25
59
|
return { name, description, content: match[2].replace(/^\r?\n/u, "") };
|
|
@@ -27,38 +61,83 @@ export function parseSkillMarkdown(markdown) {
|
|
|
27
61
|
export function enabledSkillNames(settings) {
|
|
28
62
|
return DSMM_SKILL_NAMES.filter((name) => settings.skills[name]);
|
|
29
63
|
}
|
|
30
|
-
export function
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
description: parsed.description,
|
|
36
|
-
content: parsed.content,
|
|
37
|
-
source: "bundled",
|
|
38
|
-
provider: "dsmm",
|
|
39
|
-
resourceBase: { kind: "directory", path: directory },
|
|
40
|
-
invocation: { modelInvocable: true, userInvocable: true }
|
|
41
|
-
};
|
|
64
|
+
export async function readBundledSkill(name, signal) {
|
|
65
|
+
const parsed = parseSkillMarkdown(await readFile(join(packageRoot, "skills", name, "SKILL.md"), { encoding: "utf8", signal }));
|
|
66
|
+
if (parsed.name !== name)
|
|
67
|
+
throw new Error(`dsmm bundled skill name mismatch: ${name}`);
|
|
68
|
+
return { ...bundledSkillMetadata(name), content: parsed.content };
|
|
42
69
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
70
|
+
/** Exact Agent layer, native revision cache, metadata-only ancestor avoidance. */
|
|
71
|
+
export function registerBundledSkills(ctx, skills, options) {
|
|
72
|
+
const agentScope = scopeOf(ctx);
|
|
73
|
+
if (agentScope !== options.agent)
|
|
74
|
+
throw new Error("dsmm refuses skills outside the exact Agent scope");
|
|
75
|
+
let generation = 0;
|
|
76
|
+
let invalidate = () => { };
|
|
77
|
+
// The broadcast spans registries; fence in-flight work, not cached locators.
|
|
78
|
+
const stopChange = ctx.on("skills/change", () => { generation += 1; }, { global: true });
|
|
79
|
+
const names = () => {
|
|
80
|
+
const settings = options.getSettings(options.agent);
|
|
81
|
+
return settings.modules.deepwork.enabled && options.controller.active(options.agent, settings.defaultActive) ? enabledSkillNames(settings) : [];
|
|
82
|
+
};
|
|
83
|
+
let disposeProvider;
|
|
84
|
+
try {
|
|
85
|
+
disposeProvider = skills.registerProvider((control) => {
|
|
86
|
+
invalidate = control.invalidate;
|
|
87
|
+
const signalFor = (lookup) => lookup.signal === undefined ? control.signal : AbortSignal.any([lookup.signal, control.signal]);
|
|
88
|
+
const ancestor = (lookup, signal) => {
|
|
89
|
+
signal.throwIfAborted();
|
|
90
|
+
const parent = scopeParentOf(agentScope);
|
|
91
|
+
return skills.snapshot({ ...(parent === undefined ? {} : { scope: parent }), cwd: lookup.cwd, signal });
|
|
92
|
+
};
|
|
93
|
+
const occupied = (snapshot, name) => snapshot.skills.some((skill) => skill.name === name && skill.provider !== "dsmm");
|
|
94
|
+
return {
|
|
95
|
+
name: "dsmm",
|
|
96
|
+
async list(lookup) {
|
|
97
|
+
const signal = signalFor(lookup), current = generation, parent = scopeParentOf(agentScope);
|
|
98
|
+
signal.throwIfAborted();
|
|
99
|
+
const enabled = names();
|
|
100
|
+
if (enabled.length === 0)
|
|
101
|
+
return [];
|
|
102
|
+
const snapshot = await ancestor(lookup, signal);
|
|
103
|
+
signal.throwIfAborted();
|
|
104
|
+
if (!snapshot.complete || generation !== current || scopeParentOf(agentScope) !== parent)
|
|
105
|
+
return { candidates: [], complete: false };
|
|
106
|
+
return enabled.filter((name) => !occupied(snapshot, name)).map((name) => ({
|
|
107
|
+
...bundledSkillMetadata(name), rank: BUNDLED_SKILL_RANK, locator: { name, parent }
|
|
108
|
+
}));
|
|
109
|
+
},
|
|
110
|
+
async get(candidate, lookup) {
|
|
111
|
+
const signal = signalFor(lookup), current = generation;
|
|
112
|
+
signal.throwIfAborted();
|
|
113
|
+
const name = names().find((name) => name === candidate.name);
|
|
114
|
+
const locator = candidate.locator;
|
|
115
|
+
if (name === undefined || typeof locator !== "object" || locator === null
|
|
116
|
+
|| !("parent" in locator) || locator.parent !== scopeParentOf(agentScope))
|
|
117
|
+
return undefined;
|
|
118
|
+
const snapshot = await ancestor(lookup, signal);
|
|
119
|
+
signal.throwIfAborted();
|
|
120
|
+
if (!snapshot.complete || occupied(snapshot, name) || generation !== current || locator.parent !== scopeParentOf(agentScope))
|
|
121
|
+
return undefined;
|
|
122
|
+
const body = await (options.load ?? readBundledSkill)(name, signal);
|
|
123
|
+
signal.throwIfAborted();
|
|
124
|
+
if (generation !== current || !names().includes(name) || locator.parent !== scopeParentOf(agentScope))
|
|
125
|
+
return undefined;
|
|
126
|
+
const after = await ancestor(lookup, signal);
|
|
127
|
+
signal.throwIfAborted();
|
|
128
|
+
return after.complete && !occupied(after, name) && generation === current && locator.parent === scopeParentOf(agentScope) ? body : undefined;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
});
|
|
49
132
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
133
|
+
catch (error) {
|
|
134
|
+
stopChange();
|
|
135
|
+
throw error;
|
|
53
136
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const body = loadBundledSkill(name).content.replace(/\r?\n$/u, "");
|
|
60
|
-
return `<dsmm-skill name="${name}">\n${body}\n</dsmm-skill>`;
|
|
61
|
-
})
|
|
62
|
-
.join("\n\n");
|
|
137
|
+
const dispose = () => {
|
|
138
|
+
stopChange();
|
|
139
|
+
disposeProvider();
|
|
140
|
+
};
|
|
141
|
+
return { dispose, invalidate };
|
|
63
142
|
}
|
|
64
143
|
//# sourceMappingURL=skills.js.map
|
package/lib/state.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import type { DshAgent, DshContext, DshSessionEvent } from "./dsh-types.js";
|
|
2
2
|
import type { SessionDeepworkState } from "./profile-types.js";
|
|
3
3
|
export declare const DEEPWORK_MODE_EVENT = "deepwork/mode";
|
|
4
|
-
export type DeepworkSelectionOutcome = "committed" | "
|
|
4
|
+
export type DeepworkSelectionOutcome = "committed" | "unchanged";
|
|
5
5
|
export declare function isDeepworkActive(events?: readonly DshSessionEvent[], defaultActive?: boolean, selectedPreset?: string): boolean;
|
|
6
6
|
export declare function hasOpenTurn(events?: readonly DshSessionEvent[]): boolean;
|
|
7
7
|
export declare class DeepworkModeController {
|
|
8
8
|
private readonly ctx;
|
|
9
|
-
private readonly
|
|
10
|
-
|
|
9
|
+
private readonly moduleEnabled;
|
|
10
|
+
private readonly listeners;
|
|
11
|
+
constructor(ctx: DshContext, moduleEnabled?: (agent: DshAgent) => boolean);
|
|
12
|
+
watch(listener: (agent: DshAgent) => void): () => void;
|
|
13
|
+
/** Profile commits have no native session event; notify their Agent mount. */
|
|
14
|
+
changed(agent: DshAgent): void;
|
|
11
15
|
active(agent: DshAgent | undefined, defaultActive: boolean): boolean;
|
|
12
16
|
describe(agent: DshAgent, defaultActive: boolean): SessionDeepworkState;
|
|
17
|
+
private intent;
|
|
13
18
|
select(agent: DshAgent, active: boolean, defaultActive?: boolean): Promise<DeepworkSelectionOutcome>;
|
|
14
|
-
/**
|
|
15
|
-
selectIdle(agent: DshAgent, active: boolean,
|
|
16
|
-
private commit;
|
|
19
|
+
/** Called inside the existing native maintenance / admission CAS boundary. */
|
|
20
|
+
selectIdle(agent: DshAgent, active: boolean, _defaultActive: boolean): Promise<void>;
|
|
17
21
|
}
|
|
18
22
|
//# sourceMappingURL=state.d.ts.map
|
package/lib/state.js
CHANGED
|
@@ -4,15 +4,11 @@ import { createHash } from "node:crypto";
|
|
|
4
4
|
import { isDsmmRoleId } from "./roles.js";
|
|
5
5
|
export const DEEPWORK_MODE_EVENT = "deepwork/mode";
|
|
6
6
|
function activeFromEvent(event) {
|
|
7
|
-
if (event.type !== DEEPWORK_MODE_EVENT)
|
|
8
|
-
return undefined;
|
|
9
7
|
const data = event.data;
|
|
10
|
-
return typeof data === "object" && data !== null && "active" in data && typeof data.active === "boolean"
|
|
11
|
-
? data.active
|
|
12
|
-
: undefined;
|
|
8
|
+
return event.type === DEEPWORK_MODE_EVENT && typeof data === "object" && data !== null && "active" in data && typeof data.active === "boolean" ? data.active : undefined;
|
|
13
9
|
}
|
|
14
10
|
export function isDeepworkActive(events = [], defaultActive = false, selectedPreset) {
|
|
15
|
-
let active = selectedPreset
|
|
11
|
+
let active = isDsmmRoleId(selectedPreset) || (selectedPreset !== "minimal" && defaultActive);
|
|
16
12
|
for (const event of events)
|
|
17
13
|
active = activeFromEvent(event) ?? active;
|
|
18
14
|
return active;
|
|
@@ -29,65 +25,68 @@ export function hasOpenTurn(events = []) {
|
|
|
29
25
|
}
|
|
30
26
|
export class DeepworkModeController {
|
|
31
27
|
ctx;
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
moduleEnabled;
|
|
29
|
+
listeners = new Set();
|
|
30
|
+
constructor(ctx, moduleEnabled = () => true) {
|
|
34
31
|
this.ctx = ctx;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
await this.commit(frame.agent.session, intent.active);
|
|
42
|
-
}
|
|
43
|
-
catch (cause) {
|
|
44
|
-
ctx.logger?.warn("dsmm failed to append deepwork mode event; pending intent will retry", cause);
|
|
45
|
-
}
|
|
46
|
-
return decision;
|
|
47
|
-
});
|
|
32
|
+
this.moduleEnabled = moduleEnabled;
|
|
33
|
+
}
|
|
34
|
+
watch(listener) {
|
|
35
|
+
this.listeners.add(listener);
|
|
36
|
+
return () => { this.listeners.delete(listener); };
|
|
48
37
|
}
|
|
38
|
+
/** Profile commits have no native session event; notify their Agent mount. */
|
|
39
|
+
changed(agent) { for (const listener of this.listeners)
|
|
40
|
+
listener(agent); }
|
|
49
41
|
active(agent, defaultActive) {
|
|
50
|
-
|
|
51
|
-
return false;
|
|
52
|
-
return this.pending.get(agent.session)?.active ?? isDeepworkActive(sessionEvents(agent.session), defaultActive, resolveSelectedAgentPreset(agent.session));
|
|
42
|
+
return agent !== undefined && this.moduleEnabled(agent) && isDeepworkActive(sessionEvents(agent.session), defaultActive, resolveSelectedAgentPreset(agent.session));
|
|
53
43
|
}
|
|
54
44
|
describe(agent, defaultActive) {
|
|
55
|
-
const events = sessionEvents(agent.session);
|
|
56
|
-
const preset = resolveSelectedAgentPreset(agent.session);
|
|
45
|
+
const events = sessionEvents(agent.session), preset = resolveSelectedAgentPreset(agent.session);
|
|
57
46
|
const intents = events.map(activeFromEvent).filter((value) => value !== undefined);
|
|
58
|
-
|
|
59
|
-
const locked = isDsmmRoleId(preset);
|
|
60
|
-
return { active: locked || this.active(agent, defaultActive), explicit: intents.length > 0 || pending !== undefined, locked,
|
|
47
|
+
return { active: this.active(agent, defaultActive), explicit: intents.length > 0, locked: false,
|
|
61
48
|
revision: createHash("sha256").update(JSON.stringify({ preset, defaultActive, intents,
|
|
62
|
-
presetChanges: events.filter((event) => event.type === "agent-preset/selected").length
|
|
49
|
+
presetChanges: events.filter((event) => event.type === "agent-preset/selected").length })).digest("hex") };
|
|
50
|
+
}
|
|
51
|
+
intent(agent) {
|
|
52
|
+
const events = sessionEvents(agent.session);
|
|
53
|
+
for (let index = events.length - 1; index >= 0; index--) {
|
|
54
|
+
const value = activeFromEvent(events[index]);
|
|
55
|
+
if (value !== undefined)
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return undefined;
|
|
63
59
|
}
|
|
64
60
|
async select(agent, active, defaultActive = false) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if (
|
|
61
|
+
if (active && !this.moduleEnabled(agent))
|
|
62
|
+
throw new Error("Deepwork module is not admitted in this session; a mode intent cannot enable it");
|
|
63
|
+
if (agent.status === "running" || hasOpenTurn(sessionEvents(agent.session)))
|
|
64
|
+
throw new Error("Deepwork mode requires an idle session; no change was queued");
|
|
65
|
+
const before = this.describe(agent, defaultActive);
|
|
66
|
+
if (this.intent(agent) === active)
|
|
68
67
|
return "unchanged";
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
const write = async (signal) => {
|
|
69
|
+
signal?.throwIfAborted();
|
|
70
|
+
if (this.describe(agent, defaultActive).revision !== before.revision)
|
|
71
|
+
throw new Error("Deepwork mode changed; refresh before retrying");
|
|
72
|
+
await this.selectIdle(agent, active, defaultActive);
|
|
73
|
+
};
|
|
74
|
+
if (agent.runMaintenance === undefined)
|
|
75
|
+
throw new Error("Deepwork mode requires native idle maintenance");
|
|
76
|
+
await agent.runMaintenance(write);
|
|
74
77
|
return "committed";
|
|
75
78
|
}
|
|
76
|
-
/**
|
|
77
|
-
async selectIdle(agent, active,
|
|
79
|
+
/** Called inside the existing native maintenance / admission CAS boundary. */
|
|
80
|
+
async selectIdle(agent, active, _defaultActive) {
|
|
81
|
+
if (active && !this.moduleEnabled(agent))
|
|
82
|
+
throw new Error("Deepwork module is not admitted in this session; a mode intent cannot enable it");
|
|
78
83
|
if (hasOpenTurn(sessionEvents(agent.session)))
|
|
79
84
|
throw new Error("Deepwork mode requires an idle session");
|
|
80
|
-
|
|
81
|
-
if (mode.explicit && mode.active === active && !this.pending.has(agent.session))
|
|
85
|
+
if (this.intent(agent) === active)
|
|
82
86
|
return;
|
|
83
|
-
await this.commit(agent.session, active);
|
|
84
|
-
}
|
|
85
|
-
async commit(session, active) {
|
|
86
|
-
const pending = this.pending.get(session);
|
|
87
87
|
assertDsmmMetadataPersistence(this.ctx);
|
|
88
|
-
await session.append(DEEPWORK_MODE_EVENT, { active });
|
|
89
|
-
|
|
90
|
-
this.pending.delete(session);
|
|
88
|
+
await agent.session.append(DEEPWORK_MODE_EVENT, { active });
|
|
89
|
+
// Native session/event owns mode invalidation, including external appends.
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
//# sourceMappingURL=state.js.map
|
package/lib/status.d.ts
CHANGED
|
@@ -4,10 +4,29 @@ import type { DsmmRoleId } from "./roles.js";
|
|
|
4
4
|
import type { DeepseekCalibration, DsmmModelRoute, DsmmProfileAdmission, DsmmSettings } from "./settings.js";
|
|
5
5
|
import type { DsmmRateLimitPolicy, DsmmRoutingStrategy } from "./routing-policy.js";
|
|
6
6
|
import type { DsmmRoleRuntimeState } from "./profile-types.js";
|
|
7
|
+
import type { DsmmLspRuntimeState } from "./lsp.js";
|
|
8
|
+
import type { DsmmModuleState } from "./modules.js";
|
|
7
9
|
export declare const DSMM_STATUS_VERSION: 1;
|
|
8
10
|
export interface DsmmStatusSnapshot {
|
|
9
11
|
version: typeof DSMM_STATUS_VERSION;
|
|
12
|
+
modules?: DsmmModuleState[];
|
|
10
13
|
admission?: Pick<DsmmProfileAdmission, "profile" | "epoch" | "scope">;
|
|
14
|
+
profileStore?: DsmmProfileAdmission["store"];
|
|
15
|
+
deployment?: {
|
|
16
|
+
globalRevision: string;
|
|
17
|
+
nativeRevision: string;
|
|
18
|
+
entryId: string;
|
|
19
|
+
hostProfileKey: string;
|
|
20
|
+
restartRequired: readonly string[];
|
|
21
|
+
sources: Record<string, string>;
|
|
22
|
+
sourceCaptures?: {
|
|
23
|
+
fields: Record<string, string>;
|
|
24
|
+
startup?: {
|
|
25
|
+
globalRevision: string;
|
|
26
|
+
nativeRevision: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
11
30
|
mode: {
|
|
12
31
|
name: string;
|
|
13
32
|
active: boolean;
|
|
@@ -51,6 +70,7 @@ export interface DsmmStatusSnapshot {
|
|
|
51
70
|
};
|
|
52
71
|
};
|
|
53
72
|
effectiveSettings: DsmmSettings;
|
|
73
|
+
lspRuntime?: DsmmLspRuntimeState;
|
|
54
74
|
}
|
|
55
75
|
export declare function createDsmmStatusSnapshot(input: {
|
|
56
76
|
agent: DshAgent;
|
|
@@ -58,6 +78,11 @@ export declare function createDsmmStatusSnapshot(input: {
|
|
|
58
78
|
modeActive: boolean;
|
|
59
79
|
admission?: DsmmProfileAdmission;
|
|
60
80
|
roleRuntimeState?: DsmmRoleRuntimeState;
|
|
81
|
+
modules?: DsmmModuleState[];
|
|
61
82
|
}): DsmmStatusSnapshot;
|
|
62
83
|
export declare function formatDsmmStatus(snapshot: DsmmStatusSnapshot): string;
|
|
84
|
+
/** Read-only diagnostics only; never use this copy as configuration input. */
|
|
85
|
+
export declare function readOnlySettings(settings: DsmmSettings): DsmmSettings;
|
|
86
|
+
/** Environment key names may themselves contain private data. */
|
|
87
|
+
export declare function readOnlySettingSources(fields: Readonly<Record<string, string>>): Record<string, string>;
|
|
63
88
|
//# sourceMappingURL=status.d.ts.map
|
package/lib/status.js
CHANGED
|
@@ -2,11 +2,13 @@ import { classifyModelFamily } from "./model-family.js";
|
|
|
2
2
|
import { isDeepseekFlashRoute, isDeepseekV4ProRoute } from "./model-routing.js";
|
|
3
3
|
import { DSMM_ROLES, isDsmmRoleId } from "./roles.js";
|
|
4
4
|
import { persistedRoleRoute, liveRolePolicyIdentity, roleRouteRuntimeState } from "./role-routing.js";
|
|
5
|
-
import {
|
|
5
|
+
import { resolveSelectedAgentPreset } from "./session-scope.js";
|
|
6
|
+
import { resolveAdmittedDsmmRole as resolveEffectiveDsmmRole } from "./role-policy.js";
|
|
6
7
|
import { resolveRoleRuntimePolicy } from "./routing-policy.js";
|
|
7
8
|
export const DSMM_STATUS_VERSION = 1;
|
|
8
9
|
export function createDsmmStatusSnapshot(input) {
|
|
9
|
-
const { agent, settings
|
|
10
|
+
const { agent, settings } = input;
|
|
11
|
+
const modeActive = settings.modules.deepwork.enabled && input.modeActive;
|
|
10
12
|
const ordinaryRoot = agent.session.header?.origin !== "subagent";
|
|
11
13
|
const selectedPreset = resolveSelectedAgentPreset(agent.session);
|
|
12
14
|
const dsmmPreset = isDsmmRoleId(selectedPreset);
|
|
@@ -43,6 +45,16 @@ export function createDsmmStatusSnapshot(input) {
|
|
|
43
45
|
&& route.model === selectedRoute.model && route.reasoningEffort === selectedRoute.reasoningEffort);
|
|
44
46
|
return {
|
|
45
47
|
version: DSMM_STATUS_VERSION,
|
|
48
|
+
...(input.modules === undefined ? {} : { modules: structuredClone(input.modules) }),
|
|
49
|
+
...(input.admission?.store === undefined ? {} : { profileStore: { ...input.admission.store } }),
|
|
50
|
+
...(input.admission?.deployment === undefined ? {} : { deployment: {
|
|
51
|
+
globalRevision: input.admission.deployment.globalRevision, nativeRevision: input.admission.deployment.nativeRevision,
|
|
52
|
+
entryId: input.admission.deployment.entryId, hostProfileKey: input.admission.deployment.hostProfileKey,
|
|
53
|
+
restartRequired: [...input.admission.restartRequired ?? []], sources: readOnlySettingSources(input.admission.sources ?? {}),
|
|
54
|
+
...(input.admission.sourceCaptures === undefined ? {} : { sourceCaptures: {
|
|
55
|
+
fields: readOnlySettingSources(input.admission.sourceCaptures.fields), ...(input.admission.sourceCaptures.startup === undefined ? {} : { startup: { ...input.admission.sourceCaptures.startup } })
|
|
56
|
+
} })
|
|
57
|
+
} }),
|
|
46
58
|
...(input.admission === undefined ? {} : { admission: {
|
|
47
59
|
profile: input.admission.profile === null ? null : { ...input.admission.profile },
|
|
48
60
|
epoch: input.admission.epoch,
|
|
@@ -102,7 +114,8 @@ export function createDsmmStatusSnapshot(input) {
|
|
|
102
114
|
maxContinuations: settings.runtimeRecovery.idleContinuation.maxContinuations
|
|
103
115
|
}
|
|
104
116
|
},
|
|
105
|
-
effectiveSettings:
|
|
117
|
+
effectiveSettings: readOnlySettings(settings),
|
|
118
|
+
...(agent.ctx?.get?.("dsmmLspState") === undefined ? {} : { lspRuntime: agent.ctx.get("dsmmLspState")() })
|
|
106
119
|
};
|
|
107
120
|
}
|
|
108
121
|
export function formatDsmmStatus(snapshot) {
|
|
@@ -122,8 +135,12 @@ export function formatDsmmStatus(snapshot) {
|
|
|
122
135
|
return [
|
|
123
136
|
"Deepwork status",
|
|
124
137
|
`Mode: ${snapshot.mode.active ? "active" : "inactive"} (${snapshot.mode.name})`,
|
|
138
|
+
...snapshot.modules?.map((module) => `Module ${module.descriptor.id}: desired=${module.desired.enabled} (${module.desired.source}, ${module.desired.capture}); startup-mounted=${module.startupMounted}; admitted=${module.admitted}; next-root=${module.nextRoot.admitted}; pending=${module.pending}; reason=${module.reason ?? "none"}; host-bundle-enabled=${module.hostBundleEnabled}`) ?? [],
|
|
125
139
|
`Scope: ${scope}`,
|
|
126
140
|
...(snapshot.admission === undefined ? [] : [`Profile admission: ${snapshot.admission.scope}; profile=${snapshot.admission.profile?.id ?? "deployment baseline"}; epoch=${snapshot.admission.epoch}`]),
|
|
141
|
+
...(snapshot.deployment === undefined ? [] : [`Deployment capture: global=${snapshot.deployment.globalRevision}; native=${snapshot.deployment.nativeRevision}; restart-required=${snapshot.deployment.restartRequired.join(",") || "none"}`]),
|
|
142
|
+
...(snapshot.deployment?.sourceCaptures?.startup === undefined ? [] : [`Startup-pinned sources: global=${snapshot.deployment.sourceCaptures.startup.globalRevision}; native=${snapshot.deployment.sourceCaptures.startup.nativeRevision}`]),
|
|
143
|
+
...(snapshot.profileStore === undefined ? [] : [`Named store: ${snapshot.profileStore.origin}; ${snapshot.profileStore.readOnly ? "read-only" : "writable"}${snapshot.profileStore.writeRestriction === undefined ? "" : `; ${snapshot.profileStore.writeRestriction}`}`]),
|
|
127
144
|
`Workflow policy: ${snapshot.effectiveSettings.workflow.policy}`,
|
|
128
145
|
`Route: ${provider}/${model} [${snapshot.route.family}]`,
|
|
129
146
|
`Role policy: ${displayRole(snapshot.rolePolicy.role)}; strategy=${snapshot.rolePolicy.strategy}; primary=${snapshot.rolePolicy.primary === undefined ? "inherit" : `${snapshot.rolePolicy.primary.provider}/${snapshot.rolePolicy.primary.model}`}; fallbacks=${snapshot.rolePolicy.fallbackSource}; retries=${snapshot.rolePolicy.rateLimit.maxRetries}; threshold=${snapshot.rolePolicy.rateLimit.switchAfterRateLimits}; switches=${snapshot.rolePolicy.rateLimit.maxSwitches}`,
|
|
@@ -176,8 +193,10 @@ function resolveCalibration(input) {
|
|
|
176
193
|
}
|
|
177
194
|
return { mode: input.calibration, applies: true, policyEffort: input.policyEffort, action: "enforce" };
|
|
178
195
|
}
|
|
179
|
-
|
|
196
|
+
/** Read-only diagnostics only; never use this copy as configuration input. */
|
|
197
|
+
export function readOnlySettings(settings) {
|
|
180
198
|
return {
|
|
199
|
+
modules: { deepwork: { enabled: settings.modules.deepwork.enabled } },
|
|
181
200
|
modeName: settings.modeName,
|
|
182
201
|
defaultActive: settings.defaultActive,
|
|
183
202
|
promptOrder: settings.promptOrder,
|
|
@@ -196,7 +215,8 @@ function copySettings(settings) {
|
|
|
196
215
|
...(policy.rateLimit === undefined ? {} : { rateLimit: { ...policy.rateLimit } })
|
|
197
216
|
}])),
|
|
198
217
|
runtimePolicy: { strategy: settings.runtimePolicy.strategy, rateLimit: { ...settings.runtimePolicy.rateLimit } },
|
|
199
|
-
presets: { ...settings.presets },
|
|
218
|
+
presets: { ...settings.presets, ...(settings.presets.root === undefined ? {} : { root: "<configured>" }) },
|
|
219
|
+
subagents: { ...settings.subagents },
|
|
200
220
|
workflow: { ...settings.workflow },
|
|
201
221
|
guards: {
|
|
202
222
|
...settings.guards,
|
|
@@ -208,13 +228,31 @@ function copySettings(settings) {
|
|
|
208
228
|
retryOnStatusCodes: [...settings.runtimeRecovery.retryOnStatusCodes],
|
|
209
229
|
retryOnCodes: [...settings.runtimeRecovery.retryOnCodes],
|
|
210
230
|
fallbackRoutes: settings.runtimeRecovery.fallbackRoutes.map((route) => ({ ...route })),
|
|
211
|
-
idleContinuation: { ...settings.runtimeRecovery.idleContinuation }
|
|
231
|
+
idleContinuation: { ...settings.runtimeRecovery.idleContinuation, prompt: settings.runtimeRecovery.idleContinuation.prompt === "" ? "" : "<configured>" }
|
|
212
232
|
},
|
|
213
233
|
lsp: {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
234
|
+
enabled: settings.lsp.enabled,
|
|
235
|
+
serverName: settings.lsp.serverName,
|
|
236
|
+
command: settings.lsp.command === "" ? "" : "<configured>",
|
|
237
|
+
args: settings.lsp.args.map(() => "<configured>"),
|
|
238
|
+
cwd: settings.lsp.cwd === "" ? "" : "<configured>",
|
|
239
|
+
env: Object.fromEntries(Object.keys(settings.lsp.env).map((_key, index) => [`variable-${index + 1}`, "<redacted>"])),
|
|
240
|
+
toolCallTimeoutMs: settings.lsp.toolCallTimeoutMs,
|
|
241
|
+
failOnStartupError: settings.lsp.failOnStartupError
|
|
217
242
|
}
|
|
218
243
|
};
|
|
219
244
|
}
|
|
245
|
+
/** Environment key names may themselves contain private data. */
|
|
246
|
+
export function readOnlySettingSources(fields) {
|
|
247
|
+
const result = {}, environment = new Set();
|
|
248
|
+
for (const [path, value] of Object.entries(fields)) {
|
|
249
|
+
if (path === "lsp.env" || path.startsWith("lsp.env."))
|
|
250
|
+
environment.add(value);
|
|
251
|
+
else
|
|
252
|
+
result[path] = value;
|
|
253
|
+
}
|
|
254
|
+
if (environment.size)
|
|
255
|
+
result["lsp.env"] = environment.size === 1 ? [...environment][0] : "mixed";
|
|
256
|
+
return result;
|
|
257
|
+
}
|
|
220
258
|
//# sourceMappingURL=status.js.map
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"title": "
|
|
4
|
-
"description": "
|
|
3
|
+
"title": "DSMM",
|
|
4
|
+
"description": "Shared Global controls, native profile overrides and captured Deepwork workflows for DeepSeek Harness."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmm/dsmm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "DeepSeek Harness deepwork mode bundle for ocmm-style agentic workflows.",
|
|
5
5
|
"author": "Hugefiver",
|
|
6
6
|
"license": "LicenseRef-AAAPL",
|
|
@@ -94,6 +94,13 @@
|
|
|
94
94
|
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.2",
|
|
95
95
|
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
|
|
96
96
|
"@deepseek-ai/dsh-agent-preset-registry": "0.2.0-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.0-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
100
|
+
"@deepseek-ai/dsh-command-compact": "0.2.0-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.0-rc.2",
|
|
102
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.0-rc.2",
|
|
103
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.0-rc.2",
|
|
97
104
|
"@deepseek-ai/dsh-tool-subagent": "0.2.0-rc.2",
|
|
98
105
|
"@deepseek-ai/dsh-subagent": "0.2.0-rc.2",
|
|
99
106
|
"@deepseek-ai/dsh-tool-fs": "0.2.0-rc.2",
|
|
@@ -139,6 +146,12 @@
|
|
|
139
146
|
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
|
|
140
147
|
"@deepseek-ai/dsh-agent-preset-registry": "0.2.0-rc.2",
|
|
141
148
|
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
149
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.0-rc.2",
|
|
150
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
151
|
+
"@deepseek-ai/dsh-command-compact": "0.2.0-rc.2",
|
|
152
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.0-rc.2",
|
|
153
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.0-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.0-rc.2",
|
|
142
155
|
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
143
156
|
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
144
157
|
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
|
|
@@ -172,9 +185,13 @@
|
|
|
172
185
|
}
|
|
173
186
|
},
|
|
174
187
|
"scripts": {
|
|
175
|
-
"build": "tsc -p tsconfig.json && node scripts/build-client.mjs",
|
|
188
|
+
"build": "node scripts/materialize-frontend.mjs --check && tsc -p tsconfig.json && node scripts/build-client.mjs",
|
|
176
189
|
"build:client": "node scripts/build-client.mjs",
|
|
177
190
|
"check:release": "node scripts/check-release-readiness.mjs",
|
|
191
|
+
"sync:source": "node --experimental-strip-types scripts/sync-source-assets.mjs",
|
|
192
|
+
"generate:roles": "node scripts/generate-role-assets.mjs",
|
|
193
|
+
"check:source": "node --experimental-strip-types scripts/check-source-assets.mjs",
|
|
194
|
+
"sync:frontend": "node scripts/materialize-frontend.mjs --sync",
|
|
178
195
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
179
196
|
"typecheck:test": "pnpm run build && tsc -p tsconfig.test.json --noEmit",
|
|
180
197
|
"test": "pnpm run build && node --test --experimental-strip-types test/*.test.ts",
|