nexus-agents 8.8.1 → 8.8.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-Z55IEIBU.js → chunk-CQCVEC7P.js} +17 -12
- package/dist/{chunk-Z55IEIBU.js.map → chunk-CQCVEC7P.js.map} +1 -1
- package/dist/chunk-H5DTHO7O.js +7 -0
- package/dist/{chunk-FUMZUCP2.js → chunk-QY3HOLGD.js} +3 -3
- package/dist/{chunk-OCAMHBJ6.js → chunk-SQCFKQUR.js} +48 -15
- package/dist/{chunk-OCAMHBJ6.js.map → chunk-SQCFKQUR.js.map} +1 -1
- package/dist/{chunk-NEJF4F6R.js → chunk-W6SM3MU5.js} +2 -2
- package/dist/{chunk-VBC4JBRH.js → chunk-YQUM3UWK.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-YYAWXULO.js → consensus-vote-L4CN33XE.js} +4 -4
- package/dist/{improvement-review-LEITEY7D.js → improvement-review-WTZ4JV5V.js} +4 -4
- package/dist/index.d.ts +49 -0
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-I6LJVAPB.js → setup-data-dir-NU3YBIZB.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-DROYVWGE.js +0 -7
- /package/dist/{chunk-DROYVWGE.js.map → chunk-H5DTHO7O.js.map} +0 -0
- /package/dist/{chunk-FUMZUCP2.js.map → chunk-QY3HOLGD.js.map} +0 -0
- /package/dist/{chunk-NEJF4F6R.js.map → chunk-W6SM3MU5.js.map} +0 -0
- /package/dist/{chunk-VBC4JBRH.js.map → chunk-YQUM3UWK.js.map} +0 -0
- /package/dist/{consensus-vote-YYAWXULO.js.map → consensus-vote-L4CN33XE.js.map} +0 -0
- /package/dist/{improvement-review-LEITEY7D.js.map → improvement-review-WTZ4JV5V.js.map} +0 -0
- /package/dist/{setup-data-dir-I6LJVAPB.js.map → setup-data-dir-NU3YBIZB.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YQUM3UWK.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2159,4 +2159,4 @@ export {
|
|
|
2159
2159
|
runImprovementReview,
|
|
2160
2160
|
registerImprovementReviewTool
|
|
2161
2161
|
};
|
|
2162
|
-
//# sourceMappingURL=chunk-
|
|
2162
|
+
//# sourceMappingURL=chunk-W6SM3MU5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H5DTHO7O.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-3YKFLM2B.js";
|
|
@@ -2246,4 +2246,4 @@ export {
|
|
|
2246
2246
|
VOTING_THRESHOLDS,
|
|
2247
2247
|
ConsensusMetricsSchema
|
|
2248
2248
|
};
|
|
2249
|
-
//# sourceMappingURL=chunk-
|
|
2249
|
+
//# sourceMappingURL=chunk-YQUM3UWK.js.map
|
package/dist/cli.js
CHANGED
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
validateNexusEnv,
|
|
154
154
|
validateWorkflow,
|
|
155
155
|
wrapInMarkdownFence
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-CQCVEC7P.js";
|
|
157
157
|
import "./chunk-7AU5WLAJ.js";
|
|
158
158
|
import "./chunk-DGWT7DXX.js";
|
|
159
159
|
import "./chunk-64GMIUM5.js";
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
doctorCommand,
|
|
174
174
|
initDataDirectories,
|
|
175
175
|
runDoctor
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-QY3HOLGD.js";
|
|
177
177
|
import {
|
|
178
178
|
buildOpenAICompatAdapters,
|
|
179
179
|
readOpenAICompatEnv
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
recordAuthenticVote,
|
|
193
193
|
registerConsensusVoteTool,
|
|
194
194
|
toRecordDecision
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-SQCFKQUR.js";
|
|
196
196
|
import {
|
|
197
197
|
loadUsageEvents,
|
|
198
198
|
rollupByModel
|
|
@@ -228,15 +228,15 @@ import {
|
|
|
228
228
|
registerImprovementReviewTool,
|
|
229
229
|
runImprovementReview,
|
|
230
230
|
scanForSecrets
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-W6SM3MU5.js";
|
|
232
232
|
import {
|
|
233
233
|
createDefaultPolicyFirewall,
|
|
234
234
|
setGlobalPolicyFirewall,
|
|
235
235
|
stagePolicyFirewallForRollout
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-YQUM3UWK.js";
|
|
237
237
|
import {
|
|
238
238
|
VERSION
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-H5DTHO7O.js";
|
|
240
240
|
import "./chunk-3YKFLM2B.js";
|
|
241
241
|
import {
|
|
242
242
|
createUnifiedRegistry,
|
|
@@ -19667,7 +19667,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
19667
19667
|
let running = false;
|
|
19668
19668
|
const runOnce = async () => {
|
|
19669
19669
|
try {
|
|
19670
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
19670
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-WTZ4JV5V.js");
|
|
19671
19671
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
19672
19672
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
19673
19673
|
logger22.info("Scheduled improvement_review complete", {
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
resetCorrelationTracker,
|
|
12
12
|
runConsensusForGoal,
|
|
13
13
|
unwrapVoteOrThrow
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SQCFKQUR.js";
|
|
15
15
|
import "./chunk-6HETGJSB.js";
|
|
16
16
|
import "./chunk-OQB3XC5O.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YQUM3UWK.js";
|
|
18
|
+
import "./chunk-H5DTHO7O.js";
|
|
19
19
|
import "./chunk-3YKFLM2B.js";
|
|
20
20
|
import "./chunk-276GRITW.js";
|
|
21
21
|
import "./chunk-NR62IQDC.js";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
runConsensusForGoal,
|
|
51
51
|
unwrapVoteOrThrow
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=consensus-vote-
|
|
53
|
+
//# sourceMappingURL=consensus-vote-L4CN33XE.js.map
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
loadSelfEvalSignals,
|
|
12
12
|
registerImprovementReviewTool,
|
|
13
13
|
runImprovementReview
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-W6SM3MU5.js";
|
|
15
|
+
import "./chunk-YQUM3UWK.js";
|
|
16
|
+
import "./chunk-H5DTHO7O.js";
|
|
17
17
|
import "./chunk-3YKFLM2B.js";
|
|
18
18
|
import "./chunk-ERL3XHQO.js";
|
|
19
19
|
import "./chunk-7WJGV5DN.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
registerImprovementReviewTool,
|
|
34
34
|
runImprovementReview
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=improvement-review-
|
|
36
|
+
//# sourceMappingURL=improvement-review-WTZ4JV5V.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -26942,6 +26942,7 @@ declare const JobResultSchema: z.ZodObject<{
|
|
|
26942
26942
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
26943
26943
|
error: z.ZodOptional<z.ZodString>;
|
|
26944
26944
|
signalAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
26945
|
+
producerVersion: z.ZodOptional<z.ZodString>;
|
|
26945
26946
|
}, z.core.$strip>;
|
|
26946
26947
|
type JobResult = z.infer<typeof JobResultSchema>;
|
|
26947
26948
|
/**
|
|
@@ -26970,6 +26971,36 @@ interface JobSummary {
|
|
|
26970
26971
|
readonly hasError: boolean;
|
|
26971
26972
|
}
|
|
26972
26973
|
|
|
26974
|
+
/**
|
|
26975
|
+
* Task-state job-result source (#3090 / epic #2631 Stage 2 migration).
|
|
26976
|
+
*
|
|
26977
|
+
* Adapts the Stage-2 `StructuredTaskState` surface into the Stage-1
|
|
26978
|
+
* `JobResult` shape so `get_job_result` (and, later, `list_jobs`) can read
|
|
26979
|
+
* an async job's result from the canonical task-state log instead of the
|
|
26980
|
+
* sidecar. This is the **reader half** of the sidecar→Stage-2 migration:
|
|
26981
|
+
* it is flag-gated with the sidecar as the default, so production behavior
|
|
26982
|
+
* is unchanged until the writer half (#3091) makes `jobId === taskId` real.
|
|
26983
|
+
*
|
|
26984
|
+
* Mapping contract (see #3090):
|
|
26985
|
+
* - status: `cancellation` present → `cancelled`; `stage==='complete'` →
|
|
26986
|
+
* `complete`; `stage==='failed'` → `failed`; else → `pending`
|
|
26987
|
+
* (`blocked` is recoverable, still in-flight).
|
|
26988
|
+
* - `result` ← `state.result`; `error` ← cancellation.reason (cancelled)
|
|
26989
|
+
* or the most-recent blocker (failed).
|
|
26990
|
+
* - `toolName` ← derived from the jobId prefix (`orch-` → `orchestrate`).
|
|
26991
|
+
* - `createdAt` ← `state.createdAt`; `completedAt` ← `state.updatedAt` when
|
|
26992
|
+
* terminal, omitted otherwise.
|
|
26993
|
+
*
|
|
26994
|
+
* @module mcp/jobs/task-state-source
|
|
26995
|
+
*/
|
|
26996
|
+
|
|
26997
|
+
/**
|
|
26998
|
+
* Which store answered a job-result read. The values are the
|
|
26999
|
+
* `NEXUS_JOB_RESULT_SOURCE` value set (`config/env-schema.ts`) so a caller
|
|
27000
|
+
* can relate the answer to the toggle that selected it.
|
|
27001
|
+
*/
|
|
27002
|
+
type JobResultSource = 'sidecar' | 'task_state';
|
|
27003
|
+
|
|
26973
27004
|
/**
|
|
26974
27005
|
* `get_job_result` MCP tool (#3042, Stage 1 of epic #2631).
|
|
26975
27006
|
*
|
|
@@ -27008,6 +27039,24 @@ interface GetJobResultResponse {
|
|
|
27008
27039
|
* qualifier a poller needs to stop waiting.
|
|
27009
27040
|
*/
|
|
27010
27041
|
readonly abandoned?: boolean;
|
|
27042
|
+
/**
|
|
27043
|
+
* Whether `record.producerVersion` identifies a build (#5008). Present
|
|
27044
|
+
* whenever `found` is true.
|
|
27045
|
+
*
|
|
27046
|
+
* This tool's own `_meta['nexus-agents/build']` stamp names the READER's
|
|
27047
|
+
* build; `record.producerVersion` names the build that ran the job. `false`
|
|
27048
|
+
* when the record predates the field or the producer was a `'dev'` build,
|
|
27049
|
+
* in which case the two stamps must not be compared.
|
|
27050
|
+
*/
|
|
27051
|
+
readonly producerVersionMeasured?: boolean;
|
|
27052
|
+
/**
|
|
27053
|
+
* Which store the record came from (#5008 follow-up). Present whenever
|
|
27054
|
+
* `found` is true. A `task_state` record is synthesized from the task-state
|
|
27055
|
+
* log and never carries `producerVersion`, so on that source an absent
|
|
27056
|
+
* version says nothing about the producer's age or build — only a `sidecar`
|
|
27057
|
+
* record's absence means it predates the field.
|
|
27058
|
+
*/
|
|
27059
|
+
readonly producerVersionSource?: JobResultSource;
|
|
27011
27060
|
readonly errorMessage?: string;
|
|
27012
27061
|
}
|
|
27013
27062
|
type GetJobResultDeps = BaseMcpToolDeps;
|
package/dist/index.js
CHANGED
|
@@ -553,7 +553,7 @@ import {
|
|
|
553
553
|
withLogging,
|
|
554
554
|
withRetry,
|
|
555
555
|
withRetryWrapper
|
|
556
|
-
} from "./chunk-
|
|
556
|
+
} from "./chunk-CQCVEC7P.js";
|
|
557
557
|
import {
|
|
558
558
|
FALLBACK_SCANNER_DATA,
|
|
559
559
|
buildPlanFromAnalysis,
|
|
@@ -586,7 +586,7 @@ import {
|
|
|
586
586
|
connectTransport,
|
|
587
587
|
createServer,
|
|
588
588
|
startStdioServer
|
|
589
|
-
} from "./chunk-
|
|
589
|
+
} from "./chunk-QY3HOLGD.js";
|
|
590
590
|
import {
|
|
591
591
|
OPENAI_MODELS,
|
|
592
592
|
OPENAI_MODEL_ALIASES,
|
|
@@ -644,7 +644,7 @@ import {
|
|
|
644
644
|
generateProposalId,
|
|
645
645
|
parseAgentPairKey,
|
|
646
646
|
registerConsensusVoteTool
|
|
647
|
-
} from "./chunk-
|
|
647
|
+
} from "./chunk-SQCFKQUR.js";
|
|
648
648
|
import "./chunk-6HETGJSB.js";
|
|
649
649
|
import {
|
|
650
650
|
allOf
|
|
@@ -697,7 +697,7 @@ import {
|
|
|
697
697
|
import {
|
|
698
698
|
ImprovementReviewInputSchema,
|
|
699
699
|
registerImprovementReviewTool
|
|
700
|
-
} from "./chunk-
|
|
700
|
+
} from "./chunk-W6SM3MU5.js";
|
|
701
701
|
import {
|
|
702
702
|
AgentPerformanceSchema,
|
|
703
703
|
ConsensusAlgorithmSchema,
|
|
@@ -733,10 +733,10 @@ import {
|
|
|
733
733
|
toolSuccess,
|
|
734
734
|
toolSuccessStructured,
|
|
735
735
|
validateToolInput
|
|
736
|
-
} from "./chunk-
|
|
736
|
+
} from "./chunk-YQUM3UWK.js";
|
|
737
737
|
import {
|
|
738
738
|
VERSION
|
|
739
|
-
} from "./chunk-
|
|
739
|
+
} from "./chunk-H5DTHO7O.js";
|
|
740
740
|
import {
|
|
741
741
|
AuditTrail,
|
|
742
742
|
MAX_STRIPPED_ELEMENTS_PER_EVENT,
|
|
@@ -4679,7 +4679,7 @@ function buildVotingInput(plan, config) {
|
|
|
4679
4679
|
}
|
|
4680
4680
|
async function executeSingleVote(plan, config, log) {
|
|
4681
4681
|
try {
|
|
4682
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
4682
|
+
const { executeVoting } = await import("./consensus-vote-L4CN33XE.js");
|
|
4683
4683
|
const input = buildVotingInput(plan, config);
|
|
4684
4684
|
const result = await executeVoting(input, log);
|
|
4685
4685
|
return parseVotingResult(result);
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
NEXUS_DATA_DIR,
|
|
3
3
|
describeDataDirFix,
|
|
4
4
|
initDataDirectories
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QY3HOLGD.js";
|
|
6
6
|
import "./chunk-SNSPYZQT.js";
|
|
7
7
|
import "./chunk-6HETGJSB.js";
|
|
8
8
|
import "./chunk-OQB3XC5O.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-H5DTHO7O.js";
|
|
10
10
|
import "./chunk-6T3EPABN.js";
|
|
11
11
|
import "./chunk-7QQ5F7T5.js";
|
|
12
12
|
import "./chunk-FKKVZRSY.js";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
describeDataDirFix,
|
|
27
27
|
initDataDirectories
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=setup-data-dir-
|
|
29
|
+
//# sourceMappingURL=setup-data-dir-NU3YBIZB.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexus-agents",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.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",
|
package/dist/chunk-DROYVWGE.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|