@zhushanwen/pi-ext-guards 0.4.2 → 0.4.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-ext-guards",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Shared runtime-environment guards for Pi extensions — oncePerProcess(key, fn) dedupes cross-session side-effect operations against pi factory re-invocation and handler accumulation (shared library, not a Pi extension, zero dependencies).",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -163,9 +163,10 @@ export function isSubagentProcess(
163
163
  /**
164
164
  * pi ExtensionRunner 在 session 替换后标记 stale ctx 的错误文案片段。
165
165
  *
166
- * pi 语义断言(0.84.4 实装:runner.js `invalidate()` 默认 message + `assertActive()`
167
- * `throw new Error(this.staleMessage)`),登记于 docs/pi-semantics.json PS-30
168
- * (探针:extensions/shared/ext-guards/src/__tests__/pi-semantics-stale-ctx-wording.test.ts),
166
+ * pi 语义断言(语义登记 docs/pi-semantics.json PS-30,verifiedWith 以该登记为准:
167
+ * runner.js `invalidate()` 默认 message + `assertActive()`
168
+ * `throw new Error(this.staleMessage)`;
169
+ * 探针:extensions/shared/ext-guards/src/__tests__/pi-semantics-stale-ctx-wording.test.ts),
169
170
  * 随 C-proc-08 pi 版本门禁自动重验。文案变更时守卫退化为「全部上抛」(回到现状崩溃链路,
170
171
  * 有 pi-crash log 取证,不更危险),门禁报红提示更新分诊词。
171
172
  */