@adecore/agents-react 0.54.15 → 0.55.0

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 (91) hide show
  1. package/dist/agents/AgentModelLabel.d.ts +5 -0
  2. package/dist/agents/AgentModelLabel.js +32 -7
  3. package/dist/chat/account-choice.d.ts +1 -0
  4. package/dist/chat/account-choice.js +13 -4
  5. package/dist/chat/mentions.d.ts +24 -2
  6. package/dist/chat/mentions.js +84 -10
  7. package/dist/chat/subagent-list.d.ts +0 -1
  8. package/dist/chat/subagent-list.js +1 -9
  9. package/dist/chat/tag-suggestions.d.ts +22 -0
  10. package/dist/chat/tag-suggestions.js +71 -0
  11. package/dist/chat/ui/Composer.js +489 -447
  12. package/dist/chat/ui/ComposerInput.d.ts +1 -0
  13. package/dist/chat/ui/ComposerInput.js +9 -1
  14. package/dist/chat/ui/Markdown.js +41 -25
  15. package/dist/chat/ui/NamedChip.d.ts +5 -0
  16. package/dist/chat/ui/NamedChip.js +118 -0
  17. package/dist/chat/ui/Pickers.d.ts +0 -4
  18. package/dist/chat/ui/Pickers.js +1 -141
  19. package/dist/chat/ui/PromptEditor.js +2 -1
  20. package/dist/chat/ui/ReferenceChip.d.ts +3 -2
  21. package/dist/chat/ui/ReferenceChip.js +58 -36
  22. package/dist/chat/ui/RunSettings.d.ts +3 -2
  23. package/dist/chat/ui/RunSettings.js +386 -361
  24. package/dist/chat/ui/SubagentInfo.js +98 -114
  25. package/dist/chat/ui/SubagentTimeline.js +65 -43
  26. package/dist/chat/ui/Timeline.js +14 -8
  27. package/dist/chat/ui/chip-clipboard.js +10 -0
  28. package/dist/chat/ui/composer/ComposerControls.d.ts +6 -1
  29. package/dist/chat/ui/composer/ComposerControls.js +171 -158
  30. package/dist/chat/ui/composer/ComposerMenu.js +187 -55
  31. package/dist/chat/ui/composer/ComposerPlusMenu.d.ts +18 -0
  32. package/dist/chat/ui/composer/ComposerPlusMenu.js +400 -0
  33. package/dist/chat/ui/composer/ComposerStatusLine.d.ts +4 -0
  34. package/dist/chat/ui/composer/ComposerStatusLine.js +239 -0
  35. package/dist/chat/ui/composer/chips.d.ts +2 -0
  36. package/dist/chat/ui/composer/chips.js +66 -5
  37. package/dist/chat/ui/composer/insert.d.ts +1 -0
  38. package/dist/chat/ui/composer/insert.js +24 -0
  39. package/dist/chat/ui/composer/use-composer-menus.js +34 -17
  40. package/dist/chat/ui/composer/use-prompt-menus.d.ts +10 -2
  41. package/dist/chat/ui/composer/use-prompt-menus.js +290 -202
  42. package/dist/chat/ui/covered-bottom.d.ts +1 -0
  43. package/dist/chat/ui/covered-bottom.js +6 -0
  44. package/dist/chat/ui/named-chip-look.d.ts +14 -0
  45. package/dist/chat/ui/named-chip-look.js +72 -0
  46. package/dist/chat/ui/rehype-chips.js +13 -2
  47. package/dist/host-hooks.d.ts +2 -1
  48. package/dist/host-hooks.js +6 -0
  49. package/dist/host.d.ts +17 -0
  50. package/dist/index.d.ts +1 -1
  51. package/dist/locales/en/agent-chat.d.ts +14 -2
  52. package/dist/locales/en/agent-chat.js +16 -4
  53. package/dist/locales/nl/agent-chat.d.ts +14 -2
  54. package/dist/locales/nl/agent-chat.js +16 -4
  55. package/dist/state/chats.d.ts +1 -0
  56. package/dist/state/chats.js +45 -0
  57. package/package.json +9 -9
  58. package/src/agents/AgentModelLabel.tsx +10 -1
  59. package/src/chat/account-choice.ts +8 -0
  60. package/src/chat/mentions.ts +110 -13
  61. package/src/chat/subagent-list.ts +1 -14
  62. package/src/chat/tag-suggestions.ts +121 -0
  63. package/src/chat/ui/Composer.tsx +24 -12
  64. package/src/chat/ui/ComposerInput.tsx +13 -1
  65. package/src/chat/ui/Markdown.tsx +5 -0
  66. package/src/chat/ui/NamedChip.tsx +34 -0
  67. package/src/chat/ui/Pickers.tsx +1 -51
  68. package/src/chat/ui/PromptEditor.tsx +7 -1
  69. package/src/chat/ui/ReferenceChip.tsx +15 -4
  70. package/src/chat/ui/RunSettings.tsx +51 -29
  71. package/src/chat/ui/SubagentInfo.tsx +17 -17
  72. package/src/chat/ui/SubagentTimeline.tsx +7 -2
  73. package/src/chat/ui/Timeline.tsx +11 -5
  74. package/src/chat/ui/chip-clipboard.ts +8 -1
  75. package/src/chat/ui/composer/ComposerControls.tsx +24 -17
  76. package/src/chat/ui/composer/ComposerMenu.tsx +83 -15
  77. package/src/chat/ui/composer/ComposerPlusMenu.tsx +158 -0
  78. package/src/chat/ui/composer/ComposerStatusLine.tsx +94 -0
  79. package/src/chat/ui/composer/chips.ts +78 -7
  80. package/src/chat/ui/composer/insert.ts +12 -0
  81. package/src/chat/ui/composer/use-composer-menus.ts +5 -2
  82. package/src/chat/ui/composer/use-prompt-menus.ts +55 -10
  83. package/src/chat/ui/covered-bottom.ts +7 -0
  84. package/src/chat/ui/named-chip-look.ts +64 -0
  85. package/src/chat/ui/rehype-chips.ts +17 -2
  86. package/src/host-hooks.ts +11 -1
  87. package/src/host.ts +29 -0
  88. package/src/index.ts +2 -0
  89. package/src/locales/en/agent-chat.ts +16 -4
  90. package/src/locales/nl/agent-chat.ts +16 -4
  91. package/src/state/chats.ts +26 -0
@@ -1,4 +1,5 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { UsageProviderSchema } from '@adecore/agent-contracts';
2
3
  import { Icon, Menu, Tooltip, useNow } from '@adecore/ui';
3
4
  import { formatPercent, formatTokens } from '@adecore/ui/format';
4
5
  import clsx from 'clsx';
@@ -7,13 +8,15 @@ import { Fragment, useEffect, useRef, useState } from 'react';
7
8
  import { useTranslation } from 'react-i18next';
8
9
  import { limitsOfAccount, sessionWindow } from '../../agents/account-limits.js';
9
10
  import { AccountDot } from '../../agents/AccountDot.js';
10
- import { canContinueOn } from '../../agents/accounts.js';
11
+ import { accountColor, canContinueOn } from '../../agents/accounts.js';
11
12
  import { AgentIcon } from '../../agents/AgentIcon.js';
12
- import { modelName, shortModelName } from '../../agents/model-name.js';
13
+ import { modelName } from '../../agents/model-name.js';
13
14
  import { localizedOption } from '../../agents/option-words.js';
14
15
  import { useChatHost } from '../../host.js';
16
+ import { PROVIDER_COLORS } from '../../usage/format.js';
15
17
  import { useUsageLimits } from '../../usage/limits.js';
16
18
  import { CONTEXT_OPTION, contextFraction, contextSegments, orderOptions } from '../logic/context-usage.js';
19
+ import { EFFORT_OPTION } from '../logic/effort.js';
17
20
  import { favoritesFirst, inPickerOrder, searchModels, separatesGroups, shortlistOf, wantsModelSearch } from '../logic/picker-entries.js';
18
21
  import { favoriteModelsOf, toggleFavoriteModel, useChatPreferences } from '../preferences.js';
19
22
  import { RUNTIME_MODES } from '../runtime-modes.js';
@@ -66,7 +69,7 @@ function modelGroupsOf(providers, legacy) {
66
69
  * permission mode. Model and effective permissions stay visible as the composer narrows.
67
70
  */
68
71
  export function RunSettings(t0) {
69
- const $ = _c(115);
72
+ const $ = _c(119);
70
73
  const {
71
74
  disabled: t1,
72
75
  providers,
@@ -84,12 +87,16 @@ export function RunSettings(t0) {
84
87
  usage,
85
88
  compactDisabled,
86
89
  onCompact,
87
- account
90
+ account,
91
+ accountColorId
88
92
  } = t0;
89
93
  const disabled = t1 === undefined ? false : t1;
90
94
  const {
91
95
  t
92
96
  } = useTranslation("agent-chat");
97
+ const {
98
+ accents
99
+ } = useChatHost();
93
100
  const [query, setQuery] = useState("");
94
101
  const searchRef = useRef(null);
95
102
  let t2;
@@ -102,7 +109,7 @@ export function RunSettings(t0) {
102
109
  }
103
110
  const owner = providers.find(t2);
104
111
  const current = modelName(selection.model, owner?.models);
105
- const short = shortModelName(current, owner?.models);
112
+ const pillName = provider === "claude" || provider === "anthropic-claude-api" ? current.replace(/^Claude /, "") : current;
106
113
  const options = orderOptions((model?.options ?? []).map(localizedOption));
107
114
  let t3;
108
115
  if ($[2] !== selection) {
@@ -129,119 +136,135 @@ export function RunSettings(t0) {
129
136
  ring: true
130
137
  });
131
138
  }
139
+ const words = summary.filter(_temp2).sort(_temp3);
140
+ const context = summary.find(_temp4) ?? null;
141
+ const usageKind = UsageProviderSchema.safeParse(provider);
142
+ const providerColor = usageKind.success ? PROVIDER_COLORS[usageKind.data] : null;
143
+ let t4;
144
+ if ($[4] !== accents.all || $[5] !== account?.choice || $[6] !== accountColorId || $[7] !== providerColor) {
145
+ t4 = accountColor(accountColorId, accents.all) ?? (account?.choice.current ? providerColor : null);
146
+ $[4] = accents.all;
147
+ $[5] = account?.choice;
148
+ $[6] = accountColorId;
149
+ $[7] = providerColor;
150
+ $[8] = t4;
151
+ } else {
152
+ t4 = $[8];
153
+ }
154
+ const accountTint = t4;
132
155
  const grouped = providers.length > 1;
133
156
  const live = modelGroupsOf(providers, false);
134
157
  const legacy = modelGroupsOf(providers, true);
135
158
  const chosenLegacy = owner?.models.find(row => row.legacy && row.slug === selection.model);
136
- let t4;
137
- if ($[4] !== provider || $[5] !== selection.model) {
138
- t4 = modelValue(provider, selection.model);
139
- $[4] = provider;
140
- $[5] = selection.model;
141
- $[6] = t4;
159
+ let t5;
160
+ if ($[9] !== provider || $[10] !== selection.model) {
161
+ t5 = modelValue(provider, selection.model);
162
+ $[9] = provider;
163
+ $[10] = selection.model;
164
+ $[11] = t5;
142
165
  } else {
143
- t4 = $[6];
166
+ t5 = $[11];
144
167
  }
145
- const chosenModel = t4;
168
+ const chosenModel = t5;
146
169
  const shownMode = effectiveRuntimeMode ?? runtimeMode;
147
170
  const fullAccess = shownMode === "full-access";
148
171
  const permissionFallback = permissionMode !== undefined && effectiveRuntimeMode !== runtimeMode;
149
- let t5;
150
- if ($[7] !== effectiveRuntimeMode || $[8] !== permissionFallback || $[9] !== permissionMode || $[10] !== runtimeMode || $[11] !== t) {
172
+ let t6;
173
+ if ($[12] !== effectiveRuntimeMode || $[13] !== permissionFallback || $[14] !== permissionMode || $[15] !== runtimeMode || $[16] !== t) {
151
174
  const effectiveLabel = effectiveRuntimeMode === undefined ? permissionMode : t(`modes.${effectiveRuntimeMode}.label`);
152
- t5 = permissionFallback ? t("pickers.mode.effective", {
175
+ t6 = permissionFallback ? t("pickers.mode.effective", {
153
176
  effective: effectiveLabel,
154
177
  requested: t(`modes.${runtimeMode}.label`)
155
178
  }) : null;
156
- $[7] = effectiveRuntimeMode;
157
- $[8] = permissionFallback;
158
- $[9] = permissionMode;
159
- $[10] = runtimeMode;
160
- $[11] = t;
161
- $[12] = t5;
179
+ $[12] = effectiveRuntimeMode;
180
+ $[13] = permissionFallback;
181
+ $[14] = permissionMode;
182
+ $[15] = runtimeMode;
183
+ $[16] = t;
184
+ $[17] = t6;
162
185
  } else {
163
- t5 = $[12];
186
+ t6 = $[17];
164
187
  }
165
- const permissionHint = t5;
166
- let t6;
167
- if ($[13] !== onModel) {
168
- t6 = value => {
188
+ const permissionHint = t6;
189
+ let t7;
190
+ if ($[18] !== onModel) {
191
+ t7 = value => {
169
192
  const slash = value.indexOf("/");
170
193
  onModel(value.slice(0, slash), value.slice(slash + 1));
171
194
  };
172
- $[13] = onModel;
173
- $[14] = t6;
174
- } else {
175
- t6 = $[14];
176
- }
177
- const chooseModel = t6;
178
- let t7;
179
- if ($[15] !== providers) {
180
- t7 = wantsModelSearch(providers);
181
- $[15] = providers;
182
- $[16] = t7;
195
+ $[18] = onModel;
196
+ $[19] = t7;
183
197
  } else {
184
- t7 = $[16];
198
+ t7 = $[19];
185
199
  }
186
- const searchable = t7;
187
- const favorites = useChatPreferences(_temp2);
200
+ const chooseModel = t7;
188
201
  let t8;
189
- if ($[17] !== favorites) {
190
- t8 = kind => favoriteModelsOf(favorites, kind);
191
- $[17] = favorites;
192
- $[18] = t8;
202
+ if ($[20] !== providers) {
203
+ t8 = wantsModelSearch(providers);
204
+ $[20] = providers;
205
+ $[21] = t8;
193
206
  } else {
194
- t8 = $[18];
207
+ t8 = $[21];
195
208
  }
196
- const favoritesOf = t8;
209
+ const searchable = t8;
210
+ const favorites = useChatPreferences(_temp5);
197
211
  let t9;
198
- if ($[19] !== favoritesOf || $[20] !== providers || $[21] !== query) {
199
- t9 = query.trim() === "" ? null : searchModels(inPickerOrder(providers), query, favoritesOf);
200
- $[19] = favoritesOf;
201
- $[20] = providers;
202
- $[21] = query;
203
- $[22] = t9;
212
+ if ($[22] !== favorites) {
213
+ t9 = kind => favoriteModelsOf(favorites, kind);
214
+ $[22] = favorites;
215
+ $[23] = t9;
204
216
  } else {
205
- t9 = $[22];
217
+ t9 = $[23];
206
218
  }
207
- const found = t9;
219
+ const favoritesOf = t9;
208
220
  let t10;
221
+ if ($[24] !== favoritesOf || $[25] !== providers || $[26] !== query) {
222
+ t10 = query.trim() === "" ? null : searchModels(inPickerOrder(providers), query, favoritesOf);
223
+ $[24] = favoritesOf;
224
+ $[25] = providers;
225
+ $[26] = query;
226
+ $[27] = t10;
227
+ } else {
228
+ t10 = $[27];
229
+ }
230
+ const found = t10;
209
231
  let t11;
210
- if ($[23] !== open || $[24] !== searchable) {
211
- t10 = () => {
232
+ let t12;
233
+ if ($[28] !== open || $[29] !== searchable) {
234
+ t11 = () => {
212
235
  if (!open || !searchable) {
213
236
  return;
214
237
  }
215
238
  const frame = requestAnimationFrame(() => searchRef.current?.focus());
216
239
  return () => cancelAnimationFrame(frame);
217
240
  };
218
- t11 = [open, searchable];
219
- $[23] = open;
220
- $[24] = searchable;
221
- $[25] = t10;
222
- $[26] = t11;
241
+ t12 = [open, searchable];
242
+ $[28] = open;
243
+ $[29] = searchable;
244
+ $[30] = t11;
245
+ $[31] = t12;
223
246
  } else {
224
- t10 = $[25];
225
- t11 = $[26];
247
+ t11 = $[30];
248
+ t12 = $[31];
226
249
  }
227
- useEffect(t10, t11);
228
- let t12;
229
- if ($[27] !== onOpenChange) {
230
- t12 = next => {
250
+ useEffect(t11, t12);
251
+ let t13;
252
+ if ($[32] !== onOpenChange) {
253
+ t13 = next => {
231
254
  if (!next) {
232
255
  setQuery("");
233
256
  }
234
257
  onOpenChange(next);
235
258
  };
236
- $[27] = onOpenChange;
237
- $[28] = t12;
259
+ $[32] = onOpenChange;
260
+ $[33] = t13;
238
261
  } else {
239
- t12 = $[28];
262
+ t13 = $[33];
240
263
  }
241
- const changeOpen = t12;
242
- let t13;
243
- if ($[29] !== searchable) {
244
- t13 = event => {
264
+ const changeOpen = t13;
265
+ let t14;
266
+ if ($[34] !== searchable) {
267
+ t14 = event => {
245
268
  if (!searchable || event.target === searchRef.current || event.metaKey || event.ctrlKey || event.altKey) {
246
269
  return;
247
270
  }
@@ -254,15 +277,15 @@ export function RunSettings(t0) {
254
277
  setQuery(now => typed ? now + event.key : now.slice(0, -1));
255
278
  searchRef.current?.focus();
256
279
  };
257
- $[29] = searchable;
258
- $[30] = t13;
280
+ $[34] = searchable;
281
+ $[35] = t14;
259
282
  } else {
260
- t13 = $[30];
283
+ t14 = $[35];
261
284
  }
262
- const onPopupKey = t13;
263
- let t14;
264
- if ($[31] !== changeOpen || $[32] !== found?.[0] || $[33] !== onModel || $[34] !== query) {
265
- t14 = event_0 => {
285
+ const onPopupKey = t14;
286
+ let t15;
287
+ if ($[36] !== changeOpen || $[37] !== found?.[0] || $[38] !== onModel || $[39] !== query) {
288
+ t15 = event_0 => {
266
289
  if (event_0.key === "Escape" && query !== "") {
267
290
  event_0.preventDefault();
268
291
  event_0.stopPropagation();
@@ -282,26 +305,26 @@ export function RunSettings(t0) {
282
305
  event_0.stopPropagation();
283
306
  }
284
307
  };
285
- $[31] = changeOpen;
286
- $[32] = found?.[0];
287
- $[33] = onModel;
288
- $[34] = query;
289
- $[35] = t14;
308
+ $[36] = changeOpen;
309
+ $[37] = found?.[0];
310
+ $[38] = onModel;
311
+ $[39] = query;
312
+ $[40] = t15;
290
313
  } else {
291
- t14 = $[35];
314
+ t15 = $[40];
292
315
  }
293
- const onSearchKey = t14;
294
- let t15;
295
- if ($[36] !== favoritesOf || $[37] !== t) {
296
- t15 = (entry_0, row_0) => {
297
- const starred = favoritesOf(entry_0.kind).has(row_0.slug);
316
+ const onSearchKey = t15;
317
+ let t16;
318
+ if ($[41] !== favoritesOf || $[42] !== t) {
319
+ t16 = (entry_2, row_0) => {
320
+ const starred = favoritesOf(entry_2.kind).has(row_0.slug);
298
321
  return /*#__PURE__*/_jsxs(Menu.Row, {
299
322
  "aria-label": row_0.name,
300
323
  children: [/*#__PURE__*/_jsxs(Menu.RadioItem, {
301
- value: modelValue(entry_0.kind, row_0.slug),
324
+ value: modelValue(entry_2.kind, row_0.slug),
302
325
  closeOnClick: true,
303
326
  children: [/*#__PURE__*/_jsx(AgentIcon, {
304
- kind: entry_0.kind,
327
+ kind: entry_2.kind,
305
328
  size: 14,
306
329
  className: "shrink-0"
307
330
  }), /*#__PURE__*/_jsx("span", {
@@ -315,51 +338,51 @@ export function RunSettings(t0) {
315
338
  label: starred ? t("pickers.model.unstar") : t("pickers.model.star"),
316
339
  iconClassName: starred ? "fill-current text-accent" : "text-text-faint",
317
340
  closeOnClick: false,
318
- onClick: () => toggleFavoriteModel(entry_0.kind, row_0.slug)
341
+ onClick: () => toggleFavoriteModel(entry_2.kind, row_0.slug)
319
342
  })]
320
343
  }, row_0.slug);
321
344
  };
322
- $[36] = favoritesOf;
323
- $[37] = t;
324
- $[38] = t15;
345
+ $[41] = favoritesOf;
346
+ $[42] = t;
347
+ $[43] = t16;
325
348
  } else {
326
- t15 = $[38];
349
+ t16 = $[43];
327
350
  }
328
- const modelRow = t15;
329
- let t16;
330
- if ($[39] !== favoritesOf || $[40] !== modelRow) {
331
- t16 = (entry_1, models) => {
332
- const starred_0 = favoritesOf(entry_1.kind);
351
+ const modelRow = t16;
352
+ let t17;
353
+ if ($[44] !== favoritesOf || $[45] !== modelRow) {
354
+ t17 = (entry_3, models) => {
355
+ const starred_0 = favoritesOf(entry_3.kind);
333
356
  return favoritesFirst(models, starred_0).map((row_1, i, sorted) => {
334
357
  const previous = sorted[i - 1];
335
358
  const labeled = row_1.vendor !== undefined && !starred_0.has(row_1.slug) && (previous === undefined || starred_0.has(previous.slug) || previous.vendor !== row_1.vendor);
336
359
  return /*#__PURE__*/_jsxs(Fragment, {
337
360
  children: [labeled && /*#__PURE__*/_jsx(Menu.GroupLabel, {
338
361
  children: row_1.vendor
339
- }), modelRow(entry_1, row_1)]
362
+ }), modelRow(entry_3, row_1)]
340
363
  }, row_1.slug);
341
364
  });
342
365
  };
343
- $[39] = favoritesOf;
344
- $[40] = modelRow;
345
- $[41] = t16;
366
+ $[44] = favoritesOf;
367
+ $[45] = modelRow;
368
+ $[46] = t17;
346
369
  } else {
347
- t16 = $[41];
370
+ t17 = $[46];
348
371
  }
349
- const byMaker = t16;
350
- let t17;
351
- if ($[42] !== byMaker || $[43] !== chooseModel || $[44] !== chosenModel || $[45] !== favoritesOf || $[46] !== modelRow || $[47] !== provider || $[48] !== selection.model || $[49] !== t) {
352
- t17 = (entry_2, models_0) => {
353
- const starred_1 = favoritesOf(entry_2.kind);
354
- const shortlist = shortlistOf(entry_2.kind, models_0, {
372
+ const byMaker = t17;
373
+ let t18;
374
+ if ($[47] !== byMaker || $[48] !== chooseModel || $[49] !== chosenModel || $[50] !== favoritesOf || $[51] !== modelRow || $[52] !== provider || $[53] !== selection.model || $[54] !== t) {
375
+ t18 = (entry_4, models_0) => {
376
+ const starred_1 = favoritesOf(entry_4.kind);
377
+ const shortlist = shortlistOf(entry_4.kind, models_0, {
355
378
  provider,
356
379
  model: selection.model
357
380
  }, starred_1);
358
381
  if (shortlist === null) {
359
- return [...models_0.filter(row_2 => starred_1.has(row_2.slug)), ...models_0.filter(row_3 => !starred_1.has(row_3.slug))].map(row_4 => modelRow(entry_2, row_4));
382
+ return [...models_0.filter(row_2 => starred_1.has(row_2.slug)), ...models_0.filter(row_3 => !starred_1.has(row_3.slug))].map(row_4 => modelRow(entry_4, row_4));
360
383
  }
361
384
  return /*#__PURE__*/_jsxs(_Fragment, {
362
- children: [shortlist.map(row_5 => modelRow(entry_2, row_5)), /*#__PURE__*/_jsxs(Menu.SubmenuRoot, {
385
+ children: [shortlist.map(row_5 => modelRow(entry_4, row_5)), /*#__PURE__*/_jsxs(Menu.SubmenuRoot, {
363
386
  children: [/*#__PURE__*/_jsx(Menu.SubmenuTrigger, {
364
387
  className: "text-text-muted",
365
388
  children: t("pickers.model.allGroup", {
@@ -370,254 +393,227 @@ export function RunSettings(t0) {
370
393
  children: /*#__PURE__*/_jsx(Menu.RadioGroup, {
371
394
  value: chosenModel,
372
395
  onValueChange: chooseModel,
373
- children: byMaker(entry_2, models_0)
396
+ children: byMaker(entry_4, models_0)
374
397
  })
375
398
  })]
376
399
  })]
377
400
  });
378
401
  };
379
- $[42] = byMaker;
380
- $[43] = chooseModel;
381
- $[44] = chosenModel;
382
- $[45] = favoritesOf;
383
- $[46] = modelRow;
384
- $[47] = provider;
385
- $[48] = selection.model;
386
- $[49] = t;
387
- $[50] = t17;
388
- } else {
389
- t17 = $[50];
390
- }
391
- const providerModels = t17;
392
- let t18;
393
- if ($[51] !== grouped || $[52] !== providerModels) {
394
- t18 = groups => groups.map((t19, i_0) => {
402
+ $[47] = byMaker;
403
+ $[48] = chooseModel;
404
+ $[49] = chosenModel;
405
+ $[50] = favoritesOf;
406
+ $[51] = modelRow;
407
+ $[52] = provider;
408
+ $[53] = selection.model;
409
+ $[54] = t;
410
+ $[55] = t18;
411
+ } else {
412
+ t18 = $[55];
413
+ }
414
+ const providerModels = t18;
415
+ let t19;
416
+ if ($[56] !== grouped || $[57] !== providerModels) {
417
+ t19 = groups => groups.map((t20, i_0) => {
395
418
  const {
396
- entry: entry_3,
419
+ entry: entry_5,
397
420
  models: models_1
398
- } = t19;
421
+ } = t20;
399
422
  return /*#__PURE__*/_jsxs(Fragment, {
400
- children: [separatesGroups(groups[i_0 - 1]?.entry.kind, entry_3.kind) && /*#__PURE__*/_jsx(Menu.Separator, {}), /*#__PURE__*/_jsxs(Menu.Group, {
423
+ children: [separatesGroups(groups[i_0 - 1]?.entry.kind, entry_5.kind) && /*#__PURE__*/_jsx(Menu.Separator, {}), /*#__PURE__*/_jsxs(Menu.Group, {
401
424
  children: [grouped && /*#__PURE__*/_jsxs(Menu.GroupLabel, {
402
425
  className: "flex items-center gap-1.5",
403
426
  children: [/*#__PURE__*/_jsx(AgentIcon, {
404
- kind: entry_3.kind,
427
+ kind: entry_5.kind,
405
428
  size: 12
406
- }), entry_3.name]
407
- }), providerModels(entry_3, models_1)]
429
+ }), entry_5.name]
430
+ }), providerModels(entry_5, models_1)]
408
431
  })]
409
- }, entry_3.kind);
432
+ }, entry_5.kind);
410
433
  });
411
- $[51] = grouped;
412
- $[52] = providerModels;
413
- $[53] = t18;
434
+ $[56] = grouped;
435
+ $[57] = providerModels;
436
+ $[58] = t19;
414
437
  } else {
415
- t18 = $[53];
438
+ t19 = $[58];
416
439
  }
417
- const modelGroups = t18;
418
- let t19;
419
- if ($[54] !== permissionHint || $[55] !== t) {
420
- t19 = permissionHint ?? t("pickers.settings.title");
421
- $[54] = permissionHint;
422
- $[55] = t;
423
- $[56] = t19;
424
- } else {
425
- t19 = $[56];
426
- }
427
- const t20 = open ? "border-accent bg-accent-soft" : "border-border hover:bg-surface-hover-edged";
428
- let t21;
429
- if ($[57] !== t20) {
430
- t21 = clsx("flex h-8 min-w-0 items-center gap-2 rounded-full border pr-3 pl-2.5 text-xs whitespace-nowrap text-text-muted @max-xl/composer:gap-1.5 @max-sm/composer:pr-2.5", t20);
431
- $[57] = t20;
432
- $[58] = t21;
440
+ const modelGroups = t19;
441
+ let t20;
442
+ if ($[59] !== permissionHint || $[60] !== t) {
443
+ t20 = permissionHint ?? t("pickers.settings.title");
444
+ $[59] = permissionHint;
445
+ $[60] = t;
446
+ $[61] = t20;
433
447
  } else {
434
- t21 = $[58];
448
+ t20 = $[61];
435
449
  }
450
+ const t21 = open ? "bg-surface-hover text-text" : "hover:bg-surface-hover";
436
451
  let t22;
437
- if ($[59] !== provider) {
438
- t22 = /*#__PURE__*/_jsx(AgentIcon, {
439
- kind: provider,
440
- size: 14,
441
- className: "shrink-0"
442
- });
443
- $[59] = provider;
444
- $[60] = t22;
452
+ if ($[62] !== t21) {
453
+ t22 = clsx("flex h-8 min-w-0 items-center gap-2 rounded-full border border-transparent pr-3 pl-2.5 text-xs whitespace-nowrap text-text-muted @max-xl/composer:gap-1.5 @max-sm/composer:pr-2.5", t21);
454
+ $[62] = t21;
455
+ $[63] = t22;
445
456
  } else {
446
- t22 = $[60];
457
+ t22 = $[63];
447
458
  }
448
459
  let t23;
449
- if ($[61] !== current) {
450
- t23 = /*#__PURE__*/_jsx("span", {
451
- className: "truncate font-medium text-text @max-xl/composer:hidden",
452
- children: current
453
- });
454
- $[61] = current;
455
- $[62] = t23;
460
+ if ($[64] !== accountTint) {
461
+ t23 = accountTint === null ? undefined : {
462
+ color: accountTint
463
+ };
464
+ $[64] = accountTint;
465
+ $[65] = t23;
456
466
  } else {
457
- t23 = $[62];
467
+ t23 = $[65];
458
468
  }
459
469
  let t24;
460
- if ($[63] !== short) {
461
- t24 = /*#__PURE__*/_jsx("span", {
462
- className: "hidden truncate font-medium text-text @max-xl/composer:inline",
463
- children: short
470
+ if ($[66] !== provider) {
471
+ t24 = /*#__PURE__*/_jsx(AgentIcon, {
472
+ kind: provider,
473
+ size: 14
464
474
  });
465
- $[63] = short;
466
- $[64] = t24;
475
+ $[66] = provider;
476
+ $[67] = t24;
467
477
  } else {
468
- t24 = $[64];
478
+ t24 = $[67];
469
479
  }
470
480
  let t25;
471
- if ($[65] !== account) {
472
- t25 = account !== null && /*#__PURE__*/_jsxs("span", {
473
- className: "flex min-w-0 items-center gap-2 @max-xl/composer:gap-1.5",
474
- children: [/*#__PURE__*/_jsx("span", {
475
- className: "shrink-0 text-text-faint",
476
- children: "\xB7"
477
- }), /*#__PURE__*/_jsx(AccountDot, {
478
- color: account.choice.current?.account.color
479
- }), /*#__PURE__*/_jsx("span", {
480
- className: "truncate @max-xl/composer:hidden",
481
- children: account.choice.current === null ? account.choice.currentId : account.choice.nameOf(account.choice.current)
482
- })]
481
+ if ($[68] !== t23 || $[69] !== t24) {
482
+ t25 = /*#__PURE__*/_jsx("span", {
483
+ className: "flex shrink-0",
484
+ style: t23,
485
+ children: t24
483
486
  });
484
- $[65] = account;
485
- $[66] = t25;
487
+ $[68] = t23;
488
+ $[69] = t24;
489
+ $[70] = t25;
486
490
  } else {
487
- t25 = $[66];
491
+ t25 = $[70];
488
492
  }
489
493
  let t26;
490
- if ($[67] !== usage) {
491
- t26 = entry_4 => /*#__PURE__*/_jsxs("span", {
492
- className: clsx("flex shrink-0 items-center gap-2 @max-xl/composer:gap-1.5", !entry_4.ring && "@max-xl/composer:hidden"),
493
- children: [/*#__PURE__*/_jsx("span", {
494
- className: "text-text-faint",
495
- children: "\xB7"
496
- }), entry_4.ring && /*#__PURE__*/_jsx(ContextRing, {
497
- usage: usage
498
- }), /*#__PURE__*/_jsx("span", {
499
- className: clsx(entry_4.ring && "@max-sm/composer:hidden"),
500
- children: entry_4.label
501
- })]
502
- }, entry_4.id);
503
- $[67] = usage;
504
- $[68] = t26;
494
+ if ($[71] !== pillName) {
495
+ t26 = /*#__PURE__*/_jsx("span", {
496
+ className: "truncate font-medium text-text",
497
+ children: pillName
498
+ });
499
+ $[71] = pillName;
500
+ $[72] = t26;
505
501
  } else {
506
- t26 = $[68];
502
+ t26 = $[72];
507
503
  }
508
- const t27 = summary.map(t26);
509
- let t28;
510
- if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
511
- t28 = /*#__PURE__*/_jsx("span", {
504
+ let t27;
505
+ if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
506
+ t27 = /*#__PURE__*/_jsx("span", {
512
507
  className: "shrink-0 text-text-faint",
513
508
  children: "\xB7"
514
509
  });
515
- $[69] = t28;
510
+ $[73] = t27;
516
511
  } else {
517
- t28 = $[69];
512
+ t27 = $[73];
518
513
  }
519
- const t29 = fullAccess && "text-status-needs-you";
520
- let t30;
521
- if ($[70] !== t29) {
522
- t30 = clsx("flex shrink-0 items-center gap-1", t29);
523
- $[70] = t29;
524
- $[71] = t30;
514
+ const t28 = fullAccess && "text-status-needs-you";
515
+ let t29;
516
+ if ($[74] !== t28) {
517
+ t29 = clsx("flex shrink-0 items-center gap-1", t28);
518
+ $[74] = t28;
519
+ $[75] = t29;
525
520
  } else {
526
- t30 = $[71];
521
+ t29 = $[75];
527
522
  }
528
- const t31 = MODE_ICONS[shownMode];
529
- let t32;
530
- if ($[72] !== t31) {
531
- t32 = /*#__PURE__*/_jsx(Icon, {
532
- icon: t31,
523
+ const t30 = MODE_ICONS[shownMode];
524
+ let t31;
525
+ if ($[76] !== t30) {
526
+ t31 = /*#__PURE__*/_jsx(Icon, {
527
+ icon: t30,
533
528
  size: 12,
534
529
  className: "shrink-0"
535
530
  });
536
- $[72] = t31;
537
- $[73] = t32;
531
+ $[76] = t30;
532
+ $[77] = t31;
538
533
  } else {
539
- t32 = $[73];
534
+ t31 = $[77];
540
535
  }
541
- let t33;
542
- if ($[74] !== effectiveRuntimeMode || $[75] !== permissionMode || $[76] !== shownMode || $[77] !== t) {
543
- t33 = effectiveRuntimeMode === undefined && permissionMode !== undefined ? permissionMode : t(`modes.${shownMode}.short`);
544
- $[74] = effectiveRuntimeMode;
545
- $[75] = permissionMode;
546
- $[76] = shownMode;
547
- $[77] = t;
548
- $[78] = t33;
536
+ let t32;
537
+ if ($[78] !== effectiveRuntimeMode || $[79] !== permissionMode || $[80] !== shownMode || $[81] !== t) {
538
+ t32 = effectiveRuntimeMode === undefined && permissionMode !== undefined ? permissionMode : t(`modes.${shownMode}.short`);
539
+ $[78] = effectiveRuntimeMode;
540
+ $[79] = permissionMode;
541
+ $[80] = shownMode;
542
+ $[81] = t;
543
+ $[82] = t32;
549
544
  } else {
550
- t33 = $[78];
545
+ t32 = $[82];
551
546
  }
552
- let t34;
553
- if ($[79] !== t33) {
554
- t34 = /*#__PURE__*/_jsx("span", {
555
- children: t33
547
+ let t33;
548
+ if ($[83] !== t32) {
549
+ t33 = /*#__PURE__*/_jsx("span", {
550
+ className: "@max-xl/composer:hidden",
551
+ children: t32
556
552
  });
557
- $[79] = t33;
558
- $[80] = t34;
553
+ $[83] = t32;
554
+ $[84] = t33;
559
555
  } else {
560
- t34 = $[80];
556
+ t33 = $[84];
561
557
  }
562
- let t35;
563
- if ($[81] !== permissionFallback) {
564
- t35 = permissionFallback && /*#__PURE__*/_jsx(Icon, {
558
+ let t34;
559
+ if ($[85] !== permissionFallback) {
560
+ t34 = permissionFallback && /*#__PURE__*/_jsx(Icon, {
565
561
  icon: TriangleAlert,
566
562
  size: 12,
567
563
  className: "shrink-0 text-status-needs-you"
568
564
  });
569
- $[81] = permissionFallback;
570
- $[82] = t35;
565
+ $[85] = permissionFallback;
566
+ $[86] = t34;
571
567
  } else {
572
- t35 = $[82];
568
+ t34 = $[86];
573
569
  }
574
- let t36;
575
- if ($[83] !== t30 || $[84] !== t32 || $[85] !== t34 || $[86] !== t35) {
576
- t36 = /*#__PURE__*/_jsxs("span", {
577
- className: t30,
578
- children: [t32, t34, t35]
570
+ let t35;
571
+ if ($[87] !== t29 || $[88] !== t31 || $[89] !== t33 || $[90] !== t34) {
572
+ t35 = /*#__PURE__*/_jsxs("span", {
573
+ className: t29,
574
+ children: [t31, t33, t34]
579
575
  });
580
- $[83] = t30;
581
- $[84] = t32;
582
- $[85] = t34;
583
- $[86] = t35;
584
- $[87] = t36;
585
- } else {
586
- t36 = $[87];
587
- }
588
- const t37 = open ? ChevronUp : ChevronDown;
589
- let t38;
590
- if ($[88] !== t37) {
591
- t38 = /*#__PURE__*/_jsx(Icon, {
592
- icon: t37,
576
+ $[87] = t29;
577
+ $[88] = t31;
578
+ $[89] = t33;
579
+ $[90] = t34;
580
+ $[91] = t35;
581
+ } else {
582
+ t35 = $[91];
583
+ }
584
+ const t36 = open ? ChevronUp : ChevronDown;
585
+ let t37;
586
+ if ($[92] !== t36) {
587
+ t37 = /*#__PURE__*/_jsx(Icon, {
588
+ icon: t36,
593
589
  size: 12,
594
590
  className: "shrink-0 @max-sm/composer:hidden"
595
591
  });
596
- $[88] = t37;
597
- $[89] = t38;
598
- } else {
599
- t38 = $[89];
600
- }
601
- const t39 = Menu;
602
- const t40 = "top";
603
- const t41 = 8;
604
- const t42 = "start";
605
- const t43 = "w-80";
606
- let t44;
607
- if ($[90] !== providers.length || $[91] !== t) {
608
- t44 = providers.length === 0 && /*#__PURE__*/_jsx("div", {
592
+ $[92] = t36;
593
+ $[93] = t37;
594
+ } else {
595
+ t37 = $[93];
596
+ }
597
+ const t38 = Menu;
598
+ const t39 = "top";
599
+ const t40 = 8;
600
+ const t41 = "start";
601
+ const t42 = "w-80";
602
+ let t43;
603
+ if ($[94] !== providers.length || $[95] !== t) {
604
+ t43 = providers.length === 0 && /*#__PURE__*/_jsx("div", {
609
605
  className: "px-2.5 py-3 text-xs text-text-faint",
610
606
  children: t("pickers.model.noProvider")
611
607
  });
612
- $[90] = providers.length;
613
- $[91] = t;
614
- $[92] = t44;
608
+ $[94] = providers.length;
609
+ $[95] = t;
610
+ $[96] = t43;
615
611
  } else {
616
- t44 = $[92];
612
+ t43 = $[96];
617
613
  }
618
- let t45;
619
- if ($[93] !== onSearchKey || $[94] !== query || $[95] !== searchable || $[96] !== t) {
620
- t45 = searchable && /*#__PURE__*/_jsxs("div", {
614
+ let t44;
615
+ if ($[97] !== onSearchKey || $[98] !== query || $[99] !== searchable || $[100] !== t) {
616
+ t44 = searchable && /*#__PURE__*/_jsxs("div", {
621
617
  className: "flex items-center gap-2 border-b border-border px-2.5",
622
618
  children: [/*#__PURE__*/_jsx(Icon, {
623
619
  icon: Search,
@@ -634,59 +630,59 @@ export function RunSettings(t0) {
634
630
  onKeyDown: onSearchKey
635
631
  })]
636
632
  });
637
- $[93] = onSearchKey;
638
- $[94] = query;
639
- $[95] = searchable;
640
- $[96] = t;
641
- $[97] = t45;
633
+ $[97] = onSearchKey;
634
+ $[98] = query;
635
+ $[99] = searchable;
636
+ $[100] = t;
637
+ $[101] = t44;
642
638
  } else {
643
- t45 = $[97];
639
+ t44 = $[101];
644
640
  }
645
- let t46;
646
- if ($[98] !== found || $[99] !== t) {
647
- t46 = found !== null && found.length === 0 && /*#__PURE__*/_jsx("div", {
641
+ let t45;
642
+ if ($[102] !== found || $[103] !== t) {
643
+ t45 = found !== null && found.length === 0 && /*#__PURE__*/_jsx("div", {
648
644
  className: "px-2.5 py-3 text-xs text-text-faint",
649
645
  children: t("pickers.model.noMatch")
650
646
  });
651
- $[98] = found;
652
- $[99] = t;
653
- $[100] = t46;
647
+ $[102] = found;
648
+ $[103] = t;
649
+ $[104] = t45;
654
650
  } else {
655
- t46 = $[100];
651
+ t45 = $[104];
656
652
  }
657
- let t47;
658
- if ($[101] !== byMaker || $[102] !== chooseModel || $[103] !== chosenModel || $[104] !== found || $[105] !== grouped) {
659
- t47 = found !== null && found.length > 0 && /*#__PURE__*/_jsx(Menu.RadioGroup, {
653
+ let t46;
654
+ if ($[105] !== byMaker || $[106] !== chooseModel || $[107] !== chosenModel || $[108] !== found || $[109] !== grouped) {
655
+ t46 = found !== null && found.length > 0 && /*#__PURE__*/_jsx(Menu.RadioGroup, {
660
656
  value: chosenModel,
661
657
  onValueChange: chooseModel,
662
- children: found.map((t48, i_1) => {
658
+ children: found.map((t47, i_1) => {
663
659
  const {
664
- entry: entry_5,
660
+ entry: entry_7,
665
661
  models: models_2
666
- } = t48;
662
+ } = t47;
667
663
  return /*#__PURE__*/_jsxs(Fragment, {
668
- children: [separatesGroups(found[i_1 - 1]?.entry.kind, entry_5.kind) && /*#__PURE__*/_jsx(Menu.Separator, {}), /*#__PURE__*/_jsxs(Menu.Group, {
664
+ children: [separatesGroups(found[i_1 - 1]?.entry.kind, entry_7.kind) && /*#__PURE__*/_jsx(Menu.Separator, {}), /*#__PURE__*/_jsxs(Menu.Group, {
669
665
  children: [grouped && /*#__PURE__*/_jsxs(Menu.GroupLabel, {
670
666
  className: "flex items-center gap-1.5",
671
667
  children: [/*#__PURE__*/_jsx(AgentIcon, {
672
- kind: entry_5.kind,
668
+ kind: entry_7.kind,
673
669
  size: 12
674
- }), entry_5.name]
675
- }), byMaker(entry_5, models_2)]
670
+ }), entry_7.name]
671
+ }), byMaker(entry_7, models_2)]
676
672
  })]
677
- }, entry_5.kind);
673
+ }, entry_7.kind);
678
674
  })
679
675
  });
680
- $[101] = byMaker;
681
- $[102] = chooseModel;
682
- $[103] = chosenModel;
683
- $[104] = found;
684
- $[105] = grouped;
685
- $[106] = t47;
676
+ $[105] = byMaker;
677
+ $[106] = chooseModel;
678
+ $[107] = chosenModel;
679
+ $[108] = found;
680
+ $[109] = grouped;
681
+ $[110] = t46;
686
682
  } else {
687
- t47 = $[106];
683
+ t46 = $[110];
688
684
  }
689
- const t48 = found === null && /*#__PURE__*/_jsxs(_Fragment, {
685
+ const t47 = found === null && /*#__PURE__*/_jsxs(_Fragment, {
690
686
  children: [/*#__PURE__*/_jsx(Menu.RadioGroup, {
691
687
  value: chosenModel,
692
688
  onValueChange: chooseModel,
@@ -697,7 +693,7 @@ export function RunSettings(t0) {
697
693
  children: [/*#__PURE__*/_jsx("span", {
698
694
  className: "min-w-0 grow truncate",
699
695
  children: t("pickers.model.legacyGroup", {
700
- count: legacy.reduce(_temp3, 0)
696
+ count: legacy.reduce(_temp7, 0)
701
697
  })
702
698
  }), chosenLegacy && /*#__PURE__*/_jsx(Menu.Hint, {
703
699
  className: "truncate",
@@ -768,43 +764,57 @@ export function RunSettings(t0) {
768
764
  })]
769
765
  })]
770
766
  });
771
- let t49;
772
- if ($[107] !== onPopupKey || $[108] !== t39.Popup || $[109] !== t44 || $[110] !== t45 || $[111] !== t46 || $[112] !== t47 || $[113] !== t48) {
773
- t49 = /*#__PURE__*/_jsxs(t39.Popup, {
774
- side: t40,
775
- sideOffset: t41,
776
- align: t42,
777
- className: t43,
767
+ let t48;
768
+ if ($[111] !== onPopupKey || $[112] !== t38.Popup || $[113] !== t43 || $[114] !== t44 || $[115] !== t45 || $[116] !== t46 || $[117] !== t47) {
769
+ t48 = /*#__PURE__*/_jsxs(t38.Popup, {
770
+ side: t39,
771
+ sideOffset: t40,
772
+ align: t41,
773
+ className: t42,
778
774
  onKeyDownCapture: onPopupKey,
779
- children: [t44, t45, t46, t47, t48]
775
+ children: [t43, t44, t45, t46, t47]
780
776
  });
781
- $[107] = onPopupKey;
782
- $[108] = t39.Popup;
783
- $[109] = t44;
784
- $[110] = t45;
785
- $[111] = t46;
786
- $[112] = t47;
787
- $[113] = t48;
788
- $[114] = t49;
777
+ $[111] = onPopupKey;
778
+ $[112] = t38.Popup;
779
+ $[113] = t43;
780
+ $[114] = t44;
781
+ $[115] = t45;
782
+ $[116] = t46;
783
+ $[117] = t47;
784
+ $[118] = t48;
789
785
  } else {
790
- t49 = $[114];
786
+ t48 = $[118];
791
787
  }
792
788
  return /*#__PURE__*/_jsxs(Menu.Root, {
793
789
  open: open,
794
790
  onOpenChange: changeOpen,
795
791
  highlightItemOnHover: !searchable,
796
792
  children: [/*#__PURE__*/_jsx(Tooltip, {
797
- label: t19,
793
+ label: t20,
798
794
  kbd: "/model",
799
795
  children: /*#__PURE__*/_jsxs(Menu.Trigger, {
800
796
  disabled: disabled,
801
- className: t21,
802
- children: [t22, /*#__PURE__*/_jsxs("span", {
797
+ className: t22,
798
+ children: [t25, /*#__PURE__*/_jsxs("span", {
803
799
  className: "flex min-w-0 items-center gap-2 overflow-hidden @max-xl/composer:gap-1.5",
804
- children: [t23, t24, t25, t27, t28, t36]
805
- }), t38]
800
+ children: [/*#__PURE__*/_jsxs("span", {
801
+ className: "flex min-w-0 items-center gap-1.5",
802
+ children: [t26, words.map(_temp6)]
803
+ }), context !== null && /*#__PURE__*/_jsxs("span", {
804
+ className: "flex shrink-0 items-center gap-2 @max-xl/composer:gap-1.5",
805
+ children: [/*#__PURE__*/_jsx("span", {
806
+ className: "text-text-faint",
807
+ children: "\xB7"
808
+ }), /*#__PURE__*/_jsx(ContextRing, {
809
+ usage: usage
810
+ }), /*#__PURE__*/_jsx("span", {
811
+ className: "@max-xl/composer:hidden",
812
+ children: context.label
813
+ })]
814
+ }), t27, t35]
815
+ }), t37]
806
816
  })
807
- }), t49]
817
+ }), t48]
808
818
  });
809
819
  }
810
820
  /*
@@ -812,12 +822,27 @@ export function RunSettings(t0) {
812
822
  * after it one that reads the conversation, since the others would start it over, and a fork is how
813
823
  * the conversation goes along to those. A switch applies from the next turn.
814
824
  */
815
- function _temp3(count, group) {
825
+ function _temp7(count, group) {
816
826
  return count + group.models.length;
817
827
  }
818
- function _temp2(preferences) {
828
+ function _temp6(entry_6) {
829
+ return /*#__PURE__*/_jsx("span", {
830
+ className: clsx("shrink-0", entry_6.id !== EFFORT_OPTION && "@max-xl/composer:hidden"),
831
+ children: entry_6.label
832
+ }, entry_6.id);
833
+ }
834
+ function _temp5(preferences) {
819
835
  return preferences.favoriteModels;
820
836
  }
837
+ function _temp4(entry_1) {
838
+ return entry_1.ring;
839
+ }
840
+ function _temp3(a, b) {
841
+ return Number(b.id === EFFORT_OPTION) - Number(a.id === EFFORT_OPTION);
842
+ }
843
+ function _temp2(entry_0) {
844
+ return !entry_0.ring;
845
+ }
821
846
  function _temp(option_0) {
822
847
  return option_0.id === CONTEXT_OPTION;
823
848
  }
@@ -1259,7 +1284,7 @@ function ContextUsage(t0) {
1259
1284
  percent
1260
1285
  }),
1261
1286
  className: "flex h-1.5 overflow-hidden rounded-full bg-track",
1262
- children: segments ? segments.map(_temp4) : /*#__PURE__*/_jsx("div", {
1287
+ children: segments ? segments.map(_temp8) : /*#__PURE__*/_jsx("div", {
1263
1288
  className: clsx("h-full rounded-full bg-current", contextTone(fraction)),
1264
1289
  style: {
1265
1290
  width: `${percent}%`
@@ -1392,7 +1417,7 @@ function ContextUsage(t0) {
1392
1417
  * One of the model's own knobs: a few choices side by side, more of them in a submenu, a checkbox for
1393
1418
  * a boolean. Every choice is a menu item, so the arrow keys reach it.
1394
1419
  */
1395
- function _temp4(segment) {
1420
+ function _temp8(segment) {
1396
1421
  return /*#__PURE__*/_jsx("div", {
1397
1422
  className: clsx("h-full shrink-0", PART_COLORS[segment.part]),
1398
1423
  style: {
@@ -1531,7 +1556,7 @@ function OptionRow(t0) {
1531
1556
  }
1532
1557
  let t8;
1533
1558
  if ($[27] !== option.choices) {
1534
- t8 = option.choices.map(_temp5);
1559
+ t8 = option.choices.map(_temp9);
1535
1560
  $[27] = option.choices;
1536
1561
  $[28] = t8;
1537
1562
  } else {
@@ -1641,7 +1666,7 @@ function OptionRow(t0) {
1641
1666
  }
1642
1667
  return t8;
1643
1668
  }
1644
- function _temp5(choice_0) {
1669
+ function _temp9(choice_0) {
1645
1670
  return /*#__PURE__*/_jsx(Menu.RadioItem, {
1646
1671
  value: choice_0.id,
1647
1672
  className: choice_0.description ? "items-start" : undefined,