nexus-agents 2.57.0 → 2.59.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.
Files changed (32) hide show
  1. package/dist/{chunk-Y7CD6AZW.js → chunk-7USAZET2.js} +4 -4
  2. package/dist/{chunk-ZUWOFHNC.js → chunk-JKDHWOQL.js} +2 -2
  3. package/dist/{chunk-BOZ26RIB.js → chunk-L3NHOUEX.js} +52 -4
  4. package/dist/chunk-L3NHOUEX.js.map +1 -0
  5. package/dist/{chunk-ZL3IBCH6.js → chunk-V2Z7EHSY.js} +6047 -5820
  6. package/dist/chunk-V2Z7EHSY.js.map +1 -0
  7. package/dist/{chunk-SXWZS2V4.js → chunk-YQAOMDR2.js} +1 -1
  8. package/dist/chunk-YQAOMDR2.js.map +1 -0
  9. package/dist/{chunk-QNYNQ257.js → chunk-ZOQQGA3L.js} +2 -2
  10. package/dist/cli.js +9 -7
  11. package/dist/cli.js.map +1 -1
  12. package/dist/{consensus-vote-CQ2JP6DC.js → consensus-vote-HDM6HA5Z.js} +3 -3
  13. package/dist/{dist-4LDAFGC5.js → dist-RLMRWMYO.js} +994 -779
  14. package/dist/dist-RLMRWMYO.js.map +1 -0
  15. package/dist/{expert-bridge-LT7PKUPS.js → expert-bridge-BHTUNALT.js} +2 -2
  16. package/dist/{factory-FZ2KSVYC.js → factory-6MT5VKI3.js} +2 -2
  17. package/dist/index.d.ts +72 -45
  18. package/dist/index.js +6 -6
  19. package/dist/index.js.map +1 -1
  20. package/dist/{setup-command-6EJONTOU.js → setup-command-QAGEWX7G.js} +4 -4
  21. package/package.json +5 -5
  22. package/dist/chunk-BOZ26RIB.js.map +0 -1
  23. package/dist/chunk-SXWZS2V4.js.map +0 -1
  24. package/dist/chunk-ZL3IBCH6.js.map +0 -1
  25. package/dist/dist-4LDAFGC5.js.map +0 -1
  26. /package/dist/{chunk-Y7CD6AZW.js.map → chunk-7USAZET2.js.map} +0 -0
  27. /package/dist/{chunk-ZUWOFHNC.js.map → chunk-JKDHWOQL.js.map} +0 -0
  28. /package/dist/{chunk-QNYNQ257.js.map → chunk-ZOQQGA3L.js.map} +0 -0
  29. /package/dist/{consensus-vote-CQ2JP6DC.js.map → consensus-vote-HDM6HA5Z.js.map} +0 -0
  30. /package/dist/{expert-bridge-LT7PKUPS.js.map → expert-bridge-BHTUNALT.js.map} +0 -0
  31. /package/dist/{factory-FZ2KSVYC.js.map → factory-6MT5VKI3.js.map} +0 -0
  32. /package/dist/{setup-command-6EJONTOU.js.map → setup-command-QAGEWX7G.js.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  executeExpert
3
- } from "./chunk-ZUWOFHNC.js";
3
+ } from "./chunk-JKDHWOQL.js";
4
4
  import "./chunk-R2Y57PM3.js";
5
5
  import "./chunk-CLYZ7FWP.js";
6
6
  import "./chunk-UP2VWCW5.js";
7
7
  export {
8
8
  executeExpert
9
9
  };
10
- //# sourceMappingURL=expert-bridge-LT7PKUPS.js.map
10
+ //# sourceMappingURL=expert-bridge-BHTUNALT.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-SXWZS2V4.js";
6
+ } from "./chunk-YQAOMDR2.js";
7
7
  import "./chunk-GMOGKX4E.js";
8
8
  import "./chunk-R2Y57PM3.js";
9
9
  import "./chunk-CLYZ7FWP.js";
@@ -14,4 +14,4 @@ export {
14
14
  getAvailableClis,
15
15
  isCliAvailable
16
16
  };
