nexus-agents 2.173.1 → 2.173.2
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/{chunk-CC3H5XJR.js → chunk-5UKKGPRS.js} +32 -11
- package/dist/chunk-5UKKGPRS.js.map +1 -0
- package/dist/{chunk-A7RTXDXK.js → chunk-GNXQBXFI.js} +2 -2
- package/dist/{chunk-OKZ72FVJ.js → chunk-H63X54TU.js} +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +20 -2
- package/dist/index.js +2 -2
- package/dist/{setup-command-JVQTBFUD.js → setup-command-24Z3KEHP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-CC3H5XJR.js.map +0 -1
- /package/dist/{chunk-A7RTXDXK.js.map → chunk-GNXQBXFI.js.map} +0 -0
- /package/dist/{chunk-OKZ72FVJ.js.map → chunk-H63X54TU.js.map} +0 -0
- /package/dist/{setup-command-JVQTBFUD.js.map → setup-command-24Z3KEHP.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-H63X54TU.js";
|
|
12
12
|
import {
|
|
13
13
|
BUILT_IN_EXPERTS
|
|
14
14
|
} from "./chunk-ZM4O442V.js";
|
|
@@ -2001,4 +2001,4 @@ export {
|
|
|
2001
2001
|
setupCommand,
|
|
2002
2002
|
setupCommandAsync
|
|
2003
2003
|
};
|
|
2004
|
-
//# sourceMappingURL=chunk-
|
|
2004
|
+
//# sourceMappingURL=chunk-GNXQBXFI.js.map
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
} from "./chunk-DHVMSIT5.js";
|
|
47
47
|
|
|
48
48
|
// src/version.ts
|
|
49
|
-
var VERSION = true ? "2.173.
|
|
49
|
+
var VERSION = true ? "2.173.2" : "dev";
|
|
50
50
|
|
|
51
51
|
// src/config/schemas-core.ts
|
|
52
52
|
import { z } from "zod";
|
|
@@ -2182,7 +2182,7 @@ async function runDoctorFix(result) {
|
|
|
2182
2182
|
writeLine2("\u2500".repeat(40));
|
|
2183
2183
|
let fixCount = 0;
|
|
2184
2184
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2185
|
-
const { runSetup } = await import("./setup-command-
|
|
2185
|
+
const { runSetup } = await import("./setup-command-24Z3KEHP.js");
|
|
2186
2186
|
const setupResult = runSetup({
|
|
2187
2187
|
skipMcp: true,
|
|
2188
2188
|
skipRules: true,
|
|
@@ -2295,4 +2295,4 @@ export {
|
|
|
2295
2295
|
startStdioServer,
|
|
2296
2296
|
closeServer
|
|
2297
2297
|
};
|
|
2298
|
-
//# sourceMappingURL=chunk-
|
|
2298
|
+
//# sourceMappingURL=chunk-H63X54TU.js.map
|
package/dist/cli.js
CHANGED
|
@@ -18,7 +18,7 @@ import "./chunk-O6VB54QJ.js";
|
|
|
18
18
|
import {
|
|
19
19
|
setupCommandAsync,
|
|
20
20
|
verifyCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GNXQBXFI.js";
|
|
22
22
|
import "./chunk-4KURMOBY.js";
|
|
23
23
|
import {
|
|
24
24
|
AuthHandler,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
validateCommand,
|
|
140
140
|
validateWorkflow,
|
|
141
141
|
wrapInMarkdownFence
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-5UKKGPRS.js";
|
|
143
143
|
import "./chunk-P6POKYSM.js";
|
|
144
144
|
import "./chunk-HFOQKCD2.js";
|
|
145
145
|
import "./chunk-YF35FKKD.js";
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
loadConfig,
|
|
167
167
|
runDoctor,
|
|
168
168
|
validateNexusEnv
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-H63X54TU.js";
|
|
170
170
|
import {
|
|
171
171
|
buildOpenAICompatAdapters,
|
|
172
172
|
readOpenAICompatEnv
|
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
|
-
*
|
|
12463
|
+
* this module's detector defaults.
|
|
12457
12464
|
*/
|
|
12458
12465
|
interface ExpertRecoveryPolicy {
|
|
12459
|
-
/**
|
|
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-
|
|
544
|
+
} from "./chunk-5UKKGPRS.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-
|
|
578
|
+
} from "./chunk-H63X54TU.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-
|
|
11
|
+
} from "./chunk-GNXQBXFI.js";
|
|
12
12
|
import "./chunk-4KURMOBY.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-H63X54TU.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-
|
|
41
|
+
//# sourceMappingURL=setup-command-24Z3KEHP.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexus-agents",
|
|
3
|
-
"version": "2.173.
|
|
3
|
+
"version": "2.173.2",
|
|
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",
|