@linxin666/dsh-liangshen 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -6,6 +6,7 @@ window.__ModuleLoader__.load({
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
+ let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
9
10
  //#region \0dsh-css:packages/dsh-liangshen/src/client/LiangShenLever.module.css.mjs
10
11
  const css$1 = ".hYkIZq_lever{align-items:center;font-size:12px;line-height:1;display:inline-flex;position:relative}.hYkIZq_control{color:var(--dsw-alias-label-secondary,inherit);font:inherit;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:none;border-radius:999px;align-items:center;gap:6px;margin:0;padding:2px 8px 2px 4px;transition:background-color .16s,color .16s;display:inline-flex}.hYkIZq_control:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover,#0000000f)}.hYkIZq_control:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,currentColor);outline-offset:2px}.hYkIZq_control:disabled{cursor:default;opacity:.55}.hYkIZq_track{background:linear-gradient(#2b2f36,#14161a);border-radius:8px;justify-content:center;align-items:flex-end;width:24px;height:28px;display:inline-flex;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff24,inset 0 6px 10px #0000008c}.hYkIZq_track:after{content:\"\";background:#ffffff38;border-radius:2px;height:3px;position:absolute;bottom:2px;left:3px;right:3px}.hYkIZq_arm{transform-origin:50% 24px;width:16px;height:26px;margin-left:-8px;transition:transform .34s cubic-bezier(.2,1.7,.32,1);position:absolute;bottom:2px;left:50%;transform:rotate(-24deg)}.hYkIZq_lever[data-state=on] .hYkIZq_arm{transform:rotate(24deg)}.hYkIZq_rod{fill:#c9ced6;transition:fill .2s}.hYkIZq_knob{fill:#e04a33;stroke:#00000059;stroke-width:.6px;transition:fill .2s}.hYkIZq_lever[data-state=on] .hYkIZq_rod{fill:#ffd76a}.hYkIZq_lever[data-state=on] .hYkIZq_knob{fill:#f7c637}.hYkIZq_lever[data-state=on] .hYkIZq_track{box-shadow:inset 0 0 0 1px var(--dsw-alias-border-l3,#0000001f), 0 0 10px #f7c6378c}.hYkIZq_lever[data-busy=true] .hYkIZq_arm{animation:.42s ease-in-out infinite hYkIZq_lever-jitter}.hYkIZq_readout{white-space:nowrap;letter-spacing:.02em;min-width:4.4em}.hYkIZq_lever[data-state=on] .hYkIZq_readout{color:var(--dsw-alias-label-primary,inherit);font-weight:600}.hYkIZq_error{background:var(--dsw-alias-bg-layer-3,#0000000f);max-width:22ch;color:var(--dsw-alias-state-error-primary,#c0392b);text-overflow:ellipsis;white-space:nowrap;border-radius:6px;margin-left:4px;padding:2px 6px;overflow:hidden}.hYkIZq_burst{z-index:60;pointer-events:none;place-items:center;display:grid;position:fixed;inset:0;overflow:hidden}.hYkIZq_flash{background:radial-gradient(circle at 50% 62%,#fff6c8eb,#ffd04a73 38%,#ffa00000 72%);animation:.72s ease-out both hYkIZq_burst-flash;position:absolute;inset:0}.hYkIZq_ring{border:6px solid #ffd65ad9;border-radius:50%;width:220px;height:220px;animation:1.1s cubic-bezier(.16,.9,.3,1) both hYkIZq_burst-ring;position:absolute}.hYkIZq_ring:nth-of-type(2){animation-delay:.12s}.hYkIZq_ring:nth-of-type(3){animation-delay:.24s}.hYkIZq_banner{color:#ffe9a8;text-align:center;background:linear-gradient(160deg,#181004f0,#402604eb);border-radius:22px;flex-direction:column;align-items:center;gap:6px;padding:22px 40px;animation:.6s cubic-bezier(.16,1.5,.3,1) both hYkIZq_banner-slam,.5s ease-in-out .6s 2 hYkIZq_banner-shake;display:flex;position:relative;box-shadow:0 0 0 2px #ffd65abf,0 24px 70px #00000073}.hYkIZq_bannerName{letter-spacing:.16em;background:linear-gradient(#fff6d0,#ffc93c 55%,#b8730a);color:#0000;text-shadow:0 0 24px #ffc93ca6;-webkit-background-clip:text;background-clip:text;font-size:44px;font-weight:800}.hYkIZq_line{letter-spacing:.08em;font-size:15px}.hYkIZq_code{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);letter-spacing:.06em;opacity:.82;font-size:11px;animation:.5s steps(2,end) 6 hYkIZq_code-blink}.hYkIZq_sparks{place-items:center;display:grid;position:absolute;inset:0}.hYkIZq_spark{transform-origin:50%;background:linear-gradient(#ffeca0f2,#ffaa1400);border-radius:3px;grid-area:1/1;width:3px;height:30px;animation:.95s ease-out both hYkIZq_spark-fly}@keyframes hYkIZq_lever-jitter{0%,to{transform:rotate(-22deg)}50%{transform:rotate(-8deg)}}@keyframes hYkIZq_burst-flash{0%{opacity:0;transform:scale(.6)}18%{opacity:1}to{opacity:0;transform:scale(1.5)}}@keyframes hYkIZq_burst-ring{0%{opacity:.9;transform:scale(.2)}to{opacity:0;transform:scale(3.4)}}@keyframes hYkIZq_banner-slam{0%{opacity:0;transform:scale(3.6)rotate(-9deg)}55%{opacity:1;transform:scale(.94)rotate(1.5deg)}75%{transform:scale(1.06)rotate(-1deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes hYkIZq_banner-shake{0%,to{transform:translate(0)}25%{transform:translate(-9px)rotate(-.6deg)}75%{transform:translate(9px)rotate(.6deg)}}@keyframes hYkIZq_spark-fly{0%{opacity:0;transform:translateY(-40px)scaleY(.3)}18%{opacity:1}to{opacity:0;transform:translateY(-300px)scaleY(1.15)}}@keyframes hYkIZq_code-blink{0%,to{opacity:.35}50%{opacity:1}}@media (prefers-reduced-motion:reduce){.hYkIZq_arm,.hYkIZq_control,.hYkIZq_rod,.hYkIZq_knob{transition:none}.hYkIZq_lever[data-busy=true] .hYkIZq_arm,.hYkIZq_flash,.hYkIZq_ring,.hYkIZq_banner,.hYkIZq_code,.hYkIZq_spark{animation:none}.hYkIZq_burst{animation:.3s ease-out both hYkIZq_burst-flash}.hYkIZq_spark{display:none}}";
11
12
  const tagId$1 = "@linxin666/dsh-liangshen/packages/dsh-liangshen/src/client/LiangShenLever.module.css";
@@ -271,19 +272,6 @@ window.__ModuleLoader__.load({
271
272
  for (const row of Object.values(byId)) if (row !== void 0 && (row.retainedBy?.mainView ?? 0) > 0) return row.id;
272
273
  }
273
274
  //#endregion
274
- //#region \0dsh-store-engine
275
- const platform = ["@deepseek-ai/dsh-client", "-store"].join("");
276
- const legacy = ["@deepseek-ai/dsh-client-runtime", "/client"].join("");
277
- let engine;
278
- try {
279
- engine = require(platform);
280
- } catch {
281
- engine = require(legacy);
282
- }
283
- const createSnapshotStore = engine.createSnapshotStore;
284
- engine.defineStore;
285
- engine.shallowEqual;
286
- //#endregion
287
275
  //#region src/core/lever.ts
288
276
  /**
289
277
  * LiangShen lever logic — framework-free, no DOM, compiled by both programs.
@@ -369,7 +357,7 @@ window.__ModuleLoader__.load({
369
357
  this.selectTimeoutMs = options.selectTimeoutMs ?? 1e4;
370
358
  this.sessions = readService(() => ctx.sessions);
371
359
  this.remote = readService(() => ctx.remote.agentPresets);
372
- this.store = createSnapshotStore({
360
+ this.store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)({
373
361
  state: "off",
374
362
  restoreLabel: "",
375
363
  busy: false,
@@ -850,51 +838,6 @@ window.__ModuleLoader__.load({
850
838
  }) : null]
851
839
  });
852
840
  }
853
- /** A staged value field. `numeric` only hints the keypad: which drafts a field accepts is decided by its spec. */
854
- function ValueField(props) {
855
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
856
- className: settings_card_module_css_default.field,
857
- children: [
858
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
859
- className: settings_card_module_css_default.head,
860
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
861
- className: settings_card_module_css_default.label,
862
- htmlFor: props.id,
863
- children: props.label
864
- }), props.overridden ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
865
- className: settings_card_module_css_default.badges,
866
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
867
- className: settings_card_module_css_default.badge,
868
- children: props.overriddenLabel
869
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
870
- type: "button",
871
- className: settings_card_module_css_default.reset,
872
- disabled: props.disabled,
873
- onClick: props.onReset,
874
- children: props.resetLabel
875
- })]
876
- }) : null]
877
- }),
878
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
879
- id: props.id,
880
- className: props.invalid ? settings_card_module_css_default.inputInvalid : settings_card_module_css_default.input,
881
- type: "text",
882
- ...props.numeric === true ? { inputMode: "numeric" } : {},
883
- ...props.invalid ? { "aria-invalid": true } : {},
884
- value: props.text,
885
- placeholder: props.placeholder ?? "",
886
- disabled: props.disabled,
887
- onChange: (event) => {
888
- props.onEdit(event.target.value);
889
- }
890
- }),
891
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
892
- className: props.invalid ? settings_card_module_css_default.invalid : settings_card_module_css_default.hint,
893
- children: props.invalid ? props.invalidLabel : props.hint
894
- })
895
- ]
896
- });
897
- }
898
841
  const NON_SKIN_BODY_MARKERS = /* @__PURE__ */ new Set(["dshSkinCenter", "dshSidebarCollapsed"]);
