@copilotkit/runtime 1.5.15 → 1.5.16-next.1

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 +14 -0
  2. package/dist/{chunk-D2WLFQS6.mjs → chunk-2OZAGFV3.mjs} +2 -2
  3. package/dist/{chunk-U3V2BCGI.mjs → chunk-5BIEM2UU.mjs} +2 -2
  4. package/dist/{chunk-HOTR3KYO.mjs → chunk-DLC2JHVP.mjs} +18 -9
  5. package/dist/chunk-DLC2JHVP.mjs.map +1 -0
  6. package/dist/chunk-FHD4JECV.mjs +33 -0
  7. package/dist/{chunk-USNCP24V.mjs → chunk-M7UBXBRI.mjs} +3 -3
  8. package/dist/{chunk-S3KKBII4.mjs → chunk-OS5YD32G.mjs} +2 -2
  9. package/dist/{chunk-2ITUMI4O.mjs → chunk-PPSNRM2D.mjs} +3 -3
  10. package/dist/{chunk-HNUNXFTW.mjs → chunk-RTFJTJMA.mjs} +3 -3
  11. package/dist/{chunk-GRU4U3VO.mjs → chunk-X4UE3Q5F.mjs} +3 -3
  12. package/dist/{copilot-runtime-3e7f1c7b.d.ts → copilot-runtime-084fb9c7.d.ts} +6 -1
  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 +11 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +11 -9
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/lib/index.d.ts +1 -1
  21. package/dist/lib/index.js +11 -2
  22. package/dist/lib/index.js.map +1 -1
  23. package/dist/lib/index.mjs +11 -9
  24. package/dist/lib/integrations/index.d.ts +2 -2
  25. package/dist/lib/integrations/index.js +11 -2
  26. package/dist/lib/integrations/index.js.map +1 -1
  27. package/dist/lib/integrations/index.mjs +11 -9
  28. package/dist/lib/integrations/nest/index.d.ts +1 -1
  29. package/dist/lib/integrations/nest/index.js +9 -2
  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 +9 -2
  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 +9 -2
  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 +9 -1
  44. package/tsconfig.json +1 -0
  45. package/dist/chunk-44O2JGUY.mjs +0 -12
  46. package/dist/chunk-HOTR3KYO.mjs.map +0 -1
  47. /package/dist/{chunk-D2WLFQS6.mjs.map → chunk-2OZAGFV3.mjs.map} +0 -0
  48. /package/dist/{chunk-U3V2BCGI.mjs.map → chunk-5BIEM2UU.mjs.map} +0 -0
  49. /package/dist/{chunk-44O2JGUY.mjs.map → chunk-FHD4JECV.mjs.map} +0 -0
  50. /package/dist/{chunk-USNCP24V.mjs.map → chunk-M7UBXBRI.mjs.map} +0 -0
  51. /package/dist/{chunk-S3KKBII4.mjs.map → chunk-OS5YD32G.mjs.map} +0 -0
  52. /package/dist/{chunk-2ITUMI4O.mjs.map → chunk-PPSNRM2D.mjs.map} +0 -0
  53. /package/dist/{chunk-HNUNXFTW.mjs.map → chunk-RTFJTJMA.mjs.map} +0 -0
  54. /package/dist/{chunk-GRU4U3VO.mjs.map → chunk-X4UE3Q5F.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.5.16-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 48b7c7b: - fix: detect and alert on version mismatch
8
+ - Updated dependencies [48b7c7b]
9
+ - @copilotkit/shared@1.5.16-next.1
10
+
11
+ ## 1.5.16-next.0
12
+
13
+ ### Patch Changes
14
+
15
+ - @copilotkit/shared@1.5.16-next.0
16
+
3
17
  ## 1.5.15
4
18
 
5
19
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-44O2JGUY.mjs";
3
+ } from "./chunk-FHD4JECV.mjs";
4
4
 
5
5
  // src/graphql/types/base/index.ts
6
6
  import { Field, InputType } from "type-graphql";
