@copilotkit/runtime 1.3.16-mme-reset-chat.10 → 1.3.16-mme-reset-chat.11

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 (46) hide show
  1. package/CHANGELOG.md +21 -43
  2. package/dist/{chunk-2S6JGN2A.mjs → chunk-NJH4ZBXT.mjs} +2 -2
  3. package/dist/{chunk-TBNMKEWV.mjs → chunk-T2MGJXW2.mjs} +2 -2
  4. package/dist/{chunk-3XICZ4K2.mjs → chunk-XR3QOJ47.mjs} +2 -2
  5. package/dist/{chunk-ODOSADGH.mjs → chunk-YILXJQFD.mjs} +78 -57
  6. package/dist/chunk-YILXJQFD.mjs.map +1 -0
  7. package/dist/{copilot-runtime-b9715bd4.d.ts → copilot-runtime-335a610d.d.ts} +8 -8
  8. package/dist/{groq-adapter-dbfba3eb.d.ts → groq-adapter-2f8fd767.d.ts} +1 -1
  9. package/dist/index.d.ts +3 -3
  10. package/dist/index.js +80 -59
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +6 -6
  13. package/dist/{langserve-f00629d2.d.ts → langserve-cc06e76e.d.ts} +1 -0
  14. package/dist/lib/index.d.ts +3 -3
  15. package/dist/lib/index.js +80 -59
  16. package/dist/lib/index.js.map +1 -1
  17. package/dist/lib/index.mjs +6 -6
  18. package/dist/lib/integrations/index.d.ts +3 -3
  19. package/dist/lib/integrations/index.js +12 -11
  20. package/dist/lib/integrations/index.js.map +1 -1
  21. package/dist/lib/integrations/index.mjs +4 -4
  22. package/dist/lib/integrations/nest/index.d.ts +2 -2
  23. package/dist/lib/integrations/nest/index.js +12 -11
  24. package/dist/lib/integrations/nest/index.js.map +1 -1
  25. package/dist/lib/integrations/nest/index.mjs +2 -2
  26. package/dist/lib/integrations/node-express/index.d.ts +2 -2
  27. package/dist/lib/integrations/node-express/index.js +12 -11
  28. package/dist/lib/integrations/node-express/index.js.map +1 -1
  29. package/dist/lib/integrations/node-express/index.mjs +2 -2
  30. package/dist/lib/integrations/node-http/index.d.ts +2 -2
  31. package/dist/lib/integrations/node-http/index.js +12 -11
  32. package/dist/lib/integrations/node-http/index.js.map +1 -1
  33. package/dist/lib/integrations/node-http/index.mjs +1 -1
  34. package/dist/service-adapters/index.d.ts +3 -3
  35. package/package.json +4 -4
  36. package/src/agents/langgraph/event-source.ts +2 -2
  37. package/src/lib/runtime/copilot-runtime.ts +40 -33
  38. package/src/lib/runtime/remote-action-constructors.ts +7 -7
  39. package/src/lib/runtime/remote-actions.ts +9 -9
  40. package/src/lib/runtime/{remote-lg-cloud-action.ts → remote-lg-action.ts} +34 -31
  41. package/src/lib/telemetry-client.ts +3 -3
  42. package/src/service-adapters/events.ts +13 -1
  43. package/dist/chunk-ODOSADGH.mjs.map +0 -1
  44. /package/dist/{chunk-2S6JGN2A.mjs.map → chunk-NJH4ZBXT.mjs.map} +0 -0
  45. /package/dist/{chunk-TBNMKEWV.mjs.map → chunk-T2MGJXW2.mjs.map} +0 -0
  46. /package/dist/{chunk-3XICZ4K2.mjs.map → chunk-XR3QOJ47.mjs.map} +0 -0