899
842
  function isSkinActive() {
900
843
  return Object.keys(document.body.dataset).some((key) => key.startsWith("dsh") && !NON_SKIN_BODY_MARKERS.has(key));
@@ -1162,26 +1105,6 @@ window.__ModuleLoader__.load({
1162
1105
  }
1163
1106
  //#endregion
1164
1107
  //#region src/client/settings-form.ts
1165
- /** A whole- or decimal-number field. An empty draft clears the field; any other draft that is not a finite number within the constraints blocks the save. */
1166
- function numberField(field, constraints = {}) {
1167
- const { integer = false, min } = constraints;
1168
- return {
1169
- field,
1170
- format: (value) => typeof value === "number" ? String(value) : "",
1171
- parse: (text) => {
1172
- const trimmed = text.trim();
1173
- if (trimmed === "") return { kind: "clear" };
1174
- const parsed = Number(trimmed);
1175
- if (!Number.isFinite(parsed)) return void 0;
1176
- if (integer && !Number.isInteger(parsed)) return void 0;
1177
- if (min !== void 0 && parsed < min) return void 0;
1178
- return {
1179
- kind: "set",
1180
- value: parsed
1181
- };
1182
- }
1183
- };
1184
- }
1185
1108
  /** A boolean field, edited through true/false draft text. */
1186
1109
  function booleanField(field) {
1187
1110
  return {
@@ -1256,7 +1179,7 @@ window.__ModuleLoader__.load({
1256
1179
  }
1257
1180
  /** Publish a projection of this form, rebuilt whenever the form or a draft changes. */
1258
1181
  bind(project) {
1259
- const store = createSnapshotStore(project());
1182
+ const store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(project());
1260
1183
  this.listeners.add(() => {
1261
1184
  store.set(project());
1262
1185
  });
@@ -1492,17 +1415,7 @@ window.__ModuleLoader__.load({
1492
1415
  //#endregion
1493
1416
  //#region src/client/LiangShenSettingsCard.tsx
1494
1417
  /** Wire presentations the tool catalog accepts (mirrors the Host schema). */
1495
- const PRESENTATION_CHOICES = [
1496
- "ptc",
1497
- "native",
1498
- "both"
1499
- ];
1500
- /** Sensitivity presets for the circuit breaker (mirrors the Host schema). */
1501
- const SENSITIVITY_CHOICES = [
1502
- "conservative",
1503
- "balanced",
1504
- "aggressive"
1505
- ];
1418
+ const PRESENTATION_CHOICES = ["ptc", "native"];
1506
1419
  /** Bridges the `liangshen` settings form onto the card's staged form. */
1507
1420
  var LiangShenSettingsCardController = class {
1508
1421
  form;
@@ -1513,21 +1426,7 @@ window.__ModuleLoader__.load({
1513
1426
  booleanField("enabled"),
1514
1427
  booleanField("announceToAgent"),
1515
1428
  choiceField("presentation", PRESENTATION_CHOICES),
1516
- booleanField("dispatcher"),
1517
- booleanField("guardEnabled"),
1518
- choiceField("guardSensitivity", SENSITIVITY_CHOICES),
1519
- numberField("guardStallReasoningChars", {
1520
- integer: true,
1521
- min: 200
1522
- }),
1523
- numberField("guardGlobalStallCap", {
1524
- integer: true,
1525
- min: 2
1526
- }),
1527
- numberField("guardEchoFailures", {
1528
- integer: true,
1529
- min: 2
1530
- })
1429
+ booleanField("dispatcher")
1531
1430
  ]);
1532
1431
  this.store = this.form.bind(() => this.projection());
1533
1432
  }
@@ -1537,12 +1436,7 @@ window.__ModuleLoader__.load({
1537
1436
  enabled: this.form.field("enabled"),
1538
1437
  announceToAgent: this.form.field("announceToAgent"),
1539
1438
  presentation: this.form.field("presentation"),
1540
- dispatcher: this.form.field("dispatcher"),
1541
- guardEnabled: this.form.field("guardEnabled"),
1542
- guardSensitivity: this.form.field("guardSensitivity"),
1543
- guardStallReasoningChars: this.form.field("guardStallReasoningChars"),
1544
- guardGlobalStallCap: this.form.field("guardGlobalStallCap"),
1545
- guardEchoFailures: this.form.field("guardEchoFailures")
1439
+ dispatcher: this.form.field("dispatcher")
1546
1440
  };
1547
1441
  }
1548
1442
  /**
@@ -1648,83 +1542,6 @@ window.__ModuleLoader__.load({
1648
1542
  onReset: () => {
1649
1543
  props.resetField("dispatcher");
1650
1544
  }
1651
- }),
1652
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
1653
- id: "settings-liangshen-guard-enabled",
1654
- label: t("settings.guardEnabled"),
1655
- hint: t("settings.guardEnabledHint"),
1656
- onLabel: t("settings.on"),
1657
- offLabel: t("settings.off"),
1658
- ...fieldProps,
1659
- ...state.guardEnabled,
1660
- onEdit: (text) => {
1661
- props.edit("guardEnabled", text);
1662
- },
1663
- onReset: () => {
1664
- props.resetField("guardEnabled");
1665
- }
1666
- }),
1667
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChoiceField, {
1668
- id: "settings-liangshen-guard-sensitivity",
1669
- label: t("settings.guardSensitivity"),
1670
- hint: t("settings.guardSensitivityHint"),
1671
- choices: SENSITIVITY_CHOICES.map((choice) => ({
1672
- value: choice,
1673
- label: t(`sensitivity.${choice}`)
1674
- })),
1675
- ...fieldProps,
1676
- ...state.guardSensitivity,
1677
- onEdit: (text) => {
1678
- props.edit("guardSensitivity", text);
1679
- },
1680
- onReset: () => {
1681
- props.resetField("guardSensitivity");
1682
- }
1683
- }),
1684
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueField, {
1685
- id: "settings-liangshen-guard-stall-chars",
1686
- numeric: true,
1687
- label: t("settings.guardStallChars"),
1688
- hint: t("settings.guardStallCharsHint"),
1689
- placeholder: t("settings.guardAdaptive"),
1690
- ...fieldProps,
1691
- ...state.guardStallReasoningChars,
1692
- onEdit: (text) => {
1693
- props.edit("guardStallReasoningChars", text);
1694
- },
1695
- onReset: () => {
1696
- props.resetField("guardStallReasoningChars");
1697
- }
1698
- }),
1699
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueField, {
1700
- id: "settings-liangshen-guard-global-cap",
1701
- numeric: true,
1702
- label: t("settings.guardGlobalCap"),
1703
- hint: t("settings.guardGlobalCapHint"),
1704
- placeholder: t("settings.guardAdaptive"),
1705
- ...fieldProps,
1706
- ...state.guardGlobalStallCap,
1707
- onEdit: (text) => {
1708
- props.edit("guardGlobalStallCap", text);
1709
- },
1710
- onReset: () => {
1711
- props.resetField("guardGlobalStallCap");
1712
- }
1713
- }),
1714
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueField, {
1715
- id: "settings-liangshen-guard-echo",
1716
- numeric: true,
1717
- label: t("settings.guardEchoFailures"),
1718
- hint: t("settings.guardEchoFailuresHint"),
1719
- placeholder: t("settings.guardAdaptive"),
1720
- ...fieldProps,
1721
- ...state.guardEchoFailures,
1722
- onEdit: (text) => {
1723
- props.edit("guardEchoFailures", text);
1724
- },
1725
- onReset: () => {
1726
- props.resetField("guardEchoFailures");
1727
- }
1728
1545
  })
1729
1546
  ]
1730
1547
  });
@@ -1760,7 +1577,7 @@ window.__ModuleLoader__.load({
1760
1577
  "settings.announceToAgent": "向 agent 公告本插件",
1761
1578
  "settings.announceToAgentHint": "开启后向每一轮 agent 系统提示注入本插件公告;默认关闭以保持提示词干净。",
1762
1579
  "settings.presentation": "工具面呈现方式",
1763
- "settings.presentationHint": "写入本插件声明的预设的 tool-catalog 行:both(出厂默认)让原生清单与 run_code 同驻(原生直调优先);native 保持原生工具清单;ptc 把 wire 收拢为 run_code。改动立即生效,但已开始的会话保持其已声明的组合。",
1580
+ "settings.presentationHint": "写入本插件声明的预设的 tool-catalog 行:ptc(出厂默认)把 wire 收拢为 run_code,其余工具经生成的 SDK 调用;native 保持原生工具清单。改动立即生效,但已开始的会话保持其已声明的组合。",
1764
1581
  "settings.dispatcher": "调度者身份",
1765
1582
  "settings.dispatcherHint": "开启后本模式按调度 Agent 工作:先分诊复杂度(L0/L1 直接执行,L2 走完整流程),L2 任务先澄清访谈再规划,由主代理派发子代理并逐层审查与验收。与工具面呈现方式无关,只决定身份与流程纪律。出厂默认开启;关闭后回到仅含工作纪律的极简 persona。",
1766
1583
  "settings.on": "开",
@@ -1779,22 +1596,7 @@ window.__ModuleLoader__.load({
1779
1596
  "settings.saveFailed": "部署未接受这些值,已保留供你修改。",
1780
1597
  "settings.invalidValue": "该取值不被接受",
1781
1598
  "presentation.ptc": "ptc(仅 run_code)",
1782
- "presentation.native": "native(原生工具清单)",
1783
- "presentation.both": "both(两者同驻)",
1784
- "settings.guardEnabled": "启用退化熔断器",
1785
- "settings.guardEnabledHint": "运行时检测思考退化(连续零产出长思考 / 同参重复失败),触发时注入熔断提示;仅停摆信号额外临时下调推理档位(max→high,不下探到甜区以下)。关闭后不干预任何请求。",
1786
- "settings.guardStallChars": "单步暴走字符阈值",
1787
- "settings.guardStallCharsHint": "留空即按推理档位自适应:max 档 8000 / high 档 12000 / low 档 20000 字符(按 V4.1 官方 384K 最大输出校准,约 2-4K 思考 token),再按灵敏度预设缩放。填写本字段则以该固定值覆盖所有档位。",
1788
- "settings.guardGlobalCap": "慢烧连续步数",
1789
- "settings.guardGlobalCapHint": "留空即按灵敏度预设缩放(均衡档为 4);provider 不持久化推理文本的会话也以此为兜底步骤计数。填写本字段则以该固定值覆盖。步数越小越敏感,真实长调查建议调大。",
1790
- "settings.guardSensitivity": "熔断灵敏度",
1791
- "settings.guardSensitivityHint": "整体缩放熔断阈值:保守(更少打断,阈值×1.5)、均衡(出厂校准值)、激进(更早触发,阈值×0.5)。仅在对应细调字段留空时生效——阈值随推理档位自适应:max 档 8000 / high 档 12000 / low 档 20000 字符。",
1792
- "sensitivity.conservative": "保守(少打断)",
1793
- "sensitivity.balanced": "均衡(默认)",
1794
- "sensitivity.aggressive": "激进(早触发)",
1795
- "settings.guardEchoFailures": "同参连续失败次数",
1796
- "settings.guardEchoFailuresHint": "留空即按灵敏度预设缩放(均衡档为 3);填写本字段则以该固定值覆盖。空转信号只注入熔断消息,不下调推理档位。",
1797
- "settings.guardAdaptive": "自适应"
1599
+ "presentation.native": "native(原生工具清单)"
1798
1600
  };
1799
1601
  /** English counterpart; the key set mirrors {@link zh} exactly. */
1800
1602
  const en = {
@@ -1820,7 +1622,7 @@ window.__ModuleLoader__.load({
1820
1622
  "settings.announceToAgent": "Announce this plugin to agents",
1821
1623
  "settings.announceToAgentHint": "Adds this plugin announcement to every agent system prompt; off by default so prompts stay clean.",
1822
1624
  "settings.presentation": "Wire presentation",
1823
- "settings.presentationHint": "Written into the tool-catalog row of the preset this plugin declares: both (the shipped default) keeps the roster and run_code co-resident (direct native calls first); native keeps the native roster; ptc collapses the wire to run_code. A change re-declares the preset immediately; sessions that already started keep the composition they declared.",
1625
+ "settings.presentationHint": "Written into the tool-catalog row of the preset this plugin declares: ptc (the shipped default) collapses the wire to run_code with every other tool reached through the generated SDK; native keeps the native roster. A change re-declares the preset immediately; sessions that already started keep the composition they declared.",
1824
1626
  "settings.dispatcher": "Dispatcher identity",
1825
1627
  "settings.dispatcherHint": "When on, the mode works as a dispatcher agent: it triages complexity first (L0/L1 work is done directly, an L2 task runs the full flow), clarifies an L2 task through an interview before planning, and the lead agent dispatches subagents and reviews and accepts them layer by layer. It is unrelated to the wire presentation and decides identity and process discipline only. On by default; switching it off returns the prompt to the bare persona with its working discipline.",
1826
1628
  "settings.on": "On",
@@ -1839,22 +1641,7 @@ window.__ModuleLoader__.load({
1839
1641
  "settings.saveFailed": "The deployment did not accept these values; they were left for you to correct.",
1840
1642
  "settings.invalidValue": "The value is not accepted",
1841
1643
  "presentation.ptc": "ptc (run_code only)",
1842
- "presentation.native": "native (native tool roster)",
1843
- "presentation.both": "both (both co-resident)",
1844
- "settings.guardEnabled": "Degeneration circuit breaker",
1845
- "settings.guardEnabledHint": "Detects reasoning degeneration at runtime (consecutive zero-output long reasoning / repeated identical-argument failures) and injects a breaker message; only a stall also steps the reasoning effort down (max to high, never below the sweet spot). Disabled means requests are never touched.",
1846
- "settings.guardStallChars": "Runaway reasoning character floor",
1847
- "settings.guardStallCharsHint": "Leave empty to adapt to the reasoning effort: 8000 at max / 12000 at high / 20000 at low characters (calibrated against V4.1's official 384K max output, roughly 2-4K thinking tokens), then scaled by the sensitivity preset. Setting a value pins it for every effort level.",
1848
- "settings.guardGlobalCap": "Slow-burn step count",
1849
- "settings.guardGlobalCapHint": "Leave empty to scale with the sensitivity preset (4 at balanced); it is also the fallback step count for a session whose provider persists no reasoning text. Setting a value pins it. Lower is more sensitive — raise it for genuinely long investigations.",
1850
- "settings.guardSensitivity": "Breaker sensitivity",
1851
- "settings.guardSensitivityHint": "Scales every breaker threshold: conservative (fewer interruptions, x1.5), balanced (the calibrated defaults), aggressive (fires earlier, x0.5). It applies only where the matching fine-tuning field is left empty — thresholds adapt to the reasoning effort: 8000 at max / 12000 at high / 20000 at low.",
1852
- "sensitivity.conservative": "Conservative (fewer interruptions)",
1853
- "sensitivity.balanced": "Balanced (default)",
1854
- "sensitivity.aggressive": "Aggressive (fires earlier)",
1855
- "settings.guardEchoFailures": "Identical-argument failures",
1856
- "settings.guardEchoFailuresHint": "Leave empty to scale with the sensitivity preset (3 at balanced); setting a value pins it. An echo only injects the breaker message — it never steps the reasoning effort down.",
1857
- "settings.guardAdaptive": "Adaptive"
1644
+ "presentation.native": "native (native tool roster)"
1858
1645
  };
1859
1646
  //#endregion
1860
1647
  //#region src/client/plugin-card-seat.ts
@@ -1993,8 +1780,7 @@ window.__ModuleLoader__.load({
1993
1780
  base: void 0,
1994
1781
  user: void 0,
1995
1782
  revision: void 0,
1996
- writable: false,
1997
- mode: "host"
1783
+ writable: false
1998
1784
  };
1999
1785
  }
2000
1786
  /**