@copilotkit/runtime 1.10.5-next.1 → 1.10.5-next.10
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 +61 -0
- package/dist/{chunk-C56AVUZI.mjs → chunk-COGFQ4V4.mjs} +2 -2
- package/dist/{chunk-T4NLPBCY.mjs → chunk-M65Z27MR.mjs} +2 -2
- package/dist/{chunk-FOXQPOXW.mjs → chunk-NFB4H6NT.mjs} +30 -11
- package/dist/chunk-NFB4H6NT.mjs.map +1 -0
- package/dist/{chunk-CX4GADTM.mjs → chunk-NNBTOZO3.mjs} +2 -2
- package/dist/{chunk-H6QUY5ZQ.mjs → chunk-Y5BKTUH2.mjs} +6 -2
- package/dist/{chunk-H6QUY5ZQ.mjs.map → chunk-Y5BKTUH2.mjs.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +33 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +33 -10
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +10 -10
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +10 -10
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +1 -1
- package/dist/lib/integrations/node-express/index.js +10 -10
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +1 -1
- package/dist/lib/integrations/node-http/index.js +10 -10
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/{shared-35015e40.d.ts → shared-0a7346ce.d.ts} +10 -0
- package/package.json +11 -11
- package/src/lib/runtime/agui-action.ts +7 -0
- package/src/lib/runtime/copilot-runtime.ts +25 -0
- package/src/lib/runtime/langgraph/langgraph-agent.ts +1 -0
- package/dist/chunk-FOXQPOXW.mjs.map +0 -1
- /package/dist/{chunk-C56AVUZI.mjs.map → chunk-COGFQ4V4.mjs.map} +0 -0
- /package/dist/{chunk-T4NLPBCY.mjs.map → chunk-M65Z27MR.mjs.map} +0 -0
- /package/dist/{chunk-CX4GADTM.mjs.map → chunk-NNBTOZO3.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.10.5-next.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @copilotkit/shared@1.10.5-next.10
|
|
8
|
+
|
|
9
|
+
## 1.10.5-next.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f199c94: - feat: update agui packages
|
|
14
|
+
- @copilotkit/shared@1.10.5-next.9
|
|
15
|
+
|
|
16
|
+
## 1.10.5-next.8
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- @copilotkit/shared@1.10.5-next.8
|
|
21
|
+
|
|
22
|
+
## 1.10.5-next.7
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- c9e32b0: - fix: upgrade agui langgraph version
|
|
27
|
+
- @copilotkit/shared@1.10.5-next.7
|
|
28
|
+
|
|
29
|
+
## 1.10.5-next.6
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- @copilotkit/shared@1.10.5-next.6
|
|
34
|
+
|
|
35
|
+
## 1.10.5-next.5
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- @copilotkit/shared@1.10.5-next.5
|
|
40
|
+
|
|
41
|
+
## 1.10.5-next.4
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- e730369: - feat: use latest agui langgraph package
|
|
46
|
+
- feat: use latest agui fastapi langgraph package and dependencies
|
|
47
|
+
- @copilotkit/shared@1.10.5-next.4
|
|
48
|
+
|
|
49
|
+
## 1.10.5-next.3
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- 23fe6a1: - chore: publish python sdk using latest agui
|
|
54
|
+
- feat: use latest agui packages
|
|
55
|
+
- @copilotkit/shared@1.10.5-next.3
|
|
56
|
+
|
|
57
|
+
## 1.10.5-next.2
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- 7467f97: - feat: add stop generation callback and call abort agui agent
|
|
62
|
+
- @copilotkit/shared@1.10.5-next.2
|
|
63
|
+
|
|
3
64
|
## 1.10.5-next.1
|
|
4
65
|
|
|
5
66
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NFB4H6NT.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-
|
|
25
|
+
//# sourceMappingURL=chunk-COGFQ4V4.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NFB4H6NT.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-
|
|
25
|
+
//# sourceMappingURL=chunk-M65Z27MR.mjs.map
|
|
@@ -40,7 +40,7 @@ var require_package = __commonJS({
|
|
|
40
40
|
publishConfig: {
|
|
41
41
|
access: "public"
|
|
42
42
|
},
|
|
43
|
-
version: "1.10.5-next.
|
|
43
|
+
version: "1.10.5-next.10",
|
|
44
44
|
sideEffects: false,
|
|
45
45
|
main: "./dist/index.js",
|
|
46
46
|
module: "./dist/index.mjs",
|
|
@@ -78,11 +78,11 @@ var require_package = __commonJS({
|
|
|
78
78
|
"zod-to-json-schema": "^3.23.5"
|
|
79
79
|
},
|
|
80
80
|
dependencies: {
|
|
81
|
-
"@ag-ui/client": "^0.0.
|
|
82
|
-
"@ag-ui/core": "^0.0.
|
|
83
|
-
"@ag-ui/encoder": "^0.0.
|
|
84
|
-
"@ag-ui/langgraph": "^0.0.
|
|
85
|
-
"@ag-ui/proto": "^0.0.
|
|
81
|
+
"@ag-ui/client": "^0.0.39",
|
|
82
|
+
"@ag-ui/core": "^0.0.39",
|
|
83
|
+
"@ag-ui/encoder": "^0.0.39",
|
|
84
|
+
"@ag-ui/langgraph": "^0.0.17",
|
|
85
|
+
"@ag-ui/proto": "^0.0.39",
|
|
86
86
|
"@anthropic-ai/sdk": "^0.57.0",
|
|
87
87
|
"@copilotkit/shared": "workspace:*",
|
|
88
88
|
"@graphql-yoga/plugin-defer-stream": "^3.3.1",
|
|
@@ -111,10 +111,10 @@ var require_package = __commonJS({
|
|
|
111
111
|
zod: "^3.23.3"
|
|
112
112
|
},
|
|
113
113
|
peerDependencies: {
|
|
114
|
-
"@ag-ui/client": ">=0.0.
|
|
115
|
-
"@ag-ui/core": ">=0.0.
|
|
116
|
-
"@ag-ui/encoder": ">=0.0.
|
|
117
|
-
"@ag-ui/proto": ">=0.0.
|
|
114
|
+
"@ag-ui/client": ">=0.0.39",
|
|
115
|
+
"@ag-ui/core": ">=0.0.39",
|
|
116
|
+
"@ag-ui/encoder": ">=0.0.39",
|
|
117
|
+
"@ag-ui/proto": ">=0.0.39"
|
|
118
118
|
},
|
|
119
119
|
keywords: [
|
|
120
120
|
"copilotkit",
|
|
@@ -2821,6 +2821,7 @@ var CopilotRuntime = class {
|
|
|
2821
2821
|
langserve = [];
|
|
2822
2822
|
onBeforeRequest;
|
|
2823
2823
|
onAfterRequest;
|
|
2824
|
+
onStopGeneration;
|
|
2824
2825
|
delegateAgentProcessingToServiceAdapter;
|
|
2825
2826
|
observability;
|
|
2826
2827
|
availableAgents;
|
|
@@ -2848,6 +2849,7 @@ var CopilotRuntime = class {
|
|
|
2848
2849
|
this.remoteEndpointDefinitions = (params == null ? void 0 : params.remoteEndpoints) ?? (params == null ? void 0 : params.remoteActions) ?? [];
|
|
2849
2850
|
this.onBeforeRequest = (_a = params == null ? void 0 : params.middleware) == null ? void 0 : _a.onBeforeRequest;
|
|
2850
2851
|
this.onAfterRequest = (_b = params == null ? void 0 : params.middleware) == null ? void 0 : _b.onAfterRequest;
|
|
2852
|
+
this.onStopGeneration = params == null ? void 0 : params.onStopGeneration;
|
|
2851
2853
|
this.delegateAgentProcessingToServiceAdapter = (params == null ? void 0 : params.delegateAgentProcessingToServiceAdapter) || false;
|
|
2852
2854
|
this.observability = params == null ? void 0 : params.observability_c;
|
|
2853
2855
|
this.agents = (params == null ? void 0 : params.agents) ?? {};
|
|
@@ -2927,6 +2929,18 @@ var CopilotRuntime = class {
|
|
|
2927
2929
|
async processRuntimeRequest(request) {
|
|
2928
2930
|
var _a, _b, _c, _d, _e;
|
|
2929
2931
|
const { serviceAdapter, messages: rawMessages, actions: clientSideActionsInput, threadId, runId, outputMessagesPromise, graphqlContext, forwardedParameters, url, extensions, agentSession, agentStates, publicApiKey, context } = request;
|
|
2932
|
+
graphqlContext.request.signal.addEventListener("abort", () => {
|
|
2933
|
+
var _a2;
|
|
2934
|
+
return (_a2 = this.onStopGeneration) == null ? void 0 : _a2.call(this, {
|
|
2935
|
+
threadId,
|
|
2936
|
+
runId,
|
|
2937
|
+
url,
|
|
2938
|
+
agentName: agentSession == null ? void 0 : agentSession.agentName,
|
|
2939
|
+
lastMessage: rawMessages[rawMessages.length - 1]
|
|
2940
|
+
});
|
|
2941
|
+
}, {
|
|
2942
|
+
once: true
|
|
2943
|
+
});
|
|
2930
2944
|
const eventSource = new RuntimeEventSource({
|
|
2931
2945
|
errorHandler: async (error, context2) => {
|
|
2932
2946
|
await this.error("error", context2, error, publicApiKey);
|
|
@@ -4429,6 +4443,11 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
4429
4443
|
},
|
|
4430
4444
|
remoteAgentHandler: async ({ actionInputsWithoutAgents, threadId }) => {
|
|
4431
4445
|
var _a;
|
|
4446
|
+
graphqlContext.request.signal.addEventListener("abort", () => {
|
|
4447
|
+
agent.abortRun();
|
|
4448
|
+
}, {
|
|
4449
|
+
once: true
|
|
4450
|
+
});
|
|
4432
4451
|
logger2.debug({
|
|
4433
4452
|
actionName: agent.agentId
|
|
4434
4453
|
}, "Executing remote agent");
|
|
@@ -5995,4 +6014,4 @@ export {
|
|
|
5995
6014
|
getCommonConfig,
|
|
5996
6015
|
copilotRuntimeNodeHttpEndpoint
|
|
5997
6016
|
};
|
|
5998
|
-
//# sourceMappingURL=chunk-
|
|
6017
|
+
//# sourceMappingURL=chunk-NFB4H6NT.mjs.map
|