nexus-agents 2.129.0 → 2.129.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.
@@ -31,7 +31,7 @@ import {
31
31
  toJobSummary,
32
32
  warnIfSimulatedOutsideTests,
33
33
  writeJobCancelled
34
- } from "./chunk-6CDAMT2O.js";
34
+ } from "./chunk-HMOPW3XC.js";
35
35
  import {
36
36
  normalizeTopicToCanonical,
37
37
  synthesizeResearch
@@ -123,7 +123,7 @@ import {
123
123
  DEFAULT_TASK_TTL_MS,
124
124
  DEFAULT_TOOL_RATE_LIMITS,
125
125
  clampTaskTtl
126
- } from "./chunk-ECGYBJQ3.js";
126
+ } from "./chunk-IIMTGMOE.js";
127
127
  import {
128
128
  resolveInsideRoot
129
129
  } from "./chunk-NUBSJGQZ.js";
@@ -43238,7 +43238,7 @@ ${contextBlock}`;
43238
43238
  const strategy = config.votingStrategy ?? "higher_order";
43239
43239
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43240
43240
  try {
43241
- const { executeVoting } = await import("./consensus-vote-RT3DJYEI.js");
43241
+ const { executeVoting } = await import("./consensus-vote-3EMLBZ25.js");
43242
43242
  const votingResult = await executeVoting(
43243
43243
  {
43244
43244
  proposal: buildVoteProposal(plan, research),
@@ -50577,4 +50577,4 @@ export {
50577
50577
  shutdownFeedbackSubscriber,
50578
50578
  createEventBusBridge
50579
50579
  };
50580
- //# sourceMappingURL=chunk-O3COR3G2.js.map
50580
+ //# sourceMappingURL=chunk-24HQWWJ7.js.map
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-ECGYBJQ3.js";
11
+ } from "./chunk-IIMTGMOE.js";
12
12
  import {
13
13
  BUILT_IN_EXPERTS
14
14
  } from "./chunk-ZM4O442V.js";
@@ -2000,4 +2000,4 @@ export {
2000
2000
  setupCommand,
2001
2001
  setupCommandAsync
2002
2002
  };
2003
- //# sourceMappingURL=chunk-PYZSIFZQ.js.map
2003
+ //# sourceMappingURL=chunk-4EAXZOIG.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