dsh-aurorix-agentbook 1.4.1 → 1.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-aurorix-agentbook",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "dsh-aurorix-agentbook:给 dsh-go 接通 Aurorix 记忆库——原生界面(状态条/胶囊/菜单/面板/保险箱)加宿主侧提示词注入、分层快照与四个工具。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -72,8 +72,7 @@
72
72
  },
73
73
  "scripts": {
74
74
  "test": "node --test --test-concurrency=1 --test-timeout=90000 test/*.test.js",
75
- "check": "node ~/.dsh/skills/dsh-go-plugin/kit/bin/check.mjs . --load",
76
- "postinstall": "node scripts/postinstall.js"
75
+ "check": "node ~/.dsh/skills/dsh-go-plugin/kit/bin/check.mjs . --load"
77
76
  },
78
77
  "keywords": [
79
78
  "dsh",
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env node
2
- // 安装期就把对应架构的后端拉下来。
3
- // 失败不阻塞安装:运行时还会再试一次,但那时已经在用了,用户会等。
2
+ // 手动拉后端用:node scripts/postinstall.js
3
+ //
4
+ // **故意没有注册成 npm 的 postinstall**。pnpm 默认不跑依赖的 build script,
5
+ // 注册了只会让 `dsh plugin add` 报 ERR_PNPM_IGNORED_BUILDS 并以非零码退出,
6
+ // 明明装好了却被判成失败。后端改由运行时惰性安装兜底(空环境实测 2 秒)。
4
7
  import { ensureBackend } from '../lib/backend.js'
5
8
 
6
9
  const label = '[dsh-aurorix-agentbook]'