@copilotkit/runtime 1.6.0-next.0 → 1.6.0-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 +75 -0
- package/__snapshots__/schema/schema.graphql +1 -0
- package/dist/{chunk-RGSZK24X.mjs → chunk-3ORZOFAL.mjs} +2 -2
- package/dist/{chunk-AMKPW7KT.mjs → chunk-5NJDGEB3.mjs} +91 -48
- package/dist/chunk-5NJDGEB3.mjs.map +1 -0
- package/dist/{chunk-A4P5YLJQ.mjs → chunk-6XDMOAOM.mjs} +2 -2
- package/dist/{chunk-OS5YD32G.mjs → chunk-FZJAYGIR.mjs} +45 -12
- package/dist/chunk-FZJAYGIR.mjs.map +1 -0
- package/dist/{chunk-EYEJ5L3X.mjs → chunk-JUWN34MZ.mjs} +2 -2
- package/dist/{copilot-runtime-67033bfa.d.ts → copilot-runtime-15bfc4f4.d.ts} +2 -2
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/{groq-adapter-9d15c927.d.ts → groq-adapter-fb9aa3ab.d.ts} +1 -1
- package/dist/{index-f6d1f30b.d.ts → index-5bec5424.d.ts} +2 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +199 -123
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/{langserve-7cc5be48.d.ts → langserve-6f7af8d3.d.ts} +1 -1
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +192 -116
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +5 -3
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.d.ts +3 -3
- package/dist/lib/integrations/nest/index.js +5 -3
- 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.d.ts +3 -3
- package/dist/lib/integrations/node-express/index.js +5 -3
- 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.d.ts +3 -3
- package/dist/lib/integrations/node-http/index.js +5 -3
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/dist/service-adapters/index.d.ts +4 -4
- package/dist/service-adapters/index.js +70 -37
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/package.json +5 -4
- package/src/agents/langgraph/event-source.ts +21 -5
- package/src/graphql/types/enums.ts +1 -0
- package/src/lib/runtime/__tests__/remote-action-constructors.test.ts +236 -0
- package/src/lib/runtime/copilot-runtime.ts +9 -3
- package/src/lib/runtime/remote-action-constructors.ts +9 -7
- package/src/lib/runtime/remote-lg-action.ts +35 -7
- package/src/service-adapters/conversion.ts +39 -46
- package/src/service-adapters/groq/groq-adapter.ts +6 -3
- package/src/service-adapters/openai/openai-adapter.ts +1 -1
- package/src/service-adapters/openai/openai-assistant-adapter.ts +1 -1
- package/src/service-adapters/openai/utils.ts +39 -13
- package/src/service-adapters/unify/unify-adapter.ts +1 -1
- package/tsconfig.json +3 -2
- package/dist/chunk-AMKPW7KT.mjs.map +0 -1
- package/dist/chunk-OS5YD32G.mjs.map +0 -1
- /package/dist/{chunk-RGSZK24X.mjs.map → chunk-3ORZOFAL.mjs.map} +0 -0
- /package/dist/{chunk-A4P5YLJQ.mjs.map → chunk-6XDMOAOM.mjs.map} +0 -0
- /package/dist/{chunk-EYEJ5L3X.mjs.map → chunk-JUWN34MZ.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeExpressEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-6XDMOAOM.mjs";
|
|
4
|
+
import "../../../chunk-5NJDGEB3.mjs";
|
|
5
|
+
import "../../../chunk-FZJAYGIR.mjs";
|
|
5
6
|
import "../../../chunk-5BIEM2UU.mjs";
|
|
6
|
-
import "../../../chunk-OS5YD32G.mjs";
|
|
7
7
|
import "../../../chunk-RTFJTJMA.mjs";
|
|
8
8
|
import "../../../chunk-2OZAGFV3.mjs";
|
|
9
9
|
import "../../../chunk-FHD4JECV.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as graphql_yoga from 'graphql-yoga';
|
|
2
|
-
import { e as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../copilot-runtime-
|
|
2
|
+
import { e as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../copilot-runtime-15bfc4f4.js';
|
|
3
3
|
import '@copilotkit/shared';
|
|
4
|
-
import '../../../langserve-
|
|
5
|
-
import '../../../index-
|
|
4
|
+
import '../../../langserve-6f7af8d3.js';
|
|
5
|
+
import '../../../index-5bec5424.js';
|
|
6
6
|
import '../../../graphql/types/base/index.js';
|
|
7
7
|
import 'rxjs';
|
|
8
8
|
import 'graphql';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.6.0-next.
|
|
47
|
+
version: "1.6.0-next.10",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -66,7 +66,7 @@ var require_package = __commonJS({
|
|
|
66
66
|
devDependencies: {
|
|
67
67
|
"@swc/core": "1.5.28",
|
|
68
68
|
"@types/express": "^4.17.21",
|
|
69
|
-
"@types/jest": "^29.5.
|
|
69
|
+
"@types/jest": "^29.5.12",
|
|
70
70
|
"@types/node": "^18.11.17",
|
|
71
71
|
"@whatwg-node/server": "^0.9.34",
|
|
72
72
|
eslint: "^8.56.0",
|
|
@@ -90,13 +90,14 @@ var require_package = __commonJS({
|
|
|
90
90
|
"@langchain/langgraph-sdk": "^0.0.36",
|
|
91
91
|
"@langchain/openai": "^0.4.2",
|
|
92
92
|
"class-transformer": "^0.5.1",
|
|
93
|
+
"class-validator": "^0.14.1",
|
|
93
94
|
express: "^4.19.2",
|
|
94
95
|
graphql: "^16.8.1",
|
|
95
96
|
"graphql-scalars": "^1.23.0",
|
|
96
97
|
"graphql-yoga": "^5.3.1",
|
|
97
98
|
"groq-sdk": "^0.5.0",
|
|
98
99
|
langchain: "^0.3.3",
|
|
99
|
-
openai: "^4.
|
|
100
|
+
openai: "^4.85.1",
|
|
100
101
|
"partial-json": "^0.1.7",
|
|
101
102
|
pino: "^9.2.0",
|
|
102
103
|
"pino-pretty": "^11.2.1",
|
|
@@ -150,6 +151,7 @@ var MessageRole;
|
|
|
150
151
|
MessageRole2["assistant"] = "assistant";
|
|
151
152
|
MessageRole2["system"] = "system";
|
|
152
153
|
MessageRole2["tool"] = "tool";
|
|
154
|
+
MessageRole2["developer"] = "developer";
|
|
153
155
|
})(MessageRole || (MessageRole = {}));
|
|
154
156
|
var CopilotRequestType;
|
|
155
157
|
(function(CopilotRequestType2) {
|