opencode-swarm 7.139.6 → 7.139.7
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/swarm-pr-review/SKILL.md +62 -6
- package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +44 -6
- package/dist/agents/explorer.d.ts +1 -1
- package/dist/cli/{config-doctor-7v9at76j.js → config-doctor-pc48vfzg.js} +2 -2
- package/dist/cli/{curation-policy-rbrx3kd2.js → curation-policy-2rh3zysm.js} +2 -2
- package/dist/cli/{curator-llm-factory-305cfcxz.js → curator-llm-factory-de10hnhj.js} +13 -13
- package/dist/cli/{curator-bdc5hssa.js → curator-tm9rp9yx.js} +13 -13
- package/dist/cli/{explorer-swjc297z.js → explorer-e9h66egs.js} +1 -1
- package/dist/cli/{guardrail-explain-w9rwgz4c.js → guardrail-explain-979dxbd5.js} +14 -14
- package/dist/cli/{guardrail-log-4805jgj5.js → guardrail-log-wxa8janm.js} +3 -3
- package/dist/cli/{hive-promoter-jrd4pjb6.js → hive-promoter-w4ezne1c.js} +13 -13
- package/dist/cli/{index-k5z14rb1.js → index-3r61js2q.js} +2 -2
- package/dist/cli/{index-wv89xmbe.js → index-3w0kxqyy.js} +1 -1
- package/dist/cli/{index-8d2d7c6k.js → index-4tjk6k4a.js} +2 -2
- package/dist/cli/{index-t94f72tb.js → index-6d60gctc.js} +2 -2
- package/dist/cli/{index-1tw24kcp.js → index-7f4jhdhw.js} +1 -1
- package/dist/cli/{index-n3ppm2gt.js → index-92j14gdt.js} +1 -1
- package/dist/cli/{index-m7xks4r4.js → index-cp592623.js} +4 -4
- package/dist/cli/{index-a6v3kzyc.js → index-f7wq4q9r.js} +5 -5
- package/dist/cli/{index-ev72jrxc.js → index-j0gy1ggg.js} +1 -1
- package/dist/cli/{index-3fscvmfw.js → index-k4tcdnvd.js} +3 -3
- package/dist/cli/{index-68gh7p3t.js → index-n4x9racs.js} +1 -1
- package/dist/cli/{index-h7ht03c4.js → index-nxs7r6sd.js} +39 -39
- package/dist/cli/{index-7qx874pn.js → index-rvr1p73g.js} +1 -1
- package/dist/cli/{index-b6k9z88b.js → index-sd7ajhb5.js} +1 -1
- package/dist/cli/{index-fjrt81db.js → index-ssjm3458.js} +1 -1
- package/dist/cli/{index-6mjf4vr1.js → index-v2xrer41.js} +16 -29
- package/dist/cli/{index-sfbwze80.js → index-vx6mwms2.js} +15 -15
- package/dist/cli/index.js +13 -13
- package/dist/cli/{knowledge-escalator-7z9vwqrk.js → knowledge-escalator-kyejsd7z.js} +3 -3
- package/dist/cli/{knowledge-events-vw2cdtnp.js → knowledge-events-n5z7w8x2.js} +1 -1
- package/dist/cli/{knowledge-store-ecv0qs7r.js → knowledge-store-s65wnc1m.js} +1 -1
- package/dist/cli/{knowledge-validator-arppnzpb.js → knowledge-validator-cgtmhqya.js} +4 -4
- package/dist/cli/{scan-cursor-7740wg6r.js → scan-cursor-6z3rbdxp.js} +2 -2
- package/dist/cli/{schema-sajt4mcv.js → schema-fvj8smjz.js} +1 -1
- package/dist/cli/{skill-generator-k8qz8ja5.js → skill-generator-9kzsefn1.js} +5 -5
- package/dist/hooks/pr-workflow-gate.d.ts +2 -2
- package/dist/index.js +63 -58
- package/dist/tools/dispatch-lanes.d.ts +3 -6
- package/package.json +1 -1
|
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
702
702
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
703
703
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
704
704
|
return;
|
|
705
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
705
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-n5z7w8x2.js");
|
|
706
706
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
707
707
|
const flagIds = new Set;
|
|
708
708
|
for (const e of atFloor) {
|
|
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
772
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
773
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
772
|
+
const { quarantineEntry } = await import("./knowledge-validator-cgtmhqya.js");
|
|
773
|
+
const { KnowledgeConfigSchema } = await import("./schema-fvj8smjz.js");
|
|
774
774
|
let config;
|
|
775
775
|
try {
|
|
776
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
776
|
+
const { loadPluginConfigWithMeta } = await import("./index-3r61js2q.js");
|
|
777
777
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
778
778
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
779
779
|
} catch {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-cp592623.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-n4x9racs.js";
|
|
16
16
|
import {
|
|
17
17
|
init_knowledge_types,
|
|
18
18
|
isActiveStatus
|
|
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
190
190
|
alreadyInactive: true
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
193
|
+
const { quarantineEntry } = await import("./knowledge-validator-cgtmhqya.js");
|
|
194
194
|
let policyConfig;
|
|
195
195
|
try {
|
|
196
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
197
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
196
|
+
const { KnowledgeConfigSchema } = await import("./schema-fvj8smjz.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-3r61js2q.js");
|
|
198
198
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
199
199
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
200
200
|
} catch {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-4tjk6k4a.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-cp592623.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-n4x9racs.js";
|
|
17
17
|
import {
|
|
18
18
|
advisoryWarn,
|
|
19
19
|
init_warning_buffer
|
|
@@ -628,7 +628,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
628
628
|
deltas.push({ id, delta });
|
|
629
629
|
}
|
|
630
630
|
if (deltas.length > 0) {
|
|
631
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
631
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-s65wnc1m.js");
|
|
632
632
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
633
633
|
}
|
|
634
634
|
return {
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "./index-1m1ksyqt.js";
|
|
17
17
|
import {
|
|
18
18
|
stableCanonicalStringify
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-j0gy1ggg.js";
|
|
20
20
|
import {
|
|
21
21
|
detectStraySwarmDirs,
|
|
22
22
|
readDoctorArtifact,
|
|
23
23
|
removeStraySwarmDir,
|
|
24
24
|
runConfigDoctor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-rvr1p73g.js";
|
|
26
26
|
import {
|
|
27
27
|
MAX_TRANSIENT_RETRIES,
|
|
28
28
|
archiveEvidence,
|
|
@@ -122,20 +122,20 @@ import {
|
|
|
122
122
|
retireSkill,
|
|
123
123
|
selectCandidateEntries,
|
|
124
124
|
syncBundledProjectSkillsIfMissingAsync
|
|
125
|
-
} from "./index-
|
|
125
|
+
} from "./index-k4tcdnvd.js";
|
|
126
126
|
import {
|
|
127
127
|
readRecentEscalations
|
|
128
|
-
} from "./index-
|
|
128
|
+
} from "./index-f7wq4q9r.js";
|
|
129
129
|
import {
|
|
130
130
|
alreadyCuratedThisGeneration,
|
|
131
131
|
claimNextScanBatch,
|
|
132
132
|
resolveCohortId
|
|
133
|
-
} from "./index-
|
|
133
|
+
} from "./index-3w0kxqyy.js";
|
|
134
134
|
import {
|
|
135
135
|
CURATOR_INIT_PROMPT,
|
|
136
136
|
CURATOR_PHASE_PROMPT,
|
|
137
137
|
READ_ONLY_LANE_GUIDANCE
|
|
138
|
-
} from "./index-
|
|
138
|
+
} from "./index-v2xrer41.js";
|
|
139
139
|
import {
|
|
140
140
|
getGlobalEventBus
|
|
141
141
|
} from "./index-c8s9a3zh.js";
|
|
@@ -222,11 +222,11 @@ import {
|
|
|
222
222
|
validateActionableFields,
|
|
223
223
|
validateLesson,
|
|
224
224
|
validateSkillPath
|
|
225
|
-
} from "./index-
|
|
225
|
+
} from "./index-4tjk6k4a.js";
|
|
226
226
|
import {
|
|
227
227
|
authorizeCuration,
|
|
228
228
|
buildConfigFingerprintInput
|
|
229
|
-
} from "./index-
|
|
229
|
+
} from "./index-7f4jhdhw.js";
|
|
230
230
|
import {
|
|
231
231
|
cohortConfigFingerprint
|
|
232
232
|
} from "./index-rtry5xyf.js";
|
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
transactFile,
|
|
260
260
|
transactKnowledge,
|
|
261
261
|
wordBigrams
|
|
262
|
-
} from "./index-
|
|
262
|
+
} from "./index-cp592623.js";
|
|
263
263
|
import {
|
|
264
264
|
MAX_EVENT_LOG_ENTRIES,
|
|
265
265
|
_internals,
|
|
@@ -269,7 +269,7 @@ import {
|
|
|
269
269
|
recordHiveKnowledgeEvent,
|
|
270
270
|
recordKnowledgeEvent,
|
|
271
271
|
resolveKnowledgeEventsPath
|
|
272
|
-
} from "./index-
|
|
272
|
+
} from "./index-n4x9racs.js";
|
|
273
273
|
import {
|
|
274
274
|
resolveHiveDataDir,
|
|
275
275
|
resolveHiveEventsPath,
|
|
@@ -313,7 +313,7 @@ import {
|
|
|
313
313
|
init_loader,
|
|
314
314
|
loadPluginConfig,
|
|
315
315
|
loadPluginConfigWithMeta
|
|
316
|
-
} from "./index-
|
|
316
|
+
} from "./index-ssjm3458.js";
|
|
317
317
|
import {
|
|
318
318
|
RetrospectiveEvidenceSchema
|
|
319
319
|
} from "./index-gprxjmm7.js";
|
|
@@ -345,7 +345,7 @@ import {
|
|
|
345
345
|
package_default,
|
|
346
346
|
resolveAutoReviewConfig,
|
|
347
347
|
stripKnownSwarmPrefix
|
|
348
|
-
} from "./index-
|
|
348
|
+
} from "./index-92j14gdt.js";
|
|
349
349
|
import {
|
|
350
350
|
AGENT_TOOL_MAP,
|
|
351
351
|
ALL_AGENT_NAMES,
|
|
@@ -21991,7 +21991,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
21991
21991
|
};
|
|
21992
21992
|
}
|
|
21993
21993
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
21994
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
21994
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-3r61js2q.js");
|
|
21995
21995
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
21996
21996
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
21997
21997
|
if (sweepConfig?.enabled === false)
|
|
@@ -23075,7 +23075,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
23075
23075
|
}
|
|
23076
23076
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
23077
23077
|
try {
|
|
23078
|
-
const skillModule = await import("./skill-generator-
|
|
23078
|
+
const skillModule = await import("./skill-generator-9kzsefn1.js");
|
|
23079
23079
|
for (const cand of skillCandidates) {
|
|
23080
23080
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
23081
23081
|
continue;
|
|
@@ -23535,7 +23535,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
23535
23535
|
} catch {}
|
|
23536
23536
|
}
|
|
23537
23537
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
23538
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
23538
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-kyejsd7z.js");
|
|
23539
23539
|
for (const { id } of contradictedEntries) {
|
|
23540
23540
|
try {
|
|
23541
23541
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -24354,7 +24354,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
24354
24354
|
warnings.push("Failed to collect knowledge summary.");
|
|
24355
24355
|
}
|
|
24356
24356
|
try {
|
|
24357
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
24357
|
+
const { getScanStatus } = await import("./scan-cursor-6z3rbdxp.js");
|
|
24358
24358
|
const scanStatus = await getScanStatus(directory);
|
|
24359
24359
|
if (scanStatus.remaining_estimate > 0) {
|
|
24360
24360
|
warnings.push(`Fair scan: reviewed ${knowledgeSummary.length} entries this sweep (generation ${scanStatus.generation}); ${scanStatus.remaining_estimate} more eligible entries will be visited in future curation sweeps.`);
|
|
@@ -24396,7 +24396,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
24396
24396
|
let actionResult;
|
|
24397
24397
|
if (options.llmDelegate) {
|
|
24398
24398
|
try {
|
|
24399
|
-
const { CURATOR_POSTMORTEM_PROMPT } = await import("./explorer-
|
|
24399
|
+
const { CURATOR_POSTMORTEM_PROMPT } = await import("./explorer-e9h66egs.js");
|
|
24400
24400
|
const userInput = assembleLLMInput(effectivePlanId, scope, options.sessionID, planSummary, knowledgeSummary, curatorDigest, proposals, unactionable, retrospectives, driftReports);
|
|
24401
24401
|
const ac = new AbortController;
|
|
24402
24402
|
const timer = setTimeout(() => ac.abort(), options.llmTimeoutMs ?? 300000);
|
|
@@ -24526,9 +24526,9 @@ var _internals28 = {
|
|
|
24526
24526
|
verifyPostMortemKnowledgeActions,
|
|
24527
24527
|
repairPostMortemActions,
|
|
24528
24528
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
24529
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
24529
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-fvj8smjz.js");
|
|
24530
24530
|
try {
|
|
24531
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
24531
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-3r61js2q.js");
|
|
24532
24532
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
24533
24533
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
24534
24534
|
} catch {
|
|
@@ -24536,11 +24536,11 @@ var _internals28 = {
|
|
|
24536
24536
|
}
|
|
24537
24537
|
},
|
|
24538
24538
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
24539
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
24539
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-tm9rp9yx.js");
|
|
24540
24540
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
24541
24541
|
},
|
|
24542
24542
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
24543
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
24543
|
+
const { checkHivePromotions } = await import("./hive-promoter-w4ezne1c.js");
|
|
24544
24544
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
24545
24545
|
},
|
|
24546
24546
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -24549,7 +24549,7 @@ var _internals28 = {
|
|
|
24549
24549
|
activateProposal,
|
|
24550
24550
|
listSkills: listSkills2,
|
|
24551
24551
|
sanitizeSlug
|
|
24552
|
-
} = await import("./skill-generator-
|
|
24552
|
+
} = await import("./skill-generator-9kzsefn1.js");
|
|
24553
24553
|
const result = {
|
|
24554
24554
|
approved: [],
|
|
24555
24555
|
rejected: [],
|
|
@@ -25774,9 +25774,9 @@ function hashContent(content) {
|
|
|
25774
25774
|
return createHash9("sha1").update(content).digest("hex");
|
|
25775
25775
|
}
|
|
25776
25776
|
async function loadConfigForPolicyCurator(directory) {
|
|
25777
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
25777
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-fvj8smjz.js");
|
|
25778
25778
|
try {
|
|
25779
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
25779
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-3r61js2q.js");
|
|
25780
25780
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
25781
25781
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
25782
25782
|
} catch {
|
|
@@ -29785,7 +29785,7 @@ async function runFinalizeStage(ctx) {
|
|
|
29785
29785
|
}
|
|
29786
29786
|
}
|
|
29787
29787
|
try {
|
|
29788
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
29788
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-fvj8smjz.js");
|
|
29789
29789
|
const { config: pmLoadedConfig } = _internals39.loadPluginConfigWithMeta(ctx.directory);
|
|
29790
29790
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
29791
29791
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -32058,9 +32058,9 @@ var _internals44 = {
|
|
|
32058
32058
|
loadPluginConfigWithMeta,
|
|
32059
32059
|
loadCuratorDeps: async () => {
|
|
32060
32060
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
32061
|
-
import("./schema-
|
|
32062
|
-
import("./curator-
|
|
32063
|
-
import("./curator-llm-factory-
|
|
32061
|
+
import("./schema-fvj8smjz.js"),
|
|
32062
|
+
import("./curator-tm9rp9yx.js"),
|
|
32063
|
+
import("./curator-llm-factory-de10hnhj.js")
|
|
32064
32064
|
]);
|
|
32065
32065
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
32066
32066
|
}
|
|
@@ -32965,7 +32965,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
32965
32965
|
let scanCompleted = false;
|
|
32966
32966
|
let scanRemaining = 0;
|
|
32967
32967
|
try {
|
|
32968
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
32968
|
+
const { getScanStatus } = await import("./scan-cursor-6z3rbdxp.js");
|
|
32969
32969
|
const status = await getScanStatus(directory);
|
|
32970
32970
|
scanGeneration = status.generation;
|
|
32971
32971
|
scanCompleted = status.completed;
|
|
@@ -32975,17 +32975,17 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
32975
32975
|
try {
|
|
32976
32976
|
const { isLinked: isLinked2 } = await import("./knowledge-link-q46k9adx.js");
|
|
32977
32977
|
if (isLinked2(directory)) {
|
|
32978
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
32978
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-fvj8smjz.js");
|
|
32979
32979
|
let config;
|
|
32980
32980
|
try {
|
|
32981
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
32981
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-3r61js2q.js");
|
|
32982
32982
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
32983
32983
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
32984
32984
|
} catch {
|
|
32985
32985
|
config = KnowledgeConfigSchema2.parse({});
|
|
32986
32986
|
}
|
|
32987
32987
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
32988
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
32988
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-2rh3zysm.js");
|
|
32989
32989
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
32990
32990
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
32991
32991
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -34196,7 +34196,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
34196
34196
|
const result = runConfigDoctor(config, directory);
|
|
34197
34197
|
let output;
|
|
34198
34198
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
34199
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
34199
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-pc48vfzg.js");
|
|
34200
34200
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
34201
34201
|
applyLossy: true
|
|
34202
34202
|
});
|
|
@@ -57533,7 +57533,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
57533
57533
|
async function handleHelpCommand(ctx) {
|
|
57534
57534
|
const targetCommand = ctx.args.join(" ");
|
|
57535
57535
|
if (!targetCommand) {
|
|
57536
|
-
const { buildHelpText } = await import("./index-
|
|
57536
|
+
const { buildHelpText } = await import("./index-vx6mwms2.js");
|
|
57537
57537
|
return buildHelpText();
|
|
57538
57538
|
}
|
|
57539
57539
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -57542,7 +57542,7 @@ async function handleHelpCommand(ctx) {
|
|
|
57542
57542
|
return _internals18.buildDetailedHelp(resolved.key, resolved.entry);
|
|
57543
57543
|
}
|
|
57544
57544
|
const similar = _internals18.findSimilarCommands(targetCommand);
|
|
57545
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
57545
|
+
const { buildHelpText: fullHelp } = await import("./index-vx6mwms2.js");
|
|
57546
57546
|
if (similar.length > 0) {
|
|
57547
57547
|
return `Command '/swarm ${targetCommand}' not found.
|
|
57548
57548
|
|
|
@@ -57719,7 +57719,7 @@ var COMMAND_REGISTRY = {
|
|
|
57719
57719
|
},
|
|
57720
57720
|
"guardrail explain": {
|
|
57721
57721
|
handler: async (ctx) => {
|
|
57722
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
57722
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-979dxbd5.js");
|
|
57723
57723
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
57724
57724
|
},
|
|
57725
57725
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -57729,7 +57729,7 @@ var COMMAND_REGISTRY = {
|
|
|
57729
57729
|
},
|
|
57730
57730
|
"guardrail-explain": {
|
|
57731
57731
|
handler: async (ctx) => {
|
|
57732
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
57732
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-979dxbd5.js");
|
|
57733
57733
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
57734
57734
|
},
|
|
57735
57735
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -57739,7 +57739,7 @@ var COMMAND_REGISTRY = {
|
|
|
57739
57739
|
},
|
|
57740
57740
|
"guardrail-log": {
|
|
57741
57741
|
handler: async (ctx) => {
|
|
57742
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
57742
|
+
const { handleGuardrailLog } = await import("./guardrail-log-wxa8janm.js");
|
|
57743
57743
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
57744
57744
|
},
|
|
57745
57745
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -59633,7 +59633,7 @@ HARD CONSTRAINTS (apply regardless of skill load success):
|
|
|
59633
59633
|
- RUN ALL BASE LANES: the default PR_REVIEW path always launches exactly six repository-agnostic base check-type lanes from the skill. Use \`mode: "swarm-pr-review:base"\` and the exact six \`workflow_lane\` identifiers. The runtime rejects partial, duplicate, or mislabelled waves. Do not collapse, omit, or scale down the base lanes for a small, docs-only, or CI-only PR.
|
|
59634
59634
|
- RETRY STRUCTURALLY: retry only failed base obligations in later \`swarm-pr-review:base\` async batches with the same exact \`pr_head_sha\`. Blocking \`dispatch_lanes\` and direct Task explorer/reviewer/critic dispatch are not provenance-equivalent and are rejected.
|
|
59635
59635
|
- USE ASYNC DISPATCH WITHOUT IDLING: launch the base lanes with one \`dispatch_lanes_async\` call when available, record the \`batch_id\`, then keep doing non-dependent architect work while they run. Poll with \`collect_lane_results\` without \`wait\` (or \`wait: false\`) to process settled lanes and continue independent work between polls; use \`wait: true\` only as the final join when no independent work remains.
|
|
59636
|
-
- EVALUATE ALL RISK FAMILIES: after the base explorer lanes settle, evaluate every repository-agnostic trigger row against the exact diff/context pack. Record applicable families as \`MATCHED\` and inapplicable families as provenance-free \`NOT_TRIGGERED\` with concrete absence evidence; \`unclassified-risk\` always remains \`MATCHED\`. Launch \`swarm-pr-review:micro\` lanes only for the \`MATCHED\` IDs
|
|
59636
|
+
- EVALUATE ALL RISK FAMILIES: after the base explorer lanes settle, evaluate every repository-agnostic trigger row against the exact diff/context pack. Record applicable families as \`MATCHED\` and inapplicable families as provenance-free \`NOT_TRIGGERED\` with concrete absence evidence; \`unclassified-risk\` always remains \`MATCHED\`. Launch \`swarm-pr-review:micro\` lanes only for the \`MATCHED\` IDs. The first micro dispatch MUST pass the complete exact eleven-row \`trigger_evaluation\`, which freezes it for this session; any subsequent same-session micro batch may omit it and reuse the frozen ledger, while an explicitly supplied copy must remain exactly identical. Use each dispatched trigger ID as \`workflow_lane\`. Missing an evaluation row or a matched-family attestation is BLOCKED; a \`NOT_TRIGGERED\` family must not create a micro artifact.
|
|
59637
59637
|
- RUN HEAD-BOUND VALIDATION: dispatch independent reviewers with \`mode: "swarm-pr-review:reviewer"\` and critics with \`mode: "swarm-pr-review:critic"\`, unique \`workflow_lane\` obligations, role-correct agents, and the same exact \`pr_head_sha\`. Critic dispatch is blocked until all declared reviewer obligations have successful artifacts.
|
|
59638
59638
|
- COMPLETE EXPLICITLY: after final artifacts and synthesis, call \`complete_pr_workflow\` with \`mode: "PR_REVIEW"\` and the bound \`pr_head_sha\`; never leave the session trapped in a stale workflow gate.
|
|
59639
59639
|
- ABORT IF UNRECOVERABLE: if the PR head cannot be fetched/checked out (the working tree stays on the wrong branch), a compound \`git fetch && git checkout\` keeps being rejected as read-only shell syntax (run them as TWO separate standalone commands first), or the merge-base bind is unreachable for any reason, call \`abort_pr_workflow\` with \`mode: "PR_REVIEW"\` and a one-line \`reason\` instead of looping. The tool refuses while PR workflow lanes are in flight (collect their results first). Aborting clears the durable gate and stops the auto-resume loop; the user can also run \`/swarm abort-pr-workflow\`. Do NOT abort as a shortcut to avoid coverage obligations \u2014 only when the bind/checkout path is genuinely unreachable.
|
|
@@ -126,37 +126,24 @@ src/tools/declare-scope.ts \u2014 function has 12 parameters, consider splitting
|
|
|
126
126
|
Activates when your prompt contains "[CANDIDATE]" anywhere in its text.
|
|
127
127
|
|
|
128
128
|
When active, replace the default OUTPUT FORMAT above with structured pipe-delimited
|
|
129
|
-
candidate rows.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
Emit a header row first, then one unprefixed data row per finding. Use pipe (|) to
|
|
146
|
-
separate fields; escape literal pipe characters inside field values as \\|.
|
|
147
|
-
|
|
148
|
-
If either a standard explorer or a micro-lane finds zero issues, emit the
|
|
149
|
-
header followed by exactly the matching family form:
|
|
150
|
-
[CLEAN] | lane | coverage_scope | evidence
|
|
151
|
-
[CLEAN] | micro_lane | coverage_scope | evidence
|
|
152
|
-
Replace lane or micro_lane with the exact controller-assigned value and fill
|
|
153
|
-
the remaining fields with the checks completed and concrete negative evidence.
|
|
154
|
-
Header-only output is unattested. Do NOT fall back to the default
|
|
129
|
+
candidate rows. Treat the exact header supplied by the caller or controller as
|
|
130
|
+
the single authoritative schema. Copy the marker-bearing header verbatim, then
|
|
131
|
+
emit exactly one unprefixed data row per finding. Do not merge fields from
|
|
132
|
+
another candidate family or invent a trailing field.
|
|
133
|
+
|
|
134
|
+
Use the exact caller-assigned lane identity. Candidate severity is INFO, LOW,
|
|
135
|
+
MEDIUM, HIGH, or CRITICAL; confidence is exactly LOW, MEDIUM, or HIGH. Escape a
|
|
136
|
+
literal pipe inside a field as \\|. Emit machine rows as plain text, never inside
|
|
137
|
+
Markdown code fences.
|
|
138
|
+
|
|
139
|
+
For zero findings, copy the exact matching [CLEAN] template supplied by the
|
|
140
|
+
caller and replace its placeholders with the controller-assigned lane, a
|
|
141
|
+
substantive coverage scope, and concrete negative evidence. A CLEAN row has no
|
|
142
|
+
confidence or trailing field. Header-only output is unattested. If the prompt
|
|
143
|
+
contains the marker but no exact candidate header and CLEAN template, report the
|
|
144
|
+
missing contract instead of guessing. Do NOT fall back to the default
|
|
155
145
|
PROJECT/STRUCTURE format.
|
|
156
146
|
|
|
157
|
-
For micro-lane dispatches, use the micro-lane variant:
|
|
158
|
-
[CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence
|
|
159
|
-
|
|
160
147
|
Do NOT use CONFIRMED, DISPROVED, or PRE_EXISTING \u2014 those are reviewer verdicts.
|
|
161
148
|
|
|
162
149
|
## INTEGRATION IMPACT ANALYSIS MODE
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-6d60gctc.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-sd7ajhb5.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,20 +84,20 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-nxs7r6sd.js";
|
|
88
88
|
import"./index-41hkt36g.js";
|
|
89
89
|
import"./index-1m1ksyqt.js";
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
90
|
+
import"./index-j0gy1ggg.js";
|
|
91
|
+
import"./index-rvr1p73g.js";
|
|
92
92
|
import"./index-brh827g0.js";
|
|
93
93
|
import"./index-yyyk63kk.js";
|
|
94
94
|
import"./index-y8552snf.js";
|
|
95
95
|
import"./index-4905hd2m.js";
|
|
96
96
|
import"./index-134d35c1.js";
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
97
|
+
import"./index-k4tcdnvd.js";
|
|
98
|
+
import"./index-f7wq4q9r.js";
|
|
99
|
+
import"./index-3w0kxqyy.js";
|
|
100
|
+
import"./index-v2xrer41.js";
|
|
101
101
|
import"./index-c8s9a3zh.js";
|
|
102
102
|
import"./index-9ss2m4rs.js";
|
|
103
103
|
import"./index-jfjnn408.js";
|
|
@@ -114,11 +114,11 @@ import"./index-74hpm6sh.js";
|
|
|
114
114
|
import"./index-n0pja0qs.js";
|
|
115
115
|
import"./index-8fwhhayc.js";
|
|
116
116
|
import"./index-q1exe2b3.js";
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-
|
|
117
|
+
import"./index-4tjk6k4a.js";
|
|
118
|
+
import"./index-7f4jhdhw.js";
|
|
119
119
|
import"./index-rtry5xyf.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
120
|
+
import"./index-cp592623.js";
|
|
121
|
+
import"./index-n4x9racs.js";
|
|
122
122
|
import"./index-ae75rja9.js";
|
|
123
123
|
import"./index-rs1f1bh0.js";
|
|
124
124
|
import"./index-h2waehqq.js";
|
|
@@ -126,7 +126,7 @@ import"./index-ed5ykebp.js";
|
|
|
126
126
|
import"./index-hfvxhk4z.js";
|
|
127
127
|
import"./index-7g4c7s5r.js";
|
|
128
128
|
import"./index-4nt52yr9.js";
|
|
129
|
-
import"./index-
|
|
129
|
+
import"./index-ssjm3458.js";
|
|
130
130
|
import"./index-gprxjmm7.js";
|
|
131
131
|
import"./index-n832052r.js";
|
|
132
132
|
import"./index-d181x9zr.js";
|
|
@@ -135,7 +135,7 @@ import"./index-zgwm4ryv.js";
|
|
|
135
135
|
import {
|
|
136
136
|
init_schema,
|
|
137
137
|
stripKnownSwarmPrefix
|
|
138
|
-
} from "./index-
|
|
138
|
+
} from "./index-92j14gdt.js";
|
|
139
139
|
import {
|
|
140
140
|
AGENT_TOOL_MAP,
|
|
141
141
|
ORCHESTRATOR_NAME,
|
package/dist/cli/index.js
CHANGED
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-nxs7r6sd.js";
|
|
10
10
|
import"./index-41hkt36g.js";
|
|
11
11
|
import"./index-1m1ksyqt.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
import"./index-j0gy1ggg.js";
|
|
13
|
+
import"./index-rvr1p73g.js";
|
|
14
14
|
import"./index-brh827g0.js";
|
|
15
15
|
import"./index-yyyk63kk.js";
|
|
16
16
|
import"./index-y8552snf.js";
|
|
17
17
|
import"./index-4905hd2m.js";
|
|
18
18
|
import"./index-134d35c1.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
19
|
+
import"./index-k4tcdnvd.js";
|
|
20
|
+
import"./index-f7wq4q9r.js";
|
|
21
|
+
import"./index-3w0kxqyy.js";
|
|
22
|
+
import"./index-v2xrer41.js";
|
|
23
23
|
import"./index-c8s9a3zh.js";
|
|
24
24
|
import"./index-9ss2m4rs.js";
|
|
25
25
|
import"./index-jfjnn408.js";
|
|
@@ -36,11 +36,11 @@ import"./index-74hpm6sh.js";
|
|
|
36
36
|
import"./index-n0pja0qs.js";
|
|
37
37
|
import"./index-8fwhhayc.js";
|
|
38
38
|
import"./index-q1exe2b3.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-4tjk6k4a.js";
|
|
40
|
+
import"./index-7f4jhdhw.js";
|
|
41
41
|
import"./index-rtry5xyf.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
42
|
+
import"./index-cp592623.js";
|
|
43
|
+
import"./index-n4x9racs.js";
|
|
44
44
|
import"./index-ae75rja9.js";
|
|
45
45
|
import"./index-rs1f1bh0.js";
|
|
46
46
|
import"./index-h2waehqq.js";
|
|
@@ -48,7 +48,7 @@ import"./index-ed5ykebp.js";
|
|
|
48
48
|
import"./index-hfvxhk4z.js";
|
|
49
49
|
import"./index-7g4c7s5r.js";
|
|
50
50
|
import"./index-4nt52yr9.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-ssjm3458.js";
|
|
52
52
|
import"./index-gprxjmm7.js";
|
|
53
53
|
import"./index-n832052r.js";
|
|
54
54
|
import"./index-d181x9zr.js";
|
|
@@ -57,7 +57,7 @@ import"./index-zgwm4ryv.js";
|
|
|
57
57
|
import {
|
|
58
58
|
init_package,
|
|
59
59
|
package_default
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-92j14gdt.js";
|
|
61
61
|
import {
|
|
62
62
|
DEFAULT_AGENT_CONFIGS,
|
|
63
63
|
init_constants
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-f7wq4q9r.js";
|
|
12
|
+
import"./index-cp592623.js";
|
|
13
|
+
import"./index-n4x9racs.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-rs1f1bh0.js";
|
|
16
16
|
import"./index-h2waehqq.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveKnowledgeCounterBaselinePath,
|
|
29
29
|
resolveKnowledgeEventsPath,
|
|
30
30
|
resolveLegacyApplicationLogPath
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-n4x9racs.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-rs1f1bh0.js";
|
|
34
34
|
import"./index-h2waehqq.js";
|