agentbox-sdk 0.1.520 → 0.1.521

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.
@@ -15,8 +15,8 @@ import {
15
15
  parseHarnessCommandInvocation,
16
16
  resolveHarnessCommand,
17
17
  skillDirective
18
- } from "../chunk-7PZKMK4U.js";
19
- import "../chunk-V4M4LPPT.js";
18
+ } from "../chunk-UUWGCVXA.js";
19
+ import "../chunk-AE2FQ6YU.js";
20
20
  import {
21
21
  AGENT_RESERVED_PORTS,
22
22
  collectAllAgentReservedPorts
@@ -452,10 +452,14 @@ var OpenCodeLogAssembler = class {
452
452
  }
453
453
  const text = (this.textByPartId.get(partId) ?? "") + delta;
454
454
  this.textByPartId.set(partId, text);
455
+ const previous = this.byPartId.get(partId);
456
+ const previousPart = isRecord(
457
+ previous?.properties?.part
458
+ ) ? (previous?.properties).part : null;
455
459
  const part = {
460
+ ...previousPart ? clone(previousPart) : { type: "text" },
456
461
  id: partId,
457
- messageID: messageId ?? void 0,
458
- type: "text",
462
+ messageID: messageId ?? previousPart?.messageID ?? void 0,
459
463
  text
460
464
  };
461
465
  if (parentTaskCallId) {
@@ -2,7 +2,7 @@ import {
2
2
  createNormalizedEvent,
3
3
  normalizeRawAgentEvent,
4
4
  toAISDKStream
5
- } from "./chunk-V4M4LPPT.js";
5
+ } from "./chunk-AE2FQ6YU.js";
6
6
  import {
7
7
  AgentBoxError,
8
8
  AsyncQueue,
@@ -4,7 +4,7 @@ import {
4
4
  normalizeRawAgentEvent,
5
5
  toAISDKEvent,
6
6
  toAISDKStream
7
- } from "../chunk-V4M4LPPT.js";
7
+ } from "../chunk-AE2FQ6YU.js";
8
8
  import "../chunk-GOFJNFAD.js";
9
9
  export {
10
10
  ProviderLogAssembler,
package/dist/index.js CHANGED
@@ -15,14 +15,14 @@ import {
15
15
  parseHarnessCommandInvocation,
16
16
  resolveHarnessCommand,
17
17
  skillDirective
18
- } from "./chunk-7PZKMK4U.js";
18
+ } from "./chunk-UUWGCVXA.js";
19
19
  import {
20
20
  ProviderLogAssembler,
21
21
  createNormalizedEvent,
22
22
  normalizeRawAgentEvent,
23
23
  toAISDKEvent,
24
24
  toAISDKStream
25
- } from "./chunk-V4M4LPPT.js";
25
+ } from "./chunk-AE2FQ6YU.js";
26
26
  import {
27
27
  Sandbox,
28
28
  SandboxAdapter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentbox-sdk",
3
- "version": "0.1.520",
3
+ "version": "0.1.521",
4
4
  "description": "Swappable coding agents and sandbox providers for Bun and TypeScript.",
5
5
  "license": "MIT",
6
6
  "repository": {