@copilotkit/runtime 1.9.2-next.17 → 1.9.2-next.18
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 +11 -0
- package/dist/{chunk-H3ML2MWF.mjs → chunk-FW5UOGQ2.mjs} +27 -27
- package/dist/chunk-FW5UOGQ2.mjs.map +1 -0
- package/dist/{chunk-6QK2NO6W.mjs → chunk-JIE2UKYM.mjs} +2 -2
- package/dist/{chunk-WXNKOOVD.mjs → chunk-QSSQAW7A.mjs} +2 -2
- package/dist/{chunk-CORCJNXR.mjs → chunk-RXWWTMSG.mjs} +2 -2
- package/dist/{chunk-7EDOHCIU.mjs → chunk-Y6GPK3Y7.mjs} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +26 -26
- 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 +26 -26
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/{shared-4164c674.d.ts → shared-41d4988d.d.ts} +13 -13
- package/package.json +2 -2
- package/src/graphql/resolvers/copilot.resolver.ts +1 -2
- package/src/lib/runtime/__tests__/{copilot-runtime-trace.test.ts → copilot-runtime-error.test.ts} +27 -27
- package/src/lib/runtime/copilot-runtime.ts +41 -42
- package/dist/chunk-H3ML2MWF.mjs.map +0 -1
- /package/dist/{chunk-6QK2NO6W.mjs.map → chunk-JIE2UKYM.mjs.map} +0 -0
- /package/dist/{chunk-WXNKOOVD.mjs.map → chunk-QSSQAW7A.mjs.map} +0 -0
- /package/dist/{chunk-CORCJNXR.mjs.map → chunk-RXWWTMSG.mjs.map} +0 -0
- /package/dist/{chunk-7EDOHCIU.mjs.map → chunk-Y6GPK3Y7.mjs.map} +0 -0
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
config,
|
|
3
3
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
4
4
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-Y6GPK3Y7.mjs";
|
|
6
6
|
import {
|
|
7
7
|
copilotRuntimeNestEndpoint
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-QSSQAW7A.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copilotRuntimeNodeExpressEndpoint
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-JIE2UKYM.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addCustomHeaderPlugin,
|
|
14
14
|
buildSchema,
|
|
15
15
|
copilotRuntimeNodeHttpEndpoint,
|
|
16
16
|
createContext,
|
|
17
17
|
getCommonConfig
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-FW5UOGQ2.mjs";
|
|
19
19
|
import "../../chunk-SHBDMA63.mjs";
|
|
20
20
|
import "../../chunk-JTFQ5GIL.mjs";
|
|
21
21
|
import "../../chunk-XWBDEXDA.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as graphql_yoga from 'graphql-yoga';
|
|
2
|
-
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../shared-
|
|
2
|
+
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../shared-41d4988d.js';
|
|
3
3
|
import 'graphql';
|
|
4
4
|
import 'pino';
|
|
5
5
|
import '@copilotkit/shared';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.9.2-next.
|
|
47
|
+
version: "1.9.2-next.18",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -2109,7 +2109,7 @@ var CopilotResolver = class {
|
|
|
2109
2109
|
logger2.debug("Cloud configuration provided, checking for public API key in headers");
|
|
2110
2110
|
if (!copilotCloudPublicApiKey) {
|
|
2111
2111
|
logger2.error("Public API key not found in headers");
|
|
2112
|
-
await copilotRuntime.
|
|
2112
|
+
await copilotRuntime.errorGraphQLError({
|
|
2113
2113
|
message: "X-CopilotCloud-Public-API-Key header is required",
|
|
2114
2114
|
code: "MISSING_PUBLIC_API_KEY",
|
|
2115
2115
|
type: "GraphQLError"
|