what-was-that 0.1.11 → 0.1.12
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/README.md +13 -5
- package/dsh.plugin.json +1 -1
- package/lib/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<p>
|
|
4
4
|
<a href="https://github.com/topics/dsh-plugin"><code>dsh-plugin</code></a>
|
|
5
5
|
<a href="https://github.com/SH-9999/what-was-that"><code>DeepSeek Harness 插件</code></a>
|
|
6
|
-
<a href="https://www.npmjs.com/package/what-was-that"><code>npm: v0.1.
|
|
6
|
+
<a href="https://www.npmjs.com/package/what-was-that"><code>npm: v0.1.12</code></a>
|
|
7
7
|
<a href="https://github.com/SH-9999/what-was-that/actions"><code>CI: typecheck · test · build</code></a>
|
|
8
8
|
<a href="https://github.com/SH-9999/what-was-that/blob/main/LICENSE"><code>MIT License</code></a>
|
|
9
9
|
<a href="https://github.com/SH-9999/what-was-that"><code>静态插件</code></a>
|
|
@@ -17,7 +17,15 @@
|
|
|
17
17
|
|
|
18
18
|
## 📦 本仓库:已发布到 npm 的静态插件
|
|
19
19
|
|
|
20
|
-
从最初的动态插件原型(粘贴 JS),重写为规范的 **TypeScript 静态插件包**,现已发布到 npm(`what-was-that@0.1.
|
|
20
|
+
从最初的动态插件原型(粘贴 JS),重写为规范的 **TypeScript 静态插件包**,现已发布到 npm(`what-was-that@0.1.12`)。
|
|
21
|
+
|
|
22
|
+
### ✅ 适配 DSH 0.1.7-rc.2(v0.1.12)
|
|
23
|
+
|
|
24
|
+
v0.1.12 已对照 **DeepSeek Harness 0.1.7-rc.2** 逐项核对并修复:
|
|
25
|
+
|
|
26
|
+
- **修复 Typert strict codec 的形状变更(v0.1.12,本次唯一硬伤)**:自 **0.1.6-alpha.2** 起,strict codec 里的 schema 由直接挂载 `schema: <zod schema>` 改为惰性工厂 `create: () => <zod schema>`;dsh 的宿主 registry(`validateCodec`)与客户端网关(`requireStrictCodec`)都会拒绝没有 `create()` 的 strict codec。旧写法会让宿主 `ctx.typert.register` 与客户端 `$mount` 双双抛 `strict codec has no create() factory`,症状是**章鱼能出现、但红色角标 / 气泡解释 / 选词卡片 / 设置里的模型列表全部失效**(客户端永远拿不到 `wwt` 句柄)。现改为 `create: () => schema`,宿主与客户端两半一并恢复。
|
|
27
|
+
- **精简未使用的依赖声明**:移除 `dsh.client.inject` 与 `peerDependencies` 中从未被引用的 `@deepseek-ai/dsh-client-locale`(插件文案为硬编码中文,不读取 locale 服务)。无功能影响。
|
|
28
|
+
- 兼容性结论:槽位 API(`slots.inject` / `slots.register`)、三个挂载点(`shell.overlay` / `conversation.chat.assistant-actions` / `settings.section`)、`ctx.remote.$mount` + `ctx.reflect.get('remote.wwt')`、`fs` / `typert` / `agentDefaultModel` / `llm` / `session/event` 服务、`ctx.effect`、以及 client 的 ModuleLoader 握手格式,在 0.1.7-rc.2 下**逐项核对全部匹配**,无需改动。
|
|
21
29
|
|
|
22
30
|
### ✅ 适配 DSH 0.1.5-rc.1(v0.1.11)
|
|
23
31
|
|
|
@@ -55,7 +63,7 @@ what-was-that/
|
|
|
55
63
|
|
|
56
64
|
### 安装(给 DSH 用户)
|
|
57
65
|
|
|
58
|
-
已发布到 npm:`what-was-that@0.1.
|
|
66
|
+
已发布到 npm:`what-was-that@0.1.12`(压缩包仅 **214 KB**,轻量无负担)。在 DSH 的 profile 里一条命令装入并启用:
|
|
59
67
|
|
|
60
68
|
```bash
|
|
61
69
|
# 要求:机器上已安装 pnpm(dsh plugin 命令依赖它)
|
|
@@ -64,7 +72,7 @@ dsh plugin --profile web add what-was-that
|
|
|
64
72
|
|
|
65
73
|
装完**重启 `dsh web`** 并硬刷新(Ctrl+Shift+R),右下角出现小章鱼即成功。
|
|
66
74
|
|
|
67
|
-
> 适用版本:**DSH ≥ 0.1.
|
|
75
|
+
> 适用版本:**DSH ≥ 0.1.6-alpha.2**(自该版本起 Typert strict codec 使用惰性工厂 `create()`;v0.1.12 已按此对齐)。仍在 **0.1.5 系列**(codec 为 `schema`)的用户请继续使用 **v0.1.11**。
|
|
68
76
|
|
|
69
77
|
> 没有 pnpm 时,也可以把 `lib/` 产物放进 profile 手动挂载(`cordis.patch.yml` 声明了挂载点),无需编译。
|
|
70
78
|
|
|
@@ -97,7 +105,7 @@ node build.mjs # 打包 lib/index.js + lib/client.js,并复制 assets
|
|
|
97
105
|
- 🔒 **隐私红线**:不把完整回复发回模型;AI 深挖只发点中的词 ±80 字,带缓存
|
|
98
106
|
|
|
99
107
|
### 轻量优先
|
|
100
|
-
- 📦 **npm 包很小**——压缩包仅 **
|
|
108
|
+
- 📦 **npm 包很小**——压缩包仅 **214 KB**(解压 1.3 MB,含词库 255 条 + 四态形象 + 全部构建产物),比一张照片还小
|
|
101
109
|
- 🪶 **零运行时依赖**——只用 DSH 自带接口
|
|
102
110
|
- 🧾 **极小透明 SVG**(每张 15–20 KB)
|
|
103
111
|
- ⚡ **启动快、占用小**
|
package/dsh.plugin.json
CHANGED
package/lib/client.js
CHANGED
|
@@ -14592,7 +14592,7 @@ var modelsResultSchema = external_exports.object({
|
|
|
14592
14592
|
});
|
|
14593
14593
|
var setRouteResultSchema = external_exports.object({ ok: external_exports.boolean() });
|
|
14594
14594
|
function strict(typeSymbol, schema) {
|
|
14595
|
-
return { mode: "strict", typeSymbol, schema };
|
|
14595
|
+
return { mode: "strict", typeSymbol, create: () => schema };
|
|
14596
14596
|
}
|
|
14597
14597
|
var WWT_INVOCATIONS = [
|
|
14598
14598
|
{
|
package/lib/index.js
CHANGED
|
@@ -14705,7 +14705,7 @@ var modelsResultSchema = external_exports.object({
|
|
|
14705
14705
|
});
|
|
14706
14706
|
var setRouteResultSchema = external_exports.object({ ok: external_exports.boolean() });
|
|
14707
14707
|
function strict(typeSymbol, schema) {
|
|
14708
|
-
return { mode: "strict", typeSymbol, schema };
|
|
14708
|
+
return { mode: "strict", typeSymbol, create: () => schema };
|
|
14709
14709
|
}
|
|
14710
14710
|
var WWT_INVOCATIONS = [
|
|
14711
14711
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "what-was-that",
|
|
3
3
|
"description": "A tiny octopus desktop pet that explains AI-jargon in plain language for the DeepSeek Harness web GUI.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/SH-9999/what-was-that",
|
|
7
7
|
"repository": {
|
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
"client": {
|
|
41
41
|
"platform": "web",
|
|
42
42
|
"inject": [
|
|
43
|
-
"@deepseek-ai/dsh-client-ui-slots"
|
|
44
|
-
"@deepseek-ai/dsh-client-locale"
|
|
43
|
+
"@deepseek-ai/dsh-client-ui-slots"
|
|
45
44
|
]
|
|
46
45
|
}
|
|
47
46
|
},
|
|
@@ -63,7 +62,6 @@
|
|
|
63
62
|
"@deepseek-ai/dsh-typert-protocol": "*",
|
|
64
63
|
"@deepseek-ai/dsh-typert-registry": "*",
|
|
65
64
|
"@deepseek-ai/dsh-client-ui-slots": "*",
|
|
66
|
-
"@deepseek-ai/dsh-client-locale": "*",
|
|
67
65
|
"react": "^18.2.0"
|
|
68
66
|
},
|
|
69
67
|
"peerDependenciesMeta": {
|
|
@@ -72,7 +70,6 @@
|
|
|
72
70
|
"@deepseek-ai/dsh-typert-protocol": { "optional": true },
|
|
73
71
|
"@deepseek-ai/dsh-typert-registry": { "optional": true },
|
|
74
72
|
"@deepseek-ai/dsh-client-ui-slots": { "optional": true },
|
|
75
|
-
"@deepseek-ai/dsh-client-locale": { "optional": true },
|
|
76
73
|
"react": { "optional": true }
|
|
77
74
|
},
|
|
78
75
|
"dependencies": {
|