@@ -40,4 +40,4 @@ BaseMessageInput = _ts_decorate([
40
40
  export {
41
41
  BaseMessageInput
42
42
  };
43
- //# sourceMappingURL=chunk-D2WLFQS6.mjs.map
43
+ //# sourceMappingURL=chunk-2OZAGFV3.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-44O2JGUY.mjs";
3
+ } from "./chunk-FHD4JECV.mjs";
4
4
 
5
5
  // src/graphql/types/response-status.type.ts
6
6
  import { GraphQLJSON } from "graphql-scalars";
@@ -149,4 +149,4 @@ export {
149
149
  MessageStreamInterruptedResponse,
150
150
  UnknownErrorResponse
151
151
  };
152
- //# sourceMappingURL=chunk-U3V2BCGI.mjs.map
152
+ //# sourceMappingURL=chunk-5BIEM2UU.mjs.map
@@ -2,27 +2,28 @@ import {
2
2
  EmptyAdapter,
3
3
  RemoteChain,
4
4
  streamLangChainResponse
5
- } from "./chunk-S3KKBII4.mjs";
5
+ } from "./chunk-OS5YD32G.mjs";
6
6
  import {
7
7
  GuardrailsValidationFailureResponse,
8
8
  MessageStreamInterruptedResponse,
9
9
  ResponseStatusUnion,
10
10
  SuccessResponseStatus,
11
11
  UnknownErrorResponse
12
- } from "./chunk-U3V2BCGI.mjs";
12
+ } from "./chunk-5BIEM2UU.mjs";
13
13
  import {
14
14
  ActionExecutionMessage,
15
15
  AgentStateMessage,
16
16
  ResultMessage,
17
17
  TextMessage
18
- } from "./chunk-HNUNXFTW.mjs";
18
+ } from "./chunk-RTFJTJMA.mjs";
19
19
  import {
20
20
  BaseMessageInput
21
- } from "./chunk-D2WLFQS6.mjs";
21
+ } from "./chunk-2OZAGFV3.mjs";
22
22
  import {
23
23
  __commonJS,
24
- __name
25
- } from "./chunk-44O2JGUY.mjs";
24
+ __name,
25
+ __toESM
26
+ } from "./chunk-FHD4JECV.mjs";
26
27
 
27
28
  // package.json
28
29
  var require_package = __commonJS({
@@ -38,7 +39,7 @@ var require_package = __commonJS({
38
39
  publishConfig: {
39
40
  access: "public"
40
41
  },
41
- version: "1.5.15",
42
+ version: "1.5.16-next.1",
42
43
  sideEffects: false,
43
44
  main: "./dist/index.js",
44
45
  module: "./dist/index.mjs",
@@ -4065,7 +4066,13 @@ StateResolver = _ts_decorate20([
4065
4066
  ], StateResolver);
4066
4067
 
4067
4068
  // src/lib/integrations/shared.ts
4069
+ var packageJson2 = __toESM(require_package());
4068
4070
  var logger = createLogger();
4071
+ var addCustomHeaderPlugin = {
4072
+ onResponse({ response }) {
4073
+ response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
4074
+ }
4075
+ };
4069
4076
  async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
4070
4077
  logger.debug({
4071
4078
  copilotKitContext
@@ -4131,7 +4138,8 @@ function getCommonConfig(options) {
4131
4138
  }),
4132
4139
  schema: buildSchema(),
4133
4140
  plugins: [
4134
- useDeferStream()
4141
+ useDeferStream(),
4142
+ addCustomHeaderPlugin
4135
4143
  ],
4136
4144
  context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
4137
4145
  };
@@ -4171,9 +4179,10 @@ export {
4171
4179
  copilotKitEndpoint,
4172
4180
  langGraphPlatformEndpoint,
4173
4181
  resolveEndpointType,
4182
+ addCustomHeaderPlugin,
4174
4183
  createContext,
4175
4184
  buildSchema,
4176
4185
  getCommonConfig,
4177
4186
  copilotRuntimeNodeHttpEndpoint
4178
4187
  };
4179
- //# sourceMappingURL=chunk-HOTR3KYO.mjs.map
4188
+ //# sourceMappingURL=chunk-DLC2JHVP.mjs.map