@copilotkit/runtime 1.9.2-next.23 → 1.9.2-next.24

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 (31) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{chunk-LYXJJDV3.mjs → chunk-ECQRTXJX.mjs} +2 -2
  3. package/dist/{chunk-ZQUGWRVU.mjs → chunk-FR4C3TPU.mjs} +2 -2
  4. package/dist/{chunk-FIA5HRU2.mjs → chunk-GAUZHH2X.mjs} +18 -18
  5. package/dist/{chunk-FIA5HRU2.mjs.map → chunk-GAUZHH2X.mjs.map} +1 -1
  6. package/dist/{chunk-C6PCDSTD.mjs → chunk-S2YGYQDH.mjs} +2 -2
  7. package/dist/{chunk-HZW6X63M.mjs → chunk-TBVA4IGX.mjs} +2 -2
  8. package/dist/index.js +10 -10
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +6 -6
  11. package/dist/lib/index.d.ts +152 -2
  12. package/dist/lib/index.js +10 -10
  13. package/dist/lib/index.js.map +1 -1
  14. package/dist/lib/index.mjs +6 -6
  15. package/dist/lib/integrations/index.js +10 -10
  16. package/dist/lib/integrations/index.js.map +1 -1
  17. package/dist/lib/integrations/index.mjs +5 -5
  18. package/dist/lib/integrations/nest/index.js +10 -10
  19. package/dist/lib/integrations/nest/index.js.map +1 -1
  20. package/dist/lib/integrations/nest/index.mjs +3 -3
  21. package/dist/lib/integrations/node-express/index.js +10 -10
  22. package/dist/lib/integrations/node-express/index.js.map +1 -1
  23. package/dist/lib/integrations/node-express/index.mjs +3 -3
  24. package/dist/lib/integrations/node-http/index.js +10 -10
  25. package/dist/lib/integrations/node-http/index.js.map +1 -1
  26. package/dist/lib/integrations/node-http/index.mjs +2 -2
  27. package/package.json +11 -11
  28. /package/dist/{chunk-LYXJJDV3.mjs.map → chunk-ECQRTXJX.mjs.map} +0 -0
  29. /package/dist/{chunk-ZQUGWRVU.mjs.map → chunk-FR4C3TPU.mjs.map} +0 -0
  30. /package/dist/{chunk-C6PCDSTD.mjs.map → chunk-S2YGYQDH.mjs.map} +0 -0
  31. /package/dist/{chunk-HZW6X63M.mjs.map → chunk-TBVA4IGX.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CustomEventNames,
3
3
  LangGraphAgent
4
- } from "./chunk-C6PCDSTD.mjs";
4
+ } from "./chunk-S2YGYQDH.mjs";
5
5
  import {
6
6
  config,
7
7
  copilotRuntimeNextJSAppRouterEndpoint,
8
8
  copilotRuntimeNextJSPagesRouterEndpoint
9
- } from "./chunk-HZW6X63M.mjs";
9
+ } from "./chunk-TBVA4IGX.mjs";
10
10
  import {
11
11
  copilotRuntimeNestEndpoint
12
- } from "./chunk-LYXJJDV3.mjs";
12
+ } from "./chunk-ECQRTXJX.mjs";
13
13
  import {
14
14
  copilotRuntimeNodeExpressEndpoint
15
- } from "./chunk-ZQUGWRVU.mjs";
15
+ } from "./chunk-FR4C3TPU.mjs";
16
16
  import {
17
17
  CopilotRuntime,
18
18
  addCustomHeaderPlugin,
@@ -28,8 +28,7 @@ import {
28
28
  getCommonConfig,
29
29
  langGraphPlatformEndpoint,
30
30
  resolveEndpointType
31
- } from "./chunk-FIA5HRU2.mjs";
32
- import "./chunk-SHBDMA63.mjs";
31
+ } from "./chunk-GAUZHH2X.mjs";
33
32
  import {
34
33
  AnthropicAdapter,
35
34
  BedrockAdapter,
@@ -52,6 +51,7 @@ import {
52
51
  import {
53
52
  convertServiceAdapterError
54
53
  } from "./chunk-AMUJQ6IR.mjs";
54
+ import "./chunk-SHBDMA63.mjs";
55
55
  import "./chunk-2OZAGFV3.mjs";
56
56
  import "./chunk-FHD4JECV.mjs";
57
57
 
@@ -5,7 +5,7 @@ export { copilotRuntimeNodeHttpEndpoint } from './integrations/node-http/index.j
5
5
  export { copilotRuntimeNodeExpressEndpoint } from './integrations/node-express/index.js';
6
6
  export { copilotRuntimeNestEndpoint } from './integrations/nest/index.js';
7
7
  import * as rxjs from 'rxjs';
8
- import { TextMessageStartEvent, TextMessageContentEvent, TextMessageEndEvent, ToolCallStartEvent, ToolCallArgsEvent, ToolCallEndEvent, RunAgentInput } from '@ag-ui/client';
8
+ import { TextMessageStartEvent, TextMessageContentEvent, TextMessageEndEvent, ToolCallStartEvent, ToolCallArgsEvent, ToolCallEndEvent, RunAgentInput, EventType } from '@ag-ui/client';
9
9
  import { LangGraphAgent as LangGraphAgent$1, LangGraphAgentConfig, ProcessedEvents, SchemaKeys } from '@ag-ui/langgraph';
10
10
  import { Message } from '@langchain/langgraph-sdk/dist/types.messages';
11
11
  import 'openai';
@@ -39,7 +39,157 @@ declare enum CustomEventNames {
39
39
  declare class LangGraphAgent extends LangGraphAgent$1 {
40
40
  constructor(config: LangGraphAgentConfig);
41
41
  dispatchEvent(event: ProcessedEvents): boolean;
42
- run(input: RunAgentInput): rxjs.Observable<any>;
42
+ run(input: RunAgentInput): rxjs.Observable<{
43
+ type: EventType.TEXT_MESSAGE_START;
44
+ role: "assistant";
45
+ messageId: string;
46
+ timestamp?: number | undefined;
47
+ rawEvent?: any;
48
+ } | {
49
+ type: EventType.TEXT_MESSAGE_CONTENT;
50
+ messageId: string;
51
+ delta: string;
52
+ timestamp?: number | undefined;
53
+ rawEvent?: any;
54
+ } | {
55
+ type: EventType.TEXT_MESSAGE_END;
56
+ messageId: string;
57
+ timestamp?: number | undefined;
58
+ rawEvent?: any;
59
+ } | {
60
+ type: EventType.TOOL_CALL_START;
61
+ toolCallId: string;
62
+ toolCallName: string;
63
+ timestamp?: number | undefined;
64
+ rawEvent?: any;
65
+ parentMessageId?: string | undefined;
66
+ } | {
67
+ type: EventType.TOOL_CALL_ARGS;
68
+ toolCallId: string;
69
+ delta: string;
70
+ timestamp?: number | undefined;
71
+ rawEvent?: any;
72
+ } | {
73
+ type: EventType.TOOL_CALL_END;
74
+ toolCallId: string;
75
+ timestamp?: number | undefined;
76
+ rawEvent?: any;
77
+ } | {
78
+ type: EventType.THINKING_TEXT_MESSAGE_START;
79
+ timestamp?: number | undefined;
80
+ rawEvent?: any;
81
+ } | {
82
+ type: EventType.THINKING_TEXT_MESSAGE_CONTENT;
83
+ delta: string;
84
+ timestamp?: number | undefined;
85
+ rawEvent?: any;
86
+ } | {
87
+ type: EventType.THINKING_TEXT_MESSAGE_END;
88
+ timestamp?: number | undefined;
89
+ rawEvent?: any;
90
+ } | {
91
+ type: EventType.THINKING_START;
92
+ timestamp?: number | undefined;
93
+ rawEvent?: any;
94
+ title?: string | undefined;
95
+ } | {
96
+ type: EventType.THINKING_END;
97
+ timestamp?: number | undefined;
98
+ rawEvent?: any;
99
+ } | {
100
+ type: EventType.STATE_SNAPSHOT;
101
+ timestamp?: number | undefined;
102
+ rawEvent?: any;
103
+ snapshot?: any;
104
+ } | {
105
+ type: EventType.STATE_DELTA;
106
+ delta: any[];
107
+ timestamp?: number | undefined;
108
+ rawEvent?: any;
109
+ } | {
110
+ type: EventType.MESSAGES_SNAPSHOT;
111
+ messages: ({
112
+ id: string;
113
+ role: "developer";
114
+ content: string;
115
+ name?: string | undefined;
116
+ } | {
117
+ id: string;
118
+ role: "system";
119
+ content: string;
120
+ name?: string | undefined;
121
+ } | {
122
+ id: string;
123
+ role: "assistant";
124
+ name?: string | undefined;
125
+ content?: string | undefined;
126
+ toolCalls?: {
127
+ function: {
128
+ name: string;
129
+ arguments: string;
130
+ };
131
+ type: "function";
132
+ id: string;
133
+ }[] | undefined;
134
+ } | {
135
+ id: string;
136
+ role: "user";
137
+ content: string;
138
+ name?: string | undefined;
139
+ } | {
140
+ id: string;
141
+ role: "tool";
142
+ content: string;
143
+ toolCallId: string;
144
+ })[];
145
+ timestamp?: number | undefined;
146
+ rawEvent?: any;
147
+ } | {
148
+ type: EventType.RAW;
149
+ timestamp?: number | undefined;
150
+ rawEvent?: any;
151
+ event?: any;
152
+ source?: string | undefined;
153
+ } | {
154
+ name: string;
155
+ type: EventType.CUSTOM;
156
+ value?: any;
157
+ timestamp?: number | undefined;
158
+ rawEvent?: any;
159
+ } | {
160
+ type: EventType.RUN_STARTED;
161
+ threadId: string;
162
+ runId: string;
163
+ timestamp?: number | undefined;
164
+ rawEvent?: any;
165
+ } | {
166
+ type: EventType.RUN_FINISHED;
167
+ threadId: string;
168
+ runId: string;
169
+ timestamp?: number | undefined;
170
+ rawEvent?: any;
171
+ result?: any;
172
+ } | {
173
+ message: string;
174
+ type: EventType.RUN_ERROR;
175
+ code?: string | undefined;
176
+ timestamp?: number | undefined;
177
+ rawEvent?: any;
178
+ } | {
179
+ type: EventType.STEP_STARTED;
180
+ stepName: string;
181
+ timestamp?: number | undefined;
182
+ rawEvent?: any;
183
+ } | {
184
+ type: EventType.STEP_FINISHED;
185
+ stepName: string;
186
+ timestamp?: number | undefined;
187
+ rawEvent?: any;
188
+ } | {
189
+ type: EventType;
190
+ name: string;
191
+ value: any;
192
+ }>;
43
193
  langGraphDefaultMergeState(state: State, messages: Message[], tools: any): State;
44
194
  getSchemaKeys(): Promise<SchemaKeys>;
45
195
  }
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.9.2-next.23",
47
+ version: "1.9.2-next.24",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -82,11 +82,11 @@ var require_package = __commonJS({
82
82
  "zod-to-json-schema": "^3.23.5"
83
83
  },
84
84
  dependencies: {
85
- "@ag-ui/client": "0.0.28",
86
- "@ag-ui/core": "0.0.28",
87
- "@ag-ui/encoder": "0.0.28",
88
- "@ag-ui/langgraph": "0.0.4",
89
- "@ag-ui/proto": "0.0.28",
85
+ "@ag-ui/client": "0.0.34",
86
+ "@ag-ui/core": "0.0.34",
87
+ "@ag-ui/encoder": "0.0.34",
88
+ "@ag-ui/langgraph": "0.0.6",
89
+ "@ag-ui/proto": "0.0.34",
90
90
  "@anthropic-ai/sdk": "^0.27.3",
91
91
  "@copilotkit/shared": "workspace:*",
92
92
  "@graphql-yoga/plugin-defer-stream": "^3.3.1",
@@ -114,10 +114,10 @@ var require_package = __commonJS({
114
114
  zod: "^3.23.3"
115
115
  },
116
116
  peerDependencies: {
117
- "@ag-ui/client": ">=0.0.28",
118
- "@ag-ui/core": ">=0.0.28",
119
- "@ag-ui/encoder": ">=0.0.28",
120
- "@ag-ui/proto": ">=0.0.28"
117
+ "@ag-ui/client": ">=0.0.34",
118
+ "@ag-ui/core": ">=0.0.34",
119
+ "@ag-ui/encoder": ">=0.0.34",
120
+ "@ag-ui/proto": ">=0.0.34"
121
121
  },
122
122
  keywords: [
123
123
  "copilotkit",