opencode-swarm 7.143.4 → 7.143.5
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-az6nqawx.js → config-doctor-y8wfw196.js} +2 -2
- package/dist/cli/{core-a6rzajem.js → core-zszmexgm.js} +1 -1
- package/dist/cli/{curator-tbw9przg.js → curator-e2sp925h.js} +17 -17
- package/dist/cli/{curator-llm-factory-j42j5rcr.js → curator-llm-factory-xsg7wesn.js} +17 -17
- package/dist/cli/{evidence-summary-service-3f319cst.js → evidence-summary-service-pfppq7mv.js} +6 -6
- package/dist/cli/{gate-evidence-k2yycngf.js → gate-evidence-23jnh3mb.js} +2 -2
- package/dist/cli/{guardrail-explain-tsgsw91f.js → guardrail-explain-byzmrgg1.js} +18 -18
- package/dist/cli/{guardrail-log-70cxb3va.js → guardrail-log-nr2g7hbw.js} +3 -3
- package/dist/cli/{hive-promoter-nksqxfs4.js → hive-promoter-cw08380z.js} +17 -17
- package/dist/cli/{index-z4g05zbr.js → index-04x9wx7d.js} +1 -1
- package/dist/cli/{index-mewk624g.js → index-1kr1vey5.js} +19 -19
- package/dist/cli/{index-8fq18k02.js → index-47z3jbxk.js} +3 -3
- package/dist/cli/{index-gz3z9d64.js → index-51axj9vd.js} +45 -45
- package/dist/cli/{index-c9d5y70c.js → index-5866smj5.js} +3 -3
- package/dist/cli/{index-td2ga37v.js → index-7en3eq3k.js} +1 -1
- package/dist/cli/{index-f39n8pbr.js → index-a1p87gew.js} +1 -1
- package/dist/cli/{index-ja15rdzd.js → index-a4dkd7m7.js} +1 -1
- package/dist/cli/{index-v9qmhrj9.js → index-at0h6cd6.js} +2 -2
- package/dist/cli/{index-z0j133c4.js → index-dg1v2gnh.js} +1 -1
- package/dist/cli/{index-jmgm1npc.js → index-jqxgdvr9.js} +1 -1
- package/dist/cli/{index-5qqyvwqw.js → index-m7v7gggs.js} +4 -4
- package/dist/cli/{index-f3xf9dv5.js → index-mbczeqs3.js} +5 -5
- package/dist/cli/{index-seedt8m3.js → index-mnj0ter5.js} +3 -3
- package/dist/cli/{index-19wyta2k.js → index-p844tcrm.js} +3 -3
- package/dist/cli/{index-gbr0jbxy.js → index-q2nd6q9e.js} +1 -1
- package/dist/cli/{index-8qmnqd6g.js → index-qdarzed6.js} +1 -1
- package/dist/cli/{index-dmtq7tvd.js → index-tmc43mkc.js} +1 -1
- package/dist/cli/{index-bt47jrhx.js → index-x64vt6sc.js} +2 -2
- package/dist/cli/{index-9m5gz9ea.js → index-xmje20we.js} +2 -2
- package/dist/cli/{index-6htwcbxh.js → index-y8r7z30j.js} +1 -1
- package/dist/cli/index.js +17 -17
- package/dist/cli/{knowledge-escalator-8akk4n18.js → knowledge-escalator-1g4p844a.js} +6 -6
- package/dist/cli/{knowledge-events-51qk8fq2.js → knowledge-events-5699zzw0.js} +4 -4
- package/dist/cli/{knowledge-store-7rsezhav.js → knowledge-store-m5qjn5kd.js} +1 -1
- package/dist/cli/{knowledge-validator-nq75s9et.js → knowledge-validator-xxnp8ear.js} +2 -2
- package/dist/cli/{scan-cursor-em4vrcw6.js → scan-cursor-qvky2yem.js} +2 -2
- package/dist/cli/{schema-1wmfgtm9.js → schema-wgb37f83.js} +1 -1
- package/dist/cli/{scope-persistence-8ehnjgsg.js → scope-persistence-0wrb7ptt.js} +4 -4
- package/dist/cli/{skill-generator-3jstr1sx.js → skill-generator-khaw3jjw.js} +7 -7
- package/dist/cli/{worktree-isolation-cc3x13ng.js → worktree-isolation-bv41gn3k.js} +17 -17
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
stableCanonicalStringify
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-y8r7z30j.js";
|
|
5
5
|
import {
|
|
6
6
|
detectStraySwarmDirs,
|
|
7
7
|
readDoctorArtifact,
|
|
8
8
|
removeStraySwarmDir,
|
|
9
9
|
runConfigDoctor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-a4dkd7m7.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-5866smj5.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-tmc43mkc.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-7en3eq3k.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-p844tcrm.js";
|
|
192
192
|
import {
|
|
193
193
|
readRecentEscalations
|
|
194
|
-
} from "./index-
|
|
194
|
+
} from "./index-mbczeqs3.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-at0h6cd6.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-qdarzed6.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-q2nd6q9e.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-47z3jbxk.js";
|
|
266
266
|
import {
|
|
267
267
|
resolveWorktreeIsolationConfig
|
|
268
|
-
} from "./index-
|
|
268
|
+
} from "./index-xmje20we.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-a1p87gew.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-04x9wx7d.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-dg1v2gnh.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-m7v7gggs.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-bv41gn3k.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-bv41gn3k.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-mnj0ter5.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-khaw3jjw.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-1g4p844a.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-qvky2yem.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-wgb37f83.js");
|
|
17470
17470
|
try {
|
|
17471
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
17471
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mnj0ter5.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-e2sp925h.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-cw08380z.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-khaw3jjw.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-wgb37f83.js");
|
|
18829
18829
|
try {
|
|
18830
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
18830
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mnj0ter5.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-wgb37f83.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-wgb37f83.js"),
|
|
29951
|
+
import("./curator-e2sp925h.js"),
|
|
29952
|
+
import("./curator-llm-factory-xsg7wesn.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-qvky2yem.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-wgb37f83.js");
|
|
30868
30868
|
let config;
|
|
30869
30869
|
try {
|
|
30870
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
30870
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mnj0ter5.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-y8wfw196.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-pfppq7mv.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.";
|
|
@@ -57474,7 +57474,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
57474
57474
|
async function handleHelpCommand(ctx) {
|
|
57475
57475
|
const targetCommand = ctx.args.join(" ");
|
|
57476
57476
|
if (!targetCommand) {
|
|
57477
|
-
const { buildHelpText } = await import("./index-
|
|
57477
|
+
const { buildHelpText } = await import("./index-1kr1vey5.js");
|
|
57478
57478
|
return buildHelpText();
|
|
57479
57479
|
}
|
|
57480
57480
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -57483,7 +57483,7 @@ async function handleHelpCommand(ctx) {
|
|
|
57483
57483
|
return _internals87.buildDetailedHelp(resolved.key, resolved.entry);
|
|
57484
57484
|
}
|
|
57485
57485
|
const similar = _internals87.findSimilarCommands(targetCommand);
|
|
57486
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
57486
|
+
const { buildHelpText: fullHelp } = await import("./index-1kr1vey5.js");
|
|
57487
57487
|
if (similar.length > 0) {
|
|
57488
57488
|
return `Command '/swarm ${targetCommand}' not found.
|
|
57489
57489
|
|
|
@@ -57660,7 +57660,7 @@ var COMMAND_REGISTRY = {
|
|
|
57660
57660
|
},
|
|
57661
57661
|
"guardrail explain": {
|
|
57662
57662
|
handler: async (ctx) => {
|
|
57663
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
57663
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-byzmrgg1.js");
|
|
57664
57664
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
57665
57665
|
},
|
|
57666
57666
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -57670,7 +57670,7 @@ var COMMAND_REGISTRY = {
|
|
|
57670
57670
|
},
|
|
57671
57671
|
"guardrail-explain": {
|
|
57672
57672
|
handler: async (ctx) => {
|
|
57673
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
57673
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-byzmrgg1.js");
|
|
57674
57674
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
57675
57675
|
},
|
|
57676
57676
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -57680,7 +57680,7 @@ var COMMAND_REGISTRY = {
|
|
|
57680
57680
|
},
|
|
57681
57681
|
"guardrail-log": {
|
|
57682
57682
|
handler: async (ctx) => {
|
|
57683
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
57683
|
+
const { handleGuardrailLog } = await import("./guardrail-log-nr2g7hbw.js");
|
|
57684
57684
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
57685
57685
|
},
|
|
57686
57686
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -65040,7 +65040,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
65040
65040
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, provisionResult.worktreePath);
|
|
65041
65041
|
if (laneProfile) {
|
|
65042
65042
|
try {
|
|
65043
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
65043
|
+
const { writeLaneProfileToDiskReal } = await import("./core-zszmexgm.js");
|
|
65044
65044
|
await writeLaneProfileToDiskReal(provisionResult.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
65045
65045
|
} catch {}
|
|
65046
65046
|
}
|
|
@@ -65539,7 +65539,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
65539
65539
|
}
|
|
65540
65540
|
clearWorktreeMergeStatus(statusKey);
|
|
65541
65541
|
try {
|
|
65542
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
65542
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-zszmexgm.js");
|
|
65543
65543
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
65544
65544
|
} catch {}
|
|
65545
65545
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readTaskEvidence,
|
|
16
16
|
readTaskEvidenceRaw,
|
|
17
17
|
sanitizeTaskId
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-7en3eq3k.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-qdarzed6.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-a1p87gew.js";
|
|
57
57
|
import {
|
|
58
58
|
readSwarmFileAsync,
|
|
59
59
|
validateSwarmPath
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qdarzed6.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-a1p87gew.js";
|
|
12
12
|
import {
|
|
13
13
|
assertProjectRoot
|
|
14
14
|
} from "./index-k31en0ja.js";
|
|
@@ -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-5699zzw0.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-xxnp8ear.js");
|
|
780
|
+
const { KnowledgeConfigSchema } = await import("./schema-wgb37f83.js");
|
|
781
781
|
let config;
|
|
782
782
|
try {
|
|
783
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
783
|
+
const { loadPluginConfigWithMeta } = await import("./index-mnj0ter5.js");
|
|
784
784
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
785
785
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
786
786
|
} catch {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-47z3jbxk.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-m7v7gggs.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-xxnp8ear.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-wgb37f83.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-mnj0ter5.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-xmje20we.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-a1p87gew.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-04x9wx7d.js";
|
|
68
68
|
import"./index-4rhhvd1a.js";
|
|
69
69
|
import {
|
|
70
70
|
ALL_AGENT_NAMES,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
effectiveRetrievalOutcomes,
|
|
4
4
|
readAuthoritativeKnowledgeCounterRollups
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-47z3jbxk.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-dg1v2gnh.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-m7v7gggs.js";
|
|
21
21
|
import {
|
|
22
22
|
init_knowledge_types,
|
|
23
23
|
isActiveStatus
|
|
@@ -86,7 +86,7 @@ var _internals = {
|
|
|
86
86
|
symlinkSync: fs.symlinkSync
|
|
87
87
|
},
|
|
88
88
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
89
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
89
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-0wrb7ptt.js");
|
|
90
90
|
return realWrite(directory, taskId, files);
|
|
91
91
|
},
|
|
92
92
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-51axj9vd.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-y8r7z30j.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-a1p87gew.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-04x9wx7d.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|