nexus-agents 6.3.1 → 6.3.3
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-3FIUZBQC.js +7 -0
- package/dist/{chunk-2QAT5YNF.js → chunk-7LGTPUZB.js} +2 -2
- package/dist/{chunk-E2TILOO3.js → chunk-C7ZOYMT2.js} +2 -2
- package/dist/{chunk-LVA5JGLO.js → chunk-CZWJAVFX.js} +2 -2
- package/dist/{chunk-RLSTDKLT.js → chunk-GGRKSSAC.js} +39 -26
- package/dist/{chunk-RLSTDKLT.js.map → chunk-GGRKSSAC.js.map} +1 -1
- package/dist/{chunk-GVRDLRJM.js → chunk-IFAISNVZ.js} +48 -3
- package/dist/chunk-IFAISNVZ.js.map +1 -0
- package/dist/{chunk-5KPPJRBY.js → chunk-LH3XZRMY.js} +4 -4
- package/dist/{chunk-W36GQH4O.js → chunk-YQGLXYMT.js} +3 -3
- package/dist/cli.js +11 -11
- package/dist/{consensus-vote-HUAARVF4.js → consensus-vote-HH74S3A4.js} +5 -5
- package/dist/{improvement-review-ZSOPFLCW.js → improvement-review-3ITUHAUA.js} +4 -4
- package/dist/index.js +9 -9
- package/dist/{init-opencode-SSEA3UCA.js → init-opencode-QHVNX5YH.js} +3 -3
- package/dist/{setup-data-dir-5EDZL3CX.js → setup-data-dir-FNGGTBPG.js} +5 -5
- package/package.json +1 -1
- package/dist/chunk-FGP24DLV.js +0 -7
- package/dist/chunk-GVRDLRJM.js.map +0 -1
- /package/dist/{chunk-FGP24DLV.js.map → chunk-3FIUZBQC.js.map} +0 -0
- /package/dist/{chunk-2QAT5YNF.js.map → chunk-7LGTPUZB.js.map} +0 -0
- /package/dist/{chunk-E2TILOO3.js.map → chunk-C7ZOYMT2.js.map} +0 -0
- /package/dist/{chunk-LVA5JGLO.js.map → chunk-CZWJAVFX.js.map} +0 -0
- /package/dist/{chunk-5KPPJRBY.js.map → chunk-LH3XZRMY.js.map} +0 -0
- /package/dist/{chunk-W36GQH4O.js.map → chunk-YQGLXYMT.js.map} +0 -0
- /package/dist/{consensus-vote-HUAARVF4.js.map → consensus-vote-HH74S3A4.js.map} +0 -0
- /package/dist/{improvement-review-ZSOPFLCW.js.map → improvement-review-3ITUHAUA.js.map} +0 -0
- /package/dist/{init-opencode-SSEA3UCA.js.map → init-opencode-QHVNX5YH.js.map} +0 -0
- /package/dist/{setup-data-dir-5EDZL3CX.js.map → setup-data-dir-FNGGTBPG.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3FIUZBQC.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-QOF5S5Z5.js";
|
|
@@ -2135,4 +2135,4 @@ export {
|
|
|
2135
2135
|
VOTING_THRESHOLDS,
|
|
2136
2136
|
ConsensusMetricsSchema
|
|
2137
2137
|
};
|
|
2138
|
-
//# sourceMappingURL=chunk-
|
|
2138
|
+
//# sourceMappingURL=chunk-7LGTPUZB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail,
|
|
3
3
|
recordUsageEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IFAISNVZ.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseAdapter,
|
|
7
7
|
createStream,
|
|
@@ -833,4 +833,4 @@ export {
|
|
|
833
833
|
discoverModels,
|
|
834
834
|
buildOpenAICompatAdapters
|
|
835
835
|
};
|
|
836
|
-
//# sourceMappingURL=chunk-
|
|
836
|
+
//# sourceMappingURL=chunk-C7ZOYMT2.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7LGTPUZB.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-CZWJAVFX.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-LH3XZRMY.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-M2TFLYPC.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
simulationDeniedResult,
|
|
48
48
|
toJobSummary,
|
|
49
49
|
writeJobCancelled
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-YQGLXYMT.js";
|
|
51
51
|
import {
|
|
52
52
|
allOf
|
|
53
53
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-JYTDEFY6.js";
|
|
65
65
|
import {
|
|
66
66
|
withPrerequisite
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-CZWJAVFX.js";
|
|
68
68
|
import {
|
|
69
69
|
NOOP_NOTIFIER,
|
|
70
70
|
RateLimiter,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
withAuditTrail,
|
|
89
89
|
withProgressHeartbeat,
|
|
90
90
|
wrapToolWithTimeout
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-7LGTPUZB.js";
|
|
92
92
|
import {
|
|
93
93
|
createAuditTrail,
|
|
94
94
|
createGraphAuditBridge,
|
|
@@ -35906,8 +35906,9 @@ async function deriveWithTelemetry(userObjective, opts = {}) {
|
|
|
35906
35906
|
const started = Date.now();
|
|
35907
35907
|
const mode = opts.mode ?? resolveAccessPolicyMode();
|
|
35908
35908
|
const hash = hashObjective(userObjective);
|
|
35909
|
+
const cacheKey = policyCacheKey(hash, mode, opts.trustTier);
|
|
35909
35910
|
const cache = getPolicyCache();
|
|
35910
|
-
const cached = cache.get(
|
|
35911
|
+
const cached = cache.get(cacheKey);
|
|
35911
35912
|
if (cached !== void 0) {
|
|
35912
35913
|
return {
|
|
35913
35914
|
policy: cached,
|
|
@@ -35918,17 +35919,17 @@ async function deriveWithTelemetry(userObjective, opts = {}) {
|
|
|
35918
35919
|
}
|
|
35919
35920
|
};
|
|
35920
35921
|
}
|
|
35921
|
-
if (mode === "off") return cacheAndReturnBypass(cache, mode, hash, started);
|
|
35922
|
+
if (mode === "off") return cacheAndReturnBypass(cache, mode, hash, cacheKey, started);
|
|
35922
35923
|
const gate = gateTrust(opts.trustTier);
|
|
35923
|
-
const ctx = { userObjective, mode, hash, started, cache };
|
|
35924
|
+
const ctx = { userObjective, mode, hash, cacheKey, started, cache };
|
|
35924
35925
|
if (gate.allow === "llm" && opts.adapter !== void 0) {
|
|
35925
35926
|
return runLlmPath(ctx, opts);
|
|
35926
35927
|
}
|
|
35927
35928
|
return runFallbackPath(ctx, gate);
|
|
35928
35929
|
}
|
|
35929
|
-
function cacheAndReturnBypass(cache, mode, hash, started) {
|
|
35930
|
+
function cacheAndReturnBypass(cache, mode, hash, cacheKey, started) {
|
|
35930
35931
|
const policy = buildBypassPolicy(mode, hash);
|
|
35931
|
-
cache.set(
|
|
35932
|
+
cache.set(cacheKey, policy);
|
|
35932
35933
|
return {
|
|
35933
35934
|
policy,
|
|
35934
35935
|
telemetry: {
|
|
@@ -35948,14 +35949,14 @@ async function runLlmPath(ctx, opts) {
|
|
|
35948
35949
|
opts.timeoutMs ?? DEFAULT_LLM_TIMEOUT_MS
|
|
35949
35950
|
);
|
|
35950
35951
|
if (llmResult.ok) {
|
|
35951
|
-
ctx.cache.set(ctx.
|
|
35952
|
+
ctx.cache.set(ctx.cacheKey, llmResult.policy);
|
|
35952
35953
|
return {
|
|
35953
35954
|
policy: llmResult.policy,
|
|
35954
35955
|
telemetry: { latencyMs: Date.now() - ctx.started, source: "llm", trustDecision: "llm" }
|
|
35955
35956
|
};
|
|
35956
35957
|
}
|
|
35957
35958
|
const policy = deriveFallbackPolicy(ctx.userObjective, ctx.mode, ctx.hash);
|
|
35958
|
-
ctx.cache.set(ctx.
|
|
35959
|
+
ctx.cache.set(ctx.cacheKey, policy);
|
|
35959
35960
|
return {
|
|
35960
35961
|
policy,
|
|
35961
35962
|
telemetry: {
|
|
@@ -35968,7 +35969,7 @@ async function runLlmPath(ctx, opts) {
|
|
|
35968
35969
|
}
|
|
35969
35970
|
function runFallbackPath(ctx, gate) {
|
|
35970
35971
|
const policy = deriveFallbackPolicy(ctx.userObjective, ctx.mode, ctx.hash);
|
|
35971
|
-
ctx.cache.set(ctx.
|
|
35972
|
+
ctx.cache.set(ctx.cacheKey, policy);
|
|
35972
35973
|
return {
|
|
35973
35974
|
policy,
|
|
35974
35975
|
telemetry: {
|
|
@@ -35990,6 +35991,9 @@ function buildBypassPolicy(mode, hash) {
|
|
|
35990
35991
|
mode
|
|
35991
35992
|
};
|
|
35992
35993
|
}
|
|
35994
|
+
function policyCacheKey(objectiveHash, mode, trustTier) {
|
|
35995
|
+
return `${objectiveHash}:${mode}:${trustTier ?? "unset"}`;
|
|
35996
|
+
}
|
|
35993
35997
|
function hashObjective(userObjective) {
|
|
35994
35998
|
return createHash2("sha256").update(userObjective, "utf8").digest("hex").slice(0, 16);
|
|
35995
35999
|
}
|
|
@@ -46758,8 +46762,10 @@ var OSV_EMPTY = {
|
|
|
46758
46762
|
vulnerabilities: [],
|
|
46759
46763
|
failedLookups: 0,
|
|
46760
46764
|
queried: 0,
|
|
46761
|
-
declared: 0
|
|
46765
|
+
declared: 0,
|
|
46766
|
+
checkFailed: false
|
|
46762
46767
|
};
|
|
46768
|
+
var OSV_CHECK_FAILED = { ...OSV_EMPTY, checkFailed: true };
|
|
46763
46769
|
var OSV_DEPENDENCY_CAP = 20;
|
|
46764
46770
|
async function runOsvCheck(targetDir, enabled) {
|
|
46765
46771
|
if (!enabled) return OSV_EMPTY;
|
|
@@ -46782,33 +46788,40 @@ async function runOsvCheck(targetDir, enabled) {
|
|
|
46782
46788
|
// `vulnerabilities` array with an `error` set, which read as "clean".
|
|
46783
46789
|
failedLookups: results.filter((r) => r.error !== null).length,
|
|
46784
46790
|
queried: deps.length,
|
|
46785
|
-
declared
|
|
46791
|
+
declared,
|
|
46792
|
+
// The check ran. Individual lookups may still have errored — that is
|
|
46793
|
+
// `failedLookups`, a different and finer-grained fact.
|
|
46794
|
+
checkFailed: false
|
|
46786
46795
|
};
|
|
46787
46796
|
} catch (error) {
|
|
46788
|
-
logger45.
|
|
46789
|
-
return
|
|
46797
|
+
logger45.warn("OSV check did not run", { error: String(error) });
|
|
46798
|
+
return OSV_CHECK_FAILED;
|
|
46790
46799
|
}
|
|
46791
46800
|
}
|
|
46792
46801
|
function getBlockingFindings(findings) {
|
|
46793
46802
|
return findings.filter((f) => BLOCKING_SEVERITIES.has(f.severity));
|
|
46794
46803
|
}
|
|
46804
|
+
function osvCoverageNote(blocking, osvCount, osv) {
|
|
46805
|
+
if (osv?.checkFailed === true) {
|
|
46806
|
+
return "OSV check did not run (error) \u2014 dependency vulnerabilities unknown";
|
|
46807
|
+
}
|
|
46808
|
+
if (osv !== void 0 && osv.failedLookups > 0) {
|
|
46809
|
+
return `OSV not checked for ${String(osv.failedLookups)} of ${String(osv.queried)} dependencies (lookup failed)`;
|
|
46810
|
+
}
|
|
46811
|
+
if (blocking === 0 && osvCount === 0) return "none blocking";
|
|
46812
|
+
return "";
|
|
46813
|
+
}
|
|
46795
46814
|
function buildScanSummary(total, blocking, osvCount, osv) {
|
|
46796
46815
|
const parts = [`${String(total)} SAST findings`];
|
|
46797
46816
|
if (blocking > 0) parts.push(`${String(blocking)} blocking`);
|
|
46798
46817
|
if (osvCount > 0) parts.push(`${String(osvCount)} OSV dependency vulnerabilities`);
|
|
46799
|
-
|
|
46800
|
-
parts.push(
|
|
46801
|
-
`OSV not checked for ${String(osv.failedLookups)} of ${String(osv.queried)} dependencies (lookup failed)`
|
|
46802
|
-
);
|
|
46803
|
-
} else if (blocking === 0 && osvCount === 0) {
|
|
46804
|
-
parts.push("none blocking");
|
|
46805
|
-
}
|
|
46818
|
+
parts.push(osvCoverageNote(blocking, osvCount, osv));
|
|
46806
46819
|
if (osv !== void 0 && osv.declared > osv.queried) {
|
|
46807
46820
|
parts.push(
|
|
46808
46821
|
`OSV covered ${String(osv.queried)} of ${String(osv.declared)} declared dependencies`
|
|
46809
46822
|
);
|
|
46810
46823
|
}
|
|
46811
|
-
return parts.join(", ");
|
|
46824
|
+
return parts.filter((p) => p !== "").join(", ");
|
|
46812
46825
|
}
|
|
46813
46826
|
|
|
46814
46827
|
// src/security/quality-gate-commands.ts
|
|
@@ -47356,7 +47369,7 @@ ${contextBlock}`;
|
|
|
47356
47369
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47357
47370
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47358
47371
|
try {
|
|
47359
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47372
|
+
const { executeVoting } = await import("./consensus-vote-HH74S3A4.js");
|
|
47360
47373
|
const votingResult = await executeVoting(
|
|
47361
47374
|
{
|
|
47362
47375
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -55987,4 +56000,4 @@ export {
|
|
|
55987
56000
|
shutdownFeedbackSubscriber,
|
|
55988
56001
|
createEventBusBridge
|
|
55989
56002
|
};
|
|
55990
|
-
//# sourceMappingURL=chunk-
|
|
56003
|
+
//# sourceMappingURL=chunk-GGRKSSAC.js.map
|