@dsmm/dsmm 0.1.9 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -58
- package/agent-presets/dsmm-builder/agent.cordis.yml +91 -186
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +120 -17
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +169 -0
- package/agent-presets/dsmm-coding/preset.yml +3 -0
- package/agent-presets/dsmm-complex/agent.cordis.yml +154 -0
- package/agent-presets/dsmm-complex/preset.yml +3 -0
- package/agent-presets/dsmm-creative/agent.cordis.yml +122 -15
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +179 -0
- package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
- package/agent-presets/dsmm-deep/agent.cordis.yml +189 -0
- package/agent-presets/dsmm-deep/preset.yml +3 -0
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +168 -0
- package/agent-presets/dsmm-documenting/preset.yml +3 -0
- package/agent-presets/dsmm-frontend/agent.cordis.yml +161 -0
- package/agent-presets/dsmm-frontend/preset.yml +3 -0
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +153 -0
- package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +127 -0
- package/agent-presets/dsmm-normal-task/preset.yml +3 -0
- package/agent-presets/dsmm-oracle/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +174 -190
- package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +102 -16
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +134 -15
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +132 -0
- package/agent-presets/dsmm-quick/preset.yml +3 -0
- package/agent-presets/dsmm-research/agent.cordis.yml +156 -0
- package/agent-presets/dsmm-research/preset.yml +3 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +108 -16
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/cordis.patch.yml +1 -5
- package/docs/agent-presets.md +48 -15
- package/docs/compatibility.md +58 -68
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +43 -2
- package/docs/lsp.md +12 -12
- package/docs/migration-from-ocmm.md +10 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +43 -64
- package/docs/releasing.md +159 -8
- package/docs/roadmap.md +77 -17
- package/docs/runtime-recovery.md +12 -0
- package/docs/safety-guards.md +7 -3
- package/docs/settings-status.md +46 -40
- package/docs/skill-sync.md +89 -14
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +42 -0
- package/lib/child-admission.js +162 -0
- package/lib/child-capture.d.ts +81 -0
- package/lib/child-capture.js +203 -0
- package/lib/child-evidence.d.ts +17 -0
- package/lib/child-evidence.js +43 -0
- package/lib/client/ChildrenPanel.d.ts +43 -0
- package/lib/client/ChildrenPanel.js +82 -0
- package/lib/client/DeploymentPage.d.ts +18 -0
- package/lib/client/DeploymentPage.js +127 -0
- package/lib/client/EditableChoice.d.ts +17 -0
- package/lib/client/EditableChoice.js +49 -0
- package/lib/client/PermissionsPanel.d.ts +14 -0
- package/lib/client/PermissionsPanel.js +46 -0
- package/lib/client/ProfilesSection.js +32 -15
- package/lib/client/RoleAvailability.d.ts +7 -0
- package/lib/client/RoleAvailability.js +19 -0
- package/lib/client/SessionProfiles.js +27 -9
- package/lib/client/StructuredEditor.js +15 -7
- package/lib/client/children-controller.d.ts +98 -0
- package/lib/client/children-controller.js +296 -0
- package/lib/client/children-locales.d.ts +367 -0
- package/lib/client/children-locales.js +69 -0
- package/lib/client/controller.d.ts +6 -1
- package/lib/client/controller.js +14 -8
- package/lib/client/deployment-controller.d.ts +50 -0
- package/lib/client/deployment-controller.js +193 -0
- package/lib/client/deployment-data.d.ts +17 -0
- package/lib/client/deployment-data.js +138 -0
- package/lib/client/deployment-locales.d.ts +70 -0
- package/lib/client/deployment-locales.js +81 -0
- package/lib/client/diagnostics.d.ts +14 -0
- package/lib/client/diagnostics.js +53 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +145 -1
- package/lib/client/locales.d.ts +58 -0
- package/lib/client/locales.js +38 -18
- package/lib/client/permission-client.d.ts +16 -0
- package/lib/client/permission-client.js +38 -0
- package/lib/client/permission-controller.d.ts +62 -0
- package/lib/client/permission-controller.js +149 -0
- package/lib/client/permission-locales.d.ts +114 -0
- package/lib/client/permission-locales.js +75 -0
- package/lib/client/plugins-contract.d.ts +27 -0
- package/lib/client/plugins-contract.js +2 -0
- package/lib/client/session-labels.js +4 -4
- package/lib/client/structured.js +19 -5
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +36 -0
- package/lib/client.js +6724 -1604
- package/lib/commands.js +3 -0
- package/lib/config-file-store.d.ts +23 -0
- package/lib/config-file-store.js +67 -0
- package/lib/core-permission-authority.d.ts +18 -0
- package/lib/core-permission-authority.js +255 -0
- package/lib/core-permissions.d.ts +8 -0
- package/lib/core-permissions.js +33 -0
- package/lib/delivery-authority.d.ts +68 -0
- package/lib/delivery-authority.js +260 -0
- package/lib/deployment-config.d.ts +60 -0
- package/lib/deployment-config.js +205 -0
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-home.d.ts +3 -0
- package/lib/dsh-home.js +10 -0
- package/lib/dsh-types.d.ts +22 -69
- package/lib/guards.d.ts +3 -2
- package/lib/guards.js +44 -6
- package/lib/host-llm-startup.d.ts +41 -0
- package/lib/host-llm-startup.js +65 -0
- package/lib/host-llm.d.ts +92 -0
- package/lib/host-llm.js +325 -0
- package/lib/index.d.ts +23 -5
- package/lib/index.js +383 -40
- package/lib/legacy-child-policy.d.ts +51 -0
- package/lib/legacy-child-policy.js +123 -0
- package/lib/legacy-read-composition.d.ts +20 -0
- package/lib/legacy-read-composition.js +144 -0
- package/lib/legacy-read-contracts.d.ts +157 -0
- package/lib/legacy-read-contracts.js +39 -0
- package/lib/legacy-read-host.d.ts +19 -0
- package/lib/legacy-read-host.js +67 -0
- package/lib/legacy-read-integration.d.ts +121 -0
- package/lib/legacy-read-integration.js +522 -0
- package/lib/legacy-read-proxy.d.ts +26 -0
- package/lib/legacy-read-proxy.js +237 -0
- package/lib/live-pi-ai-owner.d.ts +18 -0
- package/lib/live-pi-ai-owner.js +144 -0
- package/lib/llm-runtime.d.ts +11 -0
- package/lib/llm-runtime.js +21 -0
- package/lib/lsp.d.ts +13 -0
- package/lib/lsp.js +60 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/mode.js +42 -47
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +33 -19
- package/lib/modules.d.ts +35 -0
- package/lib/modules.js +37 -0
- package/lib/native-child-evidence.d.ts +42 -0
- package/lib/native-child-evidence.js +133 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.d.ts +9 -0
- package/lib/native-scope.js +20 -0
- package/lib/permission-bash.d.ts +6 -0
- package/lib/permission-bash.js +7 -0
- package/lib/permission-control.d.ts +73 -0
- package/lib/permission-control.js +205 -0
- package/lib/permission-controller.d.ts +68 -0
- package/lib/permission-controller.js +317 -0
- package/lib/permission-errors.d.ts +7 -0
- package/lib/permission-errors.js +21 -0
- package/lib/permission-fs-search.d.ts +5 -0
- package/lib/permission-fs-search.js +7 -0
- package/lib/permission-fs.d.ts +5 -0
- package/lib/permission-fs.js +7 -0
- package/lib/permission-native-access.d.ts +11 -0
- package/lib/permission-native-access.js +6 -0
- package/lib/permission-native-command.d.ts +10 -0
- package/lib/permission-native-command.js +93 -0
- package/lib/permission-native-rules.d.ts +75 -0
- package/lib/permission-native-rules.js +278 -0
- package/lib/permission-pwsh.d.ts +6 -0
- package/lib/permission-pwsh.js +7 -0
- package/lib/permission-remote.d.ts +26 -0
- package/lib/permission-remote.js +53 -0
- package/lib/permission-rpc.d.ts +29 -0
- package/lib/permission-rpc.js +152 -0
- package/lib/permission-rules.d.ts +115 -0
- package/lib/permission-rules.js +256 -0
- package/lib/permission-settings.d.ts +45 -0
- package/lib/permission-settings.js +48 -0
- package/lib/permission-shell.d.ts +38 -0
- package/lib/permission-shell.js +150 -0
- package/lib/permission-web.d.ts +5 -0
- package/lib/permission-web.js +7 -0
- package/lib/plan-validation.js +6 -44
- package/lib/preset-materializer.js +2 -0
- package/lib/preset-registry.d.ts +1 -1
- package/lib/preset-registry.js +38 -24
- package/lib/preset-skills.d.ts +4 -1
- package/lib/preset-skills.js +60 -19
- package/lib/profile-diagnostics.d.ts +45 -0
- package/lib/profile-diagnostics.js +148 -0
- package/lib/profile-locale.d.ts +3 -0
- package/lib/profile-locale.js +2 -0
- package/lib/profile-remote.d.ts +22 -0
- package/lib/profile-remote.js +344 -27
- package/lib/profile-rpc.d.ts +25 -1
- package/lib/profile-rpc.js +143 -3
- package/lib/profile-runtime.d.ts +63 -0
- package/lib/profile-runtime.js +496 -77
- package/lib/profile-store.d.ts +56 -1
- package/lib/profile-store.js +377 -111
- package/lib/profile-types.d.ts +125 -1
- package/lib/profile-types.js +1 -0
- package/lib/profiles.d.ts +16 -2
- package/lib/profiles.js +156 -79
- package/lib/prompt-content.d.ts +25 -0
- package/lib/prompt-content.js +27 -0
- package/lib/prompts.d.ts +45 -4
- package/lib/prompts.js +157 -43
- package/lib/recovery-policy.js +20 -7
- package/lib/role-control-remote.d.ts +38 -0
- package/lib/role-control-remote.js +211 -0
- package/lib/role-control-rpc.d.ts +51 -0
- package/lib/role-control-rpc.js +377 -0
- package/lib/role-control-types.d.ts +92 -0
- package/lib/role-control-types.js +8 -0
- package/lib/role-invocation.d.ts +47 -0
- package/lib/role-invocation.js +135 -0
- package/lib/role-llm-runtime.d.ts +17 -0
- package/lib/role-llm-runtime.js +62 -0
- package/lib/role-llm.d.ts +31 -0
- package/lib/role-llm.js +66 -0
- package/lib/role-policy.d.ts +92 -0
- package/lib/role-policy.js +601 -0
- package/lib/role-providers.d.ts +7 -3
- package/lib/role-providers.js +74 -46
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +135 -0
- package/lib/role-runs.js +304 -0
- package/lib/role-subagents.d.ts +63 -4
- package/lib/role-subagents.js +299 -47
- package/lib/roles.d.ts +20 -9
- package/lib/roles.js +87 -216
- package/lib/route-json.d.ts +19 -0
- package/lib/route-json.js +129 -0
- package/lib/routing-policy.d.ts +2 -0
- package/lib/routing-policy.js +12 -2
- package/lib/runtime-integration.d.ts +112 -0
- package/lib/runtime-integration.js +784 -0
- package/lib/runtime-recovery.js +34 -13
- package/lib/session-scope.js +2 -0
- package/lib/settings.d.ts +116 -14
- package/lib/settings.js +455 -149
- package/lib/skills.d.ts +24 -9
- package/lib/skills.js +114 -35
- package/lib/state.d.ts +10 -6
- package/lib/state.js +48 -49
- package/lib/status.d.ts +35 -1
- package/lib/status.js +58 -17
- package/lib/subagent-runtime.d.ts +45 -0
- package/lib/subagent-runtime.js +131 -0
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +112 -45
- package/patches/subagent-runtime.yml +15 -0
- package/prompts/deepseek-flash.md +1 -1
- package/prompts/deepseek-v4-pro.md +2 -2
- package/prompts/deepwork.md +153 -20
- package/prompts/source/agents/clarifier.md +47 -0
- package/prompts/source/agents/orchestrator.md +72 -0
- package/prompts/source/agents/plan-critic.md +29 -0
- package/prompts/source/agents/planner.md +21 -0
- package/prompts/source/agents/reviewer.md +23 -0
- package/prompts/source/catalog.json +548 -0
- package/prompts/source/category/coding.md +46 -0
- package/prompts/source/category/complex.md +29 -0
- package/prompts/source/category/creative.md +40 -0
- package/prompts/source/category/cross-cutting.md +54 -0
- package/prompts/source/category/deep.md +64 -0
- package/prompts/source/category/documenting.md +68 -0
- package/prompts/source/category/frontend.md +38 -0
- package/prompts/source/category/hard-reasoning.md +53 -0
- package/prompts/source/category/normal-task.md +27 -0
- package/prompts/source/category/quick.md +34 -0
- package/prompts/source/category/research.md +58 -0
- package/prompts/source/deepwork/claude-opus-5.md +28 -0
- package/prompts/source/deepwork/codex.md +9 -0
- package/prompts/source/deepwork/default.md +136 -0
- package/prompts/source/deepwork/gemini.md +191 -0
- package/prompts/source/deepwork/glm.md +263 -0
- package/prompts/source/deepwork/gpt.md +49 -0
- package/prompts/source/deepwork/kimi-k27.md +13 -0
- package/prompts/source/deepwork/planner.md +44 -0
- package/prompts/source/deepwork/swe-2.md +13 -0
- package/prompts/source/manifest.json +3233 -0
- package/prompts/source/shared/dsh-host-contract.md +8 -0
- package/prompts/source/shared/locale.md +8 -0
- package/prompts/source/shared/shell-safety.md +7 -0
- package/prompts/source/terminal/builder.md +13 -0
- package/prompts/source/terminal/clarifier.md +41 -0
- package/prompts/source/terminal/code-search.md +39 -0
- package/prompts/source/terminal/coding.md +41 -0
- package/prompts/source/terminal/complex.md +43 -0
- package/prompts/source/terminal/creative.md +41 -0
- package/prompts/source/terminal/cross-cutting.md +43 -0
- package/prompts/source/terminal/deep.md +43 -0
- package/prompts/source/terminal/doc-search.md +39 -0
- package/prompts/source/terminal/documenting.md +41 -0
- package/prompts/source/terminal/frontend.md +41 -0
- package/prompts/source/terminal/hard-reasoning.md +41 -0
- package/prompts/source/terminal/media-reader.md +39 -0
- package/prompts/source/terminal/normal-task.md +41 -0
- package/prompts/source/terminal/oracle-2nd.md +53 -0
- package/prompts/source/terminal/oracle.md +53 -0
- package/prompts/source/terminal/orchestrator.md +26 -0
- package/prompts/source/terminal/plan-critic.md +41 -0
- package/prompts/source/terminal/planner.md +42 -0
- package/prompts/source/terminal/quick.md +39 -0
- package/prompts/source/terminal/research.md +39 -0
- package/prompts/source/terminal/reviewer.md +53 -0
- package/scripts/cold-profile-composition.mjs +329 -0
- package/scripts/cold-profile-sources.mjs +238 -0
- package/scripts/migrate-cold-profile.mjs +315 -0
- package/skills/ast-grep/LICENSE +21 -0
- package/skills/ast-grep/README.md +138 -0
- package/skills/ast-grep/SKILL.md +287 -0
- package/skills/ast-grep/SOURCE +1 -0
- package/skills/ast-grep/install.ps1 +235 -0
- package/skills/ast-grep/install.sh +286 -0
- package/skills/ast-grep/references/cli.md +233 -0
- package/skills/ast-grep/references/install.md +168 -0
- package/skills/ast-grep/references/patterns.md +149 -0
- package/skills/ast-grep/references/pitfalls.md +305 -0
- package/skills/ast-grep/references/recipes.md +404 -0
- package/skills/ast-grep/references/sgconfig.md +250 -0
- package/skills/ast-grep/references/yaml-rules.md +511 -0
- package/skills/ast-grep/scripts/ast_grep_helper.py +760 -0
- package/skills/ast-grep/tests/smoke.ps1 +129 -0
- package/skills/ast-grep/tests/smoke.sh +212 -0
- package/skills/ast-grep/tests/test_resolver.py +154 -0
- package/skills/brainstorming/SKILL.md +123 -9
- package/skills/coding-agent-sessions/LICENSE-UPSTREAM.md +82 -0
- package/skills/coding-agent-sessions/NOTICE.md +24 -0
- package/skills/coding-agent-sessions/SKILL.md +147 -0
- package/skills/coding-agent-sessions/agents/openai.yaml +4 -0
- package/skills/coding-agent-sessions/pyrightconfig.json +5 -0
- package/skills/coding-agent-sessions/references/all-platforms.md +77 -0
- package/skills/coding-agent-sessions/references/claude.md +34 -0
- package/skills/coding-agent-sessions/references/codex.md +32 -0
- package/skills/coding-agent-sessions/references/opencode.md +45 -0
- package/skills/coding-agent-sessions/references/senpi.md +29 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +104 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
- package/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
- package/skills/coding-agent-sessions/scripts/tests/test_agent_sessions.py +322 -0
- package/skills/coding-agent-sessions/scripts/tests/test_aside_scanner.py +131 -0
- package/skills/coding-agent-sessions/scripts/tests/test_cli_contract.py +126 -0
- package/skills/coding-agent-sessions/scripts/tests/test_extended_scanners.py +262 -0
- package/skills/coding-agent-sessions/scripts/tests/test_optional_sqlite_scanners.py +79 -0
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -0
- package/skills/debugging/SKILL.md +130 -4
- package/skills/debugging/references/logging.md +2 -0
- package/skills/debugging/references/methodology/00-setup.md +16 -62
- package/skills/debugging/references/methodology/02-investigate.md +11 -5
- package/skills/debugging/references/methodology/03-flaky-triage.md +6 -4
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +6 -16
- package/skills/debugging/references/methodology/05-escalate.md +2 -0
- package/skills/debugging/references/methodology/06-fix.md +8 -6
- package/skills/debugging/references/methodology/08-qa.md +7 -5
- package/skills/debugging/references/methodology/09-cleanup.md +16 -152
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +7 -18
- package/skills/debugging/references/runtimes/bundled-js-binary.md +3 -16
- package/skills/debugging/references/runtimes/go.md +2 -0
- package/skills/debugging/references/runtimes/native-binary.md +11 -54
- package/skills/debugging/references/runtimes/node.md +6 -15
- package/skills/debugging/references/runtimes/python.md +5 -15
- package/skills/debugging/references/runtimes/rust.md +4 -18
- package/skills/debugging/references/scripts/dap.test.mjs +539 -0
- package/skills/debugging/references/scripts/fixture-adapter.mjs +164 -0
- package/skills/debugging/references/tools/dap.md +4 -2
- package/skills/debugging/references/tools/ghidra.md +6 -15
- package/skills/debugging/references/tools/playwright-cli.md +5 -15
- package/skills/debugging/references/tools/pwndbg.md +2 -0
- package/skills/debugging/references/tools/pwntools.md +6 -16
- package/skills/dispatching-parallel-agents/SKILL.md +96 -7
- package/skills/frontend/.frontend-materialized.json +856 -0
- package/skills/frontend/ATTRIBUTION.md +37 -0
- package/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/skills/frontend/LICENSE-taste-skill.txt +21 -0
- package/skills/frontend/LICENSE-ui-ux-pro-max.txt +21 -0
- package/skills/frontend/SKILL.md +145 -0
- package/skills/frontend/references/design/README.md +256 -0
- package/skills/frontend/references/design/_INDEX.md +206 -0
- package/skills/frontend/references/design/airbnb.md +393 -0
- package/skills/frontend/references/design/airtable.md +92 -0
- package/skills/frontend/references/design/apple.md +250 -0
- package/skills/frontend/references/design/aside.md +211 -0
- package/skills/frontend/references/design/binance.md +348 -0
- package/skills/frontend/references/design/bmw.md +183 -0
- package/skills/frontend/references/design/brutalist-skill.md +92 -0
- package/skills/frontend/references/design/bugatti.md +271 -0
- package/skills/frontend/references/design/cal.md +262 -0
- package/skills/frontend/references/design/claude.md +315 -0
- package/skills/frontend/references/design/clay.md +307 -0
- package/skills/frontend/references/design/clickhouse.md +284 -0
- package/skills/frontend/references/design/clone-from-url.md +69 -0
- package/skills/frontend/references/design/cohere.md +269 -0
- package/skills/frontend/references/design/coinbase.md +132 -0
- package/skills/frontend/references/design/composio.md +310 -0
- package/skills/frontend/references/design/cursor.md +312 -0
- package/skills/frontend/references/design/design-system-architecture.md +250 -0
- package/skills/frontend/references/design/elevenlabs.md +268 -0
- package/skills/frontend/references/design/expo.md +284 -0
- package/skills/frontend/references/design/ferrari.md +317 -0
- package/skills/frontend/references/design/figma.md +223 -0
- package/skills/frontend/references/design/framer.md +249 -0
- package/skills/frontend/references/design/gpt-tasteskill.md +74 -0
- package/skills/frontend/references/design/hashicorp.md +281 -0
- package/skills/frontend/references/design/ibm.md +335 -0
- package/skills/frontend/references/design/image-to-code-skill.md +1228 -0
- package/skills/frontend/references/design/imagegen-brandkit.md +798 -0
- package/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
- package/skills/frontend/references/design/imagegen-frontend-web.md +987 -0
- package/skills/frontend/references/design/interaction-skill.md +52 -0
- package/skills/frontend/references/design/intercom.md +149 -0
- package/skills/frontend/references/design/kraken.md +128 -0
- package/skills/frontend/references/design/lamborghini.md +291 -0
- package/skills/frontend/references/design/linear.app.md +370 -0
- package/skills/frontend/references/design/lovable.md +301 -0
- package/skills/frontend/references/design/mastercard.md +368 -0
- package/skills/frontend/references/design/meta.md +369 -0
- package/skills/frontend/references/design/minimalist-skill.md +85 -0
- package/skills/frontend/references/design/minimax.md +260 -0
- package/skills/frontend/references/design/mintlify.md +329 -0
- package/skills/frontend/references/design/miro.md +111 -0
- package/skills/frontend/references/design/mistral.ai.md +264 -0
- package/skills/frontend/references/design/mongodb.md +269 -0
- package/skills/frontend/references/design/nike.md +366 -0
- package/skills/frontend/references/design/notion.md +312 -0
- package/skills/frontend/references/design/nvidia.md +296 -0
- package/skills/frontend/references/design/ollama.md +270 -0
- package/skills/frontend/references/design/opencode.ai.md +284 -0
- package/skills/frontend/references/design/output-skill.md +49 -0
- package/skills/frontend/references/design/pinterest.md +233 -0
- package/skills/frontend/references/design/playstation.md +367 -0
- package/skills/frontend/references/design/posthog.md +259 -0
- package/skills/frontend/references/design/raycast.md +271 -0
- package/skills/frontend/references/design/react-dev-tooling-skill.md +232 -0
- package/skills/frontend/references/design/redesign-skill.md +178 -0
- package/skills/frontend/references/design/renault.md +314 -0
- package/skills/frontend/references/design/replicate.md +264 -0
- package/skills/frontend/references/design/resend.md +306 -0
- package/skills/frontend/references/design/revolut.md +188 -0
- package/skills/frontend/references/design/runwayml.md +247 -0
- package/skills/frontend/references/design/sanity.md +360 -0
- package/skills/frontend/references/design/sentry.md +265 -0
- package/skills/frontend/references/design/shopify.md +353 -0
- package/skills/frontend/references/design/soft-skill.md +98 -0
- package/skills/frontend/references/design/spacex.md +197 -0
- package/skills/frontend/references/design/spotify.md +249 -0
- package/skills/frontend/references/design/starbucks.md +583 -0
- package/skills/frontend/references/design/stitch-design-example.md +121 -0
- package/skills/frontend/references/design/stitch-skill.md +184 -0
- package/skills/frontend/references/design/stripe.md +325 -0
- package/skills/frontend/references/design/supabase.md +258 -0
- package/skills/frontend/references/design/superhuman.md +255 -0
- package/skills/frontend/references/design/taste-skill.md +1206 -0
- package/skills/frontend/references/design/tesla.md +289 -0
- package/skills/frontend/references/design/theverge.md +342 -0
- package/skills/frontend/references/design/together.ai.md +266 -0
- package/skills/frontend/references/design/uber.md +298 -0
- package/skills/frontend/references/design/vercel.md +313 -0
- package/skills/frontend/references/design/vodafone.md +426 -0
- package/skills/frontend/references/design/voltagent.md +326 -0
- package/skills/frontend/references/design/warp.md +256 -0
- package/skills/frontend/references/design/webflow.md +95 -0
- package/skills/frontend/references/design/wired.md +281 -0
- package/skills/frontend/references/design/wise.md +176 -0
- package/skills/frontend/references/design/x.ai.md +260 -0
- package/skills/frontend/references/design/zapier.md +331 -0
- package/skills/frontend/references/perfection/README.md +264 -0
- package/skills/frontend/references/perfection/react-perf-tooling.md +234 -0
- package/skills/frontend/references/ui-ux-db/README.md +659 -0
- package/skills/frontend/references/ui-ux-db/data/app-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/google-fonts.csv +1924 -0
- package/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
- package/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
- package/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/angular.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/laravel.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/threejs.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
- package/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
- package/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
- package/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
- package/skills/git-master/SKILL.md +115 -0
- package/skills/git-master/agents/openai.yaml +13 -0
- package/skills/init-deep/SKILL.md +282 -0
- package/skills/receiving-code-review/SKILL.md +117 -7
- package/skills/remove-ai-slops/SKILL.md +160 -8
- package/skills/requesting-code-review/SKILL.md +98 -3
- package/skills/requesting-code-review/code-reviewer.md +59 -0
- package/skills/subagent-driven-development/SKILL.md +179 -6
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
- package/skills/subagent-driven-development/implementer-prompt.md +87 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +37 -0
- package/skills/using-git-worktrees/SKILL.md +144 -0
- package/skills/writing-plans/SKILL.md +126 -7
- package/skills/writing-plans/plan-document-reviewer-prompt.md +47 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { PermissionClientError } from "./permission-client.js";
|
|
2
|
+
const draftOf = (policy) => ({ outsideReads: policy.outsideReads, webSearch: { ...policy.webSearch }, webFetch: { ...policy.webFetch }, upsert: [], revoke: [], editor: null });
|
|
3
|
+
const same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
4
|
+
export function permissionChanges(view) {
|
|
5
|
+
const { base, draft } = view;
|
|
6
|
+
if (base === null || draft === null)
|
|
7
|
+
return null;
|
|
8
|
+
const changes = Object.fromEntries(["outsideReads", "webSearch", "webFetch"].filter(key => !same(base.policy[key], draft[key])).map(key => [key, draft[key]]));
|
|
9
|
+
if (Object.keys(changes).length === 0 && draft.upsert.length === 0 && draft.revoke.length === 0)
|
|
10
|
+
return null;
|
|
11
|
+
return { expectedRevision: base.revision, ...(Object.keys(changes).length ? { changes } : {}), ...(draft.upsert.length ? { upsert: draft.upsert } : {}), ...(draft.revoke.length ? { revoke: draft.revoke } : {}) };
|
|
12
|
+
}
|
|
13
|
+
const empty = () => ({ generation: 0, sessionId: null, scope: "unknown", connected: false, reading: false, busy: null,
|
|
14
|
+
rules: null, base: null, draft: null, rulesIssue: null, dirty: false, notice: null });
|
|
15
|
+
/** Borrowed native selection plus last-observed C state; never a Root or policy authority. */
|
|
16
|
+
export class PermissionController {
|
|
17
|
+
state = empty();
|
|
18
|
+
listeners = new Set();
|
|
19
|
+
invoke = null;
|
|
20
|
+
connection;
|
|
21
|
+
owner = null;
|
|
22
|
+
request = new AbortController();
|
|
23
|
+
requestSequence = 0;
|
|
24
|
+
timer;
|
|
25
|
+
watchers = 0;
|
|
26
|
+
disposed = false;
|
|
27
|
+
store = { getSnapshot: () => this.state, subscribe: (listener) => { this.listeners.add(listener); return () => { this.listeners.delete(listener); }; } };
|
|
28
|
+
publish(patch) { if (this.disposed)
|
|
29
|
+
return; this.state = { ...this.state, ...patch }; for (const listener of this.listeners)
|
|
30
|
+
listener(); }
|
|
31
|
+
cancel() { this.request.abort(); this.request = new AbortController(); this.requestSequence++; clearTimeout(this.timer); }
|
|
32
|
+
fence(preserve) {
|
|
33
|
+
this.cancel();
|
|
34
|
+
this.publish({ generation: this.state.generation + 1, reading: false, busy: null, notice: null,
|
|
35
|
+
rules: null, rulesIssue: null, ...preserve ? {} : { base: null, draft: null, dirty: false } });
|
|
36
|
+
}
|
|
37
|
+
bindConnection(invoke, generation) {
|
|
38
|
+
if (this.disposed || this.invoke === invoke && this.connection === generation)
|
|
39
|
+
return;
|
|
40
|
+
this.invoke = invoke;
|
|
41
|
+
this.connection = generation;
|
|
42
|
+
this.fence(true);
|
|
43
|
+
this.publish({ connected: invoke !== null });
|
|
44
|
+
this.schedule(true);
|
|
45
|
+
}
|
|
46
|
+
bindScope(sessionId, owner, scope) {
|
|
47
|
+
if (this.disposed || this.state.sessionId === sessionId && this.owner === owner && this.state.scope === scope)
|
|
48
|
+
return;
|
|
49
|
+
const preserve = sessionId === this.state.sessionId;
|
|
50
|
+
this.owner = owner;
|
|
51
|
+
this.fence(preserve);
|
|
52
|
+
this.publish({ sessionId, scope });
|
|
53
|
+
this.schedule(true);
|
|
54
|
+
}
|
|
55
|
+
watch() {
|
|
56
|
+
this.watchers++;
|
|
57
|
+
if (this.watchers === 1)
|
|
58
|
+
this.schedule(true);
|
|
59
|
+
let active = true;
|
|
60
|
+
return () => { if (!active)
|
|
61
|
+
return; active = false; this.watchers--; if (this.watchers === 0)
|
|
62
|
+
this.fence(true); };
|
|
63
|
+
}
|
|
64
|
+
dispose() { if (this.disposed)
|
|
65
|
+
return; this.fence(false); this.disposed = true; this.listeners.clear(); this.invoke = null; this.owner = null; }
|
|
66
|
+
live(generation) { return !this.disposed && generation === this.state.generation && this.owner !== null && this.invoke !== null && this.state.scope === "root" && this.state.sessionId !== null; }
|
|
67
|
+
schedule(immediate = false) {
|
|
68
|
+
clearTimeout(this.timer);
|
|
69
|
+
if (this.watchers === 0 || !this.live(this.state.generation))
|
|
70
|
+
return;
|
|
71
|
+
this.timer = setTimeout(() => { void this.refresh(this.state.generation); }, immediate ? 0 : 1000);
|
|
72
|
+
this.timer.unref?.();
|
|
73
|
+
}
|
|
74
|
+
issue(error) { return error instanceof PermissionClientError ? error.code : "transport"; }
|
|
75
|
+
synchronized() {
|
|
76
|
+
const value = this.state.rules;
|
|
77
|
+
return value !== null && value.runtime.state === "synced" && value.runtime.savedRevision === value.snapshot.revision && value.runtime.runtimeRevision === value.snapshot.revision;
|
|
78
|
+
}
|
|
79
|
+
canSave(generation) { return this.live(generation) && this.state.rulesIssue === null && this.synchronized() && !this.state.reading && this.state.busy === null && this.state.dirty && this.state.draft?.editor === null; }
|
|
80
|
+
async refresh(generation, discard = false) {
|
|
81
|
+
if (!this.live(generation) || this.state.reading || this.state.busy !== null)
|
|
82
|
+
return;
|
|
83
|
+
const sequence = ++this.requestSequence, signal = this.request.signal, id = this.state.sessionId;
|
|
84
|
+
this.publish({ reading: true });
|
|
85
|
+
const [rules] = await Promise.allSettled([this.invoke("describeRules", [id], signal)]);
|
|
86
|
+
if (!this.live(generation) || signal.aborted || sequence !== this.requestSequence)
|
|
87
|
+
return;
|
|
88
|
+
if (rules.status === "rejected") {
|
|
89
|
+
this.publish({ rules: null, rulesIssue: this.issue(rules.reason), reading: false });
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
const value = rules.value;
|
|
93
|
+
const retain = this.state.dirty && !discard;
|
|
94
|
+
this.publish({ rules: value, rulesIssue: retain && this.state.base?.revision !== value.snapshot.revision ? "stale" : null,
|
|
95
|
+
reading: false,
|
|
96
|
+
...retain ? {} : { base: value.snapshot, draft: draftOf(value.snapshot.policy), dirty: false } });
|
|
97
|
+
}
|
|
98
|
+
this.schedule();
|
|
99
|
+
}
|
|
100
|
+
edit(generation, patch) {
|
|
101
|
+
if (this.disposed || generation !== this.state.generation || this.state.draft === null || this.state.busy !== null)
|
|
102
|
+
return;
|
|
103
|
+
const draft = { ...this.state.draft, ...patch };
|
|
104
|
+
this.publish({ draft, notice: null });
|
|
105
|
+
this.publish({ dirty: draft.editor !== null || permissionChanges(this.state) !== null });
|
|
106
|
+
}
|
|
107
|
+
stageRule(generation) {
|
|
108
|
+
const draft = this.state.draft, editor = draft?.editor;
|
|
109
|
+
if (editor == null || !editor.id || editor.id.length > 256 || editor.id.includes("\0"))
|
|
110
|
+
return;
|
|
111
|
+
const match = editor.match;
|
|
112
|
+
if (match.kind === "outside-read" && !match.path || match.kind === "shell" && (!match.executable || !match.command || !match.workingDirectory))
|
|
113
|
+
return;
|
|
114
|
+
this.edit(generation, { upsert: [...draft.upsert.filter(row => row.id !== editor.id), structuredClone(editor)], revoke: draft.revoke.filter(id => id !== editor.id), editor: null });
|
|
115
|
+
}
|
|
116
|
+
stageRevoke(generation, id) {
|
|
117
|
+
const draft = this.state.draft;
|
|
118
|
+
if (draft === null || !this.state.base?.policy.rules.some(rule => rule.id === id))
|
|
119
|
+
return;
|
|
120
|
+
this.edit(generation, { upsert: draft.upsert.filter(row => row.id !== id), revoke: [...new Set([...draft.revoke, id])], editor: draft.editor?.id === id ? null : draft.editor });
|
|
121
|
+
}
|
|
122
|
+
begin(busy) {
|
|
123
|
+
this.cancel();
|
|
124
|
+
this.publish({ busy, notice: null });
|
|
125
|
+
return { signal: this.request.signal, id: this.state.sessionId };
|
|
126
|
+
}
|
|
127
|
+
async save(generation) {
|
|
128
|
+
const request = permissionChanges(this.state);
|
|
129
|
+
if (!this.canSave(generation) || request === null)
|
|
130
|
+
return;
|
|
131
|
+
const current = this.begin("save");
|
|
132
|
+
try {
|
|
133
|
+
const result = await this.invoke("saveRules", [current.id, request], current.signal);
|
|
134
|
+
if (this.live(generation))
|
|
135
|
+
this.publish({ rules: result, base: result.snapshot, draft: draftOf(result.snapshot.policy), dirty: false, rulesIssue: null, notice: "saved" });
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
if (this.live(generation))
|
|
139
|
+
this.publish({ rules: null, rulesIssue: this.issue(error) });
|
|
140
|
+
}
|
|
141
|
+
finally {
|
|
142
|
+
if (this.live(generation)) {
|
|
143
|
+
this.publish({ busy: null });
|
|
144
|
+
this.schedule();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=permission-controller.js.map
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export declare const PERMISSIONS_NS = "settings.dsmm-permissions";
|
|
2
|
+
export declare const permissionEn: {
|
|
3
|
+
title: string;
|
|
4
|
+
rules: string;
|
|
5
|
+
nativeApproval: string;
|
|
6
|
+
root: string;
|
|
7
|
+
noRoot: string;
|
|
8
|
+
child: string;
|
|
9
|
+
unknown: string;
|
|
10
|
+
reading: string;
|
|
11
|
+
busy: string;
|
|
12
|
+
executable: string;
|
|
13
|
+
command: string;
|
|
14
|
+
cwd: string;
|
|
15
|
+
id: string;
|
|
16
|
+
action: string;
|
|
17
|
+
match: string;
|
|
18
|
+
outsideReads: string;
|
|
19
|
+
webSearch: string;
|
|
20
|
+
webFetch: string;
|
|
21
|
+
enabled: string;
|
|
22
|
+
rule: string;
|
|
23
|
+
inherit: string;
|
|
24
|
+
"action:allow": string;
|
|
25
|
+
"action:ask": string;
|
|
26
|
+
"action:deny": string;
|
|
27
|
+
"kind:outside-read": string;
|
|
28
|
+
"kind:shell": string;
|
|
29
|
+
"kind:webSearch": string;
|
|
30
|
+
"kind:webFetch": string;
|
|
31
|
+
path: string;
|
|
32
|
+
pathScope: string;
|
|
33
|
+
exact: string;
|
|
34
|
+
tree: string;
|
|
35
|
+
networkLimit: string;
|
|
36
|
+
rulesHint: string;
|
|
37
|
+
matchHint: string;
|
|
38
|
+
source: string;
|
|
39
|
+
recordVersion: string;
|
|
40
|
+
savedAt: string;
|
|
41
|
+
operator: string;
|
|
42
|
+
imported: string;
|
|
43
|
+
active: string;
|
|
44
|
+
revoked: string;
|
|
45
|
+
base: string;
|
|
46
|
+
savedRevision: string;
|
|
47
|
+
runtimeRevision: string;
|
|
48
|
+
runtime: string;
|
|
49
|
+
synced: string;
|
|
50
|
+
updating: string;
|
|
51
|
+
unsynced: string;
|
|
52
|
+
mounted: string;
|
|
53
|
+
on: string;
|
|
54
|
+
off: string;
|
|
55
|
+
restart: string;
|
|
56
|
+
coverageTitle: string;
|
|
57
|
+
coverage: string;
|
|
58
|
+
coverageUnavailable: string;
|
|
59
|
+
coverageEmpty: string;
|
|
60
|
+
coverageRuntime: string;
|
|
61
|
+
coverageRevision: string;
|
|
62
|
+
toolName: string;
|
|
63
|
+
toolKind: string;
|
|
64
|
+
toolApproval: string;
|
|
65
|
+
nativeOnce: string;
|
|
66
|
+
toolMemory: string;
|
|
67
|
+
notProvided: string;
|
|
68
|
+
finalInode: string;
|
|
69
|
+
searchDestinations: string;
|
|
70
|
+
proxyBinding: string;
|
|
71
|
+
shellSockets: string;
|
|
72
|
+
providerAuthMcp: string;
|
|
73
|
+
"limit:outsideReads": string;
|
|
74
|
+
"limit:finalInode": string;
|
|
75
|
+
"limit:scopedMemory": string;
|
|
76
|
+
"limit:webFetch": string;
|
|
77
|
+
"limit:webSearchDestinations": string;
|
|
78
|
+
"limit:proxyAddressBinding": string;
|
|
79
|
+
"limit:shellSockets": string;
|
|
80
|
+
"limit:providerAuthMcp": string;
|
|
81
|
+
pathEvidence: string;
|
|
82
|
+
newRule: string;
|
|
83
|
+
editRule: string;
|
|
84
|
+
stage: string;
|
|
85
|
+
cancel: string;
|
|
86
|
+
stageRevoke: string;
|
|
87
|
+
unstage: string;
|
|
88
|
+
editor: string;
|
|
89
|
+
staged: string;
|
|
90
|
+
noRules: string;
|
|
91
|
+
save: string;
|
|
92
|
+
discard: string;
|
|
93
|
+
dirty: string;
|
|
94
|
+
saved: string;
|
|
95
|
+
"issue:not-owned": string;
|
|
96
|
+
"issue:stale": string;
|
|
97
|
+
"issue:cancelled": string;
|
|
98
|
+
"issue:unavailable": string;
|
|
99
|
+
"issue:validation": string;
|
|
100
|
+
"issue:not-found": string;
|
|
101
|
+
"issue:scope-unavailable": string;
|
|
102
|
+
"issue:replayed": string;
|
|
103
|
+
"issue:denied": string;
|
|
104
|
+
"issue:transport": string;
|
|
105
|
+
"issue:protocol": string;
|
|
106
|
+
};
|
|
107
|
+
export type PermissionLocaleKey = keyof typeof permissionEn;
|
|
108
|
+
export declare const permissionZh: Record<PermissionLocaleKey, string>;
|
|
109
|
+
declare module "@deepseek-ai/dsh-client-ui-slots" {
|
|
110
|
+
interface LocaleNamespaceMap {
|
|
111
|
+
"settings.dsmm-permissions": PermissionLocaleKey;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=permission-locales.d.ts.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export const PERMISSIONS_NS = "settings.dsmm-permissions";
|
|
2
|
+
export const permissionEn = {
|
|
3
|
+
title: "Permission control", rules: "Global permission rules",
|
|
4
|
+
nativeApproval: "Command approval uses the native prompt. Configure exact nativeCommands in deployment settings; ordinary Allow is once only.",
|
|
5
|
+
root: "Selected native Root session", noRoot: "Select a trusted Root session in native session navigation. No Root is inferred from task or model text.",
|
|
6
|
+
child: "This is a child session. Select its Root in native session navigation to edit Global rules.",
|
|
7
|
+
unknown: "Unavailable / unknown", reading: "Reading…", busy: "Operation pending…",
|
|
8
|
+
executable: "Native Shell registration identity (exact)", command: "Full command (exact)", cwd: "Working directory (exact)", id: "Rule ID", action: "Rule action", match: "Match kind",
|
|
9
|
+
outsideReads: "Outside-workspace reads", webSearch: "Web search", webFetch: "Web fetch", enabled: "Enabled", rule: "Coarse rule",
|
|
10
|
+
inherit: "Inherit native policy", "action:allow": "Allow", "action:ask": "Ask", "action:deny": "Deny",
|
|
11
|
+
"kind:outside-read": "Outside-workspace read", "kind:shell": "Shell operation", "kind:webSearch": "Web search", "kind:webFetch": "Web fetch",
|
|
12
|
+
path: "Canonical path", pathScope: "Path match", exact: "Exact path", tree: "Path and descendants",
|
|
13
|
+
networkLimit: "SDK network boundary: allowing public web fetch does not allow private-network destinations. These web policies are not an all-shell or socket firewall.",
|
|
14
|
+
rulesHint: "Rules Save writes Global policy. Native overrides are not cleared automatically; a refusal keeps this draft. Enabled is startup-pinned and edited separately in deployment settings. Command enhancement and its exact entries are configured there too.",
|
|
15
|
+
matchHint: "Rules match actual canonical paths (exact/tree), the native Shell registration identity plus full command/cwd, or web kind. Rule Allow only satisfies that rule; it does not grant external writes. Different IDs add records until explicitly revoked.",
|
|
16
|
+
source: "Actual source", recordVersion: "Record version", savedAt: "Saved at", operator: "Verified Host operator", imported: "User import", active: "Active record", revoked: "Revoked record",
|
|
17
|
+
base: "Draft CAS source", savedRevision: "Saved source", runtimeRevision: "Runtime source", runtime: "Runtime synchronization", synced: "Synced", updating: "Updating", unsynced: "Unsynced — rules saves locked",
|
|
18
|
+
mounted: "Startup mounted", on: "On", off: "Off", restart: "Independent restart required",
|
|
19
|
+
coverageTitle: "Observed trusted tool coverage", coverage: "Last observed for this Root from trusted registrations and the native rule consumer, separately from source synchronization. Saved, synced, mounted or a matching tool name does not prove coverage. Listed registrations do not prove executor readiness, network reachability or final-body ownership.",
|
|
20
|
+
coverageUnavailable: "Coverage unavailable / unknown. No trusted live observation was returned.", coverageEmpty: "No trusted tool registrations observed for this Root.",
|
|
21
|
+
coverageRuntime: "Observed consumer state", coverageRevision: "Observed consumer runtime source", toolName: "Observed tool name", toolKind: "Trusted registration kind",
|
|
22
|
+
toolApproval: "Approval boundary", nativeOnce: "Native prompt — once only", toolMemory: "Scoped approval memory", notProvided: "Not provided",
|
|
23
|
+
finalInode: "Final-inode / full filesystem guarantee", searchDestinations: "Web search destination rules", proxyBinding: "Proxy / address binding", shellSockets: "Shell / socket isolation", providerAuthMcp: "Provider authentication / MCP",
|
|
24
|
+
"limit:outsideReads": "Tool-call boundary only; no complete filesystem confinement.", "limit:finalInode": "Not guaranteed.",
|
|
25
|
+
"limit:scopedMemory": "Not provided by native rules.", "limit:webFetch": "Native public-address checks remain authoritative; private-network access is not granted.",
|
|
26
|
+
"limit:webSearchDestinations": "Unsupported.", "limit:proxyAddressBinding": "Depends on the native proxy; no stronger address-binding guarantee.",
|
|
27
|
+
"limit:shellSockets": "Depends on the native executor; no all-Shell or socket firewall.", "limit:providerAuthMcp": "Not covered by these rules.",
|
|
28
|
+
pathEvidence: "Path evidence: read uses its actual scoped native FS. Glob/grep's production rg executor coLocation remains unproven; trusted registration is not shared-path proof. Shell read interpretation and path checks depend on explicit native executor evidence. No final-inode, full-filesystem or socket guarantee.",
|
|
29
|
+
newRule: "Add exact-match rule", editRule: "Edit rule", stage: "Stage rule", cancel: "Cancel rule edit", stageRevoke: "Stage revocation", unstage: "Remove staged change",
|
|
30
|
+
editor: "Rule draft", staged: "Staged changes — not saved", noRules: "No persisted rule records.", save: "Save Global rules", discard: "Discard draft and reload", dirty: "Unsaved rules draft", saved: "Host accepted Global rules. Check runtime synchronization below.",
|
|
31
|
+
"issue:not-owned": "Root/operator/readonly authority refused. Select the intended Root and refresh.",
|
|
32
|
+
"issue:stale": "Source conflict. Draft retained. Review, then explicitly discard and reload.",
|
|
33
|
+
"issue:cancelled": "Operation cancelled; refresh actual saved state.",
|
|
34
|
+
"issue:unavailable": "Service or runtime unavailable. Draft retained; saved and runtime state may differ.",
|
|
35
|
+
"issue:validation": "Host refused the rule. Draft retained; check exact fields and native overrides.",
|
|
36
|
+
"issue:not-found": "The rule no longer exists.",
|
|
37
|
+
"issue:scope-unavailable": "The requested operation is unavailable.", "issue:replayed": "The operation is no longer current.",
|
|
38
|
+
"issue:denied": "Current Root policy denied this operation. No local bypass is available.",
|
|
39
|
+
"issue:transport": "Connection lost or outcome unconfirmed. Draft retained; refresh actual saved/runtime state.",
|
|
40
|
+
"issue:protocol": "Untrusted or mismatched service response. Refresh or reconnect.",
|
|
41
|
+
};
|
|
42
|
+
export const permissionZh = {
|
|
43
|
+
title: "权限控制", rules: "全局权限规则",
|
|
44
|
+
nativeApproval: "命令批准使用原生提示。精确 nativeCommands 在部署设置配置;普通 Allow 仅批准本次。",
|
|
45
|
+
root: "当前原生 Root 会话", noRoot: "请在原生会话导航中选择可信 Root 会话;不从任务或模型文本推断 Root。", child: "当前为 child 会话;编辑全局规则请在原生导航选择其 Root。",
|
|
46
|
+
unknown: "不可用/未知", reading: "正在读取…", busy: "操作处理中…",
|
|
47
|
+
executable: "原生 Shell 注册身份(精确匹配)", command: "完整命令(精确匹配)", cwd: "工作目录(精确匹配)", id: "规则 ID", action: "规则动作", match: "匹配类型",
|
|
48
|
+
outsideReads: "工作区外读取", webSearch: "网页搜索", webFetch: "网页抓取", enabled: "启用", rule: "粗粒度规则",
|
|
49
|
+
inherit: "继承原生策略", "action:allow": "允许", "action:ask": "询问", "action:deny": "拒绝",
|
|
50
|
+
"kind:outside-read": "工作区外读取", "kind:shell": "Shell 操作", "kind:webSearch": "网页搜索", "kind:webFetch": "网页抓取",
|
|
51
|
+
path: "规范路径", pathScope: "路径匹配", exact: "精确路径", tree: "此路径及子树",
|
|
52
|
+
networkLimit: "SDK 网络边界:允许 public web fetch 不代表放行私网目标;这些网页策略不是全部 Shell 或 socket 的防火墙。",
|
|
53
|
+
rulesHint: "规则保存仅写 Global 策略,不会自动清除 native 覆盖;拒绝时保留草稿。enabled 仅启动时捕获,另在部署设置编辑;命令增强及精确条目也在部署设置配置。",
|
|
54
|
+
matchHint: "规则匹配实际规范路径、原生 Shell 注册身份+完整命令+工作目录,或网页类型。规则 Allow 仅满足该规则,不授予外部写。不同 ID 添加记录,保留至显式撤销。",
|
|
55
|
+
source: "实际来源", recordVersion: "记录版本", savedAt: "保存时间", operator: "宿主已核验 operator", imported: "用户导入", active: "有效记录", revoked: "已撤销记录",
|
|
56
|
+
base: "草稿 CAS 来源", savedRevision: "已保存来源", runtimeRevision: "运行时来源", runtime: "运行时同步", synced: "已同步", updating: "同步中", unsynced: "未同步——规则保存已锁定",
|
|
57
|
+
mounted: "启动时已挂载", on: "开启", off: "关闭", restart: "需要另行重启",
|
|
58
|
+
coverageTitle: "已观测的可信工具覆盖", coverage: "此 Root 最近一次可信注册及原生规则 consumer 观测,与来源同步分开。已保存、已同步、已挂载或工具同名均不证明覆盖;所列注册不证明执行器就绪、网络可达或最终 body 归属。",
|
|
59
|
+
coverageUnavailable: "覆盖不可用/未知:未返回可信的实时观测。", coverageEmpty: "未观测到此 Root 的可信工具注册。",
|
|
60
|
+
coverageRuntime: "已观测 consumer 状态", coverageRevision: "已观测 consumer 运行时来源", toolName: "已观测工具名称", toolKind: "可信注册类型",
|
|
61
|
+
toolApproval: "批准边界", nativeOnce: "原生提示——仅本次", toolMemory: "作用域批准记忆", notProvided: "不提供",
|
|
62
|
+
finalInode: "最终 inode/完整文件系统保证", searchDestinations: "网页搜索目标规则", proxyBinding: "代理/地址绑定", shellSockets: "Shell/socket 隔离", providerAuthMcp: "Provider 认证/MCP",
|
|
63
|
+
"limit:outsideReads": "仅工具调用边界,不是完整文件系统隔离。", "limit:finalInode": "不保证。",
|
|
64
|
+
"limit:scopedMemory": "原生规则不提供。", "limit:webFetch": "仍以原生 public-address 检查为准,不授予私网访问。",
|
|
65
|
+
"limit:webSearchDestinations": "不支持。", "limit:proxyAddressBinding": "依赖原生代理,不提供更强的地址绑定保证。",
|
|
66
|
+
"limit:shellSockets": "依赖原生执行器,不是全部 Shell 或 socket 的防火墙。", "limit:providerAuthMcp": "不在这些规则覆盖范围。",
|
|
67
|
+
pathEvidence: "路径证据:read 使用其实际 scope 的原生 FS。glob/grep 的生产 rg 执行器 coLocation 仍未证明;可信注册不等于共享路径证据。Shell 读取解析及路径检查依赖明确的原生执行器证据。不保证最终 inode、完整文件系统或 socket 隔离。",
|
|
68
|
+
newRule: "添加精确匹配规则", editRule: "编辑规则", stage: "暂存规则", cancel: "取消规则编辑", stageRevoke: "暂存撤销", unstage: "移除暂存更改",
|
|
69
|
+
editor: "规则草稿", staged: "暂存更改——尚未保存", noRules: "尚无持久化规则记录。", save: "保存全局规则", discard: "丢弃草稿并重载", dirty: "规则草稿未保存", saved: "宿主已接受全局规则,请核对运行时同步状态。",
|
|
70
|
+
"issue:not-owned": "Root/operator/只读权限拒绝,请选择目标 Root 后刷新。", "issue:stale": "来源冲突,草稿保留;核对后显式丢弃并重载。", "issue:cancelled": "操作已取消,请刷新实际保存状态。",
|
|
71
|
+
"issue:unavailable": "服务或运行时不可用,草稿保留;已保存与运行时可能不同。", "issue:validation": "宿主拒绝规则,草稿保留;请核对精确字段与原生覆盖。", "issue:not-found": "规则已不存在。",
|
|
72
|
+
"issue:scope-unavailable": "所请求的操作不可用。", "issue:replayed": "操作已不再有效。", "issue:denied": "当前 Root 策略拒绝操作,没有本地绕过入口。",
|
|
73
|
+
"issue:transport": "连接中断或结果未确认,草稿保留;请刷新实际保存/运行时状态。", "issue:protocol": "服务响应不可信或不匹配,请刷新或重连。",
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=permission-locales.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { NativePageForm } from "./deployment-controller.js";
|
|
2
|
+
/** rc.2 and 0.2.1-alpha.1 public shared Plugins owner contracts; no runtime import. */
|
|
3
|
+
interface PluginConfigViewProps {
|
|
4
|
+
readonly view: "summary" | "page";
|
|
5
|
+
readonly form?: NativePageForm;
|
|
6
|
+
}
|
|
7
|
+
declare module "@deepseek-ai/dsh-client-ui-slots" {
|
|
8
|
+
interface SlotMap {
|
|
9
|
+
"plugins.item": {
|
|
10
|
+
kind: "list";
|
|
11
|
+
scope: "root";
|
|
12
|
+
owner: PluginConfigViewProps;
|
|
13
|
+
};
|
|
14
|
+
"plugins.bundle.config": {
|
|
15
|
+
kind: "keyed";
|
|
16
|
+
scope: "root";
|
|
17
|
+
owner: PluginConfigViewProps;
|
|
18
|
+
};
|
|
19
|
+
"plugins.row.config": {
|
|
20
|
+
kind: "keyed";
|
|
21
|
+
scope: "root";
|
|
22
|
+
owner: PluginConfigViewProps;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=plugins-contract.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/** Presentation only: admitted identity never substitutes for sidecar CAS. */
|
|
2
2
|
export function sessionProfileLabels(session, t) {
|
|
3
3
|
const admitted = session.admittedSelection;
|
|
4
|
-
const profile = admitted === undefined
|
|
5
|
-
:
|
|
6
|
-
: t("sessionAdmittedProfile", { id:
|
|
4
|
+
const profile = admitted === undefined ? t("sessionGlobalCaptured")
|
|
5
|
+
: admitted.selectedId === null ? t("sessionBaseline")
|
|
6
|
+
: t("sessionAdmittedProfile", { id: admitted.selectedId, revision: admitted.appliedRevision ?? "—" });
|
|
7
7
|
const future = session.globalDefault;
|
|
8
8
|
return {
|
|
9
9
|
admitted: t("sessionState", { id: session.sessionId, profile, scope: session.scope, epoch: session.admissionEpoch }),
|
|
10
|
-
futureDefault: t("sessionFutureDefault", { profile: future.selectedId === null ? t("sessionBaseline") : t("sessionAdmittedProfile", { id: future.selectedId, revision: future.appliedRevision
|
|
10
|
+
futureDefault: t("sessionFutureDefault", { profile: future.selectedId === null ? t("sessionBaseline") : t("sessionAdmittedProfile", { id: future.selectedId, revision: future.appliedRevision ?? "—" }) }),
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=session-labels.js.map
|
package/lib/client/structured.js
CHANGED
|
@@ -3,10 +3,13 @@ import { normalizeRateLimitOverrides, normalizeRoutingStrategy } from "../routin
|
|
|
3
3
|
function record(value) {
|
|
4
4
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
5
5
|
}
|
|
6
|
+
// Project known control fields; opaque parameters remain raw for Host validation.
|
|
6
7
|
function route(value) {
|
|
7
8
|
return record(value) && typeof value.provider === "string" && typeof value.model === "string"
|
|
8
|
-
&& (value.reasoningEffort === undefined || typeof value.reasoningEffort === "string")
|
|
9
|
-
|
|
9
|
+
&& (value.reasoningEffort === undefined || typeof value.reasoningEffort === "string");
|
|
10
|
+
}
|
|
11
|
+
function level(value) {
|
|
12
|
+
return route(value) || record(value) && value.provider === undefined && value.model === undefined && typeof value.reasoningEffort === "string";
|
|
10
13
|
}
|
|
11
14
|
function validTree(node, depth = 0) {
|
|
12
15
|
if (depth > 32)
|
|
@@ -35,6 +38,14 @@ export function structuredDocument(content) {
|
|
|
35
38
|
const settings = document.settings;
|
|
36
39
|
if (settings.defaultActive !== undefined && typeof settings.defaultActive !== "boolean")
|
|
37
40
|
return null;
|
|
41
|
+
if (settings.locale !== undefined && typeof settings.locale !== "string")
|
|
42
|
+
return null;
|
|
43
|
+
if (settings.roles !== undefined && (!record(settings.roles) || !Object.values(settings.roles).every(value => typeof value === "boolean")))
|
|
44
|
+
return null;
|
|
45
|
+
if (settings.subagents !== undefined && (!record(settings.subagents) || Object.keys(settings.subagents).some(key => key !== "toolTopology")
|
|
46
|
+
|| settings.subagents.toolTopology !== undefined && (typeof settings.subagents.toolTopology !== "string"
|
|
47
|
+
|| !["per-role", "parameterized"].includes(settings.subagents.toolTopology))))
|
|
48
|
+
return null;
|
|
38
49
|
if (settings.roleRouting !== undefined && !record(settings.roleRouting))
|
|
39
50
|
return null;
|
|
40
51
|
if (settings.runtimePolicy !== undefined && !record(settings.runtimePolicy))
|
|
@@ -48,8 +59,11 @@ export function structuredDocument(content) {
|
|
|
48
59
|
normalizeRoutingStrategy(runtimePolicy.strategy);
|
|
49
60
|
if (runtimePolicy.rateLimit !== undefined)
|
|
50
61
|
normalizeRateLimitOverrides(runtimePolicy.rateLimit);
|
|
51
|
-
for (const raw of Object.
|
|
52
|
-
if (!record(raw) || Object.keys(raw).some((key) => !["primary", "fallbackRoutes", "strategy", "rateLimit"].includes(key)))
|
|
62
|
+
for (const [role, raw] of Object.entries(policies)) {
|
|
63
|
+
if (!record(raw) || Object.keys(raw).some((key) => !["primary", "fallbackRoutes", "strategy", "rateLimit", "levels"].includes(key)))
|
|
64
|
+
return null;
|
|
65
|
+
if (raw.levels !== undefined && (role === "dsmm-orchestrator" || !record(raw.levels)
|
|
66
|
+
|| Object.entries(raw.levels).some(([key, value]) => !["low", "high", "max"].includes(key) || !level(value))))
|
|
53
67
|
return null;
|
|
54
68
|
if (raw.primary !== undefined && !route(raw.primary))
|
|
55
69
|
return null;
|
|
@@ -71,7 +85,7 @@ export function editStructuredPath(content, path, value) {
|
|
|
71
85
|
if (structuredDocument(content) === null)
|
|
72
86
|
return null;
|
|
73
87
|
try {
|
|
74
|
-
return applyEdits(content, modify(content, path, value, {
|
|
88
|
+
return applyEdits(content, modify(content, path, value, {}));
|
|
75
89
|
}
|
|
76
90
|
catch {
|
|
77
91
|
return null;
|
package/lib/client/styles.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Geometry and theme aliases extracted in dsmm/DESIGN.md; scoped to this section. */
|
|
2
|
-
export declare const PROFILE_STYLES = "\n.dsmm-profiles{width:100%;max-width:760px;min-width:0;display:flex;flex-direction:column;gap:12px;font-family:var(--dsw-font-family);font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles h2{margin:0;font-size:18px;font-weight:600}\n.dsmm-profiles h3,.dsmm-profiles legend{margin:0;font-size:14px;font-weight:500;line-height:22px}\n.dsmm-profiles :is(label,legend,summary){min-width:0;max-width:100%;overflow-wrap:anywhere}\n.dsmm-profiles :is(.dsmm-structured,.dsmm-session-scope,.dsmm-catalog,.dsmm-policy-fields){min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles .dsmm-route-fields{display:flex;flex-wrap:wrap;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-route-fields>.dsmm-field{flex:1 1 240px;max-width:100%}\n.dsmm-profiles .dsmm-route-fields select{width:100%}\n.dsmm-profiles summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}\n.dsmm-profiles summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}\n.dsmm-header-profiles{display:inline-flex;align-items:center;min-width:0;font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary)}\n.dsmm-header-profiles .dsmm-profile-trigger{width:28px;height:28px;min-height:28px;padding:6px;justify-content:center}\n.dsmm-profile-trigger:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profile-menu{font-family:var(--dsw-font-family);font-size:14px;line-height:22px;max-width:calc(100vw - 24px);color:var(--dsw-alias-label-primary)}\n.dsmm-profile-menu [role=presentation]{font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary)}\n.dsmm-profile-menu [role=menuitem]{font:inherit}\n.dsmm-profile-menu [role=menuitem]>span{white-space:normal;overflow-wrap:anywhere}\n.dsmm-profile-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}\n.dsmm-profiles p{margin:0;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-hint{color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-field{min-width:0;display:flex;flex-direction:column;gap:6px}\n.dsmm-profiles .dsmm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}\n.dsmm-profiles button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:36px;height:auto}\n.dsmm-profiles .dsmm-input{width:100%;min-width:0;box-sizing:border-box;border-color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-input input{width:100%;min-width:0;font:inherit;color:inherit}\n.dsmm-profiles select,.dsmm-profiles textarea{box-sizing:border-box;min-width:0;max-width:100%;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-label-secondary);border-radius:var(--dsw-radius-md)}\n.dsmm-profiles select{width:240px;height:32px;padding:0 10px;text-overflow:ellipsis}\n.dsmm-profiles textarea{width:100%;padding:12px;font-family:var(--ds-font-family-code);resize:vertical;overflow:auto;white-space:pre;}\n.dsmm-profiles select:hover:not(:disabled),.dsmm-profiles textarea:hover:not(:disabled){border-color:var(--dsw-alias-label-primary)}\n.dsmm-profiles select:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}\n.dsmm-profiles :is(select,textarea,button):focus-visible,.dsmm-profiles .dsmm-input:has(input:focus-visible){outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles :is(select,textarea):disabled{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);cursor:not-allowed}\n.dsmm-profiles .dsmm-editor,.dsmm-profiles .dsmm-confirm{min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}\n.dsmm-profiles .dsmm-issue{padding:12px;border-left:4px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-label-primary);overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-issue p+p{margin-top:8px}\n.dsmm-profiles .dsmm-status{min-height:22px}\n@media(prefers-reduced-motion:reduce){.dsmm-profiles *{transition:none!important;animation:none!important}}\n";
|
|
2
|
+
export declare const PROFILE_STYLES = "\n.dsmm-profiles{width:100%;max-width:760px;min-width:0;display:flex;flex-direction:column;gap:12px;font-family:var(--dsw-font-family);font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles h2{margin:0;font-size:18px;font-weight:600}\n.dsmm-profiles h3,.dsmm-profiles legend{margin:0;font-size:14px;font-weight:500;line-height:22px}\n.dsmm-profiles :is(label,legend,summary){min-width:0;max-width:100%;overflow-wrap:anywhere}\n.dsmm-profiles :is(.dsmm-structured,.dsmm-session-scope,.dsmm-catalog,.dsmm-policy-fields){min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles .dsmm-route-fields{display:flex;flex-wrap:wrap;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-route-fields>.dsmm-field{flex:1 1 240px;max-width:100%}\n.dsmm-profiles .dsmm-route-fields select{width:100%}\n.dsmm-profiles summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}\n.dsmm-profiles summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}\n.dsmm-header-profiles{display:inline-flex;align-items:center;min-width:0;font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary)}\n.dsmm-header-profiles .dsmm-profile-trigger{width:28px;height:28px;min-height:28px;padding:6px;justify-content:center}\n.dsmm-profile-trigger:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profile-menu{font-family:var(--dsw-font-family);font-size:14px;line-height:22px;max-width:calc(100vw - 24px);color:var(--dsw-alias-label-primary)}\n.dsmm-profile-menu [role=presentation]{font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary)}\n.dsmm-profile-menu [role=menuitem]{font:inherit}\n.dsmm-profile-menu [role=menuitem]>span{white-space:normal;overflow-wrap:anywhere}\n.dsmm-profile-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}\n.dsmm-profiles p{margin:0;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-hint{color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-field{min-width:0;display:flex;flex-direction:column;gap:6px}\n.dsmm-profiles .dsmm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}\n.dsmm-profiles button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:36px;height:auto}\n.dsmm-profiles .dsmm-input{width:100%;min-width:0;box-sizing:border-box;border-color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-input input{width:100%;min-width:0;font:inherit;color:inherit}\n.dsmm-profiles .dsmm-choice{position:relative;min-width:0}\n.dsmm-profiles .dsmm-choice .dsmm-input input{padding-right:32px}\n.dsmm-profiles .dsmm-choice .dsmm-choice-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;min-height:28px;padding:4px}\n.dsmm-profiles .dsmm-choice-list{position:absolute;z-index:1;top:100%;left:0;right:0;max-height:240px;overflow-y:auto;list-style:none;margin:4px 0 0;padding:4px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}\n.dsmm-profiles .dsmm-choice-list [role=option]{padding:8px 10px;min-width:0;overflow-wrap:anywhere;cursor:pointer}\n.dsmm-profiles .dsmm-choice-list [role=option]:hover{background:var(--dsw-alias-interactive-bg-hover)}\n.dsmm-profiles .dsmm-choice-list [aria-selected=true]{background:var(--dsw-alias-interactive-bg-active);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}\n.dsmm-profiles select,.dsmm-profiles textarea{box-sizing:border-box;min-width:0;max-width:100%;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-label-secondary);border-radius:var(--dsw-radius-md)}\n.dsmm-profiles select{width:240px;height:32px;padding:0 10px;text-overflow:ellipsis}\n.dsmm-profiles textarea{width:100%;padding:12px;font-family:var(--ds-font-family-code);resize:vertical;overflow:auto;white-space:pre;}\n.dsmm-profiles select:hover:not(:disabled),.dsmm-profiles textarea:hover:not(:disabled){border-color:var(--dsw-alias-label-primary)}\n.dsmm-profiles select:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}\n.dsmm-profiles :is(select,textarea,button):focus-visible,.dsmm-profiles .dsmm-input:has(input:focus-visible){outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles input[type=checkbox]:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-permissions label.dsmm-actions{min-height:32px}\n.dsmm-permissions input[type=checkbox]{accent-color:var(--dsw-alias-state-business-primary)}\n.dsmm-profiles :is(select,textarea):disabled{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);cursor:not-allowed}\n.dsmm-profiles .dsmm-editor,.dsmm-profiles .dsmm-confirm{min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}\n.dsmm-profiles .dsmm-issue{padding:12px;border-left:4px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-label-primary);overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-issue p+p{margin-top:8px}\n.dsmm-profiles .dsmm-status{min-height:22px}\n.dsmm-profiles .dsmm-zone{min-width:0;display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-profiles .dsmm-profile-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-profile-list li{min-width:0;display:flex;flex-direction:column;gap:4px}\n.dsmm-profiles :is(.dsmm-warning,.dsmm-diagnostic,.dsmm-availability){min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-warning{border-left:4px solid var(--dsw-alias-state-warn-primary);padding:8px 12px;color:var(--dsw-alias-label-primary)}\n.dsmm-deployment{gap:8px}\n.dsmm-deployment .dsmm-deployment-card{min-width:0;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md)}\n.dsmm-deployment .dsmm-deployment-card>summary{padding:8px 12px;font-weight:500;line-height:22px;min-height:32px;box-sizing:border-box}\n.dsmm-deployment .dsmm-deployment-card>summary:hover{background:var(--dsw-alias-interactive-bg-hover)}\n.dsmm-deployment .dsmm-deployment-card>summary:active{background:var(--dsw-alias-interactive-bg-active)}\n.dsmm-deployment .dsmm-deployment-card>summary>span{margin-left:8px;font-weight:400}\n.dsmm-deployment .dsmm-deployment-card>summary>span:empty{display:none}\n.dsmm-deployment .dsmm-deployment-card>div,.dsmm-deployment .dsmm-deployment-card>fieldset{display:flex;flex-direction:column;gap:8px;padding:0 12px 12px;border:0}\n.dsmm-deployment .dsmm-deployment-card>fieldset>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}\n.dsmm-deployment .dsmm-deployment-group{border-top:1px solid var(--dsw-alias-border-l4);padding-top:8px;min-width:0}\n.dsmm-deployment .dsmm-deployment-group>div{display:flex;flex-direction:column;gap:8px;padding-top:8px}\n.dsmm-deployment code{font-family:var(--ds-font-family-code);overflow-wrap:anywhere}\n.dsmm-deployment label code,.dsmm-deployment summary code{margin-left:8px;font-size:12px;line-height:18px;font-weight:400;color:var(--dsw-alias-label-secondary)}\n.dsmm-deployment pre{margin:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--ds-font-family-code)}\n.dsmm-deployment .dsmm-deployment-state{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-deployment .dsmm-deployment-state dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}\n.dsmm-children .dsmm-child-composer{min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-children .dsmm-child-meta{margin:0;display:flex;flex-direction:column;gap:4px;min-width:0}\n.dsmm-children .dsmm-child-meta dt{font-weight:500;overflow-wrap:anywhere}\n.dsmm-children .dsmm-child-meta dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}\n.dsmm-children textarea.dsmm-child-message{font-family:var(--dsw-font-family);white-space:pre-wrap;overflow-wrap:anywhere}\n@media(prefers-reduced-motion:reduce){.dsmm-profiles *{transition:none!important;animation:none!important}}\n";
|
|
3
3
|
//# sourceMappingURL=styles.d.ts.map
|
package/lib/client/styles.js
CHANGED
|
@@ -27,17 +27,53 @@ export const PROFILE_STYLES = `
|
|
|
27
27
|
.dsmm-profiles button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:36px;height:auto}
|
|
28
28
|
.dsmm-profiles .dsmm-input{width:100%;min-width:0;box-sizing:border-box;border-color:var(--dsw-alias-label-secondary)}
|
|
29
29
|
.dsmm-profiles .dsmm-input input{width:100%;min-width:0;font:inherit;color:inherit}
|
|
30
|
+
.dsmm-profiles .dsmm-choice{position:relative;min-width:0}
|
|
31
|
+
.dsmm-profiles .dsmm-choice .dsmm-input input{padding-right:32px}
|
|
32
|
+
.dsmm-profiles .dsmm-choice .dsmm-choice-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;min-height:28px;padding:4px}
|
|
33
|
+
.dsmm-profiles .dsmm-choice-list{position:absolute;z-index:1;top:100%;left:0;right:0;max-height:240px;overflow-y:auto;list-style:none;margin:4px 0 0;padding:4px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}
|
|
34
|
+
.dsmm-profiles .dsmm-choice-list [role=option]{padding:8px 10px;min-width:0;overflow-wrap:anywhere;cursor:pointer}
|
|
35
|
+
.dsmm-profiles .dsmm-choice-list [role=option]:hover{background:var(--dsw-alias-interactive-bg-hover)}
|
|
36
|
+
.dsmm-profiles .dsmm-choice-list [aria-selected=true]{background:var(--dsw-alias-interactive-bg-active);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}
|
|
30
37
|
.dsmm-profiles select,.dsmm-profiles textarea{box-sizing:border-box;min-width:0;max-width:100%;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-label-secondary);border-radius:var(--dsw-radius-md)}
|
|
31
38
|
.dsmm-profiles select{width:240px;height:32px;padding:0 10px;text-overflow:ellipsis}
|
|
32
39
|
.dsmm-profiles textarea{width:100%;padding:12px;font-family:var(--ds-font-family-code);resize:vertical;overflow:auto;white-space:pre;}
|
|
33
40
|
.dsmm-profiles select:hover:not(:disabled),.dsmm-profiles textarea:hover:not(:disabled){border-color:var(--dsw-alias-label-primary)}
|
|
34
41
|
.dsmm-profiles select:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}
|
|
35
42
|
.dsmm-profiles :is(select,textarea,button):focus-visible,.dsmm-profiles .dsmm-input:has(input:focus-visible){outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}
|
|
43
|
+
.dsmm-profiles input[type=checkbox]:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}
|
|
44
|
+
.dsmm-permissions label.dsmm-actions{min-height:32px}
|
|
45
|
+
.dsmm-permissions input[type=checkbox]{accent-color:var(--dsw-alias-state-business-primary)}
|
|
36
46
|
.dsmm-profiles :is(select,textarea):disabled{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);cursor:not-allowed}
|
|
37
47
|
.dsmm-profiles .dsmm-editor,.dsmm-profiles .dsmm-confirm{min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}
|
|
38
48
|
.dsmm-profiles .dsmm-issue{padding:12px;border-left:4px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-label-primary);overflow-wrap:anywhere}
|
|
39
49
|
.dsmm-profiles .dsmm-issue p+p{margin-top:8px}
|
|
40
50
|
.dsmm-profiles .dsmm-status{min-height:22px}
|
|
51
|
+
.dsmm-profiles .dsmm-zone{min-width:0;display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}
|
|
52
|
+
.dsmm-profiles .dsmm-profile-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}
|
|
53
|
+
.dsmm-profiles .dsmm-profile-list li{min-width:0;display:flex;flex-direction:column;gap:4px}
|
|
54
|
+
.dsmm-profiles :is(.dsmm-warning,.dsmm-diagnostic,.dsmm-availability){min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
|
|
55
|
+
.dsmm-profiles .dsmm-warning{border-left:4px solid var(--dsw-alias-state-warn-primary);padding:8px 12px;color:var(--dsw-alias-label-primary)}
|
|
56
|
+
.dsmm-deployment{gap:8px}
|
|
57
|
+
.dsmm-deployment .dsmm-deployment-card{min-width:0;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md)}
|
|
58
|
+
.dsmm-deployment .dsmm-deployment-card>summary{padding:8px 12px;font-weight:500;line-height:22px;min-height:32px;box-sizing:border-box}
|
|
59
|
+
.dsmm-deployment .dsmm-deployment-card>summary:hover{background:var(--dsw-alias-interactive-bg-hover)}
|
|
60
|
+
.dsmm-deployment .dsmm-deployment-card>summary:active{background:var(--dsw-alias-interactive-bg-active)}
|
|
61
|
+
.dsmm-deployment .dsmm-deployment-card>summary>span{margin-left:8px;font-weight:400}
|
|
62
|
+
.dsmm-deployment .dsmm-deployment-card>summary>span:empty{display:none}
|
|
63
|
+
.dsmm-deployment .dsmm-deployment-card>div,.dsmm-deployment .dsmm-deployment-card>fieldset{display:flex;flex-direction:column;gap:8px;padding:0 12px 12px;border:0}
|
|
64
|
+
.dsmm-deployment .dsmm-deployment-card>fieldset>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
|
|
65
|
+
.dsmm-deployment .dsmm-deployment-group{border-top:1px solid var(--dsw-alias-border-l4);padding-top:8px;min-width:0}
|
|
66
|
+
.dsmm-deployment .dsmm-deployment-group>div{display:flex;flex-direction:column;gap:8px;padding-top:8px}
|
|
67
|
+
.dsmm-deployment code{font-family:var(--ds-font-family-code);overflow-wrap:anywhere}
|
|
68
|
+
.dsmm-deployment label code,.dsmm-deployment summary code{margin-left:8px;font-size:12px;line-height:18px;font-weight:400;color:var(--dsw-alias-label-secondary)}
|
|
69
|
+
.dsmm-deployment pre{margin:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--ds-font-family-code)}
|
|
70
|
+
.dsmm-deployment .dsmm-deployment-state{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px;border-top:1px solid var(--dsw-alias-border-l4)}
|
|
71
|
+
.dsmm-deployment .dsmm-deployment-state dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}
|
|
72
|
+
.dsmm-children .dsmm-child-composer{min-width:0;display:flex;flex-direction:column;gap:12px}
|
|
73
|
+
.dsmm-children .dsmm-child-meta{margin:0;display:flex;flex-direction:column;gap:4px;min-width:0}
|
|
74
|
+
.dsmm-children .dsmm-child-meta dt{font-weight:500;overflow-wrap:anywhere}
|
|
75
|
+
.dsmm-children .dsmm-child-meta dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}
|
|
76
|
+
.dsmm-children textarea.dsmm-child-message{font-family:var(--dsw-font-family);white-space:pre-wrap;overflow-wrap:anywhere}
|
|
41
77
|
@media(prefers-reduced-motion:reduce){.dsmm-profiles *{transition:none!important;animation:none!important}}
|
|
42
78
|
`;
|
|
43
79
|
//# sourceMappingURL=styles.js.map
|