dsh-model-switch 0.4.73 → 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.
@@ -1,2 +1,2 @@
1
- import { a as bindAutoReviewSessionCorrelation, c as installToolCallSafetyNet, d as ownGateEngaged, f as resolveSessionAutoReviewRoute, i as autoReviewStatus, l as isReviewerInfrastructureFailure, m as reviewScope, n as autoReviewGate, o as defensivePermissionPresets, p as reviewLlm, r as autoReviewRouteOf, s as inject, t as apply, u as name } from "./auto-review-0mh6NLlr.js";
1
+ import { a as bindAutoReviewSessionCorrelation, c as installToolCallSafetyNet, d as ownGateEngaged, f as resolveSessionAutoReviewRoute, i as autoReviewStatus, l as isReviewerInfrastructureFailure, m as reviewScope, n as autoReviewGate, o as defensivePermissionPresets, p as reviewLlm, r as autoReviewRouteOf, s as inject, t as apply, u as name } from "./auto-review-Cp5Q5_Rr.js";
2
2
  export { apply, autoReviewGate, autoReviewRouteOf, autoReviewStatus, bindAutoReviewSessionCorrelation, defensivePermissionPresets, inject, installToolCallSafetyNet, isReviewerInfrastructureFailure, name, ownGateEngaged, resolveSessionAutoReviewRoute, reviewLlm, reviewScope };
package/lib/client.js CHANGED
@@ -2302,6 +2302,17 @@ window.__ModuleLoader__.load({
2302
2302
  setCatalogState(accepted ? "ready" : "failed");
2303
2303
  });
2304
2304
  };
2305
+ (0, react.useEffect)(() => {
2306
+ const scan = props.scanTools;
2307
+ if (scan === void 0) return;
2308
+ let cancelled = false;
2309
+ scan().then((scanned) => {
2310
+ if (!cancelled) setReviewStatus(scanned.status);
2311
+ }, () => void 0).catch(() => void 0);
2312
+ return () => {
2313
+ cancelled = true;
2314
+ };
2315
+ }, [props.scanTools]);
2305
2316
  const allowlistQueryText = allowlistQuery.trim().toLowerCase();
2306
2317
  const allowlistIncluded = allowlistTools.map((entry) => ({
2307
2318
  entry,
@@ -3355,7 +3366,7 @@ window.__ModuleLoader__.load({
3355
3366
  className: ModelSwitchSettings_module_css_default.hint,
3356
3367
  children: props.t("reviewAllowlistSkipped").replace("{count}", String(reviewStatus.skippedReadOnly))
3357
3368
  }),
3358
- reviewStatus === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3369
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3359
3370
  className: ModelSwitchSettings_module_css_default.rowCard,
3360
3371
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3361
3372
  className: ModelSwitchSettings_module_css_default.rowCopy,
@@ -3370,12 +3381,12 @@ window.__ModuleLoader__.load({
3370
3381
  }),
3371
3382
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
3372
3383
  className: ModelSwitchSettings_module_css_default.hint,
3373
- 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")
3374
3385
  })
3375
3386
  ]
3376
3387
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InstantSwitch, {
3377
3388
  checked: ownGateSettingOn,
3378
- disabled: busy !== void 0 || !allowlistWritable || reviewStatus.purgeInstalled !== true,
3389
+ disabled: busy !== void 0 || !allowlistWritable || reviewStatus?.purgeInstalled !== true,
3379
3390
  label: props.t("reviewOwnGate"),
3380
3391
  onChange: (next) => {
3381
3392
  run("allowlist", () => props.saveReviewOwnGate(next));
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { l as normalizeProviderGroups } from "./session-route-CRfpxarI.js";
2
2
  import { r as resolveToolSource, t as DEFAULT_READ_ONLY_TOOLS } from "./tool-allowlist-Ddb8jfNx.js";
3
- import { d as ownGateEngaged, i as autoReviewStatus } from "./auto-review-0mh6NLlr.js";
3
+ import { d as ownGateEngaged, i as autoReviewStatus } from "./auto-review-Cp5Q5_Rr.js";
4
4
  import { ModelSwitchAdapterRegistry } from "./adapter-registry.js";
5
5
  import { automodeCompatView } from "./automode-compat.js";
6
6
  import { s as subagentDiscoveryHintStatus } from "./subagent-runtime-eNKrdb2H.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-switch",
3
- "version": "0.4.73",
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",