@zhushanwen/pi-pending-notifications 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-pending-notifications",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Cross-extension async operation registration/query mechanism for Pi — prevents message injection during long-running operations.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -115,11 +115,11 @@ export default function pendingNotificationsExtension(pi: ExtensionAPI): void {
115
115
  }
116
116
  }
117
117
 
118
- // debug 日志:环境变量 PENDING_DEBUG=1 时输出到 console.debug。
118
+ // debug 日志:环境变量 XYZ_AGENT_DEBUG=1 时输出到 console.debug。
119
119
  // 不再写入 session entry(pending:log)——session entries 是 append-only 无法 GC,
120
120
  // 12 处 debug 日志会让长 session 的 entries 线性膨胀,而 goal before-agent-start
121
121
  // 每 turn 全量扫描 getEntries()。状态数据(pending:register/unregister)仍写 entry。
122
- const debugEnabled = process.env.PENDING_DEBUG === "1";
122
+ const debugEnabled = process.env.XYZ_AGENT_DEBUG === "1";
123
123
  function debugLog(level: string, message: string, data?: unknown): void {
124
124
  if (!debugEnabled) return;
125
125
  console.debug(`[pending-notifications:${level}] ${message}`, data ?? "");