@jayyuen66/dsh-dir-prep-organize 0.1.13 → 0.1.15
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/CHANGELOG.md +8 -0
- package/README.md +14 -5
- package/README.zh-CN.md +14 -5
- package/client.js +38 -2229
- package/cordis.patch.yml +4 -0
- package/docs/DETAIL.md +6 -0
- package/docs/DETAIL.zh.md +6 -0
- package/host.js +3 -16
- package/package.json +49 -45
- package/types/src/remote.d.ts +1 -4
- package/types/src/ui-messages.d.ts +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
[语义化版本](https://semver.org/lang/zh-CN/)。最新版本在最上。这里的偏离是刻意的:版本标题
|
|
5
5
|
不写发布日期,各版发布时间以 npm registry 为准(`npm view <包名> time` 取得到)。
|
|
6
6
|
|
|
7
|
+
## 0.1.15
|
|
8
|
+
|
|
9
|
+
宿主基线抬到 `0.2.2-rc.5`:devDependencies 全族精确钉 rc.5,`engines.dsh` 与 dsh 家族 peer 同一条窗口;dependabot 配置注释与集成台架的契约证据行(deepseek-harness @ dsh-v0.2.2-rc.5)同步。Typert 远端方法的程序化标记收编 shared `./lib/remote-marker`(与 session-rescue / ocr-review 的副本逐字同构);`test/build-host.test.ts` 的 shared 子路径外置清单补 `lib/instance-lock` 与 `lib/remote-marker`。`src/remote.ts` 的 `RemoteHost` / `isMounter` 与 `src/client-entry.ts` 的 `within` 竞速骨架收编 shared(`./lib/typert-client` / `./lib/with-timeout`)。shared 经 catalog 抬到 `^0.2.12`——收编的三个子路径随 shared 0.2.12 发布,`pnpm-lock.yaml` 经 `pnpm install --lockfile-only` 重解到 registry 现量。
|
|
10
|
+
|
|
11
|
+
## 0.1.14
|
|
12
|
+
|
|
13
|
+
将 `@jayyuen66/dsh-plugin-shared` 抬到 `^0.2.10`,设置卡吸底保存条的旧固定 id 冲突与底色随 shared 修复。组合包补丁显式插入固定 id 的 shared 供应行(`dsh-plugin-shared`),并在 `dsh.client.external` 声明 `@jayyuen66/dsh-plugin-shared/client`——该组件必须保持开启,停用后设置卡失去供应、页面报 `missed the module table`(两份 README 已加提醒)。client bundle 相应把 shared 卡片字节改为外置并开启压缩,产物体积约减半。整理模板与默认配置不变。
|
|
14
|
+
|
|
7
15
|
## 0.1.13
|
|
8
16
|
|
|
9
17
|
market 热挂与 bundle 层双路径装载时第二份 `apply` 整份让路(此前第二遍会撞「同名服务已注册」把 fiber 打成 failed);卡片样式改用 shared 的共享 `<style>`;shared 抬到 `^0.2.9`,输入框不再撑出容器、小节内补上纵向间距;宿主 peer 窗口抬到 `^0.2.2-rc.2`。默认模板与整理行为不变。
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://github.com/JayYuen666/dsh-dir-prep-organize/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/JayYuen666/dsh-dir-prep-organize/ci.yml?branch=main&style=flat-square&label=ci" alt="ci" /></a>
|
|
13
13
|
<img src="https://img.shields.io/badge/license-MIT-4c1?style=flat-square" alt="MIT" />
|
|
14
14
|
<img src="https://img.shields.io/badge/node-%3E%3D24.9-4c1?style=flat-square&logo=nodedotjs&logoColor=white" alt="node" />
|
|
15
|
-
<img src="https://img.shields.io/badge/dsh-%5E0.2.2--rc.
|
|
15
|
+
<img src="https://img.shields.io/badge/dsh-%5E0.2.2--rc.5-658EFF?style=flat-square" alt="dsh" />
|
|
16
16
|
<a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/powered_by_dsh-4D6BFE?style=flat-square&logo=deepseek&logoColor=white" alt="powered by dsh" /></a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
- [ Known boundaries](#-known-boundaries)
|
|
47
47
|
- [ FAQ](#-faq)
|
|
48
48
|
- [ Development](#-development)
|
|
49
|
+
- [ Feedback](#feedback)
|
|
49
50
|
- [ License](#-license)
|
|
50
51
|
|
|
51
52
|
## <img src="https://api.iconify.design/lucide/shield.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> What it does
|
|
@@ -71,9 +72,11 @@ dsh plugin --profile web add @jayyuen66/dsh-dir-prep-organize
|
|
|
71
72
|
|
|
72
73
|
Remove with `dsh plugin --profile web remove @jayyuen66/dsh-dir-prep-organize`. The package is on the public npm registry, so installation needs no credentials and no scoped-registry line.
|
|
73
74
|
|
|
75
|
+
- The bundle patch inserts `- id: dsh-plugin-shared` (`@jayyuen66/dsh-plugin-shared`). **Keep that component enabled**: disabling it removes the settings card's shared component supply, and the next page load fails with `missed the module table`.
|
|
76
|
+
|
|
74
77
|
- **Requires Node.js `>= 24.9`.** This is an ESM-only package. Use the **named** exports (`import { apply } from "@jayyuen66/dsh-dir-prep-organize"`); there is **no default export**, so `import pkg from …` fails with `does not provide an export named 'default'`. That Node floor is what makes `require()` of an ESM entry work at all, which is why `engines.node` is declared.
|
|
75
|
-
- **Requires host `dsh` on the `0.2.2-rc.
|
|
76
|
-
- **The `@deepseek-ai/dsh-*` development pins are at `0.2.2-rc.
|
|
78
|
+
- **Requires host `dsh` on the `0.2.2-rc.5` host line or later.** The requirement the host actually reads is `engines.dsh` (`^0.2.2-rc.5`), and it **decides alone**: `evaluatePluginCompatibility` returns on the `engines.dsh` branch before it ever looks at `peerDependencies`. Derived per host version from the loading gate's own predicate (`app-boot`'s `satisfies`, with `includePrerelease: true`): `0.2.0-rc.2`, `0.2.1-rc.5`, `0.2.2-alpha.3`, `0.2.2-rc.1` and `0.2.2-rc.2` through `0.2.2-rc.4` are **refused**, `0.2.2-rc.5`, `0.2.2` and `0.2.3` pass, `0.3.0` is refused. A refused host needs the explicit risk grant `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`. The support window rolls: this package is verified against every released host version inside the window at publish time and re-verified once the window moves, so the version number in this bullet is not a standing promise.
|
|
79
|
+
- **The `@deepseek-ai/dsh-*` development pins are at `0.2.2-rc.5`** - the host line this package is built and tested against. `engines.dsh` and the optional peer ranges carry the separately checked support window (`^0.2.2-rc.5`); the pin is a fact about which host version it was *compiled* against, not a restatement of that window. Mixing the two is why the publish gate checks them separately.
|
|
77
80
|
- **No `@deepseek-ai/*` under `dependencies`, by contract** (`test/publish-manifest.test.ts` enforces it). Consumer profiles install with `nodeLinker: hoisted` and `autoInstallPeers: false`, so a host package under `dependencies` is materialized as a **real directory** next to the copy the running host already loaded. `@deepseek-ai/dsh-tools` keys its tool-runtime scheduler with a plain `Symbol` (not `Symbol.for`), so symbol identity is per module instance: the host reads the scheduler off the profile copy, gets `undefined`, and **every native tool call throws** - while this package's build, typecheck and coverage gates stay green right up to that moment.
|
|
78
81
|
- **The two host packages `host.js` imports as values are required peers**: `@deepseek-ai/schemastery` (the host's fork - only it resolves the `.volatile()` fields) and `@deepseek-ai/dsh-brand`. `build-host.mjs` externalizes `dependencies` **and** `peerDependencies`, so the bare specifiers stay in the artifact; a devDependencies-only entry would let the bundler inline the official function body. `test/build-host.test.ts` pins both "specifier present" and "function body absent".
|
|
79
82
|
- **Every host package the emitted declarations name is declared under `peerDependencies`**, and each one reached only there is *optional* (`@deepseek-ai/cordis`, `cosmokit`, and the `dsh-agent-default-model` / client-ui / `fs` / `llm` / `session` family). Declaring them is not ceremony: under pnpm's strict layout a bare specifier in `types/host.d.ts` that no manifest table names is unresolvable on the consumer's side, while this repository's own typecheck stays green. The test reads that roster off `types/**/*.d.ts` rather than off this paragraph, so the two cannot drift apart.
|
|
@@ -106,12 +109,12 @@ Worth knowing before you look for them:
|
|
|
106
109
|
|
|
107
110
|
## <img src="https://api.iconify.design/lucide/plug.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> Enabling it in dsh
|
|
108
111
|
|
|
109
|
-
- Installing contributes the bundle patch layer (`dsh.bundle.patch` → `./cordis.patch.yml`), which inserts `- id: dir-prep-organize` with `name` set to the package name.
|
|
112
|
+
- Installing contributes the bundle patch layer (`dsh.bundle.patch` → `./cordis.patch.yml`), which inserts two rows: `- id: dsh-plugin-shared` (the shared client supply row - keep it enabled, see Install) and `- id: dir-prep-organize` with `name` set to the package name.
|
|
110
113
|
- The **client half** registers two slots plus the settings card:
|
|
111
114
|
- `conversation.input.right` - the polish button (id `dir-prep-organize`, order 99) and the templates dropdown (id `dir-prep-organize-templates`, order 100).
|
|
112
115
|
- `plugins.bundle.config` - the settings card, keyed by the **bundle package name** `@jayyuen66/dsh-dir-prep-organize`. The host dispatches `entryKey: pkg.name` (source of truth: `dsh.profile.bundles` in the profile's `package.json`), so a bare entry id never matches and the card would render nowhere.
|
|
113
116
|
- The settings namespace and `configForms.get()` stay the **bare entry id** `dir-prep-organize` - deliberately not the same identifier as that slot key.
|
|
114
|
-
- The client half is `dsh.client.platform = web` with `immediately
|
|
117
|
+
- The client half is `dsh.client.platform = web` with `immediately`; `dsh.client.external` names `@jayyuen66/dsh-plugin-shared/client` so the host sorts the startup graph with that supply row in place.
|
|
115
118
|
- The card follows the official locale plugin's preference for its own labels and copy; the host half reads the preference per request, so switching language needs no restart.
|
|
116
119
|
- The plugin page reads its title, description and detail document from `locale/<lang>.json` (`meta.title`, `meta.description`, `meta.detail`). `docs/DETAIL.md` and `docs/DETAIL.zh.md` ship in the tarball; without `meta.detail` the host falls back to the README.
|
|
117
120
|
|
|
@@ -217,6 +220,12 @@ pnpm run gen:defaults # regenerate the curated set from agents/ (dev-time only)
|
|
|
217
220
|
- The rest of the suite splits the classes of defect a stub cannot see: the host half, the client half, the Remote contract (`test/dir-prep-remote.test.ts`), the two build artifacts (`test/build-host.test.ts`, `test/build-client.test.ts`), and an integration layer.
|
|
218
221
|
- Coverage thresholds are 100% across four metrics, so a new branch needs a case that reaches it.
|
|
219
222
|
|
|
223
|
+
## Feedback
|
|
224
|
+
|
|
225
|
+
Issues and pull requests are welcome: [https://github.com/JayYuen666/dsh-dir-prep-organize/issues](https://github.com/JayYuen666/dsh-dir-prep-organize/issues).
|
|
226
|
+
|
|
227
|
+
If a plugin fails to boot, include the dsh host version, the profile install shape, and the browser console line. The `missed the module table` line is especially useful: it tells us whether the shared client row was materialized.
|
|
228
|
+
|
|
220
229
|
## <img src="https://api.iconify.design/lucide/scale.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> License
|
|
221
230
|
|
|
222
231
|
MIT. Source at [github.com/JayYuen666/dsh-dir-prep-organize](https://github.com/JayYuen666/dsh-dir-prep-organize). Issues go to that repository's tracker.
|
package/README.zh-CN.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://github.com/JayYuen666/dsh-dir-prep-organize/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/JayYuen666/dsh-dir-prep-organize/ci.yml?branch=main&style=flat-square&label=ci" alt="ci" /></a>
|
|
13
13
|
<img src="https://img.shields.io/badge/license-MIT-4c1?style=flat-square" alt="MIT" />
|
|
14
14
|
<img src="https://img.shields.io/badge/node-%3E%3D24.9-4c1?style=flat-square&logo=nodedotjs&logoColor=white" alt="node" />
|
|
15
|
-
<img src="https://img.shields.io/badge/dsh-%5E0.2.2--rc.
|
|
15
|
+
<img src="https://img.shields.io/badge/dsh-%5E0.2.2--rc.5-658EFF?style=flat-square" alt="dsh" />
|
|
16
16
|
<a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/powered_by_dsh-4D6BFE?style=flat-square&logo=deepseek&logoColor=white" alt="powered by dsh" /></a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
- [ 已知边界](#-已知边界)
|
|
47
47
|
- [ 常见问题](#-常见问题)
|
|
48
48
|
- [ 开发](#-开发)
|
|
49
|
+
- [ 反馈](#反馈)
|
|
49
50
|
- [ 许可](#-许可)
|
|
50
51
|
|
|
51
52
|
## <img src="https://api.iconify.design/lucide/shield.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> 它做什么
|
|
@@ -71,9 +72,11 @@ dsh plugin --profile web add @jayyuen66/dsh-dir-prep-organize
|
|
|
71
72
|
|
|
72
73
|
卸载:`dsh plugin --profile web remove @jayyuen66/dsh-dir-prep-organize`。包在公共 npm 上,安装不需要凭据,也不需要配作用域源。
|
|
73
74
|
|
|
75
|
+
- 组合包补丁会插入 `- id: dsh-plugin-shared`(`@jayyuen66/dsh-plugin-shared`)。**这个组件必须保持开启**:停用后设置卡会失去 shared 组件供应,下一次页面加载会报 `missed the module table`。
|
|
76
|
+
|
|
74
77
|
- **要求 Node.js `>= 24.9`。** 本包是纯 ESM。用**具名**导出(`import { apply } from "@jayyuen66/dsh-dir-prep-organize"`);**没有 default 导出**,所以 `import pkg from …` 会报 `does not provide an export named 'default'`。正是这个 Node 下限让 ESM 入口的 `require()` 形式可用,所以声明了 `engines.node`。
|
|
75
|
-
- **要求宿主 `dsh` 在 `0.2.2-rc.
|
|
76
|
-
- **`@deepseek-ai/dsh-*` 的开发依赖钉在 `0.2.2-rc.
|
|
78
|
+
- **要求宿主 `dsh` 在 `0.2.2-rc.5` 这条宿主线上或更晚。** 宿主真正读的是 `engines.dsh`(`^0.2.2-rc.5`),而且它**单独决定**:`evaluatePluginCompatibility` 在 `engines.dsh` 那一支就返回了,根本走不到读 `peerDependencies` 的那段。按宿主装载门的判定谓词(`app-boot` 的 `satisfies`,带 `includePrerelease: true`)逐版本推得:`0.2.0-rc.2`、`0.2.1-rc.5`、`0.2.2-alpha.3`、`0.2.2-rc.1` 与 `0.2.2-rc.2` 到 `0.2.2-rc.4` **被拒**,`0.2.2-rc.5`、`0.2.2` 与 `0.2.3` 通过,`0.3.0` 被拒。被拒的宿主需要走显式担责的授权 `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`。支持窗口是滚动的:本包在发布时把窗口内的每个已发布宿主版本逐版取证,窗口滚动后重新取证,不把这一句里的版本号当长期承诺。
|
|
79
|
+
- **`@deepseek-ai/dsh-*` 的开发依赖钉在 `0.2.2-rc.5`**——本包编译与测试所对着的那条宿主线。`engines.dsh` 与 optional peer 范围承载单独判读的支持窗口(`^0.2.2-rc.5`);钉版是关于「它是对着哪个宿主版本**编译**的」的事实,不是那个窗口的复述。把两者混为一谈,正是发布门禁分开检查它们的原因。
|
|
77
80
|
- **`dependencies` 里不放任何 `@deepseek-ai/*`,这是约定**(`test/publish-manifest.test.ts` 钉着)。消费方 profile 用 `nodeLinker: hoisted` 且 `autoInstallPeers: false` 安装,于是写在 `dependencies` 里的宿主包会被落成**真实目录**,与运行中的宿主已加载的那份并存。`@deepseek-ai/dsh-tools` 的工具运行期调度键是普通 `Symbol`(不是 `Symbol.for`),符号身份按模块实例算:宿主从 profile 副本上读那个键拿到 `undefined`,于是**每一次原生工具调用都抛**——而本包的构建、类型检查、覆盖率检查在此之前全部照绿。
|
|
78
81
|
- **`host.js` 按值导入的那两枚宿主包是必需 peer**:`@deepseek-ai/schemastery`(宿主 fork——只有它能把 `.volatile()` 字段解析成活引用)与 `@deepseek-ai/dsh-brand`。`build-host.mjs` 外部化 `dependencies` **与** `peerDependencies`,所以裸说明符留在产物里;只写 `devDependencies` 会让打包器把官方函数体内联进去。`test/build-host.test.ts` 同时钉「说明符在」与「函数体不在」。
|
|
79
82
|
- **声明里点到的每一枚宿主包都落在 `peerDependencies`**,凡是只能从那里到达的都是 *optional*(`@deepseek-ai/cordis`、`cosmokit`,以及 `dsh-agent-default-model` / client-ui / `fs` / `llm` / `session` 那一族)。声明它们不是仪式:pnpm 严格布局下,`types/host.d.ts` 里一枚没有被任何 manifest 表点名的裸说明符在消费方侧解析不到,而本仓自己的类型检查照样绿。那条清单由测试从 `types/**/*.d.ts` 现量读,不从这段文字读,所以两边不会漂移。
|
|
@@ -106,12 +109,12 @@ dsh plugin --profile web add @jayyuen66/dsh-dir-prep-organize
|
|
|
106
109
|
|
|
107
110
|
## <img src="https://api.iconify.design/lucide/plug.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> 在 dsh 里启用
|
|
108
111
|
|
|
109
|
-
- 安装即贡献组合包补丁层(`dsh.bundle.patch` → `./cordis.patch.yml
|
|
112
|
+
- 安装即贡献组合包补丁层(`dsh.bundle.patch` → `./cordis.patch.yml`),插入两行:`- id: dsh-plugin-shared`(shared 客户端供应行,必须保持开启,见「安装」一节)与 `- id: dir-prep-organize`(`name` 指向包名)。
|
|
110
113
|
- **客户端半**注册两个槽位外加设置卡:
|
|
111
114
|
- `conversation.input.right`——润色按钮(id `dir-prep-organize`,order 99)与模板下拉(id `dir-prep-organize-templates`,order 100)。
|
|
112
115
|
- `plugins.bundle.config`——设置卡,按 **bundle 包名** `@jayyuen66/dsh-dir-prep-organize` 作 key。宿主派发 `entryKey: pkg.name`(唯一来源是 profile `package.json` 里的 `dsh.profile.bundles`),所以写成裸条目 id 永远匹配不上,卡片哪都不渲染。
|
|
113
116
|
- 设置命名空间与 `configForms.get()` 仍是**裸条目 id** `dir-prep-organize`——与那个槽位 key 刻意不是同一个标识。
|
|
114
|
-
- 客户端半是 `dsh.client.platform = web` 且带 `immediately
|
|
117
|
+
- 客户端半是 `dsh.client.platform = web` 且带 `immediately`;`dsh.client.external` 声明 `@jayyuen66/dsh-plugin-shared/client`,供宿主把这条供应行排进启动图。
|
|
115
118
|
- 卡片的文案遵循官方 locale 插件的偏好;宿主半每次请求现读该偏好,所以切语言不必重启。
|
|
116
119
|
- 插件页的标题、说明与详情文档来自 `locale/<语言>.json`(`meta.title`、`meta.description`、`meta.detail`)。`docs/DETAIL.md` 与 `docs/DETAIL.zh.md` 随包发布;没有声明 `meta.detail` 时宿主才回落到 README。
|
|
117
120
|
|
|
@@ -217,6 +220,12 @@ pnpm run gen:defaults # 从 agents/ 重新生成精选集(仅开发期)
|
|
|
217
220
|
- 其余测试按「桩看不见的那几类错」分层:宿主半、客户端半、Remote 契约(`test/dir-prep-remote.test.ts`)、两份构建产物(`test/build-host.test.ts`、`test/build-client.test.ts`),以及一层集成。
|
|
218
221
|
- 覆盖率四项阈值都是 100%,所以新增分支必须有能走到它的用例。
|
|
219
222
|
|
|
223
|
+
## 反馈
|
|
224
|
+
|
|
225
|
+
欢迎提 issue 和 PR:[https://github.com/JayYuen666/dsh-dir-prep-organize/issues](https://github.com/JayYuen666/dsh-dir-prep-organize/issues)。
|
|
226
|
+
|
|
227
|
+
插件启动失败时,请附上 dsh 宿主版本、profile 安装形态和浏览器控制台原文。`missed the module table` 这一行尤其有用:它能直接说明 shared 客户端供应行有没有被物化。
|
|
228
|
+
|
|
220
229
|
## <img src="https://api.iconify.design/lucide/scale.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> 许可
|
|
221
230
|
|
|
222
231
|
MIT。源码在 [github.com/JayYuen666/dsh-dir-prep-organize](https://github.com/JayYuen666/dsh-dir-prep-organize),issue 走那个仓的 tracker。
|