@copilotkit/runtime 1.9.2-next.1 → 1.9.2-next.2

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 (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{chunk-C3SWOFLO.mjs → chunk-6TQCQ3WJ.mjs} +2 -2
  3. package/dist/{chunk-KPFOAXRX.mjs → chunk-CD2SZGIZ.mjs} +2 -2
  4. package/dist/{chunk-RIPQZJB5.mjs → chunk-D3SPXEVJ.mjs} +2 -2
  5. package/dist/{chunk-XGBY45FP.mjs → chunk-DOWRU5U6.mjs} +4 -4
  6. package/dist/chunk-DOWRU5U6.mjs.map +1 -0
  7. package/dist/{chunk-YV3YXRMR.mjs → chunk-ODF35LFG.mjs} +2 -2
  8. package/dist/index.js +3 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.d.ts +2 -129
  12. package/dist/lib/index.js +3 -3
  13. package/dist/lib/index.js.map +1 -1
  14. package/dist/lib/index.mjs +5 -5
  15. package/dist/lib/integrations/index.js +3 -3
  16. package/dist/lib/integrations/index.js.map +1 -1
  17. package/dist/lib/integrations/index.mjs +4 -4
  18. package/dist/lib/integrations/nest/index.js +3 -3
  19. package/dist/lib/integrations/nest/index.js.map +1 -1
  20. package/dist/lib/integrations/nest/index.mjs +2 -2
  21. package/dist/lib/integrations/node-express/index.js +3 -3
  22. package/dist/lib/integrations/node-express/index.js.map +1 -1
  23. package/dist/lib/integrations/node-express/index.mjs +2 -2
  24. package/dist/lib/integrations/node-http/index.js +3 -3
  25. package/dist/lib/integrations/node-http/index.js.map +1 -1
  26. package/dist/lib/integrations/node-http/index.mjs +1 -1
  27. package/package.json +4 -4
  28. package/dist/chunk-XGBY45FP.mjs.map +0 -1
  29. /package/dist/{chunk-C3SWOFLO.mjs.map → chunk-6TQCQ3WJ.mjs.map} +0 -0
  30. /package/dist/{chunk-KPFOAXRX.mjs.map → chunk-CD2SZGIZ.mjs.map} +0 -0
  31. /package/dist/{chunk-RIPQZJB5.mjs.map → chunk-D3SPXEVJ.mjs.map} +0 -0
  32. /package/dist/{chunk-YV3YXRMR.mjs.map → chunk-ODF35LFG.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-YV3YXRMR.mjs";
4
+ } from "./chunk-ODF35LFG.mjs";
5
5
  import {
6
6
  config,
7
7
  copilotRuntimeNextJSAppRouterEndpoint,
8
8
  copilotRuntimeNextJSPagesRouterEndpoint
9
- } from "./chunk-RIPQZJB5.mjs";
9
+ } from "./chunk-D3SPXEVJ.mjs";
10
10
  import {
11
11
  copilotRuntimeNestEndpoint
12
- } from "./chunk-C3SWOFLO.mjs";
12
+ } from "./chunk-6TQCQ3WJ.mjs";
13
13
  import {
14
14
  copilotRuntimeNodeExpressEndpoint
15
- } from "./chunk-KPFOAXRX.mjs";
15
+ } from "./chunk-CD2SZGIZ.mjs";
16
16
  import {
17
17
  CopilotRuntime,
18
18
  addCustomHeaderPlugin,
@@ -28,7 +28,7 @@ import {
28
28
  getCommonConfig,
29
29
  langGraphPlatformEndpoint,
30
30
  resolveEndpointType
31
- } from "./chunk-XGBY45FP.mjs";
31
+ } from "./chunk-DOWRU5U6.mjs";
32
32
  import {
33
33
  AnthropicAdapter,
34
34
  BedrockAdapter,
@@ -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, EventType } from '@ag-ui/client';
8
+ import { TextMessageStartEvent, TextMessageContentEvent, TextMessageEndEvent, ToolCallStartEvent, ToolCallArgsEvent, ToolCallEndEvent, RunAgentInput } from '@ag-ui/client';
9
9
  import { LangGraphAgent as LangGraphAgent$1, LangGraphAgentConfig, ProcessedEvents } from '@ag-ui/langgraph';
