@herbertgao/pi-subagents 0.18.3 → 0.18.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#258](https://github.com/HerbertGao/pi-extensions/pull/258) [`4f505b1`](https://github.com/HerbertGao/pi-extensions/commit/4f505b1456c5ea766121ee915f14ad29e48973e7) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Keep Pi 1.x tool-call capabilities when starting a mentioned agent through a conversation clone, while preserving attribution to the main session.
8
+
9
+ ## 0.18.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#248](https://github.com/HerbertGao/pi-extensions/pull/248) [`c14c004`](https://github.com/HerbertGao/pi-extensions/commit/c14c0042a8e02862cd6718dd60e4ffb22314165c) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Use Pi 0.99+'s native MCP implementation instead of registering the removed `pi-mcp-adapter`, declare Pi-hosted packages as wildcard peers, update `@tifan/pi-handoff` to 2.2.2 for its Herdr startup retry fix, and pin `pi-typesafe` to 0.8.0.
14
+
3
15
  ## 0.18.3
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-subagents",
3
- "version": "0.18.3",
3
+ "version": "0.18.5",
4
4
  "description": "Claude Code-style autonomous subagents and workflow orchestration for Pi, with HerbertGao-maintained UI extensions.",
5
5
  "keywords": [
6
6
  "agent",
@@ -45,18 +45,18 @@
45
45
  "test:coverage": "vitest run --coverage"
46
46
  },
47
47
  "dependencies": {
48
- "@sinclair/typebox": "^0.34.49",
49
48
  "croner": "^10.0.1",
50
- "nanoid": "^5.1.16",
51
- "typebox": "^1.3.7"
49
+ "nanoid": "^5.1.16"
52
50
  },
53
51
  "devDependencies": {
54
52
  "@vitest/coverage-istanbul": "^4.1.10"
55
53
  },
56
54
  "peerDependencies": {
57
- "@earendil-works/pi-ai": "^0.87.1",
58
- "@earendil-works/pi-coding-agent": "^0.87.1",
59
- "@earendil-works/pi-tui": "^0.87.1"
55
+ "@earendil-works/pi-ai": "*",
56
+ "@earendil-works/pi-coding-agent": "*",
57
+ "@earendil-works/pi-tui": "*",
58
+ "@sinclair/typebox": "*",
59
+ "typebox": "*"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=24"
@@ -108,7 +108,7 @@ export async function runMentionClone(
108
108
  let spawned = false
109
109
  const cloneAgentTool: ToolDefinition = {
110
110
  ...agentTool,
111
- execute: (_cloneToolCallId, params, signal, onUpdate, _cloneCtx) => {
111
+ execute: (_cloneToolCallId, params, signal, onUpdate, cloneCtx) => {
112
112
  // One spawn per mention. The clone has a single tool and every reason to
113
113
  // stop after using it, but a model that decides to "also" launch a second
114
114
  // agent would do it where nobody can see and nobody asked.
@@ -138,7 +138,8 @@ export async function runMentionClone(
138
138
  } as typeof params,
139
139
  signal,
140
140
  onUpdate,
141
- ctx,
141
+ // Keep Pi's tool-call capabilities, but attribute the spawn to the main session.
142
+ { ...ctx, tools: cloneCtx.tools, executeTool: cloneCtx.executeTool },
142
143
  )
143
144
  },
144
145
  }