nexus-agents 2.85.0 → 2.87.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.
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-OXVOUVKH.js";
11
+ } from "./chunk-T24NPT4A.js";
12
12
  import {
13
13
  probeAllClis
14
14
  } from "./chunk-RTAIMK6P.js";
@@ -1987,4 +1987,4 @@ export {
1987
1987
  setupCommand,
1988
1988
  setupCommandAsync
1989
1989
  };
1990
- //# sourceMappingURL=chunk-QR4VYHMI.js.map
1990
+ //# sourceMappingURL=chunk-L5VGKYYI.js.map
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-2WCYG75B.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.85.0" : "dev";
43
+ var VERSION = true ? "2.87.0" : "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-ZXDAR3GQ.js");
2099
+ const { runSetup } = await import("./setup-command-XHNWXAPF.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-OXVOUVKH.js.map
2211
+ //# sourceMappingURL=chunk-T24NPT4A.js.map
@@ -8505,6 +8505,17 @@ var TOOL_ANNOTATIONS = {
8505
8505
  idempotentHint: true,
8506
8506
  openWorldHint: false
8507
8507
  },
8508
+ /** Cancels an in-flight async-mode job (#3042 Stage 1b / #2631). */
8509
+ cancel_job: {
8510
+ // Mutates the sidecar record — NOT read-only.
8511
+ readOnlyHint: false,
8512
+ // Reversibility: cancel writes a new state, but doesn't delete data —
8513
+ // not destructive in the OWASP sense (no irreversible data loss).
8514
+ destructiveHint: false,
8515
+ // Idempotent: repeat cancels are no-ops with explicit outcome envelope.
8516
+ idempotentHint: true,
8517
+ openWorldHint: false
8518
+ },
8508
8519
  /** Verifies hash chain of audit log files. */
8509
8520
  verify_audit_chain: {
8510
8521
  readOnlyHint: true,
@@ -8512,6 +8523,14 @@ var TOOL_ANNOTATIONS = {
8512
8523
  idempotentHint: true,
8513
8524
  openWorldHint: false
8514
8525
  },
8526
+ /** CI infrastructure health check — composes status-page + recent-runs signals (#3076). */
8527
+ ci_health_check: {
8528
+ readOnlyHint: true,
8529
+ destructiveHint: false,
8530
+ idempotentHint: true,
8531
+ // Hits external services (githubstatus.com + GitHub API) — `openWorldHint`.
8532
+ openWorldHint: true
8533
+ },
8515
8534
  /** Threshold-gated observability loop; may file GitHub issues when fileIssues=true. */
8516
8535
  improvement_review: {
8517
8536
  readOnlyHint: false,
@@ -8650,6 +8669,19 @@ function writeJobFailed(jobId, toolName, error) {
8650
8669
  writeFileSync3(jobResultPath(jobId), JSON.stringify(record, null, 2));
8651
8670
  logger8.debug("Wrote failed job record", { jobId, toolName, error });
8652
8671
  }
8672
+ function writeJobCancelled(jobId, toolName, reason) {
8673
+ const record = {
8674
+ v: 1,
8675
+ jobId,
8676
+ toolName,
8677
+ status: "cancelled",
8678
+ createdAt: readJobResult(jobId)?.createdAt ?? (/* @__PURE__ */ new Date()).toISOString(),
8679
+ completedAt: (/* @__PURE__ */ new Date()).toISOString(),
8680
+ ...reason !== void 0 ? { error: reason } : {}
8681
+ };
8682
+ writeFileSync3(jobResultPath(jobId), JSON.stringify(record, null, 2));
8683
+ logger8.debug("Wrote cancelled job record", { jobId, toolName, reason });
8684
+ }
8653
8685
  function readJobResult(jobId) {
8654
8686
  const path = nexusDataPath("jobs", `result-${jobId}.json`);
8655
8687
  if (!existsSync4(path)) return null;
@@ -9493,6 +9525,7 @@ export {
9493
9525
  writeJobPending,
9494
9526
  writeJobComplete,
9495
9527
  writeJobFailed,
9528
+ writeJobCancelled,
9496
9529
  readJobResult,
9497
9530
  listJobs,
9498
9531
  registerIdempotentJob,
@@ -9569,4 +9602,4 @@ export {
9569
9602
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
9570
9603
  registerConsensusVoteTool
9571
9604
  };
9572
- //# sourceMappingURL=chunk-IF6TXCSE.js.map
9605
+ //# sourceMappingURL=chunk-YYUNZPDK.js.map