@copilotkit/runtime 1.10.0-next.8 → 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.
- package/CHANGELOG.md +55 -0
- package/dist/{chunk-TCZ4SLBS.mjs → chunk-IP22MV6G.mjs} +2 -2
- package/dist/{chunk-5T75KY3E.mjs → chunk-ODQCOZ55.mjs} +2 -2
- package/dist/{chunk-ZER62NUN.mjs → chunk-QBCAKCOM.mjs} +2 -2
- package/dist/{chunk-6QPAMPDT.mjs → chunk-RODRL3FY.mjs} +35 -29
- package/dist/chunk-RODRL3FY.mjs.map +1 -0
- package/dist/{chunk-QHHLM3PY.mjs → chunk-SNCAMGEK.mjs} +2 -2
- package/dist/index.js +40 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/lib/index.js +40 -34
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.js +2 -2
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.js +2 -2
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +3 -3
- package/dist/lib/integrations/node-express/index.js +2 -2
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +3 -3
- package/dist/lib/integrations/node-http/index.js +2 -2
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/package.json +3 -3
- package/src/lib/runtime/agui-action.ts +15 -6
- package/dist/chunk-6QPAMPDT.mjs.map +0 -1
- /package/dist/{chunk-TCZ4SLBS.mjs.map → chunk-IP22MV6G.mjs.map} +0 -0
- /package/dist/{chunk-5T75KY3E.mjs.map → chunk-ODQCOZ55.mjs.map} +0 -0
- /package/dist/{chunk-ZER62NUN.mjs.map → chunk-QBCAKCOM.mjs.map} +0 -0
- /package/dist/{chunk-QHHLM3PY.mjs.map → chunk-SNCAMGEK.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-RODRL3FY.mjs";
|
|
4
4
|
import "../../../chunk-SHBDMA63.mjs";
|
|
5
|
-
import "../../../chunk-XWBDEXDA.mjs";
|
|
6
5
|
import "../../../chunk-F7IANE7Z.mjs";
|
|
6
|
+
import "../../../chunk-XWBDEXDA.mjs";
|
|
7
7
|
import "../../../chunk-AMUJQ6IR.mjs";
|
|
8
8
|
import "../../../chunk-2OZAGFV3.mjs";
|
|
9
9
|
import "../../../chunk-FHD4JECV.mjs";
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.10.0
|
|
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.
|
|
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
|
|
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
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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];
|