feat(workspace): add composable services with DSH 0.1.5 support - #229
Draft
Grivn wants to merge 24 commits into
Draft
feat(workspace): add composable services with DSH 0.1.5 support#229Grivn wants to merge 24 commits into
Grivn wants to merge 24 commits into
Conversation
Grivn
force-pushed
the
codex/composable-workspace-context
branch
from
September 12, 2026 11:50
a83876d to
15c8c33
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要 / Summary
通过独立 Source、Workspace Strategy 和纯策略增强扩展项目上下文、日志、任务、会话、方法库、文件、协作、后台任务、审查、素材、通知与同步能力,并将设置改为符合 DSH 主题的紧凑控件和窄屏原生弹窗。Rebase 到 v0.5.8 main,使用已发布 DSH 0.1.5-rc.1 契约,保留默认三层组合、运行时容量维护和逐次外部动作审批。
Add independently owned workspace Sources, a complete Workspace Strategy and pure Strategy extensions, with native DSH settings controls and a narrow-screen dialog. Rebase onto v0.5.8 main with the published DSH 0.1.5-rc.1 contracts while preserving the default three-tier profile, runtime capacity maintenance and exact-call external-action approval.
关联 Issue 或背景 / Related Issue or Context
N/A — 维护者在本任务中明确要求扩展插件能力、调整设置 UI、同步 main 并提交新 PR。DSH 0.1.5 报错 #223 与 #225 已由合入 main 的 #226 修复;本 PR 保留该修复并适配新增插件,没有重复关闭这些 Issue。
N/A — The maintainer explicitly requested this plugin expansion, settings refinement, main synchronization and new PR in the task. Issues #223 and #225 were already addressed by #226 on main; this PR retains that fix and adapts the additional plugins.
涉及区域 / Affected Areas
PR 类型 / PR Type
最新代码确认 / Latest Codebase Confirmation
main分支开发,或在提交前已 rebase 或合并最新main。 / I developed from the latestmain, or rebased or merged the latestmainbefore submitting.同步命令 / Sync command:
2026-09-12:已 rebase 到 main
8f3ce5e(v0.5.8),保留已有合并结构与手动兼容性修复。当前提交为bde75c5。上游审阅保护、运行时归档预检、路由回退、稳定结果工具与侧栏修复均已纳入,独立插件依赖图和此前构建、搜索修复保留。Rebased onto main
8f3ce5e(v0.5.8), preserving merge history and manual compatibility resolutions. Current head:bde75c5. Upstream review guards, runtime archive preflight, routing fallback, stable result tools and sidebar fixes are included; the independent plugin graph and prior build/search fixes are preserved.AI 编码披露 / AI Coding Disclosure
使用的 AI 模型 / AI model used:
GPT-6
使用的编码 Agent 工具 / Coding Agent tool used:
Codex desktop. 自动化检查与实现审阅由 Codex 执行;不宣称已经完成人工审查。 / Codex performed the automated checks and implementation review; human review is not claimed.
仓库规范检查 / Repository Rules
@deepseek-ai/*NPM 契约。 / I did not modify DSH source or point tsconfig at a DSH source checkout, and used only published@deepseek-ai/*NPM contracts.src/host/protocol.ts为准,没有在两侧重复定义 wire DTO。 / The Client and Host boundary still uses browser-safesrc/host/protocol.tsas the source for wire DTOs.lib/文件。 / I did not commit tokens, credentials, private memory, unredacted logs, or generatedlib/files.兼容性与数据安全 / Compatibility and Data Safety
新增能力由可单独安装、测试、构建和停用的插件拥有;Root 仅提供公开契约、Host、通用管理界面与默认 Starter。数据由各 Source 按项目/全局/会话作用域持有,持久修订、原子提交、损坏输入拒绝、来源与回执均有测试。停用插件保留其数据;新增组合是可选配置,原有三层默认行为保留。
Each plugin can be installed, tested, built and disabled independently. Root owns public contracts, Host, shared management UI and the default Starter. Sources own scoped records, revisions, atomic commits, rejection paths, provenance and receipts. Disabling a plugin retains its data; the new composition is optional and the existing three-tier default remains.
进程执行、会话投递、提示词调用、文件同步及通知发送均保留明确计划、范围限制和逐次审批;批准绑定当前动作和参数,执行时重查权限与版本。只用合成数据、本机模型/通知接收器和本机 Git 仓库验收;没有使用第三方账号或发送外部通知。
External actions retain bounded plans, scoped authority and exact-call approval. Execution rechecks current authority and revisions. Validation uses synthetic records, a local model, loopback notification receivers and local Git repositories; no third-party accounts or external notification delivery were used.
开发验证固定使用 DSH 0.1.5-rc.1 的公开制品;独立插件显式声明所需的间接开发 peer,公开运行时 peer 兼容范围保持不变。旧会话修复入口从 main 保留,默认写副本;本任务没有修改个人历史。新版可省略文字的反馈不会生成虚构日志;集中式工作区保留显式检查选择。真实 Mnemon 0.2.7 已通过隔离读写验证。
Development validation pins published DSH 0.1.5-rc.1 artifacts, including the required transitive development peers of standalone plugins. Public runtime peer compatibility ranges are unchanged. The upstream copy-first legacy-session recovery command is retained; personal history was untouched. Textless feedback does not create fabricated journal entries, and centralized workspace inspection remains explicit. Real Mnemon 0.2.7 passed isolated read/write validation.
本地验证 / Local Validation
执行的命令 / Commands run on the rebased code:
结果摘要 / Result summary — 2026-09-12:
verify: 1,018 root tests passed, 5 opt-in skips; all 35 plugin builds, type checks and tests, deterministic builds, package contents, public imports, publint and declarations passed. / 根测试 1,018 项通过,5 项 opt-in 跳过;35 个插件构建、类型与测试及公开包验证通过。pnpm test: 1,446 passed, 7 opt-in skips across 177 files. / 集成测试在 177 个文件中通过 1,446 项,另 7 项 opt-in 跳过。verify:plugins --skip-build: all 35 standalone plugin repositories and 36 packed artifacts passed, including the external SDK/Client consumer, real DSH Starter upgrade and optional Strategy activation. This reused the already verified Root artifacts; every standalone plugin built from its own sources. / 35 个独立插件仓库、36 个制品、外部 SDK/Client 消费者及真实 DSH 安装与策略启用全部通过;仅复用已验证的 Root 制品,各插件仍从自身源码独立构建。verifyand independent artifact checks passed after this correction. / 独立开发安装已补齐固定 rc.1 的必要 DSH peer,修复 npm 选择新 rc.2 间接依赖导致的冲突;lockfile 仅新增导入条目,包版本与解析图不变。修正后的完整本机与独立制品验证通过。bde75c5: CI run 34692589126 passed both Node 22.19 source verification (including Node 20 public imports) and Node 24 packed-plugin verification. Draft-only policy workflows are skipped. / 最终提交的源码与独立制品两项 CI 全部通过,含 Node 20 公开入口检查;PR 规范工作流因草稿状态跳过。用户可见变更证据 / Local Feature Evidence
证据 / Evidence:
完整双语验收记录 / Full bilingual validation record includes the recorded desktop/mobile flows, scope isolation, rejected edits, exact approvals, durable receipts and the dated automated results after rebasing onto v0.5.8 main.
以下图片属于同步 main 之前的设置 UI revision
1c272ae,只作为该版功能记录。 / These screenshots belong to the pre-sync settings UI revision1c272aeand document that revision only.2026-09-10 的完整 DSH 0.1.5 服务环境已成功启动,但当时内置浏览器与 Chrome 均以
ERR_BLOCKED_BY_CLIENT阻止访问,未获得同步后的新页面截图。本轮 rebase 完成自动化回归,尚未重做 WebUI 验收。因此 PR 保持 Draft;合并前仍需复查集中式存储布局及新版设置流程。The complete DSH 0.1.5 service profile started successfully on September 10, but the in-app browser and Chrome then blocked navigation with
ERR_BLOCKED_BY_CLIENT, so no post-sync screenshots were obtained. This rebase completes automated regression checks without a new WebUI acceptance run. The PR remains a draft pending a browser recheck of centralized storage layout and the combined settings flow before merge.