@meistrari/chat-nuxt 4.2.0-rc.3 → 4.2.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
@@ -41,6 +41,8 @@ interface ChatNuxtModuleOptions {
41
41
  * to `false`; also settable via `NUXT_CHAT_NUXT_AGENT_API_V5`.
42
42
  */
43
43
  agentApiV5?: boolean;
44
+ /** Opt in to the 24-hour server-side pre-wake lookup cache. Defaults to false. */
45
+ preWakeCache?: boolean;
44
46
  }
45
47
  declare const _default: any;
46
48
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.2.0-rc.3",
4
+ "version": "4.2.0-rc.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -454,6 +454,7 @@ const module$1 = defineNuxtModule({
454
454
  // Explicit boolean default keeps the key in runtime config so the
455
455
  // NUXT_CHAT_NUXT_SECRETLESS_EXECUTION env override can apply.
456
456
  secretlessExecution: options.secretlessExecution ?? existingChatNuxtRuntimeConfig?.secretlessExecution ?? false,
457
+ preWakeCache: options.preWakeCache ?? existingChatNuxtRuntimeConfig?.preWakeCache ?? false,
457
458
  agentApiV5: options.agentApiV5 ?? existingChatNuxtRuntimeConfig?.agentApiV5 ?? false
458
459
  };
