nexus-agents 2.97.0 → 2.97.1
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-APLZRTYC.js → chunk-5F7LHFAU.js} +3 -3
- package/dist/{chunk-76FTBRUS.js → chunk-FB6AQ2SF.js} +4 -4
- package/dist/{chunk-GAIUXYF4.js → chunk-T7IIFT3B.js} +29 -4
- package/dist/chunk-T7IIFT3B.js.map +1 -0
- package/dist/{chunk-SWNOQW7Y.js → chunk-Y4TTYQUK.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/{consensus-vote-EQAYX53Z.js → consensus-vote-F6HORSU6.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/{setup-command-ZWJCGPJ5.js → setup-command-7KP3O3P3.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-GAIUXYF4.js.map +0 -1
- /package/dist/{chunk-APLZRTYC.js.map → chunk-5F7LHFAU.js.map} +0 -0
- /package/dist/{chunk-76FTBRUS.js.map → chunk-FB6AQ2SF.js.map} +0 -0
- /package/dist/{chunk-SWNOQW7Y.js.map → chunk-Y4TTYQUK.js.map} +0 -0
- /package/dist/{consensus-vote-EQAYX53Z.js.map → consensus-vote-F6HORSU6.js.map} +0 -0
- /package/dist/{setup-command-ZWJCGPJ5.js.map → setup-command-7KP3O3P3.js.map} +0 -0
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-CH7QIDHQ.js";
|
|
41
41
|
|
|
42
42
|
// src/version.ts
|
|
43
|
-
var VERSION = true ? "2.97.
|
|
43
|
+
var VERSION = true ? "2.97.1" : "dev";
|
|
44
44
|
|
|
45
45
|
// src/config/schemas-core.ts
|
|
46
46
|
import { z } from "zod";
|
|
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
|
|
|
2096
2096
|
writeLine2("\u2500".repeat(40));
|
|
2097
2097
|
let fixCount = 0;
|
|
2098
2098
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2099
|
-
const { runSetup } = await import("./setup-command-
|
|
2099
|
+
const { runSetup } = await import("./setup-command-7KP3O3P3.js");
|
|
2100
2100
|
const setupResult = runSetup({
|
|
2101
2101
|
skipMcp: true,
|
|
2102
2102
|
skipRules: true,
|
|
@@ -2208,4 +2208,4 @@ export {
|
|
|
2208
2208
|
startStdioServer,
|
|
2209
2209
|
closeServer
|
|
2210
2210
|
};
|
|
2211
|
-
//# sourceMappingURL=chunk-
|
|
2211
|
+
//# sourceMappingURL=chunk-5F7LHFAU.js.map
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
writeJobComplete,
|
|
31
31
|
writeJobFailed,
|
|
32
32
|
writeJobPending
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-T7IIFT3B.js";
|
|
34
34
|
import {
|
|
35
35
|
REGISTRY_PATH,
|
|
36
36
|
getProjectRoot,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
DEFAULT_TASK_TTL_MS,
|
|
93
93
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
94
94
|
clampTaskTtl
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-5F7LHFAU.js";
|
|
96
96
|
import {
|
|
97
97
|
getAvailabilityCache,
|
|
98
98
|
getCliForModelId,
|
|
@@ -43433,7 +43433,7 @@ ${contextBlock}`;
|
|
|
43433
43433
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43434
43434
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43435
43435
|
try {
|
|
43436
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43436
|
+
const { executeVoting } = await import("./consensus-vote-F6HORSU6.js");
|
|
43437
43437
|
const votingResult = await executeVoting(
|
|
43438
43438
|
{
|
|
43439
43439
|
proposal: plan.slice(0, 4e3),
|
|
@@ -50864,4 +50864,4 @@ export {
|
|
|
50864
50864
|
detectBackend,
|
|
50865
50865
|
createTaskTracker
|
|
50866
50866
|
};
|
|
50867
|
-
//# sourceMappingURL=chunk-
|
|
50867
|
+
//# sourceMappingURL=chunk-FB6AQ2SF.js.map
|
|
@@ -2628,6 +2628,24 @@ async function executeWithRetries(opts) {
|
|
|
2628
2628
|
|
|
2629
2629
|
// src/cli/voter-agents-deadline.ts
|
|
2630
2630
|
var DEADLINE_MESSAGE = "overall consensus deadline exceeded";
|
|
2631
|
+
function adapterCliKey(adapter) {
|
|
2632
|
+
return adapter.name ?? adapter.providerId;
|
|
2633
|
+
}
|
|
2634
|
+
function createKeyedSerializer() {
|
|
2635
|
+
const tails = /* @__PURE__ */ new Map();
|
|
2636
|
+
return (key, fn) => {
|
|
2637
|
+
const prev = tails.get(key) ?? Promise.resolve();
|
|
2638
|
+
const run = prev.then(fn, fn);
|
|
2639
|
+
tails.set(
|
|
2640
|
+
key,
|
|
2641
|
+
run.then(
|
|
2642
|
+
() => void 0,
|
|
2643
|
+
() => void 0
|
|
2644
|
+
)
|
|
2645
|
+
);
|
|
2646
|
+
return run;
|
|
2647
|
+
};
|
|
2648
|
+
}
|
|
2631
2649
|
function raceWithDeadline(p, role, deadlineMs) {
|
|
2632
2650
|
let timer;
|
|
2633
2651
|
const timeoutP = new Promise((resolve) => {
|
|
@@ -2652,12 +2670,19 @@ async function launchVotesWithOverallDeadline(input) {
|
|
|
2652
2670
|
voteFn
|
|
2653
2671
|
} = input;
|
|
2654
2672
|
const startedAt = Date.now();
|
|
2673
|
+
const serialize = createKeyedSerializer();
|
|
2655
2674
|
const wrapped = roles.map(async (role, i) => {
|
|
2656
2675
|
if (i > 0 && interDelay > 0) await delay(interDelay);
|
|
2657
2676
|
const adapter = roleAdapters.get(role) ?? fallbackAdapter;
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2677
|
+
return serialize(adapterCliKey(adapter), () => {
|
|
2678
|
+
const elapsed = Date.now() - startedAt;
|
|
2679
|
+
const remaining = Math.max(1, overallDeadlineMs - elapsed);
|
|
2680
|
+
return raceWithDeadline(
|
|
2681
|
+
voteFn(role, proposal, adapter, logger11, voteOptions),
|
|
2682
|
+
role,
|
|
2683
|
+
remaining
|
|
2684
|
+
);
|
|
2685
|
+
});
|
|
2661
2686
|
});
|
|
2662
2687
|
const results = await Promise.all(wrapped);
|
|
2663
2688
|
const expired = results.filter((r) => r.source === "error" && r.error === DEADLINE_MESSAGE);
|
|
@@ -7462,4 +7487,4 @@ export {
|
|
|
7462
7487
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
7463
7488
|
registerConsensusVoteTool
|
|
7464
7489
|
};
|
|
7465
|
-
//# sourceMappingURL=chunk-
|
|
7490
|
+
//# sourceMappingURL=chunk-T7IIFT3B.js.map
|