opencode-swarm 7.144.6 → 7.144.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/skills/swarm-pr-review/SKILL.md +20 -20
- package/.opencode/skills/swarm-pr-review/references/findings-persistence-contract.md +110 -0
- package/dist/cli/{config-doctor-4chz0b95.js → config-doctor-zdvaq4nb.js} +2 -2
- package/dist/cli/{core-p04nvknr.js → core-j7f118a5.js} +1 -1
- package/dist/cli/{curator-sxeh36gw.js → curator-97sm8wn0.js} +17 -17
- package/dist/cli/{curator-llm-factory-vc1mrc3r.js → curator-llm-factory-eny079d1.js} +17 -17
- package/dist/cli/{evidence-summary-service-spyxcgsx.js → evidence-summary-service-kwtb2d14.js} +6 -6
- package/dist/cli/{gate-evidence-nz0bwa15.js → gate-evidence-rk9j0hc4.js} +2 -2
- package/dist/cli/{guardrail-explain-ass47kn8.js → guardrail-explain-8gggptqj.js} +18 -18
- package/dist/cli/{guardrail-log-fyzd55fp.js → guardrail-log-zbqf4ws6.js} +3 -3
- package/dist/cli/{hive-promoter-k8gtah3n.js → hive-promoter-qzvtp5wx.js} +17 -17
- package/dist/cli/{index-01nhedm7.js → index-00fk9c3b.js} +1 -1
- package/dist/cli/{index-jqvsh0g3.js → index-39jbnhar.js} +19 -19
- package/dist/cli/{index-ec1kywxg.js → index-77h4xjn5.js} +4 -4
- package/dist/cli/{index-q6bhmyxb.js → index-7bvd5nh2.js} +1 -1
- package/dist/cli/{index-ckq719fr.js → index-bx20cv1v.js} +2 -2
- package/dist/cli/{index-bac12jpv.js → index-c1cfsg9y.js} +1 -1
- package/dist/cli/{index-h5krb653.js → index-d879g58v.js} +1 -1
- package/dist/cli/{index-dj8cah6s.js → index-gmdgap01.js} +1 -1
- package/dist/cli/{index-sqe3nqh5.js → index-grkev1g6.js} +1 -1
- package/dist/cli/{index-dvybg11w.js → index-jszgrk71.js} +2 -2
- package/dist/cli/{index-n06653nr.js → index-pzsezhek.js} +5 -5
- package/dist/cli/{index-tq89td7b.js → index-q7zy6dej.js} +1 -1
- package/dist/cli/{index-zde2mkmg.js → index-qm0mz7rj.js} +3 -3
- package/dist/cli/{index-zxr5r9b7.js → index-r2q0nd0a.js} +3 -3
- package/dist/cli/{index-fgdhf6a5.js → index-s1xefrx7.js} +3 -3
- package/dist/cli/{index-vngs0meh.js → index-w9bnt74s.js} +3 -3
- package/dist/cli/{index-68mqwvf5.js → index-x4eqd82b.js} +1 -1
- package/dist/cli/{index-42ezdzam.js → index-x4q96ejx.js} +45 -45
- package/dist/cli/{index-sswzhcqb.js → index-xjgwr4c6.js} +1 -1
- package/dist/cli/{index-7zehmnv1.js → index-yz0hfa4g.js} +2 -2
- package/dist/cli/{index-ytzz6pq1.js → index-zq9gs0yk.js} +1 -1
- package/dist/cli/index.js +17 -17
- package/dist/cli/{knowledge-escalator-yaxzz0k5.js → knowledge-escalator-fhc6ecbv.js} +6 -6
- package/dist/cli/{knowledge-events-rgcwewpn.js → knowledge-events-31g69mx2.js} +4 -4
- package/dist/cli/{knowledge-store-qf8t25sw.js → knowledge-store-g389c1cy.js} +1 -1
- package/dist/cli/{knowledge-validator-dx6zzcdf.js → knowledge-validator-sng5xt5a.js} +2 -2
- package/dist/cli/{scan-cursor-pbcaj8hj.js → scan-cursor-qm3tsvvw.js} +2 -2
- package/dist/cli/{schema-tzcjwe8j.js → schema-vnghba3d.js} +1 -1
- package/dist/cli/{scope-persistence-mjg4we75.js → scope-persistence-k9mqd414.js} +4 -4
- package/dist/cli/{skill-generator-7jrzbaej.js → skill-generator-v1wdh3ne.js} +7 -7
- package/dist/cli/{worktree-isolation-awpkp0yh.js → worktree-isolation-bxt3rftm.js} +17 -17
- package/dist/hooks/pr-workflow-gate.d.ts +4 -1
- package/dist/index.js +4 -2
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-zq9gs0yk.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-x4eqd82b.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-7bvd5nh2.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-zq9gs0yk.js";
|
|
12
12
|
import {
|
|
13
13
|
assertProjectRoot
|
|
14
14
|
} from "./index-f9vvg5xb.js";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-77h4xjn5.js";
|
|
10
10
|
import {
|
|
11
11
|
queryHistoricalOutcomes,
|
|
12
12
|
readKnowledgeEvents,
|
|
13
13
|
recordKnowledgeEvent
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-qm0mz7rj.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-sng5xt5a.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-vnghba3d.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-r2q0nd0a.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-k9mqd414.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./index-fv0s19g9.js";
|
|
5
5
|
import {
|
|
6
6
|
loadPluginConfigWithMeta
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-zq9gs0yk.js";
|
|
8
8
|
import {
|
|
9
9
|
KnowledgeConfigSchema,
|
|
10
10
|
init_schema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-x4eqd82b.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveHiveEventsPath
|
|
14
14
|
} from "./index-ae75rja9.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-g389c1cy.js");
|
|
2549
2549
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2550
2550
|
}
|
|
2551
2551
|
return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bx20cv1v.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-zq9gs0yk.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-x4eqd82b.js";
|
|
68
68
|
import {
|
|
69
69
|
ALL_AGENT_NAMES,
|
|
70
70
|
ALL_SUBAGENT_NAMES,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-grkev1g6.js";
|
|
27
27
|
import {
|
|
28
28
|
LedgerStaleWriterError,
|
|
29
29
|
appendLedgerEvent,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
replayFromLedgerWithStatus,
|
|
44
44
|
takeSnapshotEvent,
|
|
45
45
|
takeSnapshotWithRetry
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-7bvd5nh2.js";
|
|
47
47
|
import {
|
|
48
48
|
init_executor,
|
|
49
49
|
isValidEnvKey
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./index-fv0s19g9.js";
|
|
60
60
|
import {
|
|
61
61
|
PlanSchema
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-zq9gs0yk.js";
|
|
63
63
|
import {
|
|
64
64
|
GIT_BINARY_ENV_VAR,
|
|
65
65
|
describeGitResolution,
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-c1cfsg9y.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-77h4xjn5.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readAuthoritativeKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-qm0mz7rj.js";
|
|
17
17
|
import {
|
|
18
18
|
advisoryWarn,
|
|
19
19
|
init_warning_buffer
|
|
@@ -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.7",
|
|
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",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
stableCanonicalStringify
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-gmdgap01.js";
|
|
5
5
|
import {
|
|
6
6
|
detectStraySwarmDirs,
|
|
7
7
|
readDoctorArtifact,
|
|
8
8
|
removeStraySwarmDir,
|
|
9
9
|
runConfigDoctor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-00fk9c3b.js";
|
|
11
11
|
import {
|
|
12
12
|
MAX_TRANSIENT_RETRIES,
|
|
13
13
|
archiveEvidence,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
updateTaskStatus,
|
|
53
53
|
validateProjectRoot,
|
|
54
54
|
validateSymlinkBoundary
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-s1xefrx7.js";
|
|
56
56
|
import {
|
|
57
57
|
loadDatabaseCtor
|
|
58
58
|
} from "./index-134d35c1.js";
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
alreadyCuratedThisGeneration,
|
|
106
106
|
claimNextScanBatch,
|
|
107
107
|
resolveCohortId
|
|
108
|
-
} from "./index-
|
|
108
|
+
} from "./index-d879g58v.js";
|
|
109
109
|
import {
|
|
110
110
|
CURATOR_INIT_PROMPT,
|
|
111
111
|
CURATOR_PHASE_PROMPT,
|
|
@@ -175,10 +175,10 @@ import {
|
|
|
175
175
|
retireSkill,
|
|
176
176
|
selectCandidateEntries,
|
|
177
177
|
syncBundledProjectSkillsIfMissingAsync
|
|
178
|
-
} from "./index-
|
|
178
|
+
} from "./index-w9bnt74s.js";
|
|
179
179
|
import {
|
|
180
180
|
readRecentEscalations
|
|
181
|
-
} from "./index-
|
|
181
|
+
} from "./index-pzsezhek.js";
|
|
182
182
|
import {
|
|
183
183
|
appendUnactionable,
|
|
184
184
|
quarantineEntry,
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
validateActionableFields,
|
|
190
190
|
validateLesson,
|
|
191
191
|
validateSkillPath
|
|
192
|
-
} from "./index-
|
|
192
|
+
} from "./index-c1cfsg9y.js";
|
|
193
193
|
import {
|
|
194
194
|
authorizeCuration,
|
|
195
195
|
buildConfigFingerprintInput
|
|
@@ -242,18 +242,18 @@ import {
|
|
|
242
242
|
startupOrphanRecovery,
|
|
243
243
|
withTaskEvidenceTransaction,
|
|
244
244
|
writeWorkflowWalFile
|
|
245
|
-
} from "./index-
|
|
245
|
+
} from "./index-grkev1g6.js";
|
|
246
246
|
import {
|
|
247
247
|
provisionWorktree,
|
|
248
248
|
removeWorktree
|
|
249
|
-
} from "./index-
|
|
249
|
+
} from "./index-q7zy6dej.js";
|
|
250
250
|
import {
|
|
251
251
|
MAX_PENDING_SCOPE_BINDINGS,
|
|
252
252
|
canonicalWorkspaceIdentity,
|
|
253
253
|
clearAllScopes,
|
|
254
254
|
clearScopeBindingFromDisk,
|
|
255
255
|
clearScopeBindings
|
|
256
|
-
} from "./index-
|
|
256
|
+
} from "./index-jszgrk71.js";
|
|
257
257
|
import {
|
|
258
258
|
appendLedgerEvent,
|
|
259
259
|
computePlanHash,
|
|
@@ -266,7 +266,7 @@ import {
|
|
|
266
266
|
readPlanEpochIdentity,
|
|
267
267
|
replayFromLedgerWithStatus,
|
|
268
268
|
takeSnapshotEvent
|
|
269
|
-
} from "./index-
|
|
269
|
+
} from "./index-7bvd5nh2.js";
|
|
270
270
|
import {
|
|
271
271
|
isPathWithinDeclaredScope,
|
|
272
272
|
sanitizeDiagnosticText
|
|
@@ -316,7 +316,7 @@ import {
|
|
|
316
316
|
transactFile,
|
|
317
317
|
transactKnowledge,
|
|
318
318
|
wordBigrams
|
|
319
|
-
} from "./index-
|
|
319
|
+
} from "./index-77h4xjn5.js";
|
|
320
320
|
import {
|
|
321
321
|
MAX_EVENT_LOG_ENTRIES,
|
|
322
322
|
_internals as _internals2,
|
|
@@ -330,10 +330,10 @@ import {
|
|
|
330
330
|
recordKnowledgeEvent,
|
|
331
331
|
recordPhaseCloseIntent,
|
|
332
332
|
resolveKnowledgeEventsPath
|
|
333
|
-
} from "./index-
|
|
333
|
+
} from "./index-qm0mz7rj.js";
|
|
334
334
|
import {
|
|
335
335
|
resolveWorktreeIsolationConfig
|
|
336
|
-
} from "./index-
|
|
336
|
+
} from "./index-bx20cv1v.js";
|
|
337
337
|
import {
|
|
338
338
|
RetrospectiveEvidenceSchema
|
|
339
339
|
} from "./index-gprxjmm7.js";
|
|
@@ -348,7 +348,7 @@ import {
|
|
|
348
348
|
init_loader,
|
|
349
349
|
loadPluginConfig,
|
|
350
350
|
loadPluginConfigWithMeta
|
|
351
|
-
} from "./index-
|
|
351
|
+
} from "./index-zq9gs0yk.js";
|
|
352
352
|
import {
|
|
353
353
|
DEFAULT_SKILL_OPT_CONFIG,
|
|
354
354
|
FALLBACK_MODELS_MAX,
|
|
@@ -362,7 +362,7 @@ import {
|
|
|
362
362
|
package_default,
|
|
363
363
|
resolveAutoReviewConfig,
|
|
364
364
|
stripKnownSwarmPrefix
|
|
365
|
-
} from "./index-
|
|
365
|
+
} from "./index-x4eqd82b.js";
|
|
366
366
|
import {
|
|
367
367
|
AGENT_TOOL_MAP,
|
|
368
368
|
ALL_AGENT_NAMES,
|
|
@@ -4182,7 +4182,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
4182
4182
|
awaitingMergeByCallID,
|
|
4183
4183
|
cleanupStandardWorktreeForCallId,
|
|
4184
4184
|
standardWorktreeByCallID
|
|
4185
|
-
} = await import("./worktree-isolation-
|
|
4185
|
+
} = await import("./worktree-isolation-bxt3rftm.js");
|
|
4186
4186
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
4187
4187
|
if (hasResidue)
|
|
4188
4188
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -4284,7 +4284,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
4284
4284
|
awaitingMergeByCallID,
|
|
4285
4285
|
finishStandardWorktreeDispatch,
|
|
4286
4286
|
standardWorktreeByCallID
|
|
4287
|
-
} = await import("./worktree-isolation-
|
|
4287
|
+
} = await import("./worktree-isolation-bxt3rftm.js");
|
|
4288
4288
|
const descriptor = wal.worktree;
|
|
4289
4289
|
const reconstructedDispatch = {
|
|
4290
4290
|
callID: descriptor.callID,
|
|
@@ -15547,7 +15547,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
15547
15547
|
};
|
|
15548
15548
|
}
|
|
15549
15549
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
15550
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
15550
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r2q0nd0a.js");
|
|
15551
15551
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
15552
15552
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
15553
15553
|
if (sweepConfig?.enabled === false)
|
|
@@ -16631,7 +16631,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
16631
16631
|
}
|
|
16632
16632
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
16633
16633
|
try {
|
|
16634
|
-
const skillModule = await import("./skill-generator-
|
|
16634
|
+
const skillModule = await import("./skill-generator-v1wdh3ne.js");
|
|
16635
16635
|
for (const cand of skillCandidates) {
|
|
16636
16636
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
16637
16637
|
continue;
|
|
@@ -17091,7 +17091,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
17091
17091
|
} catch {}
|
|
17092
17092
|
}
|
|
17093
17093
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
17094
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
17094
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-fhc6ecbv.js");
|
|
17095
17095
|
for (const { id } of contradictedEntries) {
|
|
17096
17096
|
try {
|
|
17097
17097
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -17910,7 +17910,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
17910
17910
|
warnings.push("Failed to collect knowledge summary.");
|
|
17911
17911
|
}
|
|
17912
17912
|
try {
|
|
17913
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
17913
|
+
const { getScanStatus } = await import("./scan-cursor-qm3tsvvw.js");
|
|
17914
17914
|
const scanStatus = await getScanStatus(directory);
|
|
17915
17915
|
if (scanStatus.remaining_estimate > 0) {
|
|
17916
17916
|
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.`);
|
|
@@ -18082,9 +18082,9 @@ var _internals24 = {
|
|
|
18082
18082
|
verifyPostMortemKnowledgeActions,
|
|
18083
18083
|
repairPostMortemActions,
|
|
18084
18084
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
18085
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
18085
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-vnghba3d.js");
|
|
18086
18086
|
try {
|
|
18087
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
18087
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r2q0nd0a.js");
|
|
18088
18088
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
18089
18089
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
18090
18090
|
} catch {
|
|
@@ -18092,11 +18092,11 @@ var _internals24 = {
|
|
|
18092
18092
|
}
|
|
18093
18093
|
},
|
|
18094
18094
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
18095
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
18095
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-97sm8wn0.js");
|
|
18096
18096
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
18097
18097
|
},
|
|
18098
18098
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
18099
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
18099
|
+
const { checkHivePromotions } = await import("./hive-promoter-qzvtp5wx.js");
|
|
18100
18100
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
18101
18101
|
},
|
|
18102
18102
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -18105,7 +18105,7 @@ var _internals24 = {
|
|
|
18105
18105
|
activateProposal,
|
|
18106
18106
|
listSkills: listSkills2,
|
|
18107
18107
|
sanitizeSlug
|
|
18108
|
-
} = await import("./skill-generator-
|
|
18108
|
+
} = await import("./skill-generator-v1wdh3ne.js");
|
|
18109
18109
|
const result = {
|
|
18110
18110
|
approved: [],
|
|
18111
18111
|
rejected: [],
|
|
@@ -19441,9 +19441,9 @@ function hashContent(content) {
|
|
|
19441
19441
|
return createHash7("sha1").update(content).digest("hex");
|
|
19442
19442
|
}
|
|
19443
19443
|
async function loadConfigForPolicyCurator(directory) {
|
|
19444
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
19444
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-vnghba3d.js");
|
|
19445
19445
|
try {
|
|
19446
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
19446
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r2q0nd0a.js");
|
|
19447
19447
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
19448
19448
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
19449
19449
|
} catch {
|
|
@@ -29105,7 +29105,7 @@ async function runFinalizeStage(ctx) {
|
|
|
29105
29105
|
}
|
|
29106
29106
|
}
|
|
29107
29107
|
try {
|
|
29108
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
29108
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-vnghba3d.js");
|
|
29109
29109
|
const { config: pmLoadedConfig } = _internals37.loadPluginConfigWithMeta(ctx.directory);
|
|
29110
29110
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
29111
29111
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -31385,9 +31385,9 @@ var _internals42 = {
|
|
|
31385
31385
|
loadPluginConfigWithMeta,
|
|
31386
31386
|
loadCuratorDeps: async () => {
|
|
31387
31387
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
31388
|
-
import("./schema-
|
|
31389
|
-
import("./curator-
|
|
31390
|
-
import("./curator-llm-factory-
|
|
31388
|
+
import("./schema-vnghba3d.js"),
|
|
31389
|
+
import("./curator-97sm8wn0.js"),
|
|
31390
|
+
import("./curator-llm-factory-eny079d1.js")
|
|
31391
31391
|
]);
|
|
31392
31392
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
31393
31393
|
}
|
|
@@ -32341,7 +32341,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
32341
32341
|
let scanCompleted = false;
|
|
32342
32342
|
let scanRemaining = 0;
|
|
32343
32343
|
try {
|
|
32344
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
32344
|
+
const { getScanStatus } = await import("./scan-cursor-qm3tsvvw.js");
|
|
32345
32345
|
const status = await getScanStatus(directory);
|
|
32346
32346
|
scanGeneration = status.generation;
|
|
32347
32347
|
scanCompleted = status.completed;
|
|
@@ -32351,10 +32351,10 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
32351
32351
|
try {
|
|
32352
32352
|
const { isLinked: isLinked2 } = await import("./knowledge-link-4cg4776a.js");
|
|
32353
32353
|
if (isLinked2(directory)) {
|
|
32354
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
32354
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-vnghba3d.js");
|
|
32355
32355
|
let config;
|
|
32356
32356
|
try {
|
|
32357
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
32357
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r2q0nd0a.js");
|
|
32358
32358
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
32359
32359
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
32360
32360
|
} catch {
|
|
@@ -33611,7 +33611,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
33611
33611
|
const result = runConfigDoctor(config, directory);
|
|
33612
33612
|
let output;
|
|
33613
33613
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
33614
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
33614
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-zdvaq4nb.js");
|
|
33615
33615
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
33616
33616
|
applyLossy: true
|
|
33617
33617
|
});
|
|
@@ -34448,7 +34448,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
34448
34448
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
34449
34449
|
}
|
|
34450
34450
|
async function handleEvidenceSummaryCommand(directory) {
|
|
34451
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
34451
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-kwtb2d14.js");
|
|
34452
34452
|
const artifact = await buildEvidenceSummary(directory);
|
|
34453
34453
|
if (!artifact) {
|
|
34454
34454
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -63678,7 +63678,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
63678
63678
|
async function handleHelpCommand(ctx) {
|
|
63679
63679
|
const targetCommand = ctx.args.join(" ");
|
|
63680
63680
|
if (!targetCommand) {
|
|
63681
|
-
const { buildHelpText } = await import("./index-
|
|
63681
|
+
const { buildHelpText } = await import("./index-39jbnhar.js");
|
|
63682
63682
|
return buildHelpText();
|
|
63683
63683
|
}
|
|
63684
63684
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -63687,7 +63687,7 @@ async function handleHelpCommand(ctx) {
|
|
|
63687
63687
|
return _internals93.buildDetailedHelp(resolved.key, resolved.entry);
|
|
63688
63688
|
}
|
|
63689
63689
|
const similar = _internals93.findSimilarCommands(targetCommand);
|
|
63690
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
63690
|
+
const { buildHelpText: fullHelp } = await import("./index-39jbnhar.js");
|
|
63691
63691
|
if (similar.length > 0) {
|
|
63692
63692
|
return `Command '/swarm ${targetCommand}' not found.
|
|
63693
63693
|
|
|
@@ -63864,7 +63864,7 @@ var COMMAND_REGISTRY = {
|
|
|
63864
63864
|
},
|
|
63865
63865
|
"guardrail explain": {
|
|
63866
63866
|
handler: async (ctx) => {
|
|
63867
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
63867
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-8gggptqj.js");
|
|
63868
63868
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
63869
63869
|
},
|
|
63870
63870
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -63874,7 +63874,7 @@ var COMMAND_REGISTRY = {
|
|
|
63874
63874
|
},
|
|
63875
63875
|
"guardrail-explain": {
|
|
63876
63876
|
handler: async (ctx) => {
|
|
63877
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
63877
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-8gggptqj.js");
|
|
63878
63878
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
63879
63879
|
},
|
|
63880
63880
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -63884,7 +63884,7 @@ var COMMAND_REGISTRY = {
|
|
|
63884
63884
|
},
|
|
63885
63885
|
"guardrail-log": {
|
|
63886
63886
|
handler: async (ctx) => {
|
|
63887
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
63887
|
+
const { handleGuardrailLog } = await import("./guardrail-log-zbqf4ws6.js");
|
|
63888
63888
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
63889
63889
|
},
|
|
63890
63890
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -71431,7 +71431,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
71431
71431
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, provisionResult.worktreePath);
|
|
71432
71432
|
if (laneProfile) {
|
|
71433
71433
|
try {
|
|
71434
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
71434
|
+
const { writeLaneProfileToDiskReal } = await import("./core-j7f118a5.js");
|
|
71435
71435
|
await writeLaneProfileToDiskReal(provisionResult.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
71436
71436
|
} catch {}
|
|
71437
71437
|
}
|
|
@@ -72087,7 +72087,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
72087
72087
|
}
|
|
72088
72088
|
clearWorktreeMergeStatus(statusKey);
|
|
72089
72089
|
try {
|
|
72090
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
72090
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-j7f118a5.js");
|
|
72091
72091
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
72092
72092
|
} catch {}
|
|
72093
72093
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-x4q96ejx.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-gmdgap01.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|