@meistrari/chat-nuxt 4.15.0-rc.3 → 4.15.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.json +1 -1
- package/dist/runtime/embed/components/chat-embed-inner.vue +1 -0
- package/dist/runtime/embed/components/chat-embed.vue +4 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.d.vue.ts +2 -2
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue.d.ts +2 -2
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +3 -2
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue +2 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +3 -2
- package/dist/runtime/types/composer.d.ts +5 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1116,6 +1116,7 @@ defineExpose({
|
|
|
1116
1116
|
:generating-title="generatingTitle"
|
|
1117
1117
|
:has-messages="hasMessages"
|
|
1118
1118
|
:has-pending-message="composerLocked"
|
|
1119
|
+
:send-blocked="sendBlocked"
|
|
1119
1120
|
:draft-storage-key="draftStorageKey"
|
|
1120
1121
|
:hide-settings="hideSettings"
|
|
1121
1122
|
:hide-sidebar="hideSidebar"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { CHAT_COMPOSER_EXTENSION_KEY } from "../../types/composer";
|
|
2
3
|
import { useChatAuth } from "#chat-auth";
|
|
3
4
|
import { provideConversationCreatorFilterState } from "../../conversations/composables/conversation-creator-filter-state";
|
|
4
5
|
import { provideChatAction } from "../../messages/composables/chat-action";
|
|
@@ -73,6 +74,8 @@ const { harness, loading: harnessLoading, confirmed: harnessConfirmed, error: ha
|
|
|
73
74
|
onConversationCleared: () => emit("update:conversationId", null),
|
|
74
75
|
conversationScope: computed(() => normalizeConversationScope(props.conversationScope))
|
|
75
76
|
});
|
|
77
|
+
const composerExtension = inject(CHAT_COMPOSER_EXTENSION_KEY, null);
|
|
78
|
+
const sendBlocked = computed(() => !harnessConfirmed.value || !!unref(composerExtension?.sendBlocked));
|
|
76
79
|
const harnessComponents = { claude: ChatEmbedInner, lightweight: LightweightAdapter };
|
|
77
80
|
const harnessComponent = computed(() => harness.value ? harnessComponents[harness.value] : null);
|
|
78
81
|
const normalizedConversationScope = computed(() => normalizeConversationScope(props.conversationScope));
|
|
@@ -179,7 +182,7 @@ defineExpose({
|
|
|
179
182
|
:conversation-id="selectedConversationId"
|
|
180
183
|
:conversation-events="conversationEvents"
|
|
181
184
|
:composer-disabled="composerDisabled || !!harnessError"
|
|
182
|
-
:send-blocked="
|
|
185
|
+
:send-blocked="sendBlocked"
|
|
183
186
|
:initial-conversation-id="selectedConversationId"
|
|
184
187
|
:hide-sidebar="hideSidebar"
|
|
185
188
|
:sidebar="sidebar"
|
|
@@ -10,12 +10,12 @@ type __VLS_Props = {
|
|
|
10
10
|
userImage?: string;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
-
select: (id: string) => any;
|
|
14
13
|
close: () => any;
|
|
14
|
+
select: (id: string) => any;
|
|
15
15
|
newConvo: (groupId?: string | null | undefined) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onSelect?: ((id: string) => any) | undefined;
|
|
18
17
|
onClose?: (() => any) | undefined;
|
|
18
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
19
19
|
onNewConvo?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,12 +10,12 @@ type __VLS_Props = {
|
|
|
10
10
|
userImage?: string;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
-
select: (id: string) => any;
|
|
14
13
|
close: () => any;
|
|
14
|
+
select: (id: string) => any;
|
|
15
15
|
newConvo: (groupId?: string | null | undefined) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onSelect?: ((id: string) => any) | undefined;
|
|
18
17
|
onClose?: (() => any) | undefined;
|
|
18
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
19
19
|
onNewConvo?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -28,6 +28,7 @@ type __VLS_Props = {
|
|
|
28
28
|
generatingTitle?: boolean;
|
|
29
29
|
hasMessages: boolean;
|
|
30
30
|
hasPendingMessage?: boolean;
|
|
31
|
+
sendBlocked?: boolean;
|
|
31
32
|
hideSettings?: boolean;
|
|
32
33
|
hideSidebar?: boolean;
|
|
33
34
|
isEditing: boolean;
|
|
@@ -67,11 +68,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
67
68
|
"update:selectedReasoningEffort": (value: any) => any;
|
|
68
69
|
} & {
|
|
69
70
|
delete: () => any;
|
|
70
|
-
cancel: () => any;
|
|
71
71
|
rename: () => any;
|
|
72
72
|
duplicate: () => any;
|
|
73
73
|
export: () => any;
|
|
74
74
|
copyLink: () => any;
|
|
75
|
+
cancel: () => any;
|
|
75
76
|
debug: () => any;
|
|
76
77
|
selectConversation: (id: string) => any;
|
|
77
78
|
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
@@ -89,11 +90,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
89
90
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
90
91
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
91
92
|
onDelete?: (() => any) | undefined;
|
|
92
|
-
onCancel?: (() => any) | undefined;
|
|
93
93
|
onRename?: (() => any) | undefined;
|
|
94
94
|
onDuplicate?: (() => any) | undefined;
|
|
95
95
|
onExport?: (() => any) | undefined;
|
|
96
96
|
onCopyLink?: (() => any) | undefined;
|
|
97
|
+
onCancel?: (() => any) | undefined;
|
|
97
98
|
onDebug?: (() => any) | undefined;
|
|
98
99
|
onSelectConversation?: ((id: string) => any) | undefined;
|
|
99
100
|
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
@@ -33,6 +33,7 @@ const props = defineProps({
|
|
|
33
33
|
generatingTitle: { type: Boolean, required: false },
|
|
34
34
|
hasMessages: { type: Boolean, required: true },
|
|
35
35
|
hasPendingMessage: { type: Boolean, required: false },
|
|
36
|
+
sendBlocked: { type: Boolean, required: false },
|
|
36
37
|
hideSettings: { type: Boolean, required: false },
|
|
37
38
|
hideSidebar: { type: Boolean, required: false },
|
|
38
39
|
isEditing: { type: Boolean, required: true },
|
|
@@ -238,6 +239,7 @@ function startNewConversationFromOutdatedSettings() {
|
|
|
238
239
|
v-model:selected-model="selectedModel"
|
|
239
240
|
v-model:selected-reasoning-effort="selectedReasoningEffort"
|
|
240
241
|
:loading="hasPendingMessage"
|
|
242
|
+
:send-blocked="sendBlocked"
|
|
241
243
|
:draft-storage-key="draftStorageKey"
|
|
242
244
|
:creator-name="currentUser?.name ?? void 0"
|
|
243
245
|
:creator-email="currentUser?.email ?? void 0"
|
|
@@ -28,6 +28,7 @@ type __VLS_Props = {
|
|
|
28
28
|
generatingTitle?: boolean;
|
|
29
29
|
hasMessages: boolean;
|
|
30
30
|
hasPendingMessage?: boolean;
|
|
31
|
+
sendBlocked?: boolean;
|
|
31
32
|
hideSettings?: boolean;
|
|
32
33
|
hideSidebar?: boolean;
|
|
33
34
|
isEditing: boolean;
|
|
@@ -67,11 +68,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
67
68
|
"update:selectedReasoningEffort": (value: any) => any;
|
|
68
69
|
} & {
|
|
69
70
|
delete: () => any;
|
|
70
|
-
cancel: () => any;
|
|
71
71
|
rename: () => any;
|
|
72
72
|
duplicate: () => any;
|
|
73
73
|
export: () => any;
|
|
74
74
|
copyLink: () => any;
|
|
75
|
+
cancel: () => any;
|
|
75
76
|
debug: () => any;
|
|
76
77
|
selectConversation: (id: string) => any;
|
|
77
78
|
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
@@ -89,11 +90,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
89
90
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
90
91
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
91
92
|
onDelete?: (() => any) | undefined;
|
|
92
|
-
onCancel?: (() => any) | undefined;
|
|
93
93
|
onRename?: (() => any) | undefined;
|
|
94
94
|
onDuplicate?: (() => any) | undefined;
|
|
95
95
|
onExport?: (() => any) | undefined;
|
|
96
96
|
onCopyLink?: (() => any) | undefined;
|
|
97
|
+
onCancel?: (() => any) | undefined;
|
|
97
98
|
onDebug?: (() => any) | undefined;
|
|
98
99
|
onSelectConversation?: ((id: string) => any) | undefined;
|
|
99
100
|
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
@@ -38,4 +38,9 @@ export interface ChatComposerExtension {
|
|
|
38
38
|
prepareSend?: (content: string) => ChatPreparedSend | null | undefined;
|
|
39
39
|
/** Host commands offered alongside skills when the user types "/". */
|
|
40
40
|
commands?: readonly ChatComposerCommand[];
|
|
41
|
+
/**
|
|
42
|
+
* While true the composer cannot send: the send button is disabled and Enter does nothing.
|
|
43
|
+
* Typing stays enabled, so the draft is kept until the host lifts the block.
|
|
44
|
+
*/
|
|
45
|
+
sendBlocked?: MaybeRef<boolean>;
|
|
41
46
|
}
|