nexus-agents 2.77.12 → 2.77.13
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/dist/{chunk-2IAWMNNB.js → chunk-GFKGL2GQ.js} +14 -6
- package/dist/{chunk-2IAWMNNB.js.map → chunk-GFKGL2GQ.js.map} +1 -1
- package/dist/{chunk-L3TPDTP3.js → chunk-JX6OI4FS.js} +3 -3
- package/dist/{chunk-XYA3DPWJ.js → chunk-RBZ4CDMY.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{setup-command-3ZTEPKDA.js → setup-command-W6UKPODL.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-L3TPDTP3.js.map → chunk-JX6OI4FS.js.map} +0 -0
- /package/dist/{chunk-XYA3DPWJ.js.map → chunk-RBZ4CDMY.js.map} +0 -0
- /package/dist/{setup-command-3ZTEPKDA.js.map → setup-command-W6UKPODL.js.map} +0 -0
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
clampTaskTtl,
|
|
71
71
|
getAvailabilityCache,
|
|
72
72
|
resolveFallback
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-JX6OI4FS.js";
|
|
74
74
|
import {
|
|
75
75
|
DEFAULTS
|
|
76
76
|
} from "./chunk-YQMQSJQK.js";
|
|
@@ -33799,10 +33799,17 @@ var REASON_MAP = [
|
|
|
33799
33799
|
["needsMcp", "MCP tool support required"],
|
|
33800
33800
|
["needsExploration", "exploration/research task benefits from large context"]
|
|
33801
33801
|
];
|
|
33802
|
-
function buildReasons(requirements, pref, billingMode = "api", specialization = null) {
|
|
33802
|
+
function buildReasons(requirements, pref, billingMode = "api", specialization = null, chosenCli) {
|
|
33803
33803
|
const reasons = REASON_MAP.filter(([key]) => requirements[key] === true).map(([, desc]) => desc);
|
|
33804
|
-
if (specialization !== null)
|
|
33805
|
-
|
|
33804
|
+
if (specialization !== null) {
|
|
33805
|
+
if (chosenCli !== void 0 && specialization.primaryCli !== chosenCli) {
|
|
33806
|
+
reasons.push(
|
|
33807
|
+
`${specialization.category} task (preferred ${specialization.primaryCli}, selected ${chosenCli} after filtering)`
|
|
33808
|
+
);
|
|
33809
|
+
} else {
|
|
33810
|
+
reasons.push(`${specialization.category} task (preferred ${specialization.primaryCli})`);
|
|
33811
|
+
}
|
|
33812
|
+
}
|
|
33806
33813
|
if (pref !== void 0 && pref !== "") reasons.push(`preferred: ${pref}`);
|
|
33807
33814
|
if (billingMode === "plan") reasons.push("plan billing (cost ignored)");
|
|
33808
33815
|
return reasons;
|
|
@@ -33886,7 +33893,8 @@ function selectModel(input, requirements, billingMode = "api") {
|
|
|
33886
33893
|
requirements,
|
|
33887
33894
|
input.preferred_capability,
|
|
33888
33895
|
billingMode,
|
|
33889
|
-
specialization
|
|
33896
|
+
specialization,
|
|
33897
|
+
getCliForModel(best.name)
|
|
33890
33898
|
);
|
|
33891
33899
|
const reasoning = reasons.length > 0 ? `Selected ${best.name} (score: ${best.score.toFixed(1)}) because: ${reasons.join(", ")}` : `Selected ${best.name} as the best overall match (score: ${best.score.toFixed(1)})`;
|
|
33892
33900
|
const alternatives = scored.slice(1, 4).map((alt) => ({
|
|
@@ -50033,4 +50041,4 @@ export {
|
|
|
50033
50041
|
detectBackend,
|
|
50034
50042
|
createTaskTracker
|
|
50035
50043
|
};
|
|
50036
|
-
//# sourceMappingURL=chunk-
|
|
50044
|
+
//# sourceMappingURL=chunk-GFKGL2GQ.js.map
|