@bluecopa/harness 0.1.0-snapshot.13 → 0.1.0-snapshot.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/harness",
3
- "version": "0.1.0-snapshot.13",
3
+ "version": "0.1.0-snapshot.14",
4
4
  "description": "Provider-agnostic TypeScript agent framework",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
@@ -727,8 +727,7 @@ export function createAgent(runtime: AgentRuntime) {
727
727
  if (event.type === 'text_delta') {
728
728
  finalText += event.text;
729
729
  yield event;
730
- }
731
- if (event.type === 'tool_start') {
730
+ } else if (event.type === 'tool_start') {
732
731
  pendingTools.push({
733
732
  type: 'tool',
734
733
  name: event.name,
@@ -736,6 +735,11 @@ export function createAgent(runtime: AgentRuntime) {
736
735
  ...(event.toolCallId != null ? { toolCallId: event.toolCallId } : {}),
737
736
  });
738
737
  yield event;
738
+ } else {
739
+ // Forward all other events (tool_end, step_start, step_end, done)
740
+ // from self-managing loops like ArcLoop
741
+ yield event;
742
+ if (event.type === 'done') return;
739
743
  }
740
744
  }
741
745