@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.
- package/index.ts +5 -1
- 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,
|
|
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
|