@copilotkit/runtime 1.8.14-next.0 → 1.8.14-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 +14 -0
  2. package/dist/{chunk-OYTCEK6Z.mjs → chunk-5FDI6FH6.mjs} +2 -2
  3. package/dist/{chunk-USZSBTBI.mjs → chunk-MZSUT6FW.mjs} +2 -2
  4. package/dist/{chunk-JCPSSHWJ.mjs → chunk-RM7LK6G2.mjs} +2 -2
  5. package/dist/{chunk-OEMQGRLR.mjs → chunk-YLRGZOEQ.mjs} +9 -10
  6. package/dist/chunk-YLRGZOEQ.mjs.map +1 -0
  7. package/dist/index.js +8 -9
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +4 -4
  10. package/dist/lib/index.js +8 -9
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/index.mjs +4 -4
  13. package/dist/lib/integrations/index.js +1 -1
  14. package/dist/lib/integrations/index.js.map +1 -1
  15. package/dist/lib/integrations/index.mjs +4 -4
  16. package/dist/lib/integrations/nest/index.js +1 -1
  17. package/dist/lib/integrations/nest/index.js.map +1 -1
  18. package/dist/lib/integrations/nest/index.mjs +2 -2
  19. package/dist/lib/integrations/node-express/index.js +1 -1
  20. package/dist/lib/integrations/node-express/index.js.map +1 -1
  21. package/dist/lib/integrations/node-express/index.mjs +2 -2
  22. package/dist/lib/integrations/node-http/index.js +1 -1
  23. package/dist/lib/integrations/node-http/index.js.map +1 -1
  24. package/dist/lib/integrations/node-http/index.mjs +1 -1
  25. package/package.json +2 -2
  26. package/src/lib/runtime/{agentwire-action.ts → agui-action.ts} +8 -8
  27. package/src/lib/runtime/copilot-runtime.ts +10 -2
  28. package/src/lib/runtime/remote-actions.ts +2 -2
  29. package/dist/chunk-OEMQGRLR.mjs.map +0 -1
  30. /package/dist/{chunk-OYTCEK6Z.mjs.map → chunk-5FDI6FH6.mjs.map} +0 -0
  31. /package/dist/{chunk-USZSBTBI.mjs.map → chunk-MZSUT6FW.mjs.map} +0 -0
  32. /package/dist/{chunk-JCPSSHWJ.mjs.map → chunk-RM7LK6G2.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.8.14-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 1af7333: - docs: updates ag-ui agent interface
8
+ - @copilotkit/shared@1.8.14-next.2
9
+
10
+ ## 1.8.14-next.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [34a78d8]
15
+ - @copilotkit/shared@1.8.14-next.1
16
+
3
17
  ## 1.8.14-next.0
4
18
 
5
19
  ### Patch Changes
@@ -2,7 +2,7 @@ import {
2
2
  getCommonConfig,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-OEMQGRLR.mjs";
5
+ } from "./chunk-YLRGZOEQ.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-FHD4JECV.mjs";
@@ -77,4 +77,4 @@ export {
77
77
  config,
78
78
  copilotRuntimeNextJSPagesRouterEndpoint
79
79
  };
80
- //# sourceMappingURL=chunk-OYTCEK6Z.mjs.map
80
+ //# sourceMappingURL=chunk-5FDI6FH6.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-OEMQGRLR.mjs";
5
+ } from "./chunk-YLRGZOEQ.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-FHD4JECV.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
22
22
  export {
23
23
  copilotRuntimeNodeExpressEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-USZSBTBI.mjs.map
25
+ //# sourceMappingURL=chunk-MZSUT6FW.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-OEMQGRLR.mjs";
5
+ } from "./chunk-YLRGZOEQ.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-FHD4JECV.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
22
22
  export {
23
23
  copilotRuntimeNestEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-JCPSSHWJ.mjs.map
25
+ //# sourceMappingURL=chunk-RM7LK6G2.mjs.map
@@ -40,7 +40,7 @@ var require_package = __commonJS({
40
40
  publishConfig: {
41
41
  access: "public"
42
42
  },
43
- version: "1.8.14-next.0",
43
+ version: "1.8.14-next.2",
44
44
  sideEffects: false,
45
45
  main: "./dist/index.js",
46
46
  module: "./dist/index.mjs",
@@ -2696,9 +2696,9 @@ __name(createHeaders, "createHeaders");
2696
2696
  // src/lib/runtime/remote-actions.ts
2697
2697
  import { CopilotKitLowLevelError as CopilotKitLowLevelError2, ResolvedCopilotKitError as ResolvedCopilotKitError2, CopilotKitError as CopilotKitError2 } from "@copilotkit/shared";
2698
2698
 
2699
- // src/lib/runtime/agentwire-action.ts
2699
+ // src/lib/runtime/agui-action.ts
2700
2700
  import { parseJson as parseJson3 } from "@copilotkit/shared";
2701
- function constructAgentWireRemoteAction({ logger: logger2, messages, agentStates, agent }) {
2701
+ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent }) {
2702
2702
  const action = {
2703
2703
  name: agent.agentId,
2704
2704
  description: agent.description,
@@ -2709,7 +2709,7 @@ function constructAgentWireRemoteAction({ logger: logger2, messages, agentStates
2709
2709
  logger2.debug({
2710
2710
  actionName: agent.agentId
2711
2711
  }, "Executing remote agent");
2712
- const agentWireMessages = convertMessagesToAgentWire(messages);
2712
+ const agentWireMessages = convertMessagesToAGUIMessage(messages);
2713
2713
  agent.messages = agentWireMessages;
2714
2714
  agent.threadId = threadId;
2715
2715
  telemetry_client_default.capture("oss.runtime.remote_action_executed", {
@@ -2741,8 +2741,8 @@ function constructAgentWireRemoteAction({ logger: logger2, messages, agentStates
2741
2741
  action
2742
2742
  ];
2743
2743
  }
2744
- __name(constructAgentWireRemoteAction, "constructAgentWireRemoteAction");
2745
- function convertMessagesToAgentWire(messages) {
2744
+ __name(constructAGUIRemoteAction, "constructAGUIRemoteAction");
2745
+ function convertMessagesToAGUIMessage(messages) {
2746
2746
  const result = [];
2747
2747
  for (const message of messages) {
2748
2748
  if (message.isTextMessage()) {
@@ -2786,7 +2786,7 @@ function convertMessagesToAgentWire(messages) {
2786
2786
  }
2787
2787
  return result;
2788
2788
  }
2789
- __name(convertMessagesToAgentWire, "convertMessagesToAgentWire");
2789
+ __name(convertMessagesToAGUIMessage, "convertMessagesToAGUIMessage");
2790
2790
 
2791
2791
  // src/lib/runtime/remote-actions.ts
2792
2792
  var EndpointType;
@@ -2902,7 +2902,7 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
2902
2902
  } else if (agent.agentId === void 0) {
2903
2903
  agent.agentId = key;
2904
2904
  }
2905
- result.push(constructAgentWireRemoteAction({
2905
+ result.push(constructAGUIRemoteAction({
2906
2906
  logger: logger2,
2907
2907
  messages,
2908
2908
  agentStates,
@@ -3186,7 +3186,6 @@ var CopilotRuntime = class {
3186
3186
  }
3187
3187
  return newMessages;
3188
3188
  }
3189
- // --- MCP Instruction Injection Method ---
3190
3189
  async processRuntimeRequest(request) {
3191
3190
  var _a, _b, _c, _d, _e;
3192
3191
  const { serviceAdapter, messages: rawMessages, actions: clientSideActionsInput, threadId, runId, outputMessagesPromise, graphqlContext, forwardedParameters, url, extensions, agentSession, agentStates, publicApiKey } = request;
@@ -5080,4 +5079,4 @@ export {
5080
5079
  getCommonConfig,
5081
5080
  copilotRuntimeNodeHttpEndpoint
5082
5081
  };
5083
- //# sourceMappingURL=chunk-OEMQGRLR.mjs.map
5082
+ //# sourceMappingURL=chunk-YLRGZOEQ.mjs.map