@zhushanwen/pi-subagent-workflow 7.3.3 → 7.3.4

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": "@zhushanwen/pi-subagent-workflow",
3
- "version": "7.3.3",
3
+ "version": "7.3.4",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "Unified subagent execution and multi-agent workflow orchestration for Pi — spawned-process agent runtime with sync/background modes, stateful workflow management with persistence, state machine, and execution tracing.",
@@ -44,14 +44,14 @@
44
44
  "@xyz-agent/extension-protocol": "^0.4.0",
45
45
  "ajv": "^8.20.0",
46
46
  "yaml": "^2.9.0",
47
- "@zhushanwen/pi-extension-logger": "0.2.0"
47
+ "@zhushanwen/pi-extension-logger": "0.2.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@earendil-works/pi-ai": "*",
51
51
  "@earendil-works/pi-coding-agent": "*",
52
52
  "@earendil-works/pi-tui": "*",
53
53
  "typebox": "*",
54
- "@zhushanwen/pi-pending-notifications": "0.3.1",
54
+ "@zhushanwen/pi-pending-notifications": "0.3.2",
55
55
  "@zhushanwen/pi-structured-output": "5.0.1"
56
56
  },
57
57
  "peerDependenciesMeta": {
@@ -351,7 +351,7 @@ export class SubagentService {
351
351
  // 基线是 createRecordForMode / 护栏读 ALS store 失败时的权威回退。
352
352
  this.execCtxBaseline = { recordId: envSelfRecord, depth: nestingDepth };
353
353
  this.execCtxAls.enterWith({ recordId: envSelfRecord, depth: nestingDepth });
354
- if (process.env.PI_EXT_DEBUG) {
354
+ if (process.env.XYZ_AGENT_DEBUG) {
355
355
  logger.debug(
356
356
  `[subagents] execCtxAls initialized: recordId=${envSelfRecord} depth=${nestingDepth} rootSessionId=${envRoot ?? init.sessionId}`,
357
357
  );
@@ -242,7 +242,7 @@ A subagent MAY call the \`subagent\` tool itself (each level spawns its own chil
242
242
 
243
243
  // ponytail: renderCall 每次 TUI invalidate 都触发。streaming 中 args 是 partial JSON
244
244
  // 解析结果(如 model="deep" 来自未流完的 "deepseek-router/ds-pro"),解析失败是预期。
245
- // 不走 appendEntry(非真实错误),只走 logger.debug(默认 no-op,PI_EXT_DEBUG=1 写文件)。
245
+ // 不走 appendEntry(非真实错误),只走 logger.debug(默认 no-op,XYZ_AGENT_DEBUG=1 写文件)。
246
246
  const renderCallLogger = getLogger("subagents");
247
247
 
248
248
  const subagentRenderCall: SubagentRenderCallCb = (args, theme, ctx) => {
@@ -262,7 +262,7 @@ const subagentRenderCall: SubagentRenderCallCb = (args, theme, ctx) => {
262
262
  if (r) resolved = { model: `${r.model.provider}/${r.model.id}`, thinkingLevel: r.thinkingLevel };
263
263
  } catch (err) {
264
264
  // streaming 中间态(partial JSON)或 service 未就绪 → 降级不显示 model(renderCall 不应崩)。
265
- // 不阻断渲染,不污染 TUI。开发期开 PI_EXT_DEBUG=1 可写文件日志排查。
265
+ // 不阻断渲染,不污染 TUI。开发期开 XYZ_AGENT_DEBUG=1 可写文件日志排查。
266
266
  renderCallLogger.debug("renderCall model resolution failed, degrading", {
267
267
  reason: err instanceof Error ? err.message : String(err),
268
268
  });