opencode-swarm 7.115.0 → 7.116.1
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/.opencode/skills/commit-pr/SKILL.md +60 -579
- package/README.md +3 -1
- package/dist/cli/{curator-drift-c0by7063.js → curator-drift-7p2ky1th.js} +2 -2
- package/dist/cli/{curator-llm-factory-6n9sgaj8.js → curator-llm-factory-9qn52fnv.js} +17 -16
- package/dist/cli/{curator-hpc4tsjv.js → curator-yxmtp8py.js} +17 -16
- package/dist/cli/{dispatch-mczsxy5s.js → dispatch-07jgc3hn.js} +1 -1
- package/dist/cli/{evidence-summary-service-fehwj116.js → evidence-summary-service-bwt6drb3.js} +7 -7
- package/dist/cli/{gate-evidence-vkpqt300.js → gate-evidence-j2m4cd85.js} +5 -4
- package/dist/cli/{guardrail-explain-hecpd738.js → guardrail-explain-xvyz2eag.js} +18 -17
- package/dist/cli/{hive-promoter-0kfb4vjk.js → hive-promoter-ykqc60w1.js} +17 -16
- package/dist/cli/{index-0p660a87.js → index-0pfqcjp6.js} +5 -1
- package/dist/cli/{index-g40r5d08.js → index-34g1mv3c.js} +1 -1
- package/dist/cli/{index-4sckv7y6.js → index-42cx6g2h.js} +9 -4
- package/dist/cli/index-4905hd2m.js +19 -0
- package/dist/cli/{index-80jkseqw.js → index-5bcrp3bc.js} +2 -2
- package/dist/cli/{index-rk6qhyng.js → index-5h7d37nf.js} +7 -7
- package/dist/cli/{index-m766gvdt.js → index-7kcpkm4y.js} +7016 -1994
- package/dist/cli/{index-4h2ea8h5.js → index-abjjn4yh.js} +2 -2
- package/dist/cli/{index-m0rce3x6.js → index-efdyjgeh.js} +2 -2
- package/dist/cli/{index-jtqkh8jf.js → index-fsrp8wp3.js} +10 -1
- package/dist/cli/{index-8f2270hc.js → index-g4p13g8t.js} +3 -3
- package/dist/cli/{index-wh8949ef.js → index-kzj3fp7c.js} +3 -3
- package/dist/cli/{index-ga4ta3cr.js → index-nprawcc0.js} +7 -1
- package/dist/cli/{index-2etc05tv.js → index-p9jf8gt8.js} +28 -20
- package/dist/cli/{index-pa6t33pt.js → index-q2rrv0cy.js} +11 -0
- package/dist/cli/{index-n18yy0z1.js → index-t5f01hnz.js} +3 -3
- package/dist/cli/{index-6f6y2rbp.js → index-wegc6xwr.js} +3 -3
- package/dist/cli/{index-x12hvfpf.js → index-wxkf3089.js} +3 -3
- package/dist/cli/{index-yrrqs4b0.js → index-xdsd2hma.js} +1164 -51
- package/dist/cli/index.js +17 -16
- package/dist/cli/{knowledge-escalator-5gwp1ar8.js → knowledge-escalator-tthw6c9q.js} +8 -8
- package/dist/cli/{knowledge-events-m304swh6.js → knowledge-events-hrbmwxxj.js} +6 -5
- package/dist/cli/{knowledge-store-9babt8rd.js → knowledge-store-5cns5sns.js} +6 -6
- package/dist/cli/{knowledge-validator-t9sym59g.js → knowledge-validator-xre0s774.js} +7 -7
- package/dist/cli/{pending-delegations-ddbkbgxy.js → pending-delegations-9cn17983.js} +4 -4
- package/dist/cli/{pr-subscriptions-vwv7zm2p.js → pr-subscriptions-8a6jwek2.js} +5 -5
- package/dist/cli/runtime-ykafcwc6.js +3397 -0
- package/dist/cli/{skill-generator-tav44xpm.js → skill-generator-22nk6c6a.js} +9 -9
- package/dist/cli/{telemetry-jny76r83.js → telemetry-qh78ymq4.js} +1 -1
- package/dist/commands/archive.d.ts +4 -4
- package/dist/commands/close.d.ts +12 -0
- package/dist/commands/command-dispatch.d.ts +2 -0
- package/dist/commands/gate-audit.d.ts +28 -0
- package/dist/commands/gate-stats.d.ts +1 -0
- package/dist/commands/index.d.ts +4 -0
- package/dist/commands/registry.d.ts +25 -8
- package/dist/commands/reset-backup.d.ts +32 -0
- package/dist/commands/reset-session.d.ts +2 -0
- package/dist/commands/reset.d.ts +9 -0
- package/dist/config/plan-schema.d.ts +7 -7
- package/dist/evaluation/contracts.d.ts +545 -0
- package/dist/evaluation/disposable-worktree.d.ts +38 -0
- package/dist/evaluation/fixtures.d.ts +8 -0
- package/dist/evaluation/gate-audit.d.ts +32 -0
- package/dist/evaluation/gate-ground-truth.d.ts +43 -0
- package/dist/evaluation/gate-stats.d.ts +47 -0
- package/dist/evaluation/hashing.d.ts +34 -0
- package/dist/evaluation/index.d.ts +17 -0
- package/dist/evaluation/model-dispatcher.d.ts +30 -0
- package/dist/evaluation/public-api.d.ts +87 -0
- package/dist/evaluation/retention.d.ts +56 -0
- package/dist/evaluation/runner.d.ts +48 -0
- package/dist/evaluation/statistics.d.ts +9 -0
- package/dist/evaluation/store.d.ts +26 -0
- package/dist/evidence/manager.d.ts +18 -0
- package/dist/evidence/task-file.d.ts +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +468 -451
- package/dist/mutation/engine.d.ts +29 -5
- package/dist/telemetry.d.ts +11 -1
- package/dist/tools/plugin-registration.d.ts +2 -1
- package/dist/tools/sast-scan.d.ts +9 -0
- package/dist/tools/swarm-command.d.ts +2 -1
- package/dist/tools/update-task-status.d.ts +16 -4
- package/dist/utils/external-tool-runner.d.ts +2 -1
- package/dist/utils/swarm-artifact-cache.d.ts +13 -0
- package/evaluation-fixtures/tier1/boundary-error/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/boundary-error/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/boundary-error/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/boundary-error/instruction.md +1 -0
- package/evaluation-fixtures/tier1/boundary-error/manifest.json +1 -0
- package/evaluation-fixtures/tier1/branch-swap/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/branch-swap/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/branch-swap/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/branch-swap/instruction.md +1 -0
- package/evaluation-fixtures/tier1/branch-swap/manifest.json +1 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/instruction.md +1 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/manifest.json +1 -0
- package/evaluation-fixtures/tier1/guard-removal/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/guard-removal/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/guard-removal/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/guard-removal/instruction.md +1 -0
- package/evaluation-fixtures/tier1/guard-removal/manifest.json +1 -0
- package/evaluation-fixtures/tier1/injection-prone-string/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/injection-prone-string/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/injection-prone-string/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/injection-prone-string/instruction.md +1 -0
- package/evaluation-fixtures/tier1/injection-prone-string/manifest.json +1 -0
- package/evaluation-fixtures/tier1/missing-auth-check/environment/baseline.ts +4 -0
- package/evaluation-fixtures/tier1/missing-auth-check/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/missing-auth-check/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/missing-auth-check/instruction.md +1 -0
- package/evaluation-fixtures/tier1/missing-auth-check/manifest.json +1 -0
- package/evaluation-fixtures/tier1/missing-await/environment/baseline.ts +7 -0
- package/evaluation-fixtures/tier1/missing-await/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/missing-await/environment/defect.ts +4 -0
- package/evaluation-fixtures/tier1/missing-await/instruction.md +1 -0
- package/evaluation-fixtures/tier1/missing-await/manifest.json +1 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/instruction.md +1 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/manifest.json +1 -0
- package/evaluation-fixtures/tier1/null-substitution/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/null-substitution/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/null-substitution/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/null-substitution/instruction.md +1 -0
- package/evaluation-fixtures/tier1/null-substitution/manifest.json +1 -0
- package/evaluation-fixtures/tier1/operator-swap/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/operator-swap/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/operator-swap/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/operator-swap/instruction.md +1 -0
- package/evaluation-fixtures/tier1/operator-swap/manifest.json +1 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/environment/baseline.ts +4 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/instruction.md +1 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/manifest.json +1 -0
- package/evaluation-fixtures/tier1/swallowed-error/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/swallowed-error/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/swallowed-error/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/swallowed-error/instruction.md +1 -0
- package/evaluation-fixtures/tier1/swallowed-error/manifest.json +1 -0
- package/package.json +2 -1
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
atomicWriteFile,
|
|
4
4
|
taskEvidencePath,
|
|
5
5
|
withTaskEvidenceLock
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-0pfqcjp6.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_external
|
|
9
9
|
} from "./index-293f68mj.js";
|
|
10
10
|
import {
|
|
11
11
|
telemetry
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-q2rrv0cy.js";
|
|
13
13
|
|
|
14
14
|
// src/gate-evidence.ts
|
|
15
15
|
import { mkdirSync, readFileSync, realpathSync } from "fs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-7kcpkm4y.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
@@ -279,7 +279,7 @@ function evaluateDestructiveDecision(rawCommand, cwd, declaredScope) {
|
|
|
279
279
|
firingRule: "destructive_block: dd with /dev/zero|null|urandom (data wipe)"
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
|
-
if (/^git\s+push\b.*?(--force|-f)\b/.test(seg)) {
|
|
282
|
+
if (/^git\s+push\b.*?(--force(?!-with-lease)|-f)\b/.test(seg)) {
|
|
283
283
|
return {
|
|
284
284
|
decision: "block",
|
|
285
285
|
firingRule: "destructive_block: git push --force"
|
|
@@ -115,5 +115,14 @@ async function readCachedParsedFile(filePath, namespace, readText, parse) {
|
|
|
115
115
|
}
|
|
116
116
|
return cloneCachedValue(value);
|
|
117
117
|
}
|
|
118
|
+
function invalidateCachedArtifact(filePath) {
|
|
119
|
+
const resolvedPath = path.resolve(filePath);
|
|
120
|
+
textCache.delete(resolvedPath);
|
|
121
|
+
const prefix = `${resolvedPath}\x00`;
|
|
122
|
+
for (const key of parsedCache.keys()) {
|
|
123
|
+
if (key.startsWith(prefix))
|
|
124
|
+
parsedCache.delete(key);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
118
127
|
|
|
119
|
-
export { readCachedTextFile, readCachedParsedFile };
|
|
128
|
+
export { readCachedTextFile, readCachedParsedFile, invalidateCachedArtifact };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveKnowledgeStoreDir
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-34g1mv3c.js";
|
|
5
5
|
import {
|
|
6
6
|
init_logger,
|
|
7
7
|
warn
|
|
8
8
|
} from "./index-zgwm4ryv.js";
|
|
9
9
|
import {
|
|
10
10
|
atomicWriteFile
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-0pfqcjp6.js";
|
|
12
12
|
import {
|
|
13
13
|
require_proper_lockfile
|
|
14
14
|
} from "./index-vvk2g744.js";
|
|
@@ -594,7 +594,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
594
594
|
deltas.push({ id, delta });
|
|
595
595
|
}
|
|
596
596
|
if (deltas.length > 0) {
|
|
597
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
597
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-5cns5sns.js");
|
|
598
598
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
599
599
|
}
|
|
600
600
|
return {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
readCachedTextFile
|
|
4
|
-
} from "./index-jtqkh8jf.js";
|
|
5
2
|
import {
|
|
6
3
|
SwarmError
|
|
7
4
|
} from "./index-5e4e2hvv.js";
|
|
8
5
|
import {
|
|
9
6
|
warn
|
|
10
7
|
} from "./index-zgwm4ryv.js";
|
|
8
|
+
import {
|
|
9
|
+
readCachedTextFile
|
|
10
|
+
} from "./index-fsrp8wp3.js";
|
|
11
11
|
import {
|
|
12
12
|
bunFile
|
|
13
13
|
} from "./index-qe3v54nb.js";
|
|
@@ -1167,6 +1167,12 @@ LANGUAGE_REGISTRY.register({
|
|
|
1167
1167
|
});
|
|
1168
1168
|
|
|
1169
1169
|
// src/lang/detector.ts
|
|
1170
|
+
function getProfileForFile(filePath) {
|
|
1171
|
+
const ext = extname(filePath);
|
|
1172
|
+
if (!ext)
|
|
1173
|
+
return;
|
|
1174
|
+
return LANGUAGE_REGISTRY.getByExtension(ext);
|
|
1175
|
+
}
|
|
1170
1176
|
async function detectProjectLanguages(projectDir) {
|
|
1171
1177
|
const detected = new Set;
|
|
1172
1178
|
async function scanDir(dir) {
|
|
@@ -14649,4 +14655,4 @@ function buildPythonBackend() {
|
|
|
14649
14655
|
}
|
|
14650
14656
|
var _internals3 = { extractImports: extractImports2 };
|
|
14651
14657
|
|
|
14652
|
-
export { tool, LANGUAGE_REGISTRY, detectProjectLanguages, isCommandAvailable, tokenizeCommand, defaultSelectTestFramework, defaultBuildTestCommand, defaultParseTestOutput, defaultSelectBuildCommand, defaultTestFilesFor, defaultBackendFor, buildGoBackend, _internals2 as _internals, buildPythonBackend, _internals3 as _internals1 };
|
|
14658
|
+
export { tool, LANGUAGE_REGISTRY, getProfileForFile, detectProjectLanguages, isCommandAvailable, tokenizeCommand, defaultSelectTestFramework, defaultBuildTestCommand, defaultParseTestOutput, defaultSelectBuildCommand, defaultTestFilesFor, defaultBackendFor, buildGoBackend, _internals2 as _internals, buildPythonBackend, _internals3 as _internals1 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-efdyjgeh.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
7
|
} from "./index-m43zgtjn.js";
|
|
@@ -43,6 +43,8 @@ import {
|
|
|
43
43
|
handleEvidenceSummaryCommand,
|
|
44
44
|
handleExportCommand,
|
|
45
45
|
handleFullAutoCommand,
|
|
46
|
+
handleGateAuditCommand,
|
|
47
|
+
handleGateStatsCommand,
|
|
46
48
|
handleHandoffCommand,
|
|
47
49
|
handleHelpCommand,
|
|
48
50
|
handleHistoryCommand,
|
|
@@ -81,7 +83,8 @@ import {
|
|
|
81
83
|
handleWriteRetroCommand,
|
|
82
84
|
normalizeSwarmCommandInput,
|
|
83
85
|
resolveCommand
|
|
84
|
-
} from "./index-
|
|
86
|
+
} from "./index-7kcpkm4y.js";
|
|
87
|
+
import"./index-nprawcc0.js";
|
|
85
88
|
import"./index-8j5d3ytd.js";
|
|
86
89
|
import"./index-c8s9a3zh.js";
|
|
87
90
|
import"./index-m7hc7nn7.js";
|
|
@@ -90,33 +93,33 @@ import {
|
|
|
90
93
|
ORCHESTRATOR_NAME,
|
|
91
94
|
stripKnownSwarmPrefix
|
|
92
95
|
} from "./index-nvc0nsvg.js";
|
|
93
|
-
import"./index-
|
|
96
|
+
import"./index-xdsd2hma.js";
|
|
94
97
|
import"./index-scww5b77.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
98
|
+
import"./index-4905hd2m.js";
|
|
99
|
+
import"./index-5bcrp3bc.js";
|
|
100
|
+
import"./index-wxkf3089.js";
|
|
101
|
+
import"./index-t5f01hnz.js";
|
|
102
|
+
import"./index-wegc6xwr.js";
|
|
103
|
+
import"./index-g4p13g8t.js";
|
|
104
|
+
import"./index-5h7d37nf.js";
|
|
102
105
|
import"./index-bfwt3abw.js";
|
|
103
|
-
import"./index-
|
|
106
|
+
import"./index-34g1mv3c.js";
|
|
104
107
|
import"./index-vxv732ex.js";
|
|
105
108
|
import"./index-8fwhhayc.js";
|
|
106
109
|
import"./index-q1exe2b3.js";
|
|
107
110
|
import"./index-n6fa2hhk.js";
|
|
108
111
|
import"./index-rdwfqhp7.js";
|
|
109
|
-
import"./index-
|
|
110
|
-
import"./index-jtqkh8jf.js";
|
|
112
|
+
import"./index-kzj3fp7c.js";
|
|
111
113
|
import"./index-5e4e2hvv.js";
|
|
112
114
|
import"./index-p0arc26j.js";
|
|
113
115
|
import"./index-zgwm4ryv.js";
|
|
114
116
|
import"./index-dqh3zhhc.js";
|
|
115
|
-
import"./index-
|
|
116
|
-
import"./index-
|
|
117
|
+
import"./index-abjjn4yh.js";
|
|
118
|
+
import"./index-0pfqcjp6.js";
|
|
117
119
|
import"./index-293f68mj.js";
|
|
118
|
-
import"./index-
|
|
119
|
-
import"./index-
|
|
120
|
+
import"./index-42cx6g2h.js";
|
|
121
|
+
import"./index-fsrp8wp3.js";
|
|
122
|
+
import"./index-q2rrv0cy.js";
|
|
120
123
|
import"./index-vvk2g744.js";
|
|
121
124
|
import"./index-qe3v54nb.js";
|
|
122
125
|
import"./index-a76rekgs.js";
|
|
@@ -241,7 +244,8 @@ function createSwarmCommandHandler(directory, agents, options = {}) {
|
|
|
241
244
|
tokens: normalized.tokens,
|
|
242
245
|
activeAgentName: options.getActiveAgentName?.(input.sessionID),
|
|
243
246
|
packageRoot: options.packageRoot,
|
|
244
|
-
registeredAgents: options.registeredAgents
|
|
247
|
+
registeredAgents: options.registeredAgents,
|
|
248
|
+
evaluationModelDispatcher: options.evaluationModelDispatcher
|
|
245
249
|
})
|
|
246
250
|
});
|
|
247
251
|
return;
|
|
@@ -255,7 +259,8 @@ async function buildSwarmCommandPrompt(args) {
|
|
|
255
259
|
tokens,
|
|
256
260
|
activeAgentName,
|
|
257
261
|
packageRoot,
|
|
258
|
-
registeredAgents
|
|
262
|
+
registeredAgents,
|
|
263
|
+
evaluationModelDispatcher
|
|
259
264
|
} = args;
|
|
260
265
|
const resolved = _internals.resolveCommand(tokens);
|
|
261
266
|
if (!resolved) {
|
|
@@ -298,7 +303,8 @@ async function buildSwarmCommandPrompt(args) {
|
|
|
298
303
|
agents,
|
|
299
304
|
sessionID,
|
|
300
305
|
tokens,
|
|
301
|
-
packageRoot
|
|
306
|
+
packageRoot,
|
|
307
|
+
evaluationModelDispatcher
|
|
302
308
|
});
|
|
303
309
|
return formatCanonicalPromptFallback({
|
|
304
310
|
original: `/swarm ${tokens.join(" ")}`.trim(),
|
|
@@ -391,6 +397,8 @@ export {
|
|
|
391
397
|
handleHandoffCommand,
|
|
392
398
|
handleGuardrailLog,
|
|
393
399
|
handleGuardrailExplain,
|
|
400
|
+
handleGateStatsCommand,
|
|
401
|
+
handleGateAuditCommand,
|
|
394
402
|
handleFullAutoCommand,
|
|
395
403
|
handleExportCommand,
|
|
396
404
|
handleEvidenceSummaryCommand,
|
|
@@ -155,6 +155,17 @@ var telemetry = {
|
|
|
155
155
|
gateFailed(sessionId, gate, taskId, reason) {
|
|
156
156
|
_internals.emit("gate_failed", { sessionId, gate, taskId, reason });
|
|
157
157
|
},
|
|
158
|
+
reviewerGateDecision(sessionId, taskId, blocked, reasonCode, evidenceKind) {
|
|
159
|
+
_internals.emit("reviewer_gate_decision", {
|
|
160
|
+
sessionId,
|
|
161
|
+
gate: "qa_gate",
|
|
162
|
+
taskId,
|
|
163
|
+
blocked,
|
|
164
|
+
allowed: !blocked,
|
|
165
|
+
reasonCode,
|
|
166
|
+
evidenceKind
|
|
167
|
+
});
|
|
168
|
+
},
|
|
158
169
|
phaseChanged(sessionId, oldPhase, newPhase) {
|
|
159
170
|
_internals.emit("phase_changed", { sessionId, oldPhase, newPhase });
|
|
160
171
|
},
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
resolveSwarmRejectedPath,
|
|
8
8
|
transactKnowledge
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-5h7d37nf.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveKnowledgeStoreDir
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-34g1mv3c.js";
|
|
13
13
|
import {
|
|
14
14
|
init_logger,
|
|
15
15
|
warn
|
|
16
16
|
} from "./index-zgwm4ryv.js";
|
|
17
17
|
import {
|
|
18
18
|
atomicWriteFile
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-0pfqcjp6.js";
|
|
20
20
|
import {
|
|
21
21
|
require_proper_lockfile
|
|
22
22
|
} from "./index-vvk2g744.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
countEntryViolationsInWindow,
|
|
5
5
|
readKnowledgeEvents,
|
|
6
6
|
recordKnowledgeEvent
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-g4p13g8t.js";
|
|
8
8
|
import {
|
|
9
9
|
jaccardBigram,
|
|
10
10
|
readKnowledge,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveSwarmKnowledgePath,
|
|
13
13
|
transactKnowledge,
|
|
14
14
|
wordBigrams
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-5h7d37nf.js";
|
|
16
16
|
import {
|
|
17
17
|
isActiveStatus
|
|
18
18
|
} from "./index-bfwt3abw.js";
|
|
@@ -188,7 +188,7 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
188
188
|
alreadyInactive: true
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
191
|
+
const { quarantineEntry } = await import("./knowledge-validator-xre0s774.js");
|
|
192
192
|
await quarantineEntry(directory, entryId, `repeat_contradiction: ${count} contradicted events in ${windowDays}d`, "auto");
|
|
193
193
|
return { quarantined: true, entryId, contradictionsInWindow: count };
|
|
194
194
|
} catch {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-t5f01hnz.js";
|
|
6
6
|
import {
|
|
7
7
|
effectiveRetrievalOutcomes,
|
|
8
8
|
readKnowledgeCounterRollups
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-g4p13g8t.js";
|
|
10
10
|
import {
|
|
11
11
|
computeOutcomeSignal,
|
|
12
12
|
readKnowledge,
|
|
13
13
|
resolveHiveKnowledgePath,
|
|
14
14
|
resolveSwarmKnowledgePath,
|
|
15
15
|
transactKnowledge
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-5h7d37nf.js";
|
|
17
17
|
import {
|
|
18
18
|
isActiveStatus
|
|
19
19
|
} from "./index-bfwt3abw.js";
|