@copilotkit/runtime 1.5.18-next.0 → 1.5.18-next.1
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 +7 -0
- package/dist/{chunk-ODCQ3OFD.mjs → chunk-2NWLEHMA.mjs} +11 -6
- package/dist/chunk-2NWLEHMA.mjs.map +1 -0
- package/dist/{chunk-QGFYSFTM.mjs → chunk-326WWZNE.mjs} +2 -2
- package/dist/{chunk-26Q5XHVQ.mjs → chunk-CJZ7QUXU.mjs} +2 -2
- package/dist/{chunk-EQFWYZKN.mjs → chunk-OS4N57XE.mjs} +2 -2
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +10 -5
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.js +7 -2
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +7 -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.js +7 -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.js +7 -2
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +2 -2
- package/src/graphql/resolvers/state.resolver.ts +6 -1
- package/src/lib/runtime/copilot-runtime.ts +2 -2
- package/src/lib/runtime/remote-lg-action.ts +1 -1
- package/dist/chunk-ODCQ3OFD.mjs.map +0 -1
- /package/dist/{chunk-QGFYSFTM.mjs.map → chunk-326WWZNE.mjs.map} +0 -0
- /package/dist/{chunk-26Q5XHVQ.mjs.map → chunk-CJZ7QUXU.mjs.map} +0 -0
- /package/dist/{chunk-EQFWYZKN.mjs.map → chunk-OS4N57XE.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNestEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-CJZ7QUXU.mjs";
|
|
4
|
+
import "../../../chunk-2NWLEHMA.mjs";
|
|
5
5
|
import "../../../chunk-OS5YD32G.mjs";
|
|
6
6
|
import "../../../chunk-5BIEM2UU.mjs";
|
|
7
7
|
import "../../../chunk-RTFJTJMA.mjs";
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.18-next.
|
|
47
|
+
version: "1.5.18-next.1",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -2533,7 +2533,12 @@ var StateResolver = class {
|
|
|
2533
2533
|
const agents = await ctx._copilotkit.runtime.discoverAgentsFromEndpoints(ctx);
|
|
2534
2534
|
const agent = agents.find((agent2) => agent2.name === data.agentName);
|
|
2535
2535
|
if (!agent) {
|
|
2536
|
-
|
|
2536
|
+
return {
|
|
2537
|
+
threadId: data.threadId || "",
|
|
2538
|
+
threadExists: false,
|
|
2539
|
+
state: JSON.stringify({}),
|
|
2540
|
+
messages: JSON.stringify([])
|
|
2541
|
+
};
|
|
2537
2542
|
}
|
|
2538
2543
|
const state = await ctx._copilotkit.runtime.loadAgentState(ctx, data.threadId, data.agentName);
|
|
2539
2544
|
return state;
|