@copilotkit/runtime 1.9.2-next.5 → 1.9.2-next.7
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 +14 -0
- package/dist/{chunk-BLBS3CQH.mjs → chunk-2PQGAIVB.mjs} +19 -2
- package/dist/chunk-2PQGAIVB.mjs.map +1 -0
- package/dist/{chunk-5WRXYU4R.mjs → chunk-2UAJCT5X.mjs} +2 -2
- package/dist/{chunk-RK7WRNH6.mjs → chunk-GW6ERFKI.mjs} +2 -2
- package/dist/{chunk-ZVJSUAD7.mjs → chunk-HB4D2KJC.mjs} +102 -48
- package/dist/chunk-HB4D2KJC.mjs.map +1 -0
- package/dist/{chunk-T4U5EWYD.mjs → chunk-LSB3QZHS.mjs} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +118 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.d.ts +3 -2
- package/dist/lib/index.js +118 -47
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- 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/src/lib/runtime/langgraph/langgraph-agent.ts +12 -0
- package/dist/chunk-BLBS3CQH.mjs.map +0 -1
- package/dist/chunk-ZVJSUAD7.mjs.map +0 -1
- /package/dist/{chunk-5WRXYU4R.mjs.map → chunk-2UAJCT5X.mjs.map} +0 -0
- /package/dist/{chunk-RK7WRNH6.mjs.map → chunk-GW6ERFKI.mjs.map} +0 -0
- /package/dist/{chunk-T4U5EWYD.mjs.map → chunk-LSB3QZHS.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-2PQGAIVB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
config,
|
|
7
7
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
8
8
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-LSB3QZHS.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNestEndpoint
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-GW6ERFKI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
copilotRuntimeNodeExpressEndpoint
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-2UAJCT5X.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-HB4D2KJC.mjs";
|
|
32
32
|
import {
|
|
33
33
|
GoogleGenerativeAIAdapter,
|
|
34
34
|
GroqAdapter,
|
|
@@ -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-941d59dc.js';
|
|
2
|
+
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-941d59dc.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.7",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -2712,9 +2712,9 @@ function _ts_param2(paramIndex, decorator) {
|
|
|
2712
2712
|
__name(_ts_param2, "_ts_param");
|
|
2713
2713
|
var StateResolver = class {
|
|
2714
2714
|
async loadAgentState(ctx, data) {
|
|
2715
|
-
const agents = await ctx._copilotkit.runtime.
|
|
2716
|
-
const
|
|
2717
|
-
if (!
|
|
2715
|
+
const agents = await ctx._copilotkit.runtime.getAllAgents(ctx);
|
|
2716
|
+
const hasAgent = agents.some((agent) => agent.name === data.agentName);
|
|
2717
|
+
if (!hasAgent) {
|
|
2718
2718
|
throw new import_shared8.CopilotKitAgentDiscoveryError({
|
|
2719
2719
|
agentName: data.agentName,
|
|
2720
2720
|
availableAgents: agents.map((a) => ({
|