nexus-agents 2.40.0 → 2.41.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.
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  VERSION,
6
6
  initDataDirectories
7
- } from "./chunk-DDPRXENZ.js";
7
+ } from "./chunk-CNQ5WLHD.js";
8
8
  import {
9
9
  CLI_SUBPROCESS_TIMEOUTS,
10
10
  createLogger,
@@ -1580,4 +1580,4 @@ export {
1580
1580
  setupCommand,
1581
1581
  setupCommandAsync
1582
1582
  };
1583
- //# sourceMappingURL=chunk-LHHVH6FN.js.map
1583
+ //# sourceMappingURL=chunk-7FZV43MB.js.map
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-CLYZ7FWP.js";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "2.40.0" : "dev";
27
+ var VERSION = true ? "2.41.0" : "dev";
28
28
 
29
29
  // src/cli/setup-data-dir.ts
30
30
  import { mkdirSync, existsSync as existsSync2 } from "fs";
@@ -758,7 +758,7 @@ async function runDoctorFix(result) {
758
758
  writeLine2("\u2500".repeat(40));
759
759
  let fixCount = 0;
760
760
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
761
- const { runSetup } = await import("./setup-command-7QJR42JE.js");
761
+ const { runSetup } = await import("./setup-command-BJEGQZ33.js");
762
762
  const setupResult = runSetup({
763
763
  skipMcp: true,
764
764
  skipRules: true,
@@ -836,4 +836,4 @@ export {
836
836
  startStdioServer,
837
837
  closeServer
838
838
  };
839
- //# sourceMappingURL=chunk-DDPRXENZ.js.map
839
+ //# sourceMappingURL=chunk-CNQ5WLHD.js.map
@@ -894,6 +894,9 @@ function checkAccess(toolName, policy, args) {
894
894
  // src/security/access-constraint-deriver/mcp-guard.ts
895
895
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
896
896
  var accessPolicyStorage = new AsyncLocalStorage2();
897
+ function withAccessPolicy(policy, fn) {
898
+ return accessPolicyStorage.run(policy, fn);
899
+ }
897
900
  function getActivePolicy() {
898
901
  return accessPolicyStorage.getStore();
899
902
  }
@@ -12796,6 +12799,7 @@ export {
12796
12799
  createMcpNotifier,
12797
12800
  NOOP_NOTIFIER,
12798
12801
  withProgressHeartbeat,
12802
+ withAccessPolicy,
12799
12803
  getToolTimeout,
12800
12804
  wrapToolWithTimeout,
12801
12805
  toSdkCallback,
@@ -12875,4 +12879,4 @@ export {
12875
12879
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
12876
12880
  registerConsensusVoteTool
12877
12881
  };
12878
- //# sourceMappingURL=chunk-6PLFRWIP.js.map
12882
+ //# sourceMappingURL=chunk-SYS7LUWC.js.map