@copilotkit/runtime 1.51.0-next.3 → 1.51.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 CHANGED
@@ -1,5 +1,30 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.51.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 2839a15: fix: restore and fix handle method in node http
8
+ - 2839a15: Update versioning strategy
9
+ - 2839a15: fix: use direct hono node integration on node-http integration
10
+ - 4addb72: Fix ci again but really for real this time
11
+ - Updated dependencies [2793a11]
12
+ - Updated dependencies [73f196f]
13
+ - Updated dependencies [2839a15]
14
+ - Updated dependencies [2afd4e3]
15
+ - @copilotkitnext/runtime@1.51.0
16
+ - @copilotkit/shared@1.51.0
17
+ - @copilotkitnext/agent@1.51.0
18
+
19
+ ## 1.51.0-next.4
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [2793a11]
24
+ - @copilotkitnext/runtime@1.51.0-next.4
25
+ - @copilotkit/shared@1.51.0-next.4
26
+ - @copilotkitnext/agent@1.51.0-next.4
27
+
3
28
  ## 1.51.0-next.3
4
29
 
5
30
  ### Patch Changes
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ var require_package = __commonJS({
72
72
  publishConfig: {
73
73
  access: "public"
74
74
  },
75
- version: "1.51.0-next.3",
75
+ version: "1.51.0",
76
76
  sideEffects: false,
77
77
  main: "./dist/index.js",
78
78
  module: "./dist/index.mjs",
@@ -3591,7 +3591,7 @@ var CopilotRuntime = class {
3591
3591
  } : {},
3592
3592
  "cloud.base_url": cloudBaseUrl
3593
3593
  });
3594
- (_c = params == null ? void 0 : params.beforeRequestMiddleware) == null ? void 0 : _c.call(params, hookParams);
3594
+ const middlewareResult = await ((_c = params == null ? void 0 : params.beforeRequestMiddleware) == null ? void 0 : _c.call(params, hookParams));
3595
3595
  if ((_d = params == null ? void 0 : params.middleware) == null ? void 0 : _d.onBeforeRequest) {
3596
3596
  const { request: request2, runtime, path } = hookParams;
3597
3597
  const gqlMessages = aguiToGQL(body.messages).reduce((acc, msg) => {
@@ -3614,6 +3614,7 @@ var CopilotRuntime = class {
3614
3614
  url: request2.url
3615
3615
  });
3616
3616
  }
3617
+ return middlewareResult;
3617
3618
  };
3618
3619
  }
3619
3620
  createOnAfterRequestHandler(params) {