@jayyuen66/dsh-dir-prep-organize 0.1.13 → 0.1.14
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 +4 -0
- package/README.md +11 -2
- package/README.zh-CN.md +11 -2
- package/client.js +40 -2229
- package/cordis.patch.yml +4 -0
- package/docs/DETAIL.md +6 -0
- package/docs/DETAIL.zh.md +6 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
[语义化版本](https://semver.org/lang/zh-CN/)。最新版本在最上。这里的偏离是刻意的:版本标题
|
|
5
5
|
不写发布日期,各版发布时间以 npm registry 为准(`npm view <包名> time` 取得到)。
|
|
6
6
|
|
|
7
|
+
## 0.1.14
|
|
8
|
+
|
|
9
|
+
将 `@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 卡片字节改为外置并开启压缩,产物体积约减半。整理模板与默认配置不变。
|
|
10
|
+
|
|
7
11
|
## 0.1.13
|
|
8
12
|
|
|
9
13
|
market 热挂与 bundle 层双路径装载时第二份 `apply` 整份让路(此前第二遍会撞「同名服务已注册」把 fiber 打成 failed);卡片样式改用 shared 的共享 `<style>`;shared 抬到 `^0.2.9`,输入框不再撑出容器、小节内补上纵向间距;宿主 peer 窗口抬到 `^0.2.2-rc.2`。默认模板与整理行为不变。
|
package/README.md
CHANGED
|
@@ -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,6 +72,8 @@ 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
78
|
- **Requires host `dsh` on the `0.2.2-rc.2` host line or later.** The requirement the host actually reads is `engines.dsh` (`^0.2.2-rc.2`), and it **decides alone**: `evaluatePluginCompatibility` returns on the `engines.dsh` branch before it ever looks at `peerDependencies`. Measured against the real host code: `0.2.0-rc.2`, `0.2.1-rc.5`, `0.2.2-alpha.3` and `0.2.2-rc.1` are **refused**, `0.2.2-rc.2`, `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.
|
|
76
79
|
- **The `@deepseek-ai/dsh-*` development pins are at `0.2.2-rc.2`** - 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.2`); 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.
|
|
@@ -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
|
@@ -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,6 +72,8 @@ 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
78
|
- **要求宿主 `dsh` 在 `0.2.2-rc.2` 这条宿主线上或更晚。** 宿主真正读的是 `engines.dsh`(`^0.2.2-rc.2`),而且它**单独决定**:`evaluatePluginCompatibility` 在 `engines.dsh` 那一支就返回了,根本走不到读 `peerDependencies` 的那段。对宿主真实代码实测:`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` 与 `0.2.3` 通过,`0.3.0` 被拒。被拒的宿主需要走显式担责的授权 `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`。支持窗口是滚动的:本包在发布时把窗口内的每个已发布宿主版本逐版取证,窗口滚动后重新取证,不把这一句里的版本号当长期承诺。
|
|
76
79
|
- **`@deepseek-ai/dsh-*` 的开发依赖钉在 `0.2.2-rc.2`**——本包编译与测试所对着的那条宿主线。`engines.dsh` 与 optional peer 范围承载单独判读的支持窗口(`^0.2.2-rc.2`);钉版是关于「它是对着哪个宿主版本**编译**的」的事实,不是那个窗口的复述。把两者混为一谈,正是发布门禁分开检查它们的原因。
|
|
@@ -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。
|