@copilotkit/runtime 1.5.12-next.5 → 1.5.12-next.6

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 (39) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{chunk-QDMAQO2C.mjs → chunk-BKIGYRXE.mjs} +2 -2
  3. package/dist/{chunk-MFDRA3BJ.mjs → chunk-ON4AESON.mjs} +125 -77
  4. package/dist/chunk-ON4AESON.mjs.map +1 -0
  5. package/dist/{chunk-NORCONUM.mjs → chunk-XM2VJFL6.mjs} +2 -2
  6. package/dist/{chunk-XRW7ZSWJ.mjs → chunk-YGXAWYRB.mjs} +2 -2
  7. package/dist/{copilot-runtime-1a224a0f.d.ts → copilot-runtime-da917bd5.d.ts} +3 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +136 -88
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +4 -4
  12. package/dist/lib/index.d.ts +1 -1
  13. package/dist/lib/index.js +136 -88
  14. package/dist/lib/index.js.map +1 -1
  15. package/dist/lib/index.mjs +4 -4
  16. package/dist/lib/integrations/index.d.ts +2 -2
  17. package/dist/lib/integrations/index.js +12 -10
  18. package/dist/lib/integrations/index.js.map +1 -1
  19. package/dist/lib/integrations/index.mjs +4 -4
  20. package/dist/lib/integrations/nest/index.d.ts +1 -1
  21. package/dist/lib/integrations/nest/index.js +12 -10
  22. package/dist/lib/integrations/nest/index.js.map +1 -1
  23. package/dist/lib/integrations/nest/index.mjs +2 -2
  24. package/dist/lib/integrations/node-express/index.d.ts +1 -1
  25. package/dist/lib/integrations/node-express/index.js +12 -10
  26. package/dist/lib/integrations/node-express/index.js.map +1 -1
  27. package/dist/lib/integrations/node-express/index.mjs +2 -2
  28. package/dist/lib/integrations/node-http/index.d.ts +1 -1
  29. package/dist/lib/integrations/node-http/index.js +12 -10
  30. package/dist/lib/integrations/node-http/index.js.map +1 -1
  31. package/dist/lib/integrations/node-http/index.mjs +1 -1
  32. package/package.json +2 -2
  33. package/src/lib/runtime/copilot-runtime.ts +61 -27
  34. package/src/lib/runtime/remote-action-constructors.ts +42 -33
  35. package/src/lib/runtime/remote-actions.ts +12 -7
  36. package/dist/chunk-MFDRA3BJ.mjs.map +0 -1
  37. /package/dist/{chunk-QDMAQO2C.mjs.map → chunk-BKIGYRXE.mjs.map} +0 -0
  38. /package/dist/{chunk-NORCONUM.mjs.map → chunk-XM2VJFL6.mjs.map} +0 -0
  39. /package/dist/{chunk-XRW7ZSWJ.mjs.map → chunk-YGXAWYRB.mjs.map} +0 -0
