@copilotkit/runtime 1.9.2-next.17 → 1.9.2-next.19
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 +18 -0
- package/dist/{chunk-CORCJNXR.mjs → chunk-BTV2RM2X.mjs} +2 -2
- package/dist/{chunk-H3ML2MWF.mjs → chunk-EEARRKK3.mjs} +28 -28
- package/dist/chunk-EEARRKK3.mjs.map +1 -0
- package/dist/{chunk-7EDOHCIU.mjs → chunk-OVIDH7IH.mjs} +2 -2
- package/dist/{chunk-JTFQ5GIL.mjs → chunk-QLLV2QVK.mjs} +2 -1
- package/dist/chunk-QLLV2QVK.mjs.map +1 -0
- package/dist/{chunk-WXNKOOVD.mjs → chunk-QPMGUSMZ.mjs} +2 -2
- package/dist/{chunk-6QK2NO6W.mjs → chunk-ZNDOT3YP.mjs} +2 -2
- package/dist/{groq-adapter-172a2ca4.d.ts → groq-adapter-098f97f6.d.ts} +4 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +27 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +27 -26
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- 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 +5 -5
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/service-adapters/index.d.ts +2 -2
- package/dist/service-adapters/index.js +1 -0
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/dist/{shared-4164c674.d.ts → shared-41d4988d.d.ts} +13 -13
- package/package.json +4 -4
- 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/src/service-adapters/google/google-genai-adapter.ts +5 -0
- package/dist/chunk-H3ML2MWF.mjs.map +0 -1
- package/dist/chunk-JTFQ5GIL.mjs.map +0 -1
- /package/dist/{chunk-CORCJNXR.mjs.map → chunk-BTV2RM2X.mjs.map} +0 -0
- /package/dist/{chunk-7EDOHCIU.mjs.map → chunk-OVIDH7IH.mjs.map} +0 -0
- /package/dist/{chunk-WXNKOOVD.mjs.map → chunk-QPMGUSMZ.mjs.map} +0 -0
- /package/dist/{chunk-6QK2NO6W.mjs.map → chunk-ZNDOT3YP.mjs.map} +0 -0
package/dist/lib/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CustomEventNames,
|
|
3
3
|
LangGraphAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-BTV2RM2X.mjs";
|
|
5
5
|
import {
|
|
6
6
|
config,
|
|
7
7
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
8
8
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-OVIDH7IH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNestEndpoint
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-QPMGUSMZ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
copilotRuntimeNodeExpressEndpoint
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-ZNDOT3YP.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CopilotRuntime,
|
|
18
18
|
addCustomHeaderPlugin,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
getCommonConfig,
|
|
29
29
|
langGraphPlatformEndpoint,
|
|
30
30
|
resolveEndpointType
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-EEARRKK3.mjs";
|
|
32
32
|
import "../chunk-SHBDMA63.mjs";
|
|
33
33
|
import {
|
|
34
34
|
GoogleGenerativeAIAdapter,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
OpenAIAdapter,
|
|
38
38
|
OpenAIAssistantAdapter,
|
|
39
39
|
UnifyAdapter
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-QLLV2QVK.mjs";
|
|
41
41
|
import "../chunk-XWBDEXDA.mjs";
|
|
42
42
|
import "../chunk-AMUJQ6IR.mjs";
|
|
43
43
|
import "../chunk-2OZAGFV3.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-
|
|
2
|
-
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-
|
|
1
|
+
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-41d4988d.js';
|
|
2
|
+
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-41d4988d.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.9.2-next.
|
|
47
|
+
version: "1.9.2-next.19",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -2115,7 +2115,7 @@ var CopilotResolver = class {
|
|
|
2115
2115
|
logger2.debug("Cloud configuration provided, checking for public API key in headers");
|
|
2116
2116
|
if (!copilotCloudPublicApiKey) {
|
|
2117
2117
|
logger2.error("Public API key not found in headers");
|
|
2118
|
-
await copilotRuntime.
|
|
2118
|
+
await copilotRuntime.errorGraphQLError({
|
|
2119
2119
|
message: "X-CopilotCloud-Public-API-Key header is required",
|
|
2120
2120
|
code: "MISSING_PUBLIC_API_KEY",
|
|
2121
2121
|
type: "GraphQLError"
|