@copilotkit/runtime 1.5.16 → 1.5.17
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 +22 -0
- package/dist/chunk-44O2JGUY.mjs +12 -0
- package/dist/{chunk-N6X67FPO.mjs → chunk-CPZLKCKJ.mjs} +3 -3
- package/dist/{chunk-2OZAGFV3.mjs → chunk-D2WLFQS6.mjs} +2 -2
- package/dist/{chunk-HHBTKTJ5.mjs → chunk-HEPCIATE.mjs} +9 -18
- package/dist/chunk-HEPCIATE.mjs.map +1 -0
- package/dist/{chunk-RTFJTJMA.mjs → chunk-HNUNXFTW.mjs} +3 -3
- package/dist/{chunk-OS5YD32G.mjs → chunk-S3KKBII4.mjs} +2 -2
- package/dist/{chunk-FHRPZT3X.mjs → chunk-SPBICTJF.mjs} +3 -3
- package/dist/{chunk-5BIEM2UU.mjs → chunk-U3V2BCGI.mjs} +2 -2
- package/dist/{chunk-TWUMUUCQ.mjs → chunk-UHSPX2BM.mjs} +3 -3
- package/dist/{copilot-runtime-084fb9c7.d.ts → copilot-runtime-3e7f1c7b.d.ts} +1 -6
- 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 +2 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -11
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +2 -11
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +9 -11
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +2 -11
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +9 -11
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +2 -9
- 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 +2 -9
- 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 +2 -9
- 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 +2 -2
- package/src/lib/integrations/shared.ts +1 -9
- package/tsconfig.json +0 -1
- package/dist/chunk-FHD4JECV.mjs +0 -33
- package/dist/chunk-HHBTKTJ5.mjs.map +0 -1
- /package/dist/{chunk-FHD4JECV.mjs.map → chunk-44O2JGUY.mjs.map} +0 -0
- /package/dist/{chunk-N6X67FPO.mjs.map → chunk-CPZLKCKJ.mjs.map} +0 -0
- /package/dist/{chunk-2OZAGFV3.mjs.map → chunk-D2WLFQS6.mjs.map} +0 -0
- /package/dist/{chunk-RTFJTJMA.mjs.map → chunk-HNUNXFTW.mjs.map} +0 -0
- /package/dist/{chunk-OS5YD32G.mjs.map → chunk-S3KKBII4.mjs.map} +0 -0
- /package/dist/{chunk-FHRPZT3X.mjs.map → chunk-SPBICTJF.mjs.map} +0 -0
- /package/dist/{chunk-5BIEM2UU.mjs.map → chunk-U3V2BCGI.mjs.map} +0 -0
- /package/dist/{chunk-TWUMUUCQ.mjs.map → chunk-UHSPX2BM.mjs.map} +0 -0
package/dist/lib/index.mjs
CHANGED
|
@@ -3,16 +3,15 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UHSPX2BM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-CPZLKCKJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-SPBICTJF.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
|
-
addCustomHeaderPlugin,
|
|
16
15
|
buildSchema,
|
|
17
16
|
copilotKitEndpoint,
|
|
18
17
|
copilotRuntimeNodeHttpEndpoint,
|
|
@@ -21,7 +20,7 @@ import {
|
|
|
21
20
|
getCommonConfig,
|
|
22
21
|
langGraphPlatformEndpoint,
|
|
23
22
|
resolveEndpointType
|
|
24
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-HEPCIATE.mjs";
|
|
25
24
|
import {
|
|
26
25
|
GoogleGenerativeAIAdapter,
|
|
27
26
|
GroqAdapter,
|
|
@@ -29,11 +28,11 @@ import {
|
|
|
29
28
|
OpenAIAdapter,
|
|
30
29
|
OpenAIAssistantAdapter,
|
|
31
30
|
UnifyAdapter
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-S3KKBII4.mjs";
|
|
32
|
+
import "../chunk-U3V2BCGI.mjs";
|
|
33
|
+
import "../chunk-HNUNXFTW.mjs";
|
|
34
|
+
import "../chunk-D2WLFQS6.mjs";
|
|
35
|
+
import "../chunk-44O2JGUY.mjs";
|
|
37
36
|
export {
|
|
38
37
|
CopilotRuntime,
|
|
39
38
|
GoogleGenerativeAIAdapter,
|
|
@@ -42,7 +41,6 @@ export {
|
|
|
42
41
|
OpenAIAdapter,
|
|
43
42
|
OpenAIAssistantAdapter,
|
|
44
43
|
UnifyAdapter,
|
|
45
|
-
addCustomHeaderPlugin,
|
|
46
44
|
buildSchema,
|
|
47
45
|
config,
|
|
48
46
|
copilotKitEndpoint,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-3e7f1c7b.js';
|
|
2
|
+
export { h as CommonConfig, b as CopilotRequestContextProperties, g as buildSchema, e as createContext, i as getCommonConfig } from '../../copilot-runtime-3e7f1c7b.js';
|
|
3
3
|
import * as graphql_yoga from 'graphql-yoga';
|
|
4
4
|
import { YogaServerInstance } from 'graphql-yoga';
|
|
5
5
|
export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.
|
|
47
|
+
version: "1.5.17",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -124,7 +124,6 @@ var require_package = __commonJS({
|
|
|
124
124
|
// src/lib/integrations/index.ts
|
|
125
125
|
var integrations_exports = {};
|
|
126
126
|
__export(integrations_exports, {
|
|
127
|
-
addCustomHeaderPlugin: () => addCustomHeaderPlugin,
|
|
128
127
|
buildSchema: () => buildSchema,
|
|
129
128
|
config: () => config,
|
|
130
129
|
copilotRuntimeNestEndpoint: () => copilotRuntimeNestEndpoint,
|
|
@@ -2562,13 +2561,7 @@ StateResolver = _ts_decorate22([
|
|
|
2562
2561
|
], StateResolver);
|
|
2563
2562
|
|
|
2564
2563
|
// src/lib/integrations/shared.ts
|
|
2565
|
-
var packageJson2 = __toESM(require_package());
|
|
2566
2564
|
var logger = createLogger();
|
|
2567
|
-
var addCustomHeaderPlugin = {
|
|
2568
|
-
onResponse({ response }) {
|
|
2569
|
-
response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
|
|
2570
|
-
}
|
|
2571
|
-
};
|
|
2572
2565
|
async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
|
|
2573
2566
|
logger.debug({
|
|
2574
2567
|
copilotKitContext
|
|
@@ -2634,8 +2627,7 @@ function getCommonConfig(options) {
|
|
|
2634
2627
|
}),
|
|
2635
2628
|
schema: buildSchema(),
|
|
2636
2629
|
plugins: [
|
|
2637
|
-
(0, import_plugin_defer_stream.useDeferStream)()
|
|
2638
|
-
addCustomHeaderPlugin
|
|
2630
|
+
(0, import_plugin_defer_stream.useDeferStream)()
|
|
2639
2631
|
],
|
|
2640
2632
|
context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
|
|
2641
2633
|
};
|
|
@@ -2758,7 +2750,6 @@ function copilotRuntimeNestEndpoint(options) {
|
|
|
2758
2750
|
__name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
2759
2751
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2760
2752
|
0 && (module.exports = {
|
|
2761
|
-
addCustomHeaderPlugin,
|
|
2762
2753
|
buildSchema,
|
|
2763
2754
|
config,
|
|
2764
2755
|
copilotRuntimeNestEndpoint,
|