@copilotkit/runtime 1.0.0-beta.0 → 1.0.0-beta.2

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.
Files changed (74) hide show
  1. package/.turbo/turbo-build.log +79 -65
  2. package/CHANGELOG.md +16 -0
  3. package/__snapshots__/schema/schema.graphql +15 -1
  4. package/dist/chunk-44O2JGUY.mjs +12 -0
  5. package/dist/{chunk-6YGDE3YI.mjs → chunk-6YZWDFF6.mjs} +154 -19
  6. package/dist/chunk-6YZWDFF6.mjs.map +1 -0
  7. package/dist/{chunk-JBDOA7MK.mjs → chunk-7QCEK4DP.mjs} +4 -4
  8. package/dist/{chunk-FRK6BXXV.mjs → chunk-DVDKD6F5.mjs} +3 -3
  9. package/dist/{chunk-OZMCHYYR.mjs → chunk-GEIBJJQ4.mjs} +3 -3
  10. package/dist/chunk-LGRJFIJL.mjs +24 -0
  11. package/dist/chunk-LGRJFIJL.mjs.map +1 -0
  12. package/dist/{chunk-6NZ4UMOD.mjs → chunk-RMZWGQ46.mjs} +2 -2
  13. package/dist/{chunk-2PJG3NAC.mjs → chunk-SVAGAMIO.mjs} +17 -4
  14. package/dist/chunk-SVAGAMIO.mjs.map +1 -0
  15. package/dist/{chunk-BYB2LNMK.mjs → chunk-U3V2BCGI.mjs} +2 -2
  16. package/dist/{chunk-JIKPSUGQ.mjs → chunk-WE6CBBR3.mjs} +5 -5
  17. package/dist/chunk-X4FJTCSL.mjs +24 -0
  18. package/dist/chunk-X4FJTCSL.mjs.map +1 -0
  19. package/dist/graphql/types/base/index.mjs +2 -2
  20. package/dist/graphql/types/converted/index.mjs +3 -3
  21. package/dist/index.d.ts +6 -3
  22. package/dist/index.js +187 -13
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +17 -9
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/lib/index.d.ts +6 -3
  27. package/dist/lib/index.js +187 -13
  28. package/dist/lib/index.js.map +1 -1
  29. package/dist/lib/index.mjs +17 -9
  30. package/dist/lib/integrations/index.d.ts +6 -3
  31. package/dist/lib/integrations/index.js +187 -13
  32. package/dist/lib/integrations/index.js.map +1 -1
  33. package/dist/lib/integrations/index.mjs +15 -7
  34. package/dist/lib/integrations/nest/index.d.ts +14 -0
  35. package/dist/lib/integrations/nest/index.js +1481 -0
  36. package/dist/lib/integrations/nest/index.js.map +1 -0
  37. package/dist/lib/integrations/nest/index.mjs +13 -0
  38. package/dist/lib/integrations/nest/index.mjs.map +1 -0
  39. package/dist/lib/integrations/node-express/index.d.ts +14 -0
  40. package/dist/lib/integrations/node-express/index.js +1481 -0
  41. package/dist/lib/integrations/node-express/index.js.map +1 -0
  42. package/dist/lib/integrations/node-express/index.mjs +13 -0
  43. package/dist/lib/integrations/node-express/index.mjs.map +1 -0
  44. package/dist/lib/integrations/node-http/index.d.ts +6 -2
  45. package/dist/lib/integrations/node-http/index.js +147 -13
  46. package/dist/lib/integrations/node-http/index.js.map +1 -1
  47. package/dist/lib/integrations/node-http/index.mjs +6 -6
  48. package/dist/{pages-router-e81920d5.d.ts → pages-router-24897543.d.ts} +1 -1
  49. package/dist/service-adapters/index.mjs +5 -5
  50. package/dist/{index-0e75acd2.d.ts → shared-48c0f7b8.d.ts} +2 -5
  51. package/dist/utils/index.mjs +2 -2
  52. package/package.json +2 -2
  53. package/src/graphql/inputs/cloud-guardrails.input.ts +2 -2
  54. package/src/graphql/inputs/generate-copilot-response.input.ts +10 -0
  55. package/src/graphql/resolvers/copilot.resolver.ts +12 -3
  56. package/src/graphql/types/enums.ts +13 -0
  57. package/src/lib/integrations/index.ts +2 -0
  58. package/src/lib/integrations/nest/index.ts +14 -0
  59. package/src/lib/integrations/nextjs/app-router.ts +10 -0
  60. package/src/lib/integrations/nextjs/pages-router.ts +10 -0
  61. package/src/lib/integrations/node-express/index.ts +14 -0
  62. package/src/lib/integrations/node-http/index.ts +10 -0
  63. package/src/lib/integrations/shared.ts +14 -1
  64. package/src/lib/telemetry-client.ts +9 -0
  65. package/dist/chunk-2PJG3NAC.mjs.map +0 -1
  66. package/dist/chunk-6YGDE3YI.mjs.map +0 -1
  67. package/dist/chunk-RHQLCJGG.mjs +0 -7
  68. /package/dist/{chunk-RHQLCJGG.mjs.map → chunk-44O2JGUY.mjs.map} +0 -0
  69. /package/dist/{chunk-JBDOA7MK.mjs.map → chunk-7QCEK4DP.mjs.map} +0 -0
  70. /package/dist/{chunk-FRK6BXXV.mjs.map → chunk-DVDKD6F5.mjs.map} +0 -0
  71. /package/dist/{chunk-OZMCHYYR.mjs.map → chunk-GEIBJJQ4.mjs.map} +0 -0
  72. /package/dist/{chunk-6NZ4UMOD.mjs.map → chunk-RMZWGQ46.mjs.map} +0 -0
  73. /package/dist/{chunk-BYB2LNMK.mjs.map → chunk-U3V2BCGI.mjs.map} +0 -0
  74. /package/dist/{chunk-JIKPSUGQ.mjs.map → chunk-WE6CBBR3.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
8
11
  var __export = (target, all) => {
9
12
  for (var name in all)
10
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -27,6 +30,77 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
30
  ));
