nexus-agents 8.46.9 → 8.46.11
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-TDVAJEQL.js → chunk-2FKUGYFZ.js} +3 -3
- package/dist/{chunk-PUGFOPEA.js → chunk-B4RFPDGA.js} +3 -3
- package/dist/{chunk-GW6NZFTH.js → chunk-BSPONVEB.js} +51 -11
- package/dist/{chunk-GW6NZFTH.js.map → chunk-BSPONVEB.js.map} +1 -1
- package/dist/{chunk-TG4IGHLY.js → chunk-Q62J7AXA.js} +2 -2
- package/dist/{chunk-TG4IGHLY.js.map → chunk-Q62J7AXA.js.map} +1 -1
- package/dist/{chunk-RJRKVBLP.js → chunk-QX7FSVP2.js} +2 -2
- package/dist/{chunk-QGXQMRA7.js → chunk-SHGQ5DYB.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-LQZKNJ3N.js → consensus-vote-SYWZBZX5.js} +4 -4
- package/dist/{improvement-review-GWUZTT3L.js → improvement-review-LRJAS6YY.js} +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-GW2NJ3YM.js → setup-data-dir-7JFXMMFS.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-TDVAJEQL.js.map → chunk-2FKUGYFZ.js.map} +0 -0
- /package/dist/{chunk-PUGFOPEA.js.map → chunk-B4RFPDGA.js.map} +0 -0
- /package/dist/{chunk-RJRKVBLP.js.map → chunk-QX7FSVP2.js.map} +0 -0
- /package/dist/{chunk-QGXQMRA7.js.map → chunk-SHGQ5DYB.js.map} +0 -0
- /package/dist/{consensus-vote-LQZKNJ3N.js.map → consensus-vote-SYWZBZX5.js.map} +0 -0
- /package/dist/{improvement-review-GWUZTT3L.js.map → improvement-review-LRJAS6YY.js.map} +0 -0
- /package/dist/{setup-data-dir-GW2NJ3YM.js.map → setup-data-dir-7JFXMMFS.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
NODE_ENGINE_RANGE,
|
|
9
9
|
VERSION,
|
|
10
10
|
isNodeVersionSupported
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q62J7AXA.js";
|
|
12
12
|
import {
|
|
13
13
|
capitalize
|
|
14
14
|
} from "./chunk-7LP6VJRP.js";
|
|
@@ -1227,7 +1227,7 @@ async function runDoctorFix(result) {
|
|
|
1227
1227
|
writeLine2("\u2500".repeat(40));
|
|
1228
1228
|
let fixCount = 0;
|
|
1229
1229
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1230
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1230
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-7JFXMMFS.js");
|
|
1231
1231
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1232
1232
|
writeLine2(outcome.line);
|
|
1233
1233
|
if (outcome.counted) fixCount++;
|
|
@@ -1329,4 +1329,4 @@ export {
|
|
|
1329
1329
|
startStdioServer,
|
|
1330
1330
|
closeServer
|
|
1331
1331
|
};
|
|
1332
|
-
//# sourceMappingURL=chunk-
|
|
1332
|
+
//# sourceMappingURL=chunk-2FKUGYFZ.js.map
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SHGQ5DYB.js";
|
|
27
27
|
import {
|
|
28
28
|
VERSION
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Q62J7AXA.js";
|
|
30
30
|
import {
|
|
31
31
|
assessPanelIndependence,
|
|
32
32
|
countDistinctModels,
|
|
@@ -7850,4 +7850,4 @@ export {
|
|
|
7850
7850
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
7851
7851
|
registerConsensusVoteTool
|
|
7852
7852
|
};
|
|
7853
|
-
//# sourceMappingURL=chunk-
|
|
7853
|
+
//# sourceMappingURL=chunk-B4RFPDGA.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2FKUGYFZ.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-QLF22ILR.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
toJobSummary,
|
|
56
56
|
updateStage,
|
|
57
57
|
writeJobCancelled
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-B4RFPDGA.js";
|
|
59
59
|
import {
|
|
60
60
|
allOf,
|
|
61
61
|
anyOf
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
} from "./chunk-43ONDTAK.js";
|
|
76
76
|
import {
|
|
77
77
|
withPrerequisite
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-QX7FSVP2.js";
|
|
79
79
|
import {
|
|
80
80
|
NOOP_NOTIFIER,
|
|
81
81
|
RateLimiter,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
withAuditTrail,
|
|
101
101
|
withProgressHeartbeat,
|
|
102
102
|
wrapToolWithTimeout
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-SHGQ5DYB.js";
|
|
104
104
|
import {
|
|
105
105
|
createAuditTrail,
|
|
106
106
|
createGraphAuditBridge,
|
|
@@ -31134,7 +31134,27 @@ var CapabilityGapSummarySchema = z59.object({
|
|
|
31134
31134
|
experts: z59.array(z59.string())
|
|
31135
31135
|
}),
|
|
31136
31136
|
gaps: z59.array(z59.unknown()),
|
|
31137
|
-
|
|
31137
|
+
/**
|
|
31138
|
+
* Meaningful ONLY when `gapsMeasured` is true. `gaps: []` from a detector
|
|
31139
|
+
* that ran and `gaps: []` from a builder that never called one are
|
|
31140
|
+
* byte-identical on the wire; this field is what tells them apart.
|
|
31141
|
+
*/
|
|
31142
|
+
allSatisfied: z59.boolean(),
|
|
31143
|
+
/**
|
|
31144
|
+
* Whether a capability-gap detector actually ran (#5919).
|
|
31145
|
+
*
|
|
31146
|
+
* `buildBaseTaskContract` writes `allSatisfied: true` with an EMPTY
|
|
31147
|
+
* `available` set — a verdict from a detector that never ran, on the
|
|
31148
|
+
* `orchestrate` and `delegate_to_model` paths. Nothing reads it today, which
|
|
31149
|
+
* is camouflage rather than safety: it is the same shape as #5896's
|
|
31150
|
+
* ValidationHarness, where a missing consumer let a hard-coded verdict sit
|
|
31151
|
+
* until someone eventually trusted it.
|
|
31152
|
+
*
|
|
31153
|
+
* Named for the vocabulary this repo already uses for exactly this —
|
|
31154
|
+
* `tokensMeasured`, `policyEvaluated`, `routerTypeMeasured`. A consumer that
|
|
31155
|
+
* needs a real answer must branch on this, not on `allSatisfied` alone.
|
|
31156
|
+
*/
|
|
31157
|
+
gapsMeasured: z59.boolean()
|
|
31138
31158
|
});
|
|
31139
31159
|
var ArtifactRefSchema = z59.object({
|
|
31140
31160
|
id: z59.string().min(1),
|
|
@@ -31959,6 +31979,16 @@ function createDefaultPolicyEngine() {
|
|
|
31959
31979
|
|
|
31960
31980
|
// src/pipeline/task-contract-builders.ts
|
|
31961
31981
|
import { randomUUID as randomUUID9 } from "node:crypto";
|
|
31982
|
+
var sharedAnalyzer;
|
|
31983
|
+
function analyzeForContract(task) {
|
|
31984
|
+
sharedAnalyzer ??= createSharedTaskAnalyzer();
|
|
31985
|
+
const result = sharedAnalyzer.analyze(task);
|
|
31986
|
+
return {
|
|
31987
|
+
complexity: result.complexity,
|
|
31988
|
+
taskType: result.taskType,
|
|
31989
|
+
ambiguityScore: result.ambiguityScore
|
|
31990
|
+
};
|
|
31991
|
+
}
|
|
31962
31992
|
function buildBaseTaskContract(input) {
|
|
31963
31993
|
const now = Date.now();
|
|
31964
31994
|
return {
|
|
@@ -31971,7 +32001,13 @@ function buildBaseTaskContract(input) {
|
|
|
31971
32001
|
capabilityGaps: {
|
|
31972
32002
|
available: { tools: [], experts: [] },
|
|
31973
32003
|
gaps: [],
|
|
31974
|
-
allSatisfied
|
|
32004
|
+
// NOT a measurement (#5919). No detector runs here, so `allSatisfied`
|
|
32005
|
+
// carries no information — `gapsMeasured` is what says so. Wiring
|
|
32006
|
+
// `capability-gap-detector.ts` in is the follow-up; its cost on this hot
|
|
32007
|
+
// path has not been measured, and asserting an unmeasured verdict is the
|
|
32008
|
+
// part that had to stop now.
|
|
32009
|
+
allSatisfied: true,
|
|
32010
|
+
gapsMeasured: false
|
|
31975
32011
|
},
|
|
31976
32012
|
artifacts: [],
|
|
31977
32013
|
metadata: { ...input.metadata },
|
|
@@ -32006,7 +32042,9 @@ function delegateInputToTaskContract(input, opts = {}) {
|
|
|
32006
32042
|
return buildBaseTaskContract({
|
|
32007
32043
|
idPrefix: "delegate",
|
|
32008
32044
|
task: input.task,
|
|
32009
|
-
|
|
32045
|
+
// Derived, not asserted (#5924). This was a literal — every task through
|
|
32046
|
+
// this entry point recorded `moderate/routing/0.1` whatever it actually was.
|
|
32047
|
+
analysis: analyzeForContract(input.task),
|
|
32010
32048
|
metadata
|
|
32011
32049
|
});
|
|
32012
32050
|
}
|
|
@@ -32096,7 +32134,9 @@ function orchestrateInputToTaskContract(input, opts = {}) {
|
|
|
32096
32134
|
return buildBaseTaskContract({
|
|
32097
32135
|
idPrefix: "orchestrate",
|
|
32098
32136
|
task: input.task,
|
|
32099
|
-
|
|
32137
|
+
// Derived, not asserted (#5924). This was a literal — every task through
|
|
32138
|
+
// this entry point recorded `high/orchestration/0.3` whatever it actually was.
|
|
32139
|
+
analysis: analyzeForContract(input.task),
|
|
32100
32140
|
metadata
|
|
32101
32141
|
});
|
|
32102
32142
|
}
|
|
@@ -46052,7 +46092,7 @@ function buildVotingInput(plan, config) {
|
|
|
46052
46092
|
}
|
|
46053
46093
|
async function executeSingleVote(plan, config, log) {
|
|
46054
46094
|
try {
|
|
46055
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
46095
|
+
const { executeVoting } = await import("./consensus-vote-SYWZBZX5.js");
|
|
46056
46096
|
const input = buildVotingInput(plan, config);
|
|
46057
46097
|
const result = await executeVoting(input, log);
|
|
46058
46098
|
return parseVotingResult(result);
|
|
@@ -47847,7 +47887,7 @@ ${contextBlock}`;
|
|
|
47847
47887
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47848
47888
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47849
47889
|
try {
|
|
47850
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47890
|
+
const { executeVoting } = await import("./consensus-vote-SYWZBZX5.js");
|
|
47851
47891
|
const votingResult = await executeVoting(
|
|
47852
47892
|
{
|
|
47853
47893
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -56581,4 +56621,4 @@ export {
|
|
|
56581
56621
|
startPipelineEventBridge,
|
|
56582
56622
|
shutdownPipelineEventBridge
|
|
56583
56623
|
};
|
|
56584
|
-
//# sourceMappingURL=chunk-
|
|
56624
|
+
//# sourceMappingURL=chunk-BSPONVEB.js.map
|