better-dsh 0.2.3 → 0.2.4-b
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/cordis.patch.yml +47 -16
- package/docs/10_plans/2026-09-23-remote-execution-framework.md +236 -0
- package/docs/10_plans/2026-09-23-remote-framework-impl.md +2083 -0
- package/docs/50_test-reports/2026-09-06-write/345/267/245/345/205/267sandbox/345/215/207/347/272/247/351/200/217/344/274/240bug/345/244/215/345/217/221/345/217/212/346/214/202/350/265/267-/344/272/213/344/273/266/346/212/245/345/221/212.md +176 -0
- package/docs/50_test-reports/2026-09-08-hashline-edit-E_RANGE_UNVERIFIED/350/267/250/350/275/256/344/274/232/350/257/235/351/224/256/345/244/261/346/225/210-/350/257/212/346/226/255/346/212/245/345/221/212.md +226 -0
- package/docs/50_test-reports/2026-09-11-control-prompt-into-eval-description/345/256/236/346/265/213/346/212/245/345/221/212.md +222 -0
- package/docs/50_test-reports/2026-09-12-fs-scheme-resolution-/345/256/236/346/265/213/346/212/245/345/221/212.md +81 -0
- package/docs/50_test-reports/2026-09-12-url-schemes-grammar-matrix/344/270/216catalog-centralize-/345/256/236/346/265/213/346/212/245/345/221/212.md +234 -0
- package/docs/50_test-reports/2026-09-12-url-schemes-recallable-context-design/351/252/214/350/257/201/346/212/245/345/221/212.md +160 -0
- package/docs/50_test-reports/2026-09-12-url-schemes-recallable-context-/345/256/236/346/265/213/345/211/247/346/234/254.md +44 -0
- package/docs/50_test-reports/2026-09-12-url-schemes-recallable-context-/345/256/236/346/265/213/346/212/245/345/221/212.md +89 -0
- package/docs/50_test-reports/2026-09-12-url-schemes-/345/205/255scheme/345/206/222/347/203/237/344/270/216/350/276/271/347/225/214/345/256/236/346/265/213/346/212/245/345/221/212.md +198 -0
- package/docs/50_test-reports/2026-09-13-hashline-off/344/270/213scheme/345/217/257/350/276/276/346/200/247/345/267/245/345/205/267/351/235/242/344/270/215/345/257/271/347/247/260-/345/256/236/346/265/213/346/212/245/345/221/212.md +246 -0
- package/docs/50_test-reports/2026-09-13-preact-ui-shell/345/256/236/346/265/213/346/212/245/345/221/212.md +50 -0
- package/docs/50_test-reports/2026-09-14-4999-skill/346/270/205/345/215/225/344/270/216lsp-gate/345/256/236/346/265/213/346/212/245/345/221/212.md +63 -0
- package/docs/50_test-reports/2026-09-17-plugins/351/241/265/345/205/255/347/273/204/344/273/266/346/213/206/345/210/206/345/256/236/346/265/213/346/212/245/345/221/212.md +76 -0
- package/docs/50_test-reports/2026-09-23-remote-framework/345/256/236/346/265/213/346/212/245/345/221/212.md +92 -0
- package/docs/50_test-reports/2026-09-23-remote-framework/347/254/254/344/270/200/344/272/272/347/247/260/345/244/215/346/265/213/346/212/245/345/221/212.md +125 -0
- package/docs/50_test-reports/upstream-dsh-0.1.3-alpha.2-local-test-report.md +44 -0
- package/docs/50_test-reports/upstream-dsh-0.1.3-alpha.2-report.md +110 -0
- package/docs/50_test-reports/upstream-dsh-0.1.5-rc.2-local-test-report.md +79 -0
- package/docs/50_test-reports/v0.2.3b-hashline-content-locator/345/256/236/346/265/213/346/212/245/345/221/212.md +73 -0
- package/docs/50_test-reports/v0.2.3c-mobile-wave/345/256/236/346/265/213/346/212/245/345/221/212.md +47 -0
- package/docs/50_test-reports/v0.2.4-ios-focus-zoom-suppression/345/256/236/346/265/213/346/212/245/345/221/212.md +158 -0
- package/docs/specs/agent/spec.md +54 -0
- package/docs/specs/ast/spec.md +34 -0
- package/docs/specs/compaction-recall/spec.md +46 -0
- package/docs/specs/ctx/spec.md +107 -0
- package/docs/specs/dsh/spec.md +47 -0
- package/docs/specs/dvc/spec.md +87 -0
- package/docs/specs/escalation-guidance/spec.md +44 -0
- package/docs/specs/fs-scheme-resolution/spec.md +37 -0
- package/docs/specs/hash-edit/spec.md +41 -0
- package/docs/specs/http-read/spec.md +73 -0
- package/docs/specs/kernel-provisioning/spec.md +53 -0
- package/docs/specs/lsp/spec.md +121 -0
- package/docs/specs/mobile-layout/spec.md +108 -0
- package/docs/specs/model-failover/spec.md +20 -0
- package/docs/specs/plugins-page-components/spec.md +79 -0
- package/docs/specs/preact-ui-shell/spec.md +22 -0
- package/docs/specs/repl-dispatch-resilience/spec.md +21 -0
- package/docs/specs/skill/spec.md +58 -0
- package/docs/specs/tool-surface/spec.md +222 -0
- package/docs/specs/url-schema/spec.md +148 -0
- package/docs/specs/web-trust-fence/spec.md +43 -0
- package/docs/upstream-dsh-0.1.5-rc.2-report.md +156 -0
- package/dsh-docs/AGENTS.md +75 -0
- package/dsh-docs/agent-lifecycle.md +84 -0
- package/dsh-docs/agent-lifecycle.zh.md +86 -0
- package/dsh-docs/api-gateway.md +164 -0
- package/dsh-docs/api-gateway.zh.md +164 -0
- package/dsh-docs/architecture.md +150 -0
- package/dsh-docs/architecture.zh.md +154 -0
- package/dsh-docs/capability-seams.md +543 -0
- package/dsh-docs/capability-seams.zh.md +545 -0
- package/dsh-docs/config-catalog.md +3473 -0
- package/dsh-docs/config-catalog.zh.md +3474 -0
- package/dsh-docs/cookbook/adding-a-package.md +117 -0
- package/dsh-docs/cookbook/adding-a-package.zh.md +119 -0
- package/dsh-docs/cookbook/adding-a-remote-api.md +197 -0
- package/dsh-docs/cookbook/adding-a-remote-api.zh.md +197 -0
- package/dsh-docs/cookbook/adding-a-session-format-version.md +109 -0
- package/dsh-docs/cookbook/adding-a-session-format-version.zh.md +109 -0
- package/dsh-docs/cookbook/adding-a-settings-card.md +102 -0
- package/dsh-docs/cookbook/adding-a-settings-card.zh.md +102 -0
- package/dsh-docs/cookbook/adding-a-tool.md +101 -0
- package/dsh-docs/cookbook/adding-a-tool.zh.md +103 -0
- package/dsh-docs/cookbook/adding-a-vendored-package.md +59 -0
- package/dsh-docs/cookbook/adding-a-vendored-package.zh.md +59 -0
- package/dsh-docs/cookbook/adding-an-llm-adapter.md +43 -0
- package/dsh-docs/cookbook/adding-an-llm-adapter.zh.md +43 -0
- package/dsh-docs/cookbook/extension-cookbook.md +132 -0
- package/dsh-docs/cookbook/extension-cookbook.zh.md +136 -0
- package/dsh-docs/cookbook/maintaining-dsh-code-review.md +64 -0
- package/dsh-docs/cookbook/maintaining-dsh-code-review.zh.md +64 -0
- package/dsh-docs/cookbook/responding-to-pr-review-on-a-stack.md +32 -0
- package/dsh-docs/cookbook/responding-to-pr-review-on-a-stack.zh.md +32 -0
- package/dsh-docs/cordis-api/context.md +364 -0
- package/dsh-docs/cordis-api/context.zh.md +366 -0
- package/dsh-docs/cordis-api/events.md +207 -0
- package/dsh-docs/cordis-api/events.zh.md +209 -0
- package/dsh-docs/cordis-api/fiber.md +375 -0
- package/dsh-docs/cordis-api/fiber.zh.md +377 -0
- package/dsh-docs/cordis-api/inherited.md +39 -0
- package/dsh-docs/cordis-api/registry.md +152 -0
- package/dsh-docs/cordis-api/registry.zh.md +154 -0
- package/dsh-docs/cordis-api/service.md +102 -0
- package/dsh-docs/cordis-api/service.zh.md +104 -0
- package/dsh-docs/cordis-primer.md +45 -0
- package/dsh-docs/cordis-primer.zh.md +51 -0
- package/dsh-docs/cordis-tutorial/01-first-plugin.md +95 -0
- package/dsh-docs/cordis-tutorial/01-first-plugin.zh.md +95 -0
- package/dsh-docs/cordis-tutorial/02-lifecycle-and-effects.md +98 -0
- package/dsh-docs/cordis-tutorial/02-lifecycle-and-effects.zh.md +98 -0
- package/dsh-docs/cordis-tutorial/03-services.md +98 -0
- package/dsh-docs/cordis-tutorial/03-services.zh.md +98 -0
- package/dsh-docs/cordis-tutorial/04-events.md +144 -0
- package/dsh-docs/cordis-tutorial/04-events.zh.md +144 -0
- package/dsh-docs/cordis-tutorial/05-config.md +84 -0
- package/dsh-docs/cordis-tutorial/05-config.zh.md +84 -0
- package/dsh-docs/cordis-tutorial/06-composition-and-hmr.md +113 -0
- package/dsh-docs/cordis-tutorial/06-composition-and-hmr.zh.md +113 -0
- package/dsh-docs/cordis-tutorial/07-into-the-harness.md +108 -0
- package/dsh-docs/cordis-tutorial/07-into-the-harness.zh.md +108 -0
- package/dsh-docs/cordis-tutorial/index.md +60 -0
- package/dsh-docs/cordis-tutorial/index.zh.md +62 -0
- package/dsh-docs/deepseek-llm-api-wire-extensions.md +163 -0
- package/dsh-docs/deepseek-llm-api-wire-extensions.zh.md +163 -0
- package/dsh-docs/defensive-patterns.md +33 -0
- package/dsh-docs/defensive-patterns.zh.md +35 -0
- package/dsh-docs/development.md +167 -0
- package/dsh-docs/development.zh.md +173 -0
- package/dsh-docs/event-producer-consumer.md +86 -0
- package/dsh-docs/event-producer-consumer.zh.md +88 -0
- package/dsh-docs/glossary.md +45 -0
- package/dsh-docs/glossary.zh.md +45 -0
- package/dsh-docs/graph-atlas.md +22 -0
- package/dsh-docs/graph-atlas.zh.md +24 -0
- package/dsh-docs/i18n/README.md +60 -0
- package/dsh-docs/i18n/README.zh.md +62 -0
- package/dsh-docs/i18n/style-samples.md +87 -0
- package/dsh-docs/i18n/terminology.md +214 -0
- package/dsh-docs/i18n/translation-prompt.md +263 -0
- package/dsh-docs/i18n/translation-rules.md +69 -0
- package/dsh-docs/i18n/translation-rules.zh.md +69 -0
- package/dsh-docs/module-graph.md +1411 -0
- package/dsh-docs/module-graph.zh.md +1413 -0
- package/dsh-docs/persistence-catalog.md +1075 -0
- package/dsh-docs/persistence-catalog.zh.md +1077 -0
- package/dsh-docs/postmortem/0001-acp-default-export-drops-inject.md +113 -0
- package/dsh-docs/postmortem/0001-acp-default-export-drops-inject.zh.md +113 -0
- package/dsh-docs/postmortem/0002-js-expression-disabled-filesystem-tools.md +47 -0
- package/dsh-docs/postmortem/0002-js-expression-disabled-filesystem-tools.zh.md +47 -0
- package/dsh-docs/postmortem/0003-web-agent-gui-feedback-loop.md +53 -0
- package/dsh-docs/postmortem/0003-web-agent-gui-feedback-loop.zh.md +53 -0
- package/dsh-docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.md +55 -0
- package/dsh-docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.zh.md +55 -0
- package/dsh-docs/postmortem/README.md +18 -0
- package/dsh-docs/postmortem/README.zh.md +18 -0
- package/dsh-docs/rescope.md +53 -0
- package/dsh-docs/rescope.zh.md +53 -0
- package/dsh-docs/session-format-status.md +47 -0
- package/dsh-docs/session-format-status.zh.md +47 -0
- package/dsh-docs/subsystems/README.md +61 -0
- package/dsh-docs/subsystems/README.zh.md +61 -0
- package/dsh-docs/subsystems/agent-team.md +207 -0
- package/dsh-docs/subsystems/agent-team.zh.md +207 -0
- package/dsh-docs/subsystems/approval.md +170 -0
- package/dsh-docs/subsystems/approval.zh.md +170 -0
- package/dsh-docs/subsystems/attachment.md +351 -0
- package/dsh-docs/subsystems/attachment.zh.md +351 -0
- package/dsh-docs/subsystems/client-modules.md +168 -0
- package/dsh-docs/subsystems/client-modules.zh.md +168 -0
- package/dsh-docs/subsystems/client-resources.md +91 -0
- package/dsh-docs/subsystems/client-resources.zh.md +91 -0
- package/dsh-docs/subsystems/code-runtime.md +195 -0
- package/dsh-docs/subsystems/code-runtime.zh.md +195 -0
- package/dsh-docs/subsystems/commands.md +219 -0
- package/dsh-docs/subsystems/commands.zh.md +219 -0
- package/dsh-docs/subsystems/compaction.md +238 -0
- package/dsh-docs/subsystems/compaction.zh.md +238 -0
- package/dsh-docs/subsystems/conversation.md +258 -0
- package/dsh-docs/subsystems/conversation.zh.md +258 -0
- package/dsh-docs/subsystems/core.md +1209 -0
- package/dsh-docs/subsystems/core.zh.md +1219 -0
- package/dsh-docs/subsystems/credentials.md +329 -0
- package/dsh-docs/subsystems/credentials.zh.md +329 -0
- package/dsh-docs/subsystems/extensions.md +382 -0
- package/dsh-docs/subsystems/extensions.zh.md +382 -0
- package/dsh-docs/subsystems/feedback.md +266 -0
- package/dsh-docs/subsystems/feedback.zh.md +266 -0
- package/dsh-docs/subsystems/filesystem.md +505 -0
- package/dsh-docs/subsystems/filesystem.zh.md +505 -0
- package/dsh-docs/subsystems/goal.md +277 -0
- package/dsh-docs/subsystems/goal.zh.md +277 -0
- package/dsh-docs/subsystems/invariants.md +88 -0
- package/dsh-docs/subsystems/invariants.zh.md +88 -0
- package/dsh-docs/subsystems/jobs.md +290 -0
- package/dsh-docs/subsystems/jobs.zh.md +290 -0
- package/dsh-docs/subsystems/llm-streaming.md +1080 -0
- package/dsh-docs/subsystems/llm-streaming.zh.md +1086 -0
- package/dsh-docs/subsystems/lsp.md +202 -0
- package/dsh-docs/subsystems/lsp.zh.md +202 -0
- package/dsh-docs/subsystems/permission-presets.md +131 -0
- package/dsh-docs/subsystems/permission-presets.zh.md +131 -0
- package/dsh-docs/subsystems/persistence.md +395 -0
- package/dsh-docs/subsystems/persistence.zh.md +395 -0
- package/dsh-docs/subsystems/plan.md +87 -0
- package/dsh-docs/subsystems/plan.zh.md +87 -0
- package/dsh-docs/subsystems/sandbox.md +220 -0
- package/dsh-docs/subsystems/sandbox.zh.md +220 -0
- package/dsh-docs/subsystems/schedule.md +192 -0
- package/dsh-docs/subsystems/schedule.zh.md +192 -0
- package/dsh-docs/subsystems/scope.md +59 -0
- package/dsh-docs/subsystems/scope.zh.md +59 -0
- package/dsh-docs/subsystems/session-projection.md +354 -0
- package/dsh-docs/subsystems/session-projection.zh.md +354 -0
- package/dsh-docs/subsystems/session-query.md +509 -0
- package/dsh-docs/subsystems/session-query.zh.md +509 -0
- package/dsh-docs/subsystems/session-reference.md +219 -0
- package/dsh-docs/subsystems/session-reference.zh.md +219 -0
- package/dsh-docs/subsystems/session-telemetry.md +194 -0
- package/dsh-docs/subsystems/session-telemetry.zh.md +194 -0
- package/dsh-docs/subsystems/session-title.md +204 -0
- package/dsh-docs/subsystems/session-title.zh.md +204 -0
- package/dsh-docs/subsystems/session.md +1155 -0
- package/dsh-docs/subsystems/session.zh.md +1159 -0
- package/dsh-docs/subsystems/settings.md +405 -0
- package/dsh-docs/subsystems/settings.zh.md +405 -0
- package/dsh-docs/subsystems/shell.md +303 -0
- package/dsh-docs/subsystems/shell.zh.md +303 -0
- package/dsh-docs/subsystems/sidebar-right.md +148 -0
- package/dsh-docs/subsystems/sidebar-right.zh.md +148 -0
- package/dsh-docs/subsystems/skills.md +354 -0
- package/dsh-docs/subsystems/skills.zh.md +354 -0
- package/dsh-docs/subsystems/slots.md +175 -0
- package/dsh-docs/subsystems/slots.zh.md +175 -0
- package/dsh-docs/subsystems/spill.md +117 -0
- package/dsh-docs/subsystems/spill.zh.md +117 -0
- package/dsh-docs/subsystems/storage.md +260 -0
- package/dsh-docs/subsystems/storage.zh.md +260 -0
- package/dsh-docs/subsystems/subagent.md +766 -0
- package/dsh-docs/subsystems/subagent.zh.md +770 -0
- package/dsh-docs/subsystems/subprocess.md +324 -0
- package/dsh-docs/subsystems/subprocess.zh.md +324 -0
- package/dsh-docs/subsystems/system-prompt.md +220 -0
- package/dsh-docs/subsystems/system-prompt.zh.md +220 -0
- package/dsh-docs/subsystems/terminal.md +184 -0
- package/dsh-docs/subsystems/terminal.zh.md +184 -0
- package/dsh-docs/subsystems/todo.md +32 -0
- package/dsh-docs/subsystems/todo.zh.md +32 -0
- package/dsh-docs/subsystems/token-meter.md +105 -0
- package/dsh-docs/subsystems/token-meter.zh.md +105 -0
- package/dsh-docs/subsystems/tools.md +720 -0
- package/dsh-docs/subsystems/tools.zh.md +720 -0
- package/dsh-docs/subsystems/typert.md +343 -0
- package/dsh-docs/subsystems/typert.zh.md +343 -0
- package/dsh-docs/subsystems/user-questions.md +178 -0
- package/dsh-docs/subsystems/user-questions.zh.md +178 -0
- package/dsh-docs/subsystems/web-client.md +95 -0
- package/dsh-docs/subsystems/web-client.zh.md +95 -0
- package/dsh-docs/subsystems/web-server.md +154 -0
- package/dsh-docs/subsystems/web-server.zh.md +154 -0
- package/dsh-docs/subsystems/web.md +206 -0
- package/dsh-docs/subsystems/web.zh.md +206 -0
- package/dsh-docs/subsystems/webhook.md +70 -0
- package/dsh-docs/subsystems/webhook.zh.md +70 -0
- package/dsh-docs/subsystems/workflow.md +278 -0
- package/dsh-docs/subsystems/workflow.zh.md +278 -0
- package/dsh-docs/subsystems/workspace.md +321 -0
- package/dsh-docs/subsystems/workspace.zh.md +321 -0
- package/dsh-docs/testing.md +54 -0
- package/dsh-docs/testing.zh.md +54 -0
- package/dsh-docs/tool-catalog.md +2225 -0
- package/dsh-docs/tool-catalog.zh.md +2233 -0
- package/dsh-docs/tool-execution-pipeline.md +62 -0
- package/dsh-docs/tool-execution-pipeline.zh.md +64 -0
- package/dsh-docs/user/develop/basic/config.md +106 -0
- package/dsh-docs/user/develop/basic/config.zh.md +106 -0
- package/dsh-docs/user/develop/basic/index.md +144 -0
- package/dsh-docs/user/develop/basic/index.zh.md +144 -0
- package/dsh-docs/user/develop/basic/publish.md +183 -0
- package/dsh-docs/user/develop/basic/publish.zh.md +183 -0
- package/dsh-docs/user/develop/basic/tool.md +52 -0
- package/dsh-docs/user/develop/basic/tool.zh.md +52 -0
- package/dsh-docs/user/develop/framework/events.md +143 -0
- package/dsh-docs/user/develop/framework/events.zh.md +143 -0
- package/dsh-docs/user/develop/framework/index.md +137 -0
- package/dsh-docs/user/develop/framework/index.zh.md +137 -0
- package/dsh-docs/user/develop/framework/service.md +148 -0
- package/dsh-docs/user/develop/framework/service.zh.md +150 -0
- package/dsh-docs/user/develop/practice/dynamic-cordis.md +15 -0
- package/dsh-docs/user/develop/practice/dynamic-cordis.zh.md +15 -0
- package/dsh-docs/user/develop/practice/index.md +155 -0
- package/dsh-docs/user/develop/practice/index.zh.md +155 -0
- package/dsh-docs/user/develop/practice/llm-adapter.md +189 -0
- package/dsh-docs/user/develop/practice/llm-adapter.zh.md +189 -0
- package/dsh-docs/user/guide/github-review.md +102 -0
- package/dsh-docs/user/guide/github-review.zh.md +102 -0
- package/dsh-docs/user/guide/index.md +30 -0
- package/dsh-docs/user/guide/index.zh.md +30 -0
- package/dsh-docs/user/guide/mcp-memory.md +101 -0
- package/dsh-docs/user/guide/mcp-memory.zh.md +101 -0
- package/dsh-docs/user/guide/network-proxy.md +85 -0
- package/dsh-docs/user/guide/network-proxy.zh.md +85 -0
- package/dsh-docs/user/guide/providers.md +190 -0
- package/dsh-docs/user/guide/providers.zh.md +190 -0
- package/dsh-docs/user/guide/python-sdk.md +150 -0
- package/dsh-docs/user/guide/python-sdk.zh.md +150 -0
- package/dsh-docs/user/guide/schedule.md +21 -0
- package/dsh-docs/user/guide/schedule.zh.md +21 -0
- package/dsh-docs/user/index.md +11 -0
- package/dsh-docs/user/index.zh.md +11 -0
- package/dsh-docs/web-styling.md +29 -0
- package/dsh-docs/web-styling.zh.md +29 -0
- package/eval-description.md +33 -0
- package/lib/client/index.js +328 -89
- package/lib/compaction/index.d.ts +47 -0
- package/lib/compaction/index.js +159 -0
- package/lib/failover/index.d.ts +35 -0
- package/lib/failover/index.js +141 -0
- package/lib/fs-aware/sandbox-plugin.d.ts +71 -0
- package/lib/fs-aware/sandbox-plugin.js +249 -0
- package/lib/index.d.ts +10 -41
- package/lib/index.js +226 -8173
- package/lib/lsp-server-registry-946ysdqg.js +972 -0
- package/lib/lsp-server-registry-XU6aHSqZ.js +3 -0
- package/lib/mobile/plugin.d.ts +29 -0
- package/lib/mobile/plugin.js +54 -0
- package/lib/native-capture-x_Hos2e8.js +68 -0
- package/lib/py-sdk-Chvy92MB.js +178 -0
- package/lib/py-sdk.d.ts +19 -2
- package/lib/py-sdk.js +2 -2
- package/lib/remote/plugin.d.ts +24 -0
- package/lib/remote/plugin.js +1095 -0
- package/lib/url-schemes/index.d.ts +88 -0
- package/lib/url-schemes/index.js +7200 -0
- package/lib/web-trust-BO66y72w.js +361 -0
- package/lib/web-trust-CgpBoFv3.d.ts +106 -0
- package/lib/web-trust.d.ts +2 -0
- package/lib/web-trust.js +3 -0
- package/lib/wrap-Dr8XtIak.js +747 -0
- package/package.json +87 -56
- package/url-schemes-instruction.md +22 -0
- package/control-prompt.md +0 -37
- package/docs/50_test-reports/v0.1.8d_artifacts/README.md +0 -138
- package/docs/50_test-reports/v0.1.8d_artifacts/code-mode-repl-only.observation.md +0 -74
- package/docs/50_test-reports/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.jsonl +0 -3890
- package/docs/50_test-reports/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.w-sample-0435.jsonl +0 -544
- package/docs/50_test-reports/v0.1.8d_artifacts/functions.json +0 -592
- package/docs/50_test-reports/v0.1.8d_artifacts/skills-catalog.snapshot.md +0 -30
- package/docs/50_test-reports/v0.1.8d_artifacts/tools-sdk.output-schemas.json +0 -1236
- package/docs/50_test-reports/v0.1.8d_artifacts/tools-sdk.python.txt +0 -592
- package/docs/50_test-reports/v0.1.8d_artifacts/tools-sdk.typescript.txt +0 -516
- package/docs/50_test-reports/v0.1.8d_artifacts/wire-vs-transcription.diff.md +0 -54
- package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/Cargo.lock +0 -7
- package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/Cargo.toml +0 -6
- package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/src/bin/messy.rs +0 -8
- package/docs/50_test-reports/v0.2.0b_artifacts/f2probe/src/main.rs +0 -4
- package/docs/50_test-reports/v0.2.0b_artifacts/hashline-probe.md +0 -5
- package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/Cargo.lock +0 -7
- package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/Cargo.toml +0 -7
- package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/build.rs +0 -4
- package/docs/50_test-reports/v0.2.0b_artifacts/slowprobe/src/main.rs +0 -13
- package/docs/60_exploration-and-research/cordis-research.md +0 -350
- package/docs/60_exploration-and-research/dsh-web-profile-package-map.md +0 -186
- package/docs/60_exploration-and-research/dsh-web-ui-slot-system-research.md +0 -310
- package/docs/60_exploration-and-research/dsh-webui-strip-boundary-research.md +0 -300
- package/docs/60_exploration-and-research/ios-chat-app-bridge-research.md +0 -324
- package/docs/60_exploration-and-research/web-frontend-composability-research.md +0 -191
- package/docs/REPL-/345/267/245/345/205/267/350/260/203/347/224/250-/346/210/252/346/226/255/350/257/212/346/226/255.md +0 -110
- package/docs/adr/0001-bridge-tool-layer-not-service-layer.md +0 -14
- package/docs/adr/0002-masking-is-presentation-only.md +0 -15
- package/docs/plans/A2A-messaging-channel-test-archive.md +0 -256
- package/docs/plans/code-mode-vs-rlm-ipython-comparison.md +0 -137
- package/docs/plans/dashr-blueprint-review.md +0 -201
- package/docs/plans/dashr-blueprint.md +0 -561
- package/docs/plans/dashr-compaction-window-and-archive.md +0 -307
- package/docs/plans/dashr-profile-layer-feasibility.md +0 -367
- package/docs/plans/dashr-sandbox-escalation-semantics-gap.md +0 -171
- package/docs/plans/dashr-security-sandbox-analysis.md +0 -187
- package/docs/plans/dashr-surface-invariant-and-omp-imports.md +0 -97
- package/docs/plans/ipython-kernel-interactive-interface-test-report.md +0 -152
- package/docs/plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft.md +0 -146
- package/docs/plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft_v3.md +0 -50
- package/docs/plans/kernel-refactoring/Dash-IPython-Control-Prompt-draft_v4.md +0 -79
- package/docs/plans/kernel-refactoring/Dash-vs-PrimeAgent-systemprompt-toolcatalog-comparison.md +0 -138
- package/docs/plans/kernel-refactoring/RLM-system-prompt-injection-gap-report.md +0 -161
- package/docs/plans/kernel-refactoring/V0.1.5-development-plan.md +0 -109
- package/docs/plans/kernel-refactoring/actinoable-surface-to-llm-in-agent-runtime_dsh.md +0 -50
- package/docs/plans/kernel-refactoring/actinoable-surface-to-llm-in-agent-runtime_prime.md +0 -113
- package/docs/plans/recallable-compaction.md +0 -147
- package/docs/plans/spike-tag-repro.mjs +0 -102
- package/docs/plans/upstream-analysis.md +0 -128
- package/docs/v0.1.8-improved-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -142
- package/docs/v0.1.8-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -193
- package/docs/v0.1.8b-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -96
- package/docs/v0.1.8c-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -127
- package/docs/v0.1.8d-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -150
- package/docs/v0.1.8d_artifacts/README.md +0 -138
- package/docs/v0.1.8d_artifacts/code-mode-repl-only.observation.md +0 -74
- package/docs/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.jsonl +0 -3890
- package/docs/v0.1.8d_artifacts/dsh-session-session-4a293388-9ae1-474b-87a0-9e17bb556d94.w-sample-0435.jsonl +0 -544
- package/docs/v0.1.8d_artifacts/functions.json +0 -592
- package/docs/v0.1.8d_artifacts/skills-catalog.snapshot.md +0 -30
- package/docs/v0.1.8d_artifacts/tools-sdk.output-schemas.json +0 -1236
- package/docs/v0.1.8d_artifacts/tools-sdk.python.txt +0 -592
- package/docs/v0.1.8d_artifacts/tools-sdk.typescript.txt +0 -516
- package/docs/v0.1.8d_artifacts/wire-vs-transcription.diff.md +0 -54
- package/docs/v0.1.8e-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -224
- package/docs/v0.1.9a-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -168
- package/docs/v0.2.0b-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -123
- package/docs/v0.2.0b_artifacts/f2probe/Cargo.lock +0 -7
- package/docs/v0.2.0b_artifacts/f2probe/Cargo.toml +0 -6
- package/docs/v0.2.0b_artifacts/f2probe/src/bin/messy.rs +0 -8
- package/docs/v0.2.0b_artifacts/f2probe/src/main.rs +0 -4
- package/docs/v0.2.0b_artifacts/hashline-probe.md +0 -5
- package/docs/v0.2.0b_artifacts/slowprobe/Cargo.lock +0 -7
- package/docs/v0.2.0b_artifacts/slowprobe/Cargo.toml +0 -7
- package/docs/v0.2.0b_artifacts/slowprobe/build.rs +0 -4
- package/docs/v0.2.0b_artifacts/slowprobe/src/main.rs +0 -13
- package/docs/v0.2.1-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -110
- package/docs/v0.2.1b-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -86
- package/docs/v0.2.1c-/345/256/236/346/265/213/346/212/245/345/221/212.md +0 -66
- package/lib/py-sdk-BCaOGYz7.d.ts +0 -125
- package/lib/py-sdk-CbgYiX8O.js +0 -691
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# tool-surface Specification
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
DASHR 的模型表面(model surface)契约:哪些工具出现在 registry 投影(LLM-client 协议 tools 数组、REPL 绑定)里。核心原则——掩码作用于 tool registry(被替代了呈现面的原生工具全部 visible=false);REPL 绑定对 registry 可见集做机械/透明的自动桥接(零名单维护);被掩工具的能力保留靠三桥 service 层直调(`agent` spawn/fork、`agent_message` 消息+中断、`agent_workflow` 编排),不靠 registry 豁免。全部 REPL 指引(cell 语义、调用形、非 flat 名例外、`subagent` 别名注记)只经由 `eval` 工具的 wire description 承载——system prompt 中不存在任何 DASHR 渲染的工具目录或 control-prompt section。
|
|
5
|
+
|
|
6
|
+
## Requirements
|
|
7
|
+
|
|
8
|
+
### Requirement: Registry masking of replaced-presentation native tools
|
|
9
|
+
|
|
10
|
+
The system SHALL remove the native tools whose presentation surface DASHR replaces(`skill`、上游 `send_message`、`report`、`list_agents`、delegation 家族 `subagent_fork`/`interrupt_agent`/`workflow`/`ralph`)from the agent's tool registry projection via an agent-scope registry restriction —— wire tools array 与 REPL bindings 同源于该 projection,移除因此均匀生效。`subagent` is deliberately NOT masked:它在每个表面保持可见,且 **`eval` 工具的 description** 注记它是 `agent` delegation tool(统一 agent-spawn 入口)的别名。The restriction MUST NOT touch the registered tool definitions themselves;DASHR preserves each masked tool's native capability at the tool-bridge level(not by registry exemption):`agent` spawns/forks subagents、`agent_message` 经 host-plane service 层传递 child-downlink/parent-uplink/interrupt、`agent_workflow` 把 script/rfc 透传给 CAPTURED native workflow/ralph definitions(workflowEngine service 是 preset delegation realm 的 entry-local 服务,任何外部 ctx 不可见——native execute closures 从内部解析);`agent://` 取代 `list_agents`、`read skill://` 取代 `skill`。
|
|
11
|
+
|
|
12
|
+
#### Scenario: Masked tool absent from every model-facing surface
|
|
13
|
+
|
|
14
|
+
- **WHEN** an agent session starts under DASHR
|
|
15
|
+
- **THEN** the wire tools array 与 the REPL bindings 均不含 masked 名,对 masked 名的调用返回 `UNKNOWN_TOOL`
|
|
16
|
+
|
|
17
|
+
#### Scenario: subagent stays visible as an annotated alias
|
|
18
|
+
|
|
19
|
+
- **WHEN** an agent session starts under DASHR
|
|
20
|
+
- **THEN** `subagent` remains present on the wire tools array 与 the REPL bindings,且 `eval` 工具 description 注明它是 `agent` delegation tool 的别名
|
|
21
|
+
|
|
22
|
+
#### Scenario: Masked capability preserved through the bridge
|
|
23
|
+
|
|
24
|
+
- **WHEN** the model sends a child-downlink, parent-uplink, or interrupt through the `agent_message` bridge
|
|
25
|
+
- **THEN** the service layer executes it with native delivery semantics (user-role next-turn delivery, `messageId` confirmation) and native authorization (direct-child-only lineage, ancestor authority for interrupt)
|
|
26
|
+
|
|
27
|
+
#### Scenario: DASHR's own wrappers unaffected
|
|
28
|
+
|
|
29
|
+
- **WHEN** the agent-scope restriction denies a native name that a DASHR wrapper shadows on the agent's own layer
|
|
30
|
+
- **THEN** the wrapper (`read`/`write`/`grep`/`glob`, `agent`/`agent_message`/`agent_workflow`) remains visible and callable on every surface
|
|
31
|
+
|
|
32
|
+
### Requirement: Delegation bridges are registry tools
|
|
33
|
+
|
|
34
|
+
The system SHALL register the delegation bridges(`agent`、`agent_message`、`agent_workflow`)as real tools in the tool registry(与 `eval` transport 同一 host registration 层),runtime argument validation inside their execute、structured `{ error }` return values(bad input 不抛异常)。Registry projection 是**两个**模型表面的 single source:wire tools array 与 REPL `tool.*` bindings(经 mechanical auto-bridge)。两个表面 SHALL 每个 session name-by-name 相等(以 mechanical binding rule 的 flat-name 限定为界);唯一允许的例外是 `eval` 本身排除在 binding set 之外(self-call prevention)。
|
|
35
|
+
|
|
36
|
+
#### Scenario: Bridge callable directly on the wire
|
|
37
|
+
|
|
38
|
+
- **WHEN** the model sends a direct tool call `agent` with `{ description, prompt }` (no cell)
|
|
39
|
+
- **THEN** the call dispatches through the normal kernel pipeline and returns the same result shape the REPL binding returns, with the same audit events as any registry tool
|
|
40
|
+
|
|
41
|
+
#### Scenario: Three-surface name equality
|
|
42
|
+
|
|
43
|
+
- **WHEN** a DASHR session starts
|
|
44
|
+
- **THEN** 目录表面已随「Catalog section presents REPL bridge instructions」的 REMOVED 撤销,原三表面等式收敛为两表面:the wire tools array 与 the REPL binding names 在 flat-name 规则内 equal as sets,excepting only `eval`
|
|
45
|
+
|
|
46
|
+
#### Scenario: No dual-source drift
|
|
47
|
+
|
|
48
|
+
- **WHEN** a bridge's parameter surface changes
|
|
49
|
+
- **THEN** the wire schema 与 REPL binding 一起变化,因为两者都派生自同一注册 schema
|
|
50
|
+
|
|
51
|
+
### Requirement: eval transport description matches runtime semantics
|
|
52
|
+
|
|
53
|
+
The system SHALL state the eval transport's top-level semantics truthfully in **the `eval` tool's model-facing description(唯一的 REPL 指引载体)**:top-level `await` works —— kernel 以 `PyCF_ALLOW_TOP_LEVEL_AWAIT` 编译 cell 并运行 module coroutine;top-level `return` is a SyntaxError(cell 运行于 module scope,globals = locals)。The description SHALL NOT claim top-level `return` is accepted.
|
|
54
|
+
|
|
55
|
+
#### Scenario: Description promises only what the kernel does
|
|
56
|
+
|
|
57
|
+
- **WHEN** the model reads the `eval` tool description
|
|
58
|
+
- **THEN** the text states that top-level `await` works,states that top-level `return` is a SyntaxError(module-scope cell),and contains no claim that top-level `return` is accepted
|
|
59
|
+
|
|
60
|
+
#### Scenario: Top-level return stays rejected
|
|
61
|
+
|
|
62
|
+
- **WHEN** a cell contains a top-level `return`
|
|
63
|
+
- **THEN** the kernel rejects it with a SyntaxError, matching the description
|
|
64
|
+
|
|
65
|
+
### Requirement: eval description is the single REPL guidance source
|
|
66
|
+
|
|
67
|
+
The system SHALL carry ALL REPL guidance in the `eval` tool's wire description —— cell 语义、直调 vs 进 cell 的判据、非 flat 名例外、`subagent` 别名注记、**置于 description 末尾**的 mechanical bridge 调用形 —— 内容从**插件源码中的 Markdown 文件**加载、注册工具时作为 `description` 生效;system prompt 中 SHALL NOT 存在任何 DASHR 渲染的工具目录或 control-prompt section。桥接指引 SHALL 只陈述**一个**统一调用形、一句话说清:`await tool.<name>(argsObject)`,argsObject = 该工具 wire JSON-Schema 参数对象写成的 Python dict 字面量(同字段名、单个位置参数、不用 kwargs),唯一系统性语法差异为 `true`/`false`/`null` → `True`/`False`/`None`;SHALL NOT 渲染 per-tool 签名表,且 SHALL NOT 对桥接调用的返回值形态作任何陈述(不写"不保证形状/需试错"类措辞)。描述中的桥接示例 SHALL 使用与被引工具 wire schema 一致的参数名。
|
|
68
|
+
|
|
69
|
+
#### Scenario: System prompt carries no DASHR catalog or control section
|
|
70
|
+
|
|
71
|
+
- **WHEN** an agent session renders its system prompt
|
|
72
|
+
- **THEN** 没有 DASHR 来源的 section 枚举 per-tool 签名,也没有独立的 control-prompt section 教 cell 范式;全部 REPL 指引只经由 `eval` description 到达模型
|
|
73
|
+
|
|
74
|
+
#### Scenario: Description loads from the source Markdown
|
|
75
|
+
|
|
76
|
+
- **WHEN** the plugin registers the `eval` tool
|
|
77
|
+
- **THEN** 其 wire description 等于包内 Markdown 指引文件的内容——编辑该文件即改变模型可见的 description
|
|
78
|
+
|
|
79
|
+
#### Scenario: One bridge call form, one syntax delta
|
|
80
|
+
|
|
81
|
+
- **WHEN** the model reads the bridge instructions in the `eval` description
|
|
82
|
+
- **THEN** it sees the single positional-args-object call form 与 `True`/`False`/`None` 大小写映射,and no per-tool signature table or output-shape caveat(无任何"不保证形态/试错"措辞)
|
|
83
|
+
|
|
84
|
+
#### Scenario: Examples match wire parameter names
|
|
85
|
+
|
|
86
|
+
- **WHEN** the description shows a bridge example for `read`
|
|
87
|
+
- **THEN** 参数键与 `read` 的 wire schema 一致(如 `path`),而非其它工具的键名
|
|
88
|
+
|
|
89
|
+
#### Scenario: Guidance lives and dies with the tool
|
|
90
|
+
|
|
91
|
+
- **WHEN** a session's scope excludes the `eval` tool
|
|
92
|
+
- **THEN** 任何地方都不渲染 REPL 指引(指引即工具自身的 description);`eval` 在场时指引必然在场
|
|
93
|
+
|
|
94
|
+
#### Scenario: Alias annotation present
|
|
95
|
+
|
|
96
|
+
- **WHEN** the model reads the `eval` description
|
|
97
|
+
- **THEN** it states that `subagent` is an alias of the `agent` delegation tool,两者经同一 runtime delegate
|
|
98
|
+
|
|
99
|
+
#### Scenario: Non-flat exception present
|
|
100
|
+
|
|
101
|
+
- **WHEN** the model reads the `eval` description
|
|
102
|
+
- **THEN** it states that 含非标识符字符(如连字符)的工具名没有 `tool.<name>` member,必须以 direct tool call 调用
|
|
103
|
+
|
|
104
|
+
### Requirement: Masking failures surface loudly
|
|
105
|
+
|
|
106
|
+
The system SHALL surface a structured error, not a silent skip, when restricting any masked tool name fails at session start;application 完成后 mask SHALL verify 每个 masked 名在 **the wire tools array 与 the REPL bindings** 中均不存在。
|
|
107
|
+
|
|
108
|
+
#### Scenario: A masked name's restriction errors and the session reports it
|
|
109
|
+
|
|
110
|
+
- **WHEN** applying the mask, a single masked name's registry restriction throws
|
|
111
|
+
- **THEN** the session surfaces the failure as a structured error naming the masked tool, and the name does not silently remain on any model-facing surface
|
|
112
|
+
|
|
113
|
+
#### Scenario: Masked names absent after successful application
|
|
114
|
+
|
|
115
|
+
- **WHEN** an agent session starts under DASHR with a healthy registry
|
|
116
|
+
- **THEN** the wire tools array 与 the REPL bindings contain none of the masked names(`skill`、`send_message`、`report`、`list_agents`、`subagent_fork`、`interrupt_agent`、`workflow`、`ralph`),and a call naming a masked tool returns `UNKNOWN_TOOL`
|
|
117
|
+
|
|
118
|
+
### Requirement: REPL bindings bridge the visible registry mechanically
|
|
119
|
+
The system SHALL install REPL bindings by automatic, transparent conversion of every flat-bindable name in the registry's visible set at session start — no manual allowlist or denylist; masked names are naturally absent because the binding source and the masking act on the same projection. Non-flat names SHALL be skipped — a name is non-flat when it contains characters outside `[A-Za-z0-9_]` (e.g. hyphens); a `__` infix alone is a legal identifier and does not by itself make a name non-flat — and the bridge instructions SHALL state the name-shape limitation without enumerating affected tools.
|
|
120
|
+
|
|
121
|
+
#### Scenario: A newly registered host tool appears in the REPL without list edits
|
|
122
|
+
- **WHEN** the host registers a new flat-named tool after a DASHR upgrade
|
|
123
|
+
- **THEN** the next agent session exposes it as `tool.<name>` with no DASHR source change
|
|
124
|
+
|
|
125
|
+
#### Scenario: Non-flat MCP names documented, not listed
|
|
126
|
+
- **WHEN** an MCP tool named `mcp__server__tool-name` is registered
|
|
127
|
+
- **THEN** no binding is created for it, and the bridge instructions explain the name-shape limitation
|
|
128
|
+
|
|
129
|
+
#### Scenario: Double-underscore infix alone stays bindable
|
|
130
|
+
- **WHEN** a tool named `mcp__server__tool` (identifier characters only, no hyphen) is registered
|
|
131
|
+
- **THEN** the name is flat-bindable (`'mcp__server__tool'.isidentifier()` is true) and appears as `tool.<name>` unless separately masked
|
|
132
|
+
|
|
133
|
+
### Requirement: llm_completion tool
|
|
134
|
+
The system SHALL provide an `llm_completion` tool: a one-shot, stateless LLM call — no tools, no conversation history, no agent creation. Inputs: `{ prompt, system?, maxTokens? }`; output: the model's text. The call SHALL be attributed to the calling agent's session through the normal tool-call audit (the host's auxiliary-purpose enum is closed and carries no completion class), SHALL honor the caller's abort signal, and SHALL resolve its model route from the calling agent's current model selection, and SHALL answer a structured error value — never a silent fallback route — when no selection is available. A finish other than a clean stop, or any tool-call block in the output, SHALL produce a structured error value, not a thrown exception.
|
|
135
|
+
|
|
136
|
+
#### Scenario: Zero-spawn judge step inside a cell
|
|
137
|
+
- **WHEN** a cell calls `await tool.llm_completion({ prompt: "<judge prompt>", system: "<rubric>" })`
|
|
138
|
+
- **THEN** the value returned is the model's text; no subagent is spawned, no session besides the caller's is created, and the call is auditable under its own purpose
|
|
139
|
+
|
|
140
|
+
#### Scenario: Model route follows the caller
|
|
141
|
+
- **WHEN** the calling agent's selected model differs from the host default
|
|
142
|
+
- **THEN** the completion runs on the caller's selection
|
|
143
|
+
|
|
144
|
+
#### Scenario: Degraded finish is a structured error
|
|
145
|
+
- **WHEN** the completion hits maxTokens or aborts
|
|
146
|
+
- **THEN** the tool returns `{ error: <description> }` rather than throwing
|
|
147
|
+
|
|
148
|
+
### Requirement: REPL tool namespace introspection
|
|
149
|
+
The system SHALL make the REPL `tool` namespace introspectable: `dir(tool)` returns the sorted list of bound tool names — exactly the names callable as `tool.<name>(argsObject)`. The underlying injected mapping (e.g. `__dashr_injected__`) remains unchanged for compatibility; `dir()` is the documented introspection surface.
|
|
150
|
+
|
|
151
|
+
#### Scenario: dir(tool) lists the binding set
|
|
152
|
+
- **WHEN** a cell runs `dir(tool)`
|
|
153
|
+
- **THEN** the returned list equals the sorted set of names bound in the `tool` namespace for that run (dunder members aside), including the delegation bridges and `llm_completion`
|
|
154
|
+
|
|
155
|
+
### Requirement: Hashline edit family registered on the agent's own layer
|
|
156
|
+
|
|
157
|
+
The system SHALL register the vendored hashline edit family on each agent's own scope layer at session start — `edit` (hash-anchored ordered edit tuples, shadowing the preset's built-in edit by nearest-layer resolution, no mask entry needed) and `undo_last_edit` (revert of the most recent hashline edit) — alongside the URL-aware read/write/grep/glob wrappers, unwinding with the agent. The write tool SHALL remain the upstream full-file write with its native confirmation envelope: no hook SHALL append a hashline preview to write results, and the hashline guidance SHALL NOT promise post-write anchors (the model MAY edit directly using anchors derived from the content it just wrote, or read first). The hashline guidance sections SHALL shadow the preset's built-in tool guidance on the same layer (compiled defaults when no agentPresets service or a failing override — never a failed install).
|
|
158
|
+
|
|
159
|
+
#### Scenario: A hash-anchored edit lands and is reversible
|
|
160
|
+
|
|
161
|
+
- **WHEN** the model calls `edit` with anchored edit tuples on a file whose current content matches the anchors
|
|
162
|
+
- **THEN** the edit applies atomically (drift-checked against current content), and a subsequent `undo_last_edit` reverts it
|
|
163
|
+
|
|
164
|
+
#### Scenario: A write result stays upstream-native
|
|
165
|
+
|
|
166
|
+
- **WHEN** the model calls `write` and it succeeds
|
|
167
|
+
- **THEN** the result content is the upstream confirmation envelope with no auto-read/anchor section appended, and no read is required before the next anchored `edit` on that file
|
|
168
|
+
|
|
169
|
+
#### Scenario: The shadow replaces the built-in edit without masking
|
|
170
|
+
|
|
171
|
+
- **WHEN** an agent session starts under DASHR
|
|
172
|
+
- **THEN** the `edit` the model sees is the hashline tool (own-layer shadow), the preset's built-in edit is unreachable for that agent, and no deny-list entry names `edit`
|
|
173
|
+
|
|
174
|
+
### Requirement: Lsp feedback rides edit results
|
|
175
|
+
The system SHALL attach the same write-feedback diagnostics contract to successful edits: after a landed `edit` with an explicit path, the result content carries the diagnostics summary computed from the exact landed content (didSave freshness, timeout degradation, span guard — the `dvc` write-feedback requirement's terms apply verbatim). Anchor-only edits (path inferred from anchors) and non-edit tools pass through untouched; the write tool's feedback stays with its wrapper (no double pull).
|
|
176
|
+
|
|
177
|
+
#### Scenario: An edit that introduces a type error reports it
|
|
178
|
+
- **WHEN** an edit lands content introducing a type error in a file with a language server and its check completes within the budget
|
|
179
|
+
- **THEN** the edit result text carries the diagnostics summary for the exact landed content
|
|
180
|
+
|
|
181
|
+
### Requirement: Hashline edit verification is content-anchored
|
|
182
|
+
|
|
183
|
+
The system SHALL verify each edit tuple's anchors against the CURRENT file content before consulting any ledger: an anchor SHALL be accepted when its hash locates a unique, consistently pairable position in the current canonical line hashes; the served ledger SHALL be advisory (echo/undo attribution) and keyed by canonical absolute path with no session identity, so anchors survive session-tree forks and continuation without a re-read. Genuine drift SHALL still fail closed with nothing written, batch atomicity SHALL be unchanged, and a multi-tuple batch failure SHALL instruct reading the file once and resubmitting the whole batch.
|
|
184
|
+
|
|
185
|
+
#### Scenario: An edit across a forked session lands without a re-read
|
|
186
|
+
|
|
187
|
+
- **WHEN** a file is written or read in one session node, the conversation continues in a forked node (new session identity), and the model submits anchored edit tuples derived from that earlier content
|
|
188
|
+
- **THEN** the edit applies without any intervening `read`, because verification matched current content
|
|
189
|
+
|
|
190
|
+
#### Scenario: A drifted line still fails closed
|
|
191
|
+
|
|
192
|
+
- **WHEN** an anchor's hash no longer exists in the current file (content changed or line removed externally)
|
|
193
|
+
- **THEN** the tuple is rejected with a drift error stating the content changed and a read is needed, and nothing is written
|
|
194
|
+
|
|
195
|
+
#### Scenario: An ambiguous anchor falls back before failing
|
|
196
|
+
|
|
197
|
+
- **WHEN** an anchor's hash occurs at multiple current positions and the served ledger cannot disambiguate the span
|
|
198
|
+
- **THEN** the tuple is rejected with nothing written, and the error names the ambiguity
|
|
199
|
+
|
|
200
|
+
#### Scenario: Multi-tuple failure copy is actionable
|
|
201
|
+
|
|
202
|
+
- **WHEN** any tuple in a multi-tuple batch fails verification
|
|
203
|
+
- **THEN** the batch aborts with zero writes and the error instructs reading the file once, then resubmitting the whole batch
|
|
204
|
+
|
|
205
|
+
### Requirement: Hashline store centralized under DSH_HOME
|
|
206
|
+
|
|
207
|
+
The hashline store SHALL live at a single location — `$DSH_HOME/storages/dsh-better-edit/hash-store.sqlite` — for tool calls, previews, and tests alike, resolved through the harness home resolver so `DSH_HOME` isolates deployments; no per-workspace dot-directory SHALL be created. The served table SHALL be keyed by canonical absolute path (no session column), the 7-day TTL prune SHALL be retained, and the store schema version SHALL bump with a rebuild-on-mismatch gate that drops and recreates legacy session-keyed served tables.
|
|
208
|
+
|
|
209
|
+
#### Scenario: No dot-directory is created
|
|
210
|
+
|
|
211
|
+
- **WHEN** hashline tools run inside any workspace
|
|
212
|
+
- **THEN** state lands in the centralized store and no `<workspace>/.dsh_better_edit/` directory is created
|
|
213
|
+
|
|
214
|
+
#### Scenario: DSH_HOME isolates deployments
|
|
215
|
+
|
|
216
|
+
- **WHEN** the harness runs with a test `DSH_HOME` (e.g. the 4999 line)
|
|
217
|
+
- **THEN** its hashline store is a separate file under that home and never touches the production store
|
|
218
|
+
|
|
219
|
+
#### Scenario: Legacy session-keyed served tables rebuild
|
|
220
|
+
|
|
221
|
+
- **WHEN** the store opens with a schema version below the current one, or a served table still carrying a `session_id` column
|
|
222
|
+
- **THEN** the served table is dropped and recreated with the path-keyed schema, and the version marker is updated
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# url-schema Specification
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Give DASHR one uniform URL resource-addressing layer: read/write/grep/glob accept `scheme://` URLs, route by scheme to a handler, apply one selector syntax uniformly, and keep non-URL behavior byte-identical to the native tools via delegation.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
### Requirement: FS-shaped tools accept and route scheme URLs
|
|
10
|
+
The scheme registry SHALL be owned by the `dsh-url-schemes` cordis service (renamed from `dsh-url-schema`), which SHALL contain the `UrlResolver` and scheme handlers only (no tool registrations inside the service). The URL-aware read/write/grep/glob tools SHALL be tool-layer consumers. read SHALL accept `scheme://` URLs and resolve them end-to-end through the scheme registry; grep/glob SHALL translate or materialize the resource for the native search; write SHALL dispatch to a structured per-scheme write channel (all rejected this wave).
|
|
11
|
+
|
|
12
|
+
#### Scenario: Reading a registered scheme
|
|
13
|
+
- **WHEN** the model calls read with a registered scheme URL (e.g. `skill://foo`)
|
|
14
|
+
- **THEN** the system returns the handler-resolved content with the selector applied, not a filesystem read
|
|
15
|
+
|
|
16
|
+
#### Scenario: Reading an unregistered scheme
|
|
17
|
+
- **WHEN** the model calls read with a URL whose scheme has no registered handler (including `history://` — no special case exists)
|
|
18
|
+
- **THEN** the system returns the structured `URL_UNREGISTERED_SCHEME` error listing the registered schemes
|
|
19
|
+
|
|
20
|
+
#### Scenario: URL without a scheme prefix
|
|
21
|
+
- **WHEN** a resolver-layer caller passes a string without `scheme://`
|
|
22
|
+
- **THEN** the system returns the structured `URL_NO_SCHEME` error
|
|
23
|
+
|
|
24
|
+
### Requirement: `dsh://docs` serves the vendored upstream official docs
|
|
25
|
+
`dsh://docs` SHALL serve the shipped upstream official harness documentation corpus (`dsh-docs/`, vendored from the `deepseek-ai/deepseek-harness` repo `docs/`), not the DASHR repository's working notes. Resolution order: explicit `docsDir` → packaged `dsh-docs/` → packaged `docs/` → repo-root `docs/` (walk-up probes `dsh-docs` before `docs` at every level).
|
|
26
|
+
|
|
27
|
+
#### Scenario: Docs index lists the official corpus
|
|
28
|
+
- **WHEN** the model reads `dsh://docs`
|
|
29
|
+
- **THEN** the index enumerates the upstream official docs tree (`agent-lifecycle.md`, `api-gateway.md`, `architecture.md`, …)
|
|
30
|
+
|
|
31
|
+
### Requirement: Bare `skill://` lists the available skills
|
|
32
|
+
A bare `skill://` URL (no skill name) SHALL render the cwd-scoped skill catalog from the registry's `list` face — one line per winning summary (`skill://<name> — <description>`, plus `(use when: …)` when `whenToUse` is present) — using the same discovery rule as a name lookup. An empty catalog SHALL answer explicitly, never with an error.
|
|
33
|
+
|
|
34
|
+
#### Scenario: Bare skill list
|
|
35
|
+
- **WHEN** the model reads `skill://` with no skill name
|
|
36
|
+
- **THEN** the tool result contains the count header and per-skill lines, cwd-scoped exactly like `skill://<name>` resolution
|
|
37
|
+
|
|
38
|
+
#### Scenario: Empty catalog
|
|
39
|
+
- **WHEN** no skill is available in the workspace scope
|
|
40
|
+
- **THEN** the result reads "No skills available in this workspace scope." — not a `URL_SKILL_NOT_FOUND` error
|
|
41
|
+
|
|
42
|
+
### Requirement: Delegation shells preserve native non-URL behavior
|
|
43
|
+
The system SHALL implement read/write/grep/glob as delegation shells over the definition registered under the same semantic name at capture time, captured once per agent via `ctx.tools.get(name, agent)` strictly before the wrappers register on the agent's own scope layer (`read` included — its captured delegate MAY be another feature's wrapper). Non-URL inputs SHALL be forwarded verbatim to `captured.execute(args, exec)`, preserving the native write-intent policy gate, sandbox resolution, ripgrep search semantics, and any outer-layer behavior already present. The shells SHALL honor per-feature config gates `Config = { urlSchemes?: boolean = true, hashline?: boolean = true }` from the patch-line `config:` block: with `urlSchemes: false`, scheme paths SHALL fall through to the captured definition (native failure semantics are honest); with `hashline: false`, file reads SHALL delegate without hashline anchoring.
|
|
44
|
+
|
|
45
|
+
#### Scenario: Ordinary write keeps the policy gate
|
|
46
|
+
- **WHEN** the model writes to an ordinary file path
|
|
47
|
+
- **THEN** the call runs through the captured native write definition — the write-intent policy gate, sandbox resolution, and observation events behave exactly as before the URL schema existed
|
|
48
|
+
|
|
49
|
+
#### Scenario: Ordinary grep/glob keep ripgrep semantics
|
|
50
|
+
- **WHEN** the model greps or globs over ordinary paths
|
|
51
|
+
- **THEN** the call delegates to the captured native definition with args untouched, returning native-shaped results
|
|
52
|
+
|
|
53
|
+
#### Scenario: Missing native delegate fails loudly
|
|
54
|
+
- **WHEN** a host did not deploy the native write/grep/glob and the corresponding wrapper is invoked on a non-URL input
|
|
55
|
+
- **THEN** the system returns the structured `NATIVE_WRITE_UNAVAILABLE` / `NATIVE_GREP_UNAVAILABLE` / `NATIVE_GLOB_UNAVAILABLE` error instead of reimplementing the tool
|
|
56
|
+
|
|
57
|
+
#### Scenario: Capture happens before registration
|
|
58
|
+
- **WHEN** an agent session starts and the URL-aware tools are installed
|
|
59
|
+
- **THEN** the definitions under `read`/`write`/`grep`/`glob` are captured strictly before any wrapper registers on that agent's scope layer, so the captured reference is the pre-existing tool rather than the wrapper (no self-recursion)
|
|
60
|
+
|
|
61
|
+
#### Scenario: URL capability disabled by gate
|
|
62
|
+
- **WHEN** the patch line sets `urlSchemes: false` and the model reads `ctx://session`
|
|
63
|
+
- **THEN** the wrapper delegates to the captured read definition and the native failure surfaces
|
|
64
|
+
|
|
65
|
+
### Requirement: URL search reuses the native engine
|
|
66
|
+
The system SHALL run grep/glob over URL-addressed resources through the native search engine: path-backed schemes (a handler-implemented `resolvePath` mapping the URL to a real disk location — `skill://` today) have the URL translated to the disk path before delegating; content-backed schemes (agent, ctx, `dsh://config`, http, …) have the resolved text materialized into a fresh RAM-backed tempfs directory (`/dev/shm` when available and writable; falling back to the OS temp dir when unavailable or when a single materialization exceeds 8 MiB) which is removed afterwards whatever the outcome.
|
|
67
|
+
|
|
68
|
+
#### Scenario: Searching a path-backed resource
|
|
69
|
+
- **WHEN** the model greps a `skill://name` URL
|
|
70
|
+
- **THEN** the URL is translated to the skill's real disk path and only the search root is rewritten before the native grep runs
|
|
71
|
+
|
|
72
|
+
#### Scenario: Searching a content-backed resource
|
|
73
|
+
- **WHEN** the model greps a content-backed URL (e.g. `ctx://model`)
|
|
74
|
+
- **THEN** the resolved text is written into a fresh temp dir under `/dev/shm` (or the OS temp dir on fallback) as `content.txt`, the native grep searches it, and the temp dir is removed whether the search succeeds or fails
|
|
75
|
+
|
|
76
|
+
#### Scenario: Listing a URL resource
|
|
77
|
+
- **WHEN** the model calls glob with a URL in `pattern`
|
|
78
|
+
- **THEN** a path-backed scheme globs the resource's real disk directory natively, and a content-backed scheme returns the resolved text's non-empty lines as the listing without a native call
|
|
79
|
+
|
|
80
|
+
#### Scenario: Glob metacharacters in a URL pattern
|
|
81
|
+
- **WHEN** the glob pattern is a URL carrying glob metacharacters (e.g. `skill://grp/*`, `skill://grp/**/*.md`)
|
|
82
|
+
- **THEN** the pattern splits at the first metacharacter (`*?[`): the URL part resolves via `resolvePath` and the tail is the rooted glob pattern applied WITHIN the resource's real disk directory — the raw metachar-containing string is never handed to the native engine as a literal path
|
|
83
|
+
|
|
84
|
+
#### Scenario: Grep match paths report URL addressing
|
|
85
|
+
- **WHEN** a grep over a path-backed URL returns matches
|
|
86
|
+
- **THEN** match paths are rewritten back to the URL form (`skill://grp/SKILL.md`), both for absolute paths under the disk root and for native-relative paths — the model never sees internal disk locations
|
|
87
|
+
|
|
88
|
+
#### Scenario: Fallback to the OS temp dir
|
|
89
|
+
- **WHEN** `/dev/shm` is unavailable or the content exceeds 8 MiB
|
|
90
|
+
- **THEN** materialization falls back to the OS temp dir and the search still completes
|
|
91
|
+
|
|
92
|
+
### Requirement: URL writes are rejected per scheme
|
|
93
|
+
The system SHALL reject every `scheme://` write with a scheme-specific structured error: `dvc://` → `DVC_NO_DEVICE` (no device mounted), `ctx://` → `URL_READ_ONLY` (curated read-only snapshot), any other registered scheme → `URL_WRITE_UNSUPPORTED`, unregistered scheme → `URL_UNREGISTERED_SCHEME`.
|
|
94
|
+
|
|
95
|
+
#### Scenario: Writing to a read-only scheme
|
|
96
|
+
- **WHEN** the model writes to `ctx://model`
|
|
97
|
+
- **THEN** the system returns the structured `URL_READ_ONLY` error explaining the scheme is a read-only snapshot
|
|
98
|
+
|
|
99
|
+
#### Scenario: Writing to the device placeholder
|
|
100
|
+
- **WHEN** the model writes to `dvc://<device>`
|
|
101
|
+
- **THEN** the system returns the structured `DVC_NO_DEVICE` error (no devices mounted to route the write to)
|
|
102
|
+
|
|
103
|
+
### Requirement: Unified selector syntax
|
|
104
|
+
The system SHALL parse selectors once (`:N-M` comma-lists, `:raw`, `:path/…`, `?q=`) and apply them uniformly to every handler's full text after resolution. Handlers return full text with no default line truncation; only explicit selectors page. Malformed selectors return the structured `URL_BAD_SELECTOR` error.
|
|
105
|
+
|
|
106
|
+
#### Scenario: Scheme URL with a line range
|
|
107
|
+
- **WHEN** the model reads `skill://foo:50-100`
|
|
108
|
+
- **THEN** the system resolves the full skill body and returns lines 50–100, exactly as it would slice a plain file
|
|
109
|
+
|
|
110
|
+
#### Scenario: JSON path and query selectors
|
|
111
|
+
- **WHEN** the resolved text is JSON and the URL carries `:path/a.b` or `?q=a.b`
|
|
112
|
+
- **THEN** the system navigates the JSON by dot-path; for non-JSON text `?q=` keeps the lines containing the query string
|
|
113
|
+
|
|
114
|
+
### Requirement: Read delegation shapes args to the delegate and coerces output
|
|
115
|
+
The URL-aware read wrapper SHALL accept both `path` and `file_path` (aliased); when delegating a non-scheme path it SHALL shape args to the delegate's DECLARED parameters (`file_path` for the host-native read, `path` for hashline; opaque schemas forwarded verbatim — no keys added an unknown validator might reject) and SHALL coerce a non-string delegate result to the wrapper's string output (JSON serialization), since the wrapper declares the string face for every branch.
|
|
116
|
+
|
|
117
|
+
#### Scenario: Host-native delegate receives file_path
|
|
118
|
+
- **WHEN** a file path is delegated to a delegate whose schema declares `file_path`
|
|
119
|
+
- **THEN** the delegate receives `file_path` (the `path` key removed) and its structured result is serialized into the wrapper's string output
|
|
120
|
+
|
|
121
|
+
#### Scenario: Hashline delegate receives path
|
|
122
|
+
- **WHEN** a file path is delegated to the hashline read (schema declares `path`)
|
|
123
|
+
- **THEN** the delegate receives `path` only and the anchored text returns verbatim
|
|
124
|
+
|
|
125
|
+
### Requirement: read's file branch stays vendored hashline
|
|
126
|
+
The system SHALL keep the ordinary-file branch of read on the vendored hashline pipeline (HASH│content anchors plus the snapshot store the vendored edit tools depend on), reading through the sandboxed filesystem and the fs observation policy gate — read delegates to no native definition.
|
|
127
|
+
|
|
128
|
+
#### Scenario: Plain file read returns hashline anchors
|
|
129
|
+
- **WHEN** the model reads an ordinary file path
|
|
130
|
+
- **THEN** the system returns hashline-anchored lines via the vendored pipeline and records the observation with the fs policy gate, so follow-up edit calls see the version just read
|
|
131
|
+
|
|
132
|
+
### Requirement: Read chassis with ordered transforms
|
|
133
|
+
The `read` tool registration SHALL be owned by a single chassis inside `dsh-url-schemes`: an ordered transform chain (URL transform, hashline anchor transform, …) with a terminal delegate to the captured read definition. Additional read-side features SHALL register transforms into the chassis rather than registering competing `read` definitions (same-layer same-name registration is a registry error); a read-interested feature SHALL fall back to its own minimal wrapper only when the chassis is absent.
|
|
134
|
+
|
|
135
|
+
#### Scenario: Transforms compose deterministically
|
|
136
|
+
- **WHEN** both the URL transform and the hashline anchor transform are registered and the model reads a filesystem path
|
|
137
|
+
- **THEN** the path flows URL transform (no match) → anchor transform (anchors applied) → captured native read
|
|
138
|
+
|
|
139
|
+
### Requirement: General syntax guidance section
|
|
140
|
+
The service SHALL render a gated `url-schema:general` system-prompt section whose text is loaded once at module load from the package-root `url-schemes-instruction.md` (the owner-maintained instruction file; shipped via the package.json `files` array — an unlisted file is omitted from the published package and the module-load `readFileSync` fails plugin boot, the 0.2.3-d ENOENT lesson) (shipped via the package.json `files` array — an unlisted file is omitted from the published package and the module-load `readFileSync` fails plugin boot, the 0.2.3-d ENOENT lesson). The section is the SINGLE surfacing point of the URL scheme set to the model: the read/grep/glob/write tool descriptions SHALL carry NO `scheme://` mentions, so the model cannot believe only some tools accept URLs. The section text is the OWNER-MAINTAINED file rendered verbatim (2026-09-12 ruling: the file is hand-edited, not generated) and SHALL cover at minimum: the general URL grammar (`scheme://<path>[:selector]`); all six schemes (`skill://`, `agent://`, `dsh://`, `ctx://`, `dvc://`, `http(s)://`) with first-level resource coverage per scheme; the selector set including the composite `:raw:N-M` clause; and bulk-read guidance. The section renders only while the URL capability is enabled.
|
|
141
|
+
|
|
142
|
+
#### Scenario: Gated disclosure
|
|
143
|
+
- **WHEN** the URL capability is enabled and an agent session starts
|
|
144
|
+
- **THEN** the system prompt contains the section text loaded from `url-schemes-instruction.md` with the grammar, selector, and scheme coverage
|
|
145
|
+
|
|
146
|
+
#### Scenario: Tool descriptions stay scheme-silent
|
|
147
|
+
- **WHEN** the model inspects any read/grep/glob/write tool description on the wire
|
|
148
|
+
- **THEN** no description carries a `scheme://` mention — the `url-schema:general` section is the only place the scheme set is surfaced
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# web-trust-fence Specification
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
better-dsh 的 /api 信任栅栏随发契约(替代 prod 手改 patch):bundle patch 整行重述 `connection` 行,`trustedHosts` = `DSH_TRUSTED_HOSTS` env 条目 + 上游 webRuntime 权威拼接(env 缺省时行为与原装行等价、零侵入);host 半 boot script 的 isLoopback 腿——页面 origin 命中 `trustedPageAuthorities` 时置 `window.__DSH_TRANSPORT__ = { ownsHost: true }`(空列表不注入)。
|
|
5
|
+
|
|
6
|
+
## Requirements
|
|
7
|
+
|
|
8
|
+
### Requirement: Plugin-shipped fence authorities
|
|
9
|
+
|
|
10
|
+
The plugin's bundle patch layer SHALL override the `connection` loader row by id, restating the row's full shape, with `config.trustedHosts` computed as the concatenation of `DSH_TRUSTED_HOSTS` environment entries (whitespace-separated) and the upstream `webRuntime`-derived authorities; with the environment variable unset or empty the resulting composition SHALL be byte-equivalent in behavior to the unpatched upstream row (inert by default).
|
|
11
|
+
|
|
12
|
+
#### Scenario: Env-derived authority passes the fence
|
|
13
|
+
|
|
14
|
+
- **WHEN** the daemon runs with `DSH_TRUSTED_HOSTS=host.example` and a browser reaches `/api` with `Host: host.example` and same-origin markers
|
|
15
|
+
- **THEN** the request passes the Host/Origin trust fence (no 403 from the fence) and the Settings > Models provider directory loads from that authority
|
|
16
|
+
|
|
17
|
+
#### Scenario: Inert without the environment variable
|
|
18
|
+
|
|
19
|
+
- **WHEN** the daemon runs without `DSH_TRUSTED_HOSTS`
|
|
20
|
+
- **THEN** the fence accepts exactly the authorities the unpatched upstream composition would (loopback, LAN literals on all-interface binds, `--trusted-host` extras)
|
|
21
|
+
|
|
22
|
+
#### Scenario: Malformed entry fails loud at load
|
|
23
|
+
|
|
24
|
+
- **WHEN** `DSH_TRUSTED_HOSTS` contains an entry that is not a bare canonical `host[:port]` authority
|
|
25
|
+
- **THEN** plugin load fails loudly via the upstream `assertTrustedAuthority` validation instead of silently widening or narrowing the fence
|
|
26
|
+
|
|
27
|
+
### Requirement: Upgrade-safe replacement of the hand patch
|
|
28
|
+
|
|
29
|
+
The plugin SHALL NOT require source-level edits to vendored `@deepseek-ai/*` files for fence behavior; the alpha.3 hand patch (`isLoopbackHostname` widening in `dsh-client-connection` index.js and client bundle) SHALL be retirable on alpha.5+ by this capability alone, and the row-override shape SHALL be tracked as an upstream-alignment checklist item (diff `packages/bundle/web-app/cordis.patch.yml`'s `connection` row each alignment round).
|
|
30
|
+
|
|
31
|
+
#### Scenario: Upstream row drift is detected at alignment time
|
|
32
|
+
|
|
33
|
+
- **WHEN** an upstream release changes the `connection` row's keys (name, inject, or config shape)
|
|
34
|
+
- **THEN** the alignment-round checklist surfaces the drift before the stale restated row ships
|
|
35
|
+
|
|
36
|
+
### Requirement: User layer keeps precedence
|
|
37
|
+
|
|
38
|
+
A user's own profile or home `cordis.patch.yml` override of the `connection` row SHALL take precedence over the plugin's bundle layer, preserving the upstream layering contract.
|
|
39
|
+
|
|
40
|
+
#### Scenario: User override wins
|
|
41
|
+
|
|
42
|
+
- **WHEN** the user's profile patch restates the `connection` row
|
|
43
|
+
- **THEN** the user's row applies, not the plugin's
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# upstream dsh npm 版本对账:prod 0.1.3-alpha.2 → 0.1.5-rc.2
|
|
2
|
+
|
|
3
|
+
> 生成时间:2026-09-10(本地时区)
|
|
4
|
+
> 数据源:npm registry(`@deepseek-ai/dsh`)元数据 + `upstream/deepseek-harness` git tag 对账
|
|
5
|
+
> 目标:回答「npm 上比 prod 更高的版本是什么、diff 有多大、对 prod 意味着什么」
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 〇、一句话结论
|
|
10
|
+
|
|
11
|
+
prod 当前跑 **`@deepseek-ai/dsh@0.1.3-alpha.2`**。npm 上比它高的版本是整条 **0.1.5 线**(`alpha.1 / alpha.2 / rc.1 / rc.2`,**0.1.4 从未发布,直接跳号**)。最高版本是 **`0.1.5-rc.2`**(挂在 `next` dist-tag,而 `latest` 还停在 `0.1.5-rc.1`)。
|
|
12
|
+
|
|
13
|
+
这条 0.1.5 线是**大版本级聚合**:846 commits、3170 文件、约 10.4 万行新增。核心是 **Session 格式 v3 重写**(会话持久化契约变更,对 prod 是**破坏性升级,不可 drop-in**),外加 Electron 桌面打包、Sidebar/dockkit 重构、文件交付「present」工具、图渲染预览、模型默认值切换(DeepSeek V41 Flash)等一批功能。**升级 prod 前必须按 AGENTS.md §一/§二 走对齐轮,不能只换版本号。**
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 一、版本全景
|
|
18
|
+
|
|
19
|
+
npm registry 当前 dist-tags:
|
|
20
|
+
|
|
21
|
+
| dist-tag | 指向版本 |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `latest` | 0.1.5-rc.1 |
|
|
24
|
+
| `next` | **0.1.5-rc.2**(最高) |
|
|
25
|
+
| `alpha` | 0.1.5-alpha.2 |
|
|
26
|
+
|
|
27
|
+
比 prod(0.1.3-alpha.2)更高的版本,按发布顺序:
|
|
28
|
+
|
|
29
|
+
| 版本 | npm 发布时间 (UTC) | dist-tag |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| 0.1.5-alpha.1 | 2026-09-08 15:57 | — |
|
|
32
|
+
| 0.1.5-alpha.2 | 2026-09-09 14:41 | `alpha` |
|
|
33
|
+
| 0.1.5-rc.1 | 2026-09-10 03:12 | `latest` |
|
|
34
|
+
| **0.1.5-rc.2** | **2026-09-10 14:57** | `next` |
|
|
35
|
+
|
|
36
|
+
> 注意点:`latest` 并不指向最高版本(rc.1 vs rc.2);「最高版本」= `next` 上的 **0.1.5-rc.2**。0.1.4 未在 npm 出现过。
|
|
37
|
+
|
|
38
|
+
对应 git tag(本地 `upstream/deepseek-harness`,已 fetch):
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
dsh-v0.1.3-alpha.2 2026-09-07 19:45 +0800 ← prod 当前
|
|
42
|
+
dsh-v0.1.5-alpha.1 2026-09-08 23:25 +0800
|
|
43
|
+
dsh-v0.1.5-alpha.2 2026-09-09 22:13 +0800
|
|
44
|
+
dsh-v0.1.5-rc.1 2026-09-10 09:36 +0800
|
|
45
|
+
dsh-v0.1.5-rc.2 2026-09-10 21:50 +0800
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 二、diff 规模
|
|
51
|
+
|
|
52
|
+
`dsh-v0.1.3-alpha.2 .. dsh-v0.1.5-rc.2`:
|
|
53
|
+
|
|
54
|
+
| 指标 | 值 |
|
|
55
|
+
|---|---|
|
|
56
|
+
| commits | **846** |
|
|
57
|
+
| 文件 | 3170 changed |
|
|
58
|
+
| 行 | +103,990 / −17,687 |
|
|
59
|
+
| 源码侧(排除 snapshots/tests) | 2474 文件,+68,818 / −13,973 |
|
|
60
|
+
|
|
61
|
+
分段 commit 分布:
|
|
62
|
+
|
|
63
|
+
| 区间 | commits |
|
|
64
|
+
|---|---|
|
|
65
|
+
| 0.1.3-alpha.2 → 0.1.5-alpha.1 | 563(大头,聚合了 Session V3 与一堆 feature) |
|
|
66
|
+
| 0.1.5-alpha.1 → 0.1.5-alpha.2 | 262 |
|
|
67
|
+
| 0.1.5-alpha.2 → 0.1.5-rc.1 | 17 |
|
|
68
|
+
| 0.1.5-rc.1 → 0.1.5-rc.2 | 4(收尾/backport) |
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 三、依赖面变化(对 prod 直接可见)
|
|
73
|
+
|
|
74
|
+
prod 0.1.3-alpha.2 有 **71 个 dependencies**,0.1.5-rc.2 有 **72 个**。差异:
|
|
75
|
+
|
|
76
|
+
1. **新增运行期包 `@deepseek-ai/dsh-tool-present`**(`packages/fs/tool-present`)——新「present」工具:把 agent 产出的文件以不可变交付卡片(download card)呈现,是文件交付特性的宿主半。
|
|
77
|
+
2. `apps/cli` devDeps 新增 `@deepseek-ai/dsh-agent-loop`、`@deepseek-ai/dsh-agent-loop-testkit`(内部,不影响 prod 运行面)。
|
|
78
|
+
3. 新增 client 包 `ui-deliverables`(`PresentRow` / `PresentedFileCard` / `present-open`),属 web shell 交付卡片 UI。
|
|
79
|
+
4. 其余全部 `@deepseek-ai/*` 依赖整体从 `^0.1.3-alpha.2` 抬到 `^0.1.5-rc.2`(同版本号齐步,无个别漂移)。
|
|
80
|
+
5. 底层 `cordis` / `schemastery` / `commander` / `js-yaml` 等版本**未变**(`cordis ^4.0.2`、`schemastery ^3.18.2` 等,与 0.1.3-alpha.2 相同)。
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 四、主要变更主题(按 prod 相关度排序)
|
|
85
|
+
|
|
86
|
+
### 1. Session 格式 v3 重写(⚠ 破坏性,最高风险)
|
|
87
|
+
`session-log-v3` 工作线,是本次最大的变更块。要点:
|
|
88
|
+
|
|
89
|
+
- 会话身份 **V2 → V3 迁移**(`feat(session): add identity V2-to-V3 migration and writer skeleton`)。
|
|
90
|
+
- system prompt 表示为 **surface node zero**(`refactor(session): represent the system prompt as surface node zero`)。
|
|
91
|
+
- **canonical envelopes**、PTC durable vocabulary、in-history system prompt 表示、JSONL 跨进程写所有权(lease)。
|
|
92
|
+
- 大量 `session.v3.jsonl` 快照与 V2/V3 迁移覆盖面单测。
|
|
93
|
+
|
|
94
|
+
> **对 prod 的含义**:会话持久化契约改变。上一轮(0.1.3-alpha.2 对齐)已实测:上游 tag diff 会打到 `session-persistence-omp.ts` / `replay.ts` / store 的 handle+lease 契约(见 2026-09-08 对齐报告)。**0.1.5 的 V3 比 0.1.3 的 V2 更进一步,破坏面更大**,`better-dsh` / `omp-web` 这类桥接会话数据的插件必须重新对齐,不能 drop-in。
|
|
95
|
+
|
|
96
|
+
### 2. Electron 桌面打包(对 3080 web 无直接作用)
|
|
97
|
+
Windows/macOS/Linux 构建、mac 签名+公证、Windows 签名、auto-update、IPC 性能优化。纯桌面宿主线,与本机 `dsh web`(3080)部署无关,但意味着上游发布面从此多一个桌面产物。
|
|
98
|
+
|
|
99
|
+
### 3. Sidebar / dockkit 重构
|
|
100
|
+
- `dockkit` 可逆停靠引擎、pointer 交互。
|
|
101
|
+
- 全局 sidebar panel、tab 导航、live tab 标题 + 文件类型图标、末 tab 关闭规则、响应式右栏、全屏 shell。
|
|
102
|
+
- session-log 控制移入 header「更多」菜单。
|
|
103
|
+
|
|
104
|
+
### 4. 文件交付「present」工具 + 文档预览
|
|
105
|
+
- 新 `dsh-tool-present` 包:不可变文件交付下载卡片、artifact 卡原生文件动作、workspace 文件操作。
|
|
106
|
+
- 可扩展文档预览、文本预览分页 tab、文件类型图标集、`ui-deliverables` client 卡。
|
|
107
|
+
- `feat(fs)`:bounded byte-range reads(fs-local / fs-e2b)、dual-face 文件 API。
|
|
108
|
+
|
|
109
|
+
### 5. 图表 / Markdown 预览
|
|
110
|
+
Chat 代码块内预览 Mermaid / Graphviz / SVG / HTML fence,适配应用主题。
|
|
111
|
+
|
|
112
|
+
### 6. LLM 模型默认值切换(⚠ 影响 prod 行为)
|
|
113
|
+
- Chat Completions 默认切到 **DeepSeek V41 Flash**(`feat(llm): default Chat Completions to DeepSeek V41 Flash`)。
|
|
114
|
+
- 保留 V4 模型、恢复 V4 Flash Vision Exp catalog 条目。
|
|
115
|
+
> prod 若升级,默认模型会跟着变;需确认是否期望。
|
|
116
|
+
|
|
117
|
+
### 7. Feedback 对话框
|
|
118
|
+
`/feedback` 与 Dislike 统一为一个带分类的对话框 + toast。
|
|
119
|
+
|
|
120
|
+
### 8. Subagent catalog
|
|
121
|
+
记录并观察 parent-owned child catalog(子代理目录)。
|
|
122
|
+
|
|
123
|
+
### 9. native system / node-addon-system
|
|
124
|
+
包族改名 `node-addon-system`,预编译 Node-API flock、Landlock capability 子路径。**新增原生依赖面,升级安装需留意 prod 机上的原生构建/预编译匹配**(本机已有一处 zeromq allowBuilds 特例,见 AGENTS.md §二)。
|
|
125
|
+
|
|
126
|
+
### 10. minimal profile 行为调整
|
|
127
|
+
- `str_replace_editor` 从 minimal profiles 移除。
|
|
128
|
+
- persistent bash 输出与 one-shot shell 契约对齐。
|
|
129
|
+
> 只影响 minimal profile,不影响 prod `web` profile 的默认工具集。
|
|
130
|
+
|
|
131
|
+
### 11. 其它
|
|
132
|
+
- CLI:从 shipped 模板创建 profile。
|
|
133
|
+
- skills:Playwright 视频录制 GIF。
|
|
134
|
+
- 内部 CI/审查自动化(weighted PR approval、review owner 排名等)——与 prod 运行无关。
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 五、对 prod 升级的风险评估(简要)
|
|
139
|
+
|
|
140
|
+
| 风险项 | 级别 | 说明 |
|
|
141
|
+
|---|---|---|
|
|
142
|
+
| Session V3 格式迁移 | 🔴 高 | 会话持久化契约变更;`better-dsh`/`omp-web` 会话桥接面需重新对齐,先例(0.1.3 V2)已证实非 drop-in |
|
|
143
|
+
| 模型默认切 V41 Flash | 🟠 中 | 默认行为变化,需 user 确认是否接受 |
|
|
144
|
+
| 新原生依赖(node-addon-system) | 🟡 中低 | 安装面原生构建/预编译匹配;本机 pnpm strictDepBuilds/allowBuilds 需复核 |
|
|
145
|
+
| 新工具 `dsh-tool-present` | 🟡 中低 | 新工具进入 agent 运行时,需确认与现有工具/插件无 id 冲突 |
|
|
146
|
+
| Sidebar/dockkit UI 重构 | 🟢 低(功能面) | 纯增量 UI,但 better-dsh 的 mobile 手势/侧栏 patch 需复测是否仍对齐 |
|
|
147
|
+
| Electron 桌面 | ⚪ 无关 | 不影响 web 部署 |
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## 六、建议
|
|
152
|
+
|
|
153
|
+
1. 本次**只做对账、不做升级**:0.1.5 是聚合大版本,且含 Session V3 破坏性契约变更,不能当「换版本号」处理。
|
|
154
|
+
2. 若后续要升级,按 AGENTS.md §一/§二走 **Dev/Test 1(4999 源码级)对齐轮**:切 `dsh-v0.1.5-rc.2` → 重放三处本地 patch(storeDir / unrun devDep / resolveRepositoryRoot)→ install/build → 插件契约对齐(重点 `session-persistence-omp.ts`/`replay.ts`/store 的 V3 handle+lease)→ tsc/单测 → 4999 第一人称实测 → 报告落 `docs/50_test-reports/` → user 确认 → 才动 prod 3080。
|
|
155
|
+
3. 升级目标版本**首选 `0.1.5-rc.2`(`next`)而非 `latest`(rc.1)**,因为 rc.2 才是最高版本;但 rc 阶段仍建议等上游正式 stable 后再定。
|
|
156
|
+
4. 升级前单独确认模型默认值(V41 Flash)是否要在 prod 生效。
|