@ian-pascoe/pi-minimal-subagents 0.17.0 → 0.17.1

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": "@ian-pascoe/pi-minimal-subagents",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "private": false,
5
5
  "description": "Persistent nested subagents with bounded delegation for Pi",
6
6
  "keywords": [
@@ -31,7 +31,7 @@
31
31
  "provenance": true
32
32
  },
33
33
  "dependencies": {
34
- "@ian-pascoe/pi-utils": "^0.5.0",
34
+ "@ian-pascoe/pi-utils": "^0.6.0",
35
35
  "minimatch": "^10.2.6"
36
36
  },
37
37
  "peerDependencies": {
@@ -10,6 +10,7 @@ import {
10
10
  type ToolRenderResultOptions,
11
11
  } from "@earendil-works/pi-coding-agent";
12
12
  import { Container, type Component, type TUI } from "@earendil-works/pi-tui";
13
+ import { acceptNullForOptionalArguments } from "@ian-pascoe/pi-utils/null-optional-arguments";
13
14
  import { appendDurationFooter, callDurationFooter } from "@ian-pascoe/pi-utils/ui";
14
15
  import type { MinimalSubagentsCoordinator } from "./minimal-subagents-coordinator.js";
15
16
  import { withTroubleshootingHint } from "./troubleshooting-skill.js";
@@ -512,7 +513,9 @@ export function createCoordinatorToolDefinitions(
512
513
  Object.assign(deleteTool, { outputSchema: CoordinatorToolOutputSchemas.subagent_delete }),
513
514
  ];
514
515
  const allowFanoutTools = options.allowFanoutTools ?? options.callerId === "root";
515
- return allowFanoutTools
516
- ? coordinatorTools
517
- : coordinatorTools.filter((tool) => NON_SPAWNING_CHILD_COORDINATOR_TOOL_NAMES.has(tool.name));
516
+ return (
517
+ allowFanoutTools
518
+ ? coordinatorTools
519
+ : coordinatorTools.filter((tool) => NON_SPAWNING_CHILD_COORDINATOR_TOOL_NAMES.has(tool.name))
520
+ ).map((tool) => acceptNullForOptionalArguments(tool));
518
521
  }