dsh-model-switch 0.4.74 → 0.4.75

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v0.4.75
2
+
3
+ own-gate 开关常驻渲染。
4
+
5
+ - **UI 常驻**:破甲接管开关不再隐藏在 reviewStatus 条件后面——展开审查豁免卡即见,无需扫描。
6
+ - **lab 验证**:0.2.2-rc.5 同版本 lab 上开关默认 ON、诊断行完整、工具列表正常。
7
+
1
8
  ## v0.4.74
2
9
 
3
10
  own-gate 三项修复 + UI 自动加载。
package/lib/client.js CHANGED
@@ -3366,7 +3366,7 @@ window.__ModuleLoader__.load({
3366
3366
  className: ModelSwitchSettings_module_css_default.hint,
3367
3367
  children: props.t("reviewAllowlistSkipped").replace("{count}", String(reviewStatus.skippedReadOnly))
3368
3368
  }),
3369
- reviewStatus === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3369
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3370
3370
  className: ModelSwitchSettings_module_css_default.rowCard,
3371
3371
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3372
3372
  className: ModelSwitchSettings_module_css_default.rowCopy,
@@ -3381,12 +3381,12 @@ window.__ModuleLoader__.load({
3381
3381
  }),
3382
3382
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
3383
3383
  className: ModelSwitchSettings_module_css_default.hint,
3384
- children: reviewStatus.purgeInstalled === true ? props.t("reviewOwnGatePatched").replace("{neutered}", reviewStatus.officialGateNeutered === void 0 ? props.t("reviewOwnGateUnknown") : reviewStatus.officialGateNeutered ? props.t("reviewOwnGateNeuteredYes") : props.t("reviewOwnGateNeuteredNo")) : props.t("reviewOwnGateUnavailable")
3384
+ children: reviewStatus === void 0 ? props.t("reviewOwnGateUnknown") : reviewStatus.purgeInstalled === true ? props.t("reviewOwnGatePatched").replace("{neutered}", reviewStatus.officialGateNeutered === void 0 ? props.t("reviewOwnGateUnknown") : reviewStatus.officialGateNeutered ? props.t("reviewOwnGateNeuteredYes") : props.t("reviewOwnGateNeuteredNo")) : props.t("reviewOwnGateUnavailable")
3385
3385
  })
3386
3386
  ]
3387
3387
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InstantSwitch, {
3388
3388
  checked: ownGateSettingOn,
3389
- disabled: busy !== void 0 || !allowlistWritable || reviewStatus.purgeInstalled !== true,
3389
+ disabled: busy !== void 0 || !allowlistWritable || reviewStatus?.purgeInstalled !== true,
3390
3390
  label: props.t("reviewOwnGate"),
3391
3391
  onChange: (next) => {
3392
3392
  run("allowlist", () => props.saveReviewOwnGate(next));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-switch",
3
- "version": "0.4.74",
3
+ "version": "0.4.75",
4
4
  "description": "Explicit model routing plus composer/Plan picker for DeepSeek Harness",
5
5
  "repository": {
6
6
  "type": "git",