@copilotkit/runtime 1.10.0-next.9 → 1.10.0

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 +49 -0
  2. package/dist/{chunk-YU35HUT7.mjs → chunk-IP22MV6G.mjs} +2 -2
  3. package/dist/{chunk-253F6PVG.mjs → chunk-ODQCOZ55.mjs} +2 -2
  4. package/dist/{chunk-4GZZVKJJ.mjs → chunk-QBCAKCOM.mjs} +2 -2
  5. package/dist/{chunk-UWHAKVQV.mjs → chunk-RODRL3FY.mjs} +30 -24
  6. package/dist/chunk-RODRL3FY.mjs.map +1 -0
  7. package/dist/{chunk-N3L3KQIA.mjs → chunk-SNCAMGEK.mjs} +2 -2
  8. package/dist/index.js +40 -34
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +40 -34
  12. package/dist/lib/index.js.map +1 -1
  13. package/dist/lib/index.mjs +5 -5
  14. package/dist/lib/integrations/index.js +2 -2
  15. package/dist/lib/integrations/index.js.map +1 -1
  16. package/dist/lib/integrations/index.mjs +4 -4
  17. package/dist/lib/integrations/nest/index.js +2 -2
  18. package/dist/lib/integrations/nest/index.js.map +1 -1
  19. package/dist/lib/integrations/nest/index.mjs +2 -2
  20. package/dist/lib/integrations/node-express/index.js +2 -2
  21. package/dist/lib/integrations/node-express/index.js.map +1 -1
  22. package/dist/lib/integrations/node-express/index.mjs +2 -2
  23. package/dist/lib/integrations/node-http/index.js +2 -2
  24. package/dist/lib/integrations/node-http/index.js.map +1 -1
  25. package/dist/lib/integrations/node-http/index.mjs +1 -1
  26. package/package.json +3 -3
  27. package/src/lib/runtime/agui-action.ts +15 -6
  28. package/dist/chunk-UWHAKVQV.mjs.map +0 -1
  29. /package/dist/{chunk-YU35HUT7.mjs.map → chunk-IP22MV6G.mjs.map} +0 -0
  30. /package/dist/{chunk-253F6PVG.mjs.map → chunk-ODQCOZ55.mjs.map} +0 -0
  31. /package/dist/{chunk-4GZZVKJJ.mjs.map → chunk-QBCAKCOM.mjs.map} +0 -0
  32. /package/dist/{chunk-N3L3KQIA.mjs.map → chunk-SNCAMGEK.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  copilotRuntimeNodeHttpEndpoint
3
- } from "../../../chunk-UWHAKVQV.mjs";
3
+ } from "../../../chunk-RODRL3FY.mjs";
4
4
  import "../../../chunk-SHBDMA63.mjs";
5
5
  import "../../../chunk-F7IANE7Z.mjs";
6
6
  import "../../../chunk-XWBDEXDA.mjs";
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.10.0-next.9",
12
+ "version": "1.10.0",
13
13
  "sideEffects": false,
14
14
  "main": "./dist/index.js",
15
15
  "module": "./dist/index.mjs",
@@ -40,7 +40,7 @@
40
40
  "@ag-ui/client": "0.0.35",
41
41
  "@ag-ui/core": "0.0.35",
42
42
  "@ag-ui/encoder": "0.0.35",
43
- "@ag-ui/langgraph": "0.0.7",
43
+ "@ag-ui/langgraph": "0.0.8",
44
44
  "@ag-ui/proto": "0.0.35",
45
45
  "@anthropic-ai/sdk": "^0.57.0",
46
46
  "@graphql-yoga/plugin-defer-stream": "^3.3.1",
@@ -67,7 +67,7 @@
67
67
  "rxjs": "7.8.1",
68
68
  "type-graphql": "2.0.0-rc.1",
69
69
  "zod": "^3.23.3",
70
- "@copilotkit/shared": "1.10.0-next.9"
70
+ "@copilotkit/shared": "1.10.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@ag-ui/client": ">=0.0.34",
@@ -1,5 +1,5 @@
1
1
  import { Logger } from "pino";
2
- import { Observable } from "rxjs";
2
+ import { catchError, Observable } from "rxjs";
3
3
  import { AgentStateInput } from "../../graphql/inputs/agent-state.input";
4
4
  import { Message } from "../../graphql/types/converted";
5
5
  import { RuntimeEvent } from "../../service-adapters/events";
@@ -13,7 +13,7 @@ import {
13
13
  } from "@ag-ui/client";
14
14
 
15
15
  import { AbstractAgent } from "@ag-ui/client";
16
- import { parseJson } from "@copilotkit/shared";
16
+ import { CopilotKitError, CopilotKitErrorCode, parseJson } from "@copilotkit/shared";
17
17
  import { MetaEventInput } from "../../graphql/inputs/meta-event.input";
18
18
  import { GraphQLContext } from "../integrations/shared";
19
19
 
@@ -85,10 +85,19 @@ export function constructAGUIRemoteAction({
85
85
  ...graphqlContext.properties,
86
86
  };
87
87
 
88
- return agent.legacy_to_be_removed_runAgentBridged({
89
- tools,
90
- forwardedProps,
91
- }) as Observable<RuntimeEvent>;
88
+ return (
89
+ agent.legacy_to_be_removed_runAgentBridged({
90
+ tools,
91
+ forwardedProps,
92
+ }) as Observable<RuntimeEvent>
93
+ ).pipe(
94
+ catchError((err) => {
95
+ throw new CopilotKitError({
96
+ message: err.message,
97
+ code: CopilotKitErrorCode.UNKNOWN,
98
+ });
99
+ }),
100
+ );
92
101
  },
93
102
  };
94
103
  return [action];