nexus-agents 4.28.0 → 4.29.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.
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-VEFRTBUE.js";
24
+ } from "./chunk-B47QMLB7.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-XEGZYUPX.js";
@@ -46,7 +46,7 @@ import {
46
46
  simulationDeniedResult,
47
47
  toJobSummary,
48
48
  writeJobCancelled
49
- } from "./chunk-6OAWETHW.js";
49
+ } from "./chunk-5DWZM7IZ.js";
50
50
  import {
51
51
  allOf
52
52
  } from "./chunk-OQB3XC5O.js";
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-UBWHBW7S.js";
64
64
  import {
65
65
  withPrerequisite
66
- } from "./chunk-Q4T3UWOC.js";
66
+ } from "./chunk-F46BXFGJ.js";
67
67
  import {
68
68
  NOOP_NOTIFIER,
69
69
  RateLimiter,
@@ -87,7 +87,7 @@ import {
87
87
  withAuditTrail,
88
88
  withProgressHeartbeat,
89
89
  wrapToolWithTimeout
90
- } from "./chunk-7V5V6H5C.js";
90
+ } from "./chunk-GS4XDYMP.js";
91
91
  import {
92
92
  createAuditTrail,
93
93
  createGraphAuditBridge,
@@ -941,9 +941,21 @@ var NexusEnvSchema = z10.object({
941
941
  // NEXUS_EVENTBUS_MAX_HISTORY removed in #2977 — silent no-op (no production reader).
942
942
  NEXUS_BILLING_MODE: z10.enum(["plan", "api"]).optional(),
943
943
  NEXUS_CONFIG_PATH: z10.string().optional(),
944
+ // Explicit runtime data root; overrides the per-repo/cross-repo split. In
945
+ // CLAUDE.md's most-used table since it shipped, and absent from this schema
946
+ // until #4722 — so setting the documented variable made `validateNexusEnv`
947
+ // report it as an UNKNOWN NEXUS_* var, typo suggestion and all.
948
+ NEXUS_DATA_DIR: z10.string().optional(),
949
+ // `0` opts out of the per-repo data dir (epic #2872; default ON).
950
+ NEXUS_REPO_PREFERRED: z10.enum(["0", "1"]).optional(),
944
951
  // Scratch root for short-lived working files (#4412, getNexusTmpDir). Unset
945
952
  // resolves to `<dataDir>/tmp`; set it to relocate scratch off the repo.
946
953
  NEXUS_TMPDIR: z10.string().optional(),
954
+ // ClawGuard access-policy mode.
955
+ NEXUS_ACCESS_POLICY_MODE: z10.enum(["off", "audit", "confirm_risky", "enforce"]).optional(),
956
+ // Sandbox mode (epic #2500).
957
+ NEXUS_SANDBOX: boolStr.optional(),
958
+ NEXUS_SANDBOX_ROOT: z10.string().optional(),
947
959
  NEXUS_ALLOW_MOCK_ORCHESTRATION: boolStr.optional(),
948
960
  // Explicit opt-in for simulateVotes outside test runners (#4170) — read by
949
961
  // checkSimulationAllowed (mcp/tools/simulation-guard.ts). Unset = fail closed.
@@ -44523,6 +44535,10 @@ function verifyEvent(event, index, priorHash) {
44523
44535
  }
44524
44536
  return null;
44525
44537
  }
44538
+ function withCoverage(verification, coverage) {
44539
+ if (!verification.ok) return verification;
44540
+ return { ...verification, coverage };
44541
+ }
44526
44542
  function verifyChain(events) {
44527
44543
  if (events.length === 0) return { ok: true, eventCount: 0, notVerified: "empty" };
44528
44544
  if (events[0]?.hash === void 0) {
@@ -47422,7 +47438,7 @@ ${contextBlock}`;
47422
47438
  const strategy = config.votingStrategy ?? "higher_order";
47423
47439
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47424
47440
  try {
47425
- const { executeVoting } = await import("./consensus-vote-YYHQHD7V.js");
47441
+ const { executeVoting } = await import("./consensus-vote-4AQ2M3BH.js");
47426
47442
  const votingResult = await executeVoting(
47427
47443
  {
47428
47444
  proposal: buildVoteProposal(plan, research),
@@ -50007,7 +50023,10 @@ async function handler2(args, ctx) {
50007
50023
  resolvedDir,
50008
50024
  ctx.logger
50009
50025
  );
50010
- const verification = verifyChain(events);
50026
+ const verification = withCoverage(verifyChain(events), {
50027
+ skipped: skippedLines,
50028
+ unreadableFiles
50029
+ });
50011
50030
  const response = {
50012
50031
  logDir: resolvedDir,
50013
50032
  fileCount,
@@ -56044,4 +56063,4 @@ export {
56044
56063
  shutdownFeedbackSubscriber,
56045
56064
  createEventBusBridge
56046
56065
  };
56047
- //# sourceMappingURL=chunk-EGO754SU.js.map
56066
+ //# sourceMappingURL=chunk-ICEPRA5C.js.map