pi-jar 0.2.4 → 0.2.5

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 +8 -3
  2. package/src/delegate.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-jar",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "A warm, role-aware Pi terminal workspace with switchable profiles, animated UI, plan and goal workflows, tasks, change review, model roles, background shells and subagents.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -54,9 +54,14 @@
54
54
  "typebox": "*"
55
55
  },
56
56
  "devDependencies": {
57
- "@earendil-works/pi-coding-agent": "^0.87.1",
58
- "@earendil-works/pi-tui": "^0.87.1",
57
+ "@earendil-works/pi-coding-agent": "^1.1.0",
58
+ "@earendil-works/pi-tui": "^1.1.0",
59
59
  "typebox": "^1.3.34",
60
60
  "typescript": "5.9.2"
61
+ },
62
+ "allowScripts": {
63
+ "@google/genai@2.21.0": true,
64
+ "esbuild@0.28.2": true,
65
+ "protobufjs@7.6.6": true
61
66
  }
62
67
  }
package/src/delegate.ts CHANGED
@@ -1449,7 +1449,7 @@ export function registerDelegate(pi: ExtensionAPI, roles: ModelRoleManager, regi
1449
1449
  }
1450
1450
  });
1451
1451
 
1452
- const delegateTool: ToolDefinition<typeof Parameters> = {
1452
+ const delegateTool = {
1453
1453
  name: DELEGATE_TOOL,
1454
1454
  label: "delegate",
1455
1455
  description: `Start retained subagents and return immediately; the pool limit counts idle, paused and hibernated agents. fork and worktree inherit this conversation; a worktree's isolated Git changes reach /diff only when you stop it, and at most ${RECOVERY_LIMIT} worktree workspaces may be active or awaiting recovery (resolve with jar_subagent stop or discard). Turn completions arrive as pi-jar.subagent events with a short summary and changed files; jar_subagent report returns a full report. Settled agents hibernate (process closed, context kept) until resumed.`,
@@ -1459,7 +1459,8 @@ export function registerDelegate(pi: ExtensionAPI, roles: ModelRoleManager, regi
1459
1459
  "After delegating, moderate: completions arrive as pi-jar.subagent events, so keep working and never poll; don't redo delegated work; reuse retained agents (jar_subagent resume) instead of spawning; stop finished workers to apply worktree changes into /diff."
1460
1460
  ],
1461
1461
  parameters: Parameters,
1462
- async execute(_id, params, signal, onUpdate, ctx) {
1462
+ // Internal council launches use session context, not tool-only nested execution APIs.
1463
+ async execute(_id, params, signal, onUpdate, ctx: ExtensionContext) {
1463
1464
  controllerContext = ctx;
1464
1465
  const requested = params.tasks;
1465
1466
  const parentToolNames = (): string[] | undefined => {
@@ -1878,7 +1879,7 @@ export function registerDelegate(pi: ExtensionAPI, roles: ModelRoleManager, regi
1878
1879
  });
1879
1880
  return new Text(rows.join("\n") || theme.fg("dim", "No subagents."), 0, 0);
1880
1881
  }
1881
- };
1882
+ } satisfies ToolDefinition<typeof Parameters>;
1882
1883
  pi.registerTool(delegateTool);
1883
1884
 
1884
1885
  const snapshot = (record: SubagentRecord): SubagentReport => ({