17
- //# sourceMappingURL=factory-FZ2KSVYC.js.map
17
+ //# sourceMappingURL=factory-6MT5VKI3.js.map
package/dist/index.d.ts CHANGED
@@ -4914,8 +4914,22 @@ declare function sleep(ms: number): Promise<void>;
4914
4914
  /**
4915
4915
  * nexus-agents/adapters - Retry Logic with Exponential Backoff
4916
4916
  *
4917
- * Provides retry functionality for fallible operations with exponential backoff
4918
- * and jitter to prevent thundering herd problems.
4917
+ * Provides generic, type-parameterized retry functionality for fallible
4918
+ * operations with exponential backoff and jitter to prevent thundering
4919
+ * herd problems. Returns Result<T, RetryExhaustedError> — type-safe error
4920
+ * boundary suitable for cross-layer use.
4921
+ *
4922
+ * Sibling implementation (see #2230): cli-retry-loop.ts holds a CLI-specific
4923
+ * retry loop with built-in circuit-breaker integration, FailureCategory
4924
+ * mapping, and CliResponse return shape. Don't reach for that one from
4925
+ * non-CLI code; don't reach for this one when you need circuit-breaker
4926
+ * coupling. Math primitives differ deliberately:
4927
+ * - this file: 0-indexed attempt, ±jitterFactor, cap-before-jitter
4928
+ * - cli-retry-loop.ts: 1-indexed attempt, +0..30% jitter, cap-after
4929
+ *
4930
+ * If you find yourself writing a third retry loop: stop, run
4931
+ * `consensus_vote` with scope_steward in the panel, and pick whichever
4932
+ * of these two fits — don't add a third.
4919
4933
  *
4920
4934
  * (Source: AWS Architecture Blog - Exponential Backoff and Jitter)
4921
4935
  * (Source: Google Cloud API Design Guide - Retry Strategy)
@@ -23368,6 +23382,47 @@ type QueryTraceDeps = BaseMcpToolDeps;
23368
23382
  /** @category MCP */
23369
23383
  declare function registerQueryTraceTool(server: McpServer, deps: QueryTraceDeps): void;
23370
23384
 
23385
+ /**
23386
+ * nexus-agents/audit - Audit Logger Implementation
23387
+ *
23388
+ * Structured audit logger with file rotation and hash chain support.
23389
+ * SIEM-compatible JSON-L output format.
23390
+ *
23391
+ * (Source: Issue #193 - Phase 3 structured audit logging)
23392
+ *
23393
+ * @module audit/audit-logger
23394
+ */
23395
+
23396
+ declare class AuditLogger implements IAuditLogger {
23397
+ private readonly storage;
23398
+ private readonly logger;
23399
+ private readonly enableHashChain;
23400
+ private readonly minSeverity;
23401
+ private readonly categories?;
23402
+ private lastHash;
23403
+ private eventQueue;
23404
+ private flushTimer;
23405
+ private readonly flushIntervalMs;
23406
+ private closed;
23407
+ constructor(config: AuditLogConfig, storage?: IAuditStorage, logger?: ILogger);
23408
+ private startFlushTimer;
23409
+ private shouldLog;
23410
+ private createEvent;
23411
+ log(input: AuditEventInput): void;
23412
+ logToolInvocation(opts: ToolInvocationAuditOpts): void;
23413
+ logPolicyDecision(opts: PolicyDecisionAuditOpts): void;
23414
+ logSecurityEvent(opts: SecurityEventAuditOpts): void;
23415
+ logRateLimitViolation(opts: RateLimitAuditOpts): void;
23416
+ /** Log system startup event */
23417
+ logSystemStartup(metadata?: Record<string, unknown>): void;
23418
+ /** Log system shutdown event */
23419
+ logSystemShutdown(metadata?: Record<string, unknown>): void;
23420
+ private flushQueue;
23421
+ flush(): Promise<void>;
23422
+ close(): Promise<void>;
23423
+ }
23424
+ declare function createAuditLogger(config: AuditLogConfig, storage?: IAuditStorage, logger?: ILogger): AuditLogger;
23425
+
23371
23426
  /**
23372
23427
  * PR Review Findings — typed verification gate per #2225 + #2233 Child 3
23373
23428
  *
@@ -23991,8 +24046,21 @@ declare abstract class BaseCliAdapter implements ICliAdapter {
23991
24046
  /**
23992
24047
  * nexus-agents/cli-adapters - Unified CLI Retry Loop
23993
24048
  *
23994
- * Single retry loop used by all CLI adapters (base + Gemini).
23995
- * Supports optional circuit breaker integration.
24049
+ * CLI-specific retry loop used by all CLI adapters (base + Gemini).
24050
+ * Supports optional circuit-breaker integration, returns CliResponse
24051
+ * with retryCount, and maps to FailureCategory for breaker tracking.
24052
+ *
24053
+ * Sibling implementation (see #2230): adapters/retry.ts holds the
24054
+ * generic, type-parameterized `withRetry<T>` for non-CLI use. Don't
24055
+ * reach for that one when you need circuit-breaker coupling; don't
24056
+ * reach for this one from non-CLI code. Math primitives differ
24057
+ * deliberately:
24058
+ * - this file: 1-indexed attempt, +0..30% jitter, cap-after
24059
+ * - adapters/retry.ts: 0-indexed attempt, ±jitterFactor, cap-before-jitter
24060
+ *
24061
+ * If you find yourself writing a third retry loop: stop, run
24062
+ * `consensus_vote` with scope_steward in the panel, and pick whichever
24063
+ * of these two fits — don't add a third.
23996
24064
  *
23997
24065
  * (Source: Issue #1596 — Extract shared prompt utils and rate-limit patterns)
23998
24066
  */
