opencode-swarm 7.144.0 → 7.144.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/dist/agents/architect.d.ts +64 -0
- package/dist/cli/{config-doctor-7gy47evn.js → config-doctor-5hj26phk.js} +2 -2
- package/dist/cli/{core-cpcspaw5.js → core-aqtegsag.js} +1 -1
- package/dist/cli/{curator-llm-factory-fyjmgxyp.js → curator-llm-factory-1rg62kzr.js} +17 -17
- package/dist/cli/{curator-v97jnwn2.js → curator-vcrcht4h.js} +17 -17
- package/dist/cli/{evidence-summary-service-79mtxzhd.js → evidence-summary-service-fsh6jfhm.js} +6 -6
- package/dist/cli/{gate-evidence-kgyqz1g1.js → gate-evidence-9w2eehnj.js} +2 -2
- package/dist/cli/{guardrail-explain-9ry66z5g.js → guardrail-explain-6mxn4bj8.js} +18 -18
- package/dist/cli/{guardrail-log-fe6smme1.js → guardrail-log-81c5b018.js} +3 -3
- package/dist/cli/{hive-promoter-vwq1dbh1.js → hive-promoter-rxkykddk.js} +17 -17
- package/dist/cli/{index-3v3dxf75.js → index-1faydhv8.js} +3 -3
- package/dist/cli/{index-tfkfyshg.js → index-2ht8c7ew.js} +1 -1
- package/dist/cli/{index-mw6p3nt6.js → index-2pmaxbvj.js} +1 -1
- package/dist/cli/{index-ewzmjm7m.js → index-315tnsve.js} +1 -1
- package/dist/cli/{index-6p09gyra.js → index-4s5htbgq.js} +1 -1
- package/dist/cli/{index-8xertnqz.js → index-8gs34d2q.js} +3 -3
- package/dist/cli/{index-1pr8x10a.js → index-8jrn4rwp.js} +2 -2
- package/dist/cli/{index-0ck3e366.js → index-bgdr1ww3.js} +1 -1
- package/dist/cli/{index-jqabjy7t.js → index-c3zag2cw.js} +4 -4
- package/dist/cli/{index-269b52r3.js → index-dq26vbfp.js} +3 -3
- package/dist/cli/{index-j1scj25g.js → index-e9w1tfmm.js} +45 -45
- package/dist/cli/{index-zv4pwyas.js → index-f79hf8dr.js} +2 -2
- package/dist/cli/{index-vb9cpaz4.js → index-g0vr2a4m.js} +5 -5
- package/dist/cli/{index-e70d3xr7.js → index-hc25qawy.js} +19 -19
- package/dist/cli/{index-d45yrzkg.js → index-j2eb0x44.js} +1 -1
- package/dist/cli/{index-3q9w6e6v.js → index-j3byg0a9.js} +1 -1
- package/dist/cli/{index-evvbmbbv.js → index-mz1zwz96.js} +1 -1
- package/dist/cli/{index-rd2082y4.js → index-n11zkp9g.js} +2 -2
- package/dist/cli/{index-d45d4zyq.js → index-rdb3nr6d.js} +1 -1
- package/dist/cli/{index-ez18gjk2.js → index-rr2fjfsd.js} +3 -3
- package/dist/cli/{index-jvbfrwt2.js → index-sqp6349j.js} +1 -1
- package/dist/cli/index.js +17 -17
- package/dist/cli/{knowledge-escalator-rmy3jcx4.js → knowledge-escalator-hg4jzbrx.js} +6 -6
- package/dist/cli/{knowledge-events-1tqpbwvj.js → knowledge-events-wgy7gbct.js} +4 -4
- package/dist/cli/{knowledge-store-389ck792.js → knowledge-store-nd0f0e86.js} +1 -1
- package/dist/cli/{knowledge-validator-kvtk6633.js → knowledge-validator-0ar015bf.js} +2 -2
- package/dist/cli/{scan-cursor-ahgm4f5p.js → scan-cursor-pqp3bsqv.js} +2 -2
- package/dist/cli/{schema-epdq7ykx.js → schema-4ew49zrv.js} +1 -1
- package/dist/cli/{scope-persistence-37s9n40v.js → scope-persistence-geth2hb1.js} +4 -4
- package/dist/cli/{skill-generator-4d2t5gem.js → skill-generator-8azm6p2y.js} +7 -7
- package/dist/cli/{worktree-isolation-4628yaka.js → worktree-isolation-cqxgdk2p.js} +17 -17
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
stableCanonicalStringify
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-j2eb0x44.js";
|
|
5
5
|
import {
|
|
6
6
|
detectStraySwarmDirs,
|
|
7
7
|
readDoctorArtifact,
|
|
8
8
|
removeStraySwarmDir,
|
|
9
9
|
runConfigDoctor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-mz1zwz96.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-1faydhv8.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-2pmaxbvj.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-sqp6349j.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-dq26vbfp.js";
|
|
192
192
|
import {
|
|
193
193
|
readRecentEscalations
|
|
194
|
-
} from "./index-
|
|
194
|
+
} from "./index-g0vr2a4m.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-f79hf8dr.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-bgdr1ww3.js";
|
|
214
214
|
import {
|
|
215
215
|
isPathWithinDeclaredScope
|
|
216
216
|
} from "./index-556ja8an.js";
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
import {
|
|
245
245
|
provisionWorktree,
|
|
246
246
|
removeWorktree
|
|
247
|
-
} from "./index-
|
|
247
|
+
} from "./index-2ht8c7ew.js";
|
|
248
248
|
import {
|
|
249
249
|
SandboxCapabilityProbe,
|
|
250
250
|
init_capability_probe
|
|
@@ -268,10 +268,10 @@ import {
|
|
|
268
268
|
recordKnowledgeEvent,
|
|
269
269
|
recordPhaseCloseIntent,
|
|
270
270
|
resolveKnowledgeEventsPath
|
|
271
|
-
} from "./index-
|
|
271
|
+
} from "./index-rr2fjfsd.js";
|
|
272
272
|
import {
|
|
273
273
|
resolveWorktreeIsolationConfig
|
|
274
|
-
} from "./index-
|
|
274
|
+
} from "./index-8jrn4rwp.js";
|
|
275
275
|
import {
|
|
276
276
|
RetrospectiveEvidenceSchema
|
|
277
277
|
} from "./index-gprxjmm7.js";
|
|
@@ -281,7 +281,7 @@ import {
|
|
|
281
281
|
init_loader,
|
|
282
282
|
loadPluginConfig,
|
|
283
283
|
loadPluginConfigWithMeta
|
|
284
|
-
} from "./index-
|
|
284
|
+
} from "./index-rdb3nr6d.js";
|
|
285
285
|
import {
|
|
286
286
|
DEFAULT_SKILL_OPT_CONFIG,
|
|
287
287
|
FALLBACK_MODELS_MAX,
|
|
@@ -295,7 +295,7 @@ import {
|
|
|
295
295
|
package_default,
|
|
296
296
|
resolveAutoReviewConfig,
|
|
297
297
|
stripKnownSwarmPrefix
|
|
298
|
-
} from "./index-
|
|
298
|
+
} from "./index-j3byg0a9.js";
|
|
299
299
|
import {
|
|
300
300
|
readSwarmFileAsync,
|
|
301
301
|
safeHook,
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
validateActionableFields,
|
|
331
331
|
validateLesson,
|
|
332
332
|
validateSkillPath
|
|
333
|
-
} from "./index-
|
|
333
|
+
} from "./index-315tnsve.js";
|
|
334
334
|
import {
|
|
335
335
|
authorizeCuration,
|
|
336
336
|
buildConfigFingerprintInput
|
|
@@ -367,7 +367,7 @@ import {
|
|
|
367
367
|
transactFile,
|
|
368
368
|
transactKnowledge,
|
|
369
369
|
wordBigrams
|
|
370
|
-
} from "./index-
|
|
370
|
+
} from "./index-c3zag2cw.js";
|
|
371
371
|
import {
|
|
372
372
|
resolveHiveDataDir,
|
|
373
373
|
resolveHiveEventsPath,
|
|
@@ -4159,7 +4159,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
4159
4159
|
awaitingMergeByCallID,
|
|
4160
4160
|
cleanupStandardWorktreeForCallId,
|
|
4161
4161
|
standardWorktreeByCallID
|
|
4162
|
-
} = await import("./worktree-isolation-
|
|
4162
|
+
} = await import("./worktree-isolation-cqxgdk2p.js");
|
|
4163
4163
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
4164
4164
|
if (hasResidue)
|
|
4165
4165
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -4238,7 +4238,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
4238
4238
|
awaitingMergeByCallID,
|
|
4239
4239
|
finishStandardWorktreeDispatch,
|
|
4240
4240
|
standardWorktreeByCallID
|
|
4241
|
-
} = await import("./worktree-isolation-
|
|
4241
|
+
} = await import("./worktree-isolation-cqxgdk2p.js");
|
|
4242
4242
|
const descriptor = wal.worktree;
|
|
4243
4243
|
const reconstructedDispatch = {
|
|
4244
4244
|
callID: descriptor.callID,
|
|
@@ -15110,7 +15110,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
15110
15110
|
};
|
|
15111
15111
|
}
|
|
15112
15112
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
15113
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
15113
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8gs34d2q.js");
|
|
15114
15114
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
15115
15115
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
15116
15116
|
if (sweepConfig?.enabled === false)
|
|
@@ -16194,7 +16194,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
16194
16194
|
}
|
|
16195
16195
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
16196
16196
|
try {
|
|
16197
|
-
const skillModule = await import("./skill-generator-
|
|
16197
|
+
const skillModule = await import("./skill-generator-8azm6p2y.js");
|
|
16198
16198
|
for (const cand of skillCandidates) {
|
|
16199
16199
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
16200
16200
|
continue;
|
|
@@ -16654,7 +16654,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
16654
16654
|
} catch {}
|
|
16655
16655
|
}
|
|
16656
16656
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
16657
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
16657
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-hg4jzbrx.js");
|
|
16658
16658
|
for (const { id } of contradictedEntries) {
|
|
16659
16659
|
try {
|
|
16660
16660
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -17473,7 +17473,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
17473
17473
|
warnings.push("Failed to collect knowledge summary.");
|
|
17474
17474
|
}
|
|
17475
17475
|
try {
|
|
17476
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
17476
|
+
const { getScanStatus } = await import("./scan-cursor-pqp3bsqv.js");
|
|
17477
17477
|
const scanStatus = await getScanStatus(directory);
|
|
17478
17478
|
if (scanStatus.remaining_estimate > 0) {
|
|
17479
17479
|
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.`);
|
|
@@ -17645,9 +17645,9 @@ var _internals23 = {
|
|
|
17645
17645
|
verifyPostMortemKnowledgeActions,
|
|
17646
17646
|
repairPostMortemActions,
|
|
17647
17647
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
17648
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
17648
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4ew49zrv.js");
|
|
17649
17649
|
try {
|
|
17650
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
17650
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8gs34d2q.js");
|
|
17651
17651
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
17652
17652
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
17653
17653
|
} catch {
|
|
@@ -17655,11 +17655,11 @@ var _internals23 = {
|
|
|
17655
17655
|
}
|
|
17656
17656
|
},
|
|
17657
17657
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
17658
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
17658
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-vcrcht4h.js");
|
|
17659
17659
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
17660
17660
|
},
|
|
17661
17661
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
17662
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
17662
|
+
const { checkHivePromotions } = await import("./hive-promoter-rxkykddk.js");
|
|
17663
17663
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
17664
17664
|
},
|
|
17665
17665
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -17668,7 +17668,7 @@ var _internals23 = {
|
|
|
17668
17668
|
activateProposal,
|
|
17669
17669
|
listSkills: listSkills2,
|
|
17670
17670
|
sanitizeSlug
|
|
17671
|
-
} = await import("./skill-generator-
|
|
17671
|
+
} = await import("./skill-generator-8azm6p2y.js");
|
|
17672
17672
|
const result = {
|
|
17673
17673
|
approved: [],
|
|
17674
17674
|
rejected: [],
|
|
@@ -19004,9 +19004,9 @@ function hashContent(content) {
|
|
|
19004
19004
|
return createHash7("sha1").update(content).digest("hex");
|
|
19005
19005
|
}
|
|
19006
19006
|
async function loadConfigForPolicyCurator(directory) {
|
|
19007
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
19007
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4ew49zrv.js");
|
|
19008
19008
|
try {
|
|
19009
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
19009
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8gs34d2q.js");
|
|
19010
19010
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
19011
19011
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
19012
19012
|
} catch {
|
|
@@ -27852,7 +27852,7 @@ async function runFinalizeStage(ctx) {
|
|
|
27852
27852
|
}
|
|
27853
27853
|
}
|
|
27854
27854
|
try {
|
|
27855
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
27855
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-4ew49zrv.js");
|
|
27856
27856
|
const { config: pmLoadedConfig } = _internals36.loadPluginConfigWithMeta(ctx.directory);
|
|
27857
27857
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
27858
27858
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -30130,9 +30130,9 @@ var _internals41 = {
|
|
|
30130
30130
|
loadPluginConfigWithMeta,
|
|
30131
30131
|
loadCuratorDeps: async () => {
|
|
30132
30132
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
30133
|
-
import("./schema-
|
|
30134
|
-
import("./curator-
|
|
30135
|
-
import("./curator-llm-factory-
|
|
30133
|
+
import("./schema-4ew49zrv.js"),
|
|
30134
|
+
import("./curator-vcrcht4h.js"),
|
|
30135
|
+
import("./curator-llm-factory-1rg62kzr.js")
|
|
30136
30136
|
]);
|
|
30137
30137
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
30138
30138
|
}
|
|
@@ -31037,7 +31037,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
31037
31037
|
let scanCompleted = false;
|
|
31038
31038
|
let scanRemaining = 0;
|
|
31039
31039
|
try {
|
|
31040
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
31040
|
+
const { getScanStatus } = await import("./scan-cursor-pqp3bsqv.js");
|
|
31041
31041
|
const status = await getScanStatus(directory);
|
|
31042
31042
|
scanGeneration = status.generation;
|
|
31043
31043
|
scanCompleted = status.completed;
|
|
@@ -31047,10 +31047,10 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
31047
31047
|
try {
|
|
31048
31048
|
const { isLinked: isLinked2 } = await import("./knowledge-link-fn5j3r4q.js");
|
|
31049
31049
|
if (isLinked2(directory)) {
|
|
31050
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
31050
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4ew49zrv.js");
|
|
31051
31051
|
let config;
|
|
31052
31052
|
try {
|
|
31053
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
31053
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8gs34d2q.js");
|
|
31054
31054
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
31055
31055
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
31056
31056
|
} catch {
|
|
@@ -32268,7 +32268,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
32268
32268
|
const result = runConfigDoctor(config, directory);
|
|
32269
32269
|
let output;
|
|
32270
32270
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
32271
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
32271
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-5hj26phk.js");
|
|
32272
32272
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
32273
32273
|
applyLossy: true
|
|
32274
32274
|
});
|
|
@@ -33105,7 +33105,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
33105
33105
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
33106
33106
|
}
|
|
33107
33107
|
async function handleEvidenceSummaryCommand(directory) {
|
|
33108
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
33108
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-fsh6jfhm.js");
|
|
33109
33109
|
const artifact = await buildEvidenceSummary(directory);
|
|
33110
33110
|
if (!artifact) {
|
|
33111
33111
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -57875,7 +57875,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
57875
57875
|
async function handleHelpCommand(ctx) {
|
|
57876
57876
|
const targetCommand = ctx.args.join(" ");
|
|
57877
57877
|
if (!targetCommand) {
|
|
57878
|
-
const { buildHelpText } = await import("./index-
|
|
57878
|
+
const { buildHelpText } = await import("./index-hc25qawy.js");
|
|
57879
57879
|
return buildHelpText();
|
|
57880
57880
|
}
|
|
57881
57881
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -57884,7 +57884,7 @@ async function handleHelpCommand(ctx) {
|
|
|
57884
57884
|
return _internals87.buildDetailedHelp(resolved.key, resolved.entry);
|
|
57885
57885
|
}
|
|
57886
57886
|
const similar = _internals87.findSimilarCommands(targetCommand);
|
|
57887
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
57887
|
+
const { buildHelpText: fullHelp } = await import("./index-hc25qawy.js");
|
|
57888
57888
|
if (similar.length > 0) {
|
|
57889
57889
|
return `Command '/swarm ${targetCommand}' not found.
|
|
57890
57890
|
|
|
@@ -58061,7 +58061,7 @@ var COMMAND_REGISTRY = {
|
|
|
58061
58061
|
},
|
|
58062
58062
|
"guardrail explain": {
|
|
58063
58063
|
handler: async (ctx) => {
|
|
58064
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
58064
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-6mxn4bj8.js");
|
|
58065
58065
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
58066
58066
|
},
|
|
58067
58067
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -58071,7 +58071,7 @@ var COMMAND_REGISTRY = {
|
|
|
58071
58071
|
},
|
|
58072
58072
|
"guardrail-explain": {
|
|
58073
58073
|
handler: async (ctx) => {
|
|
58074
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
58074
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-6mxn4bj8.js");
|
|
58075
58075
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
58076
58076
|
},
|
|
58077
58077
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -58081,7 +58081,7 @@ var COMMAND_REGISTRY = {
|
|
|
58081
58081
|
},
|
|
58082
58082
|
"guardrail-log": {
|
|
58083
58083
|
handler: async (ctx) => {
|
|
58084
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
58084
|
+
const { handleGuardrailLog } = await import("./guardrail-log-81c5b018.js");
|
|
58085
58085
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
58086
58086
|
},
|
|
58087
58087
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -65441,7 +65441,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
65441
65441
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, provisionResult.worktreePath);
|
|
65442
65442
|
if (laneProfile) {
|
|
65443
65443
|
try {
|
|
65444
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
65444
|
+
const { writeLaneProfileToDiskReal } = await import("./core-aqtegsag.js");
|
|
65445
65445
|
await writeLaneProfileToDiskReal(provisionResult.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
65446
65446
|
} catch {}
|
|
65447
65447
|
}
|
|
@@ -65940,7 +65940,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
65940
65940
|
}
|
|
65941
65941
|
clearWorktreeMergeStatus(statusKey);
|
|
65942
65942
|
try {
|
|
65943
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
65943
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-aqtegsag.js");
|
|
65944
65944
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
65945
65945
|
} catch {}
|
|
65946
65946
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bgdr1ww3.js";
|
|
6
6
|
import {
|
|
7
7
|
unsafePathTextReason
|
|
8
8
|
} from "./index-556ja8an.js";
|
|
9
9
|
import {
|
|
10
10
|
PlanSchema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-rdb3nr6d.js";
|
|
12
12
|
import {
|
|
13
13
|
assertProjectRoot
|
|
14
14
|
} from "./index-k31en0ja.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-rr2fjfsd.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-c3zag2cw.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-0ar015bf.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-4ew49zrv.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-8gs34d2q.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-n11zkp9g.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-4s5htbgq.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-e9w1tfmm.js";
|
|
88
|
+
import"./index-j2eb0x44.js";
|
|
89
|
+
import"./index-mz1zwz96.js";
|
|
90
|
+
import"./index-1faydhv8.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-2pmaxbvj.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-sqp6349j.js";
|
|
101
101
|
import"./index-74hpm6sh.js";
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
102
|
+
import"./index-dq26vbfp.js";
|
|
103
|
+
import"./index-g0vr2a4m.js";
|
|
104
|
+
import"./index-f79hf8dr.js";
|
|
105
|
+
import"./index-bgdr1ww3.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-4fda8kkw.js";
|
|
111
|
-
import"./index-
|
|
111
|
+
import"./index-2ht8c7ew.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-rr2fjfsd.js";
|
|
117
|
+
import"./index-8jrn4rwp.js";
|
|
118
118
|
import"./index-gprxjmm7.js";
|
|
119
119
|
import"./index-n832052r.js";
|
|
120
|
-
import"./index-
|
|
120
|
+
import"./index-rdb3nr6d.js";
|
|
121
121
|
import {
|
|
122
122
|
init_schema,
|
|
123
123
|
stripKnownSwarmPrefix
|
|
124
|
-
} from "./index-
|
|
124
|
+
} from "./index-j3byg0a9.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-315tnsve.js";
|
|
135
135
|
import"./index-tq5s07ta.js";
|
|
136
136
|
import"./index-rtry5xyf.js";
|
|
137
|
-
import"./index-
|
|
137
|
+
import"./index-c3zag2cw.js";
|
|
138
138
|
import"./index-ae75rja9.js";
|
|
139
139
|
import"./index-w7x7qxz2.js";
|
|
140
140
|
import"./index-erfnw81g.js";
|
|
@@ -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.144.
|
|
24
|
+
version: "7.144.1",
|
|
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",
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-e9w1tfmm.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-j2eb0x44.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
loadPluginConfigWithMeta
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-rdb3nr6d.js";
|
|
5
5
|
import {
|
|
6
6
|
KnowledgeConfigSchema,
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-j3byg0a9.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-nd0f0e86.js");
|
|
2549
2549
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2550
2550
|
}
|
|
2551
2551
|
return {
|
package/dist/cli/index.js
CHANGED
|
@@ -7,44 +7,44 @@ import {
|
|
|
7
7
|
getPluginConfigDir,
|
|
8
8
|
getPluginLockFilePaths,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-e9w1tfmm.js";
|
|
11
|
+
import"./index-j2eb0x44.js";
|
|
12
|
+
import"./index-mz1zwz96.js";
|
|
13
|
+
import"./index-1faydhv8.js";
|
|
14
14
|
import"./index-134d35c1.js";
|
|
15
15
|
import"./index-b6e016tv.js";
|
|
16
16
|
import"./index-4q9vfav6.js";
|
|
17
17
|
import"./index-k92cagmt.js";
|
|
18
18
|
import"./index-y8552snf.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-2pmaxbvj.js";
|
|
20
20
|
import"./index-xmzmeknp.js";
|
|
21
21
|
import"./index-c8s9a3zh.js";
|
|
22
22
|
import"./index-9ss2m4rs.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-sqp6349j.js";
|
|
24
24
|
import"./index-74hpm6sh.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
25
|
+
import"./index-dq26vbfp.js";
|
|
26
|
+
import"./index-g0vr2a4m.js";
|
|
27
|
+
import"./index-f79hf8dr.js";
|
|
28
|
+
import"./index-bgdr1ww3.js";
|
|
29
29
|
import"./index-556ja8an.js";
|
|
30
30
|
import"./index-gdd4jt6b.js";
|
|
31
31
|
import"./index-zsrtt42s.js";
|
|
32
32
|
import"./index-k3cxyk66.js";
|
|
33
33
|
import"./index-4fda8kkw.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-2ht8c7ew.js";
|
|
35
35
|
import"./index-8fwhhayc.js";
|
|
36
36
|
import"./index-q1exe2b3.js";
|
|
37
37
|
import"./index-7sy3aa9m.js";
|
|
38
38
|
import"./index-4905hd2m.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-rr2fjfsd.js";
|
|
40
|
+
import"./index-8jrn4rwp.js";
|
|
41
41
|
import"./index-gprxjmm7.js";
|
|
42
42
|
import"./index-n832052r.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-rdb3nr6d.js";
|
|
44
44
|
import {
|
|
45
45
|
init_package,
|
|
46
46
|
package_default
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-j3byg0a9.js";
|
|
48
48
|
import"./index-rn0eq85g.js";
|
|
49
49
|
import"./index-4rhhvd1a.js";
|
|
50
50
|
import {
|
|
@@ -53,10 +53,10 @@ import {
|
|
|
53
53
|
} from "./index-jqsfsqbx.js";
|
|
54
54
|
import"./index-z6xqpmqg.js";
|
|
55
55
|
import"./index-zjygnfay.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-315tnsve.js";
|
|
57
57
|
import"./index-tq5s07ta.js";
|
|
58
58
|
import"./index-rtry5xyf.js";
|
|
59
|
-
import"./index-
|
|
59
|
+
import"./index-c3zag2cw.js";
|
|
60
60
|
import"./index-ae75rja9.js";
|
|
61
61
|
import"./index-w7x7qxz2.js";
|
|
62
62
|
import"./index-erfnw81g.js";
|