@kenz1117/dsh-engram 0.8.14 → 0.8.16

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.en.md CHANGED
@@ -212,6 +212,17 @@ pnpm typecheck
212
212
  pnpm bundle
213
213
  ```
214
214
 
215
+ ### Checks before a PR
216
+
217
+ ```sh
218
+ node scripts/check-messages.mjs # every key the code asks for is declared, nothing is orphaned, zh/en/ru aligned
219
+ node scripts/check-patterns.mjs # secret redaction and chit-chat rejection behave on every declared language
220
+ pnpm typecheck
221
+ pnpm test
222
+ ```
223
+
224
+ The first two run on a bare checkout, and CI (`.github/workflows/checks.yml`) runs exactly those two, plus `pnpm install --frozen-lockfile --ignore-scripts`. `typecheck`, `test` and `bundle` cannot run there: the `@deepseek-ai/*` peers are not on npm (see `.npmrc`), so they resolve only inside a `deepseek-harness` workspace. Run all four locally before opening a PR — a dictionary mistake fails loudly on your machine, but a locale-dependent assertion (one that asserts Chinese text while `language: 'auto'` resolves to the developer's own locale) fails only on someone else's.
225
+
215
226
  Two notes on install and build scripts:
216
227
 
217
228
  - **GitHub source quick-install** (`dsh plugin add github:kenz1117/dsh-engram`) fetches sources; `prepare` runs `pnpm bundle` on the spot when `lib/` is missing. If that build fails, read the bundle section of the prepare log — not the host's misleading "no entry point".
package/README.md CHANGED
@@ -213,6 +213,17 @@ pnpm typecheck
213
213
  pnpm bundle
214
214
  ```
215
215
 
216
+ ### 提 PR 前自检
217
+
218
+ ```sh
219
+ node scripts/check-messages.mjs # 代码请求的键都已声明、无孤立键、zh/en/ru 三语配平
220
+ node scripts/check-patterns.mjs # 密钥清洗与闲聊拒收在所有已声明语言下的行为
221
+ pnpm typecheck
222
+ pnpm test
223
+ ```
224
+
225
+ 前两项在干净的检出上即可运行,CI(`.github/workflows/checks.yml`)跑的正是这两项,另加 `pnpm install --frozen-lockfile --ignore-scripts`。后三项不行:`@deepseek-ai/*` peer 不在 npm 上(见 `.npmrc`),只在 `deepseek-harness` 工作区内才能解析。提 PR 前请在本地把四项都跑一遍——字典漏配会在本机大声报错,而依赖语言环境的断言(断言中文文本,而 `language: 'auto'` 落到开发者自己的语言环境)只在别人的机器上变红。
226
+
216
227
  安装与构建脚本的两点说明:
217
228
 
218
229
  - **GitHub 源码快捷安装**(`dsh plugin add github:kenz1117/dsh-engram`)拿的是源码,`prepare` 会在 `lib/` 缺失时自动执行 `pnpm bundle` 现场构建——失败时看 prepare 日志的 bundle 段,而不是宿主报的 "no entry point"。