nexus-agents 12.2.1 → 12.3.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.
- package/dist/{chunk-UVHJW6FI.js → chunk-2KTKBUPW.js} +2 -2
- package/dist/{chunk-5G3UAVUK.js → chunk-77KDH7HO.js} +352 -42
- package/dist/chunk-77KDH7HO.js.map +1 -0
- package/dist/{chunk-LIXEB5EN.js → chunk-LJ2QVML4.js} +2 -2
- package/dist/{chunk-T6C4BD24.js → chunk-VBO6SHQY.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{consensus-vote-O23FRFQT.js → consensus-vote-NHMTEXE7.js} +3 -3
- package/dist/{improvement-review-6OJ4I66W.js → improvement-review-PMTD4DVK.js} +3 -3
- package/dist/index.d.ts +108 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-5G3UAVUK.js.map +0 -1
- /package/dist/{chunk-UVHJW6FI.js.map → chunk-2KTKBUPW.js.map} +0 -0
- /package/dist/{chunk-LIXEB5EN.js.map → chunk-LJ2QVML4.js.map} +0 -0
- /package/dist/{chunk-T6C4BD24.js.map → chunk-VBO6SHQY.js.map} +0 -0
- /package/dist/{consensus-vote-O23FRFQT.js.map → consensus-vote-NHMTEXE7.js.map} +0 -0
- /package/dist/{improvement-review-6OJ4I66W.js.map → improvement-review-PMTD4DVK.js.map} +0 -0
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
toolSuccess,
|
|
27
27
|
withProgressHeartbeat,
|
|
28
28
|
wrapToolWithTimeout
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VBO6SHQY.js";
|
|
30
30
|
import {
|
|
31
31
|
getToolMemory
|
|
32
32
|
} from "./chunk-3TETLWLB.js";
|
|
@@ -9996,4 +9996,4 @@ export {
|
|
|
9996
9996
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
9997
9997
|
registerConsensusVoteTool
|
|
9998
9998
|
};
|
|
9999
|
-
//# sourceMappingURL=chunk-
|
|
9999
|
+
//# sourceMappingURL=chunk-LJ2QVML4.js.map
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
|
|
36
36
|
// src/version.ts
|
|
37
37
|
import semver from "semver";
|
|
38
|
-
var VERSION = true ? "12.
|
|
38
|
+
var VERSION = true ? "12.3.0" : "dev";
|
|
39
39
|
var NODE_ENGINE_RANGE = ">=24";
|
|
40
40
|
function isNodeVersionSupported(version) {
|
|
41
41
|
return semver.satisfies(version, NODE_ENGINE_RANGE);
|
|
@@ -2615,4 +2615,4 @@ export {
|
|
|
2615
2615
|
DEFAULT_CONSENSUS_CONFIG,
|
|
2616
2616
|
ConsensusMetricsSchema
|
|
2617
2617
|
};
|
|
2618
|
-
//# sourceMappingURL=chunk-
|
|
2618
|
+
//# sourceMappingURL=chunk-VBO6SHQY.js.map
|
package/dist/cli.js
CHANGED
|
@@ -203,7 +203,7 @@ import {
|
|
|
203
203
|
validateWorkflow,
|
|
204
204
|
withPanelWorkspace,
|
|
205
205
|
wrapInMarkdownFence
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-77KDH7HO.js";
|
|
207
207
|
import "./chunk-XIKYDLXZ.js";
|
|
208
208
|
import {
|
|
209
209
|
fenceExternalContent,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
recordVoteDecisionCost,
|
|
226
226
|
registerConsensusVoteTool,
|
|
227
227
|
toRecordDecision
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-LJ2QVML4.js";
|
|
229
229
|
import {
|
|
230
230
|
allOf,
|
|
231
231
|
anyOf
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
renderPlanAsResearch,
|
|
268
268
|
runImprovementReview,
|
|
269
269
|
scanForSecrets
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-2KTKBUPW.js";
|
|
271
271
|
import {
|
|
272
272
|
NODE_ENGINE_RANGE,
|
|
273
273
|
VERSION,
|
|
@@ -281,7 +281,7 @@ import {
|
|
|
281
281
|
stagePolicyFirewallForRollout,
|
|
282
282
|
toSdkCallback,
|
|
283
283
|
wrapToolWithTimeout
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-VBO6SHQY.js";
|
|
285
285
|
import "./chunk-KMGKOF5P.js";
|
|
286
286
|
import "./chunk-4GDMHCKX.js";
|
|
287
287
|
import "./chunk-I2THTVA4.js";
|
|
@@ -21087,7 +21087,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
21087
21087
|
let running = false;
|
|
21088
21088
|
const runOnce = async () => {
|
|
21089
21089
|
try {
|
|
21090
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
21090
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-PMTD4DVK.js");
|
|
21091
21091
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
21092
21092
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
21093
21093
|
logger22.info("Scheduled improvement_review complete", {
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
resetCorrelationTracker,
|
|
11
11
|
runConsensusForGoal,
|
|
12
12
|
unwrapVoteOrThrow
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LJ2QVML4.js";
|
|
14
14
|
import "./chunk-EZNIYU5T.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VBO6SHQY.js";
|
|
16
16
|
import "./chunk-3TETLWLB.js";
|
|
17
17
|
import "./chunk-RGB5OTRZ.js";
|
|
18
18
|
import "./chunk-47X2J6KX.js";
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
runConsensusForGoal,
|
|
61
61
|
unwrapVoteOrThrow
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=consensus-vote-
|
|
63
|
+
//# sourceMappingURL=consensus-vote-NHMTEXE7.js.map
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
loadSelfEvalSignals,
|
|
11
11
|
registerImprovementReviewTool,
|
|
12
12
|
runImprovementReview
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-2KTKBUPW.js";
|
|
14
|
+
import "./chunk-VBO6SHQY.js";
|
|
15
15
|
import "./chunk-TYLE7Z2S.js";
|
|
16
16
|
import "./chunk-JHTL4P4L.js";
|
|
17
17
|
import "./chunk-ZKWBLGZN.js";
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
registerImprovementReviewTool,
|
|
40
40
|
runImprovementReview
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=improvement-review-
|
|
42
|
+
//# sourceMappingURL=improvement-review-PMTD4DVK.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -35300,6 +35300,18 @@ declare function runBenchmark<TInstance, TPrediction, TEvalResult>(adapter: Benc
|
|
|
35300
35300
|
* @module pipeline/task-contract
|
|
35301
35301
|
*/
|
|
35302
35302
|
|
|
35303
|
+
/** Explicit capability requirement specification (Task T05, Conformance Case C35). */
|
|
35304
|
+
declare const CapabilityRequirementSchema: z.ZodObject<{
|
|
35305
|
+
id: z.ZodString;
|
|
35306
|
+
operation: z.ZodString;
|
|
35307
|
+
resourceRef: z.ZodOptional<z.ZodString>;
|
|
35308
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
35309
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
35310
|
+
advisory: "advisory";
|
|
35311
|
+
enforcing: "enforcing";
|
|
35312
|
+
}>>;
|
|
35313
|
+
}, z.core.$strip>;
|
|
35314
|
+
type CapabilityRequirement = z.infer<typeof CapabilityRequirementSchema>;
|
|
35303
35315
|
/** All valid task lifecycle statuses. */
|
|
35304
35316
|
declare const TASK_STATUSES: readonly ["intake", "clarifying", "planning", "approved", "executing", "validating", "done", "failed"];
|
|
35305
35317
|
/** All valid pipeline stage types. */
|
|
@@ -35323,7 +35335,15 @@ declare const ArtifactRefSchema: z.ZodObject<{
|
|
|
35323
35335
|
vote: "vote";
|
|
35324
35336
|
}>;
|
|
35325
35337
|
}, z.core.$strip>;
|
|
35326
|
-
/**
|
|
35338
|
+
/**
|
|
35339
|
+
* Unified task lifecycle contract.
|
|
35340
|
+
*
|
|
35341
|
+
* Capability representations note:
|
|
35342
|
+
* - `requiredCapabilities` and `capabilityGaps` track inferred or observed tool/expert
|
|
35343
|
+
* capabilities from LLM task analysis.
|
|
35344
|
+
* - `capabilityRequirements` specifies explicit, declarative requirements with execution
|
|
35345
|
+
* enforcement modes ('enforcing' | 'advisory') for worker dispatch gates.
|
|
35346
|
+
*/
|
|
35327
35347
|
declare const TaskContractSchema: z.ZodObject<{
|
|
35328
35348
|
id: z.ZodString;
|
|
35329
35349
|
description: z.ZodString;
|
|
@@ -35379,6 +35399,28 @@ declare const TaskContractSchema: z.ZodObject<{
|
|
|
35379
35399
|
updatedAt: z.ZodNumber;
|
|
35380
35400
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
35381
35401
|
error: z.ZodOptional<z.ZodString>;
|
|
35402
|
+
contractVersion: z.ZodOptional<z.ZodString>;
|
|
35403
|
+
capabilityRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35404
|
+
id: z.ZodString;
|
|
35405
|
+
operation: z.ZodString;
|
|
35406
|
+
resourceRef: z.ZodOptional<z.ZodString>;
|
|
35407
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
35408
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
35409
|
+
advisory: "advisory";
|
|
35410
|
+
enforcing: "enforcing";
|
|
35411
|
+
}>>;
|
|
35412
|
+
}, z.core.$strip>>>;
|
|
35413
|
+
evidenceObligations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35414
|
+
id: z.ZodString;
|
|
35415
|
+
artifactRef: z.ZodString;
|
|
35416
|
+
claim: z.ZodOptional<z.ZodString>;
|
|
35417
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
35418
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
35419
|
+
advisory: "advisory";
|
|
35420
|
+
enforcing: "enforcing";
|
|
35421
|
+
}>>;
|
|
35422
|
+
receiptIssuer: z.ZodOptional<z.ZodString>;
|
|
35423
|
+
}, z.core.$strip>>>;
|
|
35382
35424
|
}, z.core.$strip>;
|
|
35383
35425
|
/** Pipeline stage specification. */
|
|
35384
35426
|
declare const StageSpecSchema: z.ZodObject<{
|
|
@@ -35834,6 +35876,66 @@ interface ResolvedPipelineDeps {
|
|
|
35834
35876
|
*/
|
|
35835
35877
|
declare function resolvePipelineDeps(deps?: PipelineDeps): ResolvedPipelineDeps;
|
|
35836
35878
|
|
|
35879
|
+
declare const READINESS_LEVELS: readonly ["advertised", "authorized", "bound-to-worker", "probed", "used"];
|
|
35880
|
+
type ReadinessLevel = (typeof READINESS_LEVELS)[number];
|
|
35881
|
+
interface WorkerIdentityFields {
|
|
35882
|
+
readonly workerId: string;
|
|
35883
|
+
readonly sessionId: string;
|
|
35884
|
+
readonly adapterId: string;
|
|
35885
|
+
readonly toolSchemaDigest: string;
|
|
35886
|
+
readonly grantDigest: string;
|
|
35887
|
+
readonly subjectRevision: string;
|
|
35888
|
+
readonly policyVersion: string;
|
|
35889
|
+
}
|
|
35890
|
+
interface WorkerBoundaryContext extends WorkerIdentityFields {
|
|
35891
|
+
readonly approvedScratchDir?: string | undefined;
|
|
35892
|
+
readonly advertisedOperations: readonly string[];
|
|
35893
|
+
readonly authorizedOperations: readonly string[];
|
|
35894
|
+
}
|
|
35895
|
+
interface WorkerProbeExecutionOptions {
|
|
35896
|
+
readonly isScratchProbe: boolean;
|
|
35897
|
+
readonly scratchDir?: string | undefined;
|
|
35898
|
+
readonly signal?: AbortSignal | undefined;
|
|
35899
|
+
}
|
|
35900
|
+
type WorkerProbeOutcome = {
|
|
35901
|
+
readonly ok: true;
|
|
35902
|
+
readonly latencyMs?: number | undefined;
|
|
35903
|
+
} | {
|
|
35904
|
+
readonly ok: false;
|
|
35905
|
+
readonly errorClass: string;
|
|
35906
|
+
readonly message: string;
|
|
35907
|
+
};
|
|
35908
|
+
type WorkerResourceProbe = (requirement: CapabilityRequirement, context: WorkerBoundaryContext, options: WorkerProbeExecutionOptions) => Promise<WorkerProbeOutcome> | WorkerProbeOutcome;
|
|
35909
|
+
interface ReadinessProof extends WorkerIdentityFields {
|
|
35910
|
+
readonly proofId: string;
|
|
35911
|
+
readonly requirementId: string;
|
|
35912
|
+
readonly operation: string;
|
|
35913
|
+
readonly resourceRef?: string | undefined;
|
|
35914
|
+
readonly scope?: string | undefined;
|
|
35915
|
+
readonly level: ReadinessLevel;
|
|
35916
|
+
readonly issuedAt: number;
|
|
35917
|
+
readonly expiresAt: number;
|
|
35918
|
+
readonly probedInScratch?: boolean | undefined;
|
|
35919
|
+
readonly narrowerThanTargetWrite?: boolean | undefined;
|
|
35920
|
+
}
|
|
35921
|
+
interface WorkerReadinessConfig {
|
|
35922
|
+
readonly context: WorkerBoundaryContext;
|
|
35923
|
+
readonly probe: WorkerResourceProbe;
|
|
35924
|
+
readonly cache?: ReadinessProofCache | undefined;
|
|
35925
|
+
readonly now?: number | (() => number) | undefined;
|
|
35926
|
+
readonly proofTtlMs?: number | undefined;
|
|
35927
|
+
readonly probeTimeoutMs?: number | undefined;
|
|
35928
|
+
readonly totalTimeoutMs?: number | undefined;
|
|
35929
|
+
readonly signal?: AbortSignal | undefined;
|
|
35930
|
+
}
|
|
35931
|
+
declare class ReadinessProofCache {
|
|
35932
|
+
private readonly store;
|
|
35933
|
+
private readonly revokedIds;
|
|
35934
|
+
putProof(p: ReadinessProof): void;
|
|
35935
|
+
revokeProof(proofId: string): void;
|
|
35936
|
+
getValidProof(ctx: WorkerBoundaryContext, req: CapabilityRequirement, now: number): ReadinessProof | undefined;
|
|
35937
|
+
}
|
|
35938
|
+
|
|
35837
35939
|
/** Compiled pipeline ready for execution. */
|
|
35838
35940
|
interface CompiledPipeline {
|
|
35839
35941
|
readonly graph: CompiledGraph;
|
|
@@ -35882,6 +35984,11 @@ interface PipelineExecuteOptions {
|
|
|
35882
35984
|
* which bypassed per-repo routing (#2889).
|
|
35883
35985
|
*/
|
|
35884
35986
|
readonly runsDir?: string;
|
|
35987
|
+
/**
|
|
35988
|
+
* Worker boundary readiness configuration (Task T06 / #5129).
|
|
35989
|
+
* When provided, verifies capability requirements on the actual worker before execution.
|
|
35990
|
+
*/
|
|
35991
|
+
readonly workerReadiness?: WorkerReadinessConfig;
|
|
35885
35992
|
}
|
|
35886
35993
|
/** Compile result type. */
|
|
35887
35994
|
type CompileResult = {
|
package/dist/index.js
CHANGED
|
@@ -543,7 +543,7 @@ import {
|
|
|
543
543
|
withLogging,
|
|
544
544
|
withRetry,
|
|
545
545
|
withRetryWrapper
|
|
546
|
-
} from "./chunk-
|
|
546
|
+
} from "./chunk-77KDH7HO.js";
|
|
547
547
|
import {
|
|
548
548
|
AST_RULE_LANGUAGES,
|
|
549
549
|
AST_RULE_SEVERITIES,
|
|
@@ -603,7 +603,7 @@ import {
|
|
|
603
603
|
generateProposalId,
|
|
604
604
|
parseAgentPairKey,
|
|
605
605
|
registerConsensusVoteTool
|
|
606
|
-
} from "./chunk-
|
|
606
|
+
} from "./chunk-LJ2QVML4.js";
|
|
607
607
|
import {
|
|
608
608
|
allOf
|
|
609
609
|
} from "./chunk-EZNIYU5T.js";
|
|
@@ -657,7 +657,7 @@ import {
|
|
|
657
657
|
import {
|
|
658
658
|
ImprovementReviewInputSchema,
|
|
659
659
|
registerImprovementReviewTool
|
|
660
|
-
} from "./chunk-
|
|
660
|
+
} from "./chunk-2KTKBUPW.js";
|
|
661
661
|
import {
|
|
662
662
|
ConsensusAlgorithmSchema,
|
|
663
663
|
ConsensusEngineConfigSchema,
|
|
@@ -694,7 +694,7 @@ import {
|
|
|
694
694
|
toolSuccess,
|
|
695
695
|
toolSuccessStructured,
|
|
696
696
|
validateToolInput
|
|
697
|
-
} from "./chunk-
|
|
697
|
+
} from "./chunk-VBO6SHQY.js";
|
|
698
698
|
import {
|
|
699
699
|
FALLBACK_SCANNER_DATA,
|
|
700
700
|
buildPlanFromAnalysis,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexus-agents",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.0",
|
|
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",
|