dsh-tiddlywiki 0.30.48 → 0.30.49

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,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-tiddlywiki",
3
3
  "description": "把 TiddlyWiki 5 变成你和 Agent 共用的本地文档中心(纯文本 + git):你在 DSH 界面里阅读、写作、记日记,Agent 用 15 个 tiddlywiki_* 工具读写同一批笔记;每条笔记都是你能读、能改、能审计、能随时带走的文件——不是自动记忆插件,不做后台抓取。可选一键发布到微信公众号草稿箱。 Turn TiddlyWiki 5 into a document center you and your agent share, in plain text under git — a knowledge base you can read, edit, audit and take with you, not an auto-memory plugin. Mounts via the official dsh plugin system; no DSH source changes.",
4
- "version": "0.30.48",
4
+ "version": "0.30.49",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "dsh",
@@ -91,7 +91,7 @@
91
91
  "typecheck": "tsc --noEmit",
92
92
  "smoke:client": "node scripts/smoke-client.mjs",
93
93
  "selftest": "node scripts/selftest.mjs",
94
- "verify:static": "node scripts/verify-send-to-agent-bundle.mjs && node scripts/verify-render-bundle.mjs && node scripts/verify-wechat-publish-bundle.mjs && node scripts/verify-package-contents.mjs && node scripts/verify-version-consistency.mjs && node scripts/verify-constants.mjs && node scripts/verify-line-endings.mjs && node scripts/verify-doc-links.mjs",
94
+ "verify:static": "node scripts/verify-send-to-agent-bundle.mjs && node scripts/verify-render-bundle.mjs && node scripts/verify-wechat-publish-bundle.mjs && node scripts/verify-package-contents.mjs && node scripts/verify-version-consistency.mjs && node scripts/verify-constants.mjs && node scripts/verify-index-barrel.mjs && node scripts/verify-line-endings.mjs && node scripts/verify-doc-links.mjs",
95
95
  "verify:unit": "node scripts/verify-clip-bridge.mjs && node scripts/verify-seed-error-policy.mjs && node scripts/verify-render-sanitizer.mjs && node scripts/verify-secret-masking.mjs && node scripts/verify-write-policy.mjs && node scripts/verify-write-call-sites.mjs && node scripts/verify-workspace.mjs && node scripts/verify-wiki-registry.mjs && node scripts/verify-wiki-farm.mjs && node scripts/verify-session-scope.mjs && node scripts/verify-skill-install.mjs && node scripts/verify-repo-keying.mjs && node scripts/verify-restart-drain.mjs && node scripts/verify-desktop-node.mjs && node scripts/verify-language-pin.mjs && node scripts/verify-git-multi-sync.mjs && node scripts/verify-client-i18n.mjs && node scripts/verify-mutation-lock.mjs && node scripts/verify-prompt.mjs && node scripts/verify-conflict-config-guards.mjs && node scripts/verify-config-ranges.mjs && node scripts/verify-config-patch.mjs && node scripts/verify-tool-views.mjs && npx tsx scripts/verify-plugin-runtime.mjs && node scripts/verify-wechat-adapters.mjs && node scripts/verify-wechat-docs-seed.mjs && node scripts/verify-wechat-publish.mjs && npx tsx scripts/verify-tw-origin.mjs && node scripts/verify-frame-guards.mjs && npx tsx scripts/verify-ready-policy.mjs && npx tsx scripts/verify-frame-surface.mjs && npx tsx scripts/verify-editor-popup.mjs && npx tsx scripts/verify-status-cache.mjs && npx tsx scripts/verify-wiki-focus.mjs",
96
96
  "verify:e2e": "node scripts/verify-auth.mjs && node scripts/verify-anon-username.mjs && node scripts/verify-tools.mjs && node scripts/verify-audit-fixes.mjs && node scripts/verify-git-resolve.mjs && node scripts/verify-resilience.mjs && node scripts/verify-seed-send-to-agent.mjs && node scripts/verify-seeds-admin.mjs && node scripts/verify-wiki-switch.mjs && node scripts/verify-wiki-farm-boot.mjs",
97
97
  "verify:large": "node scripts/verify-large-wiki.mjs",
package/src/index.ts CHANGED
@@ -162,6 +162,19 @@ export {
162
162
  locationPath,
163
163
  normalizeLocation,
164
164
  readLocationState,
165
+ // v0.30.49:这条 **barrel 再导出** 是给 `lib/index.js` 的**外部**使用者的
166
+ // (scripts/verify-wiki-switch.mjs 就 import 它)。⚠️ 再导出是**独立语句**,
167
+ // 它不消费上面那条 import 的绑定 —— 所以 `noUnusedLocals` 会把 import 里的
168
+ // 同名行点名成「未使用」,而**删掉 import 会让这条导出引用不到绑定**,
169
+ // `lib/index.js` 随即少一个导出(v0.30.48 实测:typecheck / verify:unit /
170
+ // verify:static 全绿,只有 e2e 的 verify-wiki-switch 崩在缺导出那行)。
171
+ // 判据现在由 scripts/verify-index-barrel.mjs 守住(反向验证过:删掉即红)。
172
+ //
173
+ // ⚠️ 写这段注释时踩到一个**就在这条语句内部**的坑:注释里**不能出现右花括号**,
174
+ // 否则任何按花括号配对的解析器(tsc 自己的扫描器也在内)都会把它当成 export
175
+ // 列表的结尾,后面的 from 子句变成语法垃圾 —— 症状是「导出了却仍报缺」,
176
+ // 而 tsc 的报错指向完全无关的 import 行。要描述这个语法请用文字。
177
+ writeLocationState,
165
178
  LOCATION_STATE_VERSION,
166
179
  type WikiLocation,
167
180
  type WikiLocationInfo,