@@ -3,13 +3,13 @@ import {
3
3
  config,
4
4
  copilotRuntimeNextJSAppRouterEndpoint,
5
5
  copilotRuntimeNextJSPagesRouterEndpoint
6
- } from "../chunk-3XICZ4K2.mjs";
6
+ } from "../chunk-XR3QOJ47.mjs";
7
7
  import {
8
8
  copilotRuntimeNestEndpoint
9
- } from "../chunk-TBNMKEWV.mjs";
9
+ } from "../chunk-T2MGJXW2.mjs";
10
10
  import {
11
11
  copilotRuntimeNodeExpressEndpoint
12
- } from "../chunk-2S6JGN2A.mjs";
12
+ } from "../chunk-NJH4ZBXT.mjs";
13
13
  import {
14
14
  CopilotRuntime,
15
15
  buildSchema,
@@ -18,9 +18,9 @@ import {
18
18
  createContext,
19
19
  flattenToolCallsNoDuplicates,
20
20
  getCommonConfig,
21
- langGraphCloudEndpoint,
21
+ langGraphPlatformEndpoint,
22
22
  resolveEndpointType
23
- } from "../chunk-ODOSADGH.mjs";
23
+ } from "../chunk-YILXJQFD.mjs";
24
24
  import {
25
25
  GoogleGenerativeAIAdapter,
26
26
  GroqAdapter,
@@ -52,7 +52,7 @@ export {
52
52
  createContext,
53
53
  flattenToolCallsNoDuplicates,
54
54
  getCommonConfig,
55
- langGraphCloudEndpoint,
55
+ langGraphPlatformEndpoint,
56
56
  resolveEndpointType
57
57
  };
58
58
  //# sourceMappingURL=index.mjs.map
@@ -1,12 +1,12 @@
1
- import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-b9715bd4.js';
2
- export { h as CommonConfig, b as CopilotRequestContextProperties, g as buildSchema, e as createContext, i as getCommonConfig } from '../../copilot-runtime-b9715bd4.js';
1
+ import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-335a610d.js';
2
+ export { h as CommonConfig, b as CopilotRequestContextProperties, g as buildSchema, e as createContext, i as getCommonConfig } from '../../copilot-runtime-335a610d.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';
6
6
  export { copilotRuntimeNodeExpressEndpoint } from './node-express/index.js';
7
7
  export { copilotRuntimeNestEndpoint } from './nest/index.js';
8
8
  import '@copilotkit/shared';
9
- import '../../langserve-f00629d2.js';
9
+ import '../../langserve-cc06e76e.js';
10
10
  import '../../index-83ee522f.js';
11
11
  import '../../graphql/types/base/index.js';
12
12
  import 'rxjs';
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.3.16-mme-reset-chat.10",
47
+ version: "1.3.16-mme-reset-chat.11",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -1185,6 +1185,7 @@ CopilotResponse = _ts_decorate13([
1185
1185
  var import_graphql_yoga = require("graphql-yoga");
1186
1186
 
1187
1187
  // src/service-adapters/events.ts
1188
+ var import_shared3 = require("@copilotkit/shared");
1188
1189
  var import_rxjs2 = require("rxjs");
1189
1190
 
1190
1191
  // src/lib/telemetry-client.ts
@@ -1194,7 +1195,7 @@ var import_shared2 = require("@copilotkit/shared");
1194
1195
  var EndpointType;
1195
1196
  (function(EndpointType2) {
1196
1197
  EndpointType2["CopilotKit"] = "copilotKit";
1197
- EndpointType2["LangGraphCloud"] = "langgraph-cloud";
1198
+ EndpointType2["LangGraphPlatform"] = "langgraph-platform";
1198
1199
  })(EndpointType || (EndpointType = {}));
1199
1200
 
1200
1201
  // src/lib/telemetry-client.ts
@@ -1258,7 +1259,7 @@ var import_rxjs = require("rxjs");
1258
1259
  function resolveEndpointType(endpoint) {
1259
1260
  if (!endpoint.type) {
1260
1261
  if ("langsmithApiKey" in endpoint && "deploymentUrl" in endpoint && "agents" in endpoint) {
1261
- return EndpointType.LangGraphCloud;
1262
+ return EndpointType.LangGraphPlatform;
1262
1263
  } else {
1263
1264
  return EndpointType.CopilotKit;
1264
1265
  }
@@ -1288,7 +1289,7 @@ function getRuntimeInstanceTelemetryInfo(runtime) {
1288
1289
  ]
1289
1290
  };
1290
1291
  }
1291
- if (endpointType === EndpointType.LangGraphCloud) {
1292
+ if (endpointType === EndpointType.LangGraphPlatform) {
1292
1293
  const ep = endpoint;
1293
1294
  info = {
1294
1295
  ...info,
@@ -1365,7 +1366,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
1365
1366
  __name(UnknownErrorResponse, "UnknownErrorResponse");
1366
1367
 
1367
1368
  // src/graphql/resolvers/copilot.resolver.ts
1368
- var import_shared3 = require("@copilotkit/shared");
1369
+ var import_shared4 = require("@copilotkit/shared");
1369
1370
  function _ts_decorate14(decorators, target, key, desc) {
1370
1371
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1371
1372
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
@@ -1482,7 +1483,7 @@ var CopilotResolver = class {
1482
1483
  rejectOutputMessagesPromise = reject;
1483
1484
  });
1484
1485
  logger2.debug("Processing");
1485
- const { eventSource, threadId = (0, import_shared3.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
1486
+ const { eventSource, threadId = (0, import_shared4.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
1486
1487
  serviceAdapter,
1487
1488
  messages: data.messages,
1488
1489
  actions: data.frontend.actions,
@@ -1527,7 +1528,7 @@ var CopilotResolver = class {
1527
1528
  });
1528
1529
  outputMessages = [
1529
1530
  (0, import_class_transformer.plainToInstance)(TextMessage, {
1530
- id: (0, import_shared3.randomId)(),
1531
+ id: (0, import_shared4.randomId)(),
1531
1532
  createdAt: /* @__PURE__ */ new Date(),
1532
1533
  content: result.reason,
1533
1534
  role: MessageRole.assistant
@@ -1690,7 +1691,7 @@ var CopilotResolver = class {
1690
1691
  result: event.result
1691
1692
  }, "Action execution result event received");
1692
1693
  pushMessage({
1693
- id: (0, import_shared3.randomId)(),
1694
+ id: (0, import_shared4.randomId)(),
1694
1695
  status: new SuccessMessageStatus(),
1695
1696
  createdAt: /* @__PURE__ */ new Date(),
1696
1697
  actionExecutionId: event.actionExecutionId,
@@ -1698,7 +1699,7 @@ var CopilotResolver = class {
1698
1699
  result: event.result
1699
1700
  });
1700
1701
  outputMessages.push((0, import_class_transformer.plainToInstance)(ResultMessage, {
1701
- id: (0, import_shared3.randomId)(),
1702
+ id: (0, import_shared4.randomId)(),
1702
1703
  createdAt: /* @__PURE__ */ new Date(),
1703
1704
  actionExecutionId: event.actionExecutionId,
1704
1705
  actionName: event.actionName,
@@ -1710,7 +1711,7 @@ var CopilotResolver = class {
1710
1711
  event
1711
1712
  }, "Agent message event received");
1712
1713
  pushMessage({
1713
- id: (0, import_shared3.randomId)(),
1714
+ id: (0, import_shared4.randomId)(),
1714
1715
  status: new SuccessMessageStatus(),
1715
1716
  threadId: event.threadId,
1716
1717
  agentName: event.agentName,
@@ -1723,7 +1724,7 @@ var CopilotResolver = class {
1723
1724
  createdAt: /* @__PURE__ */ new Date()
1724
1725
  });
1725
1726
  outputMessages.push((0, import_class_transformer.plainToInstance)(AgentStateMessage, {
1726
- id: (0, import_shared3.randomId)(),
1727
+ id: (0, import_shared4.randomId)(),
1727
1728
  threadId: event.threadId,
1728
1729
  agentName: event.agentName,
1729
1730
  nodeName: event.nodeName,