@hmharness/agent 0.14.24 → 0.18.13
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/runner.d.ts +1 -0
- package/dist/runner.js +6 -2
- package/package.json +1 -1
package/dist/runner.d.ts
CHANGED
package/dist/runner.js
CHANGED
|
@@ -516,8 +516,12 @@ export async function runAgentTask(opts) {
|
|
|
516
516
|
/* insight count is best-effort */
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
// messages rides along so cross-task callers (web thread mode) can extend
|
|
520
|
+
// their conversation with the assistant turns - without it the caller could
|
|
521
|
+
// only ever see the final text and every follow-up lost the answers (the
|
|
522
|
+
// web conversation bug, 2026-09-27).
|
|
523
|
+
events.onFinal?.({ text: result.text, turns: result.turns, toolUses: result.toolUses, sessionId: session.id, usage: result.usage, messages });
|
|
524
|
+
return { ...result, sessionId: session.id, toolsUsed: [...new Set(toolsUsed)], messages };
|
|
521
525
|
}
|
|
522
526
|
/** One background evolution cycle (auto-triggered). Logs to the evolution
|
|
523
527
|
* journal only; failures never surface into the user's chat. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.13",
|
|
4
4
|
"description": "hmharness agent execution layer: base tools, system prompt, sub-agent spawn, and the shared task runner that frontends (cli, web) drive.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|