@copilotkit/runtime 1.9.2-next.4 → 1.9.2-next.6
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 +13 -0
- package/dist/{chunk-NK2XARWT.mjs → chunk-6AD7VT26.mjs} +2 -2
- package/dist/{chunk-5FNEYAWH.mjs → chunk-6FLO2QTT.mjs} +2 -2
- package/dist/{chunk-6W7TKZNY.mjs → chunk-JZWHLURE.mjs} +2 -2
- package/dist/{chunk-CJ44W4R2.mjs → chunk-K4JQLKXK.mjs} +2 -2
- package/dist/{chunk-ZUF3A5TW.mjs → chunk-RCIYK6YJ.mjs} +107 -53
- package/dist/chunk-RCIYK6YJ.mjs.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +101 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +101 -47
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/dist/{shared-ba062831.d.ts → shared-941d59dc.d.ts} +2 -0
- package/package.json +2 -2
- package/src/graphql/resolvers/state.resolver.ts +3 -3
- package/src/lib/runtime/copilot-runtime.ts +114 -41
- package/dist/chunk-ZUF3A5TW.mjs.map +0 -1
- /package/dist/{chunk-NK2XARWT.mjs.map → chunk-6AD7VT26.mjs.map} +0 -0
- /package/dist/{chunk-5FNEYAWH.mjs.map → chunk-6FLO2QTT.mjs.map} +0 -0
- /package/dist/{chunk-6W7TKZNY.mjs.map → chunk-JZWHLURE.mjs.map} +0 -0
- /package/dist/{chunk-CJ44W4R2.mjs.map → chunk-K4JQLKXK.mjs.map} +0 -0
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
config,
|
|
3
3
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
4
4
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-6AD7VT26.mjs";
|
|
6
6
|
import {
|
|
7
7
|
copilotRuntimeNestEndpoint
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-K4JQLKXK.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copilotRuntimeNodeExpressEndpoint
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-JZWHLURE.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addCustomHeaderPlugin,
|
|
14
14
|
buildSchema,
|
|
15
15
|
copilotRuntimeNodeHttpEndpoint,
|
|
16
16
|
createContext,
|
|
17
17
|
getCommonConfig
|
|
18
|
-
} from "../../chunk-
|
|
19
|
-
import "../../chunk-IIXJVVTV.mjs";
|
|
18
|
+
} from "../../chunk-RCIYK6YJ.mjs";
|
|
20
19
|
import "../../chunk-5BIEM2UU.mjs";
|
|
20
|
+
import "../../chunk-IIXJVVTV.mjs";
|
|
21
21
|
import "../../chunk-SHBDMA63.mjs";
|
|
22
22
|
import "../../chunk-2OZAGFV3.mjs";
|
|
23
23
|
import "../../chunk-FHD4JECV.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-941d59dc.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.6",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -2706,9 +2706,9 @@ function _ts_param2(paramIndex, decorator) {
|
|
|
2706
2706
|
__name(_ts_param2, "_ts_param");
|
|
2707
2707
|
var StateResolver = class {
|
|
2708
2708
|
async loadAgentState(ctx, data) {
|
|
2709
|
-
const agents = await ctx._copilotkit.runtime.
|
|
2710
|
-
const
|
|
2711
|
-
if (!
|
|
2709
|
+
const agents = await ctx._copilotkit.runtime.getAllAgents(ctx);
|
|
2710
|
+
const hasAgent = agents.some((agent) => agent.name === data.agentName);
|
|
2711
|
+
if (!hasAgent) {
|
|
2712
2712
|
throw new import_shared8.CopilotKitAgentDiscoveryError({
|
|
2713
2713
|
agentName: data.agentName,
|
|
2714
2714
|
availableAgents: agents.map((a) => ({
|