nexus-agents 2.173.1 → 2.173.3

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.
package/dist/index.d.ts CHANGED
@@ -12444,6 +12444,13 @@ declare class FailureDetector {
12444
12444
  * 3. behavioral archetype (arxiv:2512.07497) → per-strategy action
12445
12445
  * 4. otherwise → PERMANENT (fail closed)
12446
12446
  *
12447
+ * PRIMARY shipped behavior is transport retry (step 2): the common recoverable
12448
+ * case is a transient 429/5xx/network blip. The archetype path (step 3) is a
12449
+ * SECONDARY guidance channel that only fires when the error cause-chain TEXT
12450
+ * carries ≥2 independent indicator families (see
12451
+ * {@link EXPERT_ERROR_TEXT_CONFIDENCE_THRESHOLD}); a lone one-family signal
12452
+ * (e.g. a 401 "Invalid API key") stays permanent and fails closed.
12453
+ *
12447
12454
  * The retry loop, backoff, and jitter are NOT reimplemented here — they are the
12448
12455
  * shared `withRetry`/`isRetryableError` primitives (adapters/retry.ts:9-19
12449
12456
  * forbids a third retry loop). Delay/attempt knobs default to
@@ -12453,10 +12460,14 @@ declare class FailureDetector {
12453
12460
  /**
12454
12461
  * Opt-in recovery policy attached to an expert at creation time. All fields are
12455
12462
  * optional and fall through to {@link DEFAULT_RETRY_CONFIG} (retry knobs) and
12456
- * {@link DEFAULT_DETECTOR_CONFIG} (detector).
12463
+ * this module's detector defaults.
12457
12464
  */
12458
12465
  interface ExpertRecoveryPolicy {
12459
- /** Maximum retries (attempts = maxRetries + 1). Default: DEFAULT_RETRY_CONFIG. */
12466
+ /**
12467
+ * Maximum retries (attempts = maxRetries + 1). Default:
12468
+ * {@link EXPERT_RECOVERY_DEFAULT_MAX_RETRIES} (1 → 2 attempts), NOT
12469
+ * DEFAULT_RETRY_CONFIG.maxRetries (3).
12470
+ */
12460
12471
  maxRetries?: number;
12461
12472
  /** Base backoff delay (ms). Default: DEFAULT_RETRY_CONFIG. */
12462
12473
  baseDelayMs?: number;
@@ -12500,6 +12511,13 @@ declare class RecoverableExpert extends Expert {
12500
12511
  execute(task: Task$1, options?: {
12501
12512
  signal?: AbortSignal;
12502
12513
  }): Promise<Result<TaskResult, AgentError$1>>;
12514
+ /**
12515
+ * Builds the annotated failure returned when recovery is exhausted. withRetry
12516
+ * skips isRetryable on the final attempt, so the per-attempt `lastClassification`
12517
+ * can be stale (or undefined for maxRetries:0). Re-classify the actual `lastError`
12518
+ * so the recovery trace labels the failure that was truly returned.
12519
+ */
12520
+ private annotateExhausted;
12503
12521
  /** Appends archetype recovery guidance to a mutable copy of the task. */
12504
12522
  private injectRecoveryGuidance;
12505
12523
  /** Recovers the DetectedFailure for an archetype (re-detect, else synthesize). */
package/dist/index.js CHANGED
@@ -541,7 +541,7 @@ import {
541
541
  withLogging,
542
542
  withRetry,
543
543
  withRetryWrapper
544
- } from "./chunk-CC3H5XJR.js";
544
+ } from "./chunk-GNZ2ZIT3.js";
545
545
  import {
546
546
  FALLBACK_SCANNER_DATA,
547
547
  buildPlanFromAnalysis,
@@ -575,7 +575,7 @@ import {
575
575
  getKnownNexusVarNames,
576
576
  startStdioServer,
577
577
  validateNexusEnv
578
- } from "./chunk-OKZ72FVJ.js";
578
+ } from "./chunk-WJHTVYP6.js";
579
579
  import {
580
580
  OPENAI_MODELS,
581
581
  OPENAI_MODEL_ALIASES,
@@ -8,9 +8,9 @@ import {
8
8
  runWizard,
9
9
  setupCommand,
10
10
  setupCommandAsync
11
- } from "./chunk-A7RTXDXK.js";
11
+ } from "./chunk-QZLISECU.js";
12
12
  import "./chunk-4KURMOBY.js";
13
- import "./chunk-OKZ72FVJ.js";
13
+ import "./chunk-WJHTVYP6.js";
14
14
  import "./chunk-3DYABC5Y.js";
15
15
  import "./chunk-5IDFZ2PC.js";
16
16
  import "./chunk-NUBSJGQZ.js";
@@ -38,4 +38,4 @@ export {
38
38
  setupCommand,
39
39
  setupCommandAsync
40
40
  };
41
- //# sourceMappingURL=setup-command-JVQTBFUD.js.map
41
+ //# sourceMappingURL=setup-command-EGDBEPM5.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-agents",
3
- "version": "2.173.1",
3
+ "version": "2.173.3",
4
4
  "description": "Governance substrate for AI coding agents — adversarial PR review, drift-detected rules, tamper-evident audit, and closed-loop outcome routing for Claude, Codex, Gemini, and OpenCode",
5
5
  "mcpName": "io.github.nexus-substrate/nexus-agents",
6
6
  "license": "MIT",