dsh-model-switch 0.4.73 → 0.4.74
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 +9 -0
- package/lib/auto-review-BirVa0PT.js +1838 -0
- package/lib/auto-review-Cp5Q5_Rr.js +1864 -0
- package/lib/auto-review.js +1 -1
- package/lib/client.js +11 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/auto-review.js
CHANGED
|
@@ -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-
|
|
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,
|
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-
|
|
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";
|