opencode-swarm 7.134.0 → 7.134.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/codebase-review-swarm/SKILL.md +18 -2
- package/.opencode/skills/codebase-review-swarm/references/review-protocol-v8.2.md +18 -2
- package/.opencode/skills/swarm-implement/SKILL.md +17 -2
- package/dist/background/pr-event-subscribers.d.ts +1 -1
- package/dist/cli/{config-doctor-t5r92674.js → config-doctor-4avzz3rh.js} +2 -2
- package/dist/cli/{curation-policy-3smfn2a3.js → curation-policy-8vkzjtwb.js} +2 -2
- package/dist/cli/{curator-hva8f3nf.js → curator-3vsvhwav.js} +12 -12
- package/dist/cli/{curator-drift-tsyyf4b4.js → curator-drift-9q6f85bm.js} +1 -1
- package/dist/cli/{curator-llm-factory-p3aqev12.js → curator-llm-factory-2qk8q4y9.js} +12 -12
- package/dist/cli/{guardrail-explain-k8mcvk61.js → guardrail-explain-tw521x47.js} +13 -13
- package/dist/cli/{guardrail-log-absma1rv.js → guardrail-log-e3jrwdw8.js} +3 -3
- package/dist/cli/{hive-promoter-jwd51gzk.js → hive-promoter-sdy5qjzn.js} +12 -12
- package/dist/cli/{index-m2s0gbzt.js → index-0541h76w.js} +1 -1
- package/dist/cli/{index-hgh01f6h.js → index-1v5mby7t.js} +1 -1
- package/dist/cli/{index-baawkm48.js → index-2j8f71c3.js} +4 -4
- package/dist/cli/{index-3dtjhr26.js → index-358f9h8p.js} +47 -36
- package/dist/cli/{index-kapharv7.js → index-463k8mfr.js} +2 -2
- package/dist/cli/{index-2njes601.js → index-6b69mp0r.js} +2 -2
- package/dist/cli/{index-dgxgvzab.js → index-8t9xpn1a.js} +1 -1
- package/dist/cli/{index-c3e0ymrg.js → index-9z1q181f.js} +1 -1
- package/dist/cli/{index-g87ty4wp.js → index-bq2848a3.js} +1 -1
- package/dist/cli/{index-xfejq1p9.js → index-c0e3vhv9.js} +1 -1
- package/dist/cli/{index-jpkxjmfw.js → index-kwm7hz18.js} +5 -5
- package/dist/cli/{index-j6ywarjp.js → index-m8ajf6wb.js} +3 -3
- package/dist/cli/{index-eedq2y40.js → index-mz6sqtm9.js} +14 -14
- package/dist/cli/{index-rkyhv4p5.js → index-pz49rx4y.js} +2 -2
- package/dist/cli/{index-b5ek2cge.js → index-y2esw64s.js} +1 -1
- package/dist/cli/{index-y0kk3rtv.js → index-zjw32rv9.js} +1 -1
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-mkdac2m7.js → knowledge-escalator-v09w0jmg.js} +3 -3
- package/dist/cli/{knowledge-events-jjc9qbe0.js → knowledge-events-qp19r2he.js} +1 -1
- package/dist/cli/{knowledge-store-9e0w1kxm.js → knowledge-store-n5pvv0s3.js} +1 -1
- package/dist/cli/{knowledge-validator-h1nrn2pk.js → knowledge-validator-qg31ycbb.js} +4 -4
- package/dist/cli/{scan-cursor-mk3tq3sf.js → scan-cursor-wtzfvkh2.js} +2 -2
- package/dist/cli/{schema-bjb0yzsq.js → schema-erk5bz43.js} +1 -1
- package/dist/cli/{skill-generator-p1de0wkr.js → skill-generator-nxs65tq3.js} +5 -5
- package/dist/hooks/guardrails/messages-transform.d.ts +10 -0
- package/dist/hooks/guardrails/stored-input-args.d.ts +6 -0
- package/dist/index.js +38 -37
- package/dist/prm/escalation.d.ts +1 -11
- package/dist/prm/index.d.ts +1 -0
- package/dist/prm/types.d.ts +0 -2
- package/dist/session/snapshot-writer.d.ts +1 -0
- package/dist/state.d.ts +11 -0
- package/dist/utils/advisory-queue.d.ts +60 -0
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
readDoctorArtifact,
|
|
12
12
|
removeStraySwarmDir,
|
|
13
13
|
runConfigDoctor
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-bq2848a3.js";
|
|
15
15
|
import {
|
|
16
16
|
EvaluationTaskV1Schema,
|
|
17
17
|
GateAuditManifestV1Schema,
|
|
@@ -92,15 +92,15 @@ import {
|
|
|
92
92
|
retireSkill,
|
|
93
93
|
selectCandidateEntries,
|
|
94
94
|
syncBundledProjectSkillsIfMissingAsync
|
|
95
|
-
} from "./index-
|
|
95
|
+
} from "./index-m8ajf6wb.js";
|
|
96
96
|
import {
|
|
97
97
|
readRecentEscalations
|
|
98
|
-
} from "./index-
|
|
98
|
+
} from "./index-kwm7hz18.js";
|
|
99
99
|
import {
|
|
100
100
|
alreadyCuratedThisGeneration,
|
|
101
101
|
claimNextScanBatch,
|
|
102
102
|
resolveCohortId
|
|
103
|
-
} from "./index-
|
|
103
|
+
} from "./index-0541h76w.js";
|
|
104
104
|
import {
|
|
105
105
|
CURATOR_INIT_PROMPT,
|
|
106
106
|
CURATOR_PHASE_PROMPT,
|
|
@@ -133,11 +133,11 @@ import {
|
|
|
133
133
|
validateActionability,
|
|
134
134
|
validateActionableFields,
|
|
135
135
|
validateLesson
|
|
136
|
-
} from "./index-
|
|
136
|
+
} from "./index-6b69mp0r.js";
|
|
137
137
|
import {
|
|
138
138
|
authorizeCuration,
|
|
139
139
|
buildConfigFingerprintInput
|
|
140
|
-
} from "./index-
|
|
140
|
+
} from "./index-zjw32rv9.js";
|
|
141
141
|
import {
|
|
142
142
|
cohortConfigFingerprint
|
|
143
143
|
} from "./index-rtry5xyf.js";
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
transactFile,
|
|
171
171
|
transactKnowledge,
|
|
172
172
|
wordBigrams
|
|
173
|
-
} from "./index-
|
|
173
|
+
} from "./index-2j8f71c3.js";
|
|
174
174
|
import {
|
|
175
175
|
MAX_EVENT_LOG_ENTRIES,
|
|
176
176
|
_internals,
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
recordHiveKnowledgeEvent,
|
|
181
181
|
recordKnowledgeEvent,
|
|
182
182
|
resolveKnowledgeEventsPath
|
|
183
|
-
} from "./index-
|
|
183
|
+
} from "./index-8t9xpn1a.js";
|
|
184
184
|
import {
|
|
185
185
|
resolveHiveDataDir,
|
|
186
186
|
resolveHiveEventsPath,
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
init_loader,
|
|
206
206
|
loadPluginConfig,
|
|
207
207
|
loadPluginConfigWithMeta
|
|
208
|
-
} from "./index-
|
|
208
|
+
} from "./index-c0e3vhv9.js";
|
|
209
209
|
import {
|
|
210
210
|
RetrospectiveEvidenceSchema
|
|
211
211
|
} from "./index-k5jrywpr.js";
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
package_default,
|
|
229
229
|
resolveAutoReviewConfig,
|
|
230
230
|
stripKnownSwarmPrefix
|
|
231
|
-
} from "./index-
|
|
231
|
+
} from "./index-y2esw64s.js";
|
|
232
232
|
import {
|
|
233
233
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
234
234
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -10350,6 +10350,7 @@ function startAgentSession(sessionId, agentName, staleDurationMs = STALE_SESSION
|
|
|
10350
10350
|
reviewerCallCount: new Map,
|
|
10351
10351
|
lastGateFailure: null,
|
|
10352
10352
|
partialGateWarningsIssuedForTask: new Set,
|
|
10353
|
+
completionGateWarnedForTask: new Set,
|
|
10353
10354
|
selfFixAttempted: false,
|
|
10354
10355
|
selfCodingWarnedAtCount: 0,
|
|
10355
10356
|
catastrophicPhaseWarnings: new Set,
|
|
@@ -10397,6 +10398,7 @@ function startAgentSession(sessionId, agentName, staleDurationMs = STALE_SESSION
|
|
|
10397
10398
|
prmLastPatternDetected: null,
|
|
10398
10399
|
prmTrajectoryStep: 0,
|
|
10399
10400
|
prmHardStopPending: false,
|
|
10401
|
+
prmInjectedAdvisoryKeys: new Set,
|
|
10400
10402
|
prSubscriptions: new Map
|
|
10401
10403
|
};
|
|
10402
10404
|
swarmState.agentSessions.set(sessionId, sessionState);
|
|
@@ -10496,6 +10498,9 @@ function ensureAgentSession(sessionId, agentName, directory) {
|
|
|
10496
10498
|
if (!session.partialGateWarningsIssuedForTask) {
|
|
10497
10499
|
session.partialGateWarningsIssuedForTask = new Set;
|
|
10498
10500
|
}
|
|
10501
|
+
if (!session.completionGateWarnedForTask) {
|
|
10502
|
+
session.completionGateWarnedForTask = new Set;
|
|
10503
|
+
}
|
|
10499
10504
|
if (session.selfFixAttempted === undefined) {
|
|
10500
10505
|
session.selfFixAttempted = false;
|
|
10501
10506
|
}
|
|
@@ -10625,6 +10630,9 @@ function ensureAgentSession(sessionId, agentName, directory) {
|
|
|
10625
10630
|
if (session.prmHardStopPending === undefined) {
|
|
10626
10631
|
session.prmHardStopPending = false;
|
|
10627
10632
|
}
|
|
10633
|
+
if (!session.prmInjectedAdvisoryKeys) {
|
|
10634
|
+
session.prmInjectedAdvisoryKeys = new Set;
|
|
10635
|
+
}
|
|
10628
10636
|
if (!session.prSubscriptions) {
|
|
10629
10637
|
session.prSubscriptions = new Map;
|
|
10630
10638
|
}
|
|
@@ -14918,7 +14926,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
14918
14926
|
};
|
|
14919
14927
|
}
|
|
14920
14928
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
14921
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
14929
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-463k8mfr.js");
|
|
14922
14930
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
14923
14931
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
14924
14932
|
if (sweepConfig?.enabled === false)
|
|
@@ -16511,7 +16519,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
16511
16519
|
}
|
|
16512
16520
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
16513
16521
|
try {
|
|
16514
|
-
const skillModule = await import("./skill-generator-
|
|
16522
|
+
const skillModule = await import("./skill-generator-nxs65tq3.js");
|
|
16515
16523
|
for (const cand of skillCandidates) {
|
|
16516
16524
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
16517
16525
|
continue;
|
|
@@ -16912,7 +16920,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
16912
16920
|
} catch {}
|
|
16913
16921
|
}
|
|
16914
16922
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
16915
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
16923
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-v09w0jmg.js");
|
|
16916
16924
|
for (const { id } of contradictedEntries) {
|
|
16917
16925
|
try {
|
|
16918
16926
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -17720,7 +17728,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
17720
17728
|
warnings.push("Failed to collect knowledge summary.");
|
|
17721
17729
|
}
|
|
17722
17730
|
try {
|
|
17723
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
17731
|
+
const { getScanStatus } = await import("./scan-cursor-wtzfvkh2.js");
|
|
17724
17732
|
const scanStatus = await getScanStatus(directory);
|
|
17725
17733
|
if (scanStatus.remaining_estimate > 0) {
|
|
17726
17734
|
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.`);
|
|
@@ -17892,9 +17900,9 @@ var _internals23 = {
|
|
|
17892
17900
|
verifyPostMortemKnowledgeActions,
|
|
17893
17901
|
repairPostMortemActions,
|
|
17894
17902
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
17895
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
17903
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-erk5bz43.js");
|
|
17896
17904
|
try {
|
|
17897
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
17905
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-463k8mfr.js");
|
|
17898
17906
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
17899
17907
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
17900
17908
|
} catch {
|
|
@@ -17902,11 +17910,11 @@ var _internals23 = {
|
|
|
17902
17910
|
}
|
|
17903
17911
|
},
|
|
17904
17912
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
17905
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
17913
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-3vsvhwav.js");
|
|
17906
17914
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
17907
17915
|
},
|
|
17908
17916
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
17909
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
17917
|
+
const { checkHivePromotions } = await import("./hive-promoter-sdy5qjzn.js");
|
|
17910
17918
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
17911
17919
|
},
|
|
17912
17920
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -17915,7 +17923,7 @@ var _internals23 = {
|
|
|
17915
17923
|
activateProposal,
|
|
17916
17924
|
listSkills: listSkills2,
|
|
17917
17925
|
sanitizeSlug
|
|
17918
|
-
} = await import("./skill-generator-
|
|
17926
|
+
} = await import("./skill-generator-nxs65tq3.js");
|
|
17919
17927
|
const result = {
|
|
17920
17928
|
approved: [],
|
|
17921
17929
|
rejected: [],
|
|
@@ -17957,7 +17965,7 @@ var _internals23 = {
|
|
|
17957
17965
|
return result;
|
|
17958
17966
|
},
|
|
17959
17967
|
readPriorDriftReports: async (directory) => {
|
|
17960
|
-
const { readPriorDriftReports } = await import("./curator-drift-
|
|
17968
|
+
const { readPriorDriftReports } = await import("./curator-drift-9q6f85bm.js");
|
|
17961
17969
|
return readPriorDriftReports(directory);
|
|
17962
17970
|
},
|
|
17963
17971
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -20542,9 +20550,9 @@ function hashContent(content) {
|
|
|
20542
20550
|
return createHash8("sha1").update(content).digest("hex");
|
|
20543
20551
|
}
|
|
20544
20552
|
async function loadConfigForPolicyCurator(directory) {
|
|
20545
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
20553
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-erk5bz43.js");
|
|
20546
20554
|
try {
|
|
20547
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
20555
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-463k8mfr.js");
|
|
20548
20556
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
20549
20557
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
20550
20558
|
} catch {
|
|
@@ -23889,7 +23897,7 @@ async function runFinalizeStage(ctx) {
|
|
|
23889
23897
|
}
|
|
23890
23898
|
}
|
|
23891
23899
|
try {
|
|
23892
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
23900
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-erk5bz43.js");
|
|
23893
23901
|
const { config: pmLoadedConfig } = _internals33.loadPluginConfigWithMeta(ctx.directory);
|
|
23894
23902
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
23895
23903
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -26007,9 +26015,9 @@ var _internals37 = {
|
|
|
26007
26015
|
loadPluginConfigWithMeta,
|
|
26008
26016
|
loadCuratorDeps: async () => {
|
|
26009
26017
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
26010
|
-
import("./schema-
|
|
26011
|
-
import("./curator-
|
|
26012
|
-
import("./curator-llm-factory-
|
|
26018
|
+
import("./schema-erk5bz43.js"),
|
|
26019
|
+
import("./curator-3vsvhwav.js"),
|
|
26020
|
+
import("./curator-llm-factory-2qk8q4y9.js")
|
|
26013
26021
|
]);
|
|
26014
26022
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
26015
26023
|
}
|
|
@@ -26910,7 +26918,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
26910
26918
|
let scanCompleted = false;
|
|
26911
26919
|
let scanRemaining = 0;
|
|
26912
26920
|
try {
|
|
26913
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
26921
|
+
const { getScanStatus } = await import("./scan-cursor-wtzfvkh2.js");
|
|
26914
26922
|
const status = await getScanStatus(directory);
|
|
26915
26923
|
scanGeneration = status.generation;
|
|
26916
26924
|
scanCompleted = status.completed;
|
|
@@ -26920,17 +26928,17 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
26920
26928
|
try {
|
|
26921
26929
|
const { isLinked: isLinked2 } = await import("./knowledge-link-nc4y2zkq.js");
|
|
26922
26930
|
if (isLinked2(directory)) {
|
|
26923
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
26931
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-erk5bz43.js");
|
|
26924
26932
|
let config;
|
|
26925
26933
|
try {
|
|
26926
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
26934
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-463k8mfr.js");
|
|
26927
26935
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
26928
26936
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
26929
26937
|
} catch {
|
|
26930
26938
|
config = KnowledgeConfigSchema2.parse({});
|
|
26931
26939
|
}
|
|
26932
26940
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
26933
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
26941
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-8vkzjtwb.js");
|
|
26934
26942
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
26935
26943
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
26936
26944
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -28141,7 +28149,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
28141
28149
|
const result = runConfigDoctor(config, directory);
|
|
28142
28150
|
let output;
|
|
28143
28151
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
28144
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
28152
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-4avzz3rh.js");
|
|
28145
28153
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
28146
28154
|
applyLossy: true
|
|
28147
28155
|
});
|
|
@@ -34420,6 +34428,7 @@ function serializeAgentSession(s) {
|
|
|
34420
34428
|
reviewerCallCount[String(phase)] = count;
|
|
34421
34429
|
}
|
|
34422
34430
|
const partialGateWarningsIssuedForTask = Array.from(s.partialGateWarningsIssuedForTask ?? new Set);
|
|
34431
|
+
const completionGateWarnedForTask = Array.from(s.completionGateWarnedForTask ?? new Set);
|
|
34423
34432
|
const catastrophicPhaseWarnings = Array.from(s.catastrophicPhaseWarnings ?? new Set);
|
|
34424
34433
|
const phaseAgentsDispatched = Array.from(s.phaseAgentsDispatched ?? new Set);
|
|
34425
34434
|
const lastCompletedPhaseAgentsDispatched = Array.from(s.lastCompletedPhaseAgentsDispatched ?? new Set);
|
|
@@ -34473,6 +34482,7 @@ function serializeAgentSession(s) {
|
|
|
34473
34482
|
reviewerCallCount,
|
|
34474
34483
|
lastGateFailure: s.lastGateFailure ?? null,
|
|
34475
34484
|
partialGateWarningsIssuedForTask,
|
|
34485
|
+
completionGateWarnedForTask,
|
|
34476
34486
|
selfFixAttempted: s.selfFixAttempted ?? false,
|
|
34477
34487
|
selfCodingWarnedAtCount: s.selfCodingWarnedAtCount ?? 0,
|
|
34478
34488
|
catastrophicPhaseWarnings,
|
|
@@ -44756,6 +44766,7 @@ function resetPrmSessionState(session, sessionId) {
|
|
|
44756
44766
|
session.prmLastPatternDetected = null;
|
|
44757
44767
|
session.prmHardStopPending = false;
|
|
44758
44768
|
session.prmTrajectoryStep = 0;
|
|
44769
|
+
session.prmInjectedAdvisoryKeys = new Set;
|
|
44759
44770
|
session.replayArtifactPath = null;
|
|
44760
44771
|
if (sessionId) {
|
|
44761
44772
|
_internals67.clearTrajectoryCache(sessionId);
|
|
@@ -49419,7 +49430,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
49419
49430
|
async function handleHelpCommand(ctx) {
|
|
49420
49431
|
const targetCommand = ctx.args.join(" ");
|
|
49421
49432
|
if (!targetCommand) {
|
|
49422
|
-
const { buildHelpText } = await import("./index-
|
|
49433
|
+
const { buildHelpText } = await import("./index-mz6sqtm9.js");
|
|
49423
49434
|
return buildHelpText();
|
|
49424
49435
|
}
|
|
49425
49436
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -49428,7 +49439,7 @@ async function handleHelpCommand(ctx) {
|
|
|
49428
49439
|
return _internals10.buildDetailedHelp(resolved.key, resolved.entry);
|
|
49429
49440
|
}
|
|
49430
49441
|
const similar = _internals10.findSimilarCommands(targetCommand);
|
|
49431
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
49442
|
+
const { buildHelpText: fullHelp } = await import("./index-mz6sqtm9.js");
|
|
49432
49443
|
if (similar.length > 0) {
|
|
49433
49444
|
return `Command '/swarm ${targetCommand}' not found.
|
|
49434
49445
|
|
|
@@ -49567,7 +49578,7 @@ var COMMAND_REGISTRY = {
|
|
|
49567
49578
|
},
|
|
49568
49579
|
"guardrail explain": {
|
|
49569
49580
|
handler: async (ctx) => {
|
|
49570
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
49581
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-tw521x47.js");
|
|
49571
49582
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
49572
49583
|
},
|
|
49573
49584
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -49577,7 +49588,7 @@ var COMMAND_REGISTRY = {
|
|
|
49577
49588
|
},
|
|
49578
49589
|
"guardrail-explain": {
|
|
49579
49590
|
handler: async (ctx) => {
|
|
49580
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
49591
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-tw521x47.js");
|
|
49581
49592
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
49582
49593
|
},
|
|
49583
49594
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -49587,7 +49598,7 @@ var COMMAND_REGISTRY = {
|
|
|
49587
49598
|
},
|
|
49588
49599
|
"guardrail-log": {
|
|
49589
49600
|
handler: async (ctx) => {
|
|
49590
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
49601
|
+
const { handleGuardrailLog } = await import("./guardrail-log-e3jrwdw8.js");
|
|
49591
49602
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
49592
49603
|
},
|
|
49593
49604
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadPluginConfigWithMeta,
|
|
8
8
|
loadPluginConfigWithMetaAsync,
|
|
9
9
|
resolveWorktreeIsolationConfig
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-c0e3vhv9.js";
|
|
11
11
|
import {
|
|
12
12
|
ApprovalEvidenceSchema,
|
|
13
13
|
BaseEvidenceSchema,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
isQAAgent,
|
|
63
63
|
isSubagent,
|
|
64
64
|
resolveAutoReviewConfig
|
|
65
|
-
} from "./index-
|
|
65
|
+
} from "./index-y2esw64s.js";
|
|
66
66
|
import"./index-bk5tah7q.js";
|
|
67
67
|
import {
|
|
68
68
|
MigrationStatusSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-zjw32rv9.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-2j8f71c3.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
15
|
} from "./index-cfkvc5q9.js";
|
|
@@ -608,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
608
608
|
deltas.push({ id, delta });
|
|
609
609
|
}
|
|
610
610
|
if (deltas.length > 0) {
|
|
611
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
611
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-n5pvv0s3.js");
|
|
612
612
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
613
613
|
}
|
|
614
614
|
return {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-2j8f71c3.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-8t9xpn1a.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-qg31ycbb.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-erk5bz43.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-463k8mfr.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-6b69mp0r.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-2j8f71c3.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-8t9xpn1a.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-pz49rx4y.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-9z1q181f.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,30 +84,30 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-358f9h8p.js";
|
|
88
88
|
import"./index-13xxjfhn.js";
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
89
|
+
import"./index-1v5mby7t.js";
|
|
90
|
+
import"./index-bq2848a3.js";
|
|
91
91
|
import"./index-k742ecbm.js";
|
|
92
92
|
import"./index-4905hd2m.js";
|
|
93
93
|
import"./index-134d35c1.js";
|
|
94
|
-
import"./index-
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
94
|
+
import"./index-m8ajf6wb.js";
|
|
95
|
+
import"./index-kwm7hz18.js";
|
|
96
|
+
import"./index-0541h76w.js";
|
|
97
97
|
import"./index-vxv732ex.js";
|
|
98
98
|
import"./index-c8s9a3zh.js";
|
|
99
99
|
import"./index-9ss2m4rs.js";
|
|
100
100
|
import"./index-wk1h5ec2.js";
|
|
101
101
|
import"./index-1j3682j8.js";
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
102
|
+
import"./index-6b69mp0r.js";
|
|
103
|
+
import"./index-zjw32rv9.js";
|
|
104
104
|
import"./index-rtry5xyf.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-2j8f71c3.js";
|
|
106
|
+
import"./index-8t9xpn1a.js";
|
|
107
107
|
import"./index-ae75rja9.js";
|
|
108
108
|
import"./index-cfkvc5q9.js";
|
|
109
109
|
import"./index-dd7ttx8x.js";
|
|
110
|
-
import"./index-
|
|
110
|
+
import"./index-c0e3vhv9.js";
|
|
111
111
|
import"./index-k5jrywpr.js";
|
|
112
112
|
import"./index-n832052r.js";
|
|
113
113
|
import {
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
init_constants,
|
|
117
117
|
init_schema,
|
|
118
118
|
stripKnownSwarmPrefix
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-y2esw64s.js";
|
|
120
120
|
import"./index-bk5tah7q.js";
|
|
121
121
|
import"./index-8fwhhayc.js";
|
|
122
122
|
import"./index-q1exe2b3.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-358f9h8p.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-1v5mby7t.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -19,7 +19,7 @@ var package_default;
|
|
|
19
19
|
var init_package = __esm(() => {
|
|
20
20
|
package_default = {
|
|
21
21
|
name: "opencode-swarm",
|
|
22
|
-
version: "7.134.
|
|
22
|
+
version: "7.134.1",
|
|
23
23
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
24
24
|
main: "dist/index.js",
|
|
25
25
|
types: "dist/index.d.ts",
|
package/dist/cli/index.js
CHANGED
|
@@ -6,30 +6,30 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-358f9h8p.js";
|
|
10
10
|
import"./index-13xxjfhn.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-1v5mby7t.js";
|
|
12
|
+
import"./index-bq2848a3.js";
|
|
13
13
|
import"./index-k742ecbm.js";
|
|
14
14
|
import"./index-4905hd2m.js";
|
|
15
15
|
import"./index-134d35c1.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
16
|
+
import"./index-m8ajf6wb.js";
|
|
17
|
+
import"./index-kwm7hz18.js";
|
|
18
|
+
import"./index-0541h76w.js";
|
|
19
19
|
import"./index-vxv732ex.js";
|
|
20
20
|
import"./index-c8s9a3zh.js";
|
|
21
21
|
import"./index-9ss2m4rs.js";
|
|
22
22
|
import"./index-wk1h5ec2.js";
|
|
23
23
|
import"./index-1j3682j8.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-6b69mp0r.js";
|
|
25
|
+
import"./index-zjw32rv9.js";
|
|
26
26
|
import"./index-rtry5xyf.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-2j8f71c3.js";
|
|
28
|
+
import"./index-8t9xpn1a.js";
|
|
29
29
|
import"./index-ae75rja9.js";
|
|
30
30
|
import"./index-cfkvc5q9.js";
|
|
31
31
|
import"./index-dd7ttx8x.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-c0e3vhv9.js";
|
|
33
33
|
import"./index-k5jrywpr.js";
|
|
34
34
|
import"./index-n832052r.js";
|
|
35
35
|
import {
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
init_constants,
|
|
38
38
|
init_package,
|
|
39
39
|
package_default
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-y2esw64s.js";
|
|
41
41
|
import"./index-bk5tah7q.js";
|
|
42
42
|
import"./index-8fwhhayc.js";
|
|
43
43
|
import"./index-q1exe2b3.js";
|
|
@@ -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-kwm7hz18.js";
|
|
12
|
+
import"./index-2j8f71c3.js";
|
|
13
|
+
import"./index-8t9xpn1a.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-cfkvc5q9.js";
|
|
16
16
|
import"./index-dd7ttx8x.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
resolveKnowledgeCounterBaselinePath,
|
|
27
27
|
resolveKnowledgeEventsPath,
|
|
28
28
|
resolveLegacyApplicationLogPath
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-8t9xpn1a.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-cfkvc5q9.js";
|
|
32
32
|
import"./index-dd7ttx8x.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-6b69mp0r.js";
|
|
27
|
+
import"./index-zjw32rv9.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-2j8f71c3.js";
|
|
30
|
+
import"./index-8t9xpn1a.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-cfkvc5q9.js";
|
|
33
33
|
import"./index-dd7ttx8x.js";
|