@copilotkit/runtime 1.7.1 → 1.7.2-next.0
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-UIQ6VQVO.mjs → chunk-5O7B3OFK.mjs} +2 -2
- package/dist/{chunk-I32ZVLQF.mjs → chunk-DUBBA5SG.mjs} +2 -2
- package/dist/{chunk-ZRT6C4KZ.mjs → chunk-VNHNOXCI.mjs} +2 -2
- package/dist/{chunk-IJGSJSXO.mjs → chunk-ZLGWN57Q.mjs} +5 -7
- package/dist/chunk-ZLGWN57Q.mjs.map +1 -0
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +4 -6
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- 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 +7 -6
- package/dist/chunk-IJGSJSXO.mjs.map +0 -1
- /package/dist/{chunk-UIQ6VQVO.mjs.map → chunk-5O7B3OFK.mjs.map} +0 -0
- /package/dist/{chunk-I32ZVLQF.mjs.map → chunk-DUBBA5SG.mjs.map} +0 -0
- /package/dist/{chunk-ZRT6C4KZ.mjs.map → chunk-VNHNOXCI.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DUBBA5SG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5O7B3OFK.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VNHNOXCI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
addCustomHeaderPlugin,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getCommonConfig,
|
|
23
23
|
langGraphPlatformEndpoint,
|
|
24
24
|
resolveEndpointType
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZLGWN57Q.mjs";
|
|
26
26
|
import {
|
|
27
27
|
AnthropicAdapter,
|
|
28
28
|
EmptyAdapter,
|
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.7.
|
|
47
|
+
version: "1.7.2-next.0",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -3676,12 +3676,10 @@ var CopilotRuntime = class {
|
|
|
3676
3676
|
observability;
|
|
3677
3677
|
constructor(params) {
|
|
3678
3678
|
var _a, _b;
|
|
3679
|
-
if ((params == null ? void 0 : params.actions) && (params == null ? void 0 : params.remoteEndpoints)) {
|
|
3680
|
-
console.warn("Actions set in runtime instance will be
|
|
3681
|
-
this.actions = [];
|
|
3682
|
-
} else {
|
|
3683
|
-
this.actions = (params == null ? void 0 : params.actions) || [];
|
|
3679
|
+
if ((params == null ? void 0 : params.actions) && (params == null ? void 0 : params.remoteEndpoints) && (params == null ? void 0 : params.remoteEndpoints.some((e) => e.type === EndpointType.LangGraphPlatform))) {
|
|
3680
|
+
console.warn("Actions set in runtime instance will not be available for the agent");
|
|
3684
3681
|
}
|
|
3682
|
+
this.actions = (params == null ? void 0 : params.actions) || [];
|
|
3685
3683
|
for (const chain of (params == null ? void 0 : params.langserve) || []) {
|
|
3686
3684
|
const remoteChain = new RemoteChain(chain);
|
|
3687
3685
|
this.langserve.push(remoteChain.toAction());
|