@botbotgo/agent-harness 0.0.266 → 0.0.267

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.
@@ -474,6 +474,26 @@ export type RunOptions = RunStartOptions | RunDecisionOptions;
474
474
  export type HarnessStreamItem = {
475
475
  type: "event";
476
476
  event: HarnessEvent;
477
+ } | {
478
+ type: "content";
479
+ threadId: string;
480
+ runId: string;
481
+ agentId: string;
482
+ content: string;
483
+ } | {
484
+ type: "content-blocks";
485
+ threadId: string;
486
+ runId: string;
487
+ agentId: string;
488
+ contentBlocks: unknown[];
489
+ } | {
490
+ type: "tool-result";
491
+ threadId: string;
492
+ runId: string;
493
+ agentId: string;
494
+ toolName: string;
495
+ output: unknown;
496
+ isError?: boolean;
477
497
  } | {
478
498
  type: "upstream-event";
479
499
  threadId: string;
@@ -1 +1 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.265";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.266";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.265";
1
+ export const AGENT_HARNESS_VERSION = "0.0.266";
@@ -175,6 +175,17 @@ export async function* streamHarnessRun(options) {
175
175
  }
176
176
  emitted = true;
177
177
  assistantOutput += normalizedChunk.content;
178
+ yield {
179
+ type: "event",
180
+ event: await options.emit(options.threadId, options.runId, 3, "output.delta", { content: normalizedChunk.content }),
181
+ };
182
+ yield {
183
+ type: "content",
184
+ threadId: options.threadId,
185
+ runId: options.runId,
186
+ agentId: currentAgentId,
187
+ content: normalizedChunk.content,
188
+ };
178
189
  }
179
190
  if (!assistantOutput && toolErrors.length > 0) {
180
191
  assistantOutput = toolErrors.join("\n\n");
@@ -1687,9 +1687,7 @@ export class AgentHarnessRuntime {
1687
1687
  emitSyntheticFallback: (threadId, runId, selectedAgentId, error) => this.runtimeEventOperations.emitSyntheticFallback(threadId, runId, selectedAgentId, error),
1688
1688
  });
1689
1689
  for await (const item of stream) {
1690
- if (item.type === "event" || item.type === "upstream-event" || item.type === "result") {
1691
- yield item;
1692
- }
1690
+ yield item;
1693
1691
  }
1694
1692
  }
1695
1693
  async resume(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.266",
3
+ "version": "0.0.267",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",