@copilotkit/runtime 1.10.3-next.0 → 1.10.3-next.1

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{chunk-TE2L7P2N.mjs → chunk-EDVWDNXU.mjs} +2 -2
  3. package/dist/{chunk-N46OXOPO.mjs → chunk-EICZRJW6.mjs} +3 -3
  4. package/dist/chunk-EICZRJW6.mjs.map +1 -0
  5. package/dist/{chunk-22UQ7WA6.mjs → chunk-EZ66PQS2.mjs} +2 -2
  6. package/dist/{chunk-OQ2QYHO4.mjs → chunk-JTCVBRKN.mjs} +2 -2
  7. package/dist/{chunk-ST2B545I.mjs → chunk-XDPKMLW4.mjs} +5 -3
  8. package/dist/chunk-XDPKMLW4.mjs.map +1 -0
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.js +5 -3
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +6 -6
  13. package/dist/lib/index.d.ts +2 -3
  14. package/dist/lib/index.js +5 -3
  15. package/dist/lib/index.js.map +1 -1
  16. package/dist/lib/index.mjs +6 -6
  17. package/dist/lib/integrations/index.js +2 -2
  18. package/dist/lib/integrations/index.js.map +1 -1
  19. package/dist/lib/integrations/index.mjs +5 -5
  20. package/dist/lib/integrations/nest/index.js +2 -2
  21. package/dist/lib/integrations/nest/index.js.map +1 -1
  22. package/dist/lib/integrations/nest/index.mjs +3 -3
  23. package/dist/lib/integrations/node-express/index.js +2 -2
  24. package/dist/lib/integrations/node-express/index.js.map +1 -1
  25. package/dist/lib/integrations/node-express/index.mjs +3 -3
  26. package/dist/lib/integrations/node-http/index.js +2 -2
  27. package/dist/lib/integrations/node-http/index.js.map +1 -1
  28. package/dist/lib/integrations/node-http/index.mjs +2 -2
  29. package/package.json +3 -3
  30. package/src/lib/runtime/langgraph/langgraph-agent.ts +5 -2
  31. package/dist/chunk-N46OXOPO.mjs.map +0 -1
  32. package/dist/chunk-ST2B545I.mjs.map +0 -1
  33. /package/dist/{chunk-TE2L7P2N.mjs.map → chunk-EDVWDNXU.mjs.map} +0 -0
  34. /package/dist/{chunk-22UQ7WA6.mjs.map → chunk-EZ66PQS2.mjs.map} +0 -0
  35. /package/dist/{chunk-OQ2QYHO4.mjs.map → chunk-JTCVBRKN.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -2,18 +2,18 @@ import {
2
2
  CustomEventNames,
3
3
  LangGraphAgent,
4
4
  LangGraphHttpAgent
5
- } from "./chunk-ST2B545I.mjs";
5
+ } from "./chunk-XDPKMLW4.mjs";
6
6
  import {
7
7
  config,
8
8
  copilotRuntimeNextJSAppRouterEndpoint,
9
9
  copilotRuntimeNextJSPagesRouterEndpoint
10
- } from "./chunk-OQ2QYHO4.mjs";
10
+ } from "./chunk-JTCVBRKN.mjs";
11
11
  import {
12
12
  copilotRuntimeNestEndpoint
13
- } from "./chunk-22UQ7WA6.mjs";
13
+ } from "./chunk-EZ66PQS2.mjs";
14
14
  import {
15
15
  copilotRuntimeNodeExpressEndpoint
16
- } from "./chunk-TE2L7P2N.mjs";
16
+ } from "./chunk-EDVWDNXU.mjs";
17
17
  import {
18
18
  CopilotRuntime,
19
19
  addCustomHeaderPlugin,
@@ -29,7 +29,7 @@ import {
29
29
  getCommonConfig,
30
30
  langGraphPlatformEndpoint,
31
31
  resolveEndpointType
32
- } from "./chunk-N46OXOPO.mjs";
32
+ } from "./chunk-EICZRJW6.mjs";
33
33
  import "./chunk-SHBDMA63.mjs";