28
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
32
 
33
+ // package.json
34
+ var require_package = __commonJS({
35
+ "package.json"(exports, module2) {
36
+ module2.exports = {
37
+ name: "@copilotkit/runtime",
38
+ private: false,
39
+ publishConfig: {
40
+ access: "public"
41
+ },
42
+ version: "1.0.0-beta.2",
43
+ sideEffects: false,
44
+ main: "./dist/index.js",
45
+ module: "./dist/index.mjs",
46
+ exports: {
47
+ ".": "./dist/index.js"
48
+ },
49
+ types: "./dist/index.d.ts",
50
+ license: "MIT",
51
+ scripts: {
52
+ build: "tsup --clean",
53
+ dev: 'tsup --watch --onSuccess "pnpm run generate-graphql-schema"',
54
+ test: "jest --passWithNoTests",
55
+ "check-types": "tsc --noEmit",
56
+ clean: "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .next",
57
+ "generate-graphql-schema": "rm -rf __snapshots__ && ts-node ./scripts/generate-gql-schema.ts"
58
+ },
59
+ devDependencies: {
60
+ "@swc/core": "1.5.28",
61
+ "@types/express": "^4.17.21",
62
+ "@types/jest": "^29.5.4",
63
+ "@types/node": "^18.11.17",
64
+ "@whatwg-node/server": "^0.9.34",
65
+ eslint: "^8.56.0",
66
+ "eslint-config-custom": "workspace:*",
67
+ jest: "^29.6.4",
68
+ nodemon: "^3.1.3",
69
+ "ts-jest": "^29.1.1",
70
+ "ts-node": "^10.9.2",
71
+ tsconfig: "workspace:*",
72
+ tsup: "^6.7.0",
73
+ typescript: "^5.2.3"
74
+ },
75
+ dependencies: {
76
+ "@copilotkit/shared": "workspace:*",
77
+ "@google/generative-ai": "^0.11.2",
78
+ "@graphql-yoga/plugin-defer-stream": "^3.3.1",
79
+ "@langchain/community": "^0.0.53",
80
+ "@langchain/core": "^0.1.61",
81
+ "@langchain/openai": "^0.0.28",
82
+ "class-transformer": "^0.5.1",
83
+ express: "^4.19.2",
84
+ graphql: "^16.8.1",
85
+ "graphql-scalars": "^1.23.0",
86
+ "graphql-yoga": "^5.3.1",
87
+ "groq-sdk": "^0.5.0",
88
+ "js-tiktoken": "^1.0.8",
89
+ langchain: "^0.1.36",
90
+ nanoid: "3.3.4",
91
+ openai: "^4.50.0",
92
+ pino: "^9.2.0",
93
+ "pino-pretty": "^11.2.1",
94
+ "reflect-metadata": "^0.2.2",
95
+ rxjs: "^7.8.1",
96
+ tiktoken: "^1.0.15",
97
+ "type-graphql": "2.0.0-rc.1",
98
+ zod: "^3.23.3"
99
+ }
100
+ };
101
+ }
102
+ });
103
+
30
104
  // src/index.ts
