@jayyuen66/dsh-zvec-grep 0.1.18 → 0.1.20
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 +15 -0
- package/README.md +11 -4
- package/README.zh-CN.md +11 -4
- package/client.js +1 -1766
- package/cordis.patch.yml +4 -0
- package/docs/DETAIL.md +7 -1
- package/docs/DETAIL.zh.md +7 -1
- package/host.js +9 -8
- package/package.json +56 -50
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The deviations below are deliberate: version headings carry no release date (publish times are recorded by the registry — `npm view <package> time`), and a release may add sections beyond the standard six, such as `Not changed, deliberately` and `Earlier`.
|
|
4
4
|
|
|
5
|
+
## 0.1.20
|
|
6
|
+
|
|
7
|
+
宿主基线抬到 `0.2.2-rc.5`;daemon token 的原子落盘换官方件;上游 zg 0.3.1 的密钥跳过行为对齐。
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- **宿主依赖线抬到 `0.2.2-rc.5`**:devDependencies 全族精确钉 rc.5,`engines.dsh` 与 dsh 家族 peer 同一条窗口;shared 经 catalog 抬到 `^0.2.12`,`pnpm-lock.yaml` 经 `pnpm install --lockfile-only` 重解到 registry 现量;devDependencies 补 `react-dom`(`^19.3.0`,与 react 相邻)——shared 0.2.12 的 card-ui 经 `createPortal` 引 `react-dom`,客户端测试经 ESM 链解析到它(与 danger-guard / dir-prep / session-rescue 的既有供应同形)。两份 README 的支持窗口徽章同步。
|
|
12
|
+
- **`persistToken` 的原子替换换官方 `writeFileAtomic`**(devDependencies 加 `dsh-atomic-write`,peer 同窗口,产物保持裸说明符):`wx` 独占创建保证新建 inode 必带 0600、随机后缀临时件、失败自带临时件清理、win32 对瞬态 rename 错误退避重试。「失败不外抛、返 boolean」的降级契约由本函数这一层保持——官方件抛错,写不进去时本会话仍用内存 token,恢复退化为 daemonStartFailed 的指引(变异验证:摘掉吞错层,失败路径用例当场红)。
|
|
13
|
+
- **上游 zg 0.3.1 的密钥跳过行为对齐**:0.3.0 默认把 binary/unsupported 两类都挡在索引外,0.3.1 实测只跳 `secret.pem`(binary),未知扩展名的 `.P12` 已随正常源码收进索引——插件的排除规则(README 密钥清单,含大小写不敏感的 `*.p12`)回到唯一防线,e2e 用例按 0.3.1 的实测行为改写(两种开关都真建索引、真检索对质)。
|
|
14
|
+
- **rebuild-reader 的 `RemoteHost` / `isRemoteMounter` 收编 shared `./lib/typert-client`**(七仓逐字副本的正主)。
|
|
15
|
+
|
|
16
|
+
## 0.1.19
|
|
17
|
+
|
|
18
|
+
将 `@jayyuen66/dsh-plugin-shared` 抬到 `^0.2.10`。设置卡吸底保存条的旧固定 id 冲突与底色随 shared 修复;shared 的 `registerSkill` 在 effect 挂不上时立即撤销注册并回 `false`,本包 skill 不会再在卸载后留在目录里。装载面反转 0.1.14 的内联取舍:`cordis.patch.yml` 显式插入固定 id `dsh-plugin-shared` 的供应行(停用后卡片失去 shared 组件供应),`package.json` 的 `dsh.client.external` 同步声明 `@jayyuen66/dsh-plugin-shared/client`,卡片组件改由 shared 客户端行供应;client bundle 开启 minify,产物 65,390 B → 23,818 B,体积预算按新实量重定。`registerRoutingSkill` 的入参改用 shared 的 `SkillRegistryContext`,让 `effect` 这条撤销权契约进类型。工具面与 grep/rg 门禁行为不变。
|
|
19
|
+
|
|
5
20
|
## 0.1.18
|
|
6
21
|
|
|
7
22
|
market 热挂与 bundle 层双路径装载时第二份 `apply` 整份让路(此前第二遍会撞「同名已注册」把 fiber 打成 failed);设置卡接「有字段越界就不许保存」那道门禁;卡片样式改用 shared 的共享 `<style>`;shared 抬到 `^0.2.9`,输入框不再撑出容器、小节内补上纵向间距。工具面与 grep/rg 门禁的行为一字未变。
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://github.com/JayYuen666/dsh-zvec-grep/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/JayYuen666/dsh-zvec-grep/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
|
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
- [ Known boundaries](#-known-boundaries)
|
|
60
60
|
- [ FAQ](#-faq)
|
|
61
61
|
- [ Development](#-development)
|
|
62
|
+
- [ Feedback](#feedback)
|
|
62
63
|
- [ License](#-license)
|
|
63
64
|
|
|
64
65
|
## <img src="https://api.iconify.design/lucide/shield.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> What it does
|
|
@@ -78,8 +79,8 @@ dsh plugin --profile web add @jayyuen66/dsh-zvec-grep
|
|
|
78
79
|
Remove with `dsh plugin --profile web remove @jayyuen66/dsh-zvec-grep`. The package is on the public npm registry; no credentials, no scoped-registry line.
|
|
79
80
|
|
|
80
81
|
- **Node.js `>= 24.9`** (ESM-only; that floor is what makes `require()` of an ESM entry work, hence `engines.node`).
|
|
81
|
-
- **Host `dsh` on the `0.2.2-rc.
|
|
82
|
-
- **No `@deepseek-ai/*` under `dependencies`, by contract** (`test/publish-manifest.test.ts`). Profiles install with `nodeLinker: hoisted` and `autoInstallPeers: false`, so a host package there becomes a real second copy; `@deepseek-ai/dsh-tools` keys its scheduler with a plain `Symbol`, so **every native tool call throws** in that profile while build, typecheck and coverage stay green. The `@deepseek-ai/dsh*` peers carry the same support-window range (`^0.2.2-rc.
|
|
82
|
+
- **Host `dsh` on the `0.2.2-rc.5` line or later.** The host reads `engines.dsh` (`^0.2.2-rc.5`) and it **decides alone** - with that field present, compatibility is judged before `peerDependencies` is ever consulted, prereleases included. Any `0.2.x` at or above `0.2.2-rc.5` passes the host gate; strict npm peer resolution starts at `0.2.2-rc.5`. `0.3.0` and later need the risk grant `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`. The support window rolls: at publish time this package is checked against every released host version inside the window - the judgement is the host's `--dump-config` layer line for this package, while the settings card and its namespace calls are verified once in full on the release's development baseline - and re-verified once the window moves, so the version number in this bullet is not a standing promise.
|
|
83
|
+
- **No `@deepseek-ai/*` under `dependencies`, by contract** (`test/publish-manifest.test.ts`). Profiles install with `nodeLinker: hoisted` and `autoInstallPeers: false`, so a host package there becomes a real second copy; `@deepseek-ai/dsh-tools` keys its scheduler with a plain `Symbol`, so **every native tool call throws** in that profile while build, typecheck and coverage stay green. The `@deepseek-ai/dsh*` peers carry the same support-window range (`^0.2.2-rc.5`), while the exact pins in `devDependencies` are the compile-time discipline against a second host type surface - not a claim the host consults.
|
|
83
84
|
- **Value imports are required peers.** `@deepseek-ai/schemastery` is the host fork (only its `resolve` wraps `.volatile()` fields); `@deepseek-ai/dsh-typert-protocol` provides `TypertRemoteService`, a class to `extends`; `@deepseek-ai/dsh-scope` provides `scopeOf` for the step-admission lookup; shared's `lib/text` value-imports `@deepseek-ai/dsh-output-retention`. Each sits in `peerDependencies` plus the same exact pin in `devDependencies` - missing one is `ERR_MODULE_NOT_FOUND` at load, not a graceful downgrade. `dependencies` holds `@jayyuen66/dsh-plugin-shared` and `zod` (the latter versioned through the umbrella catalog, used by the settings card's strict codecs).
|
|
84
85
|
- **What ships**: `host.js`, `client.js`, `cordis.patch.yml`, `icon.svg`, both READMEs, `CHANGELOG.md`, `THIRD_PARTY_NOTICES.md`, `locale/zh.json` + `locale/en.json`, and `docs/` (both DETAIL files). Artifacts are rebuilt by `prepack`, never committed.
|
|
85
86
|
|
|
@@ -106,7 +107,7 @@ If your profile pins `@jayyuen66/dsh-plugin-shared` with a pnpm `overrides` entr
|
|
|
106
107
|
|
|
107
108
|
## <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
109
|
|
|
109
|
-
- `dsh.bundle.patch` points at `cordis.patch.yml`, whose `insert:` block carries a
|
|
110
|
+
- `dsh.bundle.patch` points at `cordis.patch.yml`, whose `insert:` block carries a `- id: dsh-plugin-shared` supplier row (keep it enabled; disabling it removes the cards' shared component supply) plus the `- id: zvec-grep` entry with `name: "@jayyuen66/dsh-zvec-grep"` - the **bare package name** is what makes the host scan the client half. The card components come from the shared client row, externalized as `@jayyuen66/dsh-plugin-shared/client`; the host module table provides `react`, `zod` and that shared row. Bundle installation goes through pnpm (>= 12.3.0).
|
|
110
111
|
- A missing injected surface keeps cordis from activating the entry (startup diagnostic: `pending (waiting for service: …)`); a malformed ctx throws `required services … missing` from apply.
|
|
111
112
|
- The two delivery paths - a dshmarket hot-mounted `mkt-*` include and the bundle layer - can resolve to the same module and run `apply` twice in one scope. The second assembly claims a private instance service and stands down with a single `console.warn`; the tools, the prompt section and the `zvecGrepRebuild` namespace stay with the registered copy, and the lock is released when that fiber unloads.
|
|
112
113
|
- The card is registered in the `plugins.bundle.config` slot keyed by the **bundle package name**; the settings namespace and `configForms` reads stay the bare entry id `zvec-grep` (implicit registration by entry id).
|
|
@@ -278,6 +279,12 @@ pnpm run check # typecheck (three tsconfig programs) → lint → both bundle
|
|
|
278
279
|
- `host.js` / `client.js` are not committed; `prepare` / `prepack` rebuild them and two tests compare the on-disk bundle against an in-memory build byte for byte. Never hand-edit the bundles.
|
|
279
280
|
- Manifest gates (`test/publish-manifest.test.ts`) guard the published surface: entry targets covered by `files`, host packages out of `dependencies`, `dsh-*` pinned exactly, no local paths in artifacts. `test/dist-size.test.ts` budgets bundle bytes; `test/readme-parity.test.ts` keeps both READMEs structurally in sync.
|
|
280
281
|
|
|
282
|
+
## Feedback
|
|
283
|
+
|
|
284
|
+
Issues and pull requests are welcome: [https://github.com/JayYuen666/dsh-zvec-grep/issues](https://github.com/JayYuen666/dsh-zvec-grep/issues).
|
|
285
|
+
|
|
286
|
+
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.
|
|
287
|
+
|
|
281
288
|
## <img src="https://api.iconify.design/lucide/scale.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> License
|
|
282
289
|
|
|
283
290
|
MIT - see [LICENSE](LICENSE). Source at [github.com/JayYuen666/dsh-zvec-grep](https://github.com/JayYuen666/dsh-zvec-grep). 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-zvec-grep/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/JayYuen666/dsh-zvec-grep/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
|
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
- [ 已知边界](#-已知边界)
|
|
60
60
|
- [ 常见问题](#-常见问题)
|
|
61
61
|
- [ 开发](#-开发)
|
|
62
|
+
- [ 反馈](#反馈)
|
|
62
63
|
- [ 许可](#-许可)
|
|
63
64
|
|
|
64
65
|
## <img src="https://api.iconify.design/lucide/shield.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> 它做什么
|
|
@@ -78,8 +79,8 @@ dsh plugin --profile web add @jayyuen66/dsh-zvec-grep
|
|
|
78
79
|
卸载用 `dsh plugin --profile web remove @jayyuen66/dsh-zvec-grep`。包在公共 npm registry 上,不需要凭据,也不需要 scoped-registry 配置行。
|
|
79
80
|
|
|
80
81
|
- **Node.js `>= 24.9`**(纯 ESM;正是这个下限让 `require()` 一枚 ESM 入口成为可能,`engines.node` 因此声明)。
|
|
81
|
-
- **宿主 `dsh` 在 `0.2.2-rc.
|
|
82
|
-
- **按约定,`dependencies` 下不放任何 `@deepseek-ai/*`**(`test/publish-manifest.test.ts` 钉住)。profile 以 `nodeLinker: hoisted` 与 `autoInstallPeers: false` 安装,宿主包在那里会落成真实的第二份副本;`@deepseek-ai/dsh-tools` 用普通 `Symbol` 给调度器做键,那个 profile 里**每一次原生工具调用都抛错**,而构建、类型检查与覆盖率照绿。`@deepseek-ai/dsh*` 的 peer 写同一条支持窗口范围(`^0.2.2-rc.
|
|
82
|
+
- **宿主 `dsh` 在 `0.2.2-rc.5` 或更新的 `0.2.2` 这条线上。** 宿主读 `engines.dsh`(`^0.2.2-rc.5`)且**单独决定**——该字段在场时兼容性先于 `peerDependencies` 判定,prerelease 参与比较。`0.2.x` 里不低于 `0.2.2-rc.5` 的都通过宿主装载门;npm 的严格 peer 解析从 `0.2.2-rc.5` 起算。`0.3.0` 及以上需要风险授权 `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <确切版本> --accept-risk`。支持窗口是滚动的:本包在发布时把窗口内的每个已发布宿主版本逐版取证(判据是宿主 `--dump-config` 里本包的层行;设置卡与它的命名空间调用另在发布基线上全量取证一次),窗口滚动后重新取证,不把这一句里的版本号当长期承诺。
|
|
83
|
+
- **按约定,`dependencies` 下不放任何 `@deepseek-ai/*`**(`test/publish-manifest.test.ts` 钉住)。profile 以 `nodeLinker: hoisted` 与 `autoInstallPeers: false` 安装,宿主包在那里会落成真实的第二份副本;`@deepseek-ai/dsh-tools` 用普通 `Symbol` 给调度器做键,那个 profile 里**每一次原生工具调用都抛错**,而构建、类型检查与覆盖率照绿。`@deepseek-ai/dsh*` 的 peer 写同一条支持窗口范围(`^0.2.2-rc.5`),`devDependencies` 里的精确钉版才是防「第二份宿主类型」的编译期纪律——那不是宿主会去读的声明。
|
|
83
84
|
- **值导入都是必需 peer。** `@deepseek-ai/schemastery` 是宿主 fork(只有它的 `resolve` 认 `.volatile()` 字段);`@deepseek-ai/dsh-typert-protocol` 提供 `TypertRemoteService` 这个要 `extends` 的类;`@deepseek-ai/dsh-scope` 提供步骤准入判定用的 `scopeOf`;shared 的 `lib/text` 自己值导入 `@deepseek-ai/dsh-output-retention`。四者都落 peer 加同版精确钉的 devDependencies——缺一枚就是装载期 `ERR_MODULE_NOT_FOUND`,不是优雅降级。`dependencies` 里是 `@jayyuen66/dsh-plugin-shared` 与 `zod`(后者版本走伞根 catalog,供设置卡的 strict codec 校验)。
|
|
84
85
|
- **随包发什么**:`host.js`、`client.js`、`cordis.patch.yml`、`icon.svg`、两份 README、`CHANGELOG.md`、`THIRD_PARTY_NOTICES.md`、`locale/zh.json` + `locale/en.json`、`docs/`(两份 DETAIL)。产物由 `prepack` 现产,不入库。
|
|
85
86
|
|
|
@@ -106,7 +107,7 @@ dsh plugin --profile web add @jayyuen66/dsh-zvec-grep
|
|
|
106
107
|
|
|
107
108
|
## <img src="https://api.iconify.design/lucide/plug.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> 在 dsh 里启用
|
|
108
109
|
|
|
109
|
-
- `dsh.bundle.patch` 指向 `cordis.patch.yml`,其 `insert:`
|
|
110
|
+
- `dsh.bundle.patch` 指向 `cordis.patch.yml`,其 `insert:` 块含一条 `- id: dsh-plugin-shared` 供应行(必须保持开启;停用后卡片会失去 shared 组件供应),再加一条 `- id: zvec-grep`、`name: "@jayyuen66/dsh-zvec-grep"`——让宿主扫描 client 半的是**不带子路径的包名**。卡片组件来自 shared 的客户端行,以 `@jayyuen66/dsh-plugin-shared/client` 外置;宿主模块表提供 `react`、`zod` 与这条 shared 供应。bundle 安装走 pnpm(>= 12.3.0)。
|
|
110
111
|
- 缺任一注入宿主服务,cordis 就不激活本条目(启动诊断点名 `pending (waiting for service: …)`);ctx 形状不对时 apply 抛 `required services … missing`。
|
|
111
112
|
- 两条装载路径——dshmarket 热挂的 `mkt-*` 子树与 bundle 层——可能解析到同一份模块而在同一作用域里跑两遍 `apply`。第二份会抢一把私有实例服务锁并安静让路(只 `console.warn` 一行);三个工具、提示词段与 `zvecGrepRebuild` 命名空间仍由在册那一份提供,那一份 fiber 卸载时锁自动释放。
|
|
112
113
|
- 卡片注册在 `plugins.bundle.config` 槽的 **bundle 包名**键下;设置命名空间与 `configForms` 的读仍走裸条目 id `zvec-grep`(按条目 id 隐式注册)。
|
|
@@ -278,6 +279,12 @@ pnpm run check # 类型检查(三个 tsconfig 程序)→ lint → 两个 b
|
|
|
278
279
|
- `host.js` / `client.js` 不入库;`prepare` / `prepack` 现产,两条测试拿磁盘产物与内存构建逐字节比。发布物不手改。
|
|
279
280
|
- manifest 门(`test/publish-manifest.test.ts`)守发布清单:入口目标被 `files` 覆盖、宿主包不进 `dependencies`、`dsh-*` 精确钉、产物无本机路径。`test/dist-size.test.ts` 设体积预算,`test/readme-parity.test.ts` 钉两份 README 的结构对等。
|
|
280
281
|
|
|
282
|
+
## 反馈
|
|
283
|
+
|
|
284
|
+
欢迎提 issue 和 PR:[https://github.com/JayYuen666/dsh-zvec-grep/issues](https://github.com/JayYuen666/dsh-zvec-grep/issues)。
|
|
285
|
+
|
|
286
|
+
插件启动失败时,请附上 dsh 宿主版本、profile 安装形态和浏览器控制台原文。`missed the module table` 这一行尤其有用:它能直接说明 shared 客户端供应行有没有被物化。
|
|
287
|
+
|
|
281
288
|
## <img src="https://api.iconify.design/lucide/scale.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> 许可
|
|
282
289
|
|
|
283
290
|
MIT,见 [LICENSE](LICENSE)。源码在 [github.com/JayYuen666/dsh-zvec-grep](https://github.com/JayYuen666/dsh-zvec-grep)。问题请提到那个仓库的 issue tracker。
|