@jayyuen66/dsh-dir-prep-organize 0.1.12 → 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 +26 -0
- package/README.md +14 -5
- package/README.zh-CN.md +14 -5
- package/client.js +40 -2172
- package/cordis.patch.yml +4 -0
- package/docs/DETAIL.md +6 -0
- package/docs/DETAIL.zh.md +6 -0
- package/host.js +15 -7
- package/package.json +20 -16
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,32 @@
|
|
|
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
|
+
|
|
11
|
+
## 0.1.13
|
|
12
|
+
|
|
13
|
+
market 热挂与 bundle 层双路径装载时第二份 `apply` 整份让路(此前第二遍会撞「同名服务已注册」把 fiber 打成 failed);卡片样式改用 shared 的共享 `<style>`;shared 抬到 `^0.2.9`,输入框不再撑出容器、小节内补上纵向间距;宿主 peer 窗口抬到 `^0.2.2-rc.2`。默认模板与整理行为不变。
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **单实例锁**:`apply` 最前面用 shared 的 `claimInstance` 抢 `INSTANCE_LOCK_KEY = "@jayyuen66/dsh-dir-prep-organize/instance"`,抢不到就 `console.warn` 一行「本次装配让路,设置卡与工具由在册的那一份提供」并直接返回。成因是 dshmarket 运行期热装会在 `<profile>/.dsh-market/` 下造一棵它自己的 Include 子树(条目 id 形如 `mkt-<包>`),把同一份 `host.js` 再挂一次,而 profile 的 `dsh.profile.bundles` 那条行仍会被宿主按 patch 重新组装 ⇒ 同一进程里 `apply` 跑两遍,第二遍的 Typert Remote「构造即注册」撞「同名已注册」而抛。锁随在册那一份的 fiber 卸载自动释放。
|
|
18
|
+
- **`get` 与 `reflect` 的取法有讲究**:`get` 走 `isServiceGetter` 守卫(本包的 apply 契约是「上下文只给一半也不炸」,缺 `get` 面时按能力缺席放行);`reflect` **整个传对象本身**、不另包一层 `{ provide }` —— 包出来的箭头恒是函数,会让「这台上下文根本没有注册口」伪装成「有注册口但 provide 抛错」,让路判据误判而把插件整个关掉。
|
|
19
|
+
- **回归测试 `test/routes.test.ts`** 新增「同一作用域第二次装配让路:不重复注册、不抛错」,判据落在 `warn` 恰好一次、`routes` / `configureCalls` / `disposers` 三者数量不变。
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **`src/templates.ts` 的私有 `truncateCodePoints` 换成 shared 的 `lib/text` 里那一份**:按码点预算截断的语义不变(`String#slice` 数的是码元,会把 emoji 劈成半个),两处消费方(frontmatter 解析与 `sanitizeTemplateList`)现在共用同一份实现。`scripts/gen-defaults-lib.mjs` 仍带着同源镜像——它不能 import 运行期包。
|
|
24
|
+
- **`@deepseek-ai/dsh-output-retention` 进 devDependencies(`0.2.2-rc.2`,与其余 dsh 开发钉同版)**:shared 的 `lib/text` 顶层 import 了它,而本仓 `autoInstallPeers: false` 不会替 shared 装那枚 optional peer;CI 的 `--frozen-lockfile` 严格布局下解析不到,打包器把说明符当外置留在 `client.js` 里,宿主模块表给不出它(`UNRESOLVED_IMPORT` → `missed the module table`)。它只进构建期,不进 `dependencies` / `peerDependencies`,消费方不新增运行期依赖;`test/publish-manifest.test.ts` 的免检表登记它「本仓不直接按名引用、构建期解析 shared 顶层 import」这一事实。
|
|
25
|
+
- **卡片样式改用 shared 的 `ensureCardUiCss()`**:不再把 `CARD_UI_CSS` 整段拼进本仓自己的 `<style>` 标签,改为固定 id `dsh-card-ui-css` 的幂等注入 + 引用计数,本仓标签只留 `CARD_STYLES`。产物里因此同时留下 `style-tag.ts` 与它依赖的样式表(后者不能被 tree-shaking 去掉),实测 `client.js` 94,865 B(CI 严格布局口径;工作区软链布局下模块路径注释更短,本机读数为 94,781 B),比已发布的 0.1.12(93,396 B)多 1,469 B;`test/dist-size.test.ts` 的 `CLIENT_BUDGET_BYTES` 按实量上沿从 94,500 调到 97,000。
|
|
26
|
+
- **运行时依赖 shared 抬到 `^0.2.9`**;**宿主 peer 窗口 `^0.2.2-rc.1` → `^0.2.2-rc.2`**(十二枚 `@deepseek-ai/dsh*` peer 与整组 `dsh*` devDependency 一起抬),两份 README 的徽章跟着改。
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- **输入控件撑出容器**(shared 侧):`.dsu-input` 是 `width:100%` + 左右各 12px padding + 1px 边框,默认 `content-box` 让每个输入框比容器宽 26px;`.dsu-form` 整棵子树现在统一 `border-box`。`src/client-styles.ts` 里那条「行头三项为什么写成复合选择器」的注释同步改口径——原来说「`.dsu-input` 的 `width:100%` 在注入顺序上晚于本表」,实际原因是**同权重**,靠复合选择器稳压它。
|
|
31
|
+
- **小节内相邻元素间距为 0**(shared 侧):`.dsu-form .dsu-section>*+*` 给 10px,`.dsu-sectionHint` 4px,`.dsu-field` 之间仍 0,`.dsu-savebar` 24px。
|
|
32
|
+
|
|
7
33
|
## 0.1.12
|
|
8
34
|
|
|
9
35
|
设置卡的下拉候选与说明浮层不再漂到浏览器最左边;shared 抬到 `^0.2.8`(含运行时几何自检),CI 的 action 钉版升到最新。默认模板与行为不变。
|
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.2-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.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.
|
|
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.
|
|
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.
|
|
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.2-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.2`**——本包编译与测试所对着的那条宿主线。`engines.dsh` 与 optional peer 范围承载单独判读的支持窗口(`^0.2.2-rc.
|
|
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`。支持窗口是滚动的:本包在发布时把窗口内的每个已发布宿主版本逐版取证,窗口滚动后重新取证,不把这一句里的版本号当长期承诺。
|
|
79
|
+
- **`@deepseek-ai/dsh-*` 的开发依赖钉在 `0.2.2-rc.2`**——本包编译与测试所对着的那条宿主线。`engines.dsh` 与 optional peer 范围承载单独判读的支持窗口(`^0.2.2-rc.2`);钉版是关于「它是对着哪个宿主版本**编译**的」的事实,不是那个窗口的复述。把两者混为一谈,正是发布门禁分开检查它们的原因。
|
|
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。
|