@copilotkit/runtime 1.5.16 → 1.5.17-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.
Files changed (54) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/chunk-44O2JGUY.mjs +12 -0
  3. package/dist/{chunk-2OZAGFV3.mjs → chunk-D2WLFQS6.mjs} +2 -2
  4. package/dist/{chunk-TWUMUUCQ.mjs → chunk-F6JB7EXM.mjs} +3 -3
  5. package/dist/{chunk-RTFJTJMA.mjs → chunk-HNUNXFTW.mjs} +3 -3
  6. package/dist/{chunk-FHRPZT3X.mjs → chunk-LKSLJZC6.mjs} +3 -3
  7. package/dist/{chunk-N6X67FPO.mjs → chunk-Q5VYBQBA.mjs} +3 -3
  8. package/dist/{chunk-OS5YD32G.mjs → chunk-S3KKBII4.mjs} +2 -2
  9. package/dist/{chunk-5BIEM2UU.mjs → chunk-U3V2BCGI.mjs} +2 -2
  10. package/dist/{chunk-HHBTKTJ5.mjs → chunk-ZT3RB4JF.mjs} +9 -18
  11. package/dist/chunk-ZT3RB4JF.mjs.map +1 -0
  12. package/dist/{copilot-runtime-084fb9c7.d.ts → copilot-runtime-3e7f1c7b.d.ts} +1 -6
  13. package/dist/graphql/types/base/index.mjs +2 -2
  14. package/dist/graphql/types/converted/index.mjs +3 -3
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +2 -11
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +9 -11
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/lib/index.d.ts +1 -1
  21. package/dist/lib/index.js +2 -11
  22. package/dist/lib/index.js.map +1 -1
  23. package/dist/lib/index.mjs +9 -11
  24. package/dist/lib/integrations/index.d.ts +2 -2
  25. package/dist/lib/integrations/index.js +2 -11
  26. package/dist/lib/integrations/index.js.map +1 -1
  27. package/dist/lib/integrations/index.mjs +9 -11
  28. package/dist/lib/integrations/nest/index.d.ts +1 -1
  29. package/dist/lib/integrations/nest/index.js +2 -9
  30. package/dist/lib/integrations/nest/index.js.map +1 -1
  31. package/dist/lib/integrations/nest/index.mjs +7 -7
  32. package/dist/lib/integrations/node-express/index.d.ts +1 -1
  33. package/dist/lib/integrations/node-express/index.js +2 -9
  34. package/dist/lib/integrations/node-express/index.js.map +1 -1
  35. package/dist/lib/integrations/node-express/index.mjs +7 -7
  36. package/dist/lib/integrations/node-http/index.d.ts +1 -1
  37. package/dist/lib/integrations/node-http/index.js +2 -9
  38. package/dist/lib/integrations/node-http/index.js.map +1 -1
  39. package/dist/lib/integrations/node-http/index.mjs +6 -6
  40. package/dist/service-adapters/index.mjs +2 -2
  41. package/dist/utils/index.mjs +2 -2
  42. package/package.json +2 -2
  43. package/src/lib/integrations/shared.ts +1 -9
  44. package/tsconfig.json +0 -1
  45. package/dist/chunk-FHD4JECV.mjs +0 -33
  46. package/dist/chunk-HHBTKTJ5.mjs.map +0 -1
  47. /package/dist/{chunk-FHD4JECV.mjs.map → chunk-44O2JGUY.mjs.map} +0 -0
  48. /package/dist/{chunk-2OZAGFV3.mjs.map → chunk-D2WLFQS6.mjs.map} +0 -0
  49. /package/dist/{chunk-TWUMUUCQ.mjs.map → chunk-F6JB7EXM.mjs.map} +0 -0
  50. /package/dist/{chunk-RTFJTJMA.mjs.map → chunk-HNUNXFTW.mjs.map} +0 -0
  51. /package/dist/{chunk-FHRPZT3X.mjs.map → chunk-LKSLJZC6.mjs.map} +0 -0
  52. /package/dist/{chunk-N6X67FPO.mjs.map → chunk-Q5VYBQBA.mjs.map} +0 -0
  53. /package/dist/{chunk-OS5YD32G.mjs.map → chunk-S3KKBII4.mjs.map} +0 -0
  54. /package/dist/{chunk-5BIEM2UU.mjs.map → chunk-U3V2BCGI.mjs.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  copilotRuntimeNodeHttpEndpoint
3
- } from "../../../chunk-HHBTKTJ5.mjs";
4
- import "../../../chunk-OS5YD32G.mjs";
5
- import "../../../chunk-5BIEM2UU.mjs";
6
- import "../../../chunk-RTFJTJMA.mjs";
7
- import "../../../chunk-2OZAGFV3.mjs";
8
- import "../../../chunk-FHD4JECV.mjs";
3
+ } from "../../../chunk-ZT3RB4JF.mjs";
4
+ import "../../../chunk-S3KKBII4.mjs";
5
+ import "../../../chunk-U3V2BCGI.mjs";
6
+ import "../../../chunk-HNUNXFTW.mjs";
7
+ import "../../../chunk-D2WLFQS6.mjs";
8
+ import "../../../chunk-44O2JGUY.mjs";
9
9
  export {
10
10
  copilotRuntimeNodeHttpEndpoint
11
11
  };