10
10
  import { Message } from '@langchain/langgraph-sdk/dist/types.messages';
11
11
  import 'openai';
@@ -39,134 +39,7 @@ 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<{
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.STATE_SNAPSHOT;
79
- timestamp?: number | undefined;
80
- rawEvent?: any;
81
- snapshot?: any;
82
- } | {
83
- type: EventType.STATE_DELTA;
84
- delta: any[];
85
- timestamp?: number | undefined;
86
- rawEvent?: any;
87
- } | {
88
- type: EventType.MESSAGES_SNAPSHOT;
89
- messages: ({
90
- id: string;
91
- role: "developer";
92
- content: string;
93
- name?: string | undefined;
94
- } | {
95
- id: string;
96
- role: "system";
97
- content: string;
98
- name?: string | undefined;
99
- } | {
100
- id: string;
101
- role: "assistant";
102
- name?: string | undefined;
103
- content?: string | undefined;
104
- toolCalls?: {
105
- function: {
106
- name: string;
107
- arguments: string;
108
- };
109
- type: "function";
110
- id: string;
111
- }[] | undefined;
112
- } | {
113
- id: string;
114
- role: "user";
115
- content: string;
116
- name?: string | undefined;
117
- } | {
118
- id: string;
119
- role: "tool";
120
- content: string;
121
- toolCallId: string;
122
- })[];
123
- timestamp?: number | undefined;
124
- rawEvent?: any;
125
- } | {
126
- type: EventType.RAW;
127
- timestamp?: number | undefined;
128
- rawEvent?: any;
129
- event?: any;
130
- source?: string | undefined;
131
- } | {
132
- name: string;
133
- type: EventType.CUSTOM;
134
- value?: any;
135
- timestamp?: number | undefined;
136
- rawEvent?: any;
137
- } | {
138
- type: EventType.RUN_STARTED;
139
- threadId: string;
140
- runId: string;
141
- timestamp?: number | undefined;
142
- rawEvent?: any;
143
- } | {
144
- type: EventType.RUN_FINISHED;
145
- threadId: string;
146
- runId: string;
147
- timestamp?: number | undefined;
148
- rawEvent?: any;
149
- } | {
150
- message: string;
151
- type: EventType.RUN_ERROR;
152
- code?: string | undefined;
153
- timestamp?: number | undefined;
154
- rawEvent?: any;
155
- } | {
156
- type: EventType.STEP_STARTED;
157
- stepName: string;
158
- timestamp?: number | undefined;
159
- rawEvent?: any;
160
- } | {
161
- type: EventType.STEP_FINISHED;
162
- stepName: string;
163
- timestamp?: number | undefined;
164
- rawEvent?: any;
165
- } | {
166
- type: EventType;
167
- name: string;
168
- value: any;
169
- }>;
42
+ run(input: RunAgentInput): rxjs.Observable<any>;
170
43
  langGraphDefaultMergeState(state: State, messages: Message[], tools: any): State;
171
44
  }
172
45
 
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.1",
47
+ version: "1.9.2-next.2",
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.28",
86
86
  "@ag-ui/core": "0.0.28",
87
87
  "@ag-ui/encoder": "0.0.28",
88
- "@ag-ui/langgraph": "0.0.3",
88
+ "@ag-ui/langgraph": "0.0.4",
89
89
  "@ag-ui/proto": "0.0.28",
90
90
  "@anthropic-ai/sdk": "^0.27.3",
91
91
  "@copilotkit/shared": "workspace:*",
@@ -109,7 +109,7 @@ var require_package = __commonJS({
109
109
  pino: "^9.2.0",
110
110
  "pino-pretty": "^11.2.1",
111
111
  "reflect-metadata": "^0.2.2",
112
- rxjs: "^7.8.1",
112
+ rxjs: "7.8.1",
113
113
  "type-graphql": "2.0.0-rc.1",
114
114
  zod: "^3.23.3"
115
115
  },