@meistrari/chat-nuxt 4.10.0-rc.18 → 4.10.0-rc.19

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/README.md CHANGED
@@ -101,7 +101,7 @@ Declared in `src/runtime/embed/types.ts`; prop, feature-flag, and event payload
101
101
  | `defaultConversationCreatorFilter` | `'all' \| 'mine'` | `'all'` | Initial sidebar creator filter: every conversation in scope, or only the current user's |
102
102
  | `availableModels` | `AvailableChatModels` | Harness catalog | Visual filter and ordering for catalog options. Unknown ids are omitted; if no ids match, the full catalog is shown. Does not change defaults, restored selections or execution. The Agent validates availability |
103
103
  | `defaultModel` | `ChatModel` | Package default | Initial model for untouched drafts. Explicit selections and existing conversations take precedence; `availableModels` only filters the selector |
104
- | `executionControls` | `ChatExecutionControls` | Legacy feature flags | Choose `hidden`, `simple` (Padrão / Aprofundar), or `advanced` (model and effort pickers). See below |
104
+ | `executionControls` | `ChatExecutionControls` | Legacy feature flags | Choose `hidden`, `simple` (Padrão / Aprofundado, plus optional Intensivo), or `advanced` (model and effort pickers). See below |
105
105
  | `defaultReasoningEffort` | `ChatReasoningEffort` | Automatic (`null`) | Initial reasoning effort for untouched drafts. Explicit user choices (including automatic) take precedence |
106
106
  | `conversationCreatorFilter` | `'all' \| 'mine'` | — | Controlled sidebar creator filter; use with `v-model:conversation-creator-filter` when the host changes it at runtime |
107
107
  | `hideConversationCreatorFilter` | `boolean` | `false` | Hide the creator selector without changing the active filter |
@@ -197,14 +197,16 @@ it takes precedence over both legacy flags as a whole.
197
197
  mode: 'simple',
198
198
  profiles: {
199
199
  default: { model: standardModelId, reasoningEffort: 'medium' },
200
- deep: { model: deepModelId, reasoningEffort: 'high' },
200
+ deep: { model: deepModelId, reasoningEffort: 'medium' },
201
+ intensive: { model: deepModelId, reasoningEffort: 'xhigh' },
201
202
  },
202
203
  }"
203
204
  />
204
205
  ```
205
206
 
206
207
  Supply model IDs available to the configured agent and effort levels supported
207
- by those models. Both profiles may use the same model. An explicit `null` effort
208
+ by those models. The `intensive` profile is optional: omit it to keep a two-mode
209
+ menu. All profiles may use the same model. An explicit `null` effort
208
210
  uses the agent's configured effort. Profile selection keeps both settings local
209
211
  until the next send or fresh retry. That request persists the settings and records
210
212
  each changed field in the conversation history. Reloading discards unsent choices;
@@ -219,10 +221,10 @@ selection still causes both fields to reset for a new conversation. Manually
219
221
  replacing both fields in advanced mode retains the existing behavior of carrying
220
222
  them over to new conversations.
221
223
  Restored conversations keep their settings: the control shows
222
- **Personalizado** when the saved model and effort do not match either profile.
223
- The menu still offers only **Padrão** and **Aprofundar**. Changes apply to subsequent
224
+ **Personalizado** when the saved model and effort do not match any configured profile.
225
+ The menu offers **Padrão** and **Aprofundado**, plus **Intensivo** when configured. Changes apply to subsequent
224
226
  messages and do not regenerate earlier responses. If profiles are identical,
225
- **Padrão** wins the label match.
227
+ **Padrão** wins the label match, followed by **Aprofundado**, then **Intensivo**.
226
228
 
227
229
  In `hidden` and `advanced` modes, the existing model and effort defaults and saved
228
230
  conversation settings retain their behavior. Hiding controls does not force a
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.10.0-rc.18",
4
+ "version": "4.10.0-rc.19",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -11,6 +11,7 @@ export type ChatExecutionControls = {
11
11
  profiles: {
12
12
  default: ChatExecutionProfile;
13
13
  deep: ChatExecutionProfile;
14
+ intensive?: ChatExecutionProfile;
14
15
  };
15
16
  } | {
16
17
  mode: 'advanced';
@@ -23,4 +24,4 @@ export declare function resolveChatExecutionMode(profiles: Extract<ChatExecution
23
24
  }>['profiles'], selection: {
24
25
  model: string | null;
25
26
  reasoningEffort?: ChatReasoningEffort | null;
26
- }): 'default' | 'deep' | 'custom';
27
+ }): 'default' | 'deep' | 'intensive' | 'custom';
@@ -9,9 +9,9 @@ export function resolveChatExecutionControls(controls, features) {
9
9
  };
10
10
  }
11
11
  export function resolveChatExecutionMode(profiles, selection) {
12
- for (const mode of ["default", "deep"]) {
12
+ for (const mode of ["default", "deep", "intensive"]) {
13
13
  const profile = profiles[mode];
14
- if (profile.model === selection.model && profile.reasoningEffort === (selection.reasoningEffort ?? null))
14
+ if (profile && profile.model === selection.model && profile.reasoningEffort === (selection.reasoningEffort ?? null))
15
15
  return mode;
16
16
  }
17
17
  return "custom";
@@ -7,15 +7,19 @@ const props = defineProps({
7
7
  disabled: { type: Boolean, required: false }
8
8
  });
9
9
  const emit = defineEmits(["select"]);
10
- const options = [
10
+ const options = computed(() => [
11
11
  { value: "default", label: "Padr\xE3o", description: "Para as tarefas do dia a dia." },
12
- { value: "deep", label: "Aprofundar", description: "Dedica mais racioc\xEDnio a tarefas complexas. Pode demorar mais." }
13
- ];
12
+ { value: "deep", label: "Aprofundado", description: "Dedica mais racioc\xEDnio a tarefas complexas. Pode demorar mais." },
13
+ ...props.profiles.intensive ? [{ value: "intensive", label: "Intensivo", description: "Maior esfor\xE7o de racioc\xEDnio para quest\xF5es complexas." }] : []
14
+ ]);
14
15
  const mode = computed(() => resolveChatExecutionMode(props.profiles, props));
15
- const label = computed(() => mode.value === "custom" ? "Personalizado" : options.find((option) => option.value === mode.value).label);
16
+ const label = computed(() => mode.value === "custom" ? "Personalizado" : options.value.find((option) => option.value === mode.value).label);
16
17
  function select(value) {
17
- if (!props.disabled && (value === "default" || value === "deep"))
18
- emit("select", { ...props.profiles[value] });
18
+ if (props.disabled || value !== "default" && value !== "deep" && value !== "intensive")
19
+ return;
20
+ const profile = props.profiles[value];
21
+ if (profile)
22
+ emit("select", { ...profile });
19
23
  }
20
24
  </script>
21
25
 
@@ -51,7 +51,7 @@ export function mergeConversationTimeline(messages, events = [], controls) {
51
51
  }
52
52
  if (controls?.mode === "simple") {
53
53
  const seen = /* @__PURE__ */ new Set();
54
- const labels = { default: "Padr\xE3o", deep: "Aprofundar", custom: "Personalizado" };
54
+ const labels = { default: "Padr\xE3o", deep: "Aprofundado", intensive: "Intensivo", custom: "Personalizado" };
55
55
  return items.flatMap((item) => {
56
56
  if (item.kind !== "event" || !["model_changed", "reasoning_effort_changed"].includes(item.value.type))
57
57
  return [item];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.10.0-rc.18",
3
+ "version": "4.10.0-rc.19",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {