@deathbeam/pi-delegate 0.0.19 → 0.0.20

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/index.ts +5 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -313,7 +313,11 @@ export default function (pi: ExtensionAPI) {
313
313
  }),
314
314
  ),
315
315
  }),
316
- async execute(_toolCallId, params, signal, _onUpdate, ctx) {
316
+ async execute(_toolCallId, rawParams, signal, _onUpdate, ctx) {
317
+ // Strict models inject literal "null" for optional params they omit; drop it before reading any.
318
+ const params = Object.fromEntries(
319
+ Object.entries(rawParams).filter(([, value]) => value !== null && value !== "null"),
320
+ ) as typeof rawParams;
317
321
  const config = configFor(ctx.cwd);
318
322
  const agents = discoverAgents(ctx.cwd, config.agentDirs);
319
323
  const resuming = params.resume
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathbeam/pi-delegate",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Minimal extension for delegating tasks to subagents.",
5
5
  "type": "module",
6
6
  "license": "MIT",