459
460
  if (hostAuthComposablePath && !rc.chatNuxt.authTokenCookie) {
@@ -6,8 +6,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
6
6
  } & {
7
7
  create: (canvasTools: CanvasTool[]) => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
9
- onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
10
9
  "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
10
+ onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  export default _default;
@@ -6,8 +6,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
6
6
  } & {
7
7
  create: (canvasTools: CanvasTool[]) => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
9
- onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
10
9
  "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
10
+ onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  export default _default;
@@ -9,11 +9,11 @@ type __VLS_Props = {
9
9
  showCredentialsTab?: boolean;
10
10
  };
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
- save: (payload: ChatConfigurationSavePayload) => any;
13
12
  "update:open": (value: boolean) => any;
13
+ save: (payload: ChatConfigurationSavePayload) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
16
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
+ onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
17
17
  }>, {
18
18
  initialTab: ChatConfigurationTab;
19
19
  saving: boolean;
@@ -9,11 +9,11 @@ type __VLS_Props = {
9
9
  showCredentialsTab?: boolean;
10
10
  };
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
- save: (payload: ChatConfigurationSavePayload) => any;
13
12
  "update:open": (value: boolean) => any;
13
+ save: (payload: ChatConfigurationSavePayload) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
16
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
+ onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
17
17
  }>, {
18
18
  initialTab: ChatConfigurationTab;
19
19
  saving: boolean;
@@ -16,10 +16,10 @@ type __VLS_Props = {
16
16
  };
17
17
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
18
  delete: () => any;
19
- copyLink: () => any;
20
19
  rename: () => any;
21
20
  duplicate: () => any;
22
21
  export: () => any;
22
+ copyLink: () => any;
23
23
  debug: () => any;
24
24
  tabChange: (tab: TopbarTab) => any;
25
25
  cancelEditing: () => any;
@@ -28,10 +28,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
28
28
  "update:isEditing": (value: boolean) => any;
29
29
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
30
  onDelete?: (() => any) | undefined;
31
- onCopyLink?: (() => any) | undefined;
32
31
  onRename?: (() => any) | undefined;
33
32
  onDuplicate?: (() => any) | undefined;
34
33
  onExport?: (() => any) | undefined;
34
+ onCopyLink?: (() => any) | undefined;
35
35
  onDebug?: (() => any) | undefined;
36
36
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
37
37
  onCancelEditing?: (() => any) | undefined;
@@ -16,10 +16,10 @@ type __VLS_Props = {
16
16
  };
17
17
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
18
  delete: () => any;
19
- copyLink: () => any;
20
19
  rename: () => any;
21
20
  duplicate: () => any;
22
21
  export: () => any;
22
+ copyLink: () => any;
23
23
  debug: () => any;
24
24
  tabChange: (tab: TopbarTab) => any;
25
25
  cancelEditing: () => any;
@@ -28,10 +28,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
28
28
  "update:isEditing": (value: boolean) => any;
29
29
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
30
  onDelete?: (() => any) | undefined;
31
- onCopyLink?: (() => any) | undefined;
32
31
  onRename?: (() => any) | undefined;
33
32
  onDuplicate?: (() => any) | undefined;
34
33
  onExport?: (() => any) | undefined;
34
+ onCopyLink?: (() => any) | undefined;
35
35
  onDebug?: (() => any) | undefined;
36
36
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
37
37
  onCancelEditing?: (() => any) | undefined;
@@ -15,22 +15,22 @@ type __VLS_Props = {
15
15
  };
16
16
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
17
  delete: () => any;
18
- openDrawer: () => any;
19
- copyLink: () => any;
20
- openOutdatedSettings: () => any;
21
18
  rename: () => any;
22
19
  duplicate: () => any;
23
20
  export: () => any;
21
+ copyLink: () => any;
22
+ openDrawer: () => any;
23
+ openOutdatedSettings: () => any;
24
24
  debug: () => any;
25
25
  tabChange: (tab: TopbarTab) => any;
26
26
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
27
  onDelete?: (() => any) | undefined;
28
- onOpenDrawer?: (() => any) | undefined;
29
- onCopyLink?: (() => any) | undefined;
30
- onOpenOutdatedSettings?: (() => any) | undefined;
31
28
  onRename?: (() => any) | undefined;
32
29
  onDuplicate?: (() => any) | undefined;
33
30
  onExport?: (() => any) | undefined;
31
+ onCopyLink?: (() => any) | undefined;
32
+ onOpenDrawer?: (() => any) | undefined;
33
+ onOpenOutdatedSettings?: (() => any) | undefined;
34
34
  onDebug?: (() => any) | undefined;
35
35
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
36
36
  }>, {
@@ -15,22 +15,22 @@ type __VLS_Props = {
15
15
  };
16
16
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
17
  delete: () => any;
18
- openDrawer: () => any;
19
- copyLink: () => any;
20
- openOutdatedSettings: () => any;
21
18
  rename: () => any;
22
19
  duplicate: () => any;
23
20
  export: () => any;
21
+ copyLink: () => any;
22
+ openDrawer: () => any;
23
+ openOutdatedSettings: () => any;
24
24
  debug: () => any;
25
25
  tabChange: (tab: TopbarTab) => any;
26
26
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
27
  onDelete?: (() => any) | undefined;
28
- onOpenDrawer?: (() => any) | undefined;
29
- onCopyLink?: (() => any) | undefined;
30
- onOpenOutdatedSettings?: (() => any) | undefined;
31
28
  onRename?: (() => any) | undefined;
32
29
  onDuplicate?: (() => any) | undefined;
33
30
  onExport?: (() => any) | undefined;
31
+ onCopyLink?: (() => any) | undefined;
32
+ onOpenDrawer?: (() => any) | undefined;
33
+ onOpenOutdatedSettings?: (() => any) | undefined;
34
34
  onDebug?: (() => any) | undefined;
35
35
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
36
36
  }>, {
@@ -61,12 +61,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
61
61
  } & {
62
62
  delete: () => any;
63
63
  cancel: () => any;
64
- settings: () => any;
65
- send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
66
- copyLink: () => any;
67
64
  rename: () => any;
68
65
  duplicate: () => any;
69
66
  export: () => any;
67
+ copyLink: () => any;
68
+ selectConversation: (id: string) => any;
69
+ settings: () => any;
70
+ send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
70
71
  debug: () => any;
71
72
  tabChange: (tab: TopbarTab) => any;
72
73
  newConversation: (groupId?: string | null | undefined) => any;
@@ -75,21 +76,21 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
75
76
  cancelEditing: () => any;
76
77
  dismissOutdatedBanner: () => any;
77
78
  saveTitle: () => any;
78
- selectConversation: (id: string) => any;
79
79
  "update:drawerOpen": (value: boolean) => any;
80
80
  "update:editTitle": (value: string) => any;
81
81
  "update:workspaceSheetOpen": (value: boolean) => any;
82
82
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
83
83
  onDelete?: (() => any) | undefined;
84
84
  onCancel?: (() => any) | undefined;
85
+ onRename?: (() => any) | undefined;
86
+ onDuplicate?: (() => any) | undefined;
87
+ onExport?: (() => any) | undefined;
88
+ onCopyLink?: (() => any) | undefined;
89
+ onSelectConversation?: ((id: string) => any) | undefined;
85
90
  onSettings?: (() => any) | undefined;
86
91
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
87
92
  "onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
88
93
  "onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
89
- onCopyLink?: (() => any) | undefined;
90
- onRename?: (() => any) | undefined;
91
- onDuplicate?: (() => any) | undefined;
92
- onExport?: (() => any) | undefined;
93
94
  onDebug?: (() => any) | undefined;
94
95
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
95
96
  onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
@@ -98,7 +99,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
98
99
  onCancelEditing?: (() => any) | undefined;
99
100
  onDismissOutdatedBanner?: (() => any) | undefined;
100
101
  onSaveTitle?: (() => any) | undefined;
101
- onSelectConversation?: ((id: string) => any) | undefined;
102
102
  "onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
103
103
  "onUpdate:editTitle"?: ((value: string) => any) | undefined;
104
104
  "onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
@@ -61,12 +61,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
61
61
  } & {
62
62
  delete: () => any;
63
63
  cancel: () => any;
64
- settings: () => any;
65
- send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
66
- copyLink: () => any;
67
64
  rename: () => any;
68
65
  duplicate: () => any;
69
66
  export: () => any;
67
+ copyLink: () => any;
68
+ selectConversation: (id: string) => any;
69
+ settings: () => any;
70
+ send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
70
71
  debug: () => any;
71
72
  tabChange: (tab: TopbarTab) => any;
72
73
  newConversation: (groupId?: string | null | undefined) => any;
@@ -75,21 +76,21 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
75
76
  cancelEditing: () => any;
76
77
  dismissOutdatedBanner: () => any;
77
78
  saveTitle: () => any;
78
- selectConversation: (id: string) => any;
79
79
  "update:drawerOpen": (value: boolean) => any;
80
80
  "update:editTitle": (value: string) => any;
81
81
  "update:workspaceSheetOpen": (value: boolean) => any;
82
82
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
83
83
  onDelete?: (() => any) | undefined;
84
84
  onCancel?: (() => any) | undefined;
85
+ onRename?: (() => any) | undefined;
86
+ onDuplicate?: (() => any) | undefined;
87
+ onExport?: (() => any) | undefined;
88
+ onCopyLink?: (() => any) | undefined;
89
+ onSelectConversation?: ((id: string) => any) | undefined;
85
90
  onSettings?: (() => any) | undefined;
86
91
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
87
92
  "onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
88
93
  "onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
89
- onCopyLink?: (() => any) | undefined;
90
- onRename?: (() => any) | undefined;
91
- onDuplicate?: (() => any) | undefined;
92
- onExport?: (() => any) | undefined;
93
94
  onDebug?: (() => any) | undefined;
94
95
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
95
96
  onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
@@ -98,7 +99,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
98
99
  onCancelEditing?: (() => any) | undefined;
99
100
  onDismissOutdatedBanner?: (() => any) | undefined;
100
101
  onSaveTitle?: (() => any) | undefined;
101
- onSelectConversation?: ((id: string) => any) | undefined;
102
102
  "onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
103
103
  "onUpdate:editTitle"?: ((value: string) => any) | undefined;
104
104
  "onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { AGENT_API_V5_CONFIG_KEY, CONVERSATION_V2_CONFIG_KEY, PREPARED_AGENT_RUNTIME_CONFIG_KEY, SECRETLESS_EXECUTION_CONFIG_KEY } from "../../types/schemas/chat/chat-config.js";
1
+ import { AGENT_API_V5_CONFIG_KEY, PRE_WAKE_CACHE_CONFIG_KEY, CONVERSATION_V2_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";
@@ -77,6 +77,9 @@ function buildProxyHeaders(event) {
77
77
  if (config.chatNuxt?.secretlessExecution) {
78
78
  chatConfig[SECRETLESS_EXECUTION_CONFIG_KEY] = true;
79
79
  }
80
+ if (config.chatNuxt?.preWakeCache === true) {
81
+ chatConfig[PRE_WAKE_CACHE_CONFIG_KEY] = true;
82
+ }
80
83
  if (config.chatNuxt?.agentApiV5) {
81
84
  chatConfig[AGENT_API_V5_CONFIG_KEY] = true;
82
85
  }
@@ -2,3 +2,4 @@ export declare const PREPARED_AGENT_RUNTIME_CONFIG_KEY = "prepared-agent-runtime
2
2
  export declare const SECRETLESS_EXECUTION_CONFIG_KEY = "secretless-execution";
3
3
  export declare const AGENT_API_V5_CONFIG_KEY = "agent-api-v5";
4
4
  export declare const CONVERSATION_V2_CONFIG_KEY = "conversation-v2";
5
+ export declare const PRE_WAKE_CACHE_CONFIG_KEY = "pre-wake-cache";
@@ -2,3 +2,4 @@ export const PREPARED_AGENT_RUNTIME_CONFIG_KEY = 'prepared-agent-runtime';
2
2
  export const SECRETLESS_EXECUTION_CONFIG_KEY = 'secretless-execution';
3
3
  export const AGENT_API_V5_CONFIG_KEY = 'agent-api-v5';
4
4
  export const CONVERSATION_V2_CONFIG_KEY = 'conversation-v2';
5
+ export const PRE_WAKE_CACHE_CONFIG_KEY = 'pre-wake-cache';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.2.0-rc.3",
3
+ "version": "4.2.0-rc.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {