@mofeng2223/dsh-claude-provider 0.6.11 → 0.7.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 (3) hide show
  1. package/lib/client.js +887 -635
  2. package/package.json +4 -4
  3. package/src/index.js +4 -2
package/lib/client.js CHANGED
@@ -6,7 +6,7 @@ window.__ModuleLoader__.load({
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let react = require("react");
9
- let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
9
+ let _deepseek_ai_dsh_client_ui_primitives_client = require("@deepseek-ai/dsh-client-ui-primitives/client");
10
10
  let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
11
11
  const LEGAL_API_KEY = /^[\x21-\x7E]+$/;
12
12
  const ENV_LINE = /^[A-Z][A-Z0-9_]*=[^=]/;
@@ -42,47 +42,53 @@ window.__ModuleLoader__.load({
42
42
  credentialDot: "zGbnIq_credentialDot",
43
43
  credentialDotConfigured: "zGbnIq_credentialDotConfigured",
44
44
  credentialDotMissing: "zGbnIq_credentialDotMissing",
45
- customized: "zGbnIq_customized",
46
- customizedBody: "zGbnIq_customizedBody",
45
+ credentialMissing: "zGbnIq_credentialMissing",
47
46
  customizedSummary: "zGbnIq_customizedSummary",
48
47
  dangerButton: "zGbnIq_dangerButton",
49
48
  deleteConfirm: "zGbnIq_deleteConfirm",
50
49
  deleteDialog: "zGbnIq_deleteDialog",
51
50
  editor: "zGbnIq_editor",
52
51
  editorActions: "zGbnIq_editorActions",
52
+ editorFooter: "zGbnIq_editorFooter",
53
+ editorFooterSticky: "zGbnIq_editorFooterSticky",
53
54
  editorHeader: "zGbnIq_editorHeader",
55
+ editorNotes: "zGbnIq_editorNotes",
54
56
  editorRoute: "zGbnIq_editorRoute",
55
57
  editorTitle: "zGbnIq_editorTitle",
56
58
  error: "zGbnIq_error",
57
59
  fetchDialog: "zGbnIq_fetchDialog",
58
60
  field: "zGbnIq_field",
59
61
  fieldLabel: "zGbnIq_fieldLabel",
62
+ fieldPair: "zGbnIq_fieldPair",
63
+ fold: "zGbnIq_fold",
64
+ foldActions: "zGbnIq_foldActions",
65
+ foldBody: "zGbnIq_foldBody",
66
+ foldHead: "zGbnIq_foldHead",
67
+ foldMeta: "zGbnIq_foldMeta",
68
+ foldTitle: "zGbnIq_foldTitle",
69
+ foldToggle: "zGbnIq_foldToggle",
60
70
  helpButton: "zGbnIq_helpButton",
61
71
  hiddenLabel: "zGbnIq_hiddenLabel",
62
72
  iconButton: "zGbnIq_iconButton",
63
73
  iconButtonDanger: "zGbnIq_iconButtonDanger",
64
74
  input: "zGbnIq_input",
65
75
  intro: "zGbnIq_intro",
76
+ keyDisplay: "zGbnIq_keyDisplay",
77
+ keyDisplayValue: "zGbnIq_keyDisplayValue",
66
78
  keyInput: "zGbnIq_keyInput",
67
79
  keyInputFilled: "zGbnIq_keyInputFilled",
68
80
  keyToggle: "zGbnIq_keyToggle",
69
- linkButton: "zGbnIq_linkButton",
70
81
  "model-row": "zGbnIq_model-row",
71
82
  modelAdvanced: "zGbnIq_modelAdvanced",
72
- modelCatalog: "zGbnIq_modelCatalog",
73
- modelCatalogHeading: "zGbnIq_modelCatalogHeading",
74
- modelCatalogMeta: "zGbnIq_modelCatalogMeta",
75
- modelCatalogTitle: "zGbnIq_modelCatalogTitle",
76
- modelDragHandle: "zGbnIq_modelDragHandle",
77
83
  modelDragPreview: "zGbnIq_modelDragPreview",
78
84
  modelEmpty: "zGbnIq_modelEmpty",
79
85
  modelEntry: "zGbnIq_modelEntry",
80
86
  modelField: "zGbnIq_modelField",
81
87
  modelFieldLabel: "zGbnIq_modelFieldLabel",
88
+ modelGrip: "zGbnIq_modelGrip",
82
89
  modelInputChoices: "zGbnIq_modelInputChoices",
83
90
  modelInputTypes: "zGbnIq_modelInputTypes",
84
91
  modelList: "zGbnIq_modelList",
85
- modelListHead: "zGbnIq_modelListHead",
86
92
  modelName: "zGbnIq_modelName",
87
93
  modelNameLabel: "zGbnIq_modelNameLabel",
88
94
  modelReasoning: "zGbnIq_modelReasoning",
@@ -91,6 +97,9 @@ window.__ModuleLoader__.load({
91
97
  modelReasoningRow: "zGbnIq_modelReasoningRow",
92
98
  modelReasoningValueInput: "zGbnIq_modelReasoningValueInput",
93
99
  modelRow: "zGbnIq_modelRow",
100
+ modelSummary: "zGbnIq_modelSummary",
101
+ modelSummaryId: "zGbnIq_modelSummaryId",
102
+ modelSummaryName: "zGbnIq_modelSummaryName",
94
103
  notice: "zGbnIq_notice",
95
104
  primaryButton: "zGbnIq_primaryButton",
96
105
  retryBackoff: "zGbnIq_retryBackoff",
@@ -101,12 +110,12 @@ window.__ModuleLoader__.load({
101
110
  retryFold: "zGbnIq_retryFold",
102
111
  rowActions: "zGbnIq_rowActions",
103
112
  rowCard: "zGbnIq_rowCard",
113
+ rowCardOpen: "zGbnIq_rowCardOpen",
104
114
  rowHead: "zGbnIq_rowHead",
105
115
  rowIdentity: "zGbnIq_rowIdentity",
106
116
  rowName: "zGbnIq_rowName",
107
117
  rowTag: "zGbnIq_rowTag",
108
118
  rows: "zGbnIq_rows",
109
- savedKeyInput: "zGbnIq_savedKeyInput",
110
119
  savedNotice: "zGbnIq_savedNotice",
111
120
  secondaryButton: "zGbnIq_secondaryButton",
112
121
  section: "zGbnIq_section",
@@ -114,18 +123,83 @@ window.__ModuleLoader__.load({
114
123
  selectInput: "zGbnIq_selectInput",
115
124
  setupCard: "zGbnIq_setupCard",
116
125
  switchThumb: "zGbnIq_switchThumb",
126
+ textAction: "zGbnIq_textAction",
117
127
  title: "zGbnIq_title"
118
128
  };
119
129
  const EYE_CONTOUR =
120
130
  "M1.5 8C2.9 5.25 5.25 3.5 8 3.5C10.75 3.5 13.1 5.25 14.5 8C13.1 10.75 10.75 12.5 8 12.5C5.25 12.5 2.9 10.75 1.5 8Z";
121
131
  const EYE_PATH = `${EYE_CONTOUR}M10 8C10 9.1 9.1 10 8 10C6.9 10 6 9.1 6 8C6 6.9 6.9 6 8 6C9.1 6 10 6.9 10 8Z`;
122
132
  const EYE_OFF_PATH = `${EYE_CONTOUR}M2.5 2.5L13.5 13.5`;
123
- function ApiKeyInput({ value, saved, t, ...props }) {
133
+ const MASK = "•";
134
+ const SAVED_KEY_MASK = MASK.repeat(8);
135
+ function ApiKeyInput({ value, saved, invalid = false, t, ...props }) {
136
+ const [mode, setMode] = (0, react.useState)("readOnly");
124
137
  const [revealedValue, setRevealedValue] = (0, react.useState)();
125
- const canReveal = saved === void 0 && value.length > 0 && props.disabled !== true;
138
+ if (saved !== void 0 && mode !== "editing") {
139
+ const { clear } = saved;
140
+ return (0, react_jsx_runtime.jsxs)("div", {
141
+ className: ModelsSection_module_css_default["keyDisplay"],
142
+ children: [
143
+ (0, react_jsx_runtime.jsx)("span", {
144
+ className: ModelsSection_module_css_default["keyDisplayValue"],
145
+ children: value === "" ? (saved.masked ?? SAVED_KEY_MASK) : MASK.repeat(Array.from(value.trim()).length)
146
+ }),
147
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Tooltip, {
148
+ label: t("keyReplace"),
149
+ side: "top",
150
+ portal: true,
151
+ children: (0, react_jsx_runtime.jsx)("button", {
152
+ type: "button",
153
+ className: ModelsSection_module_css_default["iconButton"],
154
+ "aria-label": t("keyReplace"),
155
+ autoFocus: mode === "returned",
156
+ disabled: props.disabled,
157
+ onClick: () => {
158
+ setMode("editing");
159
+ },
160
+ children: (0, react_jsx_runtime.jsx)(
161
+ _deepseek_ai_dsh_client_ui_primitives_client.IconEditOutlineRegular,
162
+ { size: 14 }
163
+ )
164
+ })
165
+ }),
166
+ clear === void 0
167
+ ? null
168
+ : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Tooltip, {
169
+ label: t("keyClear"),
170
+ side: "top",
171
+ portal: true,
172
+ children: (0, react_jsx_runtime.jsx)("button", {
173
+ type: "button",
174
+ className: `${ModelsSection_module_css_default["iconButton"]} ${ModelsSection_module_css_default["iconButtonDanger"]}`,
175
+ "aria-label": t("keyClear"),
176
+ disabled: props.disabled,
177
+ onClick: () => {
178
+ setMode("editing");
179
+ clear();
180
+ },
181
+ children: (0, react_jsx_runtime.jsx)(
182
+ _deepseek_ai_dsh_client_ui_primitives_client.IconTrashOutlineRegular,
183
+ { size: 14 }
184
+ )
185
+ })
186
+ })
187
+ ]
188
+ });
189
+ }
190
+ const canReveal = value.length > 0 && props.disabled !== true;
126
191
  const revealed = canReveal && revealedValue === value;
192
+ const settles = saved !== void 0 && !invalid;
193
+ const leave = (next) => {
194
+ setRevealedValue(void 0);
195
+ setMode(next);
196
+ };
127
197
  return (0, react_jsx_runtime.jsxs)("div", {
128
- className: `${ModelsSection_module_css_default["keyInput"]} ${saved === void 0 ? "" : ModelsSection_module_css_default["savedKeyInput"]}`,
198
+ className: ModelsSection_module_css_default["keyInput"],
199
+ onBlur: (event) => {
200
+ if (!settles || event.currentTarget.contains(event.relatedTarget) || !document.hasFocus()) return;
201
+ leave("readOnly");
202
+ },
129
203
  children: [
130
204
  (0, react_jsx_runtime.jsx)("input", {
131
205
  ...props,
@@ -133,18 +207,13 @@ window.__ModuleLoader__.load({
133
207
  type: revealed ? "text" : "password",
134
208
  autoComplete: "new-password",
135
209
  value,
136
- placeholder: saved === void 0 ? props.placeholder : saved.masked,
137
- onCopy: (event) => {
138
- if (saved !== void 0) event.preventDefault();
139
- },
140
- onCut: (event) => {
141
- if (saved !== void 0) event.preventDefault();
142
- },
210
+ placeholder: saved === void 0 ? props.placeholder : t("keyReplacementPlaceholder"),
211
+ "aria-invalid": invalid,
212
+ autoFocus: mode === "editing" || props.autoFocus === true,
143
213
  onKeyDown: (event) => {
144
- if (saved !== void 0 && (event.key === "Backspace" || event.key === "Delete")) {
145
- event.preventDefault();
146
- saved.clear?.();
147
- }
214
+ if (event.key !== "Enter" || event.nativeEvent.isComposing || !settles) return;
215
+ event.preventDefault();
216
+ leave("returned");
148
217
  },
149
218
  onChange: (event) => {
150
219
  setRevealedValue(void 0);
@@ -158,6 +227,9 @@ window.__ModuleLoader__.load({
158
227
  className: ModelsSection_module_css_default["keyToggle"],
159
228
  "aria-label": t(revealed ? "keyHide" : "keyReveal"),
160
229
  "aria-pressed": revealed,
230
+ onMouseDown: (event) => {
231
+ event.preventDefault();
232
+ },
161
233
  onClick: () => {
162
234
  setRevealedValue(revealed ? void 0 : value);
163
235
  },
@@ -179,21 +251,85 @@ window.__ModuleLoader__.load({
179
251
  function EditorFooter(props) {
180
252
  const { t } = props;
181
253
  return (0, react_jsx_runtime.jsxs)("div", {
182
- className: ModelsSection_module_css_default["editorActions"],
254
+ className: `${ModelsSection_module_css_default["editorFooter"]} ${props.sticky === true ? ModelsSection_module_css_default["editorFooterSticky"] : ""}`,
183
255
  children: [
184
- (0, react_jsx_runtime.jsx)("button", {
185
- type: "button",
186
- className: ModelsSection_module_css_default["secondaryButton"],
187
- disabled: props.busy,
188
- onClick: props.onCancel,
189
- children: t(props.cancelLabelKey ?? "cancel")
256
+ (0, react_jsx_runtime.jsx)("div", {
257
+ className: ModelsSection_module_css_default["editorNotes"],
258
+ children: props.children
190
259
  }),
191
- (0, react_jsx_runtime.jsx)("button", {
192
- type: "button",
193
- className: ModelsSection_module_css_default["primaryButton"],
194
- disabled: props.submitDisabled,
195
- onClick: props.onSubmit,
196
- children: props.busy ? t(props.submitBusyLabelKey) : t(props.submitLabelKey)
260
+ (0, react_jsx_runtime.jsxs)("div", {
261
+ className: ModelsSection_module_css_default["editorActions"],
262
+ children: [
263
+ (0, react_jsx_runtime.jsx)("button", {
264
+ type: "button",
265
+ className: ModelsSection_module_css_default["secondaryButton"],
266
+ disabled: props.busy,
267
+ onClick: props.onCancel,
268
+ children: t(props.cancelLabelKey ?? "cancel")
269
+ }),
270
+ (0, react_jsx_runtime.jsx)("button", {
271
+ type: "button",
272
+ className: ModelsSection_module_css_default["primaryButton"],
273
+ disabled: props.submitDisabled,
274
+ onClick: props.onSubmit,
275
+ children: props.busy ? t(props.submitBusyLabelKey) : t(props.submitLabelKey)
276
+ })
277
+ ]
278
+ })
279
+ ]
280
+ });
281
+ }
282
+ function FoldSection(props) {
283
+ const body = (0, react.useId)();
284
+ const shown = props.collapsible === false || props.open;
285
+ return (0, react_jsx_runtime.jsxs)("section", {
286
+ className: ModelsSection_module_css_default["fold"],
287
+ "aria-label": props.title,
288
+ children: [
289
+ (0, react_jsx_runtime.jsxs)("div", {
290
+ className: ModelsSection_module_css_default["foldHead"],
291
+ children: [
292
+ props.collapsible === false
293
+ ? (0, react_jsx_runtime.jsx)("span", {
294
+ className: ModelsSection_module_css_default["foldTitle"],
295
+ children: props.title
296
+ })
297
+ : (0, react_jsx_runtime.jsxs)("button", {
298
+ type: "button",
299
+ className: ModelsSection_module_css_default["foldToggle"],
300
+ "aria-expanded": props.open,
301
+ "aria-controls": body,
302
+ onClick: () => {
303
+ props.onToggle(!props.open);
304
+ },
305
+ children: [
306
+ props.title,
307
+ props.open
308
+ ? (0, react_jsx_runtime.jsx)(
309
+ _deepseek_ai_dsh_client_ui_primitives_client.IconChevronDownOutlineRegular,
310
+ {}
311
+ )
312
+ : (0, react_jsx_runtime.jsx)(
313
+ _deepseek_ai_dsh_client_ui_primitives_client.IconChevronRightOutlineRegular,
314
+ {}
315
+ )
316
+ ]
317
+ }),
318
+ props.status,
319
+ props.actions === void 0
320
+ ? null
321
+ : (0, react_jsx_runtime.jsx)("span", {
322
+ className: ModelsSection_module_css_default["foldActions"],
323
+ children: props.actions
324
+ })
325
+ ]
326
+ }),
327
+ props.notice,
328
+ (0, react_jsx_runtime.jsx)("div", {
329
+ id: body,
330
+ className: ModelsSection_module_css_default["foldBody"],
331
+ hidden: !shown,
332
+ children: props.children
197
333
  })
198
334
  ]
199
335
  });
@@ -213,7 +349,7 @@ window.__ModuleLoader__.load({
213
349
  className: ModelsSection_module_css_default["modelInputChoices"],
214
350
  children: ["text", "image"].map((modality) =>
215
351
  (0, react_jsx_runtime.jsx)(
216
- _deepseek_ai_dsh_client_ui_primitives.Checkbox,
352
+ _deepseek_ai_dsh_client_ui_primitives_client.Checkbox,
217
353
  {
218
354
  label: t(modality === "text" ? "modelInputText" : "modelInputImage"),
219
355
  checked: selected.includes(modality),
@@ -337,7 +473,7 @@ window.__ModuleLoader__.load({
337
473
  className: `${ModelsSection_module_css_default["modelFieldLabel"]} ${ModelsSection_module_css_default["modelReasoningLabel"]}`,
338
474
  children: [
339
475
  t("modelReasoning"),
340
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
476
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Tooltip, {
341
477
  label: t("modelReasoningHelpText"),
342
478
  side: "right",
343
479
  delayMs: 0,
@@ -353,7 +489,7 @@ window.__ModuleLoader__.load({
353
489
  })
354
490
  ]
355
491
  }),
356
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
492
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Switch, {
357
493
  checked: entries !== void 0,
358
494
  label,
359
495
  disabled,
@@ -436,7 +572,7 @@ window.__ModuleLoader__.load({
436
572
  write(entries.filter((_entry, at) => at !== index));
437
573
  },
438
574
  children: (0, react_jsx_runtime.jsx)(
439
- _deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular,
575
+ _deepseek_ai_dsh_client_ui_primitives_client.IconTrashOutlineRegular,
440
576
  { size: 14 }
441
577
  )
442
578
  })
@@ -469,7 +605,7 @@ window.__ModuleLoader__.load({
469
605
  addLevel(entries);
470
606
  },
471
607
  children: [
472
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, {
608
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.IconPlusOutlineRegular, {
473
609
  size: 14
474
610
  }),
475
611
  t("modelReasoningAdd")
@@ -484,11 +620,30 @@ window.__ModuleLoader__.load({
484
620
  const rect = event.currentTarget.getBoundingClientRect();
485
621
  return event.clientY < rect.top + rect.height / 2 ? "before" : "after";
486
622
  }
623
+ function textOf$2(model, field) {
624
+ const value = model[field];
625
+ return typeof value === "string" ? value : "";
626
+ }
487
627
  function ModelRow(props) {
488
- const { model, position, t, disabled } = props;
489
- const preview = (0, _deepseek_ai_dsh_client_ui_primitives.useRowDragPreview)(
628
+ const { model, position, t, disabled, failures } = props;
629
+ const preview = (0, _deepseek_ai_dsh_client_ui_primitives_client.useRowDragPreview)(
490
630
  ModelsSection_module_css_default["modelDragPreview"]
491
631
  );
632
+ const rowId = (0, react.useId)();
633
+ const refusal = (field) => {
634
+ const key = failures.get(field);
635
+ if (key === void 0) return { input: {}, reason: null };
636
+ const id = `${rowId}-${field}`;
637
+ return {
638
+ input: { "aria-invalid": true, "aria-describedby": id },
639
+ reason: (0, react_jsx_runtime.jsx)("span", {
640
+ id,
641
+ className: ModelsSection_module_css_default["error"],
642
+ children: t(key)
643
+ })
644
+ };
645
+ };
646
+ const draggable = !props.expanded && !disabled;
492
647
  const modelField = (field) =>
493
648
  (0, react_jsx_runtime.jsxs)("label", {
494
649
  className: `${ModelsSection_module_css_default["modelField"]} ${field === "name" ? ModelsSection_module_css_default["modelName"] : ""}`,
@@ -502,24 +657,40 @@ window.__ModuleLoader__.load({
502
657
  (0, react_jsx_runtime.jsx)("input", {
503
658
  className: ModelsSection_module_css_default["input"],
504
659
  type: "text",
505
- value: typeof model[field] === "string" ? model[field] : "",
660
+ value: textOf$2(model, field),
506
661
  placeholder: t(field === "id" ? "modelId" : "modelName"),
507
662
  "aria-label": `${t(field === "id" ? "modelId" : "modelName")} ${String(position)}`,
508
663
  disabled,
509
- onFocus: field === "name" && !props.expanded ? props.onToggle : void 0,
664
+ ...refusal(field).input,
510
665
  onChange: (event) => {
511
666
  const value = event.target.value;
512
667
  props.onFieldChange(field, field === "name" && value === "" ? void 0 : value);
513
668
  },
514
669
  onBlur: field === "id" ? (event) => props.onIdBlur?.(event.target.value) : void 0
515
- })
670
+ }),
671
+ refusal(field).reason
516
672
  ]
517
673
  });
518
- return (0, react_jsx_runtime.jsx)("div", {
674
+ const id = textOf$2(model, "id");
675
+ const name = textOf$2(model, "name");
676
+ return (0, react_jsx_runtime.jsxs)("div", {
519
677
  className: ModelsSection_module_css_default["modelEntry"],
520
678
  "data-row-key": props.rowKey,
679
+ "data-invalid": failures.size > 0 || void 0,
521
680
  "data-dragging": props.order.dragging || void 0,
522
681
  "data-drop-target": props.order.dragging ? void 0 : props.order.target,
682
+ draggable: draggable || void 0,
683
+ onDragStart: draggable
684
+ ? (event) => {
685
+ event.dataTransfer.effectAllowed = "move";
686
+ event.dataTransfer.setData("application/x-dsh-model-order", String(position));
687
+ props.order.onStart();
688
+ preview.start(event);
689
+ }
690
+ : void 0,
691
+ onDragEnd: () => {
692
+ if (preview.clear()) props.order.onEnd();
693
+ },
523
694
  onDragOver: (event) => {
524
695
  if (!props.order.canDrop) return;
525
696
  event.preventDefault();
@@ -527,7 +698,7 @@ window.__ModuleLoader__.load({
527
698
  props.order.onOver(rowHalf(event));
528
699
  },
529
700
  onDragLeave: (event) => {
530
- if (event.relatedTarget instanceof Node && event.currentTarget.contains(event.relatedTarget)) return;
701
+ if (event.currentTarget.contains(event.relatedTarget)) return;
531
702
  props.order.onLeave();
532
703
  },
533
704
  onDrop: (event) => {
@@ -535,147 +706,182 @@ window.__ModuleLoader__.load({
535
706
  event.preventDefault();
536
707
  props.order.onDrop(rowHalf(event));
537
708
  },
538
- children: (0, react_jsx_runtime.jsxs)("div", {
539
- className: ModelsSection_module_css_default["modelRow"],
540
- "data-expanded": props.expanded || void 0,
541
- children: [
542
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
543
- label: t("reorderModelHelp"),
544
- portal: true,
545
- children: (0, react_jsx_runtime.jsx)("button", {
709
+ children: [
710
+ draggable
711
+ ? (0, react_jsx_runtime.jsx)("span", {
712
+ className: ModelsSection_module_css_default["modelGrip"],
713
+ "aria-hidden": "true",
714
+ children: (0, react_jsx_runtime.jsx)(
715
+ _deepseek_ai_dsh_client_ui_primitives_client.IconDragDotsFillRegular,
716
+ {}
717
+ )
718
+ })
719
+ : null,
720
+ (0, react_jsx_runtime.jsxs)("div", {
721
+ className: ModelsSection_module_css_default["modelRow"],
722
+ "data-expanded": props.expanded || void 0,
723
+ children: [
724
+ props.expanded
725
+ ? (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
726
+ children: [modelField("id"), modelField("name")]
727
+ })
728
+ : (0, react_jsx_runtime.jsxs)("div", {
729
+ className: ModelsSection_module_css_default["modelSummary"],
730
+ onClick: props.onToggle,
731
+ children: [
732
+ (0, react_jsx_runtime.jsx)("span", {
733
+ className: ModelsSection_module_css_default["modelSummaryId"],
734
+ "data-unnamed": id.length === 0 || void 0,
735
+ children: id.length === 0 ? t("modelId") : id
736
+ }),
737
+ name.length === 0
738
+ ? null
739
+ : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
740
+ children: [
741
+ " ",
742
+ (0, react_jsx_runtime.jsx)("span", {
743
+ className: ModelsSection_module_css_default["modelSummaryName"],
744
+ children: name
745
+ })
746
+ ]
747
+ })
748
+ ]
749
+ }),
750
+ (0, react_jsx_runtime.jsx)("button", {
546
751
  type: "button",
547
- className: `${ModelsSection_module_css_default["iconButton"]} ${ModelsSection_module_css_default["modelDragHandle"]}`,
548
- "aria-label": `${t("reorderModel")} ${String(position)}`,
549
- "aria-keyshortcuts": "ArrowUp ArrowDown",
550
- "aria-description": t("reorderModelHelp"),
551
- disabled,
552
- draggable: !disabled,
553
- onDragStart: (event) => {
554
- event.dataTransfer.effectAllowed = "move";
555
- event.dataTransfer.setData("application/x-dsh-model-order", String(position));
556
- props.order.onStart();
557
- preview.start(event, event.currentTarget.closest("[data-row-key]"));
558
- },
559
- onDragEnd: () => {
560
- if (preview.clear()) props.order.onEnd();
561
- },
562
- onKeyDown: (event) => {
563
- if (event.key !== "ArrowUp" && event.key !== "ArrowDown") return;
564
- event.preventDefault();
565
- event.stopPropagation();
566
- props.order.onMove(event.key === "ArrowUp" ? -1 : 1);
752
+ className: ModelsSection_module_css_default["iconButton"],
753
+ "aria-label": `${t("modelAdvanced")} ${String(position)}`,
754
+ "aria-expanded": props.expanded,
755
+ title: t("modelAdvanced"),
756
+ onClick: (event) => {
757
+ event.currentTarget.focus();
758
+ props.onToggle();
567
759
  },
760
+ children: props.expanded
761
+ ? (0, react_jsx_runtime.jsx)(
762
+ _deepseek_ai_dsh_client_ui_primitives_client.IconChevronDownOutlineRegular,
763
+ {}
764
+ )
765
+ : (0, react_jsx_runtime.jsx)(
766
+ _deepseek_ai_dsh_client_ui_primitives_client.IconChevronRightOutlineRegular,
767
+ {}
768
+ )
769
+ }),
770
+ (0, react_jsx_runtime.jsx)("button", {
771
+ type: "button",
772
+ className: `${ModelsSection_module_css_default["iconButton"]} ${ModelsSection_module_css_default["iconButtonDanger"]}`,
773
+ "aria-label": `${t("removeModel")} ${String(position)}`,
774
+ title: t("removeModel"),
775
+ disabled,
776
+ onClick: props.onRemove,
568
777
  children: (0, react_jsx_runtime.jsx)(
569
- _deepseek_ai_dsh_client_ui_primitives.IconDragHandleOutlineRegular,
778
+ _deepseek_ai_dsh_client_ui_primitives_client.IconTrashOutlineRegular,
570
779
  { size: 14 }
571
780
  )
572
- })
573
- }),
574
- modelField("id"),
575
- (0, react_jsx_runtime.jsx)("button", {
576
- type: "button",
577
- className: ModelsSection_module_css_default["iconButton"],
578
- "aria-label": `${t("modelAdvanced")} ${String(position)}`,
579
- "aria-expanded": props.expanded,
580
- title: t("modelAdvanced"),
581
- onClick: (event) => {
582
- event.currentTarget.focus();
583
- props.onToggle();
584
- },
585
- children: props.expanded
586
- ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {})
587
- : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {})
588
- }),
589
- (0, react_jsx_runtime.jsx)("button", {
590
- type: "button",
591
- className: `${ModelsSection_module_css_default["iconButton"]} ${ModelsSection_module_css_default["iconButtonDanger"]}`,
592
- "aria-label": `${t("removeModel")} ${String(position)}`,
593
- title: t("removeModel"),
594
- disabled,
595
- onClick: props.onRemove,
596
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular, {
597
- size: 14
598
- })
599
- }),
600
- modelField("name"),
601
- props.expanded
602
- ? (0, react_jsx_runtime.jsxs)("div", {
603
- className: ModelsSection_module_css_default["modelAdvanced"],
604
- children: [
605
- ["contextWindow", "maxTokens"].map((field) =>
606
- (0, react_jsx_runtime.jsxs)(
607
- "label",
608
- {
609
- className: ModelsSection_module_css_default["modelField"],
610
- children: [
611
- (0, react_jsx_runtime.jsx)("span", {
612
- className: ModelsSection_module_css_default["modelFieldLabel"],
613
- children: t(field)
614
- }),
615
- (0, react_jsx_runtime.jsx)("input", {
616
- className: ModelsSection_module_css_default["input"],
617
- type: "text",
618
- inputMode: "numeric",
619
- value: props[field].value,
620
- placeholder: props[field].placeholder,
621
- "aria-label": `${t(field)} ${String(position)}`,
622
- disabled,
623
- onChange: (event) => {
624
- props[field].onChange(event.target.value);
625
- },
626
- onBlur: props[field].onBlur
627
- })
628
- ]
629
- },
630
- field
631
- )
632
- ),
633
- (0, react_jsx_runtime.jsx)(ModelInputTypes, {
634
- model,
635
- field: props.inputField,
636
- position,
637
- fallback: props.inputFallback,
638
- disabled: disabled || props.inputLoading === true,
639
- t,
640
- onChange: props.onChange
641
- }),
642
- props.reasoningLevels !== void 0 && props.reasoningLevels.length > 0
643
- ? (0, react_jsx_runtime.jsx)(ModelReasoningEfforts, {
644
- model,
645
- levels: props.reasoningLevels,
646
- claude: props.thinkingPresets === true,
647
- adaptiveFallback: props.adaptiveFallback,
648
- levelsOnly: props.reasoningLevelsOnly === true,
649
- position,
650
- disabled,
651
- t,
652
- onChange: props.onChange
653
- })
654
- : null
655
- ]
656
- })
657
- : null
658
- ]
659
- })
781
+ }),
782
+ props.expanded
783
+ ? (0, react_jsx_runtime.jsxs)("div", {
784
+ className: ModelsSection_module_css_default["modelAdvanced"],
785
+ children: [
786
+ ["contextWindow", "maxTokens"].map((field) =>
787
+ (0, react_jsx_runtime.jsxs)(
788
+ "label",
789
+ {
790
+ className: ModelsSection_module_css_default["modelField"],
791
+ children: [
792
+ (0, react_jsx_runtime.jsx)("span", {
793
+ className: ModelsSection_module_css_default["modelFieldLabel"],
794
+ children: t(field)
795
+ }),
796
+ (0, react_jsx_runtime.jsx)("input", {
797
+ className: ModelsSection_module_css_default["input"],
798
+ type: "text",
799
+ inputMode: "numeric",
800
+ value: props[field].value,
801
+ placeholder: props[field].placeholder,
802
+ "aria-label": `${t(field)} ${String(position)}`,
803
+ disabled,
804
+ ...refusal(field).input,
805
+ onChange: (event) => {
806
+ props[field].onChange(event.target.value);
807
+ },
808
+ onBlur: props[field].onBlur
809
+ }),
810
+ refusal(field).reason
811
+ ]
812
+ },
813
+ field
814
+ )
815
+ ),
816
+ (0, react_jsx_runtime.jsx)(ModelInputTypes, {
817
+ model,
818
+ field: props.inputField,
819
+ position,
820
+ fallback: props.inputFallback,
821
+ disabled: disabled || props.inputLoading === true,
822
+ t,
823
+ onChange: props.onChange
824
+ }),
825
+ props.reasoningLevels !== void 0 && props.reasoningLevels.length > 0
826
+ ? (0, react_jsx_runtime.jsx)(ModelReasoningEfforts, {
827
+ model,
828
+ levels: props.reasoningLevels,
829
+ claude: props.thinkingPresets === true,
830
+ adaptiveFallback: props.adaptiveFallback,
831
+ levelsOnly: props.reasoningLevelsOnly === true,
832
+ position,
833
+ disabled,
834
+ t,
835
+ onChange: props.onChange
836
+ })
837
+ : null
838
+ ]
839
+ })
840
+ : null
841
+ ]
842
+ })
843
+ ]
660
844
  });
661
845
  }
662
- function createRow(key) {
663
- return { key, expanded: false, editing: new Map() };
846
+ const UNMARKED = new Set();
847
+ function shownFailures(marked, failing) {
848
+ return new Map([...failing].filter(([field]) => marked.has(field)));
849
+ }
850
+ function createRow(key, expanded = false) {
851
+ return { key, expanded, editing: new Map(), marked: UNMARKED };
664
852
  }
665
- function useModelRows(models, onChange, disabled) {
853
+ function unnamed(model) {
854
+ const id = model["id"];
855
+ return typeof id !== "string" || id.length === 0;
856
+ }
857
+ function useModelRows(models, onChange, disabled, check) {
666
858
  const nextKey = (0, react.useRef)(0);
667
859
  const [stored, setRows] = (0, react.useState)(() => models.map(() => createRow(nextKey.current++)));
668
860
  const [dragged, setDragged] = (0, react.useState)();
669
861
  const [target, setTarget] = (0, react.useState)();
670
- const entries = models.map((model, index) => ({ model, state: stored[index] ?? createRow(nextKey.current++) }));
862
+ const entries = models.map((model, index) => ({
863
+ model,
864
+ state: stored[index] ?? createRow(nextKey.current++, unnamed(model))
865
+ }));
671
866
  const rows = entries.map((entry) => entry.state);
672
- if (stored.length !== models.length) setRows(rows);
867
+ const [listOpen, setListOpen] = (0, react.useState)(true);
868
+ const [attempt, setAttempt] = (0, react.useState)(check.attempt);
869
+ if (attempt !== check.attempt) {
870
+ setAttempt(check.attempt);
871
+ setRows(
872
+ rows.map((row, index) => {
873
+ const marked = check.failing[index];
874
+ return marked.size === 0 ? { ...row, marked: UNMARKED } : { ...row, marked, expanded: true };
875
+ })
876
+ );
877
+ if (check.failing.some((marked) => marked.size > 0)) setListOpen(true);
878
+ } else if (stored.length !== models.length) setRows(rows);
673
879
  const endDrag = () => {
674
880
  setDragged(void 0);
675
881
  setTarget(void 0);
676
882
  };
677
883
  const move = (from, to) => {
678
- if (disabled || from === to || from < 0 || to < 0 || to >= models.length) return;
884
+ if (disabled || from === to || from < 0) return;
679
885
  const order = [...entries];
680
886
  const moved = order.splice(from, 1);
681
887
  order.splice(to, 0, ...moved);
@@ -707,12 +913,11 @@ window.__ModuleLoader__.load({
707
913
  const insertion = index + (half === "after" ? 1 : 0);
708
914
  move(from, insertion > from ? insertion - 1 : insertion);
709
915
  endDrag();
710
- },
711
- onMove: (offset) => {
712
- move(index, index + offset);
713
916
  }
714
917
  }
715
918
  })),
919
+ listOpen,
920
+ setListOpen,
716
921
  toggle: (index) => {
717
922
  setRows(rows.map((row, at) => (at === index ? { ...row, expanded: !row.expanded } : row)));
718
923
  },
@@ -760,32 +965,41 @@ window.__ModuleLoader__.load({
760
965
  if (!Array.isArray(value)) return [];
761
966
  return value.map((entry) => (typeof entry === "object" && entry !== null && !Array.isArray(entry) ? entry : {}));
762
967
  }
763
- function validateDeepSeekModels(value) {
764
- if (value === void 0) return void 0;
765
- const models = modelDrafts(value);
968
+ function modelRowFailures(value) {
766
969
  const seen = new Set();
767
- for (const [index, model] of models.entries()) {
970
+ return modelDrafts(value).map((model) => {
971
+ const failures = new Map();
768
972
  const id = model["id"];
769
- const trimmed = typeof id === "string" ? id.trim() : void 0;
770
- if (trimmed === void 0 || trimmed.length === 0) return { index, key: "modelIdRequired" };
771
- if (seen.has(trimmed)) return { index, key: "modelIdDuplicate" };
772
- seen.add(trimmed);
973
+ const trimmed = typeof id === "string" ? id.trim() : "";
974
+ if (trimmed.length === 0) failures.set("id", "modelIdRequired");
975
+ else if (seen.has(trimmed)) failures.set("id", "modelIdDuplicate");
976
+ else seen.add(trimmed);
773
977
  const name = model["name"];
774
978
  if (name !== void 0 && (typeof name !== "string" || name.length === 0))
775
- return { index, key: "modelNameInvalid" };
979
+ failures.set("name", "modelNameInvalid");
776
980
  const contextWindow = model["contextWindow"];
777
981
  if (
778
982
  contextWindow !== void 0 &&
779
983
  (typeof contextWindow !== "number" || !Number.isInteger(contextWindow) || contextWindow <= 0)
780
984
  )
781
- return { index, key: "modelContextInvalid" };
985
+ failures.set("contextWindow", "modelContextInvalid");
782
986
  const maxTokens = model["maxTokens"];
783
987
  if (maxTokens !== void 0 && (typeof maxTokens !== "number" || !Number.isInteger(maxTokens) || maxTokens <= 0))
784
- return { index, key: "modelMaxTokensInvalid" };
785
- }
988
+ failures.set("maxTokens", "modelMaxTokensInvalid");
989
+ return failures;
990
+ });
991
+ }
992
+ function validateDeepSeekModels(value) {
993
+ if (value === void 0) return void 0;
994
+ for (const [index, failures] of modelRowFailures(value).entries())
995
+ for (const key of failures.values()) return { index, key };
786
996
  }
787
997
  function DeepSeekModelsEditor(props) {
788
- const rowState = useModelRows(props.models, props.onChange, props.disabled);
998
+ const failures = modelRowFailures(props.models);
999
+ const rowState = useModelRows(props.models, props.onChange, props.disabled, {
1000
+ attempt: props.attempt,
1001
+ failing: failures.map((row) => new Set(row.keys()))
1002
+ });
789
1003
  const update = (index, key, value) => {
790
1004
  const next = props.models.map((model, at) => {
791
1005
  const copy = { ...model };
@@ -831,38 +1045,29 @@ window.__ModuleLoader__.load({
831
1045
  settleCapacity(index, field);
832
1046
  }
833
1047
  });
834
- return (0, react_jsx_runtime.jsxs)("section", {
835
- className: ModelsSection_module_css_default["modelCatalog"],
836
- "aria-label": props.t("models"),
1048
+ return (0, react_jsx_runtime.jsxs)(FoldSection, {
1049
+ title: props.t("models"),
1050
+ open: rowState.listOpen,
1051
+ onToggle: rowState.setListOpen,
1052
+ status: props.overridden
1053
+ ? (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
1054
+ children: [
1055
+ (0, react_jsx_runtime.jsx)("span", {
1056
+ className: ModelsSection_module_css_default["foldMeta"],
1057
+ children: props.t("modelsCustomized")
1058
+ }),
1059
+ (0, react_jsx_runtime.jsx)("button", {
1060
+ type: "button",
1061
+ className: ModelsSection_module_css_default["textAction"],
1062
+ disabled: props.disabled,
1063
+ onClick: reset,
1064
+ children: props.t("resetModels")
1065
+ })
1066
+ ]
1067
+ })
1068
+ : void 0,
837
1069
  children: [
838
- (0, react_jsx_runtime.jsxs)("div", {
839
- className: ModelsSection_module_css_default["modelListHead"],
840
- children: [
841
- (0, react_jsx_runtime.jsxs)("div", {
842
- className: ModelsSection_module_css_default["modelCatalogHeading"],
843
- children: [
844
- (0, react_jsx_runtime.jsx)("span", {
845
- className: ModelsSection_module_css_default["modelCatalogTitle"],
846
- children: props.t("models")
847
- }),
848
- (0, react_jsx_runtime.jsx)("span", {
849
- className: ModelsSection_module_css_default["modelCatalogMeta"],
850
- children: props.overridden ? props.t("modelsCustomized") : props.t("modelsInherited")
851
- })
852
- ]
853
- }),
854
- props.overridden
855
- ? (0, react_jsx_runtime.jsx)("button", {
856
- type: "button",
857
- className: ModelsSection_module_css_default["linkButton"],
858
- disabled: props.disabled,
859
- onClick: reset,
860
- children: props.t("resetModels")
861
- })
862
- : null
863
- ]
864
- }),
865
- (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.AnimatedRows, {
1070
+ (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives_client.AnimatedRows, {
866
1071
  className: ModelsSection_module_css_default["modelList"],
867
1072
  rowKeys: rowState.rows.map((row) => String(row.key)),
868
1073
  ready: true,
@@ -874,7 +1079,7 @@ window.__ModuleLoader__.load({
874
1079
  children: props.t("modelsEmpty")
875
1080
  })
876
1081
  : null,
877
- rowState.rows.map(({ model, key, expanded, order }, index) =>
1082
+ rowState.rows.map(({ model, key, expanded, order, marked }, index) =>
878
1083
  (0, react_jsx_runtime.jsx)(
879
1084
  ModelRow,
880
1085
  {
@@ -884,6 +1089,7 @@ window.__ModuleLoader__.load({
884
1089
  position: index + 1,
885
1090
  inputField: "inputModalities",
886
1091
  expanded,
1092
+ failures: shownFailures(marked, failures[index]),
887
1093
  disabled: props.disabled,
888
1094
  t: props.t,
889
1095
  contextWindow: capacityInput(model, index, "contextWindow", props.defaultContextWindow),
@@ -918,7 +1124,9 @@ window.__ModuleLoader__.load({
918
1124
  props.onChange([...props.models.map((model) => ({ ...model })), { id: "" }]);
919
1125
  },
920
1126
  children: [
921
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 }),
1127
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.IconPlusOutlineRegular, {
1128
+ size: 14
1129
+ }),
922
1130
  props.t("addModel")
923
1131
  ]
924
1132
  })
@@ -2543,7 +2751,16 @@ window.__ModuleLoader__.load({
2543
2751
  const [candidates, setCandidates] = (0, react.useState)(void 0);
2544
2752
  const [flipped, setFlipped] = (0, react.useState)(new Set());
2545
2753
  const [candidateQuery, setCandidateQuery] = (0, react.useState)("");
2546
- const rowState = useModelRows(models, onChange, disabled);
2754
+ const failures = modelRowFailures(models);
2755
+ const reasoningOnly = props.reasoningLevelsOnly === true ? props.reasoningLevels : void 0;
2756
+ const failing = failures.map((row, index) => {
2757
+ const reasoningFails =
2758
+ props.reasoningLevels !== void 0 &&
2759
+ props.reasoningLevels.length > 0 &&
2760
+ validateReasoningEfforts([models[index]], reasoningOnly) !== void 0;
2761
+ return new Set([...row.keys(), ...(reasoningFails ? ["reasoning"] : [])]);
2762
+ });
2763
+ const rowState = useModelRows(models, onChange, disabled, { attempt: props.attempt, failing });
2547
2764
  const editCapacity = (index, field, text) => {
2548
2765
  rowState.edit(index, field, text);
2549
2766
  patch(index, { [field]: parseCapacity(text) });
@@ -2649,32 +2866,22 @@ window.__ModuleLoader__.load({
2649
2866
  });
2650
2867
  };
2651
2868
  const askable = probe.provider !== void 0 || (probe.baseURL !== void 0 && probe.baseURL.length > 0);
2652
- return (0, react_jsx_runtime.jsxs)("section", {
2653
- className: ModelsSection_module_css_default["modelCatalog"],
2654
- "aria-label": t("models"),
2655
- children: [
2656
- (0, react_jsx_runtime.jsxs)("div", {
2657
- className: ModelsSection_module_css_default["modelListHead"],
2658
- children: [
2659
- (0, react_jsx_runtime.jsxs)("div", {
2660
- className: ModelsSection_module_css_default["modelCatalogHeading"],
2869
+ return (0, react_jsx_runtime.jsxs)(FoldSection, {
2870
+ title: t("models"),
2871
+ open: rowState.listOpen,
2872
+ onToggle: rowState.setListOpen,
2873
+ ...(props.collapsible === false ? { collapsible: false } : {}),
2874
+ status:
2875
+ props.overridden === true && props.onReset !== void 0
2876
+ ? (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
2661
2877
  children: [
2662
2878
  (0, react_jsx_runtime.jsx)("span", {
2663
- className: ModelsSection_module_css_default["modelCatalogTitle"],
2664
- children: t("models")
2879
+ className: ModelsSection_module_css_default["foldMeta"],
2880
+ children: t("modelsCustomized")
2665
2881
  }),
2666
- props.overridden === void 0
2667
- ? null
2668
- : (0, react_jsx_runtime.jsx)("span", {
2669
- className: ModelsSection_module_css_default["modelCatalogMeta"],
2670
- children: props.overridden ? t("modelsCustomized") : t("modelsInherited")
2671
- })
2672
- ]
2673
- }),
2674
- props.overridden === true && props.onReset !== void 0
2675
- ? (0, react_jsx_runtime.jsx)("button", {
2882
+ (0, react_jsx_runtime.jsx)("button", {
2676
2883
  type: "button",
2677
- className: ModelsSection_module_css_default["linkButton"],
2884
+ className: ModelsSection_module_css_default["textAction"],
2678
2885
  disabled,
2679
2886
  onClick: () => {
2680
2887
  rowState.reset();
@@ -2682,32 +2889,48 @@ window.__ModuleLoader__.load({
2682
2889
  },
2683
2890
  children: t("resetModels")
2684
2891
  })
2685
- : null,
2686
- (0, react_jsx_runtime.jsx)("button", {
2687
- type: "button",
2688
- className: ModelsSection_module_css_default["linkButton"],
2689
- disabled: disabled || busy || !askable || props.probeBlocked !== void 0,
2690
- title:
2691
- props.probeBlocked !== void 0 ? t(props.probeBlocked) : askable ? void 0 : t("fetchNeedsBaseUrl"),
2692
- onClick: () => {
2693
- fetchModels();
2694
- },
2695
- children: busy ? t("fetching") : t("fetchModels")
2892
+ ]
2696
2893
  })
2697
- ]
2698
- }),
2699
- models.length === 0
2894
+ : void 0,
2895
+ actions: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Button, {
2896
+ variant: "outline",
2897
+ size: "sm",
2898
+ disabled: disabled || busy || !askable || props.probeBlocked !== void 0,
2899
+ title: props.probeBlocked !== void 0 ? t(props.probeBlocked) : askable ? void 0 : t("fetchNeedsBaseUrl"),
2900
+ onClick: () => {
2901
+ fetchModels();
2902
+ },
2903
+ children: busy ? t("fetching") : t("fetchModels")
2904
+ }),
2905
+ notice: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
2906
+ children: [
2907
+ props.listFailure === void 0
2908
+ ? null
2909
+ : (0, react_jsx_runtime.jsx)("p", {
2910
+ className: ModelsSection_module_css_default["error"],
2911
+ children: props.listFailure
2912
+ }),
2913
+ failure === void 0
2914
+ ? null
2915
+ : (0, react_jsx_runtime.jsx)("p", {
2916
+ className: ModelsSection_module_css_default["error"],
2917
+ children: failure
2918
+ })
2919
+ ]
2920
+ }),
2921
+ children: [
2922
+ models.length === 0 && catalogProvider !== void 0
2700
2923
  ? (0, react_jsx_runtime.jsx)("p", {
2701
2924
  className: ModelsSection_module_css_default["modelEmpty"],
2702
- children: t("modelsEmpty")
2925
+ children: t("modelsInherited")
2703
2926
  })
2704
2927
  : null,
2705
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.AnimatedRows, {
2928
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.AnimatedRows, {
2706
2929
  className: ModelsSection_module_css_default["modelList"],
2707
2930
  rowKeys: rowState.rows.map((row) => String(row.key)),
2708
2931
  ready: true,
2709
2932
  resetKey: "",
2710
- children: rowState.rows.map(({ model, key, expanded, order }, index) =>
2933
+ children: rowState.rows.map(({ model, key, expanded, order, marked }, index) =>
2711
2934
  (0, react_jsx_runtime.jsx)(
2712
2935
  ModelRow,
2713
2936
  {
@@ -2726,6 +2949,7 @@ window.__ModuleLoader__.load({
2726
2949
  adaptiveFallback: props.adaptiveFallback,
2727
2950
  reasoningLevelsOnly: props.reasoningLevelsOnly,
2728
2951
  expanded,
2952
+ failures: shownFailures(marked, failures[index]),
2729
2953
  disabled,
2730
2954
  t,
2731
2955
  contextWindow: {
@@ -2773,17 +2997,13 @@ window.__ModuleLoader__.load({
2773
2997
  onChange([...models, props.thinkingPresets ? newClaudeModel() : { id: "" }]);
2774
2998
  },
2775
2999
  children: [
2776
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 }),
3000
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.IconPlusOutlineRegular, {
3001
+ size: 14
3002
+ }),
2777
3003
  t("addModel")
2778
3004
  ]
2779
3005
  }),
2780
- failure !== void 0
2781
- ? (0, react_jsx_runtime.jsx)("p", {
2782
- className: ModelsSection_module_css_default["error"],
2783
- children: failure
2784
- })
2785
- : null,
2786
- (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
3006
+ (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives_client.Modal, {
2787
3007
  open: candidates !== void 0,
2788
3008
  onClose: closePicker,
2789
3009
  title: t("fetchTitle"),
@@ -2792,12 +3012,12 @@ window.__ModuleLoader__.load({
2792
3012
  className: ModelsSection_module_css_default["fetchDialog"],
2793
3013
  footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
2794
3014
  children: [
2795
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
3015
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Button, {
2796
3016
  variant: "outline",
2797
3017
  onClick: closePicker,
2798
3018
  children: t("cancel")
2799
3019
  }),
2800
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
3020
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Button, {
2801
3021
  variant: "outline",
2802
3022
  disabled: emptiesList,
2803
3023
  title: emptiesList ? t("fetchKeepOne") : void 0,
@@ -2820,7 +3040,7 @@ window.__ModuleLoader__.load({
2820
3040
  setCandidateQuery(event.target.value);
2821
3041
  }
2822
3042
  }),
2823
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
3043
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Button, {
2824
3044
  variant: "ghost",
2825
3045
  size: "sm",
2826
3046
  disabled: visibleCandidates.length === 0,
@@ -2869,7 +3089,18 @@ window.__ModuleLoader__.load({
2869
3089
  ]
2870
3090
  });
2871
3091
  }
2872
- const PROBE_ROUTE = "\u0000probe"; // BEGIN CLAUDE HELPERS
3092
+ const PI_AI_ADAPTER_NS = "llm-pi-ai";
3093
+ const PI_AI_PROFILE_PATH = ["providers", "\u0000probe"];
3094
+ function fieldsOf$1(node) {
3095
+ return Object.keys(node?.dict ?? {})
3096
+ .toSorted()
3097
+ .join("\n");
3098
+ }
3099
+ function adapterNsOf(namespace, piAi, schema) {
3100
+ if (piAi === void 0 || namespace.ns === piAi.ns) return namespace.ns;
3101
+ const profile = fieldsOf$1(schema.nodeAtPath(schema.rehydrate(piAi.schema), PI_AI_PROFILE_PATH));
3102
+ return profile.length > 0 && fieldsOf$1(schema.rehydrate(namespace.schema)) === profile ? piAi.ns : namespace.ns;
3103
+ } // BEGIN CLAUDE HELPERS
2873
3104
  // These helpers are inserted into the upstream client module by build-client.mjs.
2874
3105
  const CLAUDE_DISCOVERY_API = "mofeng-anthropic-models";
2875
3106
  const CLAUDE_PROVIDER_SETTINGS_NS = "dsh-claude-provider";
@@ -3016,7 +3247,7 @@ window.__ModuleLoader__.load({
3016
3247
  className: `${ModelsSection_module_css_default["modelFieldLabel"]} ${ModelsSection_module_css_default["modelReasoningLabel"]}`,
3017
3248
  children: [
3018
3249
  t("claudeAdaptiveThinking"),
3019
- react_jsx_runtime.jsx(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
3250
+ react_jsx_runtime.jsx(_deepseek_ai_dsh_client_ui_primitives_client.Tooltip, {
3020
3251
  label: t("claudeAdaptiveHelp"),
3021
3252
  side: "right",
3022
3253
  delayMs: 0,
@@ -3032,7 +3263,7 @@ window.__ModuleLoader__.load({
3032
3263
  })
3033
3264
  ]
3034
3265
  }),
3035
- react_jsx_runtime.jsx(_deepseek_ai_dsh_client_ui_primitives.Switch, {
3266
+ react_jsx_runtime.jsx(_deepseek_ai_dsh_client_ui_primitives_client.Switch, {
3036
3267
  checked: claudeAdaptiveEnabled(model, inherited),
3037
3268
  label,
3038
3269
  disabled: disabled || CLAUDE_KNOWN_MODELS[model.id]?.preset === "toggle",
@@ -3077,19 +3308,19 @@ window.__ModuleLoader__.load({
3077
3308
  function deriveKeyRef(provider) {
3078
3309
  return `${provider.toUpperCase().replace(/[^A-Z0-9]+/g, "_")}_API_KEY`;
3079
3310
  }
3080
- function protocolChoices(namespace, schema) {
3311
+ function protocolChoices(namespace, path, schema) {
3081
3312
  if (namespace === void 0) return [];
3082
- const list = schema.nodeAtPath(schema.rehydrate(namespace.schema), ["providers", PROBE_ROUTE, "api"]);
3313
+ const list = schema.nodeAtPath(schema.rehydrate(namespace.schema), [...path, "api"]);
3083
3314
  if (list?.type !== "union" || list.list === void 0) return [];
3084
3315
  return list.list.map((entry) => entry.value).filter((value) => typeof value === "string");
3085
3316
  }
3086
- function reasoningLevelChoices(namespace, schema) {
3317
+ function reasoningLevelChoices(namespace, path, schema) {
3087
3318
  if (namespace === void 0) return [];
3088
- const path = ["providers", PROBE_ROUTE, "models", "0", "reasoningEfforts"];
3089
3319
  return (
3090
- (schema.nodeAtPath(schema.rehydrate(namespace.schema), path)?.list ?? []).find(
3091
- (branch) => branch.type === "dict"
3092
- )?.sKey?.list ?? []
3320
+ (
3321
+ schema.nodeAtPath(schema.rehydrate(namespace.schema), [...path, "models", "0", "reasoningEfforts"])?.list ??
3322
+ []
3323
+ ).find((branch) => branch.type === "dict")?.sKey?.list ?? []
3093
3324
  )
3094
3325
  .map((entry) => entry.value)
3095
3326
  .filter((value) => typeof value === "string");
@@ -3179,6 +3410,10 @@ window.__ModuleLoader__.load({
3179
3410
  entry.settingsPath.length > 0 &&
3180
3411
  this.schema.hasPath(namespace.user, entry.settingsPath) &&
3181
3412
  !this.schema.hasPath(namespace.base, entry.settingsPath),
3413
+ adapterNs:
3414
+ namespace === void 0
3415
+ ? entry.settingsNs
3416
+ : adapterNsOf(namespace, namespaces.get(PI_AI_ADAPTER_NS), this.schema),
3182
3417
  apiKeyEnv:
3183
3418
  entry.provider === "deepseek-account" ? void 0 : apiKeyEnvOf(namespace, entry.settingsPath, this.schema),
3184
3419
  credential: void 0
@@ -3284,6 +3519,13 @@ window.__ModuleLoader__.load({
3284
3519
  if (!row.credential.writable) return { kind: "unavailable", reason: "credential-read-only" };
3285
3520
  return { kind: "credential-missing" };
3286
3521
  }
3522
+ function useInvalidFocus(attempt) {
3523
+ const card = (0, react.useRef)(null);
3524
+ (0, react.useEffect)(() => {
3525
+ if (attempt > 0) card.current?.querySelector('[aria-invalid="true"]')?.focus();
3526
+ }, [attempt]);
3527
+ return card;
3528
+ }
3287
3529
  const PROTOCOL_LABEL_KEYS = {
3288
3530
  "openai-completions": "protocolOpenAiCompletions",
3289
3531
  "openai-responses": "protocolOpenAiResponses",
@@ -3337,6 +3579,8 @@ window.__ModuleLoader__.load({
3337
3579
  }, [busy, listBusy, onBusyChange]);
3338
3580
  const [failure, setFailure] = (0, react.useState)(void 0);
3339
3581
  const [committed, setCommitted] = (0, react.useState)(false);
3582
+ const [refused, setRefused] = (0, react.useState)({ attempt: 0, unmet: new Set() });
3583
+ const card = useInvalidFocus(refused.attempt);
3340
3584
  const disabled = props.readOnly || busy;
3341
3585
  const profileDisabled = disabled || committed;
3342
3586
  const routeInvalid = route.length > 0 && !ROUTE_PATTERN.test(route);
@@ -3350,29 +3594,20 @@ window.__ModuleLoader__.load({
3350
3594
  const keyMissing = protocolNeedsKey(protocol) && keyDraft.trim().length === 0;
3351
3595
  const keyFailure = keyMissing ? "keyRequired" : apiKeyFailure(keyDraft);
3352
3596
  const keyValue = keyDraft.trim();
3597
+ const unmet = new Set([
3598
+ ...(route.length === 0 ? ["route"] : []),
3599
+ ...(normalizedBaseURL.length === 0 ? ["baseURL"] : []),
3600
+ ...(models.length === 0 ? ["models"] : []),
3601
+ ...(keyMissing ? ["key"] : [])
3602
+ ]);
3353
3603
  const ready =
3354
- route.length > 0 &&
3604
+ unmet.size === 0 &&
3355
3605
  !routeInvalid &&
3356
3606
  !routeTaken &&
3357
- normalizedBaseURL.length > 0 &&
3358
3607
  !baseUrlInvalid &&
3359
- models.length > 0 &&
3360
3608
  modelFailure === void 0 &&
3361
3609
  keyFailure === void 0;
3362
- const hint =
3363
- failure !== void 0 ||
3364
- ready ||
3365
- keyFailure !== void 0 ||
3366
- route.length === 0 ||
3367
- routeInvalid ||
3368
- routeTaken ||
3369
- baseUrlInvalid
3370
- ? void 0
3371
- : normalizedBaseURL.length === 0
3372
- ? t("customNeedsBaseUrl")
3373
- : modelFailure !== void 0
3374
- ? `${t("model")} ${String(modelFailure.index + 1)}: ${t(modelFailure.key)}`
3375
- : t("customNeedsModels");
3610
+ const reported = (requirement) => refused.unmet.has(requirement) && unmet.has(requirement);
3376
3611
  const createOnce = async () => {
3377
3612
  const keyRef = deriveKeyRef(route);
3378
3613
  const storesKey = keyValue.length > 0;
@@ -3433,102 +3668,124 @@ window.__ModuleLoader__.load({
3433
3668
  }
3434
3669
  };
3435
3670
  return (0, react_jsx_runtime.jsxs)("div", {
3671
+ ref: card,
3436
3672
  className: ModelsSection_module_css_default["editor"],
3437
3673
  children: [
3438
3674
  (0, react_jsx_runtime.jsxs)("div", {
3439
- className: ModelsSection_module_css_default["field"],
3440
- children: [
3441
- (0, react_jsx_runtime.jsx)("span", {
3442
- className: ModelsSection_module_css_default["fieldLabel"],
3443
- children: t("customRoute")
3444
- }),
3445
- (0, react_jsx_runtime.jsx)("input", {
3446
- className: ModelsSection_module_css_default["input"],
3447
- type: "text",
3448
- value: route,
3449
- placeholder: "acme-gateway",
3450
- "aria-label": t("customRoute"),
3451
- disabled: profileDisabled,
3452
- onChange: (event) => {
3453
- setRoute(event.target.value);
3454
- }
3455
- })
3456
- ]
3457
- }),
3458
- routeInvalid || routeTaken
3459
- ? (0, react_jsx_runtime.jsx)("p", {
3460
- className: ModelsSection_module_css_default["error"],
3461
- children: t(routeInvalid ? "customRouteInvalid" : "customRouteTaken")
3462
- })
3463
- : (0, react_jsx_runtime.jsx)("p", {
3464
- className: ModelsSection_module_css_default["advancedHint"],
3465
- children: t("customRouteHint")
3466
- }),
3467
- (0, react_jsx_runtime.jsxs)("div", {
3468
- className: ModelsSection_module_css_default["field"],
3469
- children: [
3470
- (0, react_jsx_runtime.jsx)("span", {
3471
- className: ModelsSection_module_css_default["fieldLabel"],
3472
- children: t("customDisplayName")
3473
- }),
3474
- (0, react_jsx_runtime.jsx)("input", {
3475
- className: ModelsSection_module_css_default["input"],
3476
- type: "text",
3477
- value: displayName,
3478
- placeholder: route.length === 0 ? t("customDisplayName") : route,
3479
- "aria-label": t("customDisplayName"),
3480
- disabled: profileDisabled,
3481
- onChange: (event) => {
3482
- setDisplayName(event.target.value);
3483
- }
3484
- })
3485
- ]
3486
- }),
3487
- (0, react_jsx_runtime.jsxs)("div", {
3488
- className: ModelsSection_module_css_default["field"],
3675
+ className: ModelsSection_module_css_default["fieldPair"],
3489
3676
  children: [
3490
- (0, react_jsx_runtime.jsx)("span", {
3491
- className: ModelsSection_module_css_default["fieldLabel"],
3492
- children: t("baseUrl")
3677
+ (0, react_jsx_runtime.jsxs)("div", {
3678
+ className: ModelsSection_module_css_default["field"],
3679
+ children: [
3680
+ (0, react_jsx_runtime.jsx)("span", {
3681
+ className: ModelsSection_module_css_default["fieldLabel"],
3682
+ children: t("customRoute")
3683
+ }),
3684
+ (0, react_jsx_runtime.jsx)("input", {
3685
+ className: ModelsSection_module_css_default["input"],
3686
+ type: "text",
3687
+ value: route,
3688
+ placeholder: "acme-gateway",
3689
+ "aria-label": t("customRoute"),
3690
+ "aria-invalid": routeInvalid || routeTaken || reported("route"),
3691
+ disabled: profileDisabled,
3692
+ onChange: (event) => {
3693
+ setRoute(event.target.value);
3694
+ }
3695
+ }),
3696
+ routeInvalid || routeTaken || reported("route")
3697
+ ? (0, react_jsx_runtime.jsx)("p", {
3698
+ className: ModelsSection_module_css_default["error"],
3699
+ children: t(routeTaken ? "customRouteTaken" : "customRouteInvalid")
3700
+ })
3701
+ : (0, react_jsx_runtime.jsx)("p", {
3702
+ className: ModelsSection_module_css_default["advancedHint"],
3703
+ children: t("customRouteHint")
3704
+ })
3705
+ ]
3493
3706
  }),
3494
- (0, react_jsx_runtime.jsx)("input", {
3495
- className: ModelsSection_module_css_default["input"],
3496
- type: "text",
3497
- value: baseURL,
3498
- placeholder: t(BASE_URL_PLACEHOLDERS[protocol] ?? "customBaseUrlPlaceholder"),
3499
- "aria-label": t("baseUrl"),
3500
- "aria-invalid": baseUrlInvalid,
3501
- disabled: profileDisabled,
3502
- onChange: (event) => {
3503
- setBaseURL(event.target.value);
3504
- }
3707
+ (0, react_jsx_runtime.jsxs)("div", {
3708
+ className: ModelsSection_module_css_default["field"],
3709
+ children: [
3710
+ (0, react_jsx_runtime.jsx)("span", {
3711
+ className: ModelsSection_module_css_default["fieldLabel"],
3712
+ children: t("customDisplayName")
3713
+ }),
3714
+ (0, react_jsx_runtime.jsx)("input", {
3715
+ className: ModelsSection_module_css_default["input"],
3716
+ type: "text",
3717
+ value: displayName,
3718
+ placeholder: route.length === 0 ? t("customDisplayName") : route,
3719
+ "aria-label": t("customDisplayName"),
3720
+ disabled: profileDisabled,
3721
+ onChange: (event) => {
3722
+ setDisplayName(event.target.value);
3723
+ }
3724
+ })
3725
+ ]
3505
3726
  })
3506
3727
  ]
3507
3728
  }),
3508
- baseUrlInvalid
3509
- ? (0, react_jsx_runtime.jsx)("p", {
3510
- className: ModelsSection_module_css_default["error"],
3511
- children: t("customBaseUrlInvalid")
3512
- })
3513
- : null,
3514
3729
  (0, react_jsx_runtime.jsxs)("div", {
3515
- className: ModelsSection_module_css_default["field"],
3730
+ className: ModelsSection_module_css_default["fieldPair"],
3516
3731
  children: [
3517
- (0, react_jsx_runtime.jsx)("span", {
3518
- className: ModelsSection_module_css_default["fieldLabel"],
3519
- children: t("customApi")
3732
+ (0, react_jsx_runtime.jsxs)("div", {
3733
+ className: ModelsSection_module_css_default["field"],
3734
+ children: [
3735
+ (0, react_jsx_runtime.jsx)("span", {
3736
+ className: ModelsSection_module_css_default["fieldLabel"],
3737
+ children: t("customApi")
3738
+ }),
3739
+ (0, react_jsx_runtime.jsx)("select", {
3740
+ className: `${ModelsSection_module_css_default["input"]} ${ModelsSection_module_css_default["selectInput"]}`,
3741
+ value: protocol,
3742
+ "aria-label": t("customApi"),
3743
+ disabled: profileDisabled || isAdaptiveClaude,
3744
+ onChange: (event) => {
3745
+ setProtocol(event.target.value);
3746
+ },
3747
+ children: protocols.map((choice) =>
3748
+ (0, react_jsx_runtime.jsx)(
3749
+ "option",
3750
+ { value: choice, children: protocolLabel(t, choice) },
3751
+ choice
3752
+ )
3753
+ )
3754
+ })
3755
+ ]
3520
3756
  }),
3521
- (0, react_jsx_runtime.jsx)("select", {
3522
- className: `${ModelsSection_module_css_default["input"]} ${ModelsSection_module_css_default["selectInput"]}`,
3523
- value: protocol,
3524
- "aria-label": t("customApi"),
3525
- disabled: profileDisabled || isAdaptiveClaude,
3526
- onChange: (event) => {
3527
- setProtocol(event.target.value);
3528
- },
3529
- children: protocols.map((choice) =>
3530
- (0, react_jsx_runtime.jsx)("option", { value: choice, children: protocolLabel(t, choice) }, choice)
3531
- )
3757
+ (0, react_jsx_runtime.jsxs)("div", {
3758
+ className: ModelsSection_module_css_default["field"],
3759
+ children: [
3760
+ (0, react_jsx_runtime.jsx)("span", {
3761
+ className: ModelsSection_module_css_default["fieldLabel"],
3762
+ children: t("baseUrl")
3763
+ }),
3764
+ (0, react_jsx_runtime.jsx)("input", {
3765
+ className: ModelsSection_module_css_default["input"],
3766
+ type: "text",
3767
+ value: baseURL,
3768
+ placeholder: t(BASE_URL_PLACEHOLDERS[protocol] ?? "customBaseUrlPlaceholder"),
3769
+ "aria-label": t("baseUrl"),
3770
+ "aria-invalid": baseUrlInvalid || reported("baseURL"),
3771
+ disabled: profileDisabled,
3772
+ onChange: (event) => {
3773
+ setBaseURL(event.target.value);
3774
+ }
3775
+ }),
3776
+ baseUrlInvalid
3777
+ ? (0, react_jsx_runtime.jsx)("p", {
3778
+ className: ModelsSection_module_css_default["error"],
3779
+ children: t("customBaseUrlInvalid")
3780
+ })
3781
+ : null,
3782
+ reported("baseURL") && !baseUrlInvalid
3783
+ ? (0, react_jsx_runtime.jsx)("p", {
3784
+ className: ModelsSection_module_css_default["error"],
3785
+ children: t("customNeedsBaseUrl")
3786
+ })
3787
+ : null
3788
+ ]
3532
3789
  })
3533
3790
  ]
3534
3791
  }),
@@ -3544,6 +3801,7 @@ window.__ModuleLoader__.load({
3544
3801
  value: keyDraft,
3545
3802
  placeholder: t("keyPlaceholder"),
3546
3803
  "aria-label": t("keyInput"),
3804
+ invalid: keyFailure !== void 0 && (!keyMissing || reported("key")),
3547
3805
  required: protocolNeedsKey(protocol),
3548
3806
  disabled,
3549
3807
  onChange: (event) => {
@@ -3553,7 +3811,8 @@ window.__ModuleLoader__.load({
3553
3811
  keyFailure === void 0
3554
3812
  ? null
3555
3813
  : (0, react_jsx_runtime.jsx)("p", {
3556
- className: ModelsSection_module_css_default[keyMissing ? "advancedHint" : "error"],
3814
+ className:
3815
+ ModelsSection_module_css_default[keyMissing && !reported("key") ? "advancedHint" : "error"],
3557
3816
  children: t(keyFailure === "keyBlank" ? "keyBlankNew" : keyFailure)
3558
3817
  })
3559
3818
  ]
@@ -3561,6 +3820,9 @@ window.__ModuleLoader__.load({
3561
3820
  (0, react_jsx_runtime.jsx)(ModelListEditor, {
3562
3821
  models,
3563
3822
  onChange: setModels,
3823
+ collapsible: false,
3824
+ attempt: refused.attempt,
3825
+ listFailure: reported("models") ? t("customNeedsModels") : void 0,
3564
3826
  reasoningLevels: reasoning.levels,
3565
3827
  reasoningLevelsOnly: reasoning.levelsOnly,
3566
3828
  probe: {
@@ -3580,30 +3842,27 @@ window.__ModuleLoader__.load({
3580
3842
  disabled: profileDisabled,
3581
3843
  onBusyChange: setListBusy
3582
3844
  }),
3583
- failure !== void 0
3584
- ? (0, react_jsx_runtime.jsx)("p", {
3585
- className: ModelsSection_module_css_default["error"],
3586
- children: failure
3587
- })
3588
- : null,
3589
- hint === void 0
3590
- ? null
3591
- : (0, react_jsx_runtime.jsx)("p", {
3592
- className: ModelsSection_module_css_default["advancedHint"],
3593
- children: hint
3594
- }),
3595
3845
  (0, react_jsx_runtime.jsx)(EditorFooter, {
3596
3846
  t,
3597
3847
  busy,
3598
- submitDisabled: disabled || !ready,
3848
+ sticky: true,
3849
+ submitDisabled: disabled,
3599
3850
  submitLabelKey: "create",
3600
3851
  submitBusyLabelKey: "creating",
3601
3852
  onCancel: () => {
3602
3853
  props.onClose(committed);
3603
3854
  },
3604
3855
  onSubmit: () => {
3605
- create();
3606
- }
3856
+ if (ready) create();
3857
+ else setRefused({ attempt: refused.attempt + 1, unmet });
3858
+ },
3859
+ children:
3860
+ failure !== void 0
3861
+ ? (0, react_jsx_runtime.jsx)("p", {
3862
+ className: ModelsSection_module_css_default["error"],
3863
+ children: failure
3864
+ })
3865
+ : null
3607
3866
  })
3608
3867
  ]
3609
3868
  });
@@ -3621,6 +3880,7 @@ window.__ModuleLoader__.load({
3621
3880
  const MODE_HINTS = new Map([["always", "retryAlwaysHint"]]);
3622
3881
  const CODE_LABELS = new Map([
3623
3882
  ["EMPTY_RESPONSE", "retryCodeEmptyResponse"],
3883
+ ["INVALID_TOOL_ARGUMENTS", "retryCodeInvalidToolArguments"],
3624
3884
  ["RATE_LIMIT", "retryCodeRateLimit"],
3625
3885
  ["SERVER", "retryCodeServer"],
3626
3886
  ["TIMEOUT", "retryCodeTimeout"],
@@ -3816,7 +4076,7 @@ window.__ModuleLoader__.load({
3816
4076
  children: choices.map((code) => {
3817
4077
  const labelKey = CODE_LABELS.get(code);
3818
4078
  return (0, react_jsx_runtime.jsx)(
3819
- _deepseek_ai_dsh_client_ui_primitives.Checkbox,
4079
+ _deepseek_ai_dsh_client_ui_primitives_client.Checkbox,
3820
4080
  {
3821
4081
  label: labelKey === void 0 ? code : t(labelKey),
3822
4082
  checked: selected.includes(code),
@@ -3948,7 +4208,7 @@ window.__ModuleLoader__.load({
3948
4208
  className: ModelsSection_module_css_default["retryBody"],
3949
4209
  children: fields(branch, branch, [])
3950
4210
  }),
3951
- failure === void 0 || !props.showFailure
4211
+ failure === void 0
3952
4212
  ? null
3953
4213
  : (0, react_jsx_runtime.jsx)("p", {
3954
4214
  id: props.failureId,
@@ -4012,6 +4272,8 @@ window.__ModuleLoader__.load({
4012
4272
  }, [busy, listBusy, onBusyChange]);
4013
4273
  const [failure, setFailure] = (0, react.useState)(void 0);
4014
4274
  const [customizedOpen, setCustomizedOpen] = (0, react.useState)(false);
4275
+ const [refused, setRefused] = (0, react.useState)({ attempt: 0, keyMissing: false });
4276
+ const card = useInvalidFocus(refused.attempt);
4015
4277
  const [committedOriginal, setCommittedOriginal] = (0, react.useState)(() =>
4016
4278
  schema.getPath(namespace.user, settingsPath)
4017
4279
  );
@@ -4020,11 +4282,12 @@ window.__ModuleLoader__.load({
4020
4282
  const node = (0, react.useMemo)(() => schema.nodeAtPath(root, settingsPath), [root, schema, settingsPath]);
4021
4283
  const fallback = schema.getPath(namespace.value, settingsPath);
4022
4284
  const disabled = props.readOnly || busy;
4023
- const layout = layoutOf(namespace.ns);
4285
+ const adapterNs = props.adapterNs ?? namespace.ns;
4286
+ const layout = layoutOf(adapterNs);
4024
4287
  const keyRef = refFor(schema, namespace, settingsPath, props.provider);
4025
4288
  const protocols = (0, react.useMemo)(
4026
- () => (layout === "pi-ai" ? protocolChoices(namespace, schema) : []),
4027
- [layout, namespace, schema]
4289
+ () => (layout === "pi-ai" ? protocolChoices(namespace, settingsPath, schema) : []),
4290
+ [layout, namespace, settingsPath, schema]
4028
4291
  );
4029
4292
  const stringAt = (source, key) => {
4030
4293
  const value = schema.getPath(source, [key]);
@@ -4042,8 +4305,8 @@ window.__ModuleLoader__.load({
4042
4305
  props.nativeAuth !== void 0 &&
4043
4306
  stringAt(draft, "apiKeyEnv") === deriveKeyRef(props.provider);
4044
4307
  const schemaReasoningLevels = (0, react.useMemo)(
4045
- () => (layout === "pi-ai" ? reasoningLevelChoices(namespace, schema) : []),
4046
- [layout, namespace, schema]
4308
+ () => (layout === "pi-ai" ? reasoningLevelChoices(namespace, settingsPath, schema) : []),
4309
+ [layout, namespace, settingsPath, schema]
4047
4310
  );
4048
4311
  const probeApi = stringAt(draft, "api") ?? stringAt(fallback, "api");
4049
4312
  const reasoning = protocolReasoningLevels(probeApi, schemaReasoningLevels);
@@ -4078,9 +4341,10 @@ window.__ModuleLoader__.load({
4078
4341
  ((props.credentialRequired === true && keyText.length > 0 && keyValue.length === 0) || protocolKeyMissing
4079
4342
  ? "keyRequired"
4080
4343
  : void 0) ?? keyFailure;
4344
+ const keyRequirementQuiet = protocolKeyMissing && !refused.keyMissing;
4081
4345
  const probeBaseURL = stringAt(draft, "baseURL") ?? stringAt(fallback, "baseURL");
4082
4346
  const probe = {
4083
- settingsNs: namespace.ns,
4347
+ settingsNs: adapterNs,
4084
4348
  provider: props.provider,
4085
4349
  ...(probeBaseURL === void 0 ? {} : { baseURL: probeBaseURL }),
4086
4350
  ...(probeApi === void 0 ? {} : { api: probeApi }),
@@ -4190,37 +4454,29 @@ window.__ModuleLoader__.load({
4190
4454
  const missingRefs = checkedRefs.length > 0 && checkedRefs.every(([, info]) => info?.configured === false);
4191
4455
  const savedCredential = detected?.[1]?.source === "file" && detectedVisibleRef !== void 0;
4192
4456
  const credentialHint =
4193
- props.credentialRequired === true
4457
+ props.credentialRequired === true || keyText.length > 0
4194
4458
  ? void 0
4195
- : keyText.length > 0
4196
- ? savedCredential
4197
- ? t("keyReplacePending")
4459
+ : keyRemoval !== void 0
4460
+ ? keyRemoval.removed === true
4461
+ ? t("keyRemoveApplied")
4198
4462
  : void 0
4199
- : keyRemoval !== void 0
4200
- ? keyRemoval.removed === true
4201
- ? t("keyRemoveApplied")
4202
- : keyHint === void 0
4203
- ? t("keyRemovePending")
4204
- : t("keyRemovePendingEnvironment").replace("{hint}", () => keyHint)
4205
- : keyHint === void 0
4206
- ? void 0
4207
- : savedCredential
4208
- ? t("keySaved")
4209
- : t(
4210
- detectedRef === void 0
4211
- ? missingRefs
4212
- ? "keyFallbackMissing"
4213
- : "keyFallbackUnchecked"
4214
- : detectedVisibleRef === void 0
4215
- ? "keyFallbackDetectedHidden"
4216
- : "keyFallbackDetected"
4217
- ).replace("{hint}", () => detectedVisibleRef ?? keyHint);
4463
+ : keyHint === void 0 || savedCredential
4464
+ ? void 0
4465
+ : t(
4466
+ detectedRef === void 0
4467
+ ? missingRefs
4468
+ ? "keyFallbackMissing"
4469
+ : "keyFallbackUnchecked"
4470
+ : detectedVisibleRef === void 0
4471
+ ? "keyFallbackDetectedHidden"
4472
+ : "keyFallbackDetected"
4473
+ ).replace("{hint}", () => detectedVisibleRef ?? keyHint);
4218
4474
  const keyHelp =
4219
4475
  visibleRefs.length === 0 ? void 0 : t("keyHelp").replace("{env}", () => visibleRefs.join(" / "));
4220
4476
  const authHelp =
4221
4477
  keyHelp === void 0
4222
4478
  ? null
4223
- : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
4479
+ : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Tooltip, {
4224
4480
  label: keyHelp,
4225
4481
  side: "right",
4226
4482
  delayMs: 0,
@@ -4244,6 +4500,7 @@ window.__ModuleLoader__.load({
4244
4500
  overridden: modelsOverridden,
4245
4501
  t,
4246
4502
  disabled,
4503
+ attempt: refused.attempt,
4247
4504
  onChange: (next) => {
4248
4505
  setDraft((current) => schema.setPath(current, ["models"], next));
4249
4506
  },
@@ -4265,10 +4522,10 @@ window.__ModuleLoader__.load({
4265
4522
  (0, react_jsx_runtime.jsx)(ApiKeyInput, {
4266
4523
  t,
4267
4524
  value: keyText,
4268
- ...(keyDraft === void 0 && savedCredential
4525
+ ...(keyRemoval === void 0 && savedCredential
4269
4526
  ? {
4270
4527
  saved: {
4271
- masked: detected[1].masked ?? "",
4528
+ masked: detected[1].masked,
4272
4529
  ...(detected[1].writable
4273
4530
  ? {
4274
4531
  clear: () => {
@@ -4282,19 +4539,13 @@ window.__ModuleLoader__.load({
4282
4539
  : {}),
4283
4540
  placeholder: keyPlaceholder,
4284
4541
  "aria-label": t("keyInput"),
4285
- "aria-invalid": shownKeyFailure !== void 0 && !protocolKeyMissing,
4542
+ invalid: shownKeyFailure !== void 0 && !keyRequirementQuiet,
4286
4543
  "aria-describedby": credentialHint === void 0 ? void 0 : `${props.provider}-credential-hint`,
4287
4544
  required: props.credentialRequired === true || protocolNeedsKeyHere,
4288
4545
  autoFocus: props.autoFocusCredential === true,
4289
4546
  disabled: disabled || keyRemoval?.removed === true,
4290
4547
  onChange: (event) => {
4291
- setKeyDraft(
4292
- event.target.value === "" && savedCredential
4293
- ? detected[1].writable
4294
- ? { ref: detected[0] }
4295
- : void 0
4296
- : event.target.value
4297
- );
4548
+ setKeyDraft(event.target.value === "" && savedCredential ? void 0 : event.target.value);
4298
4549
  setFailure(void 0);
4299
4550
  }
4300
4551
  }),
@@ -4306,7 +4557,7 @@ window.__ModuleLoader__.load({
4306
4557
  ModelsSection_module_css_default[
4307
4558
  keyRemoval !== void 0 || missingRefs
4308
4559
  ? "notice"
4309
- : keyText.length > 0 || detectedRef === void 0
4560
+ : detectedRef === void 0
4310
4561
  ? "advancedHint"
4311
4562
  : "savedNotice"
4312
4563
  ],
@@ -4315,25 +4566,39 @@ window.__ModuleLoader__.load({
4315
4566
  shownKeyFailure === void 0
4316
4567
  ? null
4317
4568
  : (0, react_jsx_runtime.jsx)("p", {
4318
- className: ModelsSection_module_css_default[protocolKeyMissing ? "advancedHint" : "error"],
4569
+ className: ModelsSection_module_css_default[keyRequirementQuiet ? "advancedHint" : "error"],
4319
4570
  children: t(shownKeyFailure)
4320
4571
  })
4321
4572
  ]
4322
4573
  }),
4323
4574
  props.credentialOnly === true
4324
4575
  ? null
4325
- : (0, react_jsx_runtime.jsxs)("details", {
4326
- className: ModelsSection_module_css_default["customized"],
4327
- onToggle: (event) => {
4328
- setCustomizedOpen(event.currentTarget.open);
4329
- },
4576
+ : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
4330
4577
  children: [
4331
- (0, react_jsx_runtime.jsx)("summary", {
4332
- className: ModelsSection_module_css_default["customizedSummary"],
4333
- children: t("customized")
4334
- }),
4335
- (0, react_jsx_runtime.jsxs)("div", {
4336
- className: ModelsSection_module_css_default["customizedBody"],
4578
+ family === "deepseek"
4579
+ ? (0, react_jsx_runtime.jsx)(DeepSeekModelsEditor, {
4580
+ ...catalogProps,
4581
+ defaultContextWindow:
4582
+ typeof defaultContextWindow === "number" ? defaultContextWindow : void 0,
4583
+ defaultMaxTokens: typeof defaultMaxTokens === "number" ? defaultMaxTokens : void 0
4584
+ })
4585
+ : (0, react_jsx_runtime.jsx)(ModelListEditor, {
4586
+ ...catalogProps,
4587
+ catalogProvider: props.declared === true ? void 0 : props.provider,
4588
+ reasoningLevels: reasoning.levels,
4589
+ reasoningLevelsOnly: reasoning.levelsOnly,
4590
+ defaultInput: Array.isArray(defaultInput) ? defaultInput : void 0,
4591
+ probe,
4592
+ probeBlocked: keyRemoval !== void 0 ? "keyRemovePending" : shownKeyFailure,
4593
+ thinkingPresets: props.thinkingPresets === true,
4594
+ adaptiveFallback: schema.getPath(draft, ["compat", "forceAdaptiveThinking"]),
4595
+ operations,
4596
+ onBusyChange: setListBusy
4597
+ }),
4598
+ (0, react_jsx_runtime.jsxs)(FoldSection, {
4599
+ title: t("customized"),
4600
+ open: customizedOpen,
4601
+ onToggle: setCustomizedOpen,
4337
4602
  children: [
4338
4603
  ownsIdentity
4339
4604
  ? (0, react_jsx_runtime.jsxs)("div", {
@@ -4434,7 +4699,6 @@ window.__ModuleLoader__.load({
4434
4699
  defaults: retryDefaults,
4435
4700
  failure: retryFailure,
4436
4701
  failureId: `${props.provider}-retry-failure`,
4437
- showFailure: customizedOpen,
4438
4702
  t,
4439
4703
  disabled,
4440
4704
  onChange: (next) => {
@@ -4444,26 +4708,6 @@ window.__ModuleLoader__.load({
4444
4708
  : schema.setPath(current, ["retryPolicy"], next)
4445
4709
  );
4446
4710
  }
4447
- }),
4448
- family === "deepseek"
4449
- ? (0, react_jsx_runtime.jsx)(DeepSeekModelsEditor, {
4450
- ...catalogProps,
4451
- defaultContextWindow:
4452
- typeof defaultContextWindow === "number" ? defaultContextWindow : void 0,
4453
- defaultMaxTokens: typeof defaultMaxTokens === "number" ? defaultMaxTokens : void 0
4454
- })
4455
- : (0, react_jsx_runtime.jsx)(ModelListEditor, {
4456
- ...catalogProps,
4457
- catalogProvider: props.declared === true ? void 0 : props.provider,
4458
- reasoningLevels: reasoning.levels,
4459
- reasoningLevelsOnly: reasoning.levelsOnly,
4460
- defaultInput: Array.isArray(defaultInput) ? defaultInput : void 0,
4461
- probe,
4462
- probeBlocked: keyRemoval !== void 0 ? "keyRemovePending" : shownKeyFailure,
4463
- thinkingPresets: props.thinkingPresets === true,
4464
- adaptiveFallback: schema.getPath(draft, ["compat", "forceAdaptiveThinking"]),
4465
- operations,
4466
- onBusyChange: setListBusy
4467
4711
  })
4468
4712
  ]
4469
4713
  })
@@ -4473,6 +4717,7 @@ window.__ModuleLoader__.load({
4473
4717
  });
4474
4718
  };
4475
4719
  return (0, react_jsx_runtime.jsxs)("div", {
4720
+ ref: card,
4476
4721
  className:
4477
4722
  props.credentialOnly === true
4478
4723
  ? ModelsSection_module_css_default["addBlock"]
@@ -4501,35 +4746,12 @@ window.__ModuleLoader__.load({
4501
4746
  children: `${t("advancedHint")} (${namespace.ns})`
4502
4747
  })
4503
4748
  : curatedFields(layout),
4504
- failure !== void 0
4505
- ? (0, react_jsx_runtime.jsx)("p", {
4506
- className: ModelsSection_module_css_default["error"],
4507
- children: failure
4508
- })
4509
- : null,
4510
- props.credentialOnly === true || modelFailure === void 0
4511
- ? null
4512
- : (0, react_jsx_runtime.jsx)("p", {
4513
- className: ModelsSection_module_css_default["advancedHint"],
4514
- children: `${t("model")} ${String(modelFailure.index + 1)}: ${t(modelFailure.key)}`
4515
- }),
4516
- retryFailure === void 0 || customizedOpen
4517
- ? null
4518
- : (0, react_jsx_runtime.jsx)("p", {
4519
- id: `${props.provider}-retry-failure`,
4520
- className: ModelsSection_module_css_default["error"],
4521
- children: retryFailure.message
4522
- }),
4523
4749
  (0, react_jsx_runtime.jsx)(EditorFooter, {
4524
4750
  t,
4525
4751
  busy,
4752
+ sticky: props.credentialOnly !== true,
4526
4753
  submitDisabled:
4527
- disabled ||
4528
- layout === "unknown" ||
4529
- (props.credentialOnly !== true && modelFailure !== void 0) ||
4530
- retryFailure !== void 0 ||
4531
- shownKeyFailure !== void 0 ||
4532
- (props.credentialRequired === true && keyValue.length === 0),
4754
+ disabled || layout === "unknown" || (props.credentialRequired === true && keyValue.length === 0),
4533
4755
  submitLabelKey: props.submitLabelKey ?? "apply",
4534
4756
  submitBusyLabelKey: props.submitBusyLabelKey ?? "applying",
4535
4757
  cancelLabelKey: keyRemoval?.removed === true ? "close" : (props.cancelLabelKey ?? "cancel"),
@@ -4537,26 +4759,50 @@ window.__ModuleLoader__.load({
4537
4759
  props.onClose(false);
4538
4760
  },
4539
4761
  onSubmit: () => {
4762
+ if (
4763
+ (props.credentialOnly !== true && modelFailure !== void 0) ||
4764
+ retryFailure !== void 0 ||
4765
+ shownKeyFailure !== void 0
4766
+ ) {
4767
+ if (retryFailure !== void 0) setCustomizedOpen(true);
4768
+ setRefused({ attempt: refused.attempt + 1, keyMissing: protocolKeyMissing });
4769
+ return;
4770
+ }
4540
4771
  props.onSubmitCredential?.();
4541
4772
  apply();
4542
- }
4773
+ },
4774
+ children:
4775
+ failure !== void 0
4776
+ ? (0, react_jsx_runtime.jsx)("p", {
4777
+ className: ModelsSection_module_css_default["error"],
4778
+ children: failure
4779
+ })
4780
+ : null
4543
4781
  })
4544
4782
  ]
4545
4783
  });
4546
4784
  }
4785
+ function emptyLayer(layer) {
4786
+ return typeof layer !== "object" || layer === null || Object.keys(layer).length === 0;
4787
+ }
4547
4788
  function renderProviderEditor({ target, row, ...props }) {
4548
- return (0, react_jsx_runtime.jsx)(ProviderEditor, {
4549
- provider: target.provider,
4550
- displayName: target.displayName,
4551
- settingsPath: target.settingsPath,
4552
- ...(target.declared === true ? { declared: true } : {}),
4553
- ...(target.defaultBaseURL === void 0 ? {} : { defaultBaseURL: target.defaultBaseURL }),
4554
- ...(target.baseURLEnv === void 0 ? {} : { baseURLEnv: target.baseURLEnv }),
4555
- ...(target.nativeAuth === void 0 ? {} : { nativeAuth: target.nativeAuth }),
4556
- ...(row.credential === void 0 ? {} : { credential: row.credential }),
4557
- ...(row.credentialChecks === void 0 ? {} : { credentialChecks: row.credentialChecks }),
4558
- ...props
4559
- });
4789
+ return (0, react_jsx_runtime.jsx)(
4790
+ ProviderEditor,
4791
+ {
4792
+ provider: target.provider,
4793
+ displayName: target.displayName,
4794
+ settingsPath: target.settingsPath,
4795
+ adapterNs: row.adapterNs,
4796
+ ...(target.declared === true ? { declared: true } : {}),
4797
+ ...(target.defaultBaseURL === void 0 ? {} : { defaultBaseURL: target.defaultBaseURL }),
4798
+ ...(target.baseURLEnv === void 0 ? {} : { baseURLEnv: target.baseURLEnv }),
4799
+ ...(target.nativeAuth === void 0 ? {} : { nativeAuth: target.nativeAuth }),
4800
+ ...(row.credential === void 0 ? {} : { credential: row.credential }),
4801
+ ...(row.credentialChecks === void 0 ? {} : { credentialChecks: row.credentialChecks }),
4802
+ ...props
4803
+ },
4804
+ [target.settingsNs, ...target.settingsPath].join("\n")
4805
+ );
4560
4806
  }
4561
4807
  async function removeProviderProfile(operations, controller, target) {
4562
4808
  if (target.credentialRef !== void 0) {
@@ -4584,7 +4830,7 @@ window.__ModuleLoader__.load({
4584
4830
  }
4585
4831
  function needsSetup(row, anyUsable) {
4586
4832
  if (anyUsable || row.entry.provider === "deepseek-account") return false;
4587
- if (row.entry.settingsPath.length > 0) return false;
4833
+ if (row.entry.settingsPath.length > 0 || row.adapterNs !== row.entry.settingsNs) return false;
4588
4834
  return row.credential?.configured !== true;
4589
4835
  }
4590
4836
  function keyConfiguredOf(row) {
@@ -4741,9 +4987,9 @@ window.__ModuleLoader__.load({
4741
4987
  const namespace = state.namespaces.get(row.entry.settingsNs);
4742
4988
  return namespace === void 0 || row.configured ? [] : [{ row, namespace }];
4743
4989
  });
4744
- const piAi = state.namespaces.get("llm-pi-ai");
4745
- const protocols = protocolChoices(piAi, schema);
4746
- const reasoningLevels = reasoningLevelChoices(piAi, schema);
4990
+ const piAi = state.namespaces.get(PI_AI_ADAPTER_NS);
4991
+ const protocols = protocolChoices(piAi, PI_AI_PROFILE_PATH, schema);
4992
+ const reasoningLevels = reasoningLevelChoices(piAi, PI_AI_PROFILE_PATH, schema);
4747
4993
  const catalogOffered = configurable.length > 0;
4748
4994
  const catalogEnabled = addable.length > 0;
4749
4995
  const customOffered = piAi !== void 0;
@@ -4812,6 +5058,11 @@ window.__ModuleLoader__.load({
4812
5058
  className: ModelsSection_module_css_default["setupCard"],
4813
5059
  children: [
4814
5060
  error,
5061
+ renderSlot(
5062
+ "settings.models.provider-card",
5063
+ { provider: row.entry, configured: row.configured, keyConfigured: keyConfiguredOf(row) },
5064
+ { entryKey: row.adapterNs }
5065
+ ),
4815
5066
  renderProviderEditor({
4816
5067
  target,
4817
5068
  row,
@@ -4824,12 +5075,7 @@ window.__ModuleLoader__.load({
4824
5075
  onClose: (changed) => {
4825
5076
  closeSetup(changed, target);
4826
5077
  }
4827
- }),
4828
- renderSlot(
4829
- "settings.models.provider-card",
4830
- { provider: row.entry, configured: row.configured, keyConfigured: keyConfiguredOf(row) },
4831
- { entryKey: row.entry.settingsNs }
4832
- )
5078
+ })
4833
5079
  ]
4834
5080
  },
4835
5081
  row.entry.provider
@@ -4842,7 +5088,7 @@ window.__ModuleLoader__.load({
4842
5088
  return (0, react_jsx_runtime.jsxs)(
4843
5089
  "li",
4844
5090
  {
4845
- className: ModelsSection_module_css_default["rowCard"],
5091
+ className: `${ModelsSection_module_css_default["rowCard"]} ${open ? ModelsSection_module_css_default["rowCardOpen"] : ""}`,
4846
5092
  children: [
4847
5093
  (0, react_jsx_runtime.jsxs)("div", {
4848
5094
  className: ModelsSection_module_css_default["rowHead"],
@@ -4854,6 +5100,12 @@ window.__ModuleLoader__.load({
4854
5100
  className: ModelsSection_module_css_default["rowName"],
4855
5101
  children: row.entry.displayName
4856
5102
  }),
5103
+ open && row.entry.provider !== row.entry.displayName
5104
+ ? (0, react_jsx_runtime.jsx)("span", {
5105
+ className: ModelsSection_module_css_default["editorRoute"],
5106
+ children: row.entry.provider
5107
+ })
5108
+ : null,
4857
5109
  row.entry.declared === true
4858
5110
  ? (0, react_jsx_runtime.jsx)("span", {
4859
5111
  className: ModelsSection_module_css_default["rowTag"],
@@ -4886,11 +5138,15 @@ window.__ModuleLoader__.load({
4886
5138
  title: t("credentialConfigured")
4887
5139
  })
4888
5140
  : credentialMissing
4889
- ? (0, react_jsx_runtime.jsx)("span", {
4890
- className: `${ModelsSection_module_css_default["credentialDot"]} ${ModelsSection_module_css_default["credentialDotMissing"]}`,
4891
- role: "img",
4892
- "aria-label": t("credentialMissing"),
4893
- title: t("credentialMissing")
5141
+ ? (0, react_jsx_runtime.jsxs)("span", {
5142
+ className: ModelsSection_module_css_default["credentialMissing"],
5143
+ children: [
5144
+ (0, react_jsx_runtime.jsx)("span", {
5145
+ className: `${ModelsSection_module_css_default["credentialDot"]} ${ModelsSection_module_css_default["credentialDotMissing"]}`,
5146
+ "aria-hidden": "true"
5147
+ }),
5148
+ t("credentialMissing")
5149
+ ]
4894
5150
  })
4895
5151
  : null
4896
5152
  ]
@@ -4898,18 +5154,18 @@ window.__ModuleLoader__.load({
4898
5154
  (0, react_jsx_runtime.jsxs)("span", {
4899
5155
  className: ModelsSection_module_css_default["rowActions"],
4900
5156
  children: [
4901
- row.entry.provider === "deepseek-account"
5157
+ row.entry.provider === "deepseek-account" || open
4902
5158
  ? null
4903
5159
  : (0, react_jsx_runtime.jsx)("button", {
4904
5160
  type: "button",
4905
5161
  className: ModelsSection_module_css_default["secondaryButton"],
4906
5162
  "aria-label": providerCopy(t("editProvider"), target),
4907
- disabled: !open && state.status !== "ready",
5163
+ disabled: state.status !== "ready",
4908
5164
  onClick: () => {
4909
- if (!open && controller.store.getSnapshot().status !== "ready") return;
5165
+ if (controller.store.getSnapshot().status !== "ready") return;
4910
5166
  setSavedTarget(void 0);
4911
5167
  setAddOpen(false);
4912
- setEditing(open ? void 0 : target);
5168
+ setEditing(target);
4913
5169
  },
4914
5170
  children: t("edit")
4915
5171
  }),
@@ -4936,17 +5192,21 @@ window.__ModuleLoader__.load({
4936
5192
  renderSlot(
4937
5193
  "settings.models.provider-card",
4938
5194
  { provider: row.entry, configured: row.configured, keyConfigured: keyConfiguredOf(row) },
4939
- { entryKey: row.entry.settingsNs }
5195
+ { entryKey: row.adapterNs }
4940
5196
  ),
4941
5197
  open
4942
5198
  ? renderProviderEditor({
4943
5199
  target,
4944
5200
  row,
4945
5201
  thinkingPresets: isClaudeProvider(row, state),
4946
- namespace,
5202
+ namespace:
5203
+ row.adapterNs !== namespace.ns && emptyLayer(namespace.user)
5204
+ ? { ...namespace, base: namespace.value }
5205
+ : namespace,
4947
5206
  schema,
4948
5207
  operations,
4949
5208
  t,
5209
+ hideTitle: true,
4950
5210
  readOnly: !state.writable,
4951
5211
  onClose: (changed) => {
4952
5212
  closeEditor(changed, target);
@@ -4969,7 +5229,7 @@ window.__ModuleLoader__.load({
4969
5229
  className: ModelsSection_module_css_default["addModes"],
4970
5230
  children: [
4971
5231
  bothOffered
4972
- ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SegmentedControl, {
5232
+ ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.SegmentedControl, {
4973
5233
  id: addId,
4974
5234
  label: t("addMode"),
4975
5235
  value: mode,
@@ -5044,6 +5304,17 @@ window.__ModuleLoader__.load({
5044
5304
  })
5045
5305
  ]
5046
5306
  }),
5307
+ addRow === void 0
5308
+ ? null
5309
+ : renderSlot(
5310
+ "settings.models.provider-card",
5311
+ {
5312
+ provider: addRow.entry,
5313
+ configured: addRow.configured,
5314
+ keyConfigured: keyConfiguredOf(addRow)
5315
+ },
5316
+ { entryKey: addRow.adapterNs }
5317
+ ),
5047
5318
  (0, react_jsx_runtime.jsx)(
5048
5319
  ProviderEditor,
5049
5320
  {
@@ -5070,18 +5341,7 @@ window.__ModuleLoader__.load({
5070
5341
  onBusyChange: setCatalogBusy
5071
5342
  },
5072
5343
  draft.target.provider
5073
- ),
5074
- addRow === void 0
5075
- ? null
5076
- : renderSlot(
5077
- "settings.models.provider-card",
5078
- {
5079
- provider: addRow.entry,
5080
- configured: addRow.configured,
5081
- keyConfigured: keyConfiguredOf(addRow)
5082
- },
5083
- { entryKey: addRow.entry.settingsNs }
5084
- )
5344
+ )
5085
5345
  ]
5086
5346
  })
5087
5347
  : null,
@@ -5150,9 +5410,10 @@ window.__ModuleLoader__.load({
5150
5410
  setAddOpen(true);
5151
5411
  },
5152
5412
  children: [
5153
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, {
5154
- size: 14
5155
- }),
5413
+ (0, react_jsx_runtime.jsx)(
5414
+ _deepseek_ai_dsh_client_ui_primitives_client.IconPlusOutlineRegular,
5415
+ { size: 14 }
5416
+ ),
5156
5417
  t("add")
5157
5418
  ]
5158
5419
  })
@@ -5160,7 +5421,7 @@ window.__ModuleLoader__.load({
5160
5421
  : null
5161
5422
  }),
5162
5423
  renderSlot("settings.models.footer", {}),
5163
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
5424
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Modal, {
5164
5425
  open: deleteTarget !== void 0,
5165
5426
  onClose: closeDelete,
5166
5427
  title: deleteTarget === void 0 ? "" : providerCopy(t("deleteTitle"), deleteTarget),
@@ -5177,14 +5438,14 @@ window.__ModuleLoader__.load({
5177
5438
  className: ModelsSection_module_css_default["deleteDialog"],
5178
5439
  footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, {
5179
5440
  children: [
5180
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
5441
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Button, {
5181
5442
  variant: "outline",
5182
5443
  "data-modal-autofocus": true,
5183
5444
  disabled: deleting,
5184
5445
  onClick: closeDelete,
5185
5446
  children: t("cancel")
5186
5447
  }),
5187
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
5448
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Button, {
5188
5449
  variant: "outline",
5189
5450
  className: ModelsSection_module_css_default["deleteConfirm"],
5190
5451
  disabled: deleting,
@@ -5228,7 +5489,7 @@ window.__ModuleLoader__.load({
5228
5489
  (0, react.useEffect)(() => {
5229
5490
  if (focusTitle) titleRef.current?.focus();
5230
5491
  }, [focusTitle]);
5231
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
5492
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Modal, {
5232
5493
  open: true,
5233
5494
  title,
5234
5495
  onClose: ignoreImplicitDismiss,
@@ -5398,7 +5659,7 @@ window.__ModuleLoader__.load({
5398
5659
  }),
5399
5660
  (0, react_jsx_runtime.jsx)("div", {
5400
5661
  className: WelcomeNotice_module_css_default.actions,
5401
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
5662
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Button, {
5402
5663
  variant: "primary",
5403
5664
  className: WelcomeNotice_module_css_default.primary,
5404
5665
  disabled: state.status === "saving",
@@ -5569,12 +5830,11 @@ window.__ModuleLoader__.load({
5569
5830
  keyReveal: "Show secret",
5570
5831
  keyHide: "Hide secret",
5571
5832
  keyPlaceholder: "Enter your API key",
5833
+ keyReplacementPlaceholder: "Enter a new API key",
5834
+ keyReplace: "Replace API key",
5835
+ keyClear: "Clear API key",
5572
5836
  keyPlaceholderFallback: "Leave blank to use env as auth ({hint})",
5573
- keySaved: "Use the existing saved API key.",
5574
- keyReplacePending: "Apply to replace the saved API key.",
5575
5837
  keyRemovePending: "Apply to clear the saved API key and use environment authentication.",
5576
- keyRemovePendingEnvironment:
5577
- "Apply to clear the saved API key. Environment authentication will be used ({hint}).",
5578
5838
  keyRemoveApplied: "Key cleared. Apply again to finish settings; this deletion cannot be undone.",
5579
5839
  keyFallbackMissing: "Env var not detected. Enter an API key, or configure {hint} in your env.",
5580
5840
  keyFallbackDetected: "Env var detected. ({hint})",
@@ -5583,7 +5843,7 @@ window.__ModuleLoader__.load({
5583
5843
  keyHelp:
5584
5844
  "Saved credentials are used first. Environment fallbacks shown here, in order: {env}. Sources are launch environment, $cwd/.env, then $DSH_HOME/.env.",
5585
5845
  authHelp: "Authentication details",
5586
- customized: "Customized settings",
5846
+ customized: "Advanced settings",
5587
5847
  baseUrl: "Base URL",
5588
5848
  baseUrlDefault: "No default endpoint",
5589
5849
  baseUrlEnvironment: "Provider endpoint configuration: {env}",
@@ -5599,6 +5859,7 @@ window.__ModuleLoader__.load({
5599
5859
  retryMaxRetries: "Max retries",
5600
5860
  retryCodes: "Error codes",
5601
5861
  retryCodeEmptyResponse: "Empty response",
5862
+ retryCodeInvalidToolArguments: "Invalid tool arguments",
5602
5863
  retryCodeRateLimit: "Rate limited",
5603
5864
  retryCodeServer: "Server error",
5604
5865
  retryCodeTimeout: "Timeout",
@@ -5621,8 +5882,9 @@ window.__ModuleLoader__.load({
5621
5882
  retryCodesDuplicate: "Each error code may appear once.",
5622
5883
  retryDelayOrder: "Initial delay cannot exceed max delay.",
5623
5884
  models: "Models",
5624
- modelsInherited: "Using the adapter defaults",
5625
- modelsCustomized: "Customized model catalog",
5885
+ modelsInherited:
5886
+ "Using every model in the built-in catalog. After you pick or add models, only the listed ones are offered.",
5887
+ modelsCustomized: "Customized",
5626
5888
  resetModels: "Restore defaults",
5627
5889
  model: "Model",
5628
5890
  modelId: "Model ID",
@@ -5651,8 +5913,6 @@ window.__ModuleLoader__.load({
5651
5913
  modelReasoningOffValuePlaceholder: "Turns reasoning off",
5652
5914
  addModel: "Add model",
5653
5915
  removeModel: "Delete model",
5654
- reorderModel: "Reorder model",
5655
- reorderModelHelp: "Drag to reorder, or use the up and down arrow keys.",
5656
5916
  modelsEmpty: "No models will be shown in the selector. Unlisted IDs can still be sent directly.",
5657
5917
  keyBlank: "Enter the API key, or leave the field empty to keep the stored one.",
5658
5918
  keyBlankNew: "Enter the API key, or leave the field empty if this provider authenticates another way.",
@@ -5748,7 +6008,7 @@ window.__ModuleLoader__.load({
5748
6008
  applying: "保存中…",
5749
6009
  savedProvider: "已保存 {provider}。",
5750
6010
  credentialConfigured: "API 密钥已配置",
5751
- credentialMissing: "API 密钥缺失",
6011
+ credentialMissing: "未配置 API 密钥",
5752
6012
  accountSignedIn: "已登录",
5753
6013
  readOnly: "当前部署的设置文档为只读。",
5754
6014
  loadFailed: "加载提供商目录失败",
@@ -5758,11 +6018,11 @@ window.__ModuleLoader__.load({
5758
6018
  keyReveal: "显示密钥",
5759
6019
  keyHide: "隐藏密钥",
5760
6020
  keyPlaceholder: "输入 API 密钥",
6021
+ keyReplacementPlaceholder: "输入新的 API 密钥",
6022
+ keyReplace: "更换 API 密钥",
6023
+ keyClear: "清除 API 密钥",
5761
6024
  keyPlaceholderFallback: "留空使用环境认证({hint})",
5762
- keySaved: "使用已保存的 API key。",
5763
- keyReplacePending: "保存以替换已保存的 API key。",
5764
- keyRemovePending: "保存以清除已保存的 API key,并改用环境认证。",
5765
- keyRemovePendingEnvironment: "保存以清除已保存的 API key。之后使用环境认证({hint})。",
6025
+ keyRemovePending: "保存以清除已保存的 API 密钥,并改用环境认证。",
5766
6026
  keyRemoveApplied: "密钥已清除,请重试保存以完成配置更新;此删除无法撤销",
5767
6027
  keyFallbackMissing: "未检测到环境变量。请填写 API 密钥,或设置环境变量 {hint}。",
5768
6028
  keyFallbackDetected: "已检测到环境变量({hint})",
@@ -5771,7 +6031,7 @@ window.__ModuleLoader__.load({
5771
6031
  keyHelp:
5772
6032
  "优先使用已保存的凭据。此处显示的环境后备按以下顺序排列:{env}。来源依次为启动环境、$cwd/.env、$DSH_HOME/.env。",
5773
6033
  authHelp: "认证说明",
5774
- customized: "自定义设置",
6034
+ customized: "高级设置",
5775
6035
  baseUrl: "API 地址",
5776
6036
  baseUrlDefault: "没有默认地址",
5777
6037
  baseUrlEnvironment: "提供方地址配置:{env}",
@@ -5787,6 +6047,7 @@ window.__ModuleLoader__.load({
5787
6047
  retryMaxRetries: "最大重试次数",
5788
6048
  retryCodes: "错误码",
5789
6049
  retryCodeEmptyResponse: "空响应",
6050
+ retryCodeInvalidToolArguments: "工具参数无效",
5790
6051
  retryCodeRateLimit: "请求限流",
5791
6052
  retryCodeServer: "服务器错误",
5792
6053
  retryCodeTimeout: "超时",
@@ -5808,10 +6069,10 @@ window.__ModuleLoader__.load({
5808
6069
  retryCodesInvalid: "错误码必须是非空文本。",
5809
6070
  retryCodesDuplicate: "每个错误码只能出现一次。",
5810
6071
  retryDelayOrder: "初始延迟不能大于最大延迟。",
5811
- models: "模型目录",
5812
- modelsInherited: "正在使用适配器默认模型",
5813
- modelsCustomized: "已自定义模型目录",
5814
- resetModels: "恢复默认模型",
6072
+ models: "模型",
6073
+ modelsInherited: "正在使用内置目录的全部模型;挑选或添加模型后,只提供列表中的模型",
6074
+ modelsCustomized: "已自定义",
6075
+ resetModels: "恢复默认",
5815
6076
  model: "模型",
5816
6077
  modelId: "模型 ID",
5817
6078
  modelName: "显示名称",
@@ -5839,8 +6100,6 @@ window.__ModuleLoader__.load({
5839
6100
  modelReasoningOffValuePlaceholder: "关闭思考",
5840
6101
  addModel: "添加模型",
5841
6102
  removeModel: "删除模型",
5842
- reorderModel: "调整模型顺序",
5843
- reorderModelHelp: "拖动排序,或使用上下方向键调整顺序。",
5844
6103
  modelsEmpty: "模型选择器中将不显示任何模型;目录外 ID 仍可直接发送。",
5845
6104
  keyBlank: "请输入 API 密钥;留空则保持已存储的密钥。",
5846
6105
  keyBlankNew: "请输入 API 密钥;若该提供商以其他方式鉴权,可以留空。",
@@ -5948,12 +6207,11 @@ window.__ModuleLoader__.load({
5948
6207
  keyReveal: "シークレットを表示",
5949
6208
  keyHide: "シークレットを非表示",
5950
6209
  keyPlaceholder: "APIキーを入力",
6210
+ keyReplacementPlaceholder: "新しいAPIキーを入力",
6211
+ keyReplace: "APIキーを置き換える",
6212
+ keyClear: "APIキーを削除",
5951
6213
  keyPlaceholderFallback: "空欄のままにすると環境変数を認証に使用します ({hint})",
5952
- keySaved: "保存済みのAPIキーを使用します。",
5953
- keyReplacePending: "適用すると保存済みのAPIキーを置き換えます。",
5954
6214
  keyRemovePending: "適用すると保存済みのAPIキーを削除し、環境変数の認証を使用します。",
5955
- keyRemovePendingEnvironment:
5956
- "適用すると保存済みのAPIキーを削除します。その後、環境変数の認証({hint})を使用します。",
5957
6215
  keyRemoveApplied: "キーは削除済みです。再度適用して設定を更新してください。削除は取り消せません。",
5958
6216
  keyFallbackMissing: "環境変数が検出されません。APIキーを入力するか、環境変数に{hint}を設定してください。",
5959
6217
  keyFallbackDetected: "環境変数を検出しました。({hint})",
@@ -5962,7 +6220,7 @@ window.__ModuleLoader__.load({
5962
6220
  keyHelp:
5963
6221
  "保存済みの認証情報が優先されます。以下に示す環境変数のフォールバック(この順): {env}。参照元は起動環境、$cwd/.env、$DSH_HOME/.envの順です。",
5964
6222
  authHelp: "認証の詳細",
5965
- customized: "カスタマイズされた設定",
6223
+ customized: "詳細設定",
5966
6224
  baseUrl: "ベースURL",
5967
6225
  baseUrlDefault: "デフォルトエンドポイントなし",
5968
6226
  baseUrlEnvironment: "プロバイダーのエンドポイント設定: {env}",
@@ -5978,6 +6236,7 @@ window.__ModuleLoader__.load({
5978
6236
  retryMaxRetries: "最大再試行回数",
5979
6237
  retryCodes: "エラーコード",
5980
6238
  retryCodeEmptyResponse: "空のレスポンス",
6239
+ retryCodeInvalidToolArguments: "無効なツール引数",
5981
6240
  retryCodeRateLimit: "レート制限",
5982
6241
  retryCodeServer: "サーバーエラー",
5983
6242
  retryCodeTimeout: "タイムアウト",
@@ -6000,8 +6259,9 @@ window.__ModuleLoader__.load({
6000
6259
  retryCodesDuplicate: "各エラーコードは1回のみ指定できます。",
6001
6260
  retryDelayOrder: "初期遅延は最大遅延以下にしてください。",
6002
6261
  models: "モデル",
6003
- modelsInherited: "アダプターのデフォルトを使用",
6004
- modelsCustomized: "カスタマイズされたモデルカタログ",
6262
+ modelsInherited:
6263
+ "内蔵カタログのすべてのモデルを使用しています。モデルを選択または追加すると、一覧のモデルだけが提供されます。",
6264
+ modelsCustomized: "カスタマイズ済み",
6005
6265
  resetModels: "デフォルトに戻す",
6006
6266
  model: "モデル",
6007
6267
  modelId: "モデルID",
@@ -6030,8 +6290,6 @@ window.__ModuleLoader__.load({
6030
6290
  modelReasoningOffValuePlaceholder: "推論を無効にします",
6031
6291
  addModel: "モデルを追加",
6032
6292
  removeModel: "モデルを削除",
6033
- reorderModel: "モデルの順序を変更",
6034
- reorderModelHelp: "ドラッグ、または上下の矢印キーで順序を変更できます。",
6035
6293
  modelsEmpty: "セレクターにモデルが表示されません。一覧にないIDも直接送信できます。",
6036
6294
  keyBlank: "APIキーを入力してください。空欄のままにすると保存済みのキーが保持されます。",
6037
6295
  keyBlankNew: "APIキーを入力してください。このプロバイダーが別の方法で認証する場合は空欄のままにしてください。",
@@ -6132,12 +6390,11 @@ window.__ModuleLoader__.load({
6132
6390
  keyReveal: "Mostrar secreto",
6133
6391
  keyHide: "Ocultar secreto",
6134
6392
  keyPlaceholder: "Ingrese su clave API",
6393
+ keyReplacementPlaceholder: "Ingrese una nueva clave API",
6394
+ keyReplace: "Reemplazar clave API",
6395
+ keyClear: "Borrar clave API",
6135
6396
  keyPlaceholderFallback: "Déjelo en blanco para usar env como autenticación ({hint})",
6136
- keySaved: "Se usará la clave API guardada.",
6137
- keyReplacePending: "Aplique para reemplazar la clave API guardada.",
6138
6397
  keyRemovePending: "Aplique para borrar la clave API guardada y usar la autenticación del entorno.",
6139
- keyRemovePendingEnvironment:
6140
- "Aplique para borrar la clave API guardada. Se usará la autenticación del entorno ({hint}).",
6141
6398
  keyRemoveApplied: "Clave borrada. Aplique de nuevo para completar la configuración; no se puede deshacer.",
6142
6399
  keyFallbackMissing:
6143
6400
  "No se detectó la variable de entorno. Ingrese una clave API o configure {hint} en su entorno.",
@@ -6147,7 +6404,7 @@ window.__ModuleLoader__.load({
6147
6404
  keyHelp:
6148
6405
  "Las credenciales guardadas se utilizan primero. Las alternativas de entorno se muestran aquí, en orden: {env}. Las fuentes son el entorno de inicio, $cwd/.env, luego $DSH_HOME/.env.",
6149
6406
  authHelp: "Detalles de autenticación",
6150
- customized: "Configuraciones personalizadas",
6407
+ customized: "Configuración avanzada",
6151
6408
  baseUrl: "URL base",
6152
6409
  baseUrlDefault: "Sin punto final predeterminado",
6153
6410
  baseUrlEnvironment: "Configuración del punto final del proveedor: {env}",
@@ -6163,6 +6420,7 @@ window.__ModuleLoader__.load({
6163
6420
  retryMaxRetries: "Reintentos máximos",
6164
6421
  retryCodes: "Códigos de error",
6165
6422
  retryCodeEmptyResponse: "Respuesta vacía",
6423
+ retryCodeInvalidToolArguments: "Argumentos de herramienta no válidos",
6166
6424
  retryCodeRateLimit: "Límite de frecuencia",
6167
6425
  retryCodeServer: "Error del servidor",
6168
6426
  retryCodeTimeout: "Tiempo agotado",
@@ -6185,8 +6443,9 @@ window.__ModuleLoader__.load({
6185
6443
  retryCodesDuplicate: "Cada código de error solo puede aparecer una vez.",
6186
6444
  retryDelayOrder: "El retraso inicial no puede superar el retraso máximo.",
6187
6445
  models: "Modelos",
6188
- modelsInherited: "Usando los valores predeterminados del adaptador",
6189
- modelsCustomized: "Catálogo de modelos personalizado",
6446
+ modelsInherited:
6447
+ "Se usan todos los modelos del catálogo integrado. Al elegir o añadir modelos, solo se ofrecen los de la lista.",
6448
+ modelsCustomized: "Personalizado",
6190
6449
  resetModels: "Restaurar valores predeterminados",
6191
6450
  model: "modelo",
6192
6451
  modelId: "ID del modelo",
@@ -6216,8 +6475,6 @@ window.__ModuleLoader__.load({
6216
6475
  modelReasoningOffValuePlaceholder: "Desactiva el razonamiento",
6217
6476
  addModel: "Agregar modelo",
6218
6477
  removeModel: "Eliminar modelo",
6219
- reorderModel: "Reordenar modelo",
6220
- reorderModelHelp: "Arrastre para reordenar o use las teclas de flecha hacia arriba y hacia abajo.",
6221
6478
  modelsEmpty:
6222
6479
  "No se mostrará ningún modelo en el selector. Las identificaciones que no figuran en la lista aún se pueden enviar directamente.",
6223
6480
  keyBlank: "Ingrese la clave API, o deje el campo vacío para conservar la almacenada.",
@@ -6321,13 +6578,12 @@ window.__ModuleLoader__.load({
6321
6578
  keyReveal: "Afficher le secret",
6322
6579
  keyHide: "Cacher le secret",
6323
6580
  keyPlaceholder: "Entrez votre clé API",
6581
+ keyReplacementPlaceholder: "Saisissez une nouvelle clé API",
6582
+ keyReplace: "Remplacer la clé API",
6583
+ keyClear: "Effacer la clé API",
6324
6584
  keyPlaceholderFallback: "Laissez vide pour utiliser env comme authentification ({hint})",
6325
- keySaved: "La clé API enregistrée sera utilisée.",
6326
- keyReplacePending: "Appliquez pour remplacer la clé API enregistrée.",
6327
6585
  keyRemovePending:
6328
6586
  "Appliquez pour effacer la clé API enregistrée et utiliser l’authentification de l’environnement.",
6329
- keyRemovePendingEnvironment:
6330
- "Appliquez pour effacer la clé API enregistrée. L’authentification de l’environnement sera utilisée ({hint}).",
6331
6587
  keyRemoveApplied:
6332
6588
  "Clé supprimée. Appliquez à nouveau pour terminer les paramètres ; la suppression est irréversible.",
6333
6589
  keyFallbackMissing:
@@ -6338,7 +6594,7 @@ window.__ModuleLoader__.load({
6338
6594
  keyHelp:
6339
6595
  "Les informations d'identification enregistrées sont utilisées en premier. Solutions de secours d’environnement affichées ici, dans l’ordre : {env}. Les sources sont l'environnement de lancement, $cwd/.env, puis $DSH_HOME/.env.",
6340
6596
  authHelp: "Détails d'authentification",
6341
- customized: "Paramètres personnalisés",
6597
+ customized: "Paramètres avancés",
6342
6598
  baseUrl: "URL de base",
6343
6599
  baseUrlDefault: "Aucun point de terminaison par défaut",
6344
6600
  baseUrlEnvironment: "Configuration du point de terminaison du fournisseur : {env}",
@@ -6355,6 +6611,7 @@ window.__ModuleLoader__.load({
6355
6611
  retryMaxRetries: "Tentatives max.",
6356
6612
  retryCodes: "Codes d'erreur",
6357
6613
  retryCodeEmptyResponse: "Réponse vide",
6614
+ retryCodeInvalidToolArguments: "Arguments d’outil invalides",
6358
6615
  retryCodeRateLimit: "Limite de débit",
6359
6616
  retryCodeServer: "Erreur serveur",
6360
6617
  retryCodeTimeout: "Délai dépassé",
@@ -6377,8 +6634,9 @@ window.__ModuleLoader__.load({
6377
6634
  retryCodesDuplicate: "Chaque code d'erreur ne peut apparaître qu'une fois.",
6378
6635
  retryDelayOrder: "Le délai initial ne peut pas dépasser le délai maximum.",
6379
6636
  models: "Modèles",
6380
- modelsInherited: "Utilisation des valeurs par défaut de l'adaptateur",
6381
- modelsCustomized: "Catalogue de modèles personnalisés",
6637
+ modelsInherited:
6638
+ "Tous les modèles du catalogue intégré sont utilisés. Après un choix ou un ajout, seuls les modèles de la liste sont proposés.",
6639
+ modelsCustomized: "Personnalisé",
6382
6640
  resetModels: "Restaurer les valeurs par défaut",
6383
6641
  model: "Modèle",
6384
6642
  modelId: "ID du modèle",
@@ -6409,8 +6667,6 @@ window.__ModuleLoader__.load({
6409
6667
  modelReasoningOffValuePlaceholder: "Désactive le raisonnement",
6410
6668
  addModel: "Ajouter un modèle",
6411
6669
  removeModel: "Supprimer le modèle",
6412
- reorderModel: "Réorganiser le modèle",
6413
- reorderModelHelp: "Faites glisser pour réorganiser ou utilisez les touches fléchées haut et bas.",
6414
6670
  modelsEmpty:
6415
6671
  "Aucun modèle ne sera affiché dans le sélecteur. Les identifiants non répertoriés peuvent toujours être envoyés directement.",
6416
6672
  keyBlank: "Saisissez la clé API, ou laissez le champ vide pour conserver celle stockée.",
@@ -6516,13 +6772,12 @@ window.__ModuleLoader__.load({
6516
6772
  keyReveal: "Geheimnis zeigen",
6517
6773
  keyHide: "Geheimnis verbergen",
6518
6774
  keyPlaceholder: "Geben Sie Ihren API-Schlüssel ein",
6775
+ keyReplacementPlaceholder: "Geben Sie einen neuen API-Schlüssel ein",
6776
+ keyReplace: "API-Schlüssel ersetzen",
6777
+ keyClear: "API-Schlüssel löschen",
6519
6778
  keyPlaceholderFallback: "Lassen Sie das Feld leer, um env als Authentifizierung zu verwenden ({hint})",
6520
- keySaved: "Der gespeicherte API-Schlüssel wird verwendet.",
6521
- keyReplacePending: "Anwenden, um den gespeicherten API-Schlüssel zu ersetzen.",
6522
6779
  keyRemovePending:
6523
6780
  "Anwenden, um den gespeicherten API-Schlüssel zu löschen und die Umgebungsauthentifizierung zu verwenden.",
6524
- keyRemovePendingEnvironment:
6525
- "Anwenden, um den gespeicherten API-Schlüssel zu löschen. Danach wird die Umgebungsauthentifizierung verwendet ({hint}).",
6526
6781
  keyRemoveApplied:
6527
6782
  "Schlüssel gelöscht. Erneut anwenden, um die Einstellungen abzuschließen; das Löschen ist unwiderruflich.",
6528
6783
  keyFallbackMissing:
@@ -6533,7 +6788,7 @@ window.__ModuleLoader__.load({
6533
6788
  keyHelp:
6534
6789
  "Gespeicherte Anmeldeinformationen werden zuerst verwendet. Hier werden Umgebungs-Fallbacks in der Reihenfolge angezeigt: {env}. Quellen sind die Startumgebung, $cwd/.env und dann $DSH_HOME/.env.",
6535
6790
  authHelp: "Authentifizierungsdetails",
6536
- customized: "Benutzerdefinierte Einstellungen",
6791
+ customized: "Erweiterte Einstellungen",
6537
6792
  baseUrl: "Basis-URL",
6538
6793
  baseUrlDefault: "Kein Standardendpunkt",
6539
6794
  baseUrlEnvironment: "Konfiguration des Anbieterendpunkts: {env}",
@@ -6550,6 +6805,7 @@ window.__ModuleLoader__.load({
6550
6805
  retryMaxRetries: "Max. Wiederholungen",
6551
6806
  retryCodes: "Fehlercodes",
6552
6807
  retryCodeEmptyResponse: "Leere Antwort",
6808
+ retryCodeInvalidToolArguments: "Ungültige Tool-Argumente",
6553
6809
  retryCodeRateLimit: "Ratenbegrenzung",
6554
6810
  retryCodeServer: "Serverfehler",
6555
6811
  retryCodeTimeout: "Zeitüberschreitung",
@@ -6572,8 +6828,9 @@ window.__ModuleLoader__.load({
6572
6828
  retryCodesDuplicate: "Jeder Fehlercode darf nur einmal vorkommen.",
6573
6829
  retryDelayOrder: "Die anfängliche Verzögerung darf die maximale Verzögerung nicht überschreiten.",
6574
6830
  models: "Modelle",
6575
- modelsInherited: "Verwendung der Adapterstandards",
6576
- modelsCustomized: "Maßgeschneiderter Modellkatalog",
6831
+ modelsInherited:
6832
+ "Alle Modelle des integrierten Katalogs werden verwendet. Nach dem Auswählen oder Hinzufügen werden nur die Modelle der Liste angeboten.",
6833
+ modelsCustomized: "Angepasst",
6577
6834
  resetModels: "Standardeinstellungen wiederherstellen",
6578
6835
  model: "Modell",
6579
6836
  modelId: "Modell-ID",
@@ -6603,9 +6860,6 @@ window.__ModuleLoader__.load({
6603
6860
  modelReasoningOffValuePlaceholder: "Schaltet das Denken aus",
6604
6861
  addModel: "Modell hinzufügen",
6605
6862
  removeModel: "Modell löschen",
6606
- reorderModel: "Modell neu anordnen",
6607
- reorderModelHelp:
6608
- "Ziehen Sie, um die Reihenfolge neu anzuordnen, oder verwenden Sie die Aufwärts- und Abwärtspfeiltasten.",
6609
6863
  modelsEmpty:
6610
6864
  "Im Selektor werden keine Modelle angezeigt. Nicht gelistete Ausweise können weiterhin direkt versendet werden.",
6611
6865
  keyBlank:
@@ -6712,12 +6966,11 @@ window.__ModuleLoader__.load({
6712
6966
  keyReveal: "Показать секрет",
6713
6967
  keyHide: "Скрыть секрет",
6714
6968
  keyPlaceholder: "Введите свой ключ API",
6969
+ keyReplacementPlaceholder: "Введите новый API-ключ",
6970
+ keyReplace: "Заменить API-ключ",
6971
+ keyClear: "Удалить API-ключ",
6715
6972
  keyPlaceholderFallback: "Оставьте пустым, чтобы использовать env в качестве аутентификации ({hint})",
6716
- keySaved: "Используется сохранённый API-ключ.",
6717
- keyReplacePending: "Примените, чтобы заменить сохранённый API-ключ.",
6718
6973
  keyRemovePending: "Примените, чтобы удалить сохранённый API-ключ и использовать аутентификацию из окружения.",
6719
- keyRemovePendingEnvironment:
6720
- "Примените, чтобы удалить сохранённый API-ключ. Будет использована аутентификация из окружения ({hint}).",
6721
6974
  keyRemoveApplied: "Ключ удалён. Примените ещё раз для завершения настройки; удаление нельзя отменить.",
6722
6975
  keyFallbackMissing: "Переменная Env не обнаружена. Введите ключ API или настройте {hint} в своей среде.",
6723
6976
  keyFallbackDetected: "Обнаружена переменная Env. ({hint})",
@@ -6726,7 +6979,7 @@ window.__ModuleLoader__.load({
6726
6979
  keyHelp:
6727
6980
  "Сохраненные учетные данные используются в первую очередь. Здесь показаны резервные варианты среды в порядке: {env}. Источниками являются среда запуска, $cwd/.env, затем $DSH_HOME/.env.",
6728
6981
  authHelp: "Детали аутентификации",
6729
- customized: "Индивидуальные настройки",
6982
+ customized: "Дополнительные настройки",
6730
6983
  baseUrl: "Базовый URL",
6731
6984
  baseUrlDefault: "Нет конечной точки по умолчанию",
6732
6985
  baseUrlEnvironment: "Конфигурация конечной точки поставщика: {env}.",
@@ -6742,6 +6995,7 @@ window.__ModuleLoader__.load({
6742
6995
  retryMaxRetries: "Макс. число повторов",
6743
6996
  retryCodes: "Коды ошибок",
6744
6997
  retryCodeEmptyResponse: "Пустой ответ",
6998
+ retryCodeInvalidToolArguments: "Недопустимые аргументы инструмента",
6745
6999
  retryCodeRateLimit: "Лимит запросов",
6746
7000
  retryCodeServer: "Ошибка сервера",
6747
7001
  retryCodeTimeout: "Тайм-аут",
@@ -6764,8 +7018,9 @@ window.__ModuleLoader__.load({
6764
7018
  retryCodesDuplicate: "Каждый код ошибки может встречаться только один раз.",
6765
7019
  retryDelayOrder: "Начальная задержка не может превышать максимальную.",
6766
7020
  models: "Модели",
6767
- modelsInherited: "Использование настроек адаптера по умолчанию",
6768
- modelsCustomized: "Индивидуальный каталог моделей",
7021
+ modelsInherited:
7022
+ "Используются все модели встроенного каталога. После выбора или добавления моделей предлагаются только модели из списка.",
7023
+ modelsCustomized: "Настроено",
6769
7024
  resetModels: "Восстановить настройки по умолчанию",
6770
7025
  model: "Модель",
6771
7026
  modelId: "Идентификатор модели",
@@ -6795,8 +7050,6 @@ window.__ModuleLoader__.load({
6795
7050
  modelReasoningOffValuePlaceholder: "Отключает рассуждения",
6796
7051
  addModel: "Добавить модель",
6797
7052
  removeModel: "Удалить модель",
6798
- reorderModel: "Изменить порядок модели",
6799
- reorderModelHelp: "Перетащите, чтобы изменить порядок, или используйте клавиши со стрелками вверх и вниз.",
6800
7053
  modelsEmpty:
6801
7054
  "В селекторе не будут показаны модели. Неуказанные идентификаторы по-прежнему можно отправлять напрямую.",
6802
7055
  keyBlank: "Введите ключ API или оставьте поле пустым, чтобы сохранить сохраненный.",
@@ -6900,12 +7153,11 @@ window.__ModuleLoader__.load({
6900
7153
  keyReveal: "Mostrar segredo",
6901
7154
  keyHide: "Ocultar segredo",
6902
7155
  keyPlaceholder: "Insira sua chave API",
7156
+ keyReplacementPlaceholder: "Insira uma nova chave de API",
7157
+ keyReplace: "Substituir chave de API",
7158
+ keyClear: "Limpar chave de API",
6903
7159
  keyPlaceholderFallback: "Deixe em branco para usar env como autenticação ({hint})",
6904
- keySaved: "A chave API salva será usada.",
6905
- keyReplacePending: "Aplique para substituir a chave API salva.",
6906
7160
  keyRemovePending: "Aplique para limpar a chave API salva e usar a autenticação do ambiente.",
6907
- keyRemovePendingEnvironment:
6908
- "Aplique para limpar a chave API salva. A autenticação do ambiente será usada ({hint}).",
6909
7161
  keyRemoveApplied:
6910
7162
  "Chave apagada. Aplique novamente para concluir as configurações; a exclusão não pode ser desfeita.",
6911
7163
  keyFallbackMissing: "Env var não detectado. Insira uma chave API ou configure {hint} em seu ambiente.",
@@ -6915,7 +7167,7 @@ window.__ModuleLoader__.load({
6915
7167
  keyHelp:
6916
7168
  "As credenciais salvas são usadas primeiro. Fallbacks de ambiente mostrados aqui, em ordem: {env}. As fontes são o ambiente de inicialização, $cwd/.env e, em seguida, $DSH_HOME/.env.",
6917
7169
  authHelp: "Detalhes de autenticação",
6918
- customized: "Configurações personalizadas",
7170
+ customized: "Configurações avançadas",
6919
7171
  baseUrl: "URL base",
6920
7172
  baseUrlDefault: "Nenhum endpoint padrão",
6921
7173
  baseUrlEnvironment: "Configuração do endpoint do provedor: {env}",
@@ -6931,6 +7183,7 @@ window.__ModuleLoader__.load({
6931
7183
  retryMaxRetries: "Máx. de novas tentativas",
6932
7184
  retryCodes: "Códigos de erro",
6933
7185
  retryCodeEmptyResponse: "Resposta vazia",
7186
+ retryCodeInvalidToolArguments: "Argumentos de ferramenta inválidos",
6934
7187
  retryCodeRateLimit: "Limite de taxa",
6935
7188
  retryCodeServer: "Erro do servidor",
6936
7189
  retryCodeTimeout: "Tempo esgotado",
@@ -6953,8 +7206,9 @@ window.__ModuleLoader__.load({
6953
7206
  retryCodesDuplicate: "Cada código de erro só pode aparecer uma vez.",
6954
7207
  retryDelayOrder: "O atraso inicial não pode exceder o atraso máximo.",
6955
7208
  models: "Modelos",
6956
- modelsInherited: "Usando os padrões do adaptador",
6957
- modelsCustomized: "Catálogo de modelos personalizados",
7209
+ modelsInherited:
7210
+ "Todos os modelos do catálogo integrado estão em uso. Depois de escolher ou adicionar modelos, só os da lista são oferecidos.",
7211
+ modelsCustomized: "Personalizado",
6958
7212
  resetModels: "Restaurar padrões",
6959
7213
  model: "Modelo",
6960
7214
  modelId: "ID do modelo",
@@ -6984,8 +7238,6 @@ window.__ModuleLoader__.load({
6984
7238
  modelReasoningOffValuePlaceholder: "Desativa o raciocínio",
6985
7239
  addModel: "Adicionar modelo",
6986
7240
  removeModel: "Excluir modelo",
6987
- reorderModel: "Reordenar modelo",
6988
- reorderModelHelp: "Arraste para reordenar ou use as teclas de seta para cima e para baixo.",
6989
7241
  modelsEmpty: "Nenhum modelo será mostrado no seletor. IDs não listados ainda podem ser enviados diretamente.",
6990
7242
  keyBlank: "Insira a chave API ou deixe o campo vazio para manter a chave armazenada.",
6991
7243
  keyBlankNew: "Insira a chave API ou deixe o campo vazio se este provedor autenticar de outra forma.",
@@ -7151,7 +7403,7 @@ window.__ModuleLoader__.load({
7151
7403
  stylesheets: {
7152
7404
  "src/client/ModelsSection.module.css": {
7153
7405
  text: (context) =>
7154
- ".zGbnIq_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:24px;display:flex}.zGbnIq_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.zGbnIq_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:14px;line-height:22px}.zGbnIq_notice{color:var(--dsw-alias-state-warn-label);margin:0;font-size:12px;line-height:18px}.zGbnIq_savedNotice{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_rows{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.zGbnIq_rowCard{border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-alias-settings-card-fill);border-radius:var(--dsw-radius-xl);flex-direction:column;gap:16px;padding:12px 14px;display:flex}.zGbnIq_rowHead{align-items:center;gap:10px;display:flex}.zGbnIq_rowIdentity{align-items:center;gap:6px;min-width:0;display:inline-flex}.zGbnIq_rowName{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_rowTag{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-xs);color:var(--dsw-alias-label-secondary);flex:none;padding:1px 6px;font-size:11px;line-height:16px}.zGbnIq_credentialDot{box-sizing:border-box;corner-shape:round;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.zGbnIq_credentialDotConfigured{background:var(--dsw-alias-state-success-primary)}.zGbnIq_credentialDotMissing{background:var(--dsw-alias-state-error-primary)}.zGbnIq_accountStatus{color:var(--dsw-alias-state-success-primary);flex:none;align-items:center;gap:6px;font-size:13px;line-height:20px;display:inline-flex}.zGbnIq_rowActions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.zGbnIq_primaryButton,.zGbnIq_secondaryButton,.zGbnIq_addButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;font:inherit;cursor:pointer;border:none;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.zGbnIq_primaryButton{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}@media (hover:hover){.zGbnIq_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}}.zGbnIq_secondaryButton,.zGbnIq_addButton{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary);background:0 0}@media (hover:hover){.zGbnIq_secondaryButton:hover:not(:disabled),.zGbnIq_addButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.zGbnIq_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}}.zGbnIq_dangerButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;color:var(--dsw-alias-state-error-primary);font:inherit;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}@media (hover:hover){.zGbnIq_dangerButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}}.zGbnIq_rowActions .zGbnIq_secondaryButton,.zGbnIq_rowActions .zGbnIq_dangerButton{border-radius:var(--dsw-radius-sm);height:28px;padding:0 10px;font-size:12px;line-height:18px}.zGbnIq_primaryButton:disabled,.zGbnIq_secondaryButton:disabled,.zGbnIq_dangerButton:disabled,.zGbnIq_addButton:disabled,.zGbnIq_linkButton:disabled,.zGbnIq_addModelButton:disabled{opacity:.4;cursor:default}.zGbnIq_primaryButton:focus-visible,.zGbnIq_secondaryButton:focus-visible,.zGbnIq_dangerButton:focus-visible,.zGbnIq_addButton:focus-visible,.zGbnIq_linkButton:focus-visible,.zGbnIq_addModelButton:focus-visible,.zGbnIq_iconButton:focus-visible,.zGbnIq_customizedSummary:focus-visible{box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}.zGbnIq_editor{border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;display:flex}.zGbnIq_editorHeader{align-items:baseline;gap:8px;display:flex}.zGbnIq_editorTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_editorRoute{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_field{flex-direction:column;gap:6px;display:flex}.zGbnIq_fieldLabel{color:var(--dsw-alias-label-secondary);align-items:center;gap:10px;font-size:12px;font-weight:500;line-height:18px;display:inline-flex}.zGbnIq_helpButton{border:.5px solid var(--dsw-alias-border-l3);corner-shape:round;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:center;cursor:help;background:0 0;border-radius:50%;padding:0;font-size:11px;line-height:15px}.zGbnIq_helpButton:focus-visible{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-tertiary)}@media (hover:hover){.zGbnIq_helpButton:hover{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-tertiary)}}.zGbnIq_linkButton{box-sizing:border-box;border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}@media (hover:hover){.zGbnIq_linkButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}}.zGbnIq_advancedHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.zGbnIq_editorActions{justify-content:flex-end;gap:8px;display:flex}.zGbnIq_addBlock>.zGbnIq_editorActions{margin-top:12px}.zGbnIq_addBlock{flex-direction:column;gap:12px;display:flex}.zGbnIq_addActions{display:flex}.zGbnIq_addButton{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);flex:1 1 0;gap:6px;min-width:180px;height:44px}.zGbnIq_addModes{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.zGbnIq_addPanel{flex-direction:column;gap:14px;display:flex}.zGbnIq_addPanel[hidden]{display:none}.zGbnIq_addCard,.zGbnIq_setupCard{border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;list-style:none;display:flex}.zGbnIq_addCard .zGbnIq_editor,.zGbnIq_setupCard .zGbnIq_editor{background:0 0;padding:0}.zGbnIq_customized{border-top:.5px solid var(--dsw-alias-border-l2);padding-top:10px}.zGbnIq_customizedSummary{border-radius:var(--dsw-radius-sm);cursor:pointer;width:fit-content;color:var(--dsw-alias-label-secondary);align-items:center;gap:6px;margin-left:-4px;padding:2px 4px;font-size:12px;font-weight:500;line-height:18px;list-style:none;display:flex}.zGbnIq_customizedSummary::-webkit-details-marker{display:none}.zGbnIq_customizedSummary:before{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;transition:transform .12s;transform:rotate(-45deg)translate(-1px,-1px)}.zGbnIq_customized[open]>.zGbnIq_customizedSummary:before,.zGbnIq_retryFold[open]>.zGbnIq_customizedSummary:before{transform:rotate(45deg)translate(-1px,-1px)}.zGbnIq_retryFold>.zGbnIq_customizedSummary{color:var(--dsw-alias-label-tertiary);font-weight:400}@media (hover:hover){.zGbnIq_customizedSummary:hover{color:var(--dsw-alias-label-primary)}}.zGbnIq_customizedBody{flex-direction:column;gap:12px;padding-top:12px;display:flex}.zGbnIq_modelCatalog{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:12px;padding-top:16px;display:flex;position:relative}.zGbnIq_modelCatalogHeading{flex-direction:column;gap:2px;display:flex}.zGbnIq_modelCatalogTitle{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.zGbnIq_modelCatalogMeta,.zGbnIq_modelEmpty{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.zGbnIq_modelList{--model-row-gap:12px;gap:var(--model-row-gap);flex-direction:column;display:flex;container-type:inline-size}.zGbnIq_modelListHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.zGbnIq_modelEntry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);grid-template-columns:28px minmax(0,1.4fr) minmax(0,1fr) 28px 28px;column-gap:6px;padding:6px;display:grid;position:relative;container:zGbnIq_model-row/inline-size}.zGbnIq_modelRow{grid-column:1/-1;grid-template-columns:subgrid;align-items:center;gap:6px;display:grid}.zGbnIq_modelName{grid-area:1/3}.zGbnIq_modelNameLabel{display:none}@container zGbnIq_model-row (width<=440px){.zGbnIq_modelRow>.zGbnIq_modelAdvanced{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.zGbnIq_modelRow{grid-template-columns:auto minmax(0,1fr) auto auto}.zGbnIq_modelRow .zGbnIq_modelName{grid-area:2/1/auto/-1;padding:2px 4px 0;display:none}.zGbnIq_modelRow[data-expanded] .zGbnIq_modelName{display:flex}.zGbnIq_modelNameLabel{display:block}}.zGbnIq_modelDragHandle:not(:disabled){cursor:grab}.zGbnIq_modelEntry[data-dragging]{opacity:.5}.zGbnIq_modelEntry[data-drop-target]{z-index:1}.zGbnIq_modelDragPreview{background:var(--dsw-alias-bg-module-platform)}.zGbnIq_modelEntry:before,.zGbnIq_modelEntry:after{content:\"\";z-index:1;height:calc(var(--model-row-gap) / 2 + 1px);position:absolute;left:0;right:0}.zGbnIq_modelEntry:before{top:calc(-1 * (var(--model-row-gap) / 2 + 1px))}.zGbnIq_modelEntry:after{bottom:calc(-1 * (var(--model-row-gap) / 2 + 1px))}.zGbnIq_modelEntry[data-drop-target=before]:before,.zGbnIq_modelEntry[data-drop-target=after]:after{background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;height:12px}.zGbnIq_modelEntry[data-drop-target=before]:before{top:calc(-1 * (var(--model-row-gap) / 2 + 6px))}.zGbnIq_modelEntry[data-drop-target=after]:after{bottom:calc(-1 * (var(--model-row-gap) / 2 + 6px))}.zGbnIq_iconButton{box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}@media (hover:hover){.zGbnIq_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.zGbnIq_iconButton:disabled{cursor:default;opacity:.4}@media (hover:hover){.zGbnIq_iconButtonDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}}.zGbnIq_modelAdvanced{grid-column:2/4;grid-template-columns:subgrid;row-gap:16px;padding:16px 0 6px;display:grid}.zGbnIq_retryBody{flex-direction:column;gap:12px;margin-top:4px;display:flex}.zGbnIq_retryCodeChoices{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 16px;display:grid}.zGbnIq_retryCodeAdd{gap:8px;margin-top:8px;display:flex}.zGbnIq_retryCount{width:max(112px,33.3333% - 5.33333px);max-width:100%}.zGbnIq_retryBackoff{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));align-items:end;gap:12px 8px;padding-top:8px;display:grid}.zGbnIq_modelField{flex-direction:column;gap:6px;min-width:0;display:flex}.zGbnIq_modelInputTypes{border:none;grid-column:1/-1;min-width:0;margin:0;padding:0}.zGbnIq_modelInputTypes legend{margin-bottom:6px;padding:0}.zGbnIq_modelInputChoices{flex-wrap:wrap;align-items:center;gap:16px;min-height:32px;display:flex}.zGbnIq_modelFieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_modelReasoning{flex-direction:column;grid-column:1/-1;gap:6px;min-width:0;display:flex}.zGbnIq_modelReasoningLabel{align-items:center;gap:6px;display:inline-flex}.zGbnIq_modelReasoningHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.zGbnIq_modelReasoningRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:6px;display:grid}.zGbnIq_modelReasoningRow .zGbnIq_selectInput{max-width:none}.zGbnIq_modelReasoningValueInput{font-family:var(--ds-font-family-code);font-size:13px}.zGbnIq_modelEmpty{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);text-align:center;padding:12px}.zGbnIq_addModelButton{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);height:32px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;align-self:flex-start;align-items:center;gap:6px;margin-top:4px;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}@media (hover:hover){.zGbnIq_addModelButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.zGbnIq_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);width:100%;height:32px;font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);padding:0 10px;font-size:14px;line-height:22px}select.zGbnIq_input{cursor:pointer;max-width:240px}.zGbnIq_input:focus{border-color:var(--dsw-alias-state-business-primary);outline:none}.zGbnIq_input::placeholder{color:var(--dsw-alias-label-tertiary)}.zGbnIq_input:disabled{opacity:.6;cursor:default}.zGbnIq_keyInput{position:relative}.zGbnIq_savedKeyInput .zGbnIq_input::placeholder{color:var(--dsw-alias-label-primary);opacity:1}.zGbnIq_keyInputFilled{padding-right:40px}.zGbnIq_keyToggle{border-radius:var(--dsw-radius-md);width:32px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;inset:1px 1px 1px auto}@media (hover:hover){.zGbnIq_keyToggle:hover:not(:disabled){color:var(--dsw-alias-label-primary)}}.zGbnIq_keyToggle:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.zGbnIq_keyToggle:disabled{opacity:.6;cursor:default}.zGbnIq_selectInput{appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 12px center;background-repeat:no-repeat;background-size:12px 12px;padding-right:32px}.zGbnIq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_deleteDialog{width:min(480px,100%)}.zGbnIq_deleteConfirm:not(:disabled){--dsh-button-outline-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}@media (hover:hover){.zGbnIq_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}}.zGbnIq_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.zGbnIq_customizedSummary:before,.zGbnIq_switchThumb{transition:none}}.zGbnIq_fetchDialog{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);max-width:520px}.zGbnIq_candidateToolbar{align-items:center;gap:8px;margin-bottom:6px;display:flex}.zGbnIq_candidateSearch{flex:240px;min-width:0}.zGbnIq_candidateList{flex-direction:column;gap:2px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.zGbnIq_candidate{border-radius:var(--dsw-radius-md)}.zGbnIq_candidateLabel{cursor:pointer;align-items:center;gap:8px;padding:6px 8px;display:flex}.zGbnIq_candidateId{min-width:0;font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;flex:auto;font-size:13px;overflow:hidden}.zGbnIq_candidateEmpty{color:var(--dsw-alias-label-secondary);text-align:center;margin:24px 0;font-size:13px;line-height:20px}.zGbnIq_sectionHeader{flex-direction:column;gap:4px;display:flex}@media (pointer:coarse){.zGbnIq_input{font-size:16px}}"
7406
+ ".zGbnIq_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:24px;display:flex}.zGbnIq_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.zGbnIq_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:14px;line-height:22px}.zGbnIq_notice{color:var(--dsw-alias-state-warn-label);margin:0;font-size:12px;line-height:18px}.zGbnIq_savedNotice{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_rows{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.zGbnIq_rowCard{border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-alias-settings-card-fill);border-radius:var(--dsw-radius-xl);flex-direction:column;gap:16px;padding:12px 14px;display:flex}.zGbnIq_rowCardOpen{background:var(--dsw-alias-bg-module-platform);border-color:#0000;padding:14px 16px}.zGbnIq_rowHead{align-items:center;gap:10px;min-height:28px;display:flex}.zGbnIq_rowIdentity{flex-wrap:wrap;align-items:center;gap:2px 6px;min-width:0;display:inline-flex}.zGbnIq_rowName{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_rowTag{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-xs);color:var(--dsw-alias-label-secondary);flex:none;padding:1px 6px;font-size:11px;line-height:16px}.zGbnIq_credentialDot{box-sizing:border-box;corner-shape:round;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.zGbnIq_credentialDotConfigured{background:var(--dsw-alias-state-success-primary)}.zGbnIq_credentialDotMissing{background:var(--dsw-alias-state-error-primary)}.zGbnIq_credentialMissing{color:var(--dsw-alias-state-error-primary);flex:none;align-items:center;gap:6px;font-size:12px;line-height:18px;display:inline-flex}.zGbnIq_accountStatus{color:var(--dsw-alias-state-success-primary);flex:none;align-items:center;gap:6px;font-size:13px;line-height:20px;display:inline-flex}.zGbnIq_rowActions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.zGbnIq_primaryButton,.zGbnIq_secondaryButton,.zGbnIq_addButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;font:inherit;cursor:pointer;border:none;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.zGbnIq_primaryButton{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}@media (hover:hover){.zGbnIq_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}}.zGbnIq_secondaryButton,.zGbnIq_addButton{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary);background:0 0}@media (hover:hover){.zGbnIq_secondaryButton:hover:not(:disabled),.zGbnIq_addButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.zGbnIq_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}}.zGbnIq_dangerButton{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;color:var(--dsw-alias-state-error-primary);font:inherit;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}@media (hover:hover){.zGbnIq_dangerButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}}.zGbnIq_rowActions .zGbnIq_secondaryButton,.zGbnIq_rowActions .zGbnIq_dangerButton{border-radius:var(--dsw-radius-sm);height:28px;padding:0 10px;font-size:12px;line-height:18px}.zGbnIq_primaryButton:disabled,.zGbnIq_secondaryButton:disabled,.zGbnIq_dangerButton:disabled,.zGbnIq_addButton:disabled,.zGbnIq_textAction:disabled,.zGbnIq_addModelButton:disabled{opacity:.4;cursor:default}.zGbnIq_primaryButton:focus-visible,.zGbnIq_secondaryButton:focus-visible,.zGbnIq_dangerButton:focus-visible,.zGbnIq_addButton:focus-visible,.zGbnIq_textAction:focus-visible,.zGbnIq_addModelButton:focus-visible,.zGbnIq_iconButton:focus-visible,.zGbnIq_foldToggle:focus-visible,.zGbnIq_customizedSummary:focus-visible{box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}.zGbnIq_editor{--editor-inset:16px;--editor-end:14px;border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;display:flex}.zGbnIq_fieldPair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;display:grid}.zGbnIq_fieldPair select.zGbnIq_input{max-width:none}@media (width<=560px){.zGbnIq_fieldPair{grid-template-columns:minmax(0,1fr)}}.zGbnIq_editorHeader{align-items:baseline;gap:8px;display:flex}.zGbnIq_editorTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.zGbnIq_editorRoute{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_field{flex-direction:column;gap:6px;display:flex}.zGbnIq_fieldLabel{color:var(--dsw-alias-label-secondary);align-items:center;gap:10px;font-size:12px;font-weight:500;line-height:18px;display:inline-flex}.zGbnIq_helpButton{border:.5px solid var(--dsw-alias-border-l3);corner-shape:round;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:center;cursor:help;background:0 0;border-radius:50%;padding:0;font-size:11px;line-height:15px}.zGbnIq_helpButton:focus-visible{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-tertiary)}@media (hover:hover){.zGbnIq_helpButton:hover{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-tertiary)}}.zGbnIq_textAction{border-radius:var(--dsw-radius-xs);color:var(--dsw-alias-label-secondary);font:inherit;text-underline-offset:2px;cursor:pointer;background:0 0;border:none;padding:0 2px;font-size:12px;line-height:18px;text-decoration:underline}@media (hover:hover){.zGbnIq_textAction:hover:not(:disabled){color:var(--dsw-alias-label-primary)}}.zGbnIq_advancedHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.zGbnIq_editorFooter{flex-direction:column;gap:12px;display:flex}.zGbnIq_editorNotes{flex-direction:column;gap:4px;min-width:0;display:flex}.zGbnIq_editorNotes:empty{display:none}.zGbnIq_editorActions{justify-content:flex-end;gap:8px;display:flex}.zGbnIq_addBlock>.zGbnIq_editorFooter{margin-top:12px}.zGbnIq_editorFooterSticky{z-index:2;margin:0 calc(-1 * var(--editor-inset)) calc(-1 * var(--editor-end));padding:12px var(--editor-inset);border-top:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);flex-flow:wrap;align-items:center;gap:8px 12px;position:sticky;bottom:0}.zGbnIq_editorFooterSticky:after{content:\"\";background:inherit;height:100vh;position:absolute;top:100%;left:0;right:0}.zGbnIq_editorFooterSticky>.zGbnIq_editorNotes{flex:200px}.zGbnIq_editorFooterSticky>.zGbnIq_editorActions{margin-left:auto}.zGbnIq_editor :is(input,select,button){scroll-margin-bottom:84px}.zGbnIq_addBlock{flex-direction:column;gap:12px;display:flex}.zGbnIq_addActions{display:flex}.zGbnIq_addButton{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-xl);flex:1 1 0;gap:6px;min-width:180px;height:44px}.zGbnIq_addModes{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.zGbnIq_addPanel{flex-direction:column;gap:14px;display:flex}.zGbnIq_addPanel[hidden]{display:none}.zGbnIq_addCard,.zGbnIq_setupCard{border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-bg-module-platform);flex-direction:column;gap:14px;padding:14px 16px;list-style:none;display:flex}.zGbnIq_rowCardOpen,.zGbnIq_addCard,.zGbnIq_setupCard{--editor-inset:16px;--editor-end:14px;overflow:clip}.zGbnIq_rowCardOpen .zGbnIq_editor,.zGbnIq_addCard .zGbnIq_editor,.zGbnIq_setupCard .zGbnIq_editor{background:0 0;padding:0}.zGbnIq_fold{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:12px;padding-top:12px;display:flex}.zGbnIq_foldHead{flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:28px;display:flex}.zGbnIq_foldToggle,.zGbnIq_foldTitle{font:inherit;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:20px}.zGbnIq_foldToggle{border-radius:var(--dsw-radius-sm);cursor:pointer;background:0 0;border:none;align-items:center;gap:2px;margin-left:-4px;padding:2px 2px 2px 4px;display:inline-flex}@media (hover:hover){.zGbnIq_foldToggle:hover{background:var(--dsw-alias-interactive-bg-hover)}}.zGbnIq_foldMeta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_foldActions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.zGbnIq_foldBody{flex-direction:column;gap:12px;display:flex}.zGbnIq_foldBody[hidden]{display:none}.zGbnIq_customizedSummary{border-radius:var(--dsw-radius-sm);cursor:pointer;width:fit-content;color:var(--dsw-alias-label-secondary);align-items:center;gap:6px;margin-left:-4px;padding:2px 4px;font-size:12px;font-weight:500;line-height:18px;list-style:none;display:flex}.zGbnIq_customizedSummary::-webkit-details-marker{display:none}.zGbnIq_customizedSummary:before{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;transition:transform .12s;transform:rotate(-45deg)translate(-1px,-1px)}.zGbnIq_retryFold[open]>.zGbnIq_customizedSummary:before{transform:rotate(45deg)translate(-1px,-1px)}.zGbnIq_retryFold>.zGbnIq_customizedSummary{color:var(--dsw-alias-label-tertiary);font-weight:400}@media (hover:hover){.zGbnIq_customizedSummary:hover{color:var(--dsw-alias-label-primary)}}.zGbnIq_modelEmpty{border:1px dashed var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-lg);color:var(--dsw-alias-label-tertiary);margin:0;padding:12px;font-size:12px;line-height:18px}.zGbnIq_modelList{--model-row-gap:12px;gap:var(--model-row-gap);flex-direction:column;display:flex;container-type:inline-size}.zGbnIq_modelList:empty{display:none}.zGbnIq_modelEntry{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px 28px;column-gap:6px;padding:6px 6px 6px 12px;display:grid;position:relative;container:zGbnIq_model-row/inline-size}.zGbnIq_modelEntry[data-invalid]:not(:has(>.zGbnIq_modelRow[data-expanded])){border-color:var(--dsw-alias-state-error-primary)}.zGbnIq_modelEntry[data-invalid]>.zGbnIq_modelRow{align-items:start}.zGbnIq_modelEntry[data-invalid]>.zGbnIq_modelRow>.zGbnIq_iconButton{margin-top:2px}.zGbnIq_modelEntry[draggable=true]{cursor:grab}.zGbnIq_modelEntry[draggable=true] .zGbnIq_iconButton{cursor:pointer}.zGbnIq_modelGrip{color:var(--dsw-alias-label-tertiary);opacity:0;pointer-events:none;display:inline-flex;position:absolute;top:50%;left:7px;transform:translateY(-50%)}.zGbnIq_modelEntry[data-dragging]>.zGbnIq_modelGrip,.zGbnIq_modelDragPreview .zGbnIq_modelGrip{opacity:1}@media (hover:hover){.zGbnIq_modelEntry:hover>.zGbnIq_modelGrip{opacity:1}}.zGbnIq_modelRow{grid-column:1/-1;grid-template-columns:subgrid;align-items:center;gap:6px;display:grid}.zGbnIq_modelSummary{grid-column:1/3;align-items:center;gap:8px;min-width:0;min-height:32px;padding-left:10px;display:flex}.zGbnIq_modelEntry:not([draggable=true]) .zGbnIq_modelSummary{cursor:pointer}.zGbnIq_modelSummaryId,.zGbnIq_modelSummaryName{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}.zGbnIq_modelSummaryId{color:var(--dsw-alias-label-primary);font-size:14px;line-height:22px}.zGbnIq_modelSummaryId[data-unnamed]{color:var(--dsw-alias-label-tertiary)}.zGbnIq_modelSummaryName{color:var(--dsw-alias-label-secondary);font-size:13px;line-height:20px}@media (hover:hover){.zGbnIq_modelEntry:has(.zGbnIq_modelSummary:hover){background:var(--dsw-alias-interactive-bg-hover)}}.zGbnIq_modelNameLabel{display:none}@container zGbnIq_model-row (width<=440px){.zGbnIq_modelRow{grid-template-columns:minmax(0,1fr) 28px 28px}.zGbnIq_modelSummary{grid-column:1}.zGbnIq_modelSummaryName{display:none}.zGbnIq_modelRow .zGbnIq_modelName{grid-area:2/1/auto/-1;padding-top:6px}.zGbnIq_modelNameLabel{display:block}.zGbnIq_modelRow>.zGbnIq_modelAdvanced{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px}}.zGbnIq_modelEntry[data-dragging]{opacity:.5}.zGbnIq_modelEntry[data-drop-target]{z-index:1}.zGbnIq_modelDragPreview{background:var(--dsw-alias-bg-module-platform)}.zGbnIq_modelEntry:before,.zGbnIq_modelEntry:after{content:\"\";z-index:1;height:calc(var(--model-row-gap) / 2 + 1px);position:absolute;left:0;right:0}.zGbnIq_modelEntry:before{top:calc(-1 * (var(--model-row-gap) / 2 + 1px))}.zGbnIq_modelEntry:after{bottom:calc(-1 * (var(--model-row-gap) / 2 + 1px))}.zGbnIq_modelEntry[data-drop-target=before]:before,.zGbnIq_modelEntry[data-drop-target=after]:after{background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;height:12px}.zGbnIq_modelEntry[data-drop-target=before]:before{top:calc(-1 * (var(--model-row-gap) / 2 + 6px))}.zGbnIq_modelEntry[data-drop-target=after]:after{bottom:calc(-1 * (var(--model-row-gap) / 2 + 6px))}.zGbnIq_iconButton{box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}@media (hover:hover){.zGbnIq_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.zGbnIq_iconButton:disabled{cursor:default;opacity:.4}@media (hover:hover){.zGbnIq_iconButtonDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}}.zGbnIq_modelAdvanced{grid-column:1/3;grid-template-columns:subgrid;row-gap:16px;padding:16px 0 6px;display:grid}.zGbnIq_retryBody{flex-direction:column;gap:12px;margin-top:4px;display:flex}.zGbnIq_retryCodeChoices{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 16px;display:grid}.zGbnIq_retryCodeAdd{gap:8px;margin-top:8px;display:flex}.zGbnIq_retryCount{width:max(112px,33.3333% - 5.33333px);max-width:100%}.zGbnIq_retryBackoff{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));align-items:end;gap:12px 8px;padding-top:8px;display:grid}.zGbnIq_modelField{flex-direction:column;gap:6px;min-width:0;display:flex}.zGbnIq_modelInputTypes{border:none;grid-column:1/-1;min-width:0;margin:0;padding:0}.zGbnIq_modelInputTypes legend{margin-bottom:6px;padding:0}.zGbnIq_modelInputChoices{flex-wrap:wrap;align-items:center;gap:16px;min-height:32px;display:flex}.zGbnIq_modelFieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.zGbnIq_modelReasoning{flex-direction:column;grid-column:1/-1;gap:6px;min-width:0;display:flex}.zGbnIq_modelReasoningLabel{align-items:center;gap:6px;display:inline-flex}.zGbnIq_modelReasoningHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.zGbnIq_modelReasoningRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:6px;display:grid}.zGbnIq_modelReasoningRow .zGbnIq_selectInput{max-width:none}.zGbnIq_modelReasoningValueInput{font-family:var(--ds-font-family-code);font-size:13px}.zGbnIq_addModelButton{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);height:32px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;align-self:flex-start;align-items:center;gap:6px;margin-top:4px;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}@media (hover:hover){.zGbnIq_addModelButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.zGbnIq_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);width:100%;height:32px;font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);padding:0 10px;font-size:14px;line-height:22px}select.zGbnIq_input{cursor:pointer;max-width:240px}.zGbnIq_input:focus{border-color:var(--dsw-alias-state-business-primary);outline:none}.zGbnIq_input[aria-invalid=true]{border-color:var(--dsw-alias-state-error-primary)}.zGbnIq_input::placeholder{color:var(--dsw-alias-label-tertiary)}.zGbnIq_input:disabled{opacity:.6;cursor:default}.zGbnIq_keyInput{position:relative}.zGbnIq_keyDisplay{align-items:center;gap:4px;min-height:32px;display:flex}.zGbnIq_keyDisplay .zGbnIq_iconButton{flex:none}.zGbnIq_keyDisplayValue{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-primary);font-size:14px;line-height:22px;overflow:hidden}.zGbnIq_keyInputFilled{padding-right:40px}.zGbnIq_keyToggle{border-radius:var(--dsw-radius-md);width:32px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;inset:1px 1px 1px auto}@media (hover:hover){.zGbnIq_keyToggle:hover:not(:disabled){color:var(--dsw-alias-label-primary)}}.zGbnIq_keyToggle:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.zGbnIq_keyToggle:disabled{opacity:.6;cursor:default}.zGbnIq_selectInput{appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 12px center;background-repeat:no-repeat;background-size:12px 12px;padding-right:32px}.zGbnIq_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.zGbnIq_deleteDialog{width:min(480px,100%)}.zGbnIq_deleteConfirm:not(:disabled){--dsh-button-outline-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}@media (hover:hover){.zGbnIq_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}}.zGbnIq_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.zGbnIq_customizedSummary:before,.zGbnIq_switchThumb{transition:none}}.zGbnIq_fetchDialog{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);max-width:520px}.zGbnIq_candidateToolbar{align-items:center;gap:8px;margin-bottom:6px;display:flex}.zGbnIq_candidateSearch{flex:240px;min-width:0}.zGbnIq_candidateList{flex-direction:column;gap:2px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.zGbnIq_candidate{border-radius:var(--dsw-radius-md)}.zGbnIq_candidateLabel{cursor:pointer;align-items:center;gap:8px;padding:6px 8px;display:flex}.zGbnIq_candidateId{min-width:0;font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;flex:auto;font-size:13px;overflow:hidden}.zGbnIq_candidateEmpty{color:var(--dsw-alias-label-secondary);text-align:center;margin:24px 0;font-size:13px;line-height:20px}.zGbnIq_sectionHeader{flex-direction:column;gap:4px;display:flex}@media (pointer:coarse){.zGbnIq_input{font-size:16px}}"
7155
7407
  },
7156
7408
  "src/client/OnboardingModal.module.css": {
7157
7409
  text: (context) =>