opencode-swarm 7.143.1 → 7.143.2
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/cli/{config-doctor-ajq3sts3.js → config-doctor-xadt4kv5.js} +2 -2
- package/dist/cli/{core-0jn7sk7t.js → core-vpefadja.js} +1 -1
- package/dist/cli/{curator-llm-factory-2mz7fgd1.js → curator-llm-factory-xjw5j2jj.js} +17 -17
- package/dist/cli/{curator-ff53rwz5.js → curator-wahbxxw9.js} +17 -17
- package/dist/cli/{evidence-summary-service-08zcq836.js → evidence-summary-service-m0jes2yb.js} +6 -6
- package/dist/cli/{gate-evidence-2r7n4qjv.js → gate-evidence-sf9hbhm0.js} +2 -2
- package/dist/cli/{guardrail-explain-cm5je07b.js → guardrail-explain-9vdjkz5x.js} +18 -18
- package/dist/cli/{guardrail-log-jf4430p5.js → guardrail-log-xr0cv07v.js} +3 -3
- package/dist/cli/{hive-promoter-738bf1fj.js → hive-promoter-ften3m3h.js} +17 -17
- package/dist/cli/{index-crt7xw29.js → index-2pxq133w.js} +1 -1
- package/dist/cli/{index-3fg8kx7n.js → index-4g1bnzma.js} +2 -2
- package/dist/cli/{index-q7jv0c8e.js → index-6f80e8r5.js} +59 -47
- package/dist/cli/{index-91dz0zct.js → index-6hwedxn7.js} +3 -3
- package/dist/cli/{index-mpw32szm.js → index-6q3wx600.js} +1 -1
- package/dist/cli/{index-0kqs2fbm.js → index-700yppfy.js} +1 -1
- package/dist/cli/{index-x10a9cz6.js → index-7e91cs99.js} +5 -5
- package/dist/cli/{index-7317fvce.js → index-8hxbjgyk.js} +1 -1
- package/dist/cli/{index-srd87kxc.js → index-fq0b44vq.js} +4 -4
- package/dist/cli/{index-wnj1d1es.js → index-h5fmwg5b.js} +19 -19
- package/dist/cli/{index-qmfzfh7m.js → index-je3jmcc1.js} +3 -3
- package/dist/cli/{index-awzwmx8p.js → index-jvbqryky.js} +3 -3
- package/dist/cli/{index-cz9tc0h8.js → index-kc9tfc7e.js} +3 -3
- package/dist/cli/{index-q68a8h37.js → index-kjgma6hg.js} +1 -1
- package/dist/cli/{index-n48cwf1a.js → index-nvt1152n.js} +50 -15
- package/dist/cli/{index-zgq25ze6.js → index-qswsp6s3.js} +1 -1
- package/dist/cli/{index-n2jk8ajv.js → index-r0j1sh38.js} +1 -1
- package/dist/cli/{index-254xf5y6.js → index-x0ja3n3g.js} +2 -2
- package/dist/cli/{index-a5rky7fv.js → index-xacfcpyn.js} +2 -2
- package/dist/cli/{index-zky3vt90.js → index-yr997mhn.js} +1 -1
- package/dist/cli/{index-cfwdm1dx.js → index-yw4atzww.js} +1 -1
- package/dist/cli/index.js +17 -17
- package/dist/cli/{knowledge-escalator-9mdajq4s.js → knowledge-escalator-9xesv2xx.js} +6 -6
- package/dist/cli/{knowledge-events-pz58s2r1.js → knowledge-events-s8nvbdyk.js} +4 -4
- package/dist/cli/{knowledge-store-sz8vat89.js → knowledge-store-2zt0b10b.js} +1 -1
- package/dist/cli/{knowledge-validator-w5vmvf0a.js → knowledge-validator-nt955tw0.js} +2 -2
- package/dist/cli/{scan-cursor-p54xsx41.js → scan-cursor-emrg35t0.js} +2 -2
- package/dist/cli/{schema-p74hnrfz.js → schema-tpbz8f0x.js} +1 -1
- package/dist/cli/{scope-persistence-1fc2ncsk.js → scope-persistence-1hf839ys.js} +4 -4
- package/dist/cli/{skill-generator-yv46bt1a.js → skill-generator-fja22m4q.js} +7 -7
- package/dist/cli/{worktree-isolation-qfgc3vma.js → worktree-isolation-gnqvy10j.js} +17 -17
- package/dist/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
stableCanonicalStringify
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-8hxbjgyk.js";
|
|
5
5
|
import {
|
|
6
6
|
detectStraySwarmDirs,
|
|
7
7
|
readDoctorArtifact,
|
|
8
8
|
removeStraySwarmDir,
|
|
9
9
|
runConfigDoctor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-yr997mhn.js";
|
|
11
11
|
import {
|
|
12
12
|
MAX_TRANSIENT_RETRIES,
|
|
13
13
|
archiveEvidence,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
updateTaskCheckpointReceipt,
|
|
55
55
|
updateTaskStatus,
|
|
56
56
|
validateProjectRoot
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-jvbqryky.js";
|
|
58
58
|
import {
|
|
59
59
|
loadDatabaseCtor
|
|
60
60
|
} from "./index-134d35c1.js";
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
alreadyCuratedThisGeneration,
|
|
107
107
|
claimNextScanBatch,
|
|
108
108
|
resolveCohortId
|
|
109
|
-
} from "./index-
|
|
109
|
+
} from "./index-2pxq133w.js";
|
|
110
110
|
import {
|
|
111
111
|
CURATOR_INIT_PROMPT,
|
|
112
112
|
CURATOR_PHASE_PROMPT,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
startupOrphanRecovery,
|
|
142
142
|
withTaskEvidenceTransaction,
|
|
143
143
|
writeWorkflowWalFile
|
|
144
|
-
} from "./index-
|
|
144
|
+
} from "./index-700yppfy.js";
|
|
145
145
|
import {
|
|
146
146
|
changedFilesSinceSnapshot,
|
|
147
147
|
parsePorcelainV2Snapshot,
|
|
@@ -188,16 +188,16 @@ import {
|
|
|
188
188
|
retireSkill,
|
|
189
189
|
selectCandidateEntries,
|
|
190
190
|
syncBundledProjectSkillsIfMissingAsync
|
|
191
|
-
} from "./index-
|
|
191
|
+
} from "./index-6hwedxn7.js";
|
|
192
192
|
import {
|
|
193
193
|
readRecentEscalations
|
|
194
|
-
} from "./index-
|
|
194
|
+
} from "./index-7e91cs99.js";
|
|
195
195
|
import {
|
|
196
196
|
MAX_PENDING_SCOPE_BINDINGS,
|
|
197
197
|
clearAllScopes,
|
|
198
198
|
clearScopeBindingFromDisk,
|
|
199
199
|
clearScopeBindings
|
|
200
|
-
} from "./index-
|
|
200
|
+
} from "./index-4g1bnzma.js";
|
|
201
201
|
import {
|
|
202
202
|
appendLedgerEvent,
|
|
203
203
|
computePlanHash,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
readPlanEpochIdentity,
|
|
211
211
|
replayFromLedgerWithStatus,
|
|
212
212
|
takeSnapshotEvent
|
|
213
|
-
} from "./index-
|
|
213
|
+
} from "./index-kjgma6hg.js";
|
|
214
214
|
import {
|
|
215
215
|
isPathWithinDeclaredScope
|
|
216
216
|
} from "./index-556ja8an.js";
|
|
@@ -238,7 +238,7 @@ import {
|
|
|
238
238
|
import {
|
|
239
239
|
provisionWorktree,
|
|
240
240
|
removeWorktree
|
|
241
|
-
} from "./index-
|
|
241
|
+
} from "./index-nvt1152n.js";
|
|
242
242
|
import {
|
|
243
243
|
SandboxCapabilityProbe,
|
|
244
244
|
init_capability_probe
|
|
@@ -262,10 +262,10 @@ import {
|
|
|
262
262
|
recordKnowledgeEvent,
|
|
263
263
|
recordPhaseCloseIntent,
|
|
264
264
|
resolveKnowledgeEventsPath
|
|
265
|
-
} from "./index-
|
|
265
|
+
} from "./index-je3jmcc1.js";
|
|
266
266
|
import {
|
|
267
267
|
resolveWorktreeIsolationConfig
|
|
268
|
-
} from "./index-
|
|
268
|
+
} from "./index-x0ja3n3g.js";
|
|
269
269
|
import {
|
|
270
270
|
RetrospectiveEvidenceSchema
|
|
271
271
|
} from "./index-gprxjmm7.js";
|
|
@@ -275,7 +275,7 @@ import {
|
|
|
275
275
|
init_loader,
|
|
276
276
|
loadPluginConfig,
|
|
277
277
|
loadPluginConfigWithMeta
|
|
278
|
-
} from "./index-
|
|
278
|
+
} from "./index-qswsp6s3.js";
|
|
279
279
|
import {
|
|
280
280
|
DEFAULT_SKILL_OPT_CONFIG,
|
|
281
281
|
FALLBACK_MODELS_MAX,
|
|
@@ -289,7 +289,7 @@ import {
|
|
|
289
289
|
package_default,
|
|
290
290
|
resolveAutoReviewConfig,
|
|
291
291
|
stripKnownSwarmPrefix
|
|
292
|
-
} from "./index-
|
|
292
|
+
} from "./index-6q3wx600.js";
|
|
293
293
|
import {
|
|
294
294
|
readSwarmFileAsync,
|
|
295
295
|
safeHook,
|
|
@@ -324,7 +324,7 @@ import {
|
|
|
324
324
|
validateActionableFields,
|
|
325
325
|
validateLesson,
|
|
326
326
|
validateSkillPath
|
|
327
|
-
} from "./index-
|
|
327
|
+
} from "./index-yw4atzww.js";
|
|
328
328
|
import {
|
|
329
329
|
authorizeCuration,
|
|
330
330
|
buildConfigFingerprintInput
|
|
@@ -361,7 +361,7 @@ import {
|
|
|
361
361
|
transactFile,
|
|
362
362
|
transactKnowledge,
|
|
363
363
|
wordBigrams
|
|
364
|
-
} from "./index-
|
|
364
|
+
} from "./index-fq0b44vq.js";
|
|
365
365
|
import {
|
|
366
366
|
resolveHiveDataDir,
|
|
367
367
|
resolveHiveEventsPath,
|
|
@@ -4153,7 +4153,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
4153
4153
|
awaitingMergeByCallID,
|
|
4154
4154
|
cleanupStandardWorktreeForCallId,
|
|
4155
4155
|
standardWorktreeByCallID
|
|
4156
|
-
} = await import("./worktree-isolation-
|
|
4156
|
+
} = await import("./worktree-isolation-gnqvy10j.js");
|
|
4157
4157
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
4158
4158
|
if (hasResidue)
|
|
4159
4159
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -4232,7 +4232,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
4232
4232
|
awaitingMergeByCallID,
|
|
4233
4233
|
finishStandardWorktreeDispatch,
|
|
4234
4234
|
standardWorktreeByCallID
|
|
4235
|
-
} = await import("./worktree-isolation-
|
|
4235
|
+
} = await import("./worktree-isolation-gnqvy10j.js");
|
|
4236
4236
|
const descriptor = wal.worktree;
|
|
4237
4237
|
const reconstructedDispatch = {
|
|
4238
4238
|
callID: descriptor.callID,
|
|
@@ -14931,7 +14931,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
14931
14931
|
};
|
|
14932
14932
|
}
|
|
14933
14933
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
14934
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
14934
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-kc9tfc7e.js");
|
|
14935
14935
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
14936
14936
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
14937
14937
|
if (sweepConfig?.enabled === false)
|
|
@@ -16015,7 +16015,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
16015
16015
|
}
|
|
16016
16016
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
16017
16017
|
try {
|
|
16018
|
-
const skillModule = await import("./skill-generator-
|
|
16018
|
+
const skillModule = await import("./skill-generator-fja22m4q.js");
|
|
16019
16019
|
for (const cand of skillCandidates) {
|
|
16020
16020
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
16021
16021
|
continue;
|
|
@@ -16475,7 +16475,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
16475
16475
|
} catch {}
|
|
16476
16476
|
}
|
|
16477
16477
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
16478
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
16478
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-9xesv2xx.js");
|
|
16479
16479
|
for (const { id } of contradictedEntries) {
|
|
16480
16480
|
try {
|
|
16481
16481
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -17294,7 +17294,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
17294
17294
|
warnings.push("Failed to collect knowledge summary.");
|
|
17295
17295
|
}
|
|
17296
17296
|
try {
|
|
17297
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
17297
|
+
const { getScanStatus } = await import("./scan-cursor-emrg35t0.js");
|
|
17298
17298
|
const scanStatus = await getScanStatus(directory);
|
|
17299
17299
|
if (scanStatus.remaining_estimate > 0) {
|
|
17300
17300
|
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.`);
|
|
@@ -17466,9 +17466,9 @@ var _internals23 = {
|
|
|
17466
17466
|
verifyPostMortemKnowledgeActions,
|
|
17467
17467
|
repairPostMortemActions,
|
|
17468
17468
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
17469
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
17469
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-tpbz8f0x.js");
|
|
17470
17470
|
try {
|
|
17471
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
17471
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-kc9tfc7e.js");
|
|
17472
17472
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
17473
17473
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
17474
17474
|
} catch {
|
|
@@ -17476,11 +17476,11 @@ var _internals23 = {
|
|
|
17476
17476
|
}
|
|
17477
17477
|
},
|
|
17478
17478
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
17479
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
17479
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-wahbxxw9.js");
|
|
17480
17480
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
17481
17481
|
},
|
|
17482
17482
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
17483
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
17483
|
+
const { checkHivePromotions } = await import("./hive-promoter-ften3m3h.js");
|
|
17484
17484
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
17485
17485
|
},
|
|
17486
17486
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -17489,7 +17489,7 @@ var _internals23 = {
|
|
|
17489
17489
|
activateProposal,
|
|
17490
17490
|
listSkills: listSkills2,
|
|
17491
17491
|
sanitizeSlug
|
|
17492
|
-
} = await import("./skill-generator-
|
|
17492
|
+
} = await import("./skill-generator-fja22m4q.js");
|
|
17493
17493
|
const result = {
|
|
17494
17494
|
approved: [],
|
|
17495
17495
|
rejected: [],
|
|
@@ -18825,9 +18825,9 @@ function hashContent(content) {
|
|
|
18825
18825
|
return createHash7("sha1").update(content).digest("hex");
|
|
18826
18826
|
}
|
|
18827
18827
|
async function loadConfigForPolicyCurator(directory) {
|
|
18828
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
18828
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-tpbz8f0x.js");
|
|
18829
18829
|
try {
|
|
18830
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
18830
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-kc9tfc7e.js");
|
|
18831
18831
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
18832
18832
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
18833
18833
|
} catch {
|
|
@@ -27669,7 +27669,7 @@ async function runFinalizeStage(ctx) {
|
|
|
27669
27669
|
}
|
|
27670
27670
|
}
|
|
27671
27671
|
try {
|
|
27672
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
27672
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-tpbz8f0x.js");
|
|
27673
27673
|
const { config: pmLoadedConfig } = _internals36.loadPluginConfigWithMeta(ctx.directory);
|
|
27674
27674
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
27675
27675
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -29947,9 +29947,9 @@ var _internals41 = {
|
|
|
29947
29947
|
loadPluginConfigWithMeta,
|
|
29948
29948
|
loadCuratorDeps: async () => {
|
|
29949
29949
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
29950
|
-
import("./schema-
|
|
29951
|
-
import("./curator-
|
|
29952
|
-
import("./curator-llm-factory-
|
|
29950
|
+
import("./schema-tpbz8f0x.js"),
|
|
29951
|
+
import("./curator-wahbxxw9.js"),
|
|
29952
|
+
import("./curator-llm-factory-xjw5j2jj.js")
|
|
29953
29953
|
]);
|
|
29954
29954
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
29955
29955
|
}
|
|
@@ -30854,7 +30854,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
30854
30854
|
let scanCompleted = false;
|
|
30855
30855
|
let scanRemaining = 0;
|
|
30856
30856
|
try {
|
|
30857
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
30857
|
+
const { getScanStatus } = await import("./scan-cursor-emrg35t0.js");
|
|
30858
30858
|
const status = await getScanStatus(directory);
|
|
30859
30859
|
scanGeneration = status.generation;
|
|
30860
30860
|
scanCompleted = status.completed;
|
|
@@ -30864,10 +30864,10 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
30864
30864
|
try {
|
|
30865
30865
|
const { isLinked: isLinked2 } = await import("./knowledge-link-fn5j3r4q.js");
|
|
30866
30866
|
if (isLinked2(directory)) {
|
|
30867
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
30867
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-tpbz8f0x.js");
|
|
30868
30868
|
let config;
|
|
30869
30869
|
try {
|
|
30870
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
30870
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-kc9tfc7e.js");
|
|
30871
30871
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
30872
30872
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
30873
30873
|
} catch {
|
|
@@ -32085,7 +32085,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
32085
32085
|
const result = runConfigDoctor(config, directory);
|
|
32086
32086
|
let output;
|
|
32087
32087
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
32088
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
32088
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-xadt4kv5.js");
|
|
32089
32089
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
32090
32090
|
applyLossy: true
|
|
32091
32091
|
});
|
|
@@ -32922,7 +32922,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
32922
32922
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
32923
32923
|
}
|
|
32924
32924
|
async function handleEvidenceSummaryCommand(directory) {
|
|
32925
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
32925
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-m0jes2yb.js");
|
|
32926
32926
|
const artifact = await buildEvidenceSummary(directory);
|
|
32927
32927
|
if (!artifact) {
|
|
32928
32928
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -57426,7 +57426,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
57426
57426
|
async function handleHelpCommand(ctx) {
|
|
57427
57427
|
const targetCommand = ctx.args.join(" ");
|
|
57428
57428
|
if (!targetCommand) {
|
|
57429
|
-
const { buildHelpText } = await import("./index-
|
|
57429
|
+
const { buildHelpText } = await import("./index-h5fmwg5b.js");
|
|
57430
57430
|
return buildHelpText();
|
|
57431
57431
|
}
|
|
57432
57432
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -57435,7 +57435,7 @@ async function handleHelpCommand(ctx) {
|
|
|
57435
57435
|
return _internals87.buildDetailedHelp(resolved.key, resolved.entry);
|
|
57436
57436
|
}
|
|
57437
57437
|
const similar = _internals87.findSimilarCommands(targetCommand);
|
|
57438
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
57438
|
+
const { buildHelpText: fullHelp } = await import("./index-h5fmwg5b.js");
|
|
57439
57439
|
if (similar.length > 0) {
|
|
57440
57440
|
return `Command '/swarm ${targetCommand}' not found.
|
|
57441
57441
|
|
|
@@ -57612,7 +57612,7 @@ var COMMAND_REGISTRY = {
|
|
|
57612
57612
|
},
|
|
57613
57613
|
"guardrail explain": {
|
|
57614
57614
|
handler: async (ctx) => {
|
|
57615
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
57615
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-9vdjkz5x.js");
|
|
57616
57616
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
57617
57617
|
},
|
|
57618
57618
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -57622,7 +57622,7 @@ var COMMAND_REGISTRY = {
|
|
|
57622
57622
|
},
|
|
57623
57623
|
"guardrail-explain": {
|
|
57624
57624
|
handler: async (ctx) => {
|
|
57625
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
57625
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-9vdjkz5x.js");
|
|
57626
57626
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
57627
57627
|
},
|
|
57628
57628
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -57632,7 +57632,7 @@ var COMMAND_REGISTRY = {
|
|
|
57632
57632
|
},
|
|
57633
57633
|
"guardrail-log": {
|
|
57634
57634
|
handler: async (ctx) => {
|
|
57635
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
57635
|
+
const { handleGuardrailLog } = await import("./guardrail-log-xr0cv07v.js");
|
|
57636
57636
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
57637
57637
|
},
|
|
57638
57638
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -64772,16 +64772,26 @@ async function preProvisionCollisionCheck(taskId, directory, _sessionId) {
|
|
|
64772
64772
|
} catch {}
|
|
64773
64773
|
}
|
|
64774
64774
|
const entries = [];
|
|
64775
|
-
let current = {
|
|
64775
|
+
let current = {
|
|
64776
|
+
path: "",
|
|
64777
|
+
branch: undefined,
|
|
64778
|
+
prunable: false
|
|
64779
|
+
};
|
|
64776
64780
|
for (const rawLine of stdout.split(`
|
|
64777
64781
|
`)) {
|
|
64778
64782
|
const line = rawLine.trim();
|
|
64779
64783
|
if (line.startsWith("worktree ")) {
|
|
64780
64784
|
if (current.path)
|
|
64781
64785
|
entries.push(current);
|
|
64782
|
-
current = {
|
|
64786
|
+
current = {
|
|
64787
|
+
path: line.slice("worktree ".length),
|
|
64788
|
+
branch: undefined,
|
|
64789
|
+
prunable: false
|
|
64790
|
+
};
|
|
64783
64791
|
} else if (line.startsWith("branch ")) {
|
|
64784
64792
|
current.branch = line.slice("branch ".length);
|
|
64793
|
+
} else if (line === "prunable" || line.startsWith("prunable ")) {
|
|
64794
|
+
current.prunable = true;
|
|
64785
64795
|
}
|
|
64786
64796
|
}
|
|
64787
64797
|
if (current.path)
|
|
@@ -64789,6 +64799,8 @@ async function preProvisionCollisionCheck(taskId, directory, _sessionId) {
|
|
|
64789
64799
|
for (const entry of entries) {
|
|
64790
64800
|
if (!entry.branch)
|
|
64791
64801
|
continue;
|
|
64802
|
+
if (entry.prunable)
|
|
64803
|
+
continue;
|
|
64792
64804
|
const branchName = entry.branch.startsWith("refs/heads/") ? entry.branch.slice("refs/heads/".length) : entry.branch;
|
|
64793
64805
|
const segments = branchName.split("/");
|
|
64794
64806
|
if (segments.length >= 4 && segments[0] === "swarm" && segments[1] === "lane") {
|
|
@@ -64971,7 +64983,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
64971
64983
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, provisionResult.worktreePath);
|
|
64972
64984
|
if (laneProfile) {
|
|
64973
64985
|
try {
|
|
64974
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
64986
|
+
const { writeLaneProfileToDiskReal } = await import("./core-vpefadja.js");
|
|
64975
64987
|
await writeLaneProfileToDiskReal(provisionResult.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
64976
64988
|
} catch {}
|
|
64977
64989
|
}
|
|
@@ -65470,7 +65482,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
65470
65482
|
}
|
|
65471
65483
|
clearWorktreeMergeStatus(statusKey);
|
|
65472
65484
|
try {
|
|
65473
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
65485
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-vpefadja.js");
|
|
65474
65486
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
65475
65487
|
} catch {}
|
|
65476
65488
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
effectiveRetrievalOutcomes,
|
|
4
4
|
readAuthoritativeKnowledgeCounterRollups
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-je3jmcc1.js";
|
|
6
6
|
import {
|
|
7
7
|
advisoryWarn,
|
|
8
8
|
init_warning_buffer
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
12
12
|
validateSkillPath
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-yw4atzww.js";
|
|
14
14
|
import {
|
|
15
15
|
computeOutcomeSignal,
|
|
16
16
|
readKnowledge,
|
|
17
17
|
resolveHiveKnowledgePath,
|
|
18
18
|
resolveSwarmKnowledgePath,
|
|
19
19
|
transactKnowledge
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-fq0b44vq.js";
|
|
21
21
|
import {
|
|
22
22
|
init_knowledge_types,
|
|
23
23
|
isActiveStatus
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.143.
|
|
24
|
+
version: "7.143.2",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-je3jmcc1.js";
|
|
7
7
|
import {
|
|
8
8
|
jaccardBigram,
|
|
9
9
|
readKnowledge,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveSwarmKnowledgePath,
|
|
12
12
|
transactKnowledge,
|
|
13
13
|
wordBigrams
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-fq0b44vq.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-nt955tw0.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-tpbz8f0x.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-kc9tfc7e.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -709,7 +709,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
709
709
|
const {
|
|
710
710
|
readAuthoritativeKnowledgeCounterRollups,
|
|
711
711
|
effectiveRetrievalOutcomes
|
|
712
|
-
} = await import("./knowledge-events-
|
|
712
|
+
} = await import("./knowledge-events-s8nvbdyk.js");
|
|
713
713
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
714
714
|
const flagIds = new Set;
|
|
715
715
|
for (const e of atFloor) {
|
|
@@ -776,11 +776,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
779
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
780
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
779
|
+
const { quarantineEntry } = await import("./knowledge-validator-nt955tw0.js");
|
|
780
|
+
const { KnowledgeConfigSchema } = await import("./schema-tpbz8f0x.js");
|
|
781
781
|
let config;
|
|
782
782
|
try {
|
|
783
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
783
|
+
const { loadPluginConfigWithMeta } = await import("./index-kc9tfc7e.js");
|
|
784
784
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
785
785
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
786
786
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-xacfcpyn.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-r0j1sh38.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,44 +84,44 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
88
|
-
import"./index-
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
87
|
+
} from "./index-6f80e8r5.js";
|
|
88
|
+
import"./index-8hxbjgyk.js";
|
|
89
|
+
import"./index-yr997mhn.js";
|
|
90
|
+
import"./index-jvbqryky.js";
|
|
91
91
|
import"./index-134d35c1.js";
|
|
92
92
|
import"./index-b6e016tv.js";
|
|
93
93
|
import"./index-4q9vfav6.js";
|
|
94
94
|
import"./index-k92cagmt.js";
|
|
95
95
|
import"./index-y8552snf.js";
|
|
96
|
-
import"./index-
|
|
96
|
+
import"./index-2pxq133w.js";
|
|
97
97
|
import"./index-xmzmeknp.js";
|
|
98
98
|
import"./index-c8s9a3zh.js";
|
|
99
99
|
import"./index-9ss2m4rs.js";
|
|
100
|
-
import"./index-
|
|
100
|
+
import"./index-700yppfy.js";
|
|
101
101
|
import"./index-74hpm6sh.js";
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
102
|
+
import"./index-6hwedxn7.js";
|
|
103
|
+
import"./index-7e91cs99.js";
|
|
104
|
+
import"./index-4g1bnzma.js";
|
|
105
|
+
import"./index-kjgma6hg.js";
|
|
106
106
|
import"./index-556ja8an.js";
|
|
107
107
|
import"./index-gdd4jt6b.js";
|
|
108
108
|
import"./index-zsrtt42s.js";
|
|
109
109
|
import"./index-k3cxyk66.js";
|
|
110
110
|
import"./index-8aabbfhv.js";
|
|
111
|
-
import"./index-
|
|
111
|
+
import"./index-nvt1152n.js";
|
|
112
112
|
import"./index-8fwhhayc.js";
|
|
113
113
|
import"./index-q1exe2b3.js";
|
|
114
114
|
import"./index-7sy3aa9m.js";
|
|
115
115
|
import"./index-4905hd2m.js";
|
|
116
|
-
import"./index-
|
|
117
|
-
import"./index-
|
|
116
|
+
import"./index-je3jmcc1.js";
|
|
117
|
+
import"./index-x0ja3n3g.js";
|
|
118
118
|
import"./index-gprxjmm7.js";
|
|
119
119
|
import"./index-n832052r.js";
|
|
120
|
-
import"./index-
|
|
120
|
+
import"./index-qswsp6s3.js";
|
|
121
121
|
import {
|
|
122
122
|
init_schema,
|
|
123
123
|
stripKnownSwarmPrefix
|
|
124
|
-
} from "./index-
|
|
124
|
+
} from "./index-6q3wx600.js";
|
|
125
125
|
import"./index-rn0eq85g.js";
|
|
126
126
|
import"./index-4rhhvd1a.js";
|
|
127
127
|
import {
|
|
@@ -131,10 +131,10 @@ import {
|
|
|
131
131
|
} from "./index-jqsfsqbx.js";
|
|
132
132
|
import"./index-z6xqpmqg.js";
|
|
133
133
|
import"./index-zjygnfay.js";
|
|
134
|
-
import"./index-
|
|
134
|
+
import"./index-yw4atzww.js";
|
|
135
135
|
import"./index-tq5s07ta.js";
|
|
136
136
|
import"./index-rtry5xyf.js";
|
|
137
|
-
import"./index-
|
|
137
|
+
import"./index-fq0b44vq.js";
|
|
138
138
|
import"./index-ae75rja9.js";
|
|
139
139
|
import"./index-w7x7qxz2.js";
|
|
140
140
|
import"./index-erfnw81g.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
loadPluginConfigWithMeta
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-qswsp6s3.js";
|
|
5
5
|
import {
|
|
6
6
|
KnowledgeConfigSchema,
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-6q3wx600.js";
|
|
9
9
|
import {
|
|
10
10
|
validateSwarmPath
|
|
11
11
|
} from "./index-rn0eq85g.js";
|
|
@@ -2545,7 +2545,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
let bumps = 0;
|
|
2547
2547
|
if (deltas.length > 0) {
|
|
2548
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2548
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-2zt0b10b.js");
|
|
2549
2549
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2550
2550
|
}
|
|
2551
2551
|
return {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readTaskEvidence,
|
|
16
16
|
readTaskEvidenceRaw,
|
|
17
17
|
sanitizeTaskId
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-700yppfy.js";
|
|
19
19
|
import {
|
|
20
20
|
LedgerStaleWriterError,
|
|
21
21
|
appendLedgerEvent,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
replayFromLedgerWithStatus,
|
|
36
36
|
takeSnapshotEvent,
|
|
37
37
|
takeSnapshotWithRetry
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-kjgma6hg.js";
|
|
39
39
|
import {
|
|
40
40
|
getWorktreeMergeFailure
|
|
41
41
|
} from "./index-zsrtt42s.js";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
} from "./index-gprxjmm7.js";
|
|
54
54
|
import {
|
|
55
55
|
PlanSchema
|
|
56
|
-
} from "./index-
|
|
56
|
+
} from "./index-qswsp6s3.js";
|
|
57
57
|
import {
|
|
58
58
|
readSwarmFileAsync,
|
|
59
59
|
validateSwarmPath
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-x0ja3n3g.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
loadPluginConfig,
|
|
43
43
|
loadPluginConfigWithMeta,
|
|
44
44
|
loadPluginConfigWithMetaAsync
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-qswsp6s3.js";
|
|
46
46
|
import {
|
|
47
47
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
48
48
|
AgentOverrideConfigSchema,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
TurboConfigSchema,
|
|
65
65
|
WorktreeIsolationConfigSchema,
|
|
66
66
|
resolveAutoReviewConfig
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-6q3wx600.js";
|
|
68
68
|
import"./index-4rhhvd1a.js";
|
|
69
69
|
import {
|
|
70
70
|
ALL_AGENT_NAMES,
|