@@ -25425,47 +25493,6 @@ declare class AbTestTracker implements IAbTestTracker {
25425
25493
  */
25426
25494
  declare function createAbTestTracker(): IAbTestTracker;
25427
25495
 
25428
- /**
25429
- * nexus-agents/audit - Audit Logger Implementation
25430
- *
25431
- * Structured audit logger with file rotation and hash chain support.
25432
- * SIEM-compatible JSON-L output format.
25433
- *
25434
- * (Source: Issue #193 - Phase 3 structured audit logging)
25435
- *
25436
- * @module audit/audit-logger
25437
- */
25438
-
25439
- declare class AuditLogger implements IAuditLogger {
25440
- private readonly storage;
25441
- private readonly logger;
25442
- private readonly enableHashChain;
25443
- private readonly minSeverity;
25444
- private readonly categories?;
25445
- private lastHash;
25446
- private eventQueue;
25447
- private flushTimer;
25448
- private readonly flushIntervalMs;
25449
- private closed;
25450
- constructor(config: AuditLogConfig, storage?: IAuditStorage, logger?: ILogger);
25451
- private startFlushTimer;
25452
- private shouldLog;
25453
- private createEvent;
25454
- log(input: AuditEventInput): void;
25455
- logToolInvocation(opts: ToolInvocationAuditOpts): void;
25456
- logPolicyDecision(opts: PolicyDecisionAuditOpts): void;
25457
- logSecurityEvent(opts: SecurityEventAuditOpts): void;
25458
- logRateLimitViolation(opts: RateLimitAuditOpts): void;
25459
- /** Log system startup event */
25460
- logSystemStartup(metadata?: Record<string, unknown>): void;
25461
- /** Log system shutdown event */
25462
- logSystemShutdown(metadata?: Record<string, unknown>): void;
25463
- private flushQueue;
25464
- flush(): Promise<void>;
25465
- close(): Promise<void>;
25466
- }
25467
- declare function createAuditLogger(config: AuditLogConfig, storage?: IAuditStorage, logger?: ILogger): AuditLogger;
25468
-
25469
25496
  /**
25470
25497
  * nexus-agents/audit - Audit Storage Query Operations
25471
25498
  *
package/dist/index.js CHANGED
@@ -646,7 +646,7 @@ import {
646
646
  validateWorkflowDependencies,
647
647
  withLogging,
648
648
  writePredictions
649
- } from "./chunk-ZL3IBCH6.js";
649
+ } from "./chunk-V2Z7EHSY.js";
650
650
  import {
651
651
  getTokenEnvVars,
652
652
  hasToken,
@@ -768,7 +768,7 @@ import {
768
768
  validateApiKeyPresence,
769
769
  validateToolInput,
770
770
  withTimeout
771
- } from "./chunk-BOZ26RIB.js";
771
+ } from "./chunk-L3NHOUEX.js";
772
772
  import {
773
773
  PROVIDER_ENV_KEYS
774
774
  } from "./chunk-YU4NABXM.js";
@@ -853,7 +853,7 @@ import {
853
853
  resolveFallback,
854
854
  startStdioServer,
855
855
  validateNexusEnv
856
- } from "./chunk-Y7CD6AZW.js";
856
+ } from "./chunk-7USAZET2.js";
857
857
  import {
858
858
  DEFAULTS
859
859
  } from "./chunk-H43PABG4.js";
@@ -882,7 +882,7 @@ import {
882
882
  } from "./chunk-PTGBJFSD.js";
883
883
  import {
884
884
  executeExpert
885
- } from "./chunk-ZUWOFHNC.js";
885
+ } from "./chunk-JKDHWOQL.js";
886
886
  import {
887
887
  BaseCliAdapter,
888
888
  CLI_TIMEOUT_PROFILES,
@@ -911,7 +911,7 @@ import {
911
911
  isCliAvailable,
912
912
  isRetryableError,
913
913
  sleep
914
- } from "./chunk-SXWZS2V4.js";
914
+ } from "./chunk-YQAOMDR2.js";
915
915
  import "./chunk-GMOGKX4E.js";
916
916
  import {
917
917
  AgentCapability,
@@ -6700,7 +6700,7 @@ function buildVotingInput(plan, config) {
6700
6700
  }
6701
6701
  async function executeSingleVote(plan, config, log) {
6702
6702
  try {
6703
- const { executeVoting } = await import("./consensus-vote-CQ2JP6DC.js");
6703
+ const { executeVoting } = await import("./consensus-vote-HDM6HA5Z.js");
6704
6704
  const input = buildVotingInput(plan, config);
6705
6705
  const result = await executeVoting(input, log);
6706
6706
  return parseVotingResult(result);