@copilotkit/core 1.84.2-canary.openbot-intel-fixes → 1.86.0

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/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as flattenInformationalCards, c as segmentSurfaceProse, i as extractStringField, l as A2UI_FENCE_LANGUAGE, n as extractCompleteArrayItems, o as getMarkdownOperationSurfaceId, r as extractFenceOperations, s as prepareSurfaceOperations, t as classifySurfaceCards, u as splitA2UIMarkdown } from "./a2ui-markdown-BxZr1mEU.mjs";
2
2
  import { Throttler } from "@tanstack/pacer";
3
3
  import { AGUIConnectNotImplementedError, AbstractAgent, CompatibilityBoundary, EventType, HttpAgent, buildResumeArray, isInterruptExpired, randomUUID, runHttpRequest, structuredClone_, transformChunks, transformHttpEventStream } from "@ag-ui/client";
4
- import { RUNTIME_MODE_INTELLIGENCE, RUNTIME_MODE_SSE, THREAD_ALREADY_RUNNING_ERROR_CODE, logger, parseInspectorMetadataV1, partialJSONParse, phoenixExponentialBackoff, randomUUID as randomUUID$1, resolveDebugConfig, schemaToJsonSchema, stripIntelligenceRoutingFields } from "@copilotkit/shared";
4
+ import { RUNTIME_MODE_INTELLIGENCE, RUNTIME_MODE_SSE, THREAD_ALREADY_RUNNING_ERROR_CODE, cloneValue, logger, parseInspectorMetadataV1, partialJSONParse, phoenixExponentialBackoff, randomUUID as randomUUID$1, resolveDebugConfig, schemaToJsonSchema, stripIntelligenceRoutingFields } from "@copilotkit/shared";
5
5
  import { BehaviorSubject, EMPTY, NEVER, Notification, Observable, Subject, Subscription, asapScheduler, combineLatest, concat, defer, dematerialize, firstValueFrom, from, lastValueFrom, merge, observeOn, of, switchMap, throwError } from "rxjs";
6
6
  import { catchError, concatMap, concatWith, delay, distinctUntilChanged, endWith, filter, finalize, ignoreElements, map, mergeMap, observeOn as observeOn$1, scan, share, shareReplay, startWith, switchMap as switchMap$1, take, takeUntil, tap, timeout, withLatestFrom } from "rxjs/operators";
7
7
  import { Socket } from "phoenix";
@@ -3864,7 +3864,7 @@ function ɵgetAgentInterruptState(agent, interrupts = agent.pendingInterrupts) {
3864
3864
  state.setStandard(interrupts);
3865
3865
  agentInterruptStates.set(agent, {
3866
3866
  threadId: agent.threadId,
3867
- interrupts: structuredClone(interrupts),
3867
+ interrupts: cloneValue(interrupts),
3868
3868
  state
3869
3869
  });
3870
3870
  return state;