@copilotkit/runtime 1.5.16-next.0 → 1.5.16-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.
- package/CHANGELOG.md +15 -0
- package/dist/{chunk-D2WLFQS6.mjs → chunk-2OZAGFV3.mjs} +2 -2
- package/dist/{chunk-U3V2BCGI.mjs → chunk-5BIEM2UU.mjs} +2 -2
- package/dist/chunk-FHD4JECV.mjs +33 -0
- package/dist/{chunk-4TED7LNT.mjs → chunk-ISPCKW3E.mjs} +3 -3
- package/dist/{chunk-S3KKBII4.mjs → chunk-OS5YD32G.mjs} +2 -2
- package/dist/{chunk-HNUNXFTW.mjs → chunk-RTFJTJMA.mjs} +3 -3
- package/dist/{chunk-COJRNPCX.mjs → chunk-TBPOHFA4.mjs} +3 -3
- package/dist/{chunk-P5J3JGOI.mjs → chunk-U5OA7VEB.mjs} +35 -18
- package/dist/chunk-U5OA7VEB.mjs.map +1 -0
- package/dist/{chunk-PIUZJXE7.mjs → chunk-UHUC2NVB.mjs} +3 -3
- package/dist/{copilot-runtime-3e7f1c7b.d.ts → copilot-runtime-084fb9c7.d.ts} +6 -1
- package/dist/graphql/types/base/index.mjs +2 -2
- package/dist/graphql/types/converted/index.mjs +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +28 -11
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +11 -9
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +15 -6
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +11 -9
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +13 -6
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +7 -7
- package/dist/lib/integrations/node-express/index.d.ts +1 -1
- package/dist/lib/integrations/node-express/index.js +13 -6
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +7 -7
- package/dist/lib/integrations/node-http/index.d.ts +1 -1
- package/dist/lib/integrations/node-http/index.js +13 -6
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +6 -6
- package/dist/service-adapters/index.mjs +2 -2
- package/dist/utils/index.mjs +2 -2
- package/package.json +5 -5
- package/src/graphql/resolvers/copilot.resolver.ts +1 -4
- package/src/lib/integrations/shared.ts +9 -1
- package/src/lib/runtime/remote-lg-action.ts +13 -3
- package/tsconfig.json +1 -0
- package/dist/chunk-44O2JGUY.mjs +0 -12
- package/dist/chunk-P5J3JGOI.mjs.map +0 -1
- /package/dist/{chunk-D2WLFQS6.mjs.map → chunk-2OZAGFV3.mjs.map} +0 -0
- /package/dist/{chunk-U3V2BCGI.mjs.map → chunk-5BIEM2UU.mjs.map} +0 -0
- /package/dist/{chunk-44O2JGUY.mjs.map → chunk-FHD4JECV.mjs.map} +0 -0
- /package/dist/{chunk-4TED7LNT.mjs.map → chunk-ISPCKW3E.mjs.map} +0 -0
- /package/dist/{chunk-S3KKBII4.mjs.map → chunk-OS5YD32G.mjs.map} +0 -0
- /package/dist/{chunk-HNUNXFTW.mjs.map → chunk-RTFJTJMA.mjs.map} +0 -0
- /package/dist/{chunk-COJRNPCX.mjs.map → chunk-TBPOHFA4.mjs.map} +0 -0
- /package/dist/{chunk-PIUZJXE7.mjs.map → chunk-UHUC2NVB.mjs.map} +0 -0
|
@@ -2,25 +2,27 @@ import {
|
|
|
2
2
|
config,
|
|
3
3
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
4
4
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UHUC2NVB.mjs";
|
|
6
6
|
import {
|
|
7
7
|
copilotRuntimeNestEndpoint
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-ISPCKW3E.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copilotRuntimeNodeExpressEndpoint
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-TBPOHFA4.mjs";
|
|
12
12
|
import {
|
|
13
|
+
addCustomHeaderPlugin,
|
|
13
14
|
buildSchema,
|
|
14
15
|
copilotRuntimeNodeHttpEndpoint,
|
|
15
16
|
createContext,
|
|
16
17
|
getCommonConfig
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
18
|
+
} from "../../chunk-U5OA7VEB.mjs";
|
|
19
|
+
import "../../chunk-OS5YD32G.mjs";
|
|
20
|
+
import "../../chunk-5BIEM2UU.mjs";
|
|
21
|
+
import "../../chunk-RTFJTJMA.mjs";
|
|
22
|
+
import "../../chunk-2OZAGFV3.mjs";
|
|
23
|
+
import "../../chunk-FHD4JECV.mjs";
|
|
23
24
|
export {
|
|
25
|
+
addCustomHeaderPlugin,
|
|
24
26
|
buildSchema,
|
|
25
27
|
config,
|
|
26
28
|
copilotRuntimeNestEndpoint,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as graphql_yoga from 'graphql-yoga';
|
|
2
|
-
import {
|
|
2
|
+
import { e as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../copilot-runtime-084fb9c7.js';
|
|
3
3
|
import '@copilotkit/shared';
|
|
4
4
|
import '../../../langserve-3a591089.js';
|
|
5
5
|
import '../../../index-f6d1f30b.js';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.16-next.
|
|
47
|
+
version: "1.5.16-next.2",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -84,11 +84,11 @@ var require_package = __commonJS({
|
|
|
84
84
|
"@anthropic-ai/sdk": "^0.27.3",
|
|
85
85
|
"@copilotkit/shared": "workspace:*",
|
|
86
86
|
"@graphql-yoga/plugin-defer-stream": "^3.3.1",
|
|
87
|
-
"@langchain/community": "^0.
|
|
88
|
-
"@langchain/core": "^0.3.
|
|
87
|
+
"@langchain/community": "^0.3.29",
|
|
88
|
+
"@langchain/core": "^0.3.38",
|
|
89
89
|
"@langchain/google-gauth": "^0.1.0",
|
|
90
90
|
"@langchain/langgraph-sdk": "^0.0.36",
|
|
91
|
-
"@langchain/openai": "^0.
|
|
91
|
+
"@langchain/openai": "^0.4.2",
|
|
92
92
|
"class-transformer": "^0.5.1",
|
|
93
93
|
express: "^4.19.2",
|
|
94
94
|
graphql: "^16.8.1",
|
|
@@ -2045,7 +2045,7 @@ var CopilotResolver = class {
|
|
|
2045
2045
|
type: event.type,
|
|
2046
2046
|
name: event.name,
|
|
2047
2047
|
data: {
|
|
2048
|
-
value:
|
|
2048
|
+
value: event.data.value,
|
|
2049
2049
|
messages: event.data.messages.map((message) => {
|
|
2050
2050
|
if (message.type === "TextMessage" || "content" in message && "role" in message) {
|
|
2051
2051
|
return (0, import_class_transformer2.plainToInstance)(TextMessage, {
|
|
@@ -2556,7 +2556,13 @@ StateResolver = _ts_decorate22([
|
|
|
2556
2556
|
], StateResolver);
|
|
2557
2557
|
|
|
2558
2558
|
// src/lib/integrations/shared.ts
|
|
2559
|
+
var packageJson2 = __toESM(require_package());
|
|
2559
2560
|
var logger = createLogger();
|
|
2561
|
+
var addCustomHeaderPlugin = {
|
|
2562
|
+
onResponse({ response }) {
|
|
2563
|
+
response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
|
|
2564
|
+
}
|
|
2565
|
+
};
|
|
2560
2566
|
async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
|
|
2561
2567
|
logger.debug({
|
|
2562
2568
|
copilotKitContext
|
|
@@ -2622,7 +2628,8 @@ function getCommonConfig(options) {
|
|
|
2622
2628
|
}),
|
|
2623
2629
|
schema: buildSchema(),
|
|
2624
2630
|
plugins: [
|
|
2625
|
-
(0, import_plugin_defer_stream.useDeferStream)()
|
|
2631
|
+
(0, import_plugin_defer_stream.useDeferStream)(),
|
|
2632
|
+
addCustomHeaderPlugin
|
|
2626
2633
|
],
|
|
2627
2634
|
context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
|
|
2628
2635
|
};
|