31
105
  var src_exports = {};
32
106
  __export(src_exports, {
@@ -40,8 +114,10 @@ __export(src_exports, {
40
114
  UnknownErrorResponse: () => UnknownErrorResponse,
41
115
  buildSchema: () => buildSchema,
42
116
  config: () => config,
117
+ copilotRuntimeNestEndpoint: () => copilotRuntimeNestEndpoint,
43
118
  copilotRuntimeNextJSAppRouterEndpoint: () => copilotRuntimeNextJSAppRouterEndpoint,
44
119
  copilotRuntimeNextJSPagesRouterEndpoint: () => copilotRuntimeNextJSPagesRouterEndpoint,
120
+ copilotRuntimeNodeExpressEndpoint: () => copilotRuntimeNodeExpressEndpoint,
45
121
  copilotRuntimeNodeHttpEndpoint: () => copilotRuntimeNodeHttpEndpoint,
46
122
  createContext: () => createContext,
47
123
  flattenToolCallsNoDuplicates: () => flattenToolCallsNoDuplicates,
@@ -1280,6 +1356,14 @@ var ActionExecutionScope;
1280
1356
  ActionExecutionScope2["server"] = "server";
1281
1357
  ActionExecutionScope2["client"] = "client";
1282
1358
  })(ActionExecutionScope || (ActionExecutionScope = {}));
1359
+ var CopilotRequestType;
1360
+ (function(CopilotRequestType2) {
1361
+ CopilotRequestType2["Chat"] = "Chat";
1362
+ CopilotRequestType2["Task"] = "Task";
1363
+ CopilotRequestType2["TextareaCompletion"] = "TextareaCompletion";
1364
+ CopilotRequestType2["TextareaPopover"] = "TextareaPopover";
1365
+ CopilotRequestType2["Suggestion"] = "Suggestion";
1366
+ })(CopilotRequestType || (CopilotRequestType = {}));
1283
1367
  (0, import_type_graphql2.registerEnumType)(MessageRole, {
1284
1368
  name: "MessageRole",
1285
1369
  description: "The role of the message"
@@ -1288,6 +1372,10 @@ var ActionExecutionScope;
1288
1372
  name: "ActionExecutionScope",
1289
1373
  description: "The scope of the action"
1290
1374
  });
1375
+ (0, import_type_graphql2.registerEnumType)(CopilotRequestType, {
1376
+ name: "CopilotRequestType",
1377
+ description: "The type of Copilot request"
1378
+ });
1291
1379
 
1292
1380
  // src/graphql/inputs/message.input.ts
1293
1381
  function _ts_decorate2(decorators, target, key, desc) {
@@ -1519,15 +1607,12 @@ GuardrailsRuleInput = _ts_decorate5([
1519
1607
  (0, import_type_graphql6.InputType)()
1520
1608
  ], GuardrailsRuleInput);
1521
1609
  var GuardrailsInput = class {
1522
- inputValidationRules = {
1523
- allowList: [],
1524
- denyList: []
1525
- };
1610
+ inputValidationRules;
1526
1611
  };
1527
1612
  __name(GuardrailsInput, "GuardrailsInput");
1528
1613
  _ts_decorate5([
1529
1614
  (0, import_type_graphql6.Field)(() => GuardrailsRuleInput, {
1530
- nullable: true
1615
+ nullable: false
1531
1616
  }),
1532
1617
  _ts_metadata5("design:type", typeof GuardrailsRuleInput === "undefined" ? Object : GuardrailsRuleInput)
1533
1618
  ], GuardrailsInput.prototype, "inputValidationRules", void 0);
@@ -1583,7 +1668,21 @@ function _ts_metadata7(k, v) {
1583
1668
  return Reflect.metadata(k, v);
1584
1669
  }
1585
1670
  __name(_ts_metadata7, "_ts_metadata");
1671
+ var GenerateCopilotResponseMetadataInput = class {
1672
+ requestType;
1673
+ };
1674
+ __name(GenerateCopilotResponseMetadataInput, "GenerateCopilotResponseMetadataInput");
1675
+ _ts_decorate7([
1676
+ (0, import_type_graphql8.Field)(() => CopilotRequestType, {
1677
+ nullable: true
1678
+ }),
1679
+ _ts_metadata7("design:type", typeof CopilotRequestType === "undefined" ? Object : CopilotRequestType)
1680
+ ], GenerateCopilotResponseMetadataInput.prototype, "requestType", void 0);
1681
+ GenerateCopilotResponseMetadataInput = _ts_decorate7([
1682
+ (0, import_type_graphql8.InputType)()
1683
+ ], GenerateCopilotResponseMetadataInput);
1586
1684
  var GenerateCopilotResponseInput = class {
1685
+ metadata;
1587
1686
  threadId;
1588
1687
  runId;
1589
1688
  messages;
@@ -1591,6 +1690,12 @@ var GenerateCopilotResponseInput = class {
1591
1690
  cloud;
1592
1691
  };
1593
1692
  __name(GenerateCopilotResponseInput, "GenerateCopilotResponseInput");
1693
+ _ts_decorate7([
1694
+ (0, import_type_graphql8.Field)(() => GenerateCopilotResponseMetadataInput, {
1695
+ nullable: false
1696
+ }),
1697
+ _ts_metadata7("design:type", typeof GenerateCopilotResponseMetadataInput === "undefined" ? Object : GenerateCopilotResponseMetadataInput)
1698
+ ], GenerateCopilotResponseInput.prototype, "metadata", void 0);
1594
1699
  _ts_decorate7([
1595
1700
  (0, import_type_graphql8.Field)(() => String, {
1596
1701
  nullable: true
@@ -1992,6 +2097,15 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
1992
2097
  };
1993
2098
  __name(UnknownErrorResponse, "UnknownErrorResponse");
1994
2099
 
2100
+ // src/lib/telemetry-client.ts
2101
+ var import_shared2 = require("@copilotkit/shared");
2102
+ var packageJson = require_package();
2103
+ var telemetryClient = new import_shared2.TelemetryClient({
2104
+ packageName: packageJson.name,
2105
+ packageVersion: packageJson.version
2106
+ });
2107
+ var telemetry_client_default = telemetryClient;
2108
+
1995
2109
  // src/graphql/resolvers/copilot.resolver.ts
1996
2110
  function _ts_decorate11(decorators, target, key, desc) {
1997
2111
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -2017,6 +2131,7 @@ function _ts_param(paramIndex, decorator) {
2017
2131
  __name(_ts_param, "_ts_param");
2018
2132
  var invokeGuardrails = /* @__PURE__ */ __name(async ({ baseUrl, copilotCloudPublicApiKey, data, onResult, onError }) => {
2019
2133
  var _a;
2134
+ console.log("invokeGuardrails.baseUrl", baseUrl);
2020
2135
  if (data.messages.length && ((_a = data.messages[data.messages.length - 1].textMessage) == null ? void 0 : _a.role) === MessageRole.user) {
2021
2136
  const messages = data.messages.filter((m) => m.textMessage !== void 0 && (m.textMessage.role === MessageRole.user || m.textMessage.role === MessageRole.assistant)).map((m) => ({
2022
2137
  role: m.textMessage.role,
@@ -2051,6 +2166,11 @@ var CopilotResolver = class {
2051
2166
  return "Hello World";
2052
2167
  }
2053
2168
  async generateCopilotResponse(ctx, data, properties) {
2169
+ var _a, _b, _c;
2170
+ telemetry_client_default.capture("oss.runtime.copilot_request_created", {
2171
+ "cloud.guardrails.enabled": ((_a = data.cloud) == null ? void 0 : _a.guardrails) !== void 0,
2172
+ requestType: data.metadata.requestType
2173
+ });
2054
2174
  let logger2 = ctx.logger.child({
2055
2175
  component: "CopilotResolver.generateCopilotResponse"
2056
2176
  });
@@ -2083,8 +2203,8 @@ var CopilotResolver = class {
2083
2203
  }
2084
2204
  if (process.env.COPILOT_CLOUD_BASE_URL) {
2085
2205
  copilotCloudBaseUrl = process.env.COPILOT_CLOUD_BASE_URL;
2086
- } else if (ctx._copilotkit.baseUrl) {
2087
- copilotCloudBaseUrl = ctx._copilotkit.baseUrl;
2206
+ } else if ((_b = ctx._copilotkit.cloud) == null ? void 0 : _b.baseUrl) {
2207
+ copilotCloudBaseUrl = (_c = ctx._copilotkit.cloud) == null ? void 0 : _c.baseUrl;
2088
2208
  } else {
2089
2209
  copilotCloudBaseUrl = "https://api.cloud.copilotkit.ai";
2090
2210
  }
@@ -2120,9 +2240,9 @@ var CopilotResolver = class {
2120
2240
  runId,
2121
2241
  status: (0, import_rxjs2.firstValueFrom)(responseStatus$),
2122
2242
  messages: new import_graphql_yoga.Repeater(async (pushMessage, stopStreamingMessages) => {
2123
- var _a, _b;
2243
+ var _a2, _b2;
2124
2244
  logger2.debug("Messages repeater created");
2125
- if ((_a = data.cloud) == null ? void 0 : _a.guardrails) {
2245
+ if ((_a2 = data.cloud) == null ? void 0 : _a2.guardrails) {
2126
2246
  logger2 = logger2.child({
2127
2247
  guardrails: true
2128
2248
  });
@@ -2171,7 +2291,7 @@ var CopilotResolver = class {
2171
2291
  let eventStreamSubscription;
2172
2292
  const eventStream = eventSource.process({
2173
2293
  serversideActions: actions,
2174
- guardrailsResult$: ((_b = data.cloud) == null ? void 0 : _b.guardrails) ? guardrailsResult$ : null
2294
+ guardrailsResult$: ((_b2 = data.cloud) == null ? void 0 : _b2.guardrails) ? guardrailsResult$ : null
2175
2295
  }).pipe(
2176
2296
  // shareReplay() ensures that later subscribers will see the whole stream instead of
2177
2297
  // just the events that were emitted after the subscriber was added.
@@ -2333,9 +2453,9 @@ var CopilotResolver = class {
2333
2453
  rejectOutputMessagesPromise(err);
2334
2454
  },
2335
2455
  complete: async () => {
2336
- var _a2;
2456
+ var _a3;
2337
2457
  logger2.debug("Event stream completed");
2338
- if ((_a2 = data.cloud) == null ? void 0 : _a2.guardrails) {
2458
+ if ((_a3 = data.cloud) == null ? void 0 : _a3.guardrails) {
2339
2459
  logger2.debug("Guardrails is enabled, waiting for guardrails result");
2340
2460
  await (0, import_rxjs2.firstValueFrom)(guardrailsResult$);
2341
2461
  }
@@ -2444,10 +2564,20 @@ function getCommonConfig(options) {
2444
2564
  level: logLevel,
2445
2565
  component: "getCommonConfig"
2446
2566
  });
2447
- logger2.debug("Getting common config");
2448
2567
  const contextLogger = createLogger({
2449
2568
  level: logLevel
2450
2569
  });
2570
+ if (options.cloud) {
2571
+ telemetry_client_default.setCloudConfiguration({
2572
+ publicApiKey: options.cloud.publicApiKey,
2573
+ baseUrl: options.cloud.baseUrl
2574
+ });
2575
+ }
2576
+ telemetry_client_default.setGlobalProperties({
2577
+ runtime: {
2578
+ serviceAdapter: options.serviceAdapter.constructor.name
2579
+ }
2580
+ });
2451
2581
  return {
2452
2582
  logging: createLogger({
2453
2583
  component: "Yoga GraphQL",
@@ -2466,6 +2596,12 @@ __name(getCommonConfig, "getCommonConfig");
2466
2596
  var import_graphql_yoga2 = require("graphql-yoga");
2467
2597
  function copilotRuntimeNextJSAppRouterEndpoint(options) {
2468
2598
  const commonConfig = getCommonConfig(options);
2599
+ telemetry_client_default.setGlobalProperties({
2600
+ runtime: {
2601
+ framework: "nextjs-app-router"
2602
+ }
2603
+ });
2604
+ telemetry_client_default.capture("oss.runtime.instance_created", {});
2469
2605
  const logger2 = commonConfig.logging;
2470
2606
  logger2.debug("Creating NextJS App Router endpoint");
2471
2607
  const yoga = (0, import_graphql_yoga2.createYoga)({
@@ -2493,6 +2629,12 @@ var config = {
2493
2629
  };
2494
2630
  function copilotRuntimeNextJSPagesRouterEndpoint(options) {
2495
2631
  const commonConfig = getCommonConfig(options);
2632
+ telemetry_client_default.setGlobalProperties({
2633
+ runtime: {
2634
+ framework: "nextjs-pages-router"
2635
+ }
2636
+ });
2637
+ telemetry_client_default.capture("oss.runtime.instance_created", {});
2496
2638
  const logger2 = commonConfig.logging;
2497
2639
  logger2.debug("Creating NextJS Pages Router endpoint");
2498
2640
  const yoga = (0, import_graphql_yoga3.createYoga)({
@@ -2507,6 +2649,12 @@ __name(copilotRuntimeNextJSPagesRouterEndpoint, "copilotRuntimeNextJSPagesRouter
2507
2649
  var import_graphql_yoga4 = require("graphql-yoga");
2508
2650
  function copilotRuntimeNodeHttpEndpoint(options) {
2509
2651
  const commonConfig = getCommonConfig(options);
2652
+ telemetry_client_default.setGlobalProperties({
2653
+ runtime: {
2654
+ framework: "node-http"
2655
+ }
2656
+ });
2657
+ telemetry_client_default.capture("oss.runtime.instance_created", {});
2510
2658
  const logger2 = commonConfig.logging;
2511
2659
  logger2.debug("Creating Node HTTP endpoint");
2512
2660
  const yoga = (0, import_graphql_yoga4.createYoga)({
@@ -2516,6 +2664,30 @@ function copilotRuntimeNodeHttpEndpoint(options) {
2516
2664
  return yoga;
2517
2665
  }
2518
2666
  __name(copilotRuntimeNodeHttpEndpoint, "copilotRuntimeNodeHttpEndpoint");
2667
+
2668
+ // src/lib/integrations/node-express/index.ts
2669
+ function copilotRuntimeNodeExpressEndpoint(options) {
2670
+ telemetry_client_default.setGlobalProperties({
2671
+ runtime: {
2672
+ framework: "node-express"
2673
+ }
2674
+ });
2675
+ telemetry_client_default.capture("oss.runtime.instance_created", {});
2676
+ return copilotRuntimeNodeHttpEndpoint(options);
2677
+ }
2678
+ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
2679
+
2680
+ // src/lib/integrations/nest/index.ts
2681
+ function copilotRuntimeNestEndpoint(options) {
2682
+ telemetry_client_default.setGlobalProperties({
2683
+ runtime: {
2684
+ framework: "nest"
2685
+ }
2686
+ });
2687
+ telemetry_client_default.capture("oss.runtime.instance_created", {});
2688
+ return copilotRuntimeNodeHttpEndpoint(options);
2689
+ }
2690
+ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
2519
2691
  // Annotate the CommonJS export names for ESM import in node:
2520
2692
  0 && (module.exports = {
2521
2693
  CopilotRuntime,
@@ -2528,8 +2700,10 @@ __name(copilotRuntimeNodeHttpEndpoint, "copilotRuntimeNodeHttpEndpoint");
2528
2700
  UnknownErrorResponse,
2529
2701
  buildSchema,
2530
2702
  config,
2703
+ copilotRuntimeNestEndpoint,
2531
2704
  copilotRuntimeNextJSAppRouterEndpoint,
2532
2705
  copilotRuntimeNextJSPagesRouterEndpoint,
2706
+ copilotRuntimeNodeExpressEndpoint,
2533
2707
  copilotRuntimeNodeHttpEndpoint,
2534
2708
  createContext,
2535
2709
  flattenToolCallsNoDuplicates,