@meistrari/chat-nuxt 3.17.0-rc.3 → 3.17.0-rc.4

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/module.d.mts CHANGED
@@ -34,6 +34,13 @@ interface ChatNuxtModuleOptions {
34
34
  * `NUXT_CHAT_NUXT_SECRETLESS_EXECUTION`.
35
35
  */
36
36
  secretlessExecution?: boolean;
37
+ /**
38
+ * Opt this deployment into the experimental agent-api v5 snapshot path: the
39
+ * server proxy adds `"agent-api-v5": true` to the `x-chat-config` header, so
40
+ * wake and execute prefer the published snapshot (with v4 fallback). Defaults
41
+ * to `false`; also settable via `NUXT_CHAT_NUXT_AGENT_API_V5`.
42
+ */
43
+ agentApiV5?: boolean;
37
44
  }
38
45
  declare const _default: any;
39
46
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "3.17.0-rc.3",
4
+ "version": "3.17.0-rc.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -451,7 +451,8 @@ const module$1 = defineNuxtModule({
451
451
  authTokenCookie: hostAuthComposablePath ? options.authTokenCookie || existingChatNuxtRuntimeConfig?.authTokenCookie : void 0,
452
452
  // Explicit boolean default keeps the key in runtime config so the
453
453
  // NUXT_CHAT_NUXT_SECRETLESS_EXECUTION env override can apply.
454
- secretlessExecution: options.secretlessExecution ?? existingChatNuxtRuntimeConfig?.secretlessExecution ?? false
454
+ secretlessExecution: options.secretlessExecution ?? existingChatNuxtRuntimeConfig?.secretlessExecution ?? false,
455
+ agentApiV5: options.agentApiV5 ?? existingChatNuxtRuntimeConfig?.agentApiV5 ?? false
455
456
  };
456
457
  if (hostAuthComposablePath && !rc.chatNuxt.authTokenCookie) {
457
458
  console.warn(
@@ -1,4 +1,4 @@
1
- import { PREPARED_AGENT_RUNTIME_CONFIG_KEY, SECRETLESS_EXECUTION_CONFIG_KEY } from "../../types/schemas/chat/chat-config.js";
1
+ import { AGENT_API_V5_CONFIG_KEY, PREPARED_AGENT_RUNTIME_CONFIG_KEY, SECRETLESS_EXECUTION_CONFIG_KEY } from "../../types/schemas/chat/chat-config.js";
2
2
  import { createError, defineEventHandler, getHeader, getRequestURL, getRouterParam, proxyRequest } from "h3";
3
3
  import { useRuntimeConfig } from "nitropack/runtime";
4
4
  import { resolveAuthToken } from "./auth-token.js";
@@ -64,6 +64,9 @@ function buildProxyHeaders(event) {
64
64
  if (config.chatNuxt?.secretlessExecution) {
65
65
  chatConfig[SECRETLESS_EXECUTION_CONFIG_KEY] = true;
66
66
  }
67
+ if (config.chatNuxt?.agentApiV5) {
68
+ chatConfig[AGENT_API_V5_CONFIG_KEY] = true;
69
+ }
67
70
  const headers = {
68
71
  "authorization": `Bearer ${token}`,
69
72
  "x-chat-client": "chat-nuxt",
@@ -1,2 +1,3 @@
1
1
  export declare const PREPARED_AGENT_RUNTIME_CONFIG_KEY = "prepared-agent-runtime";
2
2
  export declare const SECRETLESS_EXECUTION_CONFIG_KEY = "secretless-execution";
3
+ export declare const AGENT_API_V5_CONFIG_KEY = "agent-api-v5";
@@ -1,2 +1,3 @@
1
1
  export const PREPARED_AGENT_RUNTIME_CONFIG_KEY = 'prepared-agent-runtime';
2
2
  export const SECRETLESS_EXECUTION_CONFIG_KEY = 'secretless-execution';
3
+ export const AGENT_API_V5_CONFIG_KEY = 'agent-api-v5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "3.17.0-rc.3",
3
+ "version": "3.17.0-rc.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {