@copilotkit/runtime 1.51.2 → 1.51.3-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.
package/dist/index.mjs CHANGED
@@ -65,7 +65,7 @@ var require_package = __commonJS({
65
65
  publishConfig: {
66
66
  access: "public"
67
67
  },
68
- version: "1.51.2",
68
+ version: "1.51.3-next.0",
69
69
  sideEffects: false,
70
70
  main: "./dist/index.js",
71
71
  module: "./dist/index.mjs",
@@ -130,7 +130,7 @@ var require_package = __commonJS({
130
130
  graphql: "^16.8.1",
131
131
  "graphql-scalars": "^1.23.0",
132
132
  "graphql-yoga": "^5.3.1",
133
- hono: "^4.10.3",
133
+ hono: "^4.11.4",
134
134
  openai: "^4.85.1",
135
135
  "partial-json": "^0.1.7",
136
136
  pino: "^9.2.0",
@@ -4726,7 +4726,10 @@ function copilotRuntimeNextJSAppRouterEndpoint(options) {
4726
4726
  }
4727
4727
  const copilotRoute = createCopilotEndpointSingleRoute({
4728
4728
  runtime: options.runtime.instance,
4729
- basePath: options.baseUrl ?? options.endpoint
4729
+ basePath: options.baseUrl ?? options.endpoint,
4730
+ ...options.cors && {
4731
+ cors: options.cors
4732
+ }
4730
4733
  });
4731
4734
  const handleRequest = handle(copilotRoute);
4732
4735
  return {
@@ -4848,7 +4851,10 @@ function copilotRuntimeNodeHttpEndpoint(options) {
4848
4851
  }
4849
4852
  const honoApp = createCopilotEndpointSingleRoute({
4850
4853
  runtime: options.runtime.instance,
4851
- basePath: options.baseUrl ?? options.endpoint
4854
+ basePath: options.baseUrl ?? options.endpoint,
4855
+ ...options.cors && {
4856
+ cors: options.cors
4857
+ }
4852
4858
  });
4853
4859
  const handle2 = /* @__PURE__ */ __name(async function handler(req, res) {
4854
4860
  const url = getFullUrl(req);