@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/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
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useId, useMemo, useState, useSyncExternalStore } from "react";
|
|
3
|
+
import { Button, Input } from "@deepseek-ai/dsh-client-ui-primitives";
|
|
4
|
+
import { DeploymentController } from "./deployment-controller.js";
|
|
5
|
+
import { at, enumValues, equal, inspectorPaths, mergeLayer, parseAdvanced, validateEditorValue } from "./deployment-data.js";
|
|
6
|
+
import { deploymentFieldLabels } from "./deployment-locales.js";
|
|
7
|
+
function label(path, t) {
|
|
8
|
+
const key = path.at(-1);
|
|
9
|
+
const item = deploymentFieldLabels[key];
|
|
10
|
+
return item === undefined ? key.replace(/^dsmm-/u, "").replace(/([a-z])([A-Z])/gu, "$1 $2") : item[t("global") === "DSMM 全局配置" ? 1 : 0];
|
|
11
|
+
}
|
|
12
|
+
function displayValue(value, t) {
|
|
13
|
+
if (value === undefined)
|
|
14
|
+
return t("unknown");
|
|
15
|
+
if (typeof value === "boolean")
|
|
16
|
+
return t(value ? "on" : "off");
|
|
17
|
+
const text = JSON.stringify(value);
|
|
18
|
+
return text.length > 120 ? `${text.slice(0, 120)}…` : text;
|
|
19
|
+
}
|
|
20
|
+
function AdvancedField({ schema, path, value, inherited, upper, reset, disabled, onChange, setInvalid, t }) {
|
|
21
|
+
const id = useId(), name = path.join(".");
|
|
22
|
+
const serialized = value === undefined ? "" : JSON.stringify(value, null, 2);
|
|
23
|
+
const [text, setText] = useState(serialized);
|
|
24
|
+
const [invalid, setLocalInvalid] = useState(false);
|
|
25
|
+
useEffect(() => { setText(serialized); setLocalInvalid(false); setInvalid(name, false); }, [serialized, reset]);
|
|
26
|
+
return _jsxs("details", { className: "dsmm-deployment-group", children: [_jsxs("summary", { children: [label(path, t), " \u00B7 ", t("advanced"), " ", _jsx("code", { children: name })] }), _jsxs("div", { className: "dsmm-field", children: [_jsxs("label", { htmlFor: id, children: [label(path, t), " \u00B7 ", t("advanced"), " ", _jsx("code", { children: name })] }), _jsx("p", { className: "dsmm-hint", id: `${id}-hint`, children: t("advancedHint") }), _jsx("textarea", { id: id, rows: 6, maxLength: 32768, value: text, disabled: disabled, "aria-invalid": invalid, "aria-describedby": `${id}-hint ${id}-error`, onChange: event => {
|
|
27
|
+
const next = event.currentTarget.value;
|
|
28
|
+
setText(next);
|
|
29
|
+
let parsed, valid = true;
|
|
30
|
+
try {
|
|
31
|
+
parsed = parseAdvanced(next);
|
|
32
|
+
const candidate = parsed === undefined ? inherited : mergeLayer(inherited, parsed);
|
|
33
|
+
valid = parsed === undefined || validateEditorValue(parsed, schema, true) && validateEditorValue(upper === undefined ? candidate : mergeLayer(candidate, upper), schema);
|
|
34
|
+
}
|
|
35
|
+
catch {
|
|
36
|
+
valid = false;
|
|
37
|
+
}
|
|
38
|
+
setLocalInvalid(!valid);
|
|
39
|
+
setInvalid(name, !valid);
|
|
40
|
+
if (valid)
|
|
41
|
+
onChange(parsed);
|
|
42
|
+
} }), _jsx("p", { id: `${id}-error`, className: "dsmm-hint", children: invalid ? t("invalid") : "" }), _jsxs("details", { children: [_jsxs("summary", { children: [t("advanced"), " \u00B7 schema"] }), _jsx("pre", { children: JSON.stringify(schema, null, 2) })] })] })] });
|
|
43
|
+
}
|
|
44
|
+
function ScalarField({ schema, path, controller, disabled, inherited, invalid, t }) {
|
|
45
|
+
const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot);
|
|
46
|
+
const value = at(state.draft, path), name = path.join("."), id = useId();
|
|
47
|
+
const [text, setText] = useState(String(value ?? inherited ?? ""));
|
|
48
|
+
const [bad, setBad] = useState(false);
|
|
49
|
+
useEffect(() => { setText(String(value ?? inherited ?? "")); setBad(false); invalid(name, false); }, [value, inherited, state.snapshot]);
|
|
50
|
+
return _jsxs(_Fragment, { children: [_jsxs("label", { htmlFor: id, children: [label(path, t), " ", _jsx("code", { children: name })] }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Input, { className: "dsmm-input", id: id, type: "text", inputMode: schema.type === "number" ? "decimal" : undefined, value: text, disabled: disabled, "aria-invalid": bad, "aria-describedby": `${id}-error`, onChange: event => {
|
|
51
|
+
const raw = event.currentTarget.value;
|
|
52
|
+
setText(raw);
|
|
53
|
+
const candidate = schema.type === "number" ? Number(raw) : raw;
|
|
54
|
+
const valid = (schema.type !== "number" || raw.trim() !== "") && validateEditorValue(candidate, schema);
|
|
55
|
+
setBad(!valid);
|
|
56
|
+
invalid(name, !valid);
|
|
57
|
+
if (valid)
|
|
58
|
+
controller.edit(path, candidate);
|
|
59
|
+
} }), _jsx(Button, { type: "button", variant: "outline", disabled: disabled || value === undefined && !bad, onClick: () => { setText(String(inherited ?? "")); setBad(false); invalid(name, false); controller.edit(path, undefined); }, children: t("inherit") })] }), _jsxs("p", { id: `${id}-error`, className: "dsmm-hint", children: [bad ? t("invalid") : "", schema.type === "number" && (schema.min !== undefined || schema.max !== undefined) ? ` ${schema.min ?? "—"} – ${schema.max ?? "—"}` : ""] })] });
|
|
60
|
+
}
|
|
61
|
+
function Field({ schema, path, controller, invalid, t }) {
|
|
62
|
+
const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot), snapshot = state.snapshot;
|
|
63
|
+
const id = useId(), name = path.join("."), explicit = at(state.draft, path);
|
|
64
|
+
const inherited = controller.layer === "global" ? at(snapshot.defaults, path) : at(mergeLayer(mergeLayer(snapshot.defaults, snapshot.global), snapshot.nativeForm?.base ?? {}), path);
|
|
65
|
+
const disabled = state.busy || state.issue === "not-owned" || state.issue === "unavailable" || state.issue === "transport" || controller.layer === "profile" && !controller.canWriteProfile();
|
|
66
|
+
const choices = enumValues(schema);
|
|
67
|
+
if (schema.type === "object" && schema.fields !== undefined && path[0] !== "roleRouting" && path[0] !== "lsp")
|
|
68
|
+
return _jsxs("details", { className: "dsmm-deployment-group", children: [_jsxs("summary", { children: [label(path, t), " ", _jsx("code", { children: name })] }), _jsx("div", { children: Object.entries(schema.fields).map(([key, node]) => _jsx(Field, { schema: node, path: [...path, key], controller: controller, invalid: invalid, t: t }, key)) })] });
|
|
69
|
+
if (!["boolean", "string", "number"].includes(schema.type) && choices === null)
|
|
70
|
+
return _jsx(AdvancedField, { schema: schema, path: path, value: explicit, inherited: inherited, upper: controller.layer === "global" ? at(snapshot.profile, path) : undefined, reset: snapshot, disabled: disabled, t: t, onChange: value => controller.edit(path, value), setInvalid: invalid });
|
|
71
|
+
return _jsxs("div", { className: "dsmm-field dsmm-deployment-field", children: [schema.type === "boolean" || choices !== null ? _jsxs(_Fragment, { children: [_jsxs("label", { htmlFor: id, children: [label(path, t), " ", _jsx("code", { children: name })] }), _jsxs("select", { id: id, disabled: disabled, value: explicit === undefined ? "inherit" : JSON.stringify(explicit), onChange: event => controller.edit(path, event.currentTarget.value === "inherit" ? undefined : JSON.parse(event.currentTarget.value)), children: [_jsxs("option", { value: "inherit", children: [t("inherit"), " \u00B7 ", displayValue(inherited, t)] }), (choices ?? [true, false]).map(choice => _jsx("option", { value: JSON.stringify(choice), children: displayValue(choice, t) }, String(choice)))] })] }) : _jsx(ScalarField, { schema: schema, path: path, controller: controller, disabled: disabled, inherited: inherited, invalid: invalid, t: t }), (explicit !== undefined || controller.layer === "profile" && at(snapshot.nativeForm?.base, path) !== undefined) && _jsxs("p", { className: "dsmm-hint", children: [explicit === undefined ? "" : equal(explicit, at(snapshot.defaults, path)) ? t("defaultPin") : t("explicit"), controller.layer === "profile" && at(snapshot.nativeForm?.base, path) !== undefined ? `${explicit === undefined ? "" : " · "}${t("hostPin")}` : ""] })] });
|
|
72
|
+
}
|
|
73
|
+
function Layer({ controller, t }) {
|
|
74
|
+
const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot);
|
|
75
|
+
const [invalid, setInvalid] = useState(new Set());
|
|
76
|
+
const updateInvalid = (path, bad) => { controller.setInvalid(path, bad); setInvalid(previous => { if (previous.has(path) === bad)
|
|
77
|
+
return previous; const next = new Set(previous); if (bad)
|
|
78
|
+
next.add(path);
|
|
79
|
+
else
|
|
80
|
+
next.delete(path); return next; }); };
|
|
81
|
+
const title = controller.layer === "global" ? "global" : "profile";
|
|
82
|
+
const disabled = state.busy || state.snapshot === null || state.issue !== null || invalid.size > 0 || controller.layer === "profile" && !controller.canWriteProfile();
|
|
83
|
+
return _jsxs("div", { "data-dsmm-layer": controller.layer, "aria-busy": state.busy, children: [_jsxs("details", { className: "dsmm-deployment-card", children: [_jsxs("summary", { children: [t(title), _jsx("span", { role: "status", "aria-live": "polite", className: "dsmm-hint", children: state.busy ? t("saving") : state.dirty ? t("dirty") : state.saved ? t("saved") : "" })] }), _jsxs("fieldset", { children: [_jsx("legend", { children: t(title) }), _jsx("p", { className: "dsmm-hint", children: t(title === "global" ? "globalHint" : "profileHint") }), state.snapshot !== null && Object.entries(state.snapshot.schema.fields ?? {}).filter(([key]) => controller.layer === "global" || key !== "modules").sort(([a], [b]) => a === "modules" ? -1 : b === "modules" ? 1 : 0).map(([key, schema]) => _jsx(Field, { schema: schema, path: [key], controller: controller, invalid: updateInvalid, t: t }, key)), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "primary", disabled: disabled || !state.dirty, onClick: () => { void controller.save(); }, children: t(state.busy ? "saving" : title === "global" ? "saveGlobal" : "saveProfile") }), _jsx(Button, { type: "button", variant: "outline", disabled: state.busy, onClick: () => { void controller.refresh(); }, children: t("refresh") }), _jsx(Button, { type: "button", variant: "outline", disabled: state.busy || !state.dirty && state.issue === null, onClick: () => { setInvalid(new Set()); void controller.refresh(true); }, children: t("discard") })] })] })] }), state.issue !== null && _jsx("p", { className: "dsmm-issue", role: "alert", children: t(state.issue) }), invalid.size > 0 && _jsx("p", { className: "dsmm-issue", role: "alert", children: t("invalid") }), controller.layer === "profile" && !controller.canWriteProfile() && _jsx("p", { className: "dsmm-hint", children: t("unavailableForm") })] });
|
|
84
|
+
}
|
|
85
|
+
function NativeProfileLayer({ namespace, forms, remote, form, core, t }) {
|
|
86
|
+
const shared = useMemo(() => forms.get(namespace), [forms, namespace]);
|
|
87
|
+
const snapshot = useSyncExternalStore(listener => shared.subscribe(listener), () => shared.getSnapshot());
|
|
88
|
+
const controller = useMemo(() => core.forProfile(namespace), [core, remote, namespace]);
|
|
89
|
+
const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot);
|
|
90
|
+
const coreState = useSyncExternalStore(core.subscribe, core.getSnapshot);
|
|
91
|
+
controller.attachForm(form ?? { state: snapshot, mutate: (ops, revision) => shared.mutate(ops, revision) });
|
|
92
|
+
useEffect(() => { void controller.refresh(); return () => controller.dispose(); }, [controller]);
|
|
93
|
+
useEffect(() => { if (state.saved)
|
|
94
|
+
void core.refresh(); }, [state.saved, core]);
|
|
95
|
+
useEffect(() => { if (controller.getSnapshot().snapshot !== null)
|
|
96
|
+
void controller.refresh(); }, [coreState.snapshot?.globalRevision, snapshot.revision, controller]);
|
|
97
|
+
return _jsx(Layer, { controller: controller, t: t });
|
|
98
|
+
}
|
|
99
|
+
function StateInspector({ controller, session, t }) {
|
|
100
|
+
const { snapshot, dirty, issue } = useSyncExternalStore(controller.subscribe, controller.getSnapshot);
|
|
101
|
+
if (snapshot === null)
|
|
102
|
+
return null;
|
|
103
|
+
const admitted = session?.configuration ?? null;
|
|
104
|
+
const source = (value) => t(value === "profile" ? "profileSource" : value === "global" ? "globalSource" : value === "defaults" ? "defaultsSource" : value === "named-session" ? "namedSource" : value === "startup" ? "startupSource" : value === "deployment" ? "deploymentCapture" : value === "mixed" ? "mixedSource" : "unknown");
|
|
105
|
+
const value = (layer, path) => layer === undefined ? t("unknown") : at(layer, path.split(".")) === undefined ? t("absent") : displayValue(at(layer, path.split(".")), t);
|
|
106
|
+
const metadata = (layer, path, entry) => layer !== undefined && at(layer, path.split(".")) === undefined && entry === undefined ? t("absent") : source(entry);
|
|
107
|
+
return _jsxs("details", { className: "dsmm-deployment-card", children: [_jsxs("summary", { children: [t("state"), _jsx("span", { className: "dsmm-hint", children: (snapshot.nextRoot?.restartRequired.length ?? 0) > 0 ? t("pending") : dirty || issue !== null ? t("inspectorStale") : "" })] }), _jsxs("div", { children: [_jsx("p", { role: "status", "aria-live": "polite", children: session === null ? t("noSession") : admitted === null ? t("sessionUnavailable") : `${t("namedSource")}: ${admitted.named?.id ?? "—"}` }), session !== null && _jsxs("p", { children: [t("session"), ": ", _jsx("code", { children: session.sessionId }), " \u00B7 ", _jsx("code", { children: session.admissionEpoch }), " \u00B7 ", session.scope] }), (dirty || issue !== null) && _jsx("p", { className: "dsmm-hint", children: t("inspectorStale") }), _jsxs("p", { className: "dsmm-hint", children: ["Global CAS: ", _jsx("code", { children: snapshot.globalRevision }), " \u00B7 native CAS: ", _jsx("code", { children: snapshot.nativeRevision }), " \u00B7 Host form: ", snapshot.nativeFormRevision ?? "—"] }), inspectorPaths(snapshot, admitted).map(path => _jsxs("dl", { className: "dsmm-deployment-state", children: [_jsx("dt", { children: _jsx("code", { children: path }) }), _jsxs("dd", { children: [t("globalSource"), ": ", at(snapshot.global, path.split(".")) === undefined ? t("absent") : t("globalSource")] }), _jsxs("dd", { children: [t("desired"), ": ", value(snapshot.desired, path), " \u00B7 ", metadata(snapshot.desired, path, snapshot.sources[path])] }), _jsxs("dd", { children: [t("startup"), ": ", value(snapshot.startup, path), " \u00B7 ", metadata(snapshot.startup, path, snapshot.startupSources?.[path]), " / ", at(snapshot.startup, path.split(".")) === undefined ? t("absent") : t("startupSource")] }), _jsxs("dd", { children: [t("next"), ": ", value(snapshot.nextRoot?.settings, path), " \u00B7 ", metadata(snapshot.nextRoot?.settings, path, snapshot.nextRoot?.sources[path]), " / ", metadata(snapshot.nextRoot?.settings, path, snapshot.nextRoot?.captures[path])] }), _jsxs("dd", { children: [t("session"), ": ", value(admitted?.settings, path), " \u00B7 ", metadata(admitted?.settings, path, admitted?.sources[path]), " / ", metadata(admitted?.settings, path, admitted?.captures[path])] })] }, path)), (snapshot.nextRoot?.restartRequired.length ?? 0) > 0 && _jsxs("p", { children: [t("pending"), ": ", snapshot.nextRoot.restartRequired.join(", ")] })] })] });
|
|
108
|
+
}
|
|
109
|
+
export function DeploymentPage(props) {
|
|
110
|
+
const state = useSyncExternalStore(props.core.subscribe, props.core.getSnapshot);
|
|
111
|
+
useEffect(() => { if (props.view === "page")
|
|
112
|
+
void props.core.refresh(); }, [props.core, props.view]);
|
|
113
|
+
if (props.view === "summary")
|
|
114
|
+
return _jsx("span", { children: props.t("summary") });
|
|
115
|
+
const { t } = props, snapshot = state.snapshot, module = snapshot?.modules[0];
|
|
116
|
+
return _jsxs("section", { className: "dsmm-profiles dsmm-deployment", "data-dsmm-page": true, "aria-label": t("title"), children: [_jsx("p", { className: "dsmm-hint", children: t("description") }), _jsx("p", { className: "dsmm-hint", children: t("boundaries") }), _jsxs("details", { className: "dsmm-deployment-card", children: [_jsxs("summary", { children: [t("module"), _jsx("span", { className: "dsmm-hint", children: module?.pending ? t("pending") : module === undefined ? t("unknown") : t(module.desired.enabled ? "on" : "off") })] }), _jsxs("div", { children: [_jsx("p", { children: t("hostUnknown") }), _jsxs("p", { children: [t("desired"), ": ", module === undefined ? t("unknown") : t(module.desired.enabled ? "on" : "off"), " \u00B7 ", module?.desired.source ?? "—"] }), _jsxs("p", { children: [t("startup"), ": ", module === undefined ? t("unknown") : t(module.startupMounted ? "on" : "off"), " \u00B7 ", t("next"), ": ", module === undefined ? t("unknown") : t(module.nextRoot.admitted ? "on" : "off")] }), _jsxs("p", { children: [t("session"), ": ", state.session?.modules?.[0]?.admitted == null ? t("unknown") : t(state.session.modules[0].admitted ? "on" : "off")] }), _jsx("p", { className: "dsmm-hint", children: t("ceiling") })] })] }), _jsx(Layer, { controller: props.core, t: t }), props.profilePage && props.forms !== undefined && snapshot?.namespace !== null && snapshot?.namespace !== undefined && (props.rowNamespace === undefined || props.rowNamespace === snapshot.namespace)
|
|
117
|
+
? _jsx(NativeProfileLayer, { namespace: snapshot.namespace, forms: props.forms, remote: props.remote, form: props.form, core: props.core, t: t }, `${snapshot.hostProfileKey}:${snapshot.entryId}`)
|
|
118
|
+
: _jsxs("div", { children: [_jsxs("details", { className: "dsmm-deployment-card", children: [_jsxs("summary", { children: [t("profile"), _jsx("span", { className: "dsmm-hint", children: t("profileUnavailable") })] }), _jsx("div", { children: _jsx("p", { children: t("profileHint") }) })] }), _jsx("p", { className: "dsmm-hint", children: t("unavailableForm") })] }), _jsx(StateInspector, { controller: props.core, session: state.session, t: t })] });
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=DeploymentPage.js.map
|
|
@@ -27,6 +27,8 @@ export function ProfilesSection(props) {
|
|
|
27
27
|
const disabled = state.busy !== null || state.pendingEditor !== null || state.sessionBusy === "apply" || state.sessionBusy === "reset";
|
|
28
28
|
const snapshot = state.snapshot;
|
|
29
29
|
const editor = state.editor;
|
|
30
|
+
const readOnly = snapshot?.readOnly === true;
|
|
31
|
+
const editorDisabled = disabled || readOnly;
|
|
30
32
|
const reconcilable = canReconcileSelection(snapshot);
|
|
31
33
|
const selectionConflict = reconcilable && snapshot?.selectionError?.code === "conflict";
|
|
32
34
|
const invalid = state.issue?.kind === "domain" && state.issue.code === "validation";
|
|
@@ -57,10 +59,10 @@ export function ProfilesSection(props) {
|
|
|
57
59
|
else if (snapshot?.selectedId !== null && snapshot?.selectedId !== undefined)
|
|
58
60
|
selection = t("appliedProfile", { id: snapshot.selectedId, revision: snapshot.appliedRevision?.slice(0, 12) ?? "—" });
|
|
59
61
|
const notice = state.notice === null ? "" : t(state.notice.key === "reset" ? "resetDone" : state.notice.key, { id: state.notice.id });
|
|
60
|
-
return _jsxs("section", { className: "dsmm-profiles", "aria-labelledby": `${prefix}-title`, "aria-busy": state.busy !== null, children: [_jsx("h2", { id: `${prefix}-title`, children: t("title") }), _jsx("p", { children: t("description") }), _jsx("h3", { id: `${prefix}-global`, children: t("globalScope") }), _jsx("p", { className: "dsmm-hint", children: t("newSessions") }), _jsx("p", { "data-dsmm-selection": true, children: selection }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "outline", disabled:
|
|
62
|
+
return _jsxs("section", { className: "dsmm-profiles", "aria-labelledby": `${prefix}-title`, "aria-busy": state.busy !== null, children: [_jsx("h2", { id: `${prefix}-title`, children: t("title") }), _jsx("p", { children: t("description") }), snapshot?.origin !== undefined && _jsx("p", { className: "dsmm-hint", children: t(snapshot.origin === "legacy" ? "legacyOrigin" : snapshot.origin === "central" ? "centralOrigin" : "explicitOrigin") }), readOnly && _jsx("p", { role: "status", className: "dsmm-hint", children: t("readOnlyOrigin") }), _jsx("h3", { id: `${prefix}-global`, children: t("globalScope") }), _jsx("p", { className: "dsmm-hint", children: t("newSessions") }), _jsx("p", { "data-dsmm-selection": true, children: selection }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "outline", disabled: editorDisabled || snapshot === null, onClick: () => { void props.create(); }, children: t("new") }), _jsx(Button, { type: "button", variant: "outline", disabled: disabled, onClick: () => { void props.refresh(); }, children: t(state.busy === "refresh" ? "refreshing" : "refresh") }), _jsx(Button, { type: "button", variant: "outline", disabled: editorDisabled || !reconcilable || (snapshot?.selectedId === null && !selectionConflict), onClick: () => { void props.reset(); }, children: t(state.busy === "reset" ? "resetting" : "reset") })] }), snapshot !== null && _jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-select`, children: t("editorSelect") }), _jsxs("select", { ref: selectRef, id: `${prefix}-select`, disabled: disabled, value: editor?.revision == null ? "" : editor.id, onChange: (event) => { if (event.currentTarget.value)
|
|
61
63
|
void props.open(event.currentTarget.value); }, children: [_jsx("option", { value: "", children: t(editor?.revision === null ? "newDraft" : "choose") }), snapshot.profiles.map((profile, index) => _jsxs("option", { value: profile.id, children: [profile.label === undefined ? profile.id : `${profile.label} (${profile.id})`, profile.error === undefined ? "" : ` — ${t("invalidProfile", { id: profile.id })}`] }, `${index}:${profile.id}`))] }), snapshot.profiles.length === 0 && _jsx("p", { className: "dsmm-hint", children: t("empty") })] }), state.pendingEditor !== null && _jsxs("div", { className: "dsmm-confirm", role: "group", "aria-labelledby": `${prefix}-confirm`, onKeyDown: (event) => { if (event.key === "Escape") {
|
|
62
64
|
event.preventDefault();
|
|
63
65
|
props.cancelDiscard();
|
|
64
|
-
} }, children: [_jsx("p", { id: `${prefix}-confirm`, children: t("discardPrompt") }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "outline", onClick: () => { void props.discardAndOpen(); }, children: t("discard") }), _jsx(Button, { ref: cancelRef, type: "button", variant: "primary", onClick: props.cancelDiscard, children: t("cancel") })] })] }), _jsx(SessionScope, { state: state, actions: props, t: t }), _jsxs("div", { className: "dsmm-catalog", children: [_jsx("h3", { children: t("catalogTitle") }), _jsx("p", { className: "dsmm-hint", children: t("catalogHint") }), state.catalogUnavailable && _jsx("p", { className: "dsmm-hint", children: t("catalogUnavailable") }), state.catalog?.failures.map((failure) => _jsx("p", { className: "dsmm-hint", children: t("catalogFailure", { name: failure.name, id: failure.id }) }, failure.id)), _jsx(Button, { type: "button", variant: "outline", disabled: state.catalogBusy, onClick: () => { void props.refreshCatalog(); }, children: t(state.catalogBusy ? "catalogRefreshing" : "catalogRefresh") })] }), editor !== null && _jsxs("div", { className: "dsmm-editor", children: [_jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-id`, children: t("profileId") }), _jsx(Input, { ref: inputRef, id: `${prefix}-id`, className: "dsmm-input", value: editor.id, disabled: disabled || editor.revision !== null, "aria-invalid": idInvalid || undefined, "aria-describedby": `${prefix}-id-hint${idInvalid ? ` ${prefix}-issue` : ""}`, onChange: (event) => props.editId(event.currentTarget.value) }), _jsx("p", { id: `${prefix}-id-hint`, className: "dsmm-hint", children: t("idHint") })] }), _jsx(StructuredEditor, { state: state, actions: props, disabled:
|
|
66
|
+
} }, children: [_jsx("p", { id: `${prefix}-confirm`, children: t("discardPrompt") }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "outline", onClick: () => { void props.discardAndOpen(); }, children: t("discard") }), _jsx(Button, { ref: cancelRef, type: "button", variant: "primary", onClick: props.cancelDiscard, children: t("cancel") })] })] }), _jsx(SessionScope, { state: state, actions: props, t: t }), _jsxs("div", { className: "dsmm-catalog", children: [_jsx("h3", { children: t("catalogTitle") }), _jsx("p", { className: "dsmm-hint", children: t("catalogHint") }), state.catalogUnavailable && _jsx("p", { className: "dsmm-hint", children: t("catalogUnavailable") }), state.catalog?.failures.map((failure) => _jsx("p", { className: "dsmm-hint", children: t("catalogFailure", { name: failure.name, id: failure.id }) }, failure.id)), _jsx(Button, { type: "button", variant: "outline", disabled: state.catalogBusy, onClick: () => { void props.refreshCatalog(); }, children: t(state.catalogBusy ? "catalogRefreshing" : "catalogRefresh") })] }), editor !== null && _jsxs("div", { className: "dsmm-editor", children: [_jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-id`, children: t("profileId") }), _jsx(Input, { ref: inputRef, id: `${prefix}-id`, className: "dsmm-input", value: editor.id, disabled: disabled || editor.revision !== null, "aria-invalid": idInvalid || undefined, "aria-describedby": `${prefix}-id-hint${idInvalid ? ` ${prefix}-issue` : ""}`, onChange: (event) => props.editId(event.currentTarget.value) }), _jsx("p", { id: `${prefix}-id-hint`, className: "dsmm-hint", children: t("idHint") })] }), _jsx(StructuredEditor, { state: state, actions: props, disabled: editorDisabled, t: t }, state.editorEpoch), _jsxs("details", { className: "dsmm-advanced", open: true, children: [_jsx("summary", { children: t("advanced") }), _jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-content`, children: t("configuration") }), _jsx("textarea", { ref: editorRef, id: `${prefix}-content`, rows: 12, spellCheck: false, value: editor.content, readOnly: readOnly, disabled: disabled, "aria-invalid": rawInvalid || (invalid && !idInvalid) || undefined, "aria-describedby": `${prefix}-content-hint ${prefix}-structural-hint${invalid && !idInvalid ? ` ${prefix}-issue` : ""}`, onChange: (event) => props.editContent(event.currentTarget.value) }), _jsx("p", { id: `${prefix}-content-hint`, className: "dsmm-hint", children: t("configurationHint") }), _jsx("p", { id: `${prefix}-structural-hint`, className: "dsmm-hint", children: t("structuralHint") })] })] }), _jsx("p", { "data-dsmm-editor-state": true, children: t(state.dirty ? "dirty" : applied ? "savedApplied" : "savedNotApplied") }), _jsx("p", { id: `${prefix}-global-action`, className: "dsmm-hint", children: t("globalActionHint") }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "primary", disabled: editorDisabled || !state.dirty || snapshot === null || state.invalidFields.length > 0, onClick: () => { void props.save(); }, children: t(state.busy === "save" ? "saving" : "save") }), _jsx(Button, { type: "button", variant: "outline", "aria-describedby": `${prefix}-global-action`, disabled: editorDisabled || state.dirty || editor.revision === null || !reconcilable || (applied && !selectionConflict), onClick: () => { void props.apply(); }, children: t(state.busy === "apply" ? "applying" : "apply") }), editor.revision !== null && _jsx(Button, { type: "button", variant: "outline", disabled: disabled, onClick: () => { void props.reload(); }, children: t("reload") })] })] }), state.issue !== null && _jsx("div", { className: "dsmm-issue", id: `${prefix}-issue`, role: "alert", children: _jsx("p", { children: t(issueKey(state.issue)) }) }), snapshot?.selectionError !== undefined && _jsx("div", { className: "dsmm-issue", children: _jsx("p", { children: t(selectionConflict ? "selectionConflict" : "retry") }) }), _jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", "aria-atomic": "true", children: state.busy === "refresh" && snapshot === null ? t("loading") : state.busy === "read" ? t("reading") : notice })] });
|
|
65
67
|
}
|
|
66
68
|
//# sourceMappingURL=ProfilesSection.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ConfigFormSnapshot, ConfigForm } from "@deepseek-ai/dsh-client-ui-settings/client";
|
|
2
|
+
import type { ConnectionGenerationState } from "@deepseek-ai/dsh-client-connection/client";
|
|
3
|
+
import type { DsmmConfigRemote } from "../profile-remote.js";
|
|
4
|
+
import type { DeploymentEditorSnapshot, SessionProfileSnapshot } from "../profile-types.js";
|
|
5
|
+
export type DeploymentIssue = "unavailable" | "not-owned" | "conflict" | "validation" | "transport";
|
|
6
|
+
export interface DeploymentView {
|
|
7
|
+
snapshot: DeploymentEditorSnapshot | null;
|
|
8
|
+
draft: Record<string, unknown>;
|
|
9
|
+
dirty: boolean;
|
|
10
|
+
busy: boolean;
|
|
11
|
+
issue: DeploymentIssue | null;
|
|
12
|
+
saved: boolean;
|
|
13
|
+
session: SessionProfileSnapshot | null;
|
|
14
|
+
}
|
|
15
|
+
export interface NativePageForm {
|
|
16
|
+
state: ConfigFormSnapshot<Record<string, unknown>>;
|
|
17
|
+
mutate: ConfigForm<Record<string, unknown>>["mutate"];
|
|
18
|
+
}
|
|
19
|
+
/** Drafts and CAS baselines, never a second configuration authority. */
|
|
20
|
+
export declare class DeploymentController {
|
|
21
|
+
private readonly remote;
|
|
22
|
+
readonly layer: "global" | "profile";
|
|
23
|
+
readonly rowNamespace: string | null;
|
|
24
|
+
private state;
|
|
25
|
+
private listeners;
|
|
26
|
+
private generation;
|
|
27
|
+
private disposed;
|
|
28
|
+
private baseline;
|
|
29
|
+
private form;
|
|
30
|
+
private invalid;
|
|
31
|
+
private connection;
|
|
32
|
+
private connectionBaseline;
|
|
33
|
+
private stopConnection;
|
|
34
|
+
constructor(remote: DsmmConfigRemote, layer: "global" | "profile", rowNamespace?: string | null);
|
|
35
|
+
readonly getSnapshot: () => DeploymentView;
|
|
36
|
+
readonly subscribe: (listener: () => void) => (() => void);
|
|
37
|
+
dispose(): void;
|
|
38
|
+
bindConnection(source: ConnectionGenerationState): void;
|
|
39
|
+
forProfile(namespace: string): DeploymentController;
|
|
40
|
+
private currentConnection;
|
|
41
|
+
setSession(session: SessionProfileSnapshot | null): void;
|
|
42
|
+
private publish;
|
|
43
|
+
attachForm(form: NativePageForm | null): void;
|
|
44
|
+
setInvalid(path: string, invalid: boolean): void;
|
|
45
|
+
canWriteProfile(snapshot?: DeploymentEditorSnapshot | null): boolean;
|
|
46
|
+
edit(path: readonly string[], value: unknown): void;
|
|
47
|
+
refresh(discard?: boolean): Promise<void>;
|
|
48
|
+
save(): Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=deployment-controller.d.ts.map
|