@copilotkit/runtime 1.5.15-next.3 → 1.5.15-next.5

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 (52) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/__snapshots__/schema/schema.graphql +26 -0
  3. package/dist/{chunk-WPJHMQDF.mjs → chunk-6AZ56PM7.mjs} +2 -2
  4. package/dist/{chunk-KPOZF6JI.mjs → chunk-AKPE4ICY.mjs} +2 -2
  5. package/dist/{chunk-EV3MMEAZ.mjs → chunk-IARJ7RBP.mjs} +513 -295
  6. package/dist/chunk-IARJ7RBP.mjs.map +1 -0
  7. package/dist/{chunk-I2OII4XX.mjs → chunk-NKM2XMY5.mjs} +2 -2
  8. package/dist/{copilot-runtime-e6c34790.d.ts → copilot-runtime-a113045f.d.ts} +13 -1
  9. package/dist/{groq-adapter-acb6ed0b.d.ts → groq-adapter-248058e8.d.ts} +1 -1
  10. package/dist/index.d.ts +3 -3
  11. package/dist/index.js +787 -571
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +4 -4
  14. package/dist/{langserve-9614171f.d.ts → langserve-9580bd66.d.ts} +16 -2
  15. package/dist/lib/index.d.ts +3 -3
  16. package/dist/lib/index.js +787 -571
  17. package/dist/lib/index.js.map +1 -1
  18. package/dist/lib/index.mjs +4 -4
  19. package/dist/lib/integrations/index.d.ts +3 -3
  20. package/dist/lib/integrations/index.js +500 -319
  21. package/dist/lib/integrations/index.js.map +1 -1
  22. package/dist/lib/integrations/index.mjs +4 -4
  23. package/dist/lib/integrations/nest/index.d.ts +2 -2
  24. package/dist/lib/integrations/nest/index.js +500 -319
  25. package/dist/lib/integrations/nest/index.js.map +1 -1
  26. package/dist/lib/integrations/nest/index.mjs +2 -2
  27. package/dist/lib/integrations/node-express/index.d.ts +2 -2
  28. package/dist/lib/integrations/node-express/index.js +500 -319
  29. package/dist/lib/integrations/node-express/index.js.map +1 -1
  30. package/dist/lib/integrations/node-express/index.mjs +2 -2
  31. package/dist/lib/integrations/node-http/index.d.ts +2 -2
  32. package/dist/lib/integrations/node-http/index.js +500 -319
  33. package/dist/lib/integrations/node-http/index.js.map +1 -1
  34. package/dist/lib/integrations/node-http/index.mjs +1 -1
  35. package/dist/service-adapters/index.d.ts +3 -3
  36. package/package.json +3 -3
  37. package/src/agents/langgraph/event-source.ts +14 -2
  38. package/src/agents/langgraph/events.ts +12 -1
  39. package/src/graphql/inputs/generate-copilot-response.input.ts +4 -0
  40. package/src/graphql/inputs/meta-event.input.ts +17 -0
  41. package/src/graphql/resolvers/copilot.resolver.ts +67 -22
  42. package/src/graphql/types/copilot-response.type.ts +6 -0
  43. package/src/graphql/types/meta-events.type.ts +31 -0
  44. package/src/lib/runtime/copilot-runtime.ts +4 -0
  45. package/src/lib/runtime/remote-action-constructors.ts +5 -1
  46. package/src/lib/runtime/remote-actions.ts +2 -0
  47. package/src/lib/runtime/remote-lg-action.ts +35 -8
  48. package/src/service-adapters/events.ts +20 -1
  49. package/dist/chunk-EV3MMEAZ.mjs.map +0 -1
  50. /package/dist/{chunk-WPJHMQDF.mjs.map → chunk-6AZ56PM7.mjs.map} +0 -0
  51. /package/dist/{chunk-KPOZF6JI.mjs.map → chunk-AKPE4ICY.mjs.map} +0 -0
  52. /package/dist/{chunk-I2OII4XX.mjs.map → chunk-NKM2XMY5.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.5.15-next.5
4
+
5
+ ### Patch Changes
6
+
7
+ - @copilotkit/shared@1.5.15-next.5
8
+
9
+ ## 1.5.15-next.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 7b3141d: - feat(interrupt): support LG interrupt with useLangGraphInterrupt hook
14
+ - chore(interrupt): add e2e test to interrupt functionality
15
+ - feat(interrupt): add support for multiple interrupts and conditions
16
+ - Updated dependencies [7b3141d]
17
+ - @copilotkit/shared@1.5.15-next.4
18
+
3
19
  ## 1.5.15-next.3
4
20
 
5
21
  ### Patch Changes
@@ -86,6 +86,11 @@ interface BaseMessageOutput {
86
86
  status: MessageStatus!
87
87
  }
88
88
 
89
+ interface BaseMetaEvent {
90
+ name: MetaEventName!
91
+ type: String!
92
+ }
93
+
89
94
  interface BaseResponseStatus {
90
95
  code: ResponseStatusCode!
91
96
  }
@@ -106,6 +111,7 @@ enum CopilotRequestType {
106
111
  type CopilotResponse {
107
112
  extensions: ExtensionsResponse
108
113
  messages: [BaseMessageOutput!]!
114
+ metaEvents: [BaseMetaEvent!]
109
115
  runId: String
110
116
  status: ResponseStatus!
111
117
  threadId: String!
@@ -165,6 +171,7 @@ input GenerateCopilotResponseInput {
165
171
  forwardedParameters: ForwardedParametersInput
166
172
  frontend: FrontendInput!
167
173
  messages: [MessageInput!]!
174
+ metaEvents: [MetaEventInput!]
168
175
  metadata: GenerateCopilotResponseMetadataInput!
169
176
  runId: String
170
177
  threadId: String
@@ -193,6 +200,13 @@ The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](
193
200
  """
194
201
  scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
195
202
 
203
+ type LangGraphInterruptEvent implements BaseMetaEvent {
204
+ name: MetaEventName!
205
+ response: String
206
+ type: String!
207
+ value: String!
208
+ }
209
+
196
210
  input LoadAgentStateInput {
197
211
  agentName: String!
198
212
  threadId: String!
@@ -230,6 +244,18 @@ enum MessageStatusCode {
230
244
  Success
231
245
  }
232
246
 
247
+ input MetaEventInput {
248
+ name: MetaEventName!
249
+ response: String
250
+ type: String! = "MetaEvent"
251
+ value: String!
252
+ }
253
+
254
+ """Meta event types"""
255
+ enum MetaEventName {
256
+ LangGraphInterruptEvent
257
+ }
258
+
233
259
  type Mutation {
234
260
  generateCopilotResponse(data: GenerateCopilotResponseInput!, properties: JSONObject): CopilotResponse!
235
261
  }
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-EV3MMEAZ.mjs";
5
+ } from "./chunk-IARJ7RBP.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-44O2JGUY.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
22
22
  export {
23
23
  copilotRuntimeNestEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-WPJHMQDF.mjs.map
25
+ //# sourceMappingURL=chunk-6AZ56PM7.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-EV3MMEAZ.mjs";
5
+ } from "./chunk-IARJ7RBP.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-44O2JGUY.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
22
22
  export {
23
23
  copilotRuntimeNodeExpressEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-KPOZF6JI.mjs.map
25
+ //# sourceMappingURL=chunk-AKPE4ICY.mjs.map