@opencode_weave/weave 0.4.0 → 0.4.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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2219,7 +2219,7 @@ ${result.contextInjection}`;
|
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
2221
|
if (input.tool === "task" && args2) {
|
|
2222
|
-
const agentArg = args2.
|
|
2222
|
+
const agentArg = args2.subagent_type ?? args2.description ?? "unknown";
|
|
2223
2223
|
logDelegation({
|
|
2224
2224
|
phase: "start",
|
|
2225
2225
|
agent: agentArg,
|
|
@@ -2231,7 +2231,7 @@ ${result.contextInjection}`;
|
|
|
2231
2231
|
"tool.execute.after": async (input, _output) => {
|
|
2232
2232
|
if (input.tool === "task") {
|
|
2233
2233
|
const inputArgs = input.args;
|
|
2234
|
-
const agentArg = inputArgs?.
|
|
2234
|
+
const agentArg = inputArgs?.subagent_type ?? inputArgs?.description ?? "unknown";
|
|
2235
2235
|
logDelegation({
|
|
2236
2236
|
phase: "complete",
|
|
2237
2237
|
agent: agentArg,
|