@herbertgao/pi-subagents 0.18.4 → 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 +6 -0
- package/package.json +1 -1
- package/src/mention-clone.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.18.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/mention-clone.ts
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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
|
}
|