@copilotkit/runtime 1.9.2-next.13 → 1.9.2-next.15
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-LNXBP675.mjs → chunk-7ZBTD5PN.mjs} +2 -2
- package/dist/{chunk-6V6X7HZO.mjs → chunk-SBSDOLSI.mjs} +2 -2
- package/dist/{chunk-CSXEYW65.mjs → chunk-SLTWS4D3.mjs} +10 -10
- package/dist/chunk-SLTWS4D3.mjs.map +1 -0
- package/dist/{chunk-NV2UY5BF.mjs → chunk-WRTZZ52D.mjs} +2 -2
- package/dist/{chunk-WY337BWR.mjs → chunk-XJBX2ZN2.mjs} +2 -2
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +9 -9
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/lib/runtime/copilot-runtime.ts +8 -9
- package/dist/chunk-CSXEYW65.mjs.map +0 -1
- /package/dist/{chunk-LNXBP675.mjs.map → chunk-7ZBTD5PN.mjs.map} +0 -0
- /package/dist/{chunk-6V6X7HZO.mjs.map → chunk-SBSDOLSI.mjs.map} +0 -0
- /package/dist/{chunk-NV2UY5BF.mjs.map → chunk-WRTZZ52D.mjs.map} +0 -0
- /package/dist/{chunk-WY337BWR.mjs.map → chunk-XJBX2ZN2.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CustomEventNames,
|
|
3
3
|
LangGraphAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XJBX2ZN2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
config,
|
|
7
7
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
8
8
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WRTZZ52D.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNestEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7ZBTD5PN.mjs";
|
|
13
13
|
import {
|
|
14
14
|
copilotRuntimeNodeExpressEndpoint
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SBSDOLSI.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-SLTWS4D3.mjs";
|
|
32
32
|
import "./chunk-SHBDMA63.mjs";
|
|
33
33
|
import {
|
|
34
34
|
AnthropicAdapter,
|
package/dist/lib/index.js
CHANGED
|
@@ -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.15",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -4681,10 +4681,10 @@ please use an LLM adapter instead.`
|
|
|
4681
4681
|
return agents;
|
|
4682
4682
|
}
|
|
4683
4683
|
discoverAgentsFromAgui() {
|
|
4684
|
-
return Object.
|
|
4685
|
-
name: agent.agentName,
|
|
4686
|
-
id: agent.agentId,
|
|
4687
|
-
description: ""
|
|
4684
|
+
return Object.entries(this.agents ?? []).map(([key, agent]) => ({
|
|
4685
|
+
name: agent.agentName ?? key,
|
|
4686
|
+
id: agent.agentId ?? key,
|
|
4687
|
+
description: agent.description ?? ""
|
|
4688
4688
|
}));
|
|
4689
4689
|
}
|
|
4690
4690
|
async loadAgentState(graphqlContext, threadId, agentName) {
|
|
@@ -4747,10 +4747,6 @@ please use an LLM adapter instead.`
|
|
|
4747
4747
|
const propertyHeaders = graphqlContext.properties.authorization ? {
|
|
4748
4748
|
authorization: `Bearer ${graphqlContext.properties.authorization}`
|
|
4749
4749
|
} : null;
|
|
4750
|
-
const aguiAgent = graphqlContext._copilotkit.runtime.agents[agent.name];
|
|
4751
|
-
if (!aguiAgent) {
|
|
4752
|
-
throw new Error(`Agent: ${agent.name} could not be resolved`);
|
|
4753
|
-
}
|
|
4754
4750
|
let state = {};
|
|
4755
4751
|
try {
|
|
4756
4752
|
let client;
|
|
@@ -4763,6 +4759,10 @@ please use an LLM adapter instead.`
|
|
|
4763
4759
|
}
|
|
4764
4760
|
});
|
|
4765
4761
|
} else {
|
|
4762
|
+
const aguiAgent = graphqlContext._copilotkit.runtime.agents[agent.name];
|
|
4763
|
+
if (!aguiAgent) {
|
|
4764
|
+
throw new Error(`Agent: ${agent.name} could not be resolved`);
|
|
4765
|
+
}
|
|
4766
4766
|
client = aguiAgent.client ?? null;
|
|
4767
4767
|
}
|
|
4768
4768
|
state = client ? (await client.threads.getState(threadId)).values : {};
|