nexus-agents 2.129.0 → 2.129.2

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.
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-ZGLIHPGJ.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.129.0" : "dev";
43
+ var VERSION = true ? "2.129.2" : "dev";
44
44
 
45
45
  // src/config/schemas-core.ts
46
46
  import { z } from "zod";
@@ -2126,7 +2126,7 @@ async function runDoctorFix(result) {
2126
2126
  writeLine2("\u2500".repeat(40));
2127
2127
  let fixCount = 0;
2128
2128
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2129
- const { runSetup } = await import("./setup-command-55WGRQR7.js");
2129
+ const { runSetup } = await import("./setup-command-Q4RVDZOO.js");
2130
2130
  const setupResult = runSetup({
2131
2131
  skipMcp: true,
2132
2132
  skipRules: true,
@@ -2238,4 +2238,4 @@ export {
2238
2238
  startStdioServer,
2239
2239
  closeServer
2240
2240
  };
2241
- //# sourceMappingURL=chunk-ECGYBJQ3.js.map
2241
+ //# sourceMappingURL=chunk-6RXP55DL.js.map
@@ -4502,7 +4502,7 @@ function warnIfSimulatedOutsideTests(toolName, logger10) {
4502
4502
  }
4503
4503
 
4504
4504
  // src/mcp/jobs/job-result-store.ts
4505
- import { existsSync as existsSync3, readFileSync as readFileSync3, readdirSync, writeFileSync as writeFileSync3 } from "fs";
4505
+ import { existsSync as existsSync3, readFileSync as readFileSync3, readdirSync, writeFileSync as writeFileSync3, chmodSync } from "fs";
4506
4506
  import { z as z7 } from "zod";
4507
4507
  var logger7 = createLogger({ component: "job-result-store" });
4508
4508
  var JobStatusSchema = z7.enum(["pending", "complete", "failed", "cancelled"]);
@@ -4531,6 +4531,10 @@ var JobResultSchema = z7.object({
4531
4531
  function jobResultPath(jobId) {
4532
4532
  return nexusDataPathEnsure("jobs", `result-${jobId}.json`);
4533
4533
  }
4534
+ function persistJobRecord(path, record) {
4535
+ writeFileSync3(path, JSON.stringify(record, null, 2), { mode: 384 });
4536
+ chmodSync(path, 384);
4537
+ }
4534
4538
  function writeJobPending(jobId, toolName) {
4535
4539
  const path = jobResultPath(jobId);
4536
4540
  if (existsSync3(path)) {
@@ -4544,7 +4548,7 @@ function writeJobPending(jobId, toolName) {
4544
4548
  status: "pending",
4545
4549
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
4546
4550
  };
4547
- writeFileSync3(path, JSON.stringify(record, null, 2));
4551
+ persistJobRecord(path, record);
4548
4552
  logger7.debug("Wrote pending job record", { jobId, toolName });
4549
4553
  }
4550
4554
  function writeJobComplete(jobId, toolName, result) {
@@ -4557,7 +4561,7 @@ function writeJobComplete(jobId, toolName, result) {
4557
4561
  completedAt: (/* @__PURE__ */ new Date()).toISOString(),
4558
4562
  result
4559
4563
  };
4560
- writeFileSync3(jobResultPath(jobId), JSON.stringify(record, null, 2));
4564
+ persistJobRecord(jobResultPath(jobId), record);
4561
4565
  logger7.debug("Wrote complete job record", { jobId, toolName });
4562
4566
  }
4563
4567
  function writeJobFailed(jobId, toolName, error) {
@@ -4570,7 +4574,7 @@ function writeJobFailed(jobId, toolName, error) {
4570
4574
  completedAt: (/* @__PURE__ */ new Date()).toISOString(),
4571
4575
  error
4572
4576
  };
4573
- writeFileSync3(jobResultPath(jobId), JSON.stringify(record, null, 2));
4577
+ persistJobRecord(jobResultPath(jobId), record);
4574
4578
  logger7.debug("Wrote failed job record", { jobId, toolName, error });
4575
4579
  }
4576
4580
  function writeJobCancelled(jobId, toolName, reason) {
@@ -4583,7 +4587,7 @@ function writeJobCancelled(jobId, toolName, reason) {
4583
4587
  completedAt: (/* @__PURE__ */ new Date()).toISOString(),
4584
4588
  ...reason !== void 0 ? { error: reason } : {}
4585
4589
  };
4586
- writeFileSync3(jobResultPath(jobId), JSON.stringify(record, null, 2));
4590
+ persistJobRecord(jobResultPath(jobId), record);
4587
4591
  logger7.debug("Wrote cancelled job record", { jobId, toolName, reason });
4588
4592
  }
4589
4593
  function readJobResult(jobId) {
@@ -5569,4 +5573,4 @@ export {
5569
5573
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
5570
5574
  registerConsensusVoteTool
5571
5575
  };
5572
- //# sourceMappingURL=chunk-6CDAMT2O.js.map
5576
+ //# sourceMappingURL=chunk-HMOPW3XC.js.map