@ryan_nookpi/pi-extension-subagent 0.4.8 → 0.4.10
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 +1 -1
- package/runner.ts +3 -5
package/package.json
CHANGED
package/runner.ts
CHANGED
|
@@ -946,11 +946,9 @@ async function runPiAgent(
|
|
|
946
946
|
return;
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
if (event.type === "
|
|
950
|
-
|
|
951
|
-
currentResult.
|
|
952
|
-
if (typeof toolResultMessage.toolName === "string") currentResult.lastToolName = toolResultMessage.toolName;
|
|
953
|
-
currentResult.lastToolOutputChars = countTextChars(toolResultMessage.content);
|
|
949
|
+
if (event.type === "tool_execution_end" && event.result) {
|
|
950
|
+
if (typeof event.toolName === "string") currentResult.lastToolName = event.toolName;
|
|
951
|
+
currentResult.lastToolOutputChars = countTextChars(event.result.content);
|
|
954
952
|
emitUpdate();
|
|
955
953
|
if (sawAgentEnd) scheduleAgentEndForceResolve();
|
|
956
954
|
return;
|