34
34
  import {
35
35
  AnthropicAdapter,
@@ -50,10 +50,10 @@ import {
50
50
  MessageStreamInterruptedResponse,
51
51
  UnknownErrorResponse
52
52
  } from "./chunk-XWBDEXDA.mjs";
53
+ import "./chunk-2OZAGFV3.mjs";
53
54
  import {
54
55
  convertServiceAdapterError
55
56
  } from "./chunk-AMUJQ6IR.mjs";
56
- import "./chunk-2OZAGFV3.mjs";
57
57
  import "./chunk-FHD4JECV.mjs";
58
58
 
59
59
  // src/index.ts
@@ -6,7 +6,7 @@ export { copilotRuntimeNodeExpressEndpoint } from './integrations/node-express/i
6
6
  export { copilotRuntimeNestEndpoint } from './integrations/nest/index.js';
7
7
  import * as rxjs from 'rxjs';
8
8
  import { TextMessageStartEvent, TextMessageContentEvent, TextMessageEndEvent, ToolCallStartEvent, ToolCallArgsEvent, ToolCallEndEvent, RunAgentInput, EventType } from '@ag-ui/client';
9
- import { LangGraphAgent as LangGraphAgent$1, LangGraphAgentConfig, ProcessedEvents, SchemaKeys } from '@ag-ui/langgraph';
9
+ import { LangGraphAgent as LangGraphAgent$1, LangGraphAgentConfig, ProcessedEvents, State, SchemaKeys } from '@ag-ui/langgraph';
10
10
  export { LangGraphHttpAgent } from '@ag-ui/langgraph';
11
11
  import { Message } from '@langchain/langgraph-sdk/dist/types.messages';
12
12
  import 'openai';
@@ -28,7 +28,6 @@ interface PredictStateTool {
28
28
  state_key: string;
29
29
  tool_argument: string;
30
30
  }
31
- type State = Record<string, any>;
32
31
  type TextMessageEvents = TextMessageStartEvent | TextMessageContentEvent | TextMessageEndEvent;
33
32
  type ToolCallEvents = ToolCallStartEvent | ToolCallArgsEvent | ToolCallEndEvent;
34
33
  declare enum CustomEventNames {
@@ -196,4 +195,4 @@ declare class LangGraphAgent extends LangGraphAgent$1 {
196
195
  getSchemaKeys(): Promise<SchemaKeys>;
197
196
  }
198
197
 
199
- export { CustomEventNames, LangGraphAgent, PredictStateTool, State, TextMessageEvents, ToolCallEvents };
198
+ export { CustomEventNames, LangGraphAgent, PredictStateTool, TextMessageEvents, ToolCallEvents };
package/dist/lib/index.js CHANGED
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.10.3-next.0",
47
+ version: "1.10.3-next.1",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -85,7 +85,7 @@ var require_package = __commonJS({
85
85
  "@ag-ui/client": "^0.0.36",
86
86
  "@ag-ui/core": "^0.0.36",
87
87
  "@ag-ui/encoder": "^0.0.36",
88
- "@ag-ui/langgraph": "^0.0.9",
88
+ "@ag-ui/langgraph": "^0.0.10",
89
89
  "@ag-ui/proto": "^0.0.36",
90
90
  "@anthropic-ai/sdk": "^0.57.0",
91
91
  "@copilotkit/shared": "workspace:*",
@@ -7627,7 +7627,9 @@ var LangGraphAgent = class extends import_langgraph.LangGraphAgent {
7627
7627
  this.activeRun.manuallyEmittedState = customEvent.value;
7628
7628
  this.dispatchEvent({
7629
7629
  type: import_client.EventType.STATE_SNAPSHOT,
7630
- snapshot: this.getStateSnapshot(this.activeRun.manuallyEmittedState),
7630
+ snapshot: this.getStateSnapshot({
7631
+ values: this.activeRun.manuallyEmittedState
7632
+ }),
7631
7633
  rawEvent: event
7632
7634
  });
7633
7635
  return true;