agent-accelerator 0.5.2 → 0.5.4

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.
@@ -11,7 +11,7 @@ function fail(message: string): never {
11
11
  }
12
12
 
13
13
  /** Deep clone that preserves Uint8Array/ArrayBuffer media (structuredClone may be absent). */
14
- function deepCloneValue<T>(value: T): T {
14
+ export function deepCloneValue<T>(value: T): T {
15
15
  if (value instanceof Uint8Array) return new Uint8Array(value) as T;
16
16
  if (value instanceof ArrayBuffer) return value.slice(0) as T;
17
17
  if (Array.isArray(value)) return value.map((v) => deepCloneValue(v)) as T;
@@ -137,6 +137,8 @@ export class AgentContext {
137
137
  name: res.name,
138
138
  result: res.result,
139
139
  isError: res.isError,
140
+ ...(res.logFile ? { logFile: res.logFile } : {}),
141
+ ...(res.stopped ? { stopped: true } : {}),
140
142
  },
141
143
  ],
142
144
  });