nexus-agents 8.126.4 → 8.126.5
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-MYAARVJH.js → chunk-3CFROGBP.js} +36 -43
- package/dist/{chunk-MYAARVJH.js.map → chunk-3CFROGBP.js.map} +1 -1
- package/dist/{chunk-M2RJLD47.js → chunk-43YEAMED.js} +3 -3
- package/dist/{chunk-KZOGXYW4.js → chunk-4N3XAYN7.js} +3 -3
- package/dist/{chunk-T2IOLXM7.js → chunk-5NFCIY5V.js} +2 -2
- package/dist/{chunk-HBGFX22Q.js → chunk-5WSMU5OA.js} +2 -2
- package/dist/{chunk-WM34GXGL.js → chunk-JFNPXM6W.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-UGMLPMIC.js → consensus-vote-V56W3QW5.js} +4 -4
- package/dist/{improvement-review-T64XGYC7.js → improvement-review-2OAD2GGI.js} +4 -4
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-3LF77NJ5.js → setup-data-dir-S4HDN2CW.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-M2RJLD47.js.map → chunk-43YEAMED.js.map} +0 -0
- /package/dist/{chunk-KZOGXYW4.js.map → chunk-4N3XAYN7.js.map} +0 -0
- /package/dist/{chunk-T2IOLXM7.js.map → chunk-5NFCIY5V.js.map} +0 -0
- /package/dist/{chunk-HBGFX22Q.js.map → chunk-5WSMU5OA.js.map} +0 -0
- /package/dist/{chunk-WM34GXGL.js.map → chunk-JFNPXM6W.js.map} +0 -0
- /package/dist/{consensus-vote-UGMLPMIC.js.map → consensus-vote-V56W3QW5.js.map} +0 -0
- /package/dist/{improvement-review-T64XGYC7.js.map → improvement-review-2OAD2GGI.js.map} +0 -0
- /package/dist/{setup-data-dir-3LF77NJ5.js.map → setup-data-dir-S4HDN2CW.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-HNJTJE6A.js";
|
|
10
10
|
import {
|
|
11
11
|
withPrerequisite
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5NFCIY5V.js";
|
|
13
13
|
import {
|
|
14
14
|
generateSecurityPlan
|
|
15
15
|
} from "./chunk-I7URLQM7.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
DEFAULT_TASK_TTL_MS,
|
|
43
43
|
clampTaskTtl
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-43YEAMED.js";
|
|
45
45
|
import {
|
|
46
46
|
executeExpert
|
|
47
47
|
} from "./chunk-RG6DJ7FF.js";
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
withFileLock,
|
|
97
97
|
withWarnings,
|
|
98
98
|
writeJobCancelled
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-4N3XAYN7.js";
|
|
100
100
|
import {
|
|
101
101
|
NOOP_NOTIFIER,
|
|
102
102
|
RateLimiter,
|
|
@@ -122,12 +122,12 @@ import {
|
|
|
122
122
|
toolSuccessStructured,
|
|
123
123
|
withProgressHeartbeat,
|
|
124
124
|
wrapToolWithTimeout
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-5WSMU5OA.js";
|
|
126
126
|
import {
|
|
127
127
|
VERSION,
|
|
128
128
|
createRequestContext,
|
|
129
129
|
measuredTrustTier
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-JFNPXM6W.js";
|
|
131
131
|
import {
|
|
132
132
|
allOf,
|
|
133
133
|
anyOf
|
|
@@ -31585,12 +31585,9 @@ var CapabilityGapSummarySchema = z58.object({
|
|
|
31585
31585
|
/**
|
|
31586
31586
|
* Whether a capability-gap detector actually ran (#5919).
|
|
31587
31587
|
*
|
|
31588
|
-
* `buildBaseTaskContract`
|
|
31589
|
-
*
|
|
31590
|
-
*
|
|
31591
|
-
* is camouflage rather than safety: it is the same shape as #5896's
|
|
31592
|
-
* ValidationHarness, where a missing consumer let a hard-coded verdict sit
|
|
31593
|
-
* until someone eventually trusted it.
|
|
31588
|
+
* `buildBaseTaskContract` runs the canonical detector on inferred
|
|
31589
|
+
* requirements for both entry points. Its report describes registry support,
|
|
31590
|
+
* not observed tool execution; inferred gaps retain their origin (#5923).
|
|
31594
31591
|
*
|
|
31595
31592
|
* Named for the vocabulary this repo already uses for exactly this —
|
|
31596
31593
|
* `tokensMeasured`, `policyEvaluated`, `routerTypeMeasured`. A consumer that
|
|
@@ -32445,34 +32442,36 @@ function createDefaultPolicyEngine() {
|
|
|
32445
32442
|
// src/pipeline/task-contract-builders.ts
|
|
32446
32443
|
import { randomUUID as randomUUID9 } from "node:crypto";
|
|
32447
32444
|
var sharedAnalyzer;
|
|
32448
|
-
function
|
|
32445
|
+
function analyzeTask(task) {
|
|
32449
32446
|
sharedAnalyzer ??= createSharedTaskAnalyzer();
|
|
32450
|
-
|
|
32451
|
-
return {
|
|
32452
|
-
complexity: result.complexity,
|
|
32453
|
-
taskType: result.taskType,
|
|
32454
|
-
ambiguityScore: result.ambiguityScore
|
|
32455
|
-
};
|
|
32447
|
+
return sharedAnalyzer.analyze(task);
|
|
32456
32448
|
}
|
|
32457
32449
|
function buildBaseTaskContract(input) {
|
|
32450
|
+
const analysis = analyzeTask(input.task);
|
|
32451
|
+
const report = detectCapabilityGaps(analysis.requiredCapabilities);
|
|
32458
32452
|
const now = Date.now();
|
|
32459
32453
|
return {
|
|
32460
32454
|
id: `${input.idPrefix}-${randomUUID9().slice(0, 8)}`,
|
|
32461
32455
|
description: input.task,
|
|
32462
32456
|
status: "approved",
|
|
32463
|
-
analysis: input.analysis
|
|
32464
|
-
|
|
32465
|
-
|
|
32457
|
+
analysis: input.analysis ?? {
|
|
32458
|
+
complexity: analysis.complexity,
|
|
32459
|
+
taskType: analysis.taskType,
|
|
32460
|
+
ambiguityScore: analysis.ambiguityScore
|
|
32461
|
+
},
|
|
32462
|
+
constraints: { ...analysis.constraints, scope: [...analysis.constraints.scope] },
|
|
32463
|
+
requiredCapabilities: {
|
|
32464
|
+
tools: [...analysis.requiredCapabilities.tools],
|
|
32465
|
+
experts: [...analysis.requiredCapabilities.experts]
|
|
32466
|
+
},
|
|
32466
32467
|
capabilityGaps: {
|
|
32467
|
-
available: {
|
|
32468
|
-
|
|
32469
|
-
|
|
32470
|
-
|
|
32471
|
-
|
|
32472
|
-
|
|
32473
|
-
|
|
32474
|
-
allSatisfied: true,
|
|
32475
|
-
gapsMeasured: false
|
|
32468
|
+
available: {
|
|
32469
|
+
tools: [...report.available.tools],
|
|
32470
|
+
experts: [...report.available.experts]
|
|
32471
|
+
},
|
|
32472
|
+
gaps: [...report.gaps],
|
|
32473
|
+
allSatisfied: report.allSatisfied,
|
|
32474
|
+
gapsMeasured: true
|
|
32476
32475
|
},
|
|
32477
32476
|
artifacts: [],
|
|
32478
32477
|
metadata: { ...input.metadata },
|
|
@@ -32507,9 +32506,6 @@ function delegateInputToTaskContract(input, opts = {}) {
|
|
|
32507
32506
|
return buildBaseTaskContract({
|
|
32508
32507
|
idPrefix: "delegate",
|
|
32509
32508
|
task: input.task,
|
|
32510
|
-
// Derived, not asserted (#5924). This was a literal — every task through
|
|
32511
|
-
// this entry point recorded `moderate/routing/0.1` whatever it actually was.
|
|
32512
|
-
analysis: analyzeForContract(input.task),
|
|
32513
32509
|
metadata
|
|
32514
32510
|
});
|
|
32515
32511
|
}
|
|
@@ -32599,9 +32595,6 @@ function orchestrateInputToTaskContract(input, opts = {}) {
|
|
|
32599
32595
|
return buildBaseTaskContract({
|
|
32600
32596
|
idPrefix: "orchestrate",
|
|
32601
32597
|
task: input.task,
|
|
32602
|
-
// Derived, not asserted (#5924). This was a literal — every task through
|
|
32603
|
-
// this entry point recorded `high/orchestration/0.3` whatever it actually was.
|
|
32604
|
-
analysis: analyzeForContract(input.task),
|
|
32605
32598
|
metadata
|
|
32606
32599
|
});
|
|
32607
32600
|
}
|
|
@@ -37651,7 +37644,7 @@ var TOOL_SCHEMA = {
|
|
|
37651
37644
|
function hasKeyword(text, keywords) {
|
|
37652
37645
|
return keywords.some((k) => text.includes(k));
|
|
37653
37646
|
}
|
|
37654
|
-
function
|
|
37647
|
+
function analyzeTask2(task) {
|
|
37655
37648
|
const taskLower = task.toLowerCase();
|
|
37656
37649
|
const estimatedTokens = Math.ceil(task.length / 4) * 2;
|
|
37657
37650
|
return {
|
|
@@ -38060,7 +38053,7 @@ function notifyAndRecord(opts) {
|
|
|
38060
38053
|
}
|
|
38061
38054
|
async function tryCompositeRoute(deps, ctx, opts) {
|
|
38062
38055
|
if (deps.router === void 0) return null;
|
|
38063
|
-
const requirements =
|
|
38056
|
+
const requirements = analyzeTask2(opts.task);
|
|
38064
38057
|
const routerResult = await routeViaCompositeRouter(
|
|
38065
38058
|
opts.task,
|
|
38066
38059
|
deps.router,
|
|
@@ -38105,7 +38098,7 @@ function createDelegateHandler(deps) {
|
|
|
38105
38098
|
if (compositeResult !== null) {
|
|
38106
38099
|
return compositeResult;
|
|
38107
38100
|
}
|
|
38108
|
-
const requirements =
|
|
38101
|
+
const requirements = analyzeTask2(input.task);
|
|
38109
38102
|
const billingMode = input.billing_mode ?? DEFAULTS.PROVIDER_DEFAULTS.billingMode;
|
|
38110
38103
|
const selection = selectModel(input, requirements, billingMode);
|
|
38111
38104
|
const output2 = buildDelegateOutput(selection, requirements);
|
|
@@ -47039,7 +47032,7 @@ function buildVotingInput(plan, config) {
|
|
|
47039
47032
|
}
|
|
47040
47033
|
async function executeSingleVote(plan, config, log) {
|
|
47041
47034
|
try {
|
|
47042
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47035
|
+
const { executeVoting } = await import("./consensus-vote-V56W3QW5.js");
|
|
47043
47036
|
const input = buildVotingInput(plan, config);
|
|
47044
47037
|
const result = await executeVoting(input, log);
|
|
47045
47038
|
return parseVotingResult(result);
|
|
@@ -48186,7 +48179,7 @@ function createVoteStage({ config, startStage }) {
|
|
|
48186
48179
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
48187
48180
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
48188
48181
|
try {
|
|
48189
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
48182
|
+
const { executeVoting } = await import("./consensus-vote-V56W3QW5.js");
|
|
48190
48183
|
const proposal = buildVoteProposal(plan, research);
|
|
48191
48184
|
const votingResult = await executeVoting(
|
|
48192
48185
|
{
|
|
@@ -57648,7 +57641,7 @@ export {
|
|
|
57648
57641
|
MODEL_CAPABILITIES2 as MODEL_CAPABILITIES,
|
|
57649
57642
|
DelegateInputSchema,
|
|
57650
57643
|
DelegateOutputSchema,
|
|
57651
|
-
analyzeTask,
|
|
57644
|
+
analyzeTask2 as analyzeTask,
|
|
57652
57645
|
selectModel,
|
|
57653
57646
|
registerDelegateToModelTool,
|
|
57654
57647
|
runConsensusGate,
|
|
@@ -57804,4 +57797,4 @@ export {
|
|
|
57804
57797
|
startPipelineEventBridge,
|
|
57805
57798
|
shutdownPipelineEventBridge
|
|
57806
57799
|
};
|
|
57807
|
-
//# sourceMappingURL=chunk-
|
|
57800
|
+
//# sourceMappingURL=chunk-3CFROGBP.js.map
|