nexus-agents 6.3.2 → 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-5M3ZAK2V.js → chunk-7LGTPUZB.js} +2 -2
- package/dist/{chunk-E2TILOO3.js → chunk-C7ZOYMT2.js} +2 -2
- package/dist/{chunk-ZTH7YD3J.js → chunk-CZWJAVFX.js} +2 -2
- package/dist/{chunk-XHKHC44U.js → chunk-GGRKSSAC.js} +18 -14
- package/dist/{chunk-XHKHC44U.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-BT534KOS.js → chunk-LH3XZRMY.js} +4 -4
- package/dist/{chunk-6THNSXDV.js → chunk-YQGLXYMT.js} +3 -3
- package/dist/cli.js +11 -11
- package/dist/{consensus-vote-YUVGQZL7.js → consensus-vote-HH74S3A4.js} +5 -5
- package/dist/{improvement-review-QKDI3QDL.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-NNBWZ2BK.js → setup-data-dir-FNGGTBPG.js} +5 -5
- package/package.json +1 -1
- package/dist/chunk-5STSWEDG.js +0 -7
- package/dist/chunk-GVRDLRJM.js.map +0 -1
- /package/dist/{chunk-5STSWEDG.js.map → chunk-3FIUZBQC.js.map} +0 -0
- /package/dist/{chunk-5M3ZAK2V.js.map → chunk-7LGTPUZB.js.map} +0 -0
- /package/dist/{chunk-E2TILOO3.js.map → chunk-C7ZOYMT2.js.map} +0 -0
- /package/dist/{chunk-ZTH7YD3J.js.map → chunk-CZWJAVFX.js.map} +0 -0
- /package/dist/{chunk-BT534KOS.js.map → chunk-LH3XZRMY.js.map} +0 -0
- /package/dist/{chunk-6THNSXDV.js.map → chunk-YQGLXYMT.js.map} +0 -0
- /package/dist/{consensus-vote-YUVGQZL7.js.map → consensus-vote-HH74S3A4.js.map} +0 -0
- /package/dist/{improvement-review-QKDI3QDL.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-NNBWZ2BK.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
|
}
|
|
@@ -47365,7 +47369,7 @@ ${contextBlock}`;
|
|
|
47365
47369
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47366
47370
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47367
47371
|
try {
|
|
47368
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47372
|
+
const { executeVoting } = await import("./consensus-vote-HH74S3A4.js");
|
|
47369
47373
|
const votingResult = await executeVoting(
|
|
47370
47374
|
{
|
|
47371
47375
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -55996,4 +56000,4 @@ export {
|
|
|
55996
56000
|
shutdownFeedbackSubscriber,
|
|
55997
56001
|
createEventBusBridge
|
|
55998
56002
|
};
|
|
55999
|
-
//# sourceMappingURL=chunk-
|
|
56003
|
+
//# sourceMappingURL=chunk-GGRKSSAC.js.map
|