@meistrari/chat-nuxt 4.14.0-rc.1 → 4.14.0-rc.10

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.
Files changed (33) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/conversations/components/chat-conversation-list.vue +1 -1
  3. package/dist/runtime/embed/components/chat-embed-inner.d.vue.ts +20 -14
  4. package/dist/runtime/embed/components/chat-embed-inner.vue +9 -0
  5. package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +20 -14
  6. package/dist/runtime/embed/components/chat-embed.d.vue.ts +5 -3
  7. package/dist/runtime/embed/components/chat-embed.vue +3 -0
  8. package/dist/runtime/embed/components/chat-embed.vue.d.ts +5 -3
  9. package/dist/runtime/embed/components/meistrari-chat-embed.d.vue.ts +2 -0
  10. package/dist/runtime/embed/components/meistrari-chat-embed.vue +9 -0
  11. package/dist/runtime/embed/components/meistrari-chat-embed.vue.d.ts +2 -0
  12. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.d.vue.ts +2 -2
  13. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue.d.ts +2 -2
  14. package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +7 -5
  15. package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue +8 -6
  16. package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +7 -5
  17. package/dist/runtime/messages/components/chat-message-input.vue +9 -12
  18. package/dist/runtime/messages/components/chat-model-selector.d.vue.ts +6 -0
  19. package/dist/runtime/messages/components/chat-model-selector.vue +27 -21
  20. package/dist/runtime/messages/components/chat-model-selector.vue.d.ts +6 -0
  21. package/dist/runtime/messages/components/chat-reasoning-selector.vue +51 -0
  22. package/dist/runtime/types/schemas/chat/v3.d.ts +104 -0
  23. package/dist/runtime/types/schemas/chat/v3.js +28 -0
  24. package/dist/runtime/types/schemas/integrations/agent-events.d.ts +6 -0
  25. package/dist/runtime/types/schemas/integrations/agent-events.js +5 -1
  26. package/dist/runtime/types/schemas/slack/apps.d.ts +58 -0
  27. package/dist/runtime/types/schemas/slack/apps.js +11 -3
  28. package/dist/runtime/types/schemas/slack/triggers.d.ts +64 -0
  29. package/dist/runtime/types/schemas/slack/triggers.js +33 -0
  30. package/package.json +2 -2
  31. package/dist/runtime/messages/components/chat-reasoning-effort-selector.vue +0 -168
  32. /package/dist/runtime/messages/components/{chat-reasoning-effort-selector.d.vue.ts → chat-reasoning-selector.d.vue.ts} +0 -0
  33. /package/dist/runtime/messages/components/{chat-reasoning-effort-selector.vue.d.ts → chat-reasoning-selector.vue.d.ts} +0 -0
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.14.0-rc.1",
4
+ "version": "4.14.0-rc.10",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -314,7 +314,7 @@ function dropTargetClass(row) {
314
314
  Pastas
315
315
  </span>
316
316
  <TelaIconButton
317
- icon="i-ph-folder-plus"
317
+ icon="i-ph-plus"
318
318
  color="secondary"
319
319
  size="sm"
320
320
  button-class="p-3px! rounded-6px!"
@@ -21,35 +21,41 @@ type __VLS_Props = {
21
21
  };
22
22
  declare function clearThread(): Promise<boolean>;
23
23
  declare function handleCancel(): Promise<void>;
24
- declare var __VLS_14: {}, __VLS_100: {}, __VLS_115: {
24
+ declare var __VLS_14: {}, __VLS_42: {}, __VLS_65: {}, __VLS_106: {}, __VLS_121: {
25
25
  message: useChatAuth;
26
- }, __VLS_118: {
26
+ }, __VLS_124: {
27
27
  message: useChatAuth;
28
- }, __VLS_132: {}, __VLS_141: {}, __VLS_213: {}, __VLS_234: {
28
+ }, __VLS_138: {}, __VLS_147: {}, __VLS_181: {}, __VLS_222: {}, __VLS_243: {
29
29
  message: useChatAuth;
30
- }, __VLS_237: {
30
+ }, __VLS_246: {
31
31
  message: useChatAuth;
32
- }, __VLS_251: {};
32
+ }, __VLS_260: {};
33
33
  type __VLS_Slots = {} & {
34
34
  'sidebar-bottom'?: (props: typeof __VLS_14) => any;
35
35
  } & {
36
- 'composer-bottom'?: (props: typeof __VLS_100) => any;
36
+ 'empty-state-header'?: (props: typeof __VLS_42) => any;
37
37
  } & {
38
- 'failed-message-actions'?: (props: typeof __VLS_115) => any;
38
+ 'empty-state-header'?: (props: typeof __VLS_65) => any;
39
39
  } & {
40
- 'user-message'?: (props: typeof __VLS_118) => any;
40
+ 'composer-bottom'?: (props: typeof __VLS_106) => any;
41
41
  } & {
42
- 'composer-bottom'?: (props: typeof __VLS_132) => any;
42
+ 'failed-message-actions'?: (props: typeof __VLS_121) => any;
43
43
  } & {
44
- 'topbar-leading'?: (props: typeof __VLS_141) => any;
44
+ 'user-message'?: (props: typeof __VLS_124) => any;
45
45
  } & {
46
- 'composer-bottom'?: (props: typeof __VLS_213) => any;
46
+ 'composer-bottom'?: (props: typeof __VLS_138) => any;
47
47
  } & {
48
- 'failed-message-actions'?: (props: typeof __VLS_234) => any;
48
+ 'topbar-leading'?: (props: typeof __VLS_147) => any;
49
49
  } & {
50
- 'user-message'?: (props: typeof __VLS_237) => any;
50
+ 'empty-state-header'?: (props: typeof __VLS_181) => any;
51
51
  } & {
52
- 'composer-bottom'?: (props: typeof __VLS_251) => any;
52
+ 'composer-bottom'?: (props: typeof __VLS_222) => any;
53
+ } & {
54
+ 'failed-message-actions'?: (props: typeof __VLS_243) => any;
55
+ } & {
56
+ 'user-message'?: (props: typeof __VLS_246) => any;
57
+ } & {
58
+ 'composer-bottom'?: (props: typeof __VLS_260) => any;
53
59
  };
54
60
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
55
61
  clear: typeof clearThread;
@@ -1157,6 +1157,9 @@ defineExpose({
1157
1157
  @switch-workspace="handleSwitchWorkspace"
1158
1158
  @tab-change="handleTabChange"
1159
1159
  >
1160
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
1161
+ <slot name="empty-state-header" />
1162
+ </template>
1160
1163
  <template #loading>
1161
1164
  <ChatMessageList
1162
1165
  :messages="[]"
@@ -1189,6 +1192,9 @@ defineExpose({
1189
1192
  :title="pendingFork ? void 0 : emptyStateLabels.title"
1190
1193
  :description="pendingFork ? void 0 : emptyStateLabels.description"
1191
1194
  >
1195
+ <template v-if="$slots['empty-state-header'] && !pendingFork" #header>
1196
+ <slot name="empty-state-header" />
1197
+ </template>
1192
1198
  <ChatForkPreparation
1193
1199
  v-if="pendingFork"
1194
1200
  compact
@@ -1421,6 +1427,9 @@ defineExpose({
1421
1427
  :title="pendingFork ? void 0 : emptyStateLabels.title"
1422
1428
  :description="pendingFork ? void 0 : emptyStateLabels.description"
1423
1429
  >
1430
+ <template v-if="$slots['empty-state-header'] && !pendingFork" #header>
1431
+ <slot name="empty-state-header" />
1432
+ </template>
1424
1433
  <ChatForkPreparation
1425
1434
  v-if="pendingFork"
1426
1435
  :compact="compact"
@@ -21,35 +21,41 @@ type __VLS_Props = {
21
21
  };
22
22
  declare function clearThread(): Promise<boolean>;
23
23
  declare function handleCancel(): Promise<void>;
24
- declare var __VLS_14: {}, __VLS_100: {}, __VLS_115: {
24
+ declare var __VLS_14: {}, __VLS_42: {}, __VLS_65: {}, __VLS_106: {}, __VLS_121: {
25
25
  message: useChatAuth;
26
- }, __VLS_118: {
26
+ }, __VLS_124: {
27
27
  message: useChatAuth;
28
- }, __VLS_132: {}, __VLS_141: {}, __VLS_213: {}, __VLS_234: {
28
+ }, __VLS_138: {}, __VLS_147: {}, __VLS_181: {}, __VLS_222: {}, __VLS_243: {
29
29
  message: useChatAuth;
30
- }, __VLS_237: {
30
+ }, __VLS_246: {
31
31
  message: useChatAuth;
32
- }, __VLS_251: {};
32
+ }, __VLS_260: {};
33
33
  type __VLS_Slots = {} & {
34
34
  'sidebar-bottom'?: (props: typeof __VLS_14) => any;
35
35
  } & {
36
- 'composer-bottom'?: (props: typeof __VLS_100) => any;
36
+ 'empty-state-header'?: (props: typeof __VLS_42) => any;
37
37
  } & {
38
- 'failed-message-actions'?: (props: typeof __VLS_115) => any;
38
+ 'empty-state-header'?: (props: typeof __VLS_65) => any;
39
39
  } & {
40
- 'user-message'?: (props: typeof __VLS_118) => any;
40
+ 'composer-bottom'?: (props: typeof __VLS_106) => any;
41
41
  } & {
42
- 'composer-bottom'?: (props: typeof __VLS_132) => any;
42
+ 'failed-message-actions'?: (props: typeof __VLS_121) => any;
43
43
  } & {
44
- 'topbar-leading'?: (props: typeof __VLS_141) => any;
44
+ 'user-message'?: (props: typeof __VLS_124) => any;
45
45
  } & {
46
- 'composer-bottom'?: (props: typeof __VLS_213) => any;
46
+ 'composer-bottom'?: (props: typeof __VLS_138) => any;
47
47
  } & {
48
- 'failed-message-actions'?: (props: typeof __VLS_234) => any;
48
+ 'topbar-leading'?: (props: typeof __VLS_147) => any;
49
49
  } & {
50
- 'user-message'?: (props: typeof __VLS_237) => any;
50
+ 'empty-state-header'?: (props: typeof __VLS_181) => any;
51
51
  } & {
52
- 'composer-bottom'?: (props: typeof __VLS_251) => any;
52
+ 'composer-bottom'?: (props: typeof __VLS_222) => any;
53
+ } & {
54
+ 'failed-message-actions'?: (props: typeof __VLS_243) => any;
55
+ } & {
56
+ 'user-message'?: (props: typeof __VLS_246) => any;
57
+ } & {
58
+ 'composer-bottom'?: (props: typeof __VLS_260) => any;
53
59
  };
54
60
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
55
61
  clear: typeof clearThread;
@@ -1,4 +1,4 @@
1
- declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: any, __VLS_41: any;
1
+ declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: {}, __VLS_41: any, __VLS_44: any;
2
2
  type __VLS_Slots = {} & {
3
3
  'sidebar-bottom'?: (props: typeof __VLS_29) => any;
4
4
  } & {
@@ -6,9 +6,11 @@ type __VLS_Slots = {} & {
6
6
  } & {
7
7
  'composer-bottom'?: (props: typeof __VLS_35) => any;
8
8
  } & {
9
- 'failed-message-actions'?: (props: typeof __VLS_38) => any;
9
+ 'empty-state-header'?: (props: typeof __VLS_38) => any;
10
10
  } & {
11
- 'user-message'?: (props: typeof __VLS_41) => any;
11
+ 'failed-message-actions'?: (props: typeof __VLS_41) => any;
12
+ } & {
13
+ 'user-message'?: (props: typeof __VLS_44) => any;
12
14
  };
13
15
  declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
14
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -202,6 +202,9 @@ defineExpose({
202
202
  <template v-if="$slots['composer-bottom']" #composer-bottom>
203
203
  <slot name="composer-bottom" />
204
204
  </template>
205
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
206
+ <slot name="empty-state-header" />
207
+ </template>
205
208
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
206
209
  <slot name="failed-message-actions" v-bind="slotProps" />
207
210
  </template>
@@ -1,4 +1,4 @@
1
- declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: any, __VLS_41: any;
1
+ declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: {}, __VLS_41: any, __VLS_44: any;
2
2
  type __VLS_Slots = {} & {
3
3
  'sidebar-bottom'?: (props: typeof __VLS_29) => any;
4
4
  } & {
@@ -6,9 +6,11 @@ type __VLS_Slots = {} & {
6
6
  } & {
7
7
  'composer-bottom'?: (props: typeof __VLS_35) => any;
8
8
  } & {
9
- 'failed-message-actions'?: (props: typeof __VLS_38) => any;
9
+ 'empty-state-header'?: (props: typeof __VLS_38) => any;
10
10
  } & {
11
- 'user-message'?: (props: typeof __VLS_41) => any;
11
+ 'failed-message-actions'?: (props: typeof __VLS_41) => any;
12
+ } & {
13
+ 'user-message'?: (props: typeof __VLS_44) => any;
12
14
  };
13
15
  declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
14
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -34,6 +34,8 @@ type MeistrariChatEmbedSlots = SlotsType<{
34
34
  'topbar-leading'?: () => any;
35
35
  /** Rendered right under the prompt input, flush with it, on the empty state and in a conversation. Page variant only. */
36
36
  'composer-bottom'?: () => any;
37
+ /** Replaces the empty state's title and description (the greeting) on desktop and in the widgets; hidden while a fork is being prepared. */
38
+ 'empty-state-header'?: () => any;
37
39
  /** Rendered inside a failed assistant message's error box, next to "Tentar novamente"; receives the failed message. */
38
40
  'failed-message-actions'?: (props: { message: Message }) => any;
39
41
  /** Replaces the text of a user message, keeping its attachments, sender and timestamp; render nothing to keep the default text. */
@@ -145,6 +145,9 @@ defineExpose({
145
145
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
146
146
  <slot name="failed-message-actions" v-bind="slotProps" />
147
147
  </template>
148
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
149
+ <slot name="empty-state-header" />
150
+ </template>
148
151
  <template v-if="$slots['user-message']" #user-message="slotProps">
149
152
  <slot name="user-message" v-bind="slotProps" />
150
153
  </template>
@@ -184,6 +187,9 @@ defineExpose({
184
187
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
185
188
  <slot name="failed-message-actions" v-bind="slotProps" />
186
189
  </template>
190
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
191
+ <slot name="empty-state-header" />
192
+ </template>
187
193
  <template v-if="$slots['user-message']" #user-message="slotProps">
188
194
  <slot name="user-message" v-bind="slotProps" />
189
195
  </template>
@@ -219,6 +225,9 @@ defineExpose({
219
225
  <template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
220
226
  <slot name="failed-message-actions" v-bind="slotProps" />
221
227
  </template>
228
+ <template v-if="$slots['empty-state-header']" #empty-state-header>
229
+ <slot name="empty-state-header" />
230
+ </template>
222
231
  <template v-if="$slots['user-message']" #user-message="slotProps">
223
232
  <slot name="user-message" v-bind="slotProps" />
224
233
  </template>
@@ -34,6 +34,8 @@ type MeistrariChatEmbedSlots = SlotsType<{
34
34
  'topbar-leading'?: () => any;
35
35
  /** Rendered right under the prompt input, flush with it, on the empty state and in a conversation. Page variant only. */
36
36
  'composer-bottom'?: () => any;
37
+ /** Replaces the empty state's title and description (the greeting) on desktop and in the widgets; hidden while a fork is being prepared. */
38
+ 'empty-state-header'?: () => any;
37
39
  /** Rendered inside a failed assistant message's error box, next to "Tentar novamente"; receives the failed message. */
38
40
  'failed-message-actions'?: (props: { message: Message }) => any;
39
41
  /** Replaces the text of a user message, keeping its attachments, sender and timestamp; render nothing to keep the default text. */
@@ -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;
@@ -52,24 +52,26 @@ type __VLS_ModelProps = {
52
52
  'selectedReasoningEffort'?: ChatReasoningEffort | null;
53
53
  };
54
54
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
55
- declare var __VLS_54: {}, __VLS_101: {}, __VLS_103: {};
55
+ declare var __VLS_54: {}, __VLS_64: {}, __VLS_103: {}, __VLS_105: {};
56
56
  type __VLS_Slots = {} & {
57
57
  loading?: (props: typeof __VLS_54) => any;
58
58
  } & {
59
- empty?: (props: typeof __VLS_101) => any;
59
+ 'empty-state-header'?: (props: typeof __VLS_64) => any;
60
60
  } & {
61
- default?: (props: typeof __VLS_103) => any;
61
+ empty?: (props: typeof __VLS_103) => any;
62
+ } & {
63
+ default?: (props: typeof __VLS_105) => any;
62
64
  };
63
65
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
66
  "update:selectedModel": (value: string | null) => any;
65
67
  "update:selectedReasoningEffort": (value: any) => any;
66
68
  } & {
67
69
  delete: () => any;
68
- cancel: () => any;
69
70
  rename: () => any;
70
71
  duplicate: () => any;
71
72
  export: () => any;
72
73
  copyLink: () => any;
74
+ cancel: () => any;
73
75
  debug: () => any;
74
76
  selectConversation: (id: string) => any;
75
77
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
@@ -87,11 +89,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
87
89
  "update:workspaceSheetOpen": (value: boolean) => any;
88
90
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
89
91
  onDelete?: (() => any) | undefined;
90
- onCancel?: (() => any) | undefined;
91
92
  onRename?: (() => any) | undefined;
92
93
  onDuplicate?: (() => any) | undefined;
93
94
  onExport?: (() => any) | undefined;
94
95
  onCopyLink?: (() => any) | undefined;
96
+ onCancel?: (() => any) | undefined;
95
97
  onDebug?: (() => any) | undefined;
96
98
  onSelectConversation?: ((id: string) => any) | undefined;
97
99
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
@@ -222,12 +222,14 @@ function startNewConversationFromOutdatedSettings() {
222
222
  <div flex="~ col 1" overflow-y-auto pt-54px min-h-0>
223
223
  <div flex="~ col 1" justify-center>
224
224
  <div px-20px pb-20px text-center>
225
- <h1 text-24px font-580 text-neutral-900 leading-28px tracking="-.4px">
226
- {{ emptyStateLabels.title }}
227
- </h1>
228
- <p text-14px text-neutral-500 leading-18px mt-6px>
229
- {{ emptyStateLabels.description }}
230
- </p>
225
+ <slot name="empty-state-header">
226
+ <h1 text-24px font-580 text-neutral-900 leading-28px tracking="-.4px">
227
+ {{ emptyStateLabels.title }}
228
+ </h1>
229
+ <p text-14px text-neutral-500 leading-18px mt-6px>
230
+ {{ emptyStateLabels.description }}
231
+ </p>
232
+ </slot>
231
233
  </div>
232
234
 
233
235
  <div px-14px pb-12px>
@@ -52,24 +52,26 @@ type __VLS_ModelProps = {
52
52
  'selectedReasoningEffort'?: ChatReasoningEffort | null;
53
53
  };
54
54
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
55
- declare var __VLS_54: {}, __VLS_101: {}, __VLS_103: {};
55
+ declare var __VLS_54: {}, __VLS_64: {}, __VLS_103: {}, __VLS_105: {};
56
56
  type __VLS_Slots = {} & {
57
57
  loading?: (props: typeof __VLS_54) => any;
58
58
  } & {
59
- empty?: (props: typeof __VLS_101) => any;
59
+ 'empty-state-header'?: (props: typeof __VLS_64) => any;
60
60
  } & {
61
- default?: (props: typeof __VLS_103) => any;
61
+ empty?: (props: typeof __VLS_103) => any;
62
+ } & {
63
+ default?: (props: typeof __VLS_105) => any;
62
64
  };
63
65
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
66
  "update:selectedModel": (value: string | null) => any;
65
67
  "update:selectedReasoningEffort": (value: any) => any;
66
68
  } & {
67
69
  delete: () => any;
68
- cancel: () => any;
69
70
  rename: () => any;
70
71
  duplicate: () => any;
71
72
  export: () => any;
72
73
  copyLink: () => any;
74
+ cancel: () => any;
73
75
  debug: () => any;
74
76
  selectConversation: (id: string) => any;
75
77
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
@@ -87,11 +89,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
87
89
  "update:workspaceSheetOpen": (value: boolean) => any;
88
90
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
89
91
  onDelete?: (() => any) | undefined;
90
- onCancel?: (() => any) | undefined;
91
92
  onRename?: (() => any) | undefined;
92
93
  onDuplicate?: (() => any) | undefined;
93
94
  onExport?: (() => any) | undefined;
94
95
  onCopyLink?: (() => any) | undefined;
96
+ onCancel?: (() => any) | undefined;
95
97
  onDebug?: (() => any) | undefined;
96
98
  onSelectConversation?: ((id: string) => any) | undefined;
97
99
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
@@ -695,11 +695,6 @@ defineExpose({
695
695
  @change="handleFileSelect"
696
696
  >
697
697
 
698
- <!-- Deliberately NOT position:relative — TelaChatBody pins
699
- [data-chat-prompt-input] with absolute left-0 right-0 against
700
- its nearest positioned ancestor; a positioned wrapper here
701
- would shrink the input. The dropdown positions itself fixed
702
- from the caret rect, so it needs no relative ancestor. -->
703
698
  <AnimatePresence mode="popLayout" :initial="false">
704
699
  <TelaChatAnimateEnter v-if="showStopRun" key="stop-run">
705
700
  <TelaChatStopRunButton
@@ -840,17 +835,19 @@ defineExpose({
840
835
  @select="emit('selectExecutionProfile', $event)"
841
836
  @click.stop
842
837
  />
843
- <ChatReasoningEffortSelector
844
- v-if="!hideReasoningEffortSelector"
845
- v-model="selectedReasoningEffort"
846
- :disabled="isLocked"
847
- @click.stop
848
- />
849
838
  <ChatModelSelector
850
839
  v-if="!hideModelSelector"
851
840
  v-model="selectedModel"
841
+ v-model:reasoning="selectedReasoningEffort"
842
+ :hide-reasoning="hideReasoningEffortSelector"
843
+ :disabled="isLocked"
844
+ @click.stop
845
+ />
846
+ <!-- Model picker hidden, effort choices kept: the effort on its own. -->
847
+ <ChatReasoningSelector
848
+ v-else-if="!hideReasoningEffortSelector"
849
+ v-model="selectedReasoningEffort"
852
850
  :disabled="isLocked"
853
- mr-4px
854
851
  @click.stop
855
852
  />
856
853
  <TelaChatPromptSubmitButton
@@ -1,14 +1,20 @@
1
+ import type { ChatReasoningEffort } from '../../types/schemas/chat/models.js';
1
2
  type __VLS_Props = {
2
3
  disabled?: boolean;
4
+ /** Hides the Reasoning row and leaves the effort untouched. */
5
+ hideReasoning?: boolean;
3
6
  };
4
7
  type __VLS_ModelProps = {
5
8
  modelValue?: string | null;
9
+ 'reasoning'?: ChatReasoningEffort | null;
6
10
  };
7
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
13
  "update:modelValue": (value: string | null) => any;
14
+ "update:reasoning": (value: any) => any;
10
15
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
16
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
17
+ "onUpdate:reasoning"?: ((value: any) => any) | undefined;
12
18
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
19
  declare const _default: typeof __VLS_export;
14
20
  export default _default;
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { chatModelTabs } from "../../types/schemas/chat/model-catalog.js";
2
+ import { chatReasoningEffortOptions } from "../../types/schemas/chat/ui.js";
3
3
  import { useEmbedConfig } from "../../embed/composables/embed-config";
4
4
  import { useChatModelCatalog } from "../composables/chat-model-catalog";
5
5
  import { useChatRequestContext } from "../../shared/composables/chat-request-context";
@@ -8,11 +8,23 @@ import { buildChatModelOptions } from "../../lightweight/messages/model-options"
8
8
  import { resolveAvailableChatModels } from "../model-availability";
9
9
  import TelaChatIconsAnthropic from "@meistrari/tela-build/components/tela/chat/icons/anthropic.vue";
10
10
  import TelaChatIconsGemini from "@meistrari/tela-build/components/tela/chat/icons/gemini.vue";
11
+ import TelaChatIconsGrok from "@meistrari/tela-build/components/tela/chat/icons/grok.vue";
12
+ import TelaChatIconsKimi from "@meistrari/tela-build/components/tela/chat/icons/kimi.vue";
11
13
  import TelaChatIconsOpenai from "@meistrari/tela-build/components/tela/chat/icons/openai.vue";
12
- defineProps({
13
- disabled: { type: Boolean, required: false }
14
+ const props = defineProps({
15
+ disabled: { type: Boolean, required: false },
16
+ hideReasoning: { type: Boolean, required: false }
14
17
  });
15
18
  const model = defineModel({ type: [String, null], ...{ default: null } });
19
+ const reasoning = defineModel("reasoning", { type: null, ...{ default: null } });
20
+ const reasoningOptions = computed(() => props.hideReasoning ? [] : chatReasoningEffortOptions.map((option) => ({ value: option.value, label: option.label })));
21
+ const boundReasoning = computed({
22
+ get: () => props.hideReasoning ? null : reasoning.value,
23
+ set: (value) => {
24
+ if (!props.hideReasoning)
25
+ reasoning.value = value;
26
+ }
27
+ });
16
28
  const embedConfig = useEmbedConfig();
17
29
  const isLightweight = useChatRequestContext()?.harness?.value === "lightweight";
18
30
  const lightweightCatalog = isLightweight ? useLightweightModelCatalog() : null;
@@ -21,20 +33,15 @@ const activeCatalog = lightweightCatalog ?? catalog;
21
33
  const providerIcons = {
22
34
  Anthropic: TelaChatIconsAnthropic,
23
35
  OpenAI: TelaChatIconsOpenai,
24
- Google: TelaChatIconsGemini
36
+ Google: TelaChatIconsGemini,
37
+ MoonshotAI: TelaChatIconsKimi,
38
+ xAI: TelaChatIconsGrok
25
39
  };
26
40
  function toOption(entry) {
27
41
  return {
28
42
  value: entry.id,
29
43
  label: entry.label,
30
- description: entry.description ?? void 0,
31
- group: entry.provider,
32
- icon: providerIcons[entry.provider],
33
- cost: entry.cost,
34
- maxInputTokens: entry.maxInputTokens,
35
- maxOutputTokens: entry.maxOutputTokens ?? void 0,
36
- isMultiModal: entry.isMultiModal,
37
- tabs: chatModelTabs(entry)
44
+ icon: providerIcons[entry.provider]
38
45
  };
39
46
  }
40
47
  const options = computed(() => {
@@ -52,15 +59,9 @@ const options = computed(() => {
52
59
  const optionIds = model.value && !availableModels.includes(model.value) ? [model.value, ...availableModels] : availableModels;
53
60
  return optionIds.map((id) => {
54
61
  const entry = catalog.models.value.find((candidate) => candidate.id === id);
55
- return entry ? toOption(entry) : { value: id, label: id, tabs: ["all"] };
62
+ return entry ? toOption(entry) : { value: id, label: id };
56
63
  });
57
64
  });
58
- const tabLabels = {
59
- all: "Todos",
60
- advanced: "Avan\xE7ados",
61
- cheap: "Econ\xF4micos",
62
- multimodal: "Multimodal"
63
- };
64
65
  watch(activeCatalog.scopeKey, () => {
65
66
  void activeCatalog.load();
66
67
  }, { immediate: true });
@@ -69,10 +70,15 @@ watch(activeCatalog.scopeKey, () => {
69
70
  <template>
70
71
  <TelaChatModelSelector
71
72
  v-model="model"
73
+ v-model:reasoning="boundReasoning"
74
+ data-testid="chat-model-selector"
72
75
  :options="options"
76
+ :reasoning-options="reasoningOptions"
73
77
  :disabled="disabled || options.length === 0"
74
78
  placeholder="Modelo"
75
- input-placeholder="Buscar modelo..."
76
- :tab-labels="tabLabels"
79
+ label-model="Modelo"
80
+ label-reasoning="Raciocínio"
81
+ label-reasoning-default="Padrão"
82
+ label-use-default="Usar padrão do agente"
77
83
  />
78
84
  </template>
@@ -1,14 +1,20 @@
1
+ import type { ChatReasoningEffort } from '../../types/schemas/chat/models.js';
1
2
  type __VLS_Props = {
2
3
  disabled?: boolean;
4
+ /** Hides the Reasoning row and leaves the effort untouched. */
5
+ hideReasoning?: boolean;
3
6
  };
4
7
  type __VLS_ModelProps = {
5
8
  modelValue?: string | null;
9
+ 'reasoning'?: ChatReasoningEffort | null;
6
10
  };
7
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
13
  "update:modelValue": (value: string | null) => any;
14
+ "update:reasoning": (value: any) => any;
10
15
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
16
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
17
+ "onUpdate:reasoning"?: ((value: any) => any) | undefined;
12
18
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
19
  declare const _default: typeof __VLS_export;
14
20
  export default _default;
@@ -0,0 +1,51 @@
1
+ <script setup>
2
+ import { chatReasoningEffortOptions } from "../../types/schemas/chat/ui.js";
3
+ defineProps({
4
+ disabled: { type: Boolean, required: false }
5
+ });
6
+ const effort = defineModel({ type: null, ...{ default: null } });
7
+ const DEFAULT_LABEL = "Racioc\xEDnio";
8
+ const selected = computed(() => chatReasoningEffortOptions.find((option) => option.value === effort.value) ?? null);
9
+ const APPLY_DELAY_MS = 120;
10
+ function choose(value) {
11
+ setTimeout(() => {
12
+ effort.value = value;
13
+ }, APPLY_DELAY_MS);
14
+ }
15
+ </script>
16
+
17
+ <template>
18
+ <TelaMenubarRoot class="flex" data-testid="chat-reasoning-selector">
19
+ <TelaMenubarMenu>
20
+ <TelaMenubarTrigger
21
+ :disabled="disabled"
22
+ :aria-label="`Racioc\xEDnio: ${selected?.label ?? 'Padr\xE3o do agente'}`"
23
+ class="group gap-6px rounded-8px py-7px pl-10px pr-8px duration-80 data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
24
+ >
25
+ <span class="whitespace-nowrap body-14-medium text-primary group-data-[state=open]:text-secondary">{{ selected?.label ?? DEFAULT_LABEL }}</span>
26
+ <TelaIcon
27
+ name="i-ph-caret-down"
28
+ size="15px"
29
+ color="icon-tertiary"
30
+ class="shrink-0 transition-transform ease-out duration-150 group-data-[state=open]:rotate-180"
31
+ />
32
+ </TelaMenubarTrigger>
33
+
34
+ <TelaMenubarContent side="top" align="end" :side-offset="6" class="!min-w-200px w-200px z-999">
35
+ <TelaMenubarItem
36
+ v-for="option in chatReasoningEffortOptions"
37
+ :key="option.value"
38
+ class="gap-8px px-8px py-7px"
39
+ @select="choose(option.value)"
40
+ >
41
+ <span class="min-w-0 flex-1 truncate">{{ option.label }}</span>
42
+ <TelaIcon v-if="option.value === effort" name="i-ph-check" size="14px" class="shrink-0 text-gray-400" />
43
+ </TelaMenubarItem>
44
+ <TelaMenubarSeparator class="mx-0 my-4px" />
45
+ <TelaMenubarItem class="gap-8px px-8px py-7px" :disabled="effort === null" @select="choose(null)">
46
+ <span class="min-w-0 flex-1 truncate">Usar padrão do agente</span>
47
+ </TelaMenubarItem>
48
+ </TelaMenubarContent>
49
+ </TelaMenubarMenu>
50
+ </TelaMenubarRoot>
51
+ </template>