@meistrari/chat-nuxt 3.14.0-rc.1 → 3.14.0-rc.3
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 +7 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -1
- package/dist/runtime/conversations/components/chat-new-conversation-modal.d.vue.ts +1 -1
- package/dist/runtime/conversations/components/chat-new-conversation-modal.vue.d.ts +1 -1
- package/dist/runtime/embed/components/chat-configuration-modal.d.vue.ts +2 -2
- package/dist/runtime/embed/components/chat-configuration-modal.vue.d.ts +2 -2
- package/dist/runtime/embed/components/chat-topbar.d.vue.ts +2 -2
- package/dist/runtime/embed/components/chat-topbar.vue.d.ts +2 -2
- package/dist/runtime/embed/components/mobile/chat-mobile-header.d.vue.ts +6 -6
- package/dist/runtime/embed/components/mobile/chat-mobile-header.vue.d.ts +6 -6
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +9 -9
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +9 -9
- package/dist/runtime/server/utils/chat-api-proxy.js +7 -3
- package/dist/runtime/types/schemas/chat/chat-config.d.ts +1 -0
- package/dist/runtime/types/schemas/chat/chat-config.js +1 -0
- package/package.json +2 -2
package/dist/module.d.mts
CHANGED
|
@@ -27,6 +27,13 @@ interface ChatNuxtModuleOptions {
|
|
|
27
27
|
* `@meistrari/auth-nuxt`.
|
|
28
28
|
*/
|
|
29
29
|
authTokenCookie?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Opt this deployment into secretless agent execution: the server proxy
|
|
32
|
+
* adds `"secretless-execution": true` to the `x-chat-config` header sent
|
|
33
|
+
* to the chat-api. Defaults to `false`; also settable per environment via
|
|
34
|
+
* `NUXT_CHAT_NUXT_SECRETLESS_EXECUTION`.
|
|
35
|
+
*/
|
|
36
|
+
secretlessExecution?: boolean;
|
|
30
37
|
}
|
|
31
38
|
declare const _default: any;
|
|
32
39
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -444,7 +444,10 @@ const module$1 = defineNuxtModule({
|
|
|
444
444
|
chatApiUrl: existingChatNuxtRuntimeConfig?.chatApiUrl || rc.chatApiUrl,
|
|
445
445
|
source: options.source || existingChatNuxtRuntimeConfig?.source,
|
|
446
446
|
clientVersion: _chatNuxtPackageVersion,
|
|
447
|
-
authTokenCookie: hostAuthComposablePath ? options.authTokenCookie || existingChatNuxtRuntimeConfig?.authTokenCookie : void 0
|
|
447
|
+
authTokenCookie: hostAuthComposablePath ? options.authTokenCookie || existingChatNuxtRuntimeConfig?.authTokenCookie : void 0,
|
|
448
|
+
// Explicit boolean default keeps the key in runtime config so the
|
|
449
|
+
// NUXT_CHAT_NUXT_SECRETLESS_EXECUTION env override can apply.
|
|
450
|
+
secretlessExecution: options.secretlessExecution ?? existingChatNuxtRuntimeConfig?.secretlessExecution ?? false
|
|
448
451
|
};
|
|
449
452
|
if (hostAuthComposablePath && !rc.chatNuxt.authTokenCookie) {
|
|
450
453
|
console.warn(
|
|
@@ -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
|
}>, {
|
|
@@ -58,12 +58,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
58
58
|
} & {
|
|
59
59
|
delete: () => any;
|
|
60
60
|
cancel: () => any;
|
|
61
|
-
settings: () => any;
|
|
62
|
-
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
63
|
-
copyLink: () => any;
|
|
64
61
|
rename: () => any;
|
|
65
62
|
duplicate: () => any;
|
|
66
63
|
export: () => any;
|
|
64
|
+
copyLink: () => any;
|
|
65
|
+
selectConversation: (id: string) => any;
|
|
66
|
+
settings: () => any;
|
|
67
|
+
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
67
68
|
debug: () => any;
|
|
68
69
|
tabChange: (tab: TopbarTab) => any;
|
|
69
70
|
newConversation: (groupId?: string | null | undefined) => any;
|
|
@@ -72,20 +73,20 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
72
73
|
cancelEditing: () => any;
|
|
73
74
|
dismissOutdatedBanner: () => any;
|
|
74
75
|
saveTitle: () => any;
|
|
75
|
-
selectConversation: (id: string) => any;
|
|
76
76
|
"update:drawerOpen": (value: boolean) => any;
|
|
77
77
|
"update:editTitle": (value: string) => any;
|
|
78
78
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
79
79
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
80
80
|
onDelete?: (() => any) | undefined;
|
|
81
81
|
onCancel?: (() => any) | undefined;
|
|
82
|
-
onSettings?: (() => any) | undefined;
|
|
83
|
-
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
84
|
-
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
85
|
-
onCopyLink?: (() => any) | undefined;
|
|
86
82
|
onRename?: (() => any) | undefined;
|
|
87
83
|
onDuplicate?: (() => any) | undefined;
|
|
88
84
|
onExport?: (() => any) | undefined;
|
|
85
|
+
onCopyLink?: (() => any) | undefined;
|
|
86
|
+
onSelectConversation?: ((id: string) => any) | undefined;
|
|
87
|
+
onSettings?: (() => any) | undefined;
|
|
88
|
+
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
89
|
+
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
89
90
|
onDebug?: (() => any) | undefined;
|
|
90
91
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
91
92
|
onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
@@ -94,7 +95,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
94
95
|
onCancelEditing?: (() => any) | undefined;
|
|
95
96
|
onDismissOutdatedBanner?: (() => any) | undefined;
|
|
96
97
|
onSaveTitle?: (() => any) | undefined;
|
|
97
|
-
onSelectConversation?: ((id: string) => any) | undefined;
|
|
98
98
|
"onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
|
|
99
99
|
"onUpdate:editTitle"?: ((value: string) => any) | undefined;
|
|
100
100
|
"onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -58,12 +58,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
58
58
|
} & {
|
|
59
59
|
delete: () => any;
|
|
60
60
|
cancel: () => any;
|
|
61
|
-
settings: () => any;
|
|
62
|
-
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
63
|
-
copyLink: () => any;
|
|
64
61
|
rename: () => any;
|
|
65
62
|
duplicate: () => any;
|
|
66
63
|
export: () => any;
|
|
64
|
+
copyLink: () => any;
|
|
65
|
+
selectConversation: (id: string) => any;
|
|
66
|
+
settings: () => any;
|
|
67
|
+
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
67
68
|
debug: () => any;
|
|
68
69
|
tabChange: (tab: TopbarTab) => any;
|
|
69
70
|
newConversation: (groupId?: string | null | undefined) => any;
|
|
@@ -72,20 +73,20 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
72
73
|
cancelEditing: () => any;
|
|
73
74
|
dismissOutdatedBanner: () => any;
|
|
74
75
|
saveTitle: () => any;
|
|
75
|
-
selectConversation: (id: string) => any;
|
|
76
76
|
"update:drawerOpen": (value: boolean) => any;
|
|
77
77
|
"update:editTitle": (value: string) => any;
|
|
78
78
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
79
79
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
80
80
|
onDelete?: (() => any) | undefined;
|
|
81
81
|
onCancel?: (() => any) | undefined;
|
|
82
|
-
onSettings?: (() => any) | undefined;
|
|
83
|
-
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
84
|
-
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
85
|
-
onCopyLink?: (() => any) | undefined;
|
|
86
82
|
onRename?: (() => any) | undefined;
|
|
87
83
|
onDuplicate?: (() => any) | undefined;
|
|
88
84
|
onExport?: (() => any) | undefined;
|
|
85
|
+
onCopyLink?: (() => any) | undefined;
|
|
86
|
+
onSelectConversation?: ((id: string) => any) | undefined;
|
|
87
|
+
onSettings?: (() => any) | undefined;
|
|
88
|
+
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
89
|
+
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
89
90
|
onDebug?: (() => any) | undefined;
|
|
90
91
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
91
92
|
onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
@@ -94,7 +95,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
94
95
|
onCancelEditing?: (() => any) | undefined;
|
|
95
96
|
onDismissOutdatedBanner?: (() => any) | undefined;
|
|
96
97
|
onSaveTitle?: (() => any) | undefined;
|
|
97
|
-
onSelectConversation?: ((id: string) => any) | undefined;
|
|
98
98
|
"onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
|
|
99
99
|
"onUpdate:editTitle"?: ((value: string) => any) | undefined;
|
|
100
100
|
"onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PREPARED_AGENT_RUNTIME_CONFIG_KEY } from "../../types/schemas/chat/chat-config.js";
|
|
1
|
+
import { 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";
|
|
@@ -58,12 +58,16 @@ function buildProxyHeaders(event) {
|
|
|
58
58
|
statusMessage: "Authentication token is required"
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
+
const config = useRuntimeConfig(event);
|
|
62
|
+
const chatConfig = { [PREPARED_AGENT_RUNTIME_CONFIG_KEY]: true };
|
|
63
|
+
if (config.chatNuxt?.secretlessExecution) {
|
|
64
|
+
chatConfig[SECRETLESS_EXECUTION_CONFIG_KEY] = true;
|
|
65
|
+
}
|
|
61
66
|
const headers = {
|
|
62
67
|
"authorization": `Bearer ${token}`,
|
|
63
68
|
"x-chat-client": "chat-nuxt",
|
|
64
|
-
"x-chat-config": JSON.stringify(
|
|
69
|
+
"x-chat-config": JSON.stringify(chatConfig)
|
|
65
70
|
};
|
|
66
|
-
const config = useRuntimeConfig(event);
|
|
67
71
|
if (config.chatNuxt?.clientVersion) {
|
|
68
72
|
headers["x-chat-client-version"] = config.chatNuxt.clientVersion;
|
|
69
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/chat-nuxt",
|
|
3
|
-
"version": "3.14.0-rc.
|
|
3
|
+
"version": "3.14.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@iconify/vue": "^5.0.0",
|
|
47
47
|
"@meistrari/auth-nuxt": "3.31.0",
|
|
48
48
|
"@meistrari/logger": "^2.1.3",
|
|
49
|
-
"@meistrari/tela-build": "^1.
|
|
49
|
+
"@meistrari/tela-build": "^1.66.0",
|
|
50
50
|
"@sentry/nuxt": "^10.0.0",
|
|
51
51
|
"@vueuse/components": "^12.8.0",
|
|
52
52
|
"@vueuse/core": "^12.8.0",
|