opencode-swarm 7.172.0 → 7.172.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{coder-settlement-0k46xqk2.js → coder-settlement-pw4jbrez.js} +11 -11
- package/dist/cli/{config-doctor-x41bxjp6.js → config-doctor-ab0ckcsc.js} +2 -2
- package/dist/cli/{core-3spww0at.js → core-ty98bsnz.js} +3 -3
- package/dist/cli/{curation-policy-92qhvewe.js → curation-policy-cvjd6kz8.js} +5 -5
- package/dist/cli/{curator-drift-fqvxe2zw.js → curator-drift-b0pbzjxv.js} +4 -4
- package/dist/cli/curator-llm-factory-69vje2m7.js +72 -0
- package/dist/cli/{curator-eyz6gg74.js → curator-rvrhbsy2.js} +36 -36
- package/dist/cli/{evidence-summary-service-kf0vb1hf.js → evidence-summary-service-wmer0c5b.js} +15 -15
- package/dist/cli/{gate-evidence-89wvxgs9.js → gate-evidence-6d0f6ekr.js} +6 -6
- package/dist/cli/guardrail-explain-z06dyan0.js +73 -0
- package/dist/cli/{guardrail-log-kfjk62sz.js → guardrail-log-bmyxcdfk.js} +7 -7
- package/dist/cli/{guardrail-reset-d8m1h5sz.js → guardrail-reset-9wmbhwff.js} +36 -36
- package/dist/cli/{hive-promoter-0ekf5zp1.js → hive-promoter-mc8xssba.js} +36 -36
- package/dist/cli/{index-8wnjcav5.js → index-008sppht.js} +3 -3
- package/dist/cli/{index-12w05bxk.js → index-31fes86t.js} +2 -2
- package/dist/cli/{index-63t4m2t5.js → index-3r17j2gc.js} +133 -23
- package/dist/cli/{index-2rdj9mdh.js → index-66tshqdp.js} +4 -4
- package/dist/cli/{index-6jshhpjw.js → index-93z2fhyp.js} +2 -2
- package/dist/cli/{index-mj07x42s.js → index-9bg5vc22.js} +2 -2
- package/dist/cli/{index-k441jgzk.js → index-9p00xent.js} +1 -1
- package/dist/cli/{index-efkckdaw.js → index-bdqefjxg.js} +1 -1
- package/dist/cli/{index-1vsmh63p.js → index-br08k19k.js} +74 -74
- package/dist/cli/{index-5hambjmn.js → index-c5wyannc.js} +30 -18
- package/dist/cli/{index-0y2ygy5f.js → index-dg5znyqw.js} +7 -7
- package/dist/cli/{index-7q1m8rsw.js → index-edext37b.js} +7 -7
- package/dist/cli/{index-dpb1xs5m.js → index-gdrdtbw6.js} +2 -2
- package/dist/cli/{index-nqbmk4b9.js → index-h91jjw6t.js} +1 -1
- package/dist/cli/{index-nyrhz1h1.js → index-ha3wsy2e.js} +1 -1
- package/dist/cli/{index-328eg2bb.js → index-hx0pas8b.js} +3 -3
- package/dist/cli/{index-677gzqmd.js → index-hydccmm1.js} +1 -1
- package/dist/cli/{index-53ges0rk.js → index-j8warkkj.js} +7 -7
- package/dist/cli/{index-8k09fkqj.js → index-jc0as97z.js} +4 -4
- package/dist/cli/{index-br3r0y73.js → index-jmn35na4.js} +3 -3
- package/dist/cli/{index-1s3t3jdc.js → index-jzrx2sx2.js} +1 -1
- package/dist/cli/{index-6fb3y9pm.js → index-ma38q4rf.js} +1 -1
- package/dist/cli/{index-v6msnkz2.js → index-mq69g46a.js} +2 -2
- package/dist/cli/{index-s723hx7z.js → index-nzpw41w6.js} +1 -1
- package/dist/cli/{index-39x78qk0.js → index-pmg1k4mv.js} +8 -8
- package/dist/cli/{index-w1d5nsdc.js → index-q58xegd7.js} +2 -2
- package/dist/cli/{index-z81mxyhm.js → index-qfz31dcy.js} +5 -5
- package/dist/cli/{index-y8y2bjsy.js → index-re1ey51s.js} +4 -4
- package/dist/cli/{index-tfmb620d.js → index-rhe9zbe2.js} +36 -36
- package/dist/cli/{index-29j9sjbw.js → index-sakgsnxj.js} +1 -1
- package/dist/cli/{index-r08tgb71.js → index-tm6z0wgj.js} +2 -2
- package/dist/cli/{index-34jdempk.js → index-tr3tbtgw.js} +2 -2
- package/dist/cli/{index-zbw6h4xn.js → index-twpzfwga.js} +1 -1
- package/dist/cli/{index-jvg7hvjp.js → index-vqs7dxp7.js} +3 -3
- package/dist/cli/{index-25fa4krx.js → index-w0141tkw.js} +8 -8
- package/dist/cli/{index-gmw8a1qa.js → index-wf6pbrg7.js} +1 -1
- package/dist/cli/{index-a2kv054j.js → index-ws3ggk1h.js} +6 -6
- package/dist/cli/{index-xn9tm7sr.js → index-y21gyrt6.js} +38 -38
- package/dist/cli/{index-v2fge66b.js → index-y5x1swr8.js} +7 -7
- package/dist/cli/{index-dga9j6s1.js → index-yf1mvexg.js} +2 -2
- package/dist/cli/{index-3kqzzwvd.js → index-zcjdw8dw.js} +1 -1
- package/dist/cli/index.js +37 -37
- package/dist/cli/{knowledge-escalator-qtz01ffw.js → knowledge-escalator-k4ab3f1f.js} +12 -12
- package/dist/cli/{knowledge-events-8w0mvkzc.js → knowledge-events-aqy4hb15.js} +10 -10
- package/dist/cli/{knowledge-link-3xp7h4xn.js → knowledge-link-51m3c09s.js} +4 -4
- package/dist/cli/{knowledge-store-p5ps09qg.js → knowledge-store-xgkga9xj.js} +5 -5
- package/dist/cli/{knowledge-validator-rc63wfkp.js → knowledge-validator-vvgs8m7m.js} +7 -7
- package/dist/cli/{mcp-pmfg7wpk.js → mcp-qvgka4c8.js} +1 -1
- package/dist/cli/{pending-delegations-1sg6g7et.js → pending-delegations-1xvmbw29.js} +11 -11
- package/dist/cli/{pr-subscriptions-yd804apk.js → pr-subscriptions-13xqrhwx.js} +11 -11
- package/dist/cli/{pr-workflow-gate-pf3ssffq.js → pr-workflow-gate-6qzpckxa.js} +36 -36
- package/dist/cli/{runner-rry4z6j2.js → runner-k2t9n662.js} +5 -5
- package/dist/cli/{scan-cursor-j93ek248.js → scan-cursor-q5nycpzb.js} +6 -6
- package/dist/cli/{schema-hvptm5hf.js → schema-a8gskpey.js} +1 -1
- package/dist/cli/{scope-persistence-3tfvswtk.js → scope-persistence-q0n6y3n7.js} +14 -14
- package/dist/cli/{server-rbvx63t6.js → server-wmbahe8h.js} +36 -36
- package/dist/cli/{skill-generator-r9wc6xt1.js → skill-generator-z76whwng.js} +14 -14
- package/dist/cli/{snapshot-coordination-init-7w5em40w.js → snapshot-coordination-init-k2fgw463.js} +36 -36
- package/dist/cli/{telemetry-vw919tfm.js → telemetry-zed80n86.js} +1 -1
- package/dist/cli/{workspace-snapshot-x54wxr6a.js → workspace-snapshot-93dx9rbt.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-yetwf2ch.js → worktree-collision-ownership-deyrgr70.js} +12 -12
- package/dist/cli/{worktree-isolation-sxfj78hv.js → worktree-isolation-9rjxaxp6.js} +36 -36
- package/dist/index.js +11 -11
- package/dist/plan/index.d.ts +1 -0
- package/dist/plan/ledger.d.ts +10 -0
- package/dist/plan/manager.d.ts +38 -2
- package/dist/tools/phase-complete.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-jnsjqq99.js +0 -72
- package/dist/cli/guardrail-explain-rz4kaqyp.js +0 -73
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveExecutableFromPath,
|
|
17
17
|
runEvaluation,
|
|
18
18
|
runExternalTool
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-ha3wsy2e.js";
|
|
20
20
|
import {
|
|
21
21
|
finalizeShellAuditForClose,
|
|
22
22
|
isPolicyProtectedPath,
|
|
@@ -26,20 +26,20 @@ import {
|
|
|
26
26
|
protectedRoots,
|
|
27
27
|
redactDecisionLineForArchive,
|
|
28
28
|
stableCanonicalStringify
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-hx0pas8b.js";
|
|
30
30
|
import {
|
|
31
31
|
canonicalProjectKey,
|
|
32
32
|
closeGroupCommitWriter,
|
|
33
33
|
getGlobalEventBus,
|
|
34
34
|
getGroupCommitWriter,
|
|
35
35
|
importLegacyJsonl
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-h91jjw6t.js";
|
|
37
37
|
import {
|
|
38
38
|
detectStraySwarmDirs,
|
|
39
39
|
readDoctorArtifact,
|
|
40
40
|
removeStraySwarmDir,
|
|
41
41
|
runConfigDoctor
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-sakgsnxj.js";
|
|
43
43
|
import {
|
|
44
44
|
MAX_TRANSIENT_RETRIES,
|
|
45
45
|
archiveEvidence,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
updateTaskStatus,
|
|
82
82
|
validateProjectRoot,
|
|
83
83
|
withPlanLifecycleLock
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-3r17j2gc.js";
|
|
85
85
|
import {
|
|
86
86
|
EvaluationTaskV1Schema,
|
|
87
87
|
GateAuditManifestV1Schema,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
saveGateAuditResult,
|
|
99
99
|
savePromotionDecision,
|
|
100
100
|
saveTaskSetSnapshot
|
|
101
|
-
} from "./index-
|
|
101
|
+
} from "./index-nzpw41w6.js";
|
|
102
102
|
import {
|
|
103
103
|
canonicalHash,
|
|
104
104
|
canonicalJson,
|
|
@@ -146,15 +146,15 @@ import {
|
|
|
146
146
|
retireSkill,
|
|
147
147
|
selectCandidateEntries,
|
|
148
148
|
syncBundledProjectSkillsIfMissingAsync
|
|
149
|
-
} from "./index-
|
|
149
|
+
} from "./index-re1ey51s.js";
|
|
150
150
|
import {
|
|
151
151
|
readRecentEscalations
|
|
152
|
-
} from "./index-
|
|
152
|
+
} from "./index-qfz31dcy.js";
|
|
153
153
|
import {
|
|
154
154
|
alreadyCuratedThisGeneration,
|
|
155
155
|
claimNextScanBatch,
|
|
156
156
|
resolveCohortId
|
|
157
|
-
} from "./index-
|
|
157
|
+
} from "./index-tm6z0wgj.js";
|
|
158
158
|
import {
|
|
159
159
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
160
160
|
CURATOR_INIT_PROMPT,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
sweepStale,
|
|
175
175
|
unsubscribe,
|
|
176
176
|
updateSnapshot
|
|
177
|
-
} from "./index-
|
|
177
|
+
} from "./index-y5x1swr8.js";
|
|
178
178
|
import {
|
|
179
179
|
clearWorktreeMergeStatus,
|
|
180
180
|
getAllWorktreeMergeFailures,
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
listCoderSettlementWalStates,
|
|
187
187
|
recoverCoderSettlement,
|
|
188
188
|
recoverStaleCoderSettlements
|
|
189
|
-
} from "./index-
|
|
189
|
+
} from "./index-w0141tkw.js";
|
|
190
190
|
import {
|
|
191
191
|
parsePorcelainV2Snapshot,
|
|
192
192
|
resolveCommitCountSince,
|
|
@@ -214,12 +214,12 @@ import {
|
|
|
214
214
|
resolveRemoteUrlIdentity,
|
|
215
215
|
resolveRemoteUrlIdentityAsync,
|
|
216
216
|
switchPrFeedbackTrackingCandidateAsync
|
|
217
|
-
} from "./index-
|
|
217
|
+
} from "./index-mq69g46a.js";
|
|
218
218
|
import {
|
|
219
219
|
WORKTREE_LIFECYCLE_LOCK_FILE,
|
|
220
220
|
recordWorktreeProvisioningOwner,
|
|
221
221
|
removeWorktreeProvisioningOwner
|
|
222
|
-
} from "./index-
|
|
222
|
+
} from "./index-tr3tbtgw.js";
|
|
223
223
|
import {
|
|
224
224
|
getLanguageForExtension
|
|
225
225
|
} from "./index-pt7h91zc.js";
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
transitionTaskWorkflowEvidence,
|
|
258
258
|
withTaskEvidenceTransaction,
|
|
259
259
|
writeWorkflowWalFile
|
|
260
|
-
} from "./index-
|
|
260
|
+
} from "./index-jc0as97z.js";
|
|
261
261
|
import {
|
|
262
262
|
isPathUnderSwarmWorktreeBase,
|
|
263
263
|
listLiveLaneOwners,
|
|
@@ -266,7 +266,7 @@ import {
|
|
|
266
266
|
recordLiveLaneOwner,
|
|
267
267
|
removeWorktree,
|
|
268
268
|
resolveWorktreeBaseDir
|
|
269
|
-
} from "./index-
|
|
269
|
+
} from "./index-008sppht.js";
|
|
270
270
|
import {
|
|
271
271
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
272
272
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -300,7 +300,7 @@ import {
|
|
|
300
300
|
scanBackgroundCoderReservationsForAdmission,
|
|
301
301
|
scanDelegationsForRecovery,
|
|
302
302
|
sweepStaleDelegations
|
|
303
|
-
} from "./index-
|
|
303
|
+
} from "./index-dg5znyqw.js";
|
|
304
304
|
import {
|
|
305
305
|
MAX_EVENT_LOG_ENTRIES,
|
|
306
306
|
_internals,
|
|
@@ -316,13 +316,13 @@ import {
|
|
|
316
316
|
recordKnowledgeEvent,
|
|
317
317
|
recordPhaseCloseIntent,
|
|
318
318
|
resolveKnowledgeEventsPath
|
|
319
|
-
} from "./index-
|
|
319
|
+
} from "./index-pmg1k4mv.js";
|
|
320
320
|
import {
|
|
321
321
|
estimateTokens,
|
|
322
322
|
readSwarmFileAsync,
|
|
323
323
|
safeHook,
|
|
324
324
|
validateSwarmPath
|
|
325
|
-
} from "./index-
|
|
325
|
+
} from "./index-ma38q4rf.js";
|
|
326
326
|
import {
|
|
327
327
|
bunFile,
|
|
328
328
|
bunSpawn,
|
|
@@ -342,18 +342,18 @@ import {
|
|
|
342
342
|
validateActionableFields,
|
|
343
343
|
validateLesson,
|
|
344
344
|
validateSkillPath
|
|
345
|
-
} from "./index-
|
|
345
|
+
} from "./index-66tshqdp.js";
|
|
346
346
|
import {
|
|
347
347
|
MAX_CURATION_PROPOSALS,
|
|
348
348
|
authorizeCuration,
|
|
349
349
|
buildConfigFingerprintInput
|
|
350
|
-
} from "./index-
|
|
350
|
+
} from "./index-hydccmm1.js";
|
|
351
351
|
import {
|
|
352
352
|
cohortConfigFingerprint
|
|
353
353
|
} from "./index-rtry5xyf.js";
|
|
354
354
|
import {
|
|
355
355
|
resolveWorktreeIsolationConfig
|
|
356
|
-
} from "./index-
|
|
356
|
+
} from "./index-93z2fhyp.js";
|
|
357
357
|
import {
|
|
358
358
|
RetrospectiveEvidenceSchema
|
|
359
359
|
} from "./index-frcemc0b.js";
|
|
@@ -364,7 +364,7 @@ import {
|
|
|
364
364
|
clearScopeBindingFromDisk,
|
|
365
365
|
clearScopeBindings,
|
|
366
366
|
readScopeFromDisk
|
|
367
|
-
} from "./index-
|
|
367
|
+
} from "./index-edext37b.js";
|
|
368
368
|
import {
|
|
369
369
|
clearPlanLedgerForReset,
|
|
370
370
|
computePlanStructureHash,
|
|
@@ -380,7 +380,7 @@ import {
|
|
|
380
380
|
replayFromLedgerWithStatus,
|
|
381
381
|
resolvePlanningProfile,
|
|
382
382
|
takeSnapshotEvent
|
|
383
|
-
} from "./index-
|
|
383
|
+
} from "./index-c5wyannc.js";
|
|
384
384
|
import {
|
|
385
385
|
CORE_EVENT_LOCKED,
|
|
386
386
|
appendCoreEventSync,
|
|
@@ -390,7 +390,7 @@ import {
|
|
|
390
390
|
hasSpecDriftAuditEvent,
|
|
391
391
|
hasTaskRepairAuditEvent,
|
|
392
392
|
readCoreEvents
|
|
393
|
-
} from "./index-
|
|
393
|
+
} from "./index-9bg5vc22.js";
|
|
394
394
|
import {
|
|
395
395
|
DEFAULT_QA_GATES,
|
|
396
396
|
computeProfileHash,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
getEffectiveGates,
|
|
399
399
|
getProfileLookupForIdentity,
|
|
400
400
|
setGatesForIdentity
|
|
401
|
-
} from "./index-
|
|
401
|
+
} from "./index-31fes86t.js";
|
|
402
402
|
import {
|
|
403
403
|
MAX_COORDINATION_STATE_LIST_ROWS,
|
|
404
404
|
deleteCoordinationImports,
|
|
@@ -410,7 +410,7 @@ import {
|
|
|
410
410
|
listCoordinationStates,
|
|
411
411
|
transitionCoordinationState,
|
|
412
412
|
withCoordinationTransaction
|
|
413
|
-
} from "./index-
|
|
413
|
+
} from "./index-9p00xent.js";
|
|
414
414
|
import {
|
|
415
415
|
DURABILITY_CLASSES,
|
|
416
416
|
closeAllProjectDbs,
|
|
@@ -418,7 +418,7 @@ import {
|
|
|
418
418
|
getProjectDb,
|
|
419
419
|
projectDbExists,
|
|
420
420
|
projectDbPath
|
|
421
|
-
} from "./index-
|
|
421
|
+
} from "./index-bdqefjxg.js";
|
|
422
422
|
import {
|
|
423
423
|
loadDatabaseCtor
|
|
424
424
|
} from "./index-rdm3px0g.js";
|
|
@@ -433,7 +433,7 @@ import {
|
|
|
433
433
|
observeCuratorCompliance,
|
|
434
434
|
observeStoreHealth,
|
|
435
435
|
readLearningHealth
|
|
436
|
-
} from "./index-
|
|
436
|
+
} from "./index-gdrdtbw6.js";
|
|
437
437
|
import {
|
|
438
438
|
appendKnowledge,
|
|
439
439
|
appendRejectedLesson,
|
|
@@ -463,7 +463,7 @@ import {
|
|
|
463
463
|
transactFile,
|
|
464
464
|
transactKnowledge,
|
|
465
465
|
wordBigrams
|
|
466
|
-
} from "./index-
|
|
466
|
+
} from "./index-j8warkkj.js";
|
|
467
467
|
import {
|
|
468
468
|
readTailJsonl,
|
|
469
469
|
readTailJsonlDetailed,
|
|
@@ -484,7 +484,7 @@ import {
|
|
|
484
484
|
resolveLinkDir,
|
|
485
485
|
sanitizeLinkId,
|
|
486
486
|
writeLinkPointer
|
|
487
|
-
} from "./index-
|
|
487
|
+
} from "./index-jzrx2sx2.js";
|
|
488
488
|
import {
|
|
489
489
|
assertProjectRoot,
|
|
490
490
|
atomicWriteFile,
|
|
@@ -493,7 +493,7 @@ import {
|
|
|
493
493
|
listActiveLocks,
|
|
494
494
|
tryAcquireLock,
|
|
495
495
|
withEvidenceLock
|
|
496
|
-
} from "./index-
|
|
496
|
+
} from "./index-yf1mvexg.js";
|
|
497
497
|
import {
|
|
498
498
|
require_proper_lockfile
|
|
499
499
|
} from "./index-7g4c7s5r.js";
|
|
@@ -507,7 +507,7 @@ import {
|
|
|
507
507
|
pseudonymousRef,
|
|
508
508
|
resolveLineageSalt,
|
|
509
509
|
telemetry
|
|
510
|
-
} from "./index-
|
|
510
|
+
} from "./index-jmn35na4.js";
|
|
511
511
|
import {
|
|
512
512
|
atomicWriteSwarmFile,
|
|
513
513
|
atomicWriteSwarmFileSync,
|
|
@@ -515,7 +515,7 @@ import {
|
|
|
515
515
|
matchTempGrammar,
|
|
516
516
|
parseTargetBasename,
|
|
517
517
|
resetSwarmArtifactCache
|
|
518
|
-
} from "./index-
|
|
518
|
+
} from "./index-ws3ggk1h.js";
|
|
519
519
|
import {
|
|
520
520
|
canonicalRootKey,
|
|
521
521
|
canonicalRootKeyFresh,
|
|
@@ -532,7 +532,7 @@ import {
|
|
|
532
532
|
loadGateOverrides,
|
|
533
533
|
loadPluginConfig,
|
|
534
534
|
loadPluginConfigWithMeta
|
|
535
|
-
} from "./index-
|
|
535
|
+
} from "./index-zcjdw8dw.js";
|
|
536
536
|
import {
|
|
537
537
|
init_git_executable,
|
|
538
538
|
resolveGitExecutable,
|
|
@@ -561,7 +561,7 @@ import {
|
|
|
561
561
|
resolveAutoReviewConfig,
|
|
562
562
|
resolveGeneratedAgentRole,
|
|
563
563
|
stripKnownSwarmPrefix
|
|
564
|
-
} from "./index-
|
|
564
|
+
} from "./index-twpzfwga.js";
|
|
565
565
|
import {
|
|
566
566
|
AGENT_TOOL_MAP,
|
|
567
567
|
ALL_AGENT_NAMES,
|
|
@@ -3175,7 +3175,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3175
3175
|
return null;
|
|
3176
3176
|
throw error2;
|
|
3177
3177
|
}
|
|
3178
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3178
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-6qzpckxa.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3179
3179
|
if (!legacy)
|
|
3180
3180
|
return null;
|
|
3181
3181
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3245,7 +3245,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3245
3245
|
let recoveryState = null;
|
|
3246
3246
|
if (!currentAuthoritative) {
|
|
3247
3247
|
if (options.allowSalvagedRead) {
|
|
3248
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3248
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-6qzpckxa.js");
|
|
3249
3249
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3250
3250
|
}
|
|
3251
3251
|
if (!recoveryState) {
|
|
@@ -13988,7 +13988,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
13988
13988
|
return extracted === expectedSessionId;
|
|
13989
13989
|
}
|
|
13990
13990
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
13991
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
13991
|
+
const collisionOwnership = await import("./worktree-collision-ownership-deyrgr70.js");
|
|
13992
13992
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
13993
13993
|
}
|
|
13994
13994
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -14414,7 +14414,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
14414
14414
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
14415
14415
|
if (laneProfile) {
|
|
14416
14416
|
try {
|
|
14417
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
14417
|
+
const { writeLaneProfileToDiskReal } = await import("./core-ty98bsnz.js");
|
|
14418
14418
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
14419
14419
|
} catch {}
|
|
14420
14420
|
}
|
|
@@ -15385,7 +15385,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
15385
15385
|
}
|
|
15386
15386
|
clearWorktreeMergeStatus(statusKey);
|
|
15387
15387
|
try {
|
|
15388
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
15388
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-ty98bsnz.js");
|
|
15389
15389
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
15390
15390
|
} catch {}
|
|
15391
15391
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -21981,7 +21981,7 @@ function getDisplayFinalPromptPressure() {
|
|
|
21981
21981
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
21982
21982
|
const map = new Map;
|
|
21983
21983
|
try {
|
|
21984
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
21984
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-13xqrhwx.js");
|
|
21985
21985
|
const records = await listActive2(directory);
|
|
21986
21986
|
for (const record of records) {
|
|
21987
21987
|
if (record.sessionID !== sessionID)
|
|
@@ -38503,9 +38503,9 @@ function hashContent(content) {
|
|
|
38503
38503
|
return createHash23("sha1").update(content).digest("hex");
|
|
38504
38504
|
}
|
|
38505
38505
|
async function loadConfigForPolicyCurator(directory) {
|
|
38506
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
38506
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-a8gskpey.js");
|
|
38507
38507
|
try {
|
|
38508
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
38508
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vqs7dxp7.js");
|
|
38509
38509
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
38510
38510
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
38511
38511
|
} catch {
|
|
@@ -41563,7 +41563,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
41563
41563
|
const seam = _internals35.createCuratorLLMDelegate;
|
|
41564
41564
|
if (seam)
|
|
41565
41565
|
return seam(directory, mode, sessionId);
|
|
41566
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
41566
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-69vje2m7.js");
|
|
41567
41567
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
41568
41568
|
}
|
|
41569
41569
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -41958,7 +41958,7 @@ async function runFinalizeStage(ctx) {
|
|
|
41958
41958
|
}
|
|
41959
41959
|
}
|
|
41960
41960
|
try {
|
|
41961
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
41961
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-a8gskpey.js");
|
|
41962
41962
|
const { config: pmLoadedConfig } = _internals35.loadPluginConfigWithMeta(ctx.directory);
|
|
41963
41963
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
41964
41964
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -43792,7 +43792,7 @@ function serializeAgentSession(s) {
|
|
|
43792
43792
|
}
|
|
43793
43793
|
async function writeSnapshot(directory, state) {
|
|
43794
43794
|
try {
|
|
43795
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
43795
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-k2fgw463.js");
|
|
43796
43796
|
await ensureSnapshotCoordinationReady(directory);
|
|
43797
43797
|
const snapshot = {
|
|
43798
43798
|
version: 3,
|
|
@@ -46448,7 +46448,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
46448
46448
|
};
|
|
46449
46449
|
}
|
|
46450
46450
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
46451
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
46451
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vqs7dxp7.js");
|
|
46452
46452
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
46453
46453
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
46454
46454
|
if (sweepConfig?.enabled === false)
|
|
@@ -47572,7 +47572,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
47572
47572
|
}
|
|
47573
47573
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
47574
47574
|
try {
|
|
47575
|
-
const skillModule = await import("./skill-generator-
|
|
47575
|
+
const skillModule = await import("./skill-generator-z76whwng.js");
|
|
47576
47576
|
for (const cand of skillCandidates) {
|
|
47577
47577
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
47578
47578
|
continue;
|
|
@@ -48044,7 +48044,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
48044
48044
|
} catch {}
|
|
48045
48045
|
}
|
|
48046
48046
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
48047
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
48047
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-k4ab3f1f.js");
|
|
48048
48048
|
for (const { id } of contradictedEntries) {
|
|
48049
48049
|
try {
|
|
48050
48050
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -48876,7 +48876,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
48876
48876
|
warnings.push("Failed to collect knowledge summary.");
|
|
48877
48877
|
}
|
|
48878
48878
|
try {
|
|
48879
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
48879
|
+
const { getScanStatus } = await import("./scan-cursor-q5nycpzb.js");
|
|
48880
48880
|
const scanStatus = await getScanStatus(directory);
|
|
48881
48881
|
if (scanStatus.remaining_estimate > 0) {
|
|
48882
48882
|
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.`);
|
|
@@ -49048,9 +49048,9 @@ var _internals51 = {
|
|
|
49048
49048
|
verifyPostMortemKnowledgeActions,
|
|
49049
49049
|
repairPostMortemActions,
|
|
49050
49050
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
49051
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
49051
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-a8gskpey.js");
|
|
49052
49052
|
try {
|
|
49053
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
49053
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vqs7dxp7.js");
|
|
49054
49054
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
49055
49055
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
49056
49056
|
} catch {
|
|
@@ -49058,11 +49058,11 @@ var _internals51 = {
|
|
|
49058
49058
|
}
|
|
49059
49059
|
},
|
|
49060
49060
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
49061
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
49061
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-rvrhbsy2.js");
|
|
49062
49062
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
49063
49063
|
},
|
|
49064
49064
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
49065
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
49065
|
+
const { checkHivePromotions } = await import("./hive-promoter-mc8xssba.js");
|
|
49066
49066
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
49067
49067
|
},
|
|
49068
49068
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -49071,7 +49071,7 @@ var _internals51 = {
|
|
|
49071
49071
|
activateProposal,
|
|
49072
49072
|
listSkills: listSkills2,
|
|
49073
49073
|
sanitizeSlug
|
|
49074
|
-
} = await import("./skill-generator-
|
|
49074
|
+
} = await import("./skill-generator-z76whwng.js");
|
|
49075
49075
|
const result = {
|
|
49076
49076
|
approved: [],
|
|
49077
49077
|
rejected: [],
|
|
@@ -49113,7 +49113,7 @@ var _internals51 = {
|
|
|
49113
49113
|
return result;
|
|
49114
49114
|
},
|
|
49115
49115
|
readPriorDriftReports: async (directory) => {
|
|
49116
|
-
const { readPriorDriftReports } = await import("./curator-drift-
|
|
49116
|
+
const { readPriorDriftReports } = await import("./curator-drift-b0pbzjxv.js");
|
|
49117
49117
|
return readPriorDriftReports(directory);
|
|
49118
49118
|
},
|
|
49119
49119
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -57557,7 +57557,7 @@ function wireCloseInternals() {
|
|
|
57557
57557
|
archiveEvidence,
|
|
57558
57558
|
endAgentSession,
|
|
57559
57559
|
flushAndDrainTelemetry: async () => {
|
|
57560
|
-
const { flushAndDrainTelemetry } = await import("./telemetry-
|
|
57560
|
+
const { flushAndDrainTelemetry } = await import("./telemetry-zed80n86.js");
|
|
57561
57561
|
return flushAndDrainTelemetry();
|
|
57562
57562
|
},
|
|
57563
57563
|
finalizeContextTelemetry,
|
|
@@ -58909,9 +58909,9 @@ var _internals61 = {
|
|
|
58909
58909
|
loadPluginConfigWithMeta,
|
|
58910
58910
|
loadCuratorDeps: async () => {
|
|
58911
58911
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
58912
|
-
import("./schema-
|
|
58913
|
-
import("./curator-
|
|
58914
|
-
import("./curator-llm-factory-
|
|
58912
|
+
import("./schema-a8gskpey.js"),
|
|
58913
|
+
import("./curator-rvrhbsy2.js"),
|
|
58914
|
+
import("./curator-llm-factory-69vje2m7.js")
|
|
58915
58915
|
]);
|
|
58916
58916
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
58917
58917
|
}
|
|
@@ -60820,7 +60820,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
60820
60820
|
let scanCompleted = false;
|
|
60821
60821
|
let scanRemaining = 0;
|
|
60822
60822
|
try {
|
|
60823
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
60823
|
+
const { getScanStatus } = await import("./scan-cursor-q5nycpzb.js");
|
|
60824
60824
|
const status = await getScanStatus(directory);
|
|
60825
60825
|
scanGeneration = status.generation;
|
|
60826
60826
|
scanCompleted = status.completed;
|
|
@@ -60828,19 +60828,19 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
60828
60828
|
} catch {}
|
|
60829
60829
|
let configMatch = null;
|
|
60830
60830
|
try {
|
|
60831
|
-
const { isLinked: isLinked2 } = await import("./knowledge-link-
|
|
60831
|
+
const { isLinked: isLinked2 } = await import("./knowledge-link-51m3c09s.js");
|
|
60832
60832
|
if (isLinked2(directory)) {
|
|
60833
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
60833
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-a8gskpey.js");
|
|
60834
60834
|
let config;
|
|
60835
60835
|
try {
|
|
60836
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
60836
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vqs7dxp7.js");
|
|
60837
60837
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
60838
60838
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
60839
60839
|
} catch {
|
|
60840
60840
|
config = KnowledgeConfigSchema2.parse({});
|
|
60841
60841
|
}
|
|
60842
60842
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
60843
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
60843
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-cvjd6kz8.js");
|
|
60844
60844
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
60845
60845
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
60846
60846
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -62231,7 +62231,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
62231
62231
|
const result = runConfigDoctor(config, directory);
|
|
62232
62232
|
let output;
|
|
62233
62233
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
62234
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
62234
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-ab0ckcsc.js");
|
|
62235
62235
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
62236
62236
|
applyLossy: true
|
|
62237
62237
|
});
|
|
@@ -63185,7 +63185,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
63185
63185
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
63186
63186
|
}
|
|
63187
63187
|
async function handleEvidenceSummaryCommand(directory) {
|
|
63188
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
63188
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-wmer0c5b.js");
|
|
63189
63189
|
const artifact = await buildEvidenceSummary(directory);
|
|
63190
63190
|
if (!artifact) {
|
|
63191
63191
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -83205,7 +83205,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
83205
83205
|
}
|
|
83206
83206
|
const sdkOpts = signal ? { signal } : {};
|
|
83207
83207
|
try {
|
|
83208
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
83208
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-rhe9zbe2.js");
|
|
83209
83209
|
const createResult = await client.session.create({
|
|
83210
83210
|
...sessionId ? {
|
|
83211
83211
|
body: {
|
|
@@ -97409,7 +97409,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
|
|
|
97409
97409
|
if (!input.dispatcher) {
|
|
97410
97410
|
throw new Error("no evaluation dispatcher available (cannot run validation)");
|
|
97411
97411
|
}
|
|
97412
|
-
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-
|
|
97412
|
+
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-k2t9n662.js");
|
|
97413
97413
|
const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
|
|
97414
97414
|
const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals117.evaluateCandidateV1({
|
|
97415
97415
|
projectRoot: input.directory,
|
|
@@ -100038,7 +100038,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
100038
100038
|
async function handleHelpCommand(ctx) {
|
|
100039
100039
|
const targetCommand = ctx.args.join(" ");
|
|
100040
100040
|
if (!targetCommand) {
|
|
100041
|
-
const { buildHelpText } = await import("./index-
|
|
100041
|
+
const { buildHelpText } = await import("./index-y21gyrt6.js");
|
|
100042
100042
|
return buildHelpText();
|
|
100043
100043
|
}
|
|
100044
100044
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -100052,7 +100052,7 @@ async function handleHelpCommand(ctx) {
|
|
|
100052
100052
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
100053
100053
|
}
|
|
100054
100054
|
const similar = _internals24.findSimilarCommands(targetCommand);
|
|
100055
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
100055
|
+
const { buildHelpText: fullHelp } = await import("./index-y21gyrt6.js");
|
|
100056
100056
|
if (similar.length > 0) {
|
|
100057
100057
|
return `Command '/swarm ${targetCommand}' not found.
|
|
100058
100058
|
|
|
@@ -100367,7 +100367,7 @@ var COMMAND_REGISTRY = {
|
|
|
100367
100367
|
},
|
|
100368
100368
|
"guardrail explain": {
|
|
100369
100369
|
handler: async (ctx) => {
|
|
100370
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
100370
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-z06dyan0.js");
|
|
100371
100371
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
100372
100372
|
},
|
|
100373
100373
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -100377,7 +100377,7 @@ var COMMAND_REGISTRY = {
|
|
|
100377
100377
|
},
|
|
100378
100378
|
"guardrail reset": {
|
|
100379
100379
|
handler: async (ctx) => {
|
|
100380
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
100380
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-9wmbhwff.js");
|
|
100381
100381
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
100382
100382
|
},
|
|
100383
100383
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -100398,7 +100398,7 @@ var COMMAND_REGISTRY = {
|
|
|
100398
100398
|
},
|
|
100399
100399
|
"guardrail-log": {
|
|
100400
100400
|
handler: async (ctx) => {
|
|
100401
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
100401
|
+
const { handleGuardrailLog } = await import("./guardrail-log-bmyxcdfk.js");
|
|
100402
100402
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
100403
100403
|
},
|
|
100404
100404
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|