@copilotkit/runtime 1.0.6 → 1.0.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/.turbo/turbo-build.log +47 -47
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-ZA7P76V6.mjs → chunk-74N2ME6S.mjs} +16 -2
- package/dist/chunk-74N2ME6S.mjs.map +1 -0
- package/dist/{chunk-XXDXWPU2.mjs → chunk-W7VNHFVP.mjs} +2 -2
- package/dist/{chunk-KZ4CQTGH.mjs → chunk-XUJZPK4P.mjs} +2 -2
- package/dist/{chunk-A2K4XX7Q.mjs → chunk-YNH6B4QZ.mjs} +14 -2
- package/dist/chunk-YNH6B4QZ.mjs.map +1 -0
- package/dist/{chunk-FI5ULODX.mjs → chunk-Z2G5OVBH.mjs} +2 -2
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +27 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +27 -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 +15 -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 +15 -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 +15 -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/integrations/nextjs/app-router.ts +6 -0
- package/src/lib/integrations/nextjs/pages-router.ts +6 -0
- package/src/lib/integrations/node-http/index.ts +6 -0
- package/src/lib/integrations/shared.ts +8 -0
- package/dist/chunk-A2K4XX7Q.mjs.map +0 -1
- package/dist/chunk-ZA7P76V6.mjs.map +0 -1
- /package/dist/{chunk-XXDXWPU2.mjs.map → chunk-W7VNHFVP.mjs.map} +0 -0
- /package/dist/{chunk-KZ4CQTGH.mjs.map → chunk-XUJZPK4P.mjs.map} +0 -0
- /package/dist/{chunk-FI5ULODX.mjs.map → chunk-Z2G5OVBH.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotRuntime,
|
|
3
3
|
flattenToolCallsNoDuplicates
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XUJZPK4P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
GoogleGenerativeAIAdapter,
|
|
7
7
|
LangChainAdapter,
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
config,
|
|
13
13
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
14
14
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YNH6B4QZ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
copilotRuntimeNestEndpoint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-W7VNHFVP.mjs";
|
|
19
19
|
import {
|
|
20
20
|
copilotRuntimeNodeExpressEndpoint
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Z2G5OVBH.mjs";
|
|
22
22
|
import {
|
|
23
23
|
buildSchema,
|
|
24
24
|
copilotRuntimeNodeHttpEndpoint,
|
|
25
25
|
createContext,
|
|
26
26
|
getCommonConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-74N2ME6S.mjs";
|
|
28
28
|
import "./chunk-URMISMK2.mjs";
|
|
29
29
|
import {
|
|
30
30
|
GuardrailsValidationFailureResponse,
|
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.0.
|
|
47
|
+
version: "1.0.7",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -2562,6 +2562,7 @@ function buildSchema(options = {}) {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
__name(buildSchema, "buildSchema");
|
|
2564
2564
|
function getCommonConfig(options) {
|
|
2565
|
+
var _a;
|
|
2565
2566
|
const logLevel = process.env.LOG_LEVEL || options.logLevel || "error";
|
|
2566
2567
|
const logger2 = createLogger({
|
|
2567
2568
|
level: logLevel,
|
|
@@ -2576,6 +2577,13 @@ function getCommonConfig(options) {
|
|
|
2576
2577
|
baseUrl: options.cloud.baseUrl
|
|
2577
2578
|
});
|
|
2578
2579
|
}
|
|
2580
|
+
if ((_a = options.properties) == null ? void 0 : _a._copilotkit) {
|
|
2581
|
+
telemetry_client_default.setGlobalProperties({
|
|
2582
|
+
_copilotkit: {
|
|
2583
|
+
...options.properties._copilotkit
|
|
2584
|
+
}
|
|
2585
|
+
});
|
|
2586
|
+
}
|
|
2579
2587
|
telemetry_client_default.setGlobalProperties({
|
|
2580
2588
|
runtime: {
|
|
2581
2589
|
serviceAdapter: options.serviceAdapter.constructor.name
|
|
@@ -2598,12 +2606,18 @@ __name(getCommonConfig, "getCommonConfig");
|
|
|
2598
2606
|
// src/lib/integrations/nextjs/app-router.ts
|
|
2599
2607
|
var import_graphql_yoga2 = require("graphql-yoga");
|
|
2600
2608
|
function copilotRuntimeNextJSAppRouterEndpoint(options) {
|
|
2609
|
+
var _a;
|
|
2601
2610
|
const commonConfig = getCommonConfig(options);
|
|
2602
2611
|
telemetry_client_default.setGlobalProperties({
|
|
2603
2612
|
runtime: {
|
|
2604
2613
|
framework: "nextjs-app-router"
|
|
2605
2614
|
}
|
|
2606
2615
|
});
|
|
2616
|
+
if ((_a = options.properties) == null ? void 0 : _a._copilotkit) {
|
|
2617
|
+
telemetry_client_default.setGlobalProperties({
|
|
2618
|
+
_copilotkit: options.properties._copilotkit
|
|
2619
|
+
});
|
|
2620
|
+
}
|
|
2607
2621
|
telemetry_client_default.capture("oss.runtime.instance_created", {});
|
|
2608
2622
|
const logger2 = commonConfig.logging;
|
|
2609
2623
|
logger2.debug("Creating NextJS App Router endpoint");
|
|
@@ -2631,12 +2645,18 @@ var config = {
|
|
|
2631
2645
|
}
|
|
2632
2646
|
};
|
|
2633
2647
|
function copilotRuntimeNextJSPagesRouterEndpoint(options) {
|
|
2648
|
+
var _a;
|
|
2634
2649
|
const commonConfig = getCommonConfig(options);
|
|
2635
2650
|
telemetry_client_default.setGlobalProperties({
|
|
2636
2651
|
runtime: {
|
|
2637
2652
|
framework: "nextjs-pages-router"
|
|
2638
2653
|
}
|
|
2639
2654
|
});
|
|
2655
|
+
if ((_a = options.properties) == null ? void 0 : _a._copilotkit) {
|
|
2656
|
+
telemetry_client_default.setGlobalProperties({
|
|
2657
|
+
_copilotkit: options.properties._copilotkit
|
|
2658
|
+
});
|
|
2659
|
+
}
|
|
2640
2660
|
telemetry_client_default.capture("oss.runtime.instance_created", {});
|
|
2641
2661
|
const logger2 = commonConfig.logging;
|
|
2642
2662
|
logger2.debug("Creating NextJS Pages Router endpoint");
|
|
@@ -2651,12 +2671,18 @@ __name(copilotRuntimeNextJSPagesRouterEndpoint, "copilotRuntimeNextJSPagesRouter
|
|
|
2651
2671
|
// src/lib/integrations/node-http/index.ts
|
|
2652
2672
|
var import_graphql_yoga4 = require("graphql-yoga");
|
|
2653
2673
|
function copilotRuntimeNodeHttpEndpoint(options) {
|
|
2674
|
+
var _a;
|
|
2654
2675
|
const commonConfig = getCommonConfig(options);
|
|
2655
2676
|
telemetry_client_default.setGlobalProperties({
|
|
2656
2677
|
runtime: {
|
|
2657
2678
|
framework: "node-http"
|
|
2658
2679
|
}
|
|
2659
2680
|
});
|
|
2681
|
+
if ((_a = options.properties) == null ? void 0 : _a._copilotkit) {
|
|
2682
|
+
telemetry_client_default.setGlobalProperties({
|
|
2683
|
+
_copilotkit: options.properties._copilotkit
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2660
2686
|
telemetry_client_default.capture("oss.runtime.instance_created", {});
|
|
2661
2687
|
const logger2 = commonConfig.logging;
|
|
2662
2688
|
logger2.debug("Creating Node HTTP endpoint");
|