@@ -10,8 +10,8 @@ import {
10
10
  OpenAIAssistantAdapter,
11
11
  RemoteChain,
12
12
  UnifyAdapter
13
- } from "../chunk-OS5YD32G.mjs";
14
- import "../chunk-FHD4JECV.mjs";
13
+ } from "../chunk-S3KKBII4.mjs";
14
+ import "../chunk-44O2JGUY.mjs";
15
15
  export {
16
16
  AnthropicAdapter,
17
17
  EmptyAdapter,
@@ -2,8 +2,8 @@ import {
2
2
  GuardrailsValidationFailureResponse,
3
3
  MessageStreamInterruptedResponse,
4
4
  UnknownErrorResponse
5
- } from "../chunk-5BIEM2UU.mjs";
6
- import "../chunk-FHD4JECV.mjs";
5
+ } from "../chunk-U3V2BCGI.mjs";
6
+ import "../chunk-44O2JGUY.mjs";
7
7
  export {
8
8
  GuardrailsValidationFailureResponse,
9
9
  MessageStreamInterruptedResponse,
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.5.16",
12
+ "version": "1.5.17-next.0",
13
13
  "sideEffects": false,
14
14
  "main": "./dist/index.js",
15
15
  "module": "./dist/index.mjs",
@@ -58,7 +58,7 @@
58
58
  "rxjs": "^7.8.1",
59
59
  "type-graphql": "2.0.0-rc.1",
60
60
  "zod": "^3.23.3",
61
- "@copilotkit/shared": "1.5.16"
61
+ "@copilotkit/shared": "1.5.17-next.0"
62
62
  },
63
63
  "keywords": [
64
64
  "copilotkit",
@@ -9,17 +9,9 @@ import { LogLevel, createLogger } from "../../lib/logger";
9
9
  import { createYoga } from "graphql-yoga";
10
10
  import telemetry from "../telemetry-client";
11
11
  import { StateResolver } from "../../graphql/resolvers/state.resolver";
12
- import * as packageJson from "../../../package.json";
13
12
 
14
13
  const logger = createLogger();
15
14
 
16
- export const addCustomHeaderPlugin = {
17
- onResponse({ response }) {
18
- // Set your custom header; adjust the header name and value as needed
19
- response.headers.set("X-CopilotKit-Runtime-Version", packageJson.version);
20
- },
21
- };
22
-
23
15
  type AnyPrimitive = string | boolean | number | null;
24
16
  export type CopilotRequestContextProperties = Record<
25
17
  string,
@@ -111,7 +103,7 @@ export function getCommonConfig(options: CreateCopilotRuntimeServerOptions): Com
111
103
  return {
112
104
  logging: createLogger({ component: "Yoga GraphQL", level: logLevel }),
113
105
  schema: buildSchema(),
114
- plugins: [useDeferStream(), addCustomHeaderPlugin],
106
+ plugins: [useDeferStream()],
115
107
  context: (ctx: YogaInitialContext): Promise<Partial<GraphQLContext>> =>
116
108
  createContext(ctx, options, contextLogger, options.properties),
117
109
  };
package/tsconfig.json CHANGED
@@ -5,7 +5,6 @@
5
5
  "emitDecoratorMetadata": true,
6
6
  "experimentalDecorators": true,
7
7
  "strict": false,
8
- "resolveJsonModule": true
9
8
  },
10
9
  "include": ["./src/**/*.ts"],
11
10
  "exclude": ["dist", "build", "node_modules", "**/*.test.ts", "**/*.test.tsx", "**/__tests__/*"]
@@ -1,33 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
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
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
-
28
- export {
29
- __name,
30
- __commonJS,
31
- __toESM
32
- };
33
- //# sourceMappingURL=chunk-FHD4JECV.mjs.map