nexus-agents 2.143.0 → 2.145.0
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-QTQBGLTG.js → chunk-4IELVEVP.js} +3 -3
- package/dist/{chunk-X5FLDORQ.js → chunk-5QACHQ47.js} +20 -14
- package/dist/{chunk-X5FLDORQ.js.map → chunk-5QACHQ47.js.map} +1 -1
- package/dist/{chunk-TZTAAZGD.js → chunk-I6JU4HEN.js} +2 -2
- package/dist/{chunk-P75OHXX5.js → chunk-QKWS3REM.js} +26 -2
- package/dist/chunk-QKWS3REM.js.map +1 -0
- package/dist/cli.js +4 -4
- package/dist/{consensus-vote-3GJMGB3L.js → consensus-vote-6V3JNRXI.js} +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/index.js +4 -4
- package/dist/{setup-command-3MDZJNXO.js → setup-command-FUT4W5P4.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-P75OHXX5.js.map +0 -1
- /package/dist/{chunk-QTQBGLTG.js.map → chunk-4IELVEVP.js.map} +0 -0
- /package/dist/{chunk-TZTAAZGD.js.map → chunk-I6JU4HEN.js.map} +0 -0
- /package/dist/{consensus-vote-3GJMGB3L.js.map → consensus-vote-6V3JNRXI.js.map} +0 -0
- /package/dist/{setup-command-3MDZJNXO.js.map → setup-command-FUT4W5P4.js.map} +0 -0
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-DHVMSIT5.js";
|
|
43
43
|
|
|
44
44
|
// src/version.ts
|
|
45
|
-
var VERSION = true ? "2.
|
|
45
|
+
var VERSION = true ? "2.145.0" : "dev";
|
|
46
46
|
|
|
47
47
|
// src/config/schemas-core.ts
|
|
48
48
|
import { z } from "zod";
|
|
@@ -2132,7 +2132,7 @@ async function runDoctorFix(result) {
|
|
|
2132
2132
|
writeLine2("\u2500".repeat(40));
|
|
2133
2133
|
let fixCount = 0;
|
|
2134
2134
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2135
|
-
const { runSetup } = await import("./setup-command-
|
|
2135
|
+
const { runSetup } = await import("./setup-command-FUT4W5P4.js");
|
|
2136
2136
|
const setupResult = runSetup({
|
|
2137
2137
|
skipMcp: true,
|
|
2138
2138
|
skipRules: true,
|
|
@@ -2245,4 +2245,4 @@ export {
|
|
|
2245
2245
|
startStdioServer,
|
|
2246
2246
|
closeServer
|
|
2247
2247
|
};
|
|
2248
|
-
//# sourceMappingURL=chunk-
|
|
2248
|
+
//# sourceMappingURL=chunk-4IELVEVP.js.map
|
|
@@ -18,12 +18,13 @@ import {
|
|
|
18
18
|
DEFAULT_TASK_TTL_MS,
|
|
19
19
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
20
20
|
clampTaskTtl
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4IELVEVP.js";
|
|
22
22
|
import {
|
|
23
23
|
executeExpert
|
|
24
24
|
} from "./chunk-YJROHCFY.js";
|
|
25
25
|
import {
|
|
26
26
|
JobStatusSchema,
|
|
27
|
+
abortJob,
|
|
27
28
|
collectRealVotes,
|
|
28
29
|
defaultBusyEnvelope,
|
|
29
30
|
defaultCollisionEnvelope,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
toJobSummary,
|
|
41
42
|
warnIfSimulatedOutsideTests,
|
|
42
43
|
writeJobCancelled
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-QKWS3REM.js";
|
|
44
45
|
import {
|
|
45
46
|
normalizeTopicToCanonical,
|
|
46
47
|
synthesizeResearch
|
|
@@ -39951,39 +39952,44 @@ function cancelJobHandler(args) {
|
|
|
39951
39952
|
const { jobId, reason } = parsed.data;
|
|
39952
39953
|
const existing = readJobResult(jobId);
|
|
39953
39954
|
if (existing === null) {
|
|
39954
|
-
const
|
|
39955
|
+
const response = {
|
|
39955
39956
|
jobId,
|
|
39956
39957
|
outcome: "unknown_job",
|
|
39957
39958
|
message: `No job record found for jobId "${jobId}". The job may never have been dispatched, or the sidecar file is unreadable.`
|
|
39958
39959
|
};
|
|
39959
|
-
return Promise.resolve(toolSuccess(JSON.stringify(
|
|
39960
|
+
return Promise.resolve(toolSuccess(JSON.stringify(response, null, 2)));
|
|
39960
39961
|
}
|
|
39961
39962
|
if (existing.status === "complete" || existing.status === "failed") {
|
|
39962
|
-
const
|
|
39963
|
+
const response = {
|
|
39963
39964
|
jobId,
|
|
39964
39965
|
outcome: "already_complete",
|
|
39965
39966
|
status: existing.status,
|
|
39966
39967
|
message: `Job already terminated with status "${existing.status}" \u2014 cancel is a no-op.`
|
|
39967
39968
|
};
|
|
39968
|
-
return Promise.resolve(toolSuccess(JSON.stringify(
|
|
39969
|
+
return Promise.resolve(toolSuccess(JSON.stringify(response, null, 2)));
|
|
39969
39970
|
}
|
|
39970
39971
|
if (existing.status === "cancelled") {
|
|
39971
|
-
const
|
|
39972
|
+
const response = {
|
|
39972
39973
|
jobId,
|
|
39973
39974
|
outcome: "already_cancelled",
|
|
39974
39975
|
status: "cancelled",
|
|
39975
39976
|
message: "Job is already cancelled \u2014 second cancel is an idempotent no-op."
|
|
39976
39977
|
};
|
|
39977
|
-
return Promise.resolve(toolSuccess(JSON.stringify(
|
|
39978
|
+
return Promise.resolve(toolSuccess(JSON.stringify(response, null, 2)));
|
|
39978
39979
|
}
|
|
39979
|
-
|
|
39980
|
-
|
|
39980
|
+
return Promise.resolve(
|
|
39981
|
+
toolSuccess(JSON.stringify(cancelPendingJob(jobId, existing.toolName, reason), null, 2))
|
|
39982
|
+
);
|
|
39983
|
+
}
|
|
39984
|
+
function cancelPendingJob(jobId, toolName, reason) {
|
|
39985
|
+
writeJobCancelled(jobId, toolName, reason);
|
|
39986
|
+
const aborted = abortJob(jobId, reason);
|
|
39987
|
+
return {
|
|
39981
39988
|
jobId,
|
|
39982
39989
|
outcome: "cancelled",
|
|
39983
39990
|
status: "cancelled",
|
|
39984
|
-
message: `Job ${jobId} marked cancelled.
|
|
39991
|
+
message: `Job ${jobId} marked cancelled. ` + (aborted ? "Its in-flight AbortSignal was fired \u2014 work that threads the signal stops in this process; " : "No in-flight controller was registered (the job already settled or runs in another process); ") + "cross-process workers need to poll get_job_result to observe."
|
|
39985
39992
|
};
|
|
39986
|
-
return Promise.resolve(toolSuccess(JSON.stringify(response, null, 2)));
|
|
39987
39993
|
}
|
|
39988
39994
|
function registerCancelJobTool(server, deps) {
|
|
39989
39995
|
const logger58 = deps.logger ?? createLogger({ tool: "cancel_job" });
|
|
@@ -43401,7 +43407,7 @@ ${contextBlock}`;
|
|
|
43401
43407
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43402
43408
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43403
43409
|
try {
|
|
43404
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43410
|
+
const { executeVoting } = await import("./consensus-vote-6V3JNRXI.js");
|
|
43405
43411
|
const votingResult = await executeVoting(
|
|
43406
43412
|
{
|
|
43407
43413
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -51183,4 +51189,4 @@ export {
|
|
|
51183
51189
|
shutdownFeedbackSubscriber,
|
|
51184
51190
|
createEventBusBridge
|
|
51185
51191
|
};
|
|
51186
|
-
//# sourceMappingURL=chunk-
|
|
51192
|
+
//# sourceMappingURL=chunk-5QACHQ47.js.map
|