opencode-swarm 7.183.0 → 7.184.0
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/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/background/pending-delegations.d.ts +21 -1
- package/dist/cli/{coder-settlement-6m5stw7s.js → coder-settlement-vrc5zxvv.js} +11 -11
- package/dist/cli/{config-doctor-g6r21wdz.js → config-doctor-y0bpap07.js} +7 -3
- package/dist/cli/{core-6dzx3z8q.js → core-7f955h2f.js} +3 -3
- package/dist/cli/{curation-policy-fm7mtvbk.js → curation-policy-fa2h82c4.js} +5 -5
- package/dist/cli/{curator-drift-art0x91j.js → curator-drift-48x02n2m.js} +8 -8
- package/dist/cli/curator-llm-factory-g6at4hn6.js +74 -0
- package/dist/cli/{curator-0xqj2rxm.js → curator-m7enwwz2.js} +38 -38
- package/dist/cli/{evidence-summary-service-h1vb58rd.js → evidence-summary-service-k8a5vkfk.js} +17 -17
- package/dist/cli/{gate-evidence-ps3rg5fh.js → gate-evidence-nktrs0w2.js} +6 -6
- package/dist/cli/guardrail-explain-1ccchxdr.js +75 -0
- package/dist/cli/{guardrail-log-x2gdf8ys.js → guardrail-log-dppv6tgn.js} +7 -7
- package/dist/cli/{guardrail-reset-mwkys4ff.js → guardrail-reset-btzq4ses.js} +38 -38
- package/dist/cli/{hive-promoter-gndjyg7e.js → hive-promoter-yp1baj9z.js} +38 -38
- package/dist/cli/{index-v2rbpcqy.js → index-01wt209s.js} +2 -2
- package/dist/cli/{index-jsdnhdzg.js → index-079xzcxb.js} +38 -38
- package/dist/cli/{index-5cvm6ykc.js → index-08x7gsnf.js} +1 -1
- package/dist/cli/{index-1kpa3an2.js → index-0bpr8vag.js} +2 -2
- package/dist/cli/{index-w670pfv4.js → index-152b9c6m.js} +5 -5
- package/dist/cli/{index-w6hrms7j.js → index-1d6ssjcj.js} +2 -2
- package/dist/cli/{index-29f69hzd.js → index-3fhg7pqf.js} +2 -2
- package/dist/cli/{index-wnkx6gs0.js → index-3rb5gs4w.js} +1 -1
- package/dist/cli/{index-a6np52p4.js → index-46z4c89b.js} +3 -3
- package/dist/cli/{index-4aggsva0.js → index-4gr9pj67.js} +3 -3
- package/dist/cli/{index-wjqc2mnc.js → index-4t0wd9sv.js} +1 -1
- package/dist/cli/{index-kv0k3b60.js → index-51xtrf7g.js} +6 -6
- package/dist/cli/{index-s1y70y0w.js → index-5cve9g2b.js} +1 -1
- package/dist/cli/{index-94pwd45k.js → index-5wk0etp8.js} +4 -4
- package/dist/cli/{index-mewsqwbq.js → index-6b4vkz6q.js} +1 -1
- package/dist/cli/{index-v8ja5zcr.js → index-6h81yvyc.js} +2 -2
- package/dist/cli/{index-3bcmw8pc.js → index-74x26wyj.js} +1 -1
- package/dist/cli/{index-c6zrffwn.js → index-9yvjwfay.js} +141 -83
- package/dist/cli/{index-jf9cvkzr.js → index-ad3yskxy.js} +4 -4
- package/dist/cli/{index-7p6s4yfb.js → index-b5mkznms.js} +1 -1
- package/dist/cli/{index-ybrwvrd4.js → index-bf1726rj.js} +40 -40
- package/dist/cli/{index-30pz2xvj.js → index-e90m050y.js} +7 -7
- package/dist/cli/{index-qws72zbs.js → index-edrgc139.js} +2 -2
- package/dist/cli/{index-tt705bap.js → index-fbhtb6f5.js} +3 -3
- package/dist/cli/{index-brfs5jqw.js → index-fs9y88h1.js} +3 -3
- package/dist/cli/{index-1ex9ecf5.js → index-j40czc9v.js} +4 -4
- package/dist/cli/{index-pvtf7cjg.js → index-me39468k.js} +7 -7
- package/dist/cli/{index-rfggc332.js → index-mn5zzmqx.js} +2 -2
- package/dist/cli/{index-k88thqa0.js → index-njf5pbkm.js} +6 -6
- package/dist/cli/{index-wqg2j647.js → index-nm8ma9xb.js} +19 -10
- package/dist/cli/{index-25m6rekr.js → index-nmh0s6dg.js} +1 -1
- package/dist/cli/{index-nmfnggaa.js → index-nvm6mxep.js} +13 -13
- package/dist/cli/{index-fqc1a1vj.js → index-pq6vr26z.js} +3 -3
- package/dist/cli/{index-0n24h4zb.js → index-qyx53xrz.js} +7 -7
- package/dist/cli/{index-9gehw4xb.js → index-r30xs0wp.js} +80 -2
- package/dist/cli/{index-6nhzekvt.js → index-rwfmx7vn.js} +2 -2
- package/dist/cli/{index-r65yxdv7.js → index-t1swv35d.js} +10 -4
- package/dist/cli/{index-yv5fmjcf.js → index-t26gj2fh.js} +2 -2
- package/dist/cli/{index-r7dqevkc.js → index-v3hpsxvd.js} +1 -1
- package/dist/cli/{index-820e6w22.js → index-w81jmdkt.js} +2 -2
- package/dist/cli/{index-fb0v3e71.js → index-ysr6n4ca.js} +9 -3
- package/dist/cli/{index-6f7tfq3m.js → index-z3b157ew.js} +8 -8
- package/dist/cli/{index-ht88g5mc.js → index-z8smhv7k.js} +1 -1
- package/dist/cli/index.js +39 -39
- package/dist/cli/{knowledge-escalator-gjp71cn2.js → knowledge-escalator-4296y1h2.js} +12 -12
- package/dist/cli/{knowledge-events-d8k9fmkg.js → knowledge-events-31nga9yt.js} +10 -10
- package/dist/cli/{knowledge-link-anzhs41w.js → knowledge-link-ydpvzam8.js} +4 -4
- package/dist/cli/{knowledge-store-sqmwvcjd.js → knowledge-store-0qz3zmq3.js} +5 -5
- package/dist/cli/{knowledge-validator-gjqm2zby.js → knowledge-validator-vndnwdj6.js} +7 -7
- package/dist/cli/{mcp-phvvtsmt.js → mcp-taace90a.js} +1 -1
- package/dist/cli/{model-preflight-ehqa8h7x.js → model-preflight-bv8nvjjx.js} +38 -38
- package/dist/cli/{pending-delegations-mxs88d0x.js → pending-delegations-kwdk8j9d.js} +11 -11
- package/dist/cli/{pr-subscriptions-n3ymnt5w.js → pr-subscriptions-w2fwdpkk.js} +11 -11
- package/dist/cli/{pr-workflow-gate-t8axhfzw.js → pr-workflow-gate-sqjc6jmd.js} +38 -38
- package/dist/cli/{runner-9kd080km.js → runner-r6gxq7m1.js} +5 -5
- package/dist/cli/{scan-cursor-qg4eg6ah.js → scan-cursor-f74b9b4k.js} +6 -6
- package/dist/cli/{schema-73z5xbmd.js → schema-cyet68tw.js} +3 -1
- package/dist/cli/{scope-persistence-b9924hz1.js → scope-persistence-rg8v0r8q.js} +14 -14
- package/dist/cli/{server-jn6xd5bh.js → server-765s4stz.js} +38 -38
- package/dist/cli/{skill-generator-k344y5m2.js → skill-generator-qg5m18k7.js} +14 -14
- package/dist/cli/{snapshot-coordination-init-a8992336.js → snapshot-coordination-init-zzs4bkmj.js} +38 -38
- package/dist/cli/{speckit-checkoff-0tctprtz.js → speckit-checkoff-2bsm6p0c.js} +4 -4
- package/dist/cli/{telemetry-vqyy5nha.js → telemetry-rzvcp2n9.js} +1 -1
- package/dist/cli/{workspace-snapshot-7e9me3q7.js → workspace-snapshot-t22m6gbd.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-6r6jekr9.js → worktree-collision-ownership-qf2shp2n.js} +12 -12
- package/dist/cli/{worktree-isolation-5kw6jnej.js → worktree-isolation-0b0jy6dt.js} +38 -38
- package/dist/commands/doctor.d.ts +5 -0
- package/dist/config/schema.d.ts +15 -0
- package/dist/context/role-filter.d.ts +2 -0
- package/dist/hooks/final-context-accounting.d.ts +3 -2
- package/dist/hooks/host-boundary.d.ts +10 -0
- package/dist/hooks/system-enhancer.d.ts +9 -2
- package/dist/hooks/system-guidance-carrier.d.ts +18 -0
- package/dist/index.js +59 -57
- package/dist/services/config-doctor.d.ts +24 -0
- package/dist/services/injection-budget.d.ts +56 -8
- package/dist/tools/save-plan.d.ts +12 -0
- package/opencode-swarm.schema.json +8 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-grnfsaa2.js +0 -74
- package/dist/cli/guardrail-explain-2sb06877.js +0 -75
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
protectedRoots,
|
|
9
9
|
redactDecisionLineForArchive,
|
|
10
10
|
stableCanonicalStringify
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-pq6vr26z.js";
|
|
12
12
|
import {
|
|
13
13
|
LANGUAGE_REGISTRY,
|
|
14
14
|
_internals as _internals3,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
runEvaluation,
|
|
28
28
|
runExternalTool,
|
|
29
29
|
withDisposableWorktree
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-4t0wd9sv.js";
|
|
31
31
|
import {
|
|
32
32
|
buildDriftInjectionText,
|
|
33
33
|
canonicalProjectKey,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
getGroupCommitWriter,
|
|
37
37
|
importLegacyJsonl,
|
|
38
38
|
readPriorDriftReports
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-46z4c89b.js";
|
|
40
40
|
import {
|
|
41
41
|
detectStraySwarmDirs,
|
|
42
42
|
readDoctorArtifact,
|
|
43
43
|
removeStraySwarmDir,
|
|
44
44
|
runConfigDoctor
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-r30xs0wp.js";
|
|
46
46
|
import {
|
|
47
47
|
MAX_TRANSIENT_RETRIES,
|
|
48
48
|
archiveEvidence,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
updateTaskStatus,
|
|
83
83
|
validateProjectRoot,
|
|
84
84
|
withPlanLifecycleLock
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-nvm6mxep.js";
|
|
86
86
|
import {
|
|
87
87
|
EvaluationTaskV1Schema,
|
|
88
88
|
GateAuditManifestV1Schema,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
saveGateAuditResult,
|
|
100
100
|
savePromotionDecision,
|
|
101
101
|
saveTaskSetSnapshot
|
|
102
|
-
} from "./index-
|
|
102
|
+
} from "./index-z8smhv7k.js";
|
|
103
103
|
import {
|
|
104
104
|
canonicalHash,
|
|
105
105
|
canonicalJson,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
resolveSpeckitProjection,
|
|
120
120
|
validateSpeckit,
|
|
121
121
|
writeProjectedSpecSync
|
|
122
|
-
} from "./index-
|
|
122
|
+
} from "./index-6b4vkz6q.js";
|
|
123
123
|
import {
|
|
124
124
|
containsControlChars,
|
|
125
125
|
containsPathTraversal,
|
|
@@ -147,16 +147,16 @@ import {
|
|
|
147
147
|
retireSkill,
|
|
148
148
|
selectCandidateEntries,
|
|
149
149
|
syncBundledProjectSkillsIfMissingAsync
|
|
150
|
-
} from "./index-
|
|
150
|
+
} from "./index-j40czc9v.js";
|
|
151
151
|
import {
|
|
152
152
|
buildEscalationBriefing,
|
|
153
153
|
readRecentEscalations
|
|
154
|
-
} from "./index-
|
|
154
|
+
} from "./index-152b9c6m.js";
|
|
155
155
|
import {
|
|
156
156
|
alreadyCuratedThisGeneration,
|
|
157
157
|
claimNextScanBatch,
|
|
158
158
|
resolveCohortId
|
|
159
|
-
} from "./index-
|
|
159
|
+
} from "./index-3fhg7pqf.js";
|
|
160
160
|
import {
|
|
161
161
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
162
162
|
CURATOR_INIT_PROMPT,
|
|
@@ -176,7 +176,7 @@ import {
|
|
|
176
176
|
sweepStale,
|
|
177
177
|
unsubscribe,
|
|
178
178
|
updateSnapshot
|
|
179
|
-
} from "./index-
|
|
179
|
+
} from "./index-e90m050y.js";
|
|
180
180
|
import {
|
|
181
181
|
clearWorktreeMergeStatus,
|
|
182
182
|
getAllWorktreeMergeFailures,
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
listCoderSettlementWalStates,
|
|
189
189
|
recoverCoderSettlement,
|
|
190
190
|
recoverStaleCoderSettlements
|
|
191
|
-
} from "./index-
|
|
191
|
+
} from "./index-me39468k.js";
|
|
192
192
|
import {
|
|
193
193
|
parsePorcelainV2Snapshot,
|
|
194
194
|
resolveCommitCountSince,
|
|
@@ -216,12 +216,12 @@ import {
|
|
|
216
216
|
resolveRemoteUrlIdentity,
|
|
217
217
|
resolveRemoteUrlIdentityAsync,
|
|
218
218
|
switchPrFeedbackTrackingCandidateAsync
|
|
219
|
-
} from "./index-
|
|
219
|
+
} from "./index-6h81yvyc.js";
|
|
220
220
|
import {
|
|
221
221
|
WORKTREE_LIFECYCLE_LOCK_FILE,
|
|
222
222
|
recordWorktreeProvisioningOwner,
|
|
223
223
|
removeWorktreeProvisioningOwner
|
|
224
|
-
} from "./index-
|
|
224
|
+
} from "./index-0bpr8vag.js";
|
|
225
225
|
import {
|
|
226
226
|
getLanguageForExtension
|
|
227
227
|
} from "./index-pt7h91zc.js";
|
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
transitionTaskWorkflowEvidence,
|
|
260
260
|
withTaskEvidenceTransaction,
|
|
261
261
|
writeWorkflowWalFile
|
|
262
|
-
} from "./index-
|
|
262
|
+
} from "./index-ad3yskxy.js";
|
|
263
263
|
import {
|
|
264
264
|
isPathUnderSwarmWorktreeBase,
|
|
265
265
|
listLiveLaneOwners,
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
recordLiveLaneOwner,
|
|
269
269
|
removeWorktree,
|
|
270
270
|
resolveWorktreeBaseDir
|
|
271
|
-
} from "./index-
|
|
271
|
+
} from "./index-4gr9pj67.js";
|
|
272
272
|
import {
|
|
273
273
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
274
274
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -302,7 +302,7 @@ import {
|
|
|
302
302
|
scanBackgroundCoderReservationsForAdmission,
|
|
303
303
|
scanDelegationsForRecovery,
|
|
304
304
|
sweepStaleDelegations
|
|
305
|
-
} from "./index-
|
|
305
|
+
} from "./index-nm8ma9xb.js";
|
|
306
306
|
import {
|
|
307
307
|
MAX_EVENT_LOG_ENTRIES,
|
|
308
308
|
_internals,
|
|
@@ -321,7 +321,7 @@ import {
|
|
|
321
321
|
recordKnowledgeEvent,
|
|
322
322
|
recordPhaseCloseIntent,
|
|
323
323
|
resolveKnowledgeEventsPath
|
|
324
|
-
} from "./index-
|
|
324
|
+
} from "./index-z3b157ew.js";
|
|
325
325
|
import {
|
|
326
326
|
estimateCharsForTokens,
|
|
327
327
|
estimateTokens,
|
|
@@ -329,7 +329,7 @@ import {
|
|
|
329
329
|
readSwarmFileAsync,
|
|
330
330
|
safeHook,
|
|
331
331
|
validateSwarmPath
|
|
332
|
-
} from "./index-
|
|
332
|
+
} from "./index-nmh0s6dg.js";
|
|
333
333
|
import {
|
|
334
334
|
bunFile,
|
|
335
335
|
bunSpawn,
|
|
@@ -349,18 +349,18 @@ import {
|
|
|
349
349
|
validateActionableFields,
|
|
350
350
|
validateLesson,
|
|
351
351
|
validateSkillPath
|
|
352
|
-
} from "./index-
|
|
352
|
+
} from "./index-5wk0etp8.js";
|
|
353
353
|
import {
|
|
354
354
|
MAX_CURATION_PROPOSALS,
|
|
355
355
|
authorizeCuration,
|
|
356
356
|
buildConfigFingerprintInput
|
|
357
|
-
} from "./index-
|
|
357
|
+
} from "./index-v3hpsxvd.js";
|
|
358
358
|
import {
|
|
359
359
|
cohortConfigFingerprint
|
|
360
360
|
} from "./index-rtry5xyf.js";
|
|
361
361
|
import {
|
|
362
362
|
resolveWorktreeIsolationConfig
|
|
363
|
-
} from "./index-
|
|
363
|
+
} from "./index-edrgc139.js";
|
|
364
364
|
import {
|
|
365
365
|
RetrospectiveEvidenceSchema
|
|
366
366
|
} from "./index-frcemc0b.js";
|
|
@@ -372,7 +372,7 @@ import {
|
|
|
372
372
|
clearScopeBindings,
|
|
373
373
|
readAuthoritativeScopeBindingSet,
|
|
374
374
|
readDeclaredScopeFilesFromBindings
|
|
375
|
-
} from "./index-
|
|
375
|
+
} from "./index-njf5pbkm.js";
|
|
376
376
|
import {
|
|
377
377
|
clearPlanLedgerForReset,
|
|
378
378
|
computePlanStructureHash,
|
|
@@ -388,7 +388,7 @@ import {
|
|
|
388
388
|
replayFromLedgerWithStatus,
|
|
389
389
|
resolvePlanningProfile,
|
|
390
390
|
takeSnapshotEvent
|
|
391
|
-
} from "./index-
|
|
391
|
+
} from "./index-51xtrf7g.js";
|
|
392
392
|
import {
|
|
393
393
|
CORE_EVENT_LOCKED,
|
|
394
394
|
appendCoreEventSync,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
hasSpecDriftAuditEvent,
|
|
399
399
|
hasTaskRepairAuditEvent,
|
|
400
400
|
readCoreEvents
|
|
401
|
-
} from "./index-
|
|
401
|
+
} from "./index-mn5zzmqx.js";
|
|
402
402
|
import {
|
|
403
403
|
DEFAULT_QA_GATES,
|
|
404
404
|
computeProfileHash,
|
|
@@ -406,7 +406,7 @@ import {
|
|
|
406
406
|
getEffectiveGates,
|
|
407
407
|
getProfileLookupForIdentity,
|
|
408
408
|
setGatesForIdentity
|
|
409
|
-
} from "./index-
|
|
409
|
+
} from "./index-w81jmdkt.js";
|
|
410
410
|
import {
|
|
411
411
|
MAX_COORDINATION_STATE_LIST_ROWS,
|
|
412
412
|
deleteCoordinationImports,
|
|
@@ -419,7 +419,7 @@ import {
|
|
|
419
419
|
listCoordinationStates,
|
|
420
420
|
transitionCoordinationState,
|
|
421
421
|
withCoordinationTransaction
|
|
422
|
-
} from "./index-
|
|
422
|
+
} from "./index-3rb5gs4w.js";
|
|
423
423
|
import {
|
|
424
424
|
DURABILITY_CLASSES,
|
|
425
425
|
closeAllProjectDbs,
|
|
@@ -428,7 +428,7 @@ import {
|
|
|
428
428
|
projectDbExists,
|
|
429
429
|
projectDbPath,
|
|
430
430
|
withImmediateTransaction
|
|
431
|
-
} from "./index-
|
|
431
|
+
} from "./index-08x7gsnf.js";
|
|
432
432
|
import {
|
|
433
433
|
loadDatabaseCtor
|
|
434
434
|
} from "./index-rdm3px0g.js";
|
|
@@ -444,7 +444,7 @@ import {
|
|
|
444
444
|
observeModelLimitResolution,
|
|
445
445
|
observeStoreHealth,
|
|
446
446
|
readLearningHealth
|
|
447
|
-
} from "./index-
|
|
447
|
+
} from "./index-1d6ssjcj.js";
|
|
448
448
|
import {
|
|
449
449
|
appendKnowledge,
|
|
450
450
|
appendRejectedLesson,
|
|
@@ -475,7 +475,7 @@ import {
|
|
|
475
475
|
transactFile,
|
|
476
476
|
transactKnowledge,
|
|
477
477
|
wordBigrams
|
|
478
|
-
} from "./index-
|
|
478
|
+
} from "./index-qyx53xrz.js";
|
|
479
479
|
import {
|
|
480
480
|
readTailJsonl,
|
|
481
481
|
readTailJsonlDetailed,
|
|
@@ -496,14 +496,14 @@ import {
|
|
|
496
496
|
resolveLinkDir,
|
|
497
497
|
sanitizeLinkId,
|
|
498
498
|
writeLinkPointer
|
|
499
|
-
} from "./index-
|
|
499
|
+
} from "./index-74x26wyj.js";
|
|
500
500
|
import {
|
|
501
501
|
assertProjectRoot,
|
|
502
502
|
atomicWriteFile,
|
|
503
503
|
hasExplicitProjectBoundary,
|
|
504
504
|
isStrictPathDescendant,
|
|
505
505
|
withEvidenceLock
|
|
506
|
-
} from "./index-
|
|
506
|
+
} from "./index-01wt209s.js";
|
|
507
507
|
import {
|
|
508
508
|
OPENINFERENCE_MAPPING_VERSION,
|
|
509
509
|
OTEL_GENAI_MAPPING_VERSION,
|
|
@@ -514,7 +514,7 @@ import {
|
|
|
514
514
|
pseudonymousRef,
|
|
515
515
|
resolveLineageSalt,
|
|
516
516
|
telemetry
|
|
517
|
-
} from "./index-
|
|
517
|
+
} from "./index-fbhtb6f5.js";
|
|
518
518
|
import {
|
|
519
519
|
canonicalRootKey,
|
|
520
520
|
canonicalRootKeyFresh,
|
|
@@ -538,7 +538,7 @@ import {
|
|
|
538
538
|
matchTempGrammar,
|
|
539
539
|
parseTargetBasename,
|
|
540
540
|
resetSwarmArtifactCache
|
|
541
|
-
} from "./index-
|
|
541
|
+
} from "./index-5cve9g2b.js";
|
|
542
542
|
import {
|
|
543
543
|
PlanSchema,
|
|
544
544
|
getCurrentPhase,
|
|
@@ -551,7 +551,7 @@ import {
|
|
|
551
551
|
loadGateOverrides,
|
|
552
552
|
loadPluginConfig,
|
|
553
553
|
loadPluginConfigWithMeta
|
|
554
|
-
} from "./index-
|
|
554
|
+
} from "./index-t1swv35d.js";
|
|
555
555
|
import {
|
|
556
556
|
addDeferredWarning,
|
|
557
557
|
advisoryWarn,
|
|
@@ -583,7 +583,7 @@ import {
|
|
|
583
583
|
resolveContextWindow,
|
|
584
584
|
resolveGeneratedAgentRole,
|
|
585
585
|
stripKnownSwarmPrefix
|
|
586
|
-
} from "./index-
|
|
586
|
+
} from "./index-ysr6n4ca.js";
|
|
587
587
|
import {
|
|
588
588
|
AGENT_TOOL_MAP,
|
|
589
589
|
ALL_AGENT_NAMES,
|
|
@@ -3346,7 +3346,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3346
3346
|
return null;
|
|
3347
3347
|
throw error2;
|
|
3348
3348
|
}
|
|
3349
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3349
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-sqjc6jmd.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3350
3350
|
if (!legacy)
|
|
3351
3351
|
return null;
|
|
3352
3352
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3433,7 +3433,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3433
3433
|
let recoveryState = null;
|
|
3434
3434
|
if (!currentAuthoritative) {
|
|
3435
3435
|
if (options.allowSalvagedRead) {
|
|
3436
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3436
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-sqjc6jmd.js");
|
|
3437
3437
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3438
3438
|
}
|
|
3439
3439
|
if (!recoveryState) {
|
|
@@ -14759,7 +14759,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
14759
14759
|
return extracted === expectedSessionId;
|
|
14760
14760
|
}
|
|
14761
14761
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
14762
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
14762
|
+
const collisionOwnership = await import("./worktree-collision-ownership-qf2shp2n.js");
|
|
14763
14763
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
14764
14764
|
}
|
|
14765
14765
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -15185,7 +15185,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
15185
15185
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
15186
15186
|
if (laneProfile) {
|
|
15187
15187
|
try {
|
|
15188
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
15188
|
+
const { writeLaneProfileToDiskReal } = await import("./core-7f955h2f.js");
|
|
15189
15189
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
15190
15190
|
} catch {}
|
|
15191
15191
|
}
|
|
@@ -16164,7 +16164,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
16164
16164
|
}
|
|
16165
16165
|
clearWorktreeMergeStatus(statusKey);
|
|
16166
16166
|
try {
|
|
16167
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
16167
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-7f955h2f.js");
|
|
16168
16168
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
16169
16169
|
} catch {}
|
|
16170
16170
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -16552,6 +16552,7 @@ function allocateInjectionBudget(systemEnhancerDemandTokens, knowledgeInjectorDe
|
|
|
16552
16552
|
totalTokens: ceiling
|
|
16553
16553
|
};
|
|
16554
16554
|
}
|
|
16555
|
+
var injectionBudgetReceipts = new WeakMap;
|
|
16555
16556
|
var turnLedgers = new Map;
|
|
16556
16557
|
function getOrCreateAccounting(ledger, producer, surface) {
|
|
16557
16558
|
let accounting = ledger.producers.get(producer);
|
|
@@ -16569,24 +16570,62 @@ function getOrCreateAccounting(ledger, producer, surface) {
|
|
|
16569
16570
|
return accounting;
|
|
16570
16571
|
}
|
|
16571
16572
|
function recordProducerGrant(sessionID, producer, requestedTokens, grantedTokens, surface) {
|
|
16573
|
+
applyProducerGrant(sessionID, producer, requestedTokens, grantedTokens, surface);
|
|
16574
|
+
}
|
|
16575
|
+
function applyProducerGrant(sessionID, producer, requestedTokens, grantedTokens, surface, expectedGeneration) {
|
|
16572
16576
|
const ledger = turnLedgers.get(sessionID);
|
|
16573
|
-
if (!ledger)
|
|
16577
|
+
if (!ledger || expectedGeneration !== undefined && ledger.generation !== expectedGeneration) {
|
|
16574
16578
|
return;
|
|
16579
|
+
}
|
|
16575
16580
|
const accounting = getOrCreateAccounting(ledger, producer, surface);
|
|
16576
|
-
|
|
16581
|
+
const requested = Math.max(0, requestedTokens);
|
|
16582
|
+
accounting.requested += requested;
|
|
16577
16583
|
const granted = Math.max(0, grantedTokens);
|
|
16578
16584
|
accounting.granted += granted;
|
|
16585
|
+
let charged = 0;
|
|
16579
16586
|
if (ledger.ceilingActive) {
|
|
16580
|
-
|
|
16587
|
+
charged = Math.min(granted, Math.max(0, ledger.totalBudget - ledger.used));
|
|
16588
|
+
ledger.used += charged;
|
|
16581
16589
|
}
|
|
16590
|
+
return {
|
|
16591
|
+
data: {
|
|
16592
|
+
sessionID,
|
|
16593
|
+
generation: ledger.generation,
|
|
16594
|
+
producer,
|
|
16595
|
+
surface,
|
|
16596
|
+
accounting,
|
|
16597
|
+
requestedTokens: requested,
|
|
16598
|
+
grantedTokens: granted,
|
|
16599
|
+
chargedTokens: charged,
|
|
16600
|
+
emittedTokensOnRefund: 0,
|
|
16601
|
+
retractEmissionOnRefund: false
|
|
16602
|
+
}
|
|
16603
|
+
};
|
|
16604
|
+
}
|
|
16605
|
+
function recordProducerEmission(sessionID, producer, emittedTokens, truncatedTokens, surface, options) {
|
|
16606
|
+
applyProducerEmission(sessionID, producer, emittedTokens, truncatedTokens, surface, options?.expectedGeneration);
|
|
16582
16607
|
}
|
|
16583
|
-
function
|
|
16608
|
+
function applyProducerEmission(sessionID, producer, emittedTokens, truncatedTokens, surface, expectedGeneration) {
|
|
16584
16609
|
const ledger = turnLedgers.get(sessionID);
|
|
16585
|
-
if (!ledger)
|
|
16610
|
+
if (!ledger || expectedGeneration !== undefined && ledger.generation !== expectedGeneration) {
|
|
16586
16611
|
return;
|
|
16612
|
+
}
|
|
16587
16613
|
const accounting = getOrCreateAccounting(ledger, producer, surface);
|
|
16588
|
-
|
|
16614
|
+
const emitted = Math.max(0, emittedTokens);
|
|
16615
|
+
accounting.emitted += emitted;
|
|
16589
16616
|
accounting.truncated += Math.max(0, truncatedTokens);
|
|
16617
|
+
return {
|
|
16618
|
+
sessionID,
|
|
16619
|
+
generation: ledger.generation,
|
|
16620
|
+
producer,
|
|
16621
|
+
surface,
|
|
16622
|
+
accounting,
|
|
16623
|
+
requestedTokens: 0,
|
|
16624
|
+
grantedTokens: 0,
|
|
16625
|
+
chargedTokens: 0,
|
|
16626
|
+
emittedTokensOnRefund: emitted,
|
|
16627
|
+
retractEmissionOnRefund: true
|
|
16628
|
+
};
|
|
16590
16629
|
}
|
|
16591
16630
|
function getProducerEmission(sessionID, producer) {
|
|
16592
16631
|
return turnLedgers.get(sessionID)?.producers.get(producer)?.emitted ?? 0;
|
|
@@ -23677,7 +23716,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
23677
23716
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
23678
23717
|
const map = new Map;
|
|
23679
23718
|
try {
|
|
23680
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
23719
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-w2fwdpkk.js");
|
|
23681
23720
|
const records = await listActive2(directory);
|
|
23682
23721
|
for (const record of records) {
|
|
23683
23722
|
if (record.sessionID !== sessionID)
|
|
@@ -40621,9 +40660,9 @@ function hashContent(content) {
|
|
|
40621
40660
|
return createHash25("sha1").update(content).digest("hex");
|
|
40622
40661
|
}
|
|
40623
40662
|
async function loadConfigForPolicyCurator(directory) {
|
|
40624
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
40663
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-cyet68tw.js");
|
|
40625
40664
|
try {
|
|
40626
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
40665
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fs9y88h1.js");
|
|
40627
40666
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
40628
40667
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
40629
40668
|
} catch {
|
|
@@ -43681,7 +43720,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
43681
43720
|
const seam = _internals37.createCuratorLLMDelegate;
|
|
43682
43721
|
if (seam)
|
|
43683
43722
|
return seam(directory, mode, sessionId);
|
|
43684
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
43723
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-g6at4hn6.js");
|
|
43685
43724
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
43686
43725
|
}
|
|
43687
43726
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -44076,7 +44115,7 @@ async function runFinalizeStage(ctx) {
|
|
|
44076
44115
|
}
|
|
44077
44116
|
}
|
|
44078
44117
|
try {
|
|
44079
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
44118
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-cyet68tw.js");
|
|
44080
44119
|
const { config: pmLoadedConfig } = _internals37.loadPluginConfigWithMeta(ctx.directory);
|
|
44081
44120
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
44082
44121
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -46258,7 +46297,7 @@ function serializeAgentSession(s) {
|
|
|
46258
46297
|
}
|
|
46259
46298
|
async function writeSnapshot(directory, state) {
|
|
46260
46299
|
try {
|
|
46261
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
46300
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-zzs4bkmj.js");
|
|
46262
46301
|
await ensureSnapshotCoordinationReady(directory);
|
|
46263
46302
|
const snapshot = {
|
|
46264
46303
|
version: 3,
|
|
@@ -49321,7 +49360,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
49321
49360
|
};
|
|
49322
49361
|
}
|
|
49323
49362
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
49324
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
49363
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fs9y88h1.js");
|
|
49325
49364
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
49326
49365
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
49327
49366
|
if (sweepConfig?.enabled === false)
|
|
@@ -50445,7 +50484,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
50445
50484
|
}
|
|
50446
50485
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
50447
50486
|
try {
|
|
50448
|
-
const skillModule = await import("./skill-generator-
|
|
50487
|
+
const skillModule = await import("./skill-generator-qg5m18k7.js");
|
|
50449
50488
|
for (const cand of skillCandidates) {
|
|
50450
50489
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
50451
50490
|
continue;
|
|
@@ -50917,7 +50956,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
50917
50956
|
} catch {}
|
|
50918
50957
|
}
|
|
50919
50958
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
50920
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
50959
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-4296y1h2.js");
|
|
50921
50960
|
for (const { id } of contradictedEntries) {
|
|
50922
50961
|
try {
|
|
50923
50962
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -51749,7 +51788,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
51749
51788
|
warnings.push("Failed to collect knowledge summary.");
|
|
51750
51789
|
}
|
|
51751
51790
|
try {
|
|
51752
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
51791
|
+
const { getScanStatus } = await import("./scan-cursor-f74b9b4k.js");
|
|
51753
51792
|
const scanStatus = await getScanStatus(directory);
|
|
51754
51793
|
if (scanStatus.remaining_estimate > 0) {
|
|
51755
51794
|
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.`);
|
|
@@ -51921,9 +51960,9 @@ var _internals55 = {
|
|
|
51921
51960
|
verifyPostMortemKnowledgeActions,
|
|
51922
51961
|
repairPostMortemActions,
|
|
51923
51962
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
51924
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
51963
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-cyet68tw.js");
|
|
51925
51964
|
try {
|
|
51926
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
51965
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fs9y88h1.js");
|
|
51927
51966
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
51928
51967
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
51929
51968
|
} catch {
|
|
@@ -51931,11 +51970,11 @@ var _internals55 = {
|
|
|
51931
51970
|
}
|
|
51932
51971
|
},
|
|
51933
51972
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
51934
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
51973
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-m7enwwz2.js");
|
|
51935
51974
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
51936
51975
|
},
|
|
51937
51976
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
51938
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
51977
|
+
const { checkHivePromotions } = await import("./hive-promoter-yp1baj9z.js");
|
|
51939
51978
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
51940
51979
|
},
|
|
51941
51980
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -51944,7 +51983,7 @@ var _internals55 = {
|
|
|
51944
51983
|
activateProposal,
|
|
51945
51984
|
listSkills: listSkills2,
|
|
51946
51985
|
sanitizeSlug
|
|
51947
|
-
} = await import("./skill-generator-
|
|
51986
|
+
} = await import("./skill-generator-qg5m18k7.js");
|
|
51948
51987
|
const result = {
|
|
51949
51988
|
approved: [],
|
|
51950
51989
|
rejected: [],
|
|
@@ -51986,7 +52025,7 @@ var _internals55 = {
|
|
|
51986
52025
|
return result;
|
|
51987
52026
|
},
|
|
51988
52027
|
readPriorDriftReports: async (directory) => {
|
|
51989
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
52028
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-48x02n2m.js");
|
|
51990
52029
|
return readPriorDriftReports2(directory);
|
|
51991
52030
|
},
|
|
51992
52031
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -60430,7 +60469,7 @@ function wireCloseInternals() {
|
|
|
60430
60469
|
archiveEvidence,
|
|
60431
60470
|
endAgentSession,
|
|
60432
60471
|
flushAndDrainTelemetry: async () => {
|
|
60433
|
-
const { flushAndDrainTelemetry } = await import("./telemetry-
|
|
60472
|
+
const { flushAndDrainTelemetry } = await import("./telemetry-rzvcp2n9.js");
|
|
60434
60473
|
return flushAndDrainTelemetry();
|
|
60435
60474
|
},
|
|
60436
60475
|
finalizeContextTelemetry,
|
|
@@ -61782,9 +61821,9 @@ var _internals65 = {
|
|
|
61782
61821
|
loadPluginConfigWithMeta,
|
|
61783
61822
|
loadCuratorDeps: async () => {
|
|
61784
61823
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
61785
|
-
import("./schema-
|
|
61786
|
-
import("./curator-
|
|
61787
|
-
import("./curator-llm-factory-
|
|
61824
|
+
import("./schema-cyet68tw.js"),
|
|
61825
|
+
import("./curator-m7enwwz2.js"),
|
|
61826
|
+
import("./curator-llm-factory-g6at4hn6.js")
|
|
61788
61827
|
]);
|
|
61789
61828
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
61790
61829
|
}
|
|
@@ -64118,7 +64157,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64118
64157
|
let scanCompleted = false;
|
|
64119
64158
|
let scanRemaining = 0;
|
|
64120
64159
|
try {
|
|
64121
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
64160
|
+
const { getScanStatus } = await import("./scan-cursor-f74b9b4k.js");
|
|
64122
64161
|
const status = await getScanStatus(directory);
|
|
64123
64162
|
scanGeneration = status.generation;
|
|
64124
64163
|
scanCompleted = status.completed;
|
|
@@ -64126,19 +64165,19 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64126
64165
|
} catch {}
|
|
64127
64166
|
let configMatch = null;
|
|
64128
64167
|
try {
|
|
64129
|
-
const { isLinked: isLinked2 } = await import("./knowledge-link-
|
|
64168
|
+
const { isLinked: isLinked2 } = await import("./knowledge-link-ydpvzam8.js");
|
|
64130
64169
|
if (isLinked2(directory)) {
|
|
64131
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
64170
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-cyet68tw.js");
|
|
64132
64171
|
let config;
|
|
64133
64172
|
try {
|
|
64134
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
64173
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fs9y88h1.js");
|
|
64135
64174
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
64136
64175
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
64137
64176
|
} catch {
|
|
64138
64177
|
config = KnowledgeConfigSchema2.parse({});
|
|
64139
64178
|
}
|
|
64140
64179
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
64141
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
64180
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-fa2h82c4.js");
|
|
64142
64181
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
64143
64182
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
64144
64183
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -65559,6 +65598,17 @@ function formatDoctorMarkdown(result) {
|
|
|
65559
65598
|
lines.push("");
|
|
65560
65599
|
lines.push("Run `/swarm config doctor --fix` to apply available migrations.");
|
|
65561
65600
|
}
|
|
65601
|
+
const defaultsFlips = result.findings.filter((finding) => finding.id === "defaults-flip");
|
|
65602
|
+
if (defaultsFlips.length > 0) {
|
|
65603
|
+
lines.push("---", "");
|
|
65604
|
+
lines.push("### Defaults changes (v8)", "");
|
|
65605
|
+
lines.push("\u2139\uFE0F Governed v8 default changes are pending for this config. Explicit values always win \u2014 these rows inform and provide the kill switch:");
|
|
65606
|
+
for (const flip of defaultsFlips) {
|
|
65607
|
+
lines.push(` - ${flip.description}`);
|
|
65608
|
+
}
|
|
65609
|
+
lines.push("");
|
|
65610
|
+
lines.push('Run `/swarm config doctor --fix` to acknowledge these changes (stamps config_format_version), or set `preset: "conservative"` to restore all v7 defaults. Evidence and rollback: docs/defaults-governance.md (#2504).');
|
|
65611
|
+
}
|
|
65562
65612
|
if (result.hasAutoFixableIssues) {
|
|
65563
65613
|
lines.push("---");
|
|
65564
65614
|
lines.push("");
|
|
@@ -65574,7 +65624,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65574
65624
|
const result = runConfigDoctor(config, directory);
|
|
65575
65625
|
let output;
|
|
65576
65626
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
65577
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
65627
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-y0bpap07.js");
|
|
65578
65628
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
65579
65629
|
applyLossy: true
|
|
65580
65630
|
});
|
|
@@ -65612,7 +65662,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65612
65662
|
`;
|
|
65613
65663
|
}
|
|
65614
65664
|
try {
|
|
65615
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
65665
|
+
const { runModelPreflight } = await import("./model-preflight-bv8nvjjx.js");
|
|
65616
65666
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
65617
65667
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
65618
65668
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -66539,7 +66589,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
66539
66589
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
66540
66590
|
}
|
|
66541
66591
|
async function handleEvidenceSummaryCommand(directory) {
|
|
66542
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
66592
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-k8a5vkfk.js");
|
|
66543
66593
|
const artifact = await buildEvidenceSummary(directory);
|
|
66544
66594
|
if (!artifact) {
|
|
66545
66595
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -83346,6 +83396,8 @@ async function injectForDelegateIntoMessages(directory, config, output, agentNam
|
|
|
83346
83396
|
let taskTitle;
|
|
83347
83397
|
for (let i = output.messages.length - 1;i >= 0; i--) {
|
|
83348
83398
|
const m = output.messages[i];
|
|
83399
|
+
if (isGuidanceCarrier(m))
|
|
83400
|
+
continue;
|
|
83349
83401
|
if (m.info?.role === "user") {
|
|
83350
83402
|
const t = m.parts?.map((p) => p.text ?? "").join(" ").trim();
|
|
83351
83403
|
if (t) {
|
|
@@ -83383,6 +83435,8 @@ function injectReviewerComplianceMessage(output, text, sessionId) {
|
|
|
83383
83435
|
return;
|
|
83384
83436
|
let insertIdx = output.messages.length - 1;
|
|
83385
83437
|
for (let i = output.messages.length - 1;i >= 0; i--) {
|
|
83438
|
+
if (isGuidanceCarrier(output.messages[i]))
|
|
83439
|
+
continue;
|
|
83386
83440
|
if (output.messages[i].info?.role === "user") {
|
|
83387
83441
|
insertIdx = i;
|
|
83388
83442
|
break;
|
|
@@ -83459,6 +83513,8 @@ function injectKnowledgeMessage(output, text, sessionId) {
|
|
|
83459
83513
|
return;
|
|
83460
83514
|
let insertIdx = output.messages.length - 1;
|
|
83461
83515
|
for (let i = output.messages.length - 1;i >= 0; i--) {
|
|
83516
|
+
if (isGuidanceCarrier(output.messages[i]))
|
|
83517
|
+
continue;
|
|
83462
83518
|
if (output.messages[i].info?.role === "user") {
|
|
83463
83519
|
insertIdx = i;
|
|
83464
83520
|
break;
|
|
@@ -83583,6 +83639,8 @@ function createKnowledgeInjectorHook(directory, config, modelLimitOverrides = {}
|
|
|
83583
83639
|
let lastUserMessage;
|
|
83584
83640
|
for (let i = output.messages.length - 1;i >= 0; i--) {
|
|
83585
83641
|
const m = output.messages[i];
|
|
83642
|
+
if (isGuidanceCarrier(m))
|
|
83643
|
+
continue;
|
|
83586
83644
|
if (m.info?.role === "user") {
|
|
83587
83645
|
const t = m.parts?.map((p) => p.text ?? "").join(" ").trim();
|
|
83588
83646
|
if (t) {
|
|
@@ -90729,7 +90787,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
90729
90787
|
}
|
|
90730
90788
|
const sdkOpts = signal ? { signal } : {};
|
|
90731
90789
|
try {
|
|
90732
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
90790
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-079xzcxb.js");
|
|
90733
90791
|
const createResult = await client.session.create({
|
|
90734
90792
|
...sessionId ? {
|
|
90735
90793
|
body: {
|
|
@@ -91471,7 +91529,7 @@ async function cancelPrFeedbackLoop(directory, sessionID, reason) {
|
|
|
91471
91529
|
clearedEvents: []
|
|
91472
91530
|
};
|
|
91473
91531
|
try {
|
|
91474
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
91532
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-sqjc6jmd.js");
|
|
91475
91533
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
91476
91534
|
} catch (err) {
|
|
91477
91535
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -105488,7 +105546,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
|
|
|
105488
105546
|
if (!input.dispatcher) {
|
|
105489
105547
|
throw new Error("no evaluation dispatcher available (cannot run validation)");
|
|
105490
105548
|
}
|
|
105491
|
-
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-
|
|
105549
|
+
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-r6gxq7m1.js");
|
|
105492
105550
|
const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
|
|
105493
105551
|
const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals124.evaluateCandidateV1({
|
|
105494
105552
|
projectRoot: input.directory,
|
|
@@ -108117,7 +108175,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
108117
108175
|
async function handleHelpCommand(ctx) {
|
|
108118
108176
|
const targetCommand = ctx.args.join(" ");
|
|
108119
108177
|
if (!targetCommand) {
|
|
108120
|
-
const { buildHelpText } = await import("./index-
|
|
108178
|
+
const { buildHelpText } = await import("./index-bf1726rj.js");
|
|
108121
108179
|
return buildHelpText();
|
|
108122
108180
|
}
|
|
108123
108181
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -108131,7 +108189,7 @@ async function handleHelpCommand(ctx) {
|
|
|
108131
108189
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
108132
108190
|
}
|
|
108133
108191
|
const similar = _internals25.findSimilarCommands(targetCommand);
|
|
108134
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
108192
|
+
const { buildHelpText: fullHelp } = await import("./index-bf1726rj.js");
|
|
108135
108193
|
if (similar.length > 0) {
|
|
108136
108194
|
return `Command '/swarm ${targetCommand}' not found.
|
|
108137
108195
|
|
|
@@ -108446,7 +108504,7 @@ var COMMAND_REGISTRY = {
|
|
|
108446
108504
|
},
|
|
108447
108505
|
"guardrail explain": {
|
|
108448
108506
|
handler: async (ctx) => {
|
|
108449
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
108507
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-1ccchxdr.js");
|
|
108450
108508
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
108451
108509
|
},
|
|
108452
108510
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -108456,7 +108514,7 @@ var COMMAND_REGISTRY = {
|
|
|
108456
108514
|
},
|
|
108457
108515
|
"guardrail reset": {
|
|
108458
108516
|
handler: async (ctx) => {
|
|
108459
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
108517
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-btzq4ses.js");
|
|
108460
108518
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
108461
108519
|
},
|
|
108462
108520
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -108477,7 +108535,7 @@ var COMMAND_REGISTRY = {
|
|
|
108477
108535
|
},
|
|
108478
108536
|
"guardrail-log": {
|
|
108479
108537
|
handler: async (ctx) => {
|
|
108480
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
108538
|
+
const { handleGuardrailLog } = await import("./guardrail-log-dppv6tgn.js");
|
|
108481
108539
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
108482
108540
|
},
|
|
108483
108541
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|