@jayyuen66/dsh-zvec-grep 0.1.18 → 0.1.19
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 +8 -1
- package/README.zh-CN.md +8 -1
- package/client.js +3 -1766
- package/cordis.patch.yml +4 -0
- package/docs/DETAIL.md +7 -1
- package/docs/DETAIL.zh.md +7 -1
- package/host.js +2 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.19
|
|
6
|
+
|
|
7
|
+
将 `@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 门禁行为不变。
|
|
8
|
+
|
|
5
9
|
## 0.1.18
|
|
6
10
|
|
|
7
11
|
market 热挂与 bundle 层双路径装载时第二份 `apply` 整份让路(此前第二遍会撞「同名已注册」把 fiber 打成 failed);设置卡接「有字段越界就不许保存」那道门禁;卡片样式改用 shared 的共享 `<style>`;shared 抬到 `^0.2.9`,输入框不再撑出容器、小节内补上纵向间距。工具面与 grep/rg 门禁的行为一字未变。
|
package/README.md
CHANGED
|
@@ -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
|
|
@@ -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
|
@@ -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="" /> 它做什么
|
|
@@ -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。
|