@@ -3,13 +3,13 @@ import {
3
3
  config,
4
4
  copilotRuntimeNextJSAppRouterEndpoint,
5
5
  copilotRuntimeNextJSPagesRouterEndpoint
6
- } from "../chunk-QDMAQO2C.mjs";
6
+ } from "../chunk-BKIGYRXE.mjs";
7
7
  import {
8
8
  copilotRuntimeNestEndpoint
9
- } from "../chunk-XRW7ZSWJ.mjs";
9
+ } from "../chunk-YGXAWYRB.mjs";
10
10
  import {
11
11
  copilotRuntimeNodeExpressEndpoint
12
- } from "../chunk-NORCONUM.mjs";
12
+ } from "../chunk-XM2VJFL6.mjs";
13
13
  import {
14
14
  CopilotRuntime,
15
15
  buildSchema,
@@ -20,7 +20,7 @@ import {
20
20
  getCommonConfig,
21
21
  langGraphPlatformEndpoint,
22
22
  resolveEndpointType
23
- } from "../chunk-MFDRA3BJ.mjs";
23
+ } from "../chunk-ON4AESON.mjs";
24
24
  import {
25
25
  GoogleGenerativeAIAdapter,
26
26
  GroqAdapter,
@@ -1,5 +1,5 @@
1
- import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-1a224a0f.js';
2
- export { h as CommonConfig, b as CopilotRequestContextProperties, g as buildSchema, e as createContext, i as getCommonConfig } from '../../copilot-runtime-1a224a0f.js';
1
+ import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-da917bd5.js';
2
+ export { h as CommonConfig, b as CopilotRequestContextProperties, g as buildSchema, e as createContext, i as getCommonConfig } from '../../copilot-runtime-da917bd5.js';
3
3
  import * as graphql_yoga from 'graphql-yoga';
4
4
  import { YogaServerInstance } from 'graphql-yoga';
5
5
  export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.5.12-next.5",
47
+ version: "1.5.12-next.6",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -1240,13 +1240,14 @@ CopilotResponse = _ts_decorate13([
1240
1240
  var import_graphql_yoga = require("graphql-yoga");
1241
1241
 
1242
1242
  // src/service-adapters/events.ts
1243
- var import_shared3 = require("@copilotkit/shared");
1243
+ var import_shared4 = require("@copilotkit/shared");
1244
1244
  var import_rxjs2 = require("rxjs");
1245
1245
 
1246
1246
  // src/lib/telemetry-client.ts
1247
- var import_shared2 = require("@copilotkit/shared");
1247
+ var import_shared3 = require("@copilotkit/shared");
1248
1248
 
1249
1249
  // src/lib/runtime/remote-actions.ts
1250
+ var import_shared = require("@copilotkit/shared");
1250
1251
  var EndpointType;
1251
1252
  (function(EndpointType2) {
1252
1253
  EndpointType2["CopilotKit"] = "copilotKit";
@@ -1257,7 +1258,8 @@ var EndpointType;
1257
1258
  var import_node_crypto = require("crypto");
1258
1259
 
1259
1260
  // src/lib/runtime/copilot-runtime.ts
1260
- var import_shared = require("@copilotkit/shared");
1261
+ var import_shared2 = require("@copilotkit/shared");
1262
+ var import_langgraph_sdk = require("@langchain/langgraph-sdk");
1261
1263
 
1262
1264
  // src/graphql/types/converted/index.ts
1263
1265
  var Message = class extends BaseMessageInput {
@@ -1389,7 +1391,7 @@ __name(resolveEndpointType, "resolveEndpointType");
1389
1391
 
1390
1392
  // src/lib/telemetry-client.ts
1391
1393
  var packageJson = require_package();
1392
- var telemetryClient = new import_shared2.TelemetryClient({
1394
+ var telemetryClient = new import_shared3.TelemetryClient({
1393
1395
  packageName: packageJson.name,
1394
1396
  packageVersion: packageJson.version
1395
1397
  });
@@ -1486,7 +1488,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
1486
1488
  __name(UnknownErrorResponse, "UnknownErrorResponse");
1487
1489
 
1488
1490
  // src/graphql/resolvers/copilot.resolver.ts
1489
- var import_shared4 = require("@copilotkit/shared");
1491
+ var import_shared5 = require("@copilotkit/shared");
1490
1492
 
1491
1493
  // src/graphql/types/agents-response.type.ts
1492
1494
  var import_type_graphql15 = require("type-graphql");
@@ -1669,7 +1671,7 @@ var CopilotResolver = class {
1669
1671
  rejectOutputMessagesPromise = reject;
1670
1672
  });
1671
1673
  logger2.debug("Processing");
1672
- const { eventSource, threadId = (0, import_shared4.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
1674
+ const { eventSource, threadId = (0, import_shared5.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
1673
1675
  serviceAdapter,
1674
1676
  messages: data.messages,
1675
1677
  actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
@@ -1714,7 +1716,7 @@ var CopilotResolver = class {
1714
1716
  });
1715
1717
  outputMessages = [
1716
1718
  (0, import_class_transformer2.plainToInstance)(TextMessage, {
1717
- id: (0, import_shared4.randomId)(),
1719
+ id: (0, import_shared5.randomId)(),
1718
1720
  createdAt: /* @__PURE__ */ new Date(),
1719
1721
  content: result.reason,
1720
1722
  role: MessageRole.assistant
@@ -1905,7 +1907,7 @@ var CopilotResolver = class {
1905
1907
  event
1906
1908
  }, "Agent message event received");
1907
1909
  pushMessage({
1908
- id: (0, import_shared4.randomId)(),
1910
+ id: (0, import_shared5.randomId)(),
1909
1911
  status: new SuccessMessageStatus(),
1910
1912
  threadId: event.threadId,
1911
1913
  agentName: event.agentName,
@@ -1918,7 +1920,7 @@ var CopilotResolver = class {
1918
1920
  createdAt: /* @__PURE__ */ new Date()
1919
1921
  });
1920
1922
  outputMessages.push((0, import_class_transformer2.plainToInstance)(AgentStateMessage, {
1921
- id: (0, import_shared4.randomId)(),
1923
+ id: (0, import_shared5.randomId)(),
1922
1924
  threadId: event.threadId,
1923
1925
  agentName: event.agentName,
1924
1926
  nodeName: event.nodeName,