opencode-swarm 7.187.2 → 7.187.3
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/README.md +18 -1
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{auto-checkpoint-2xmptd5t.js → auto-checkpoint-521fehr3.js} +7 -7
- package/dist/cli/{checkpoint-2y7z19y5.js → checkpoint-czx5eken.js} +12 -12
- package/dist/cli/{coder-settlement-s4d28fa6.js → coder-settlement-skfkfgt7.js} +8 -8
- package/dist/cli/{config-doctor-312afzhr.js → config-doctor-t88fd5ra.js} +11 -11
- package/dist/cli/{core-2bywxc4w.js → core-fap9x47g.js} +1 -1
- package/dist/cli/{curation-policy-sr29thf5.js → curation-policy-e1ce7ha8.js} +5 -5
- package/dist/cli/{curator-dvhf6jex.js → curator-b7zzsv98.js} +35 -35
- package/dist/cli/{curator-drift-xx8pp4g9.js → curator-drift-ea11apaw.js} +5 -5
- package/dist/cli/{curator-llm-factory-4g2nvr76.js → curator-llm-factory-758hynyn.js} +35 -35
- package/dist/cli/{doctor-knowledge-receipt-phase-id-m239pgbz.js → doctor-knowledge-receipt-phase-id-5768wb0n.js} +6 -6
- package/dist/cli/{evidence-summary-service-9et04fjh.js → evidence-summary-service-z2yj87tn.js} +15 -15
- package/dist/cli/{gate-evidence-73vj3bgm.js → gate-evidence-m90ynftc.js} +5 -5
- package/dist/cli/{guardrail-explain-8n4fx9zv.js → guardrail-explain-y2g82gqv.js} +36 -36
- package/dist/cli/{guardrail-log-9gmfvnd7.js → guardrail-log-c50qd8sf.js} +6 -6
- package/dist/cli/{guardrail-reset-k3mrq25e.js → guardrail-reset-h7g9a90e.js} +35 -35
- package/dist/cli/{hive-promoter-bp3rz0q6.js → hive-promoter-wpcn3wyz.js} +35 -35
- package/dist/cli/{index-310h5192.js → index-02nzb100.js} +2 -2
- package/dist/cli/{index-exj7czz9.js → index-10h0jx4e.js} +4 -4
- package/dist/cli/{index-tkm2rj27.js → index-45d3vpry.js} +1 -1
- package/dist/cli/{index-m1vsqmyr.js → index-468s960k.js} +1 -1
- package/dist/cli/{index-b5tthmy2.js → index-4tmk29gc.js} +1 -1
- package/dist/cli/{index-w0bvez8c.js → index-5ktekhxk.js} +1 -1
- package/dist/cli/{index-3ckfawjf.js → index-5x8zhfsq.js} +3 -3
- package/dist/cli/{index-pqffq9mm.js → index-6551m2st.js} +2 -2
- package/dist/cli/{index-tq6sbcys.js → index-6rdajskg.js} +94 -81
- package/dist/cli/{index-v9y0230d.js → index-7ba0hdg4.js} +1 -1
- package/dist/cli/{index-z04d01pv.js → index-7fekgghd.js} +7 -7
- package/dist/cli/{index-f6pft90q.js → index-7t15ybzn.js} +3 -3
- package/dist/cli/{index-tngc1erw.js → index-a5pjm9zc.js} +2 -2
- package/dist/cli/{index-jyxgkp4a.js → index-bkcd3nwh.js} +1 -1
- package/dist/cli/{index-3y0nr248.js → index-by488z8m.js} +3 -3
- package/dist/cli/{index-9jafghwk.js → index-by7x4ty3.js} +35 -35
- package/dist/cli/{index-n55exns2.js → index-e3vbyy10.js} +1 -1
- package/dist/cli/{index-3g3n9fjq.js → index-ez4kkgcd.js} +3 -3
- package/dist/cli/{index-26zs9wsj.js → index-fk7s8btv.js} +2 -2
- package/dist/cli/{index-j5db3v56.js → index-h03j41jw.js} +4 -4
- package/dist/cli/{index-kc635w60.js → index-h7p78r0w.js} +4 -4
- package/dist/cli/{index-e9ry78z5.js → index-hrxr48p5.js} +2 -2
- package/dist/cli/{index-wpxy7099.js → index-japwz660.js} +1 -1
- package/dist/cli/{index-jh9nrshe.js → index-ksvm96bz.js} +1 -1
- package/dist/cli/{index-tmp07h7b.js → index-m3dcecc5.js} +37 -37
- package/dist/cli/{index-33345434.js → index-mdxrk3az.js} +3 -3
- package/dist/cli/{index-xs070yr9.js → index-mh3nsv7v.js} +2 -2
- package/dist/cli/{index-7fxy1s86.js → index-naxtsh2e.js} +4 -4
- package/dist/cli/{index-xv0t2sed.js → index-npkxp81s.js} +4 -4
- package/dist/cli/{index-n8kqhxay.js → index-nsvm2j4x.js} +1 -1
- package/dist/cli/{index-n45kz69m.js → index-q0am9gm3.js} +1 -1
- package/dist/cli/{index-dx6bhbd6.js → index-sec8fwf1.js} +3 -3
- package/dist/cli/{index-dqberkr3.js → index-v8ytrkrg.js} +4 -4
- package/dist/cli/{index-b308erem.js → index-w3xapqjq.js} +3 -3
- package/dist/cli/{index-efbhea00.js → index-w9p41945.js} +1 -1
- package/dist/cli/{index-rtdxyjrg.js → index-wvkbp1qr.js} +6 -6
- package/dist/cli/{index-6t7ygevg.js → index-xpj149rz.js} +1 -1
- package/dist/cli/{index-4g39nne8.js → index-yk9vs9pw.js} +2 -2
- package/dist/cli/{index-y81jjedn.js → index-zbv9t6p2.js} +6 -6
- package/dist/cli/{index-85cx1mmb.js → index-zzgv4jy6.js} +4 -4
- package/dist/cli/index.js +36 -36
- package/dist/cli/{knowledge-escalator-fnqctvxz.js → knowledge-escalator-wzsxp6yg.js} +12 -12
- package/dist/cli/{knowledge-events-mr1vh3nb.js → knowledge-events-dcchq50n.js} +10 -10
- package/dist/cli/{knowledge-link-93nzznwd.js → knowledge-link-zh9rzesj.js} +4 -4
- package/dist/cli/{knowledge-store-dxy4s9k6.js → knowledge-store-p27r8wa9.js} +5 -5
- package/dist/cli/{knowledge-validator-gy39attk.js → knowledge-validator-rmtymth5.js} +7 -7
- package/dist/cli/{mcp-bxb59wsq.js → mcp-jr1rr2zd.js} +1 -1
- package/dist/cli/{model-preflight-2kje0sp0.js → model-preflight-xzy5x4rt.js} +35 -35
- package/dist/cli/{pending-delegations-fm2nx2k0.js → pending-delegations-4k740a2c.js} +7 -7
- package/dist/cli/{pr-subscriptions-g4f9rehb.js → pr-subscriptions-515xdgjj.js} +7 -7
- package/dist/cli/{pr-workflow-gate-qtq1wq95.js → pr-workflow-gate-srpa0mds.js} +35 -35
- package/dist/cli/{runner-verr6er5.js → runner-tk1cmgzt.js} +5 -5
- package/dist/cli/{scan-cursor-8taj944f.js → scan-cursor-w89sck5y.js} +6 -6
- package/dist/cli/{schema-yxq3bjmd.js → schema-1mwgvrv7.js} +1 -1
- package/dist/cli/{scope-persistence-jppvjncr.js → scope-persistence-qen27qx7.js} +11 -11
- package/dist/cli/{server-2s7wqg9e.js → server-rhz44ye9.js} +35 -35
- package/dist/cli/{skill-generator-pyf95aqw.js → skill-generator-05mxym3d.js} +14 -14
- package/dist/cli/{snapshot-coordination-init-8gbxw9sa.js → snapshot-coordination-init-jjegs3v5.js} +35 -35
- package/dist/cli/{speckit-checkoff-x2z0jamv.js → speckit-checkoff-3m04ks95.js} +3 -3
- package/dist/cli/{telemetry-xwj899pd.js → telemetry-vwxbsnye.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-455bdcnk.js → worktree-collision-ownership-0d73y8h0.js} +7 -7
- package/dist/cli/{worktree-isolation-8x4p7tvm.js → worktree-isolation-d0vn38wb.js} +35 -35
- package/dist/index.js +7 -7
- package/dist/models/model-override-state.d.ts +24 -1
- package/dist/models/task-model-routing.d.ts +58 -1
- package/package.json +1 -1
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
protectedRoots,
|
|
9
9
|
redactDecisionLineForArchive,
|
|
10
10
|
stableCanonicalStringify
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-ez4kkgcd.js";
|
|
12
12
|
import {
|
|
13
13
|
detectStraySwarmDirs,
|
|
14
14
|
readDoctorArtifact,
|
|
15
15
|
removeStraySwarmDir,
|
|
16
16
|
resolvePlanParallelizationFlag,
|
|
17
17
|
runConfigDoctor
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-6551m2st.js";
|
|
19
19
|
import {
|
|
20
20
|
archiveEvidence,
|
|
21
21
|
checkRequirementCoverage,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
sanitizeTaskId,
|
|
28
28
|
saveEvidence,
|
|
29
29
|
validateProjectRoot
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-7t15ybzn.js";
|
|
31
31
|
import {
|
|
32
32
|
JAVA_SYMBOL_GRAMMAR,
|
|
33
33
|
LANGUAGE_REGISTRY,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
runEvaluation,
|
|
49
49
|
runExternalTool,
|
|
50
50
|
withDisposableWorktree
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-e3vbyy10.js";
|
|
52
52
|
import {
|
|
53
53
|
EvaluationTaskV1Schema,
|
|
54
54
|
GateAuditManifestV1Schema,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
saveGateAuditResult,
|
|
66
66
|
savePromotionDecision,
|
|
67
67
|
saveTaskSetSnapshot
|
|
68
|
-
} from "./index-
|
|
68
|
+
} from "./index-fk7s8btv.js";
|
|
69
69
|
import {
|
|
70
70
|
canonicalHash,
|
|
71
71
|
canonicalJson,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
alreadyCuratedThisGeneration,
|
|
82
82
|
claimNextScanBatch,
|
|
83
83
|
resolveCohortId
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-yk9vs9pw.js";
|
|
85
85
|
import {
|
|
86
86
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
87
87
|
CURATOR_INIT_PROMPT,
|
|
@@ -100,13 +100,13 @@ import {
|
|
|
100
100
|
getGroupCommitWriter,
|
|
101
101
|
importLegacyJsonl,
|
|
102
102
|
readPriorDriftReports
|
|
103
|
-
} from "./index-
|
|
103
|
+
} from "./index-45d3vpry.js";
|
|
104
104
|
import {
|
|
105
105
|
assertNoUnsettledCoderDispatch,
|
|
106
106
|
listCoderSettlementWalStates,
|
|
107
107
|
recoverCoderSettlement,
|
|
108
108
|
recoverStaleCoderSettlements
|
|
109
|
-
} from "./index-
|
|
109
|
+
} from "./index-zzgv4jy6.js";
|
|
110
110
|
import {
|
|
111
111
|
BUNDLED_PROJECT_SKILL_ROOT,
|
|
112
112
|
DEFAULT_SKILL_MIN_CONFIDENCE,
|
|
@@ -127,11 +127,11 @@ import {
|
|
|
127
127
|
retireSkill,
|
|
128
128
|
selectCandidateEntries,
|
|
129
129
|
syncBundledProjectSkillsIfMissingAsync
|
|
130
|
-
} from "./index-
|
|
130
|
+
} from "./index-5x8zhfsq.js";
|
|
131
131
|
import {
|
|
132
132
|
buildEscalationBriefing,
|
|
133
133
|
readRecentEscalations
|
|
134
|
-
} from "./index-
|
|
134
|
+
} from "./index-wvkbp1qr.js";
|
|
135
135
|
import {
|
|
136
136
|
parsePorcelainV2Snapshot,
|
|
137
137
|
resolveCommitCountSince,
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
sweepStale,
|
|
181
181
|
unsubscribe,
|
|
182
182
|
updateSnapshot
|
|
183
|
-
} from "./index-
|
|
183
|
+
} from "./index-by488z8m.js";
|
|
184
184
|
import {
|
|
185
185
|
WORKTREE_LIFECYCLE_LOCK_FILE,
|
|
186
186
|
recordWorktreeProvisioningOwner,
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
resolveWorkingDirectory,
|
|
209
209
|
swarmOverwriteCandidates,
|
|
210
210
|
trackedDirtyCandidates
|
|
211
|
-
} from "./index-
|
|
211
|
+
} from "./index-v8ytrkrg.js";
|
|
212
212
|
import {
|
|
213
213
|
MAX_TRANSIENT_RETRIES,
|
|
214
214
|
PlanRecoverySupersededError,
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
transientBackoff,
|
|
236
236
|
updateTaskStatus,
|
|
237
237
|
withPlanLifecycleLock
|
|
238
|
-
} from "./index-
|
|
238
|
+
} from "./index-7fekgghd.js";
|
|
239
239
|
import {
|
|
240
240
|
containsControlChars,
|
|
241
241
|
containsPathTraversal,
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
resolveSpeckitProjection,
|
|
252
252
|
validateSpeckit,
|
|
253
253
|
writeProjectedSpecSync
|
|
254
|
-
} from "./index-
|
|
254
|
+
} from "./index-w9p41945.js";
|
|
255
255
|
import {
|
|
256
256
|
clearWorktreeMergeStatus,
|
|
257
257
|
getAllWorktreeMergeFailures,
|
|
@@ -282,7 +282,7 @@ import {
|
|
|
282
282
|
transitionTaskWorkflowEvidenceWithStatus,
|
|
283
283
|
withTaskEvidenceTransaction,
|
|
284
284
|
writeWorkflowWalFile
|
|
285
|
-
} from "./index-
|
|
285
|
+
} from "./index-w3xapqjq.js";
|
|
286
286
|
import {
|
|
287
287
|
isPathUnderSwarmWorktreeBase,
|
|
288
288
|
listLiveLaneOwners,
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
recordLiveLaneOwner,
|
|
292
292
|
removeWorktree,
|
|
293
293
|
resolveWorktreeBaseDir
|
|
294
|
-
} from "./index-
|
|
294
|
+
} from "./index-ksvm96bz.js";
|
|
295
295
|
import {
|
|
296
296
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
297
297
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -325,7 +325,7 @@ import {
|
|
|
325
325
|
scanBackgroundCoderReservationsForAdmission,
|
|
326
326
|
scanDelegationsForRecovery,
|
|
327
327
|
sweepStaleDelegations
|
|
328
|
-
} from "./index-
|
|
328
|
+
} from "./index-10h0jx4e.js";
|
|
329
329
|
import {
|
|
330
330
|
MAX_EVENT_LOG_ENTRIES,
|
|
331
331
|
_internals,
|
|
@@ -337,7 +337,7 @@ import {
|
|
|
337
337
|
recordHiveKnowledgeEvent,
|
|
338
338
|
recordKnowledgeEvent,
|
|
339
339
|
resolveKnowledgeEventsPath
|
|
340
|
-
} from "./index-
|
|
340
|
+
} from "./index-h7p78r0w.js";
|
|
341
341
|
import {
|
|
342
342
|
commitDisplayedMembership,
|
|
343
343
|
commitEmptyRetrieval,
|
|
@@ -350,7 +350,7 @@ import {
|
|
|
350
350
|
queryLiveMemberships,
|
|
351
351
|
reconcilePhaseClose,
|
|
352
352
|
recordPhaseCloseIntent
|
|
353
|
-
} from "./index-
|
|
353
|
+
} from "./index-h03j41jw.js";
|
|
354
354
|
import {
|
|
355
355
|
sanitizeContextText
|
|
356
356
|
} from "./index-m9zzj4ee.js";
|
|
@@ -381,18 +381,18 @@ import {
|
|
|
381
381
|
validateActionableFields,
|
|
382
382
|
validateLesson,
|
|
383
383
|
validateSkillPath
|
|
384
|
-
} from "./index-
|
|
384
|
+
} from "./index-npkxp81s.js";
|
|
385
385
|
import {
|
|
386
386
|
MAX_CURATION_PROPOSALS,
|
|
387
387
|
authorizeCuration,
|
|
388
388
|
buildConfigFingerprintInput
|
|
389
|
-
} from "./index-
|
|
389
|
+
} from "./index-nsvm2j4x.js";
|
|
390
390
|
import {
|
|
391
391
|
cohortConfigFingerprint
|
|
392
392
|
} from "./index-rtry5xyf.js";
|
|
393
393
|
import {
|
|
394
394
|
resolveWorktreeIsolationConfig
|
|
395
|
-
} from "./index-
|
|
395
|
+
} from "./index-a5pjm9zc.js";
|
|
396
396
|
import {
|
|
397
397
|
RetrospectiveEvidenceSchema
|
|
398
398
|
} from "./index-kbkk7vnh.js";
|
|
@@ -404,7 +404,7 @@ import {
|
|
|
404
404
|
clearScopeBindings,
|
|
405
405
|
readAuthoritativeScopeBindingSet,
|
|
406
406
|
readDeclaredScopeFilesFromBindings
|
|
407
|
-
} from "./index-
|
|
407
|
+
} from "./index-02nzb100.js";
|
|
408
408
|
import {
|
|
409
409
|
clearPlanLedgerForReset,
|
|
410
410
|
computePlanStructureHash,
|
|
@@ -420,7 +420,7 @@ import {
|
|
|
420
420
|
replayFromLedgerWithStatus,
|
|
421
421
|
resolvePlanningProfile,
|
|
422
422
|
takeSnapshotEvent
|
|
423
|
-
} from "./index-
|
|
423
|
+
} from "./index-naxtsh2e.js";
|
|
424
424
|
import {
|
|
425
425
|
CORE_EVENT_LOCKED,
|
|
426
426
|
appendCoreEventSync,
|
|
@@ -430,7 +430,7 @@ import {
|
|
|
430
430
|
hasSpecDriftAuditEvent,
|
|
431
431
|
hasTaskRepairAuditEvent,
|
|
432
432
|
readCoreEvents
|
|
433
|
-
} from "./index-
|
|
433
|
+
} from "./index-hrxr48p5.js";
|
|
434
434
|
import {
|
|
435
435
|
DEFAULT_QA_GATES,
|
|
436
436
|
computeProfileHash,
|
|
@@ -478,7 +478,7 @@ import {
|
|
|
478
478
|
observeModelLimitResolution,
|
|
479
479
|
observeStoreHealth,
|
|
480
480
|
readLearningHealth
|
|
481
|
-
} from "./index-
|
|
481
|
+
} from "./index-7ba0hdg4.js";
|
|
482
482
|
import {
|
|
483
483
|
appendKnowledge,
|
|
484
484
|
appendRejectedLesson,
|
|
@@ -509,7 +509,7 @@ import {
|
|
|
509
509
|
transactFile,
|
|
510
510
|
transactKnowledge,
|
|
511
511
|
wordBigrams
|
|
512
|
-
} from "./index-
|
|
512
|
+
} from "./index-zbv9t6p2.js";
|
|
513
513
|
import {
|
|
514
514
|
readTailJsonl,
|
|
515
515
|
readTailJsonlDetailed,
|
|
@@ -530,13 +530,13 @@ import {
|
|
|
530
530
|
resolveLinkDir,
|
|
531
531
|
sanitizeLinkId,
|
|
532
532
|
writeLinkPointer
|
|
533
|
-
} from "./index-
|
|
533
|
+
} from "./index-q0am9gm3.js";
|
|
534
534
|
import {
|
|
535
535
|
atomicWriteFile
|
|
536
|
-
} from "./index-
|
|
536
|
+
} from "./index-xpj149rz.js";
|
|
537
537
|
import {
|
|
538
538
|
withEvidenceLock
|
|
539
|
-
} from "./index-
|
|
539
|
+
} from "./index-bkcd3nwh.js";
|
|
540
540
|
import {
|
|
541
541
|
assertProjectRoot
|
|
542
542
|
} from "./index-t7hmqgjy.js";
|
|
@@ -550,7 +550,7 @@ import {
|
|
|
550
550
|
pseudonymousRef,
|
|
551
551
|
resolveLineageSalt,
|
|
552
552
|
telemetry
|
|
553
|
-
} from "./index-
|
|
553
|
+
} from "./index-sec8fwf1.js";
|
|
554
554
|
import {
|
|
555
555
|
SESSION_KEY_SEPARATOR,
|
|
556
556
|
canonicalRootKey,
|
|
@@ -590,7 +590,7 @@ import {
|
|
|
590
590
|
loadGateOverrides,
|
|
591
591
|
loadPluginConfig,
|
|
592
592
|
loadPluginConfigWithMeta
|
|
593
|
-
} from "./index-
|
|
593
|
+
} from "./index-5ktekhxk.js";
|
|
594
594
|
import {
|
|
595
595
|
addDeferredWarning,
|
|
596
596
|
advisoryWarn,
|
|
@@ -622,7 +622,7 @@ import {
|
|
|
622
622
|
resolveContextWindow,
|
|
623
623
|
resolveGeneratedAgentRole,
|
|
624
624
|
stripKnownSwarmPrefix
|
|
625
|
-
} from "./index-
|
|
625
|
+
} from "./index-4tmk29gc.js";
|
|
626
626
|
import {
|
|
627
627
|
AGENT_TOOL_MAP,
|
|
628
628
|
ALL_AGENT_NAMES,
|
|
@@ -3411,7 +3411,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3411
3411
|
return null;
|
|
3412
3412
|
throw error2;
|
|
3413
3413
|
}
|
|
3414
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3414
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-srpa0mds.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3415
3415
|
if (!legacy)
|
|
3416
3416
|
return null;
|
|
3417
3417
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3498,7 +3498,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3498
3498
|
let recoveryState = null;
|
|
3499
3499
|
if (!currentAuthoritative) {
|
|
3500
3500
|
if (options.allowSalvagedRead) {
|
|
3501
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3501
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-srpa0mds.js");
|
|
3502
3502
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3503
3503
|
}
|
|
3504
3504
|
if (!recoveryState) {
|
|
@@ -15071,7 +15071,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
15071
15071
|
return extracted === expectedSessionId;
|
|
15072
15072
|
}
|
|
15073
15073
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
15074
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
15074
|
+
const collisionOwnership = await import("./worktree-collision-ownership-0d73y8h0.js");
|
|
15075
15075
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
15076
15076
|
}
|
|
15077
15077
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -15497,7 +15497,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
15497
15497
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
15498
15498
|
if (laneProfile) {
|
|
15499
15499
|
try {
|
|
15500
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
15500
|
+
const { writeLaneProfileToDiskReal } = await import("./core-fap9x47g.js");
|
|
15501
15501
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
15502
15502
|
} catch {}
|
|
15503
15503
|
}
|
|
@@ -16476,7 +16476,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
16476
16476
|
}
|
|
16477
16477
|
clearWorktreeMergeStatus(statusKey);
|
|
16478
16478
|
try {
|
|
16479
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
16479
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-fap9x47g.js");
|
|
16480
16480
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
16481
16481
|
} catch {}
|
|
16482
16482
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -22236,12 +22236,18 @@ function resetScopedModelSelection(scope, expectedGeneration) {
|
|
|
22236
22236
|
}
|
|
22237
22237
|
return scopedModelOverrides.delete(key);
|
|
22238
22238
|
}
|
|
22239
|
-
function clearScopedModelSelectionsForSession(sessionID) {
|
|
22239
|
+
function clearScopedModelSelectionsForSession(sessionID, opts) {
|
|
22240
22240
|
const normalizedSessionID = normalizeText(sessionID);
|
|
22241
|
+
const primaryScopes = opts?.primaryScopes ?? true;
|
|
22241
22242
|
for (const [key, entry] of scopedModelOverrides) {
|
|
22242
|
-
if (key.startsWith(`${normalizedSessionID}\u241F`))
|
|
22243
|
-
|
|
22243
|
+
if (!key.startsWith(`${normalizedSessionID}\u241F`))
|
|
22244
|
+
continue;
|
|
22245
|
+
if (!primaryScopes) {
|
|
22246
|
+
const invocationID = key.split("\u241F")[1] ?? "";
|
|
22247
|
+
if (invocationID === "")
|
|
22248
|
+
continue;
|
|
22244
22249
|
}
|
|
22250
|
+
scopedModelOverrides.delete(entry.key);
|
|
22245
22251
|
}
|
|
22246
22252
|
}
|
|
22247
22253
|
function getScopedModelSelectionSnapshot() {
|
|
@@ -22266,12 +22272,13 @@ function resetScopedModelSelectionStateForTests() {
|
|
|
22266
22272
|
|
|
22267
22273
|
// src/models/task-model-routing.ts
|
|
22268
22274
|
var PENDING_TASK_MODEL_ROUTE_TTL_MS = 30 * 60000;
|
|
22275
|
+
var sessionChatAgentBySession = new Map;
|
|
22269
22276
|
var routesByParentCall = new Map;
|
|
22270
22277
|
var routeKeyByChildSession = new Map;
|
|
22271
22278
|
function normalizeText2(value) {
|
|
22272
22279
|
return value?.trim() ?? "";
|
|
22273
22280
|
}
|
|
22274
|
-
function clearPendingTaskModelRoutesForSession(sessionID) {
|
|
22281
|
+
function clearPendingTaskModelRoutesForSession(sessionID, mode = "session") {
|
|
22275
22282
|
const normalizedSessionID = normalizeText2(sessionID);
|
|
22276
22283
|
for (const [key, route] of routesByParentCall) {
|
|
22277
22284
|
if (route.parentSessionID === normalizedSessionID || route.childSessionID === normalizedSessionID) {
|
|
@@ -22281,7 +22288,12 @@ function clearPendingTaskModelRoutesForSession(sessionID) {
|
|
|
22281
22288
|
}
|
|
22282
22289
|
}
|
|
22283
22290
|
}
|
|
22284
|
-
clearScopedModelSelectionsForSession(normalizedSessionID
|
|
22291
|
+
clearScopedModelSelectionsForSession(normalizedSessionID, {
|
|
22292
|
+
primaryScopes: mode === "session"
|
|
22293
|
+
});
|
|
22294
|
+
if (mode === "session") {
|
|
22295
|
+
sessionChatAgentBySession.delete(normalizedSessionID);
|
|
22296
|
+
}
|
|
22285
22297
|
}
|
|
22286
22298
|
function getPendingTaskModelRouteSnapshot() {
|
|
22287
22299
|
return [...routesByParentCall.values()].map((route) => ({ ...route }));
|
|
@@ -22295,6 +22307,7 @@ function getTaskModelRoutingStateSnapshot() {
|
|
|
22295
22307
|
function clearAllTaskModelRoutingState() {
|
|
22296
22308
|
routesByParentCall.clear();
|
|
22297
22309
|
routeKeyByChildSession.clear();
|
|
22310
|
+
sessionChatAgentBySession.clear();
|
|
22298
22311
|
resetScopedModelSelectionStateForTests();
|
|
22299
22312
|
}
|
|
22300
22313
|
|
|
@@ -23494,7 +23507,7 @@ function beginInvocation(sessionId, agentName) {
|
|
|
23494
23507
|
const lastId = session.lastInvocationIdByAgent[stripped] || 0;
|
|
23495
23508
|
if (lastId > 0) {
|
|
23496
23509
|
clearInvocationActionCircuits(sessionId, lastId);
|
|
23497
|
-
clearPendingTaskModelRoutesForSession(sessionId);
|
|
23510
|
+
clearPendingTaskModelRoutesForSession(sessionId, "invocation");
|
|
23498
23511
|
}
|
|
23499
23512
|
const newId = lastId + 1;
|
|
23500
23513
|
session.lastInvocationIdByAgent[stripped] = newId;
|
|
@@ -24030,7 +24043,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
24030
24043
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
24031
24044
|
const map = new Map;
|
|
24032
24045
|
try {
|
|
24033
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
24046
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-515xdgjj.js");
|
|
24034
24047
|
const records = await listActive2(directory);
|
|
24035
24048
|
for (const record of records) {
|
|
24036
24049
|
if (record.sessionID !== sessionID)
|
|
@@ -40538,9 +40551,9 @@ function hashContent(content) {
|
|
|
40538
40551
|
return createHash27("sha1").update(content).digest("hex");
|
|
40539
40552
|
}
|
|
40540
40553
|
async function loadConfigForPolicyCurator(directory) {
|
|
40541
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
40554
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-1mwgvrv7.js");
|
|
40542
40555
|
try {
|
|
40543
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
40556
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mdxrk3az.js");
|
|
40544
40557
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
40545
40558
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
40546
40559
|
} catch {
|
|
@@ -43598,7 +43611,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
43598
43611
|
const seam = _internals38.createCuratorLLMDelegate;
|
|
43599
43612
|
if (seam)
|
|
43600
43613
|
return seam(directory, mode, sessionId);
|
|
43601
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
43614
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-758hynyn.js");
|
|
43602
43615
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
43603
43616
|
}
|
|
43604
43617
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -43993,7 +44006,7 @@ async function runFinalizeStage(ctx) {
|
|
|
43993
44006
|
}
|
|
43994
44007
|
}
|
|
43995
44008
|
try {
|
|
43996
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
44009
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-1mwgvrv7.js");
|
|
43997
44010
|
const { config: pmLoadedConfig } = _internals38.loadPluginConfigWithMeta(ctx.directory);
|
|
43998
44011
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
43999
44012
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -46179,7 +46192,7 @@ function serializeAgentSession(s) {
|
|
|
46179
46192
|
}
|
|
46180
46193
|
async function writeSnapshot(directory, state) {
|
|
46181
46194
|
try {
|
|
46182
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
46195
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-jjegs3v5.js");
|
|
46183
46196
|
await ensureSnapshotCoordinationReady(directory);
|
|
46184
46197
|
const snapshot = {
|
|
46185
46198
|
version: 3,
|
|
@@ -49195,7 +49208,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
49195
49208
|
};
|
|
49196
49209
|
}
|
|
49197
49210
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
49198
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
49211
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mdxrk3az.js");
|
|
49199
49212
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
49200
49213
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
49201
49214
|
if (sweepConfig?.enabled === false)
|
|
@@ -50319,7 +50332,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
50319
50332
|
}
|
|
50320
50333
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
50321
50334
|
try {
|
|
50322
|
-
const skillModule = await import("./skill-generator-
|
|
50335
|
+
const skillModule = await import("./skill-generator-05mxym3d.js");
|
|
50323
50336
|
for (const cand of skillCandidates) {
|
|
50324
50337
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
50325
50338
|
continue;
|
|
@@ -50791,7 +50804,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
50791
50804
|
} catch {}
|
|
50792
50805
|
}
|
|
50793
50806
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
50794
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
50807
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-wzsxp6yg.js");
|
|
50795
50808
|
for (const { id } of contradictedEntries) {
|
|
50796
50809
|
try {
|
|
50797
50810
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -51623,7 +51636,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
51623
51636
|
warnings.push("Failed to collect knowledge summary.");
|
|
51624
51637
|
}
|
|
51625
51638
|
try {
|
|
51626
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
51639
|
+
const { getScanStatus } = await import("./scan-cursor-w89sck5y.js");
|
|
51627
51640
|
const scanStatus = await getScanStatus(directory);
|
|
51628
51641
|
if (scanStatus.remaining_estimate > 0) {
|
|
51629
51642
|
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.`);
|
|
@@ -51795,9 +51808,9 @@ var _internals56 = {
|
|
|
51795
51808
|
verifyPostMortemKnowledgeActions,
|
|
51796
51809
|
repairPostMortemActions,
|
|
51797
51810
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
51798
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
51811
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-1mwgvrv7.js");
|
|
51799
51812
|
try {
|
|
51800
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
51813
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mdxrk3az.js");
|
|
51801
51814
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
51802
51815
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
51803
51816
|
} catch {
|
|
@@ -51805,11 +51818,11 @@ var _internals56 = {
|
|
|
51805
51818
|
}
|
|
51806
51819
|
},
|
|
51807
51820
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
51808
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
51821
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-b7zzsv98.js");
|
|
51809
51822
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
51810
51823
|
},
|
|
51811
51824
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
51812
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
51825
|
+
const { checkHivePromotions } = await import("./hive-promoter-wpcn3wyz.js");
|
|
51813
51826
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
51814
51827
|
},
|
|
51815
51828
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -51818,7 +51831,7 @@ var _internals56 = {
|
|
|
51818
51831
|
activateProposal,
|
|
51819
51832
|
listSkills: listSkills2,
|
|
51820
51833
|
sanitizeSlug
|
|
51821
|
-
} = await import("./skill-generator-
|
|
51834
|
+
} = await import("./skill-generator-05mxym3d.js");
|
|
51822
51835
|
const result = {
|
|
51823
51836
|
approved: [],
|
|
51824
51837
|
rejected: [],
|
|
@@ -51860,7 +51873,7 @@ var _internals56 = {
|
|
|
51860
51873
|
return result;
|
|
51861
51874
|
},
|
|
51862
51875
|
readPriorDriftReports: async (directory) => {
|
|
51863
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
51876
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-ea11apaw.js");
|
|
51864
51877
|
return readPriorDriftReports2(directory);
|
|
51865
51878
|
},
|
|
51866
51879
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -60304,7 +60317,7 @@ function wireCloseInternals() {
|
|
|
60304
60317
|
archiveEvidence,
|
|
60305
60318
|
endAgentSession,
|
|
60306
60319
|
flushAndDrainTelemetry: async () => {
|
|
60307
|
-
const { flushAndDrainTelemetry } = await import("./telemetry-
|
|
60320
|
+
const { flushAndDrainTelemetry } = await import("./telemetry-vwxbsnye.js");
|
|
60308
60321
|
return flushAndDrainTelemetry();
|
|
60309
60322
|
},
|
|
60310
60323
|
finalizeContextTelemetry,
|
|
@@ -61663,9 +61676,9 @@ var _internals66 = {
|
|
|
61663
61676
|
loadPluginConfigWithMeta,
|
|
61664
61677
|
loadCuratorDeps: async () => {
|
|
61665
61678
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
61666
|
-
import("./schema-
|
|
61667
|
-
import("./curator-
|
|
61668
|
-
import("./curator-llm-factory-
|
|
61679
|
+
import("./schema-1mwgvrv7.js"),
|
|
61680
|
+
import("./curator-b7zzsv98.js"),
|
|
61681
|
+
import("./curator-llm-factory-758hynyn.js")
|
|
61669
61682
|
]);
|
|
61670
61683
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
61671
61684
|
}
|
|
@@ -64063,7 +64076,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64063
64076
|
let scanCompleted = false;
|
|
64064
64077
|
let scanRemaining = 0;
|
|
64065
64078
|
try {
|
|
64066
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
64079
|
+
const { getScanStatus } = await import("./scan-cursor-w89sck5y.js");
|
|
64067
64080
|
const status = await getScanStatus(directory);
|
|
64068
64081
|
scanGeneration = status.generation;
|
|
64069
64082
|
scanCompleted = status.completed;
|
|
@@ -64071,19 +64084,19 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64071
64084
|
} catch {}
|
|
64072
64085
|
let configMatch = null;
|
|
64073
64086
|
try {
|
|
64074
|
-
const { isLinked: isLinked2 } = await import("./knowledge-link-
|
|
64087
|
+
const { isLinked: isLinked2 } = await import("./knowledge-link-zh9rzesj.js");
|
|
64075
64088
|
if (isLinked2(directory)) {
|
|
64076
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
64089
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-1mwgvrv7.js");
|
|
64077
64090
|
let config;
|
|
64078
64091
|
try {
|
|
64079
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
64092
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mdxrk3az.js");
|
|
64080
64093
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
64081
64094
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
64082
64095
|
} catch {
|
|
64083
64096
|
config = KnowledgeConfigSchema2.parse({});
|
|
64084
64097
|
}
|
|
64085
64098
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
64086
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
64099
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-e1ce7ha8.js");
|
|
64087
64100
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
64088
64101
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
64089
64102
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -65532,7 +65545,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65532
65545
|
const result = runConfigDoctor(config, directory, planParallelizationEnabled);
|
|
65533
65546
|
let output;
|
|
65534
65547
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
65535
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
65548
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-t88fd5ra.js");
|
|
65536
65549
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
65537
65550
|
applyLossy: true
|
|
65538
65551
|
});
|
|
@@ -65570,7 +65583,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65570
65583
|
`;
|
|
65571
65584
|
}
|
|
65572
65585
|
try {
|
|
65573
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
65586
|
+
const { runModelPreflight } = await import("./model-preflight-xzy5x4rt.js");
|
|
65574
65587
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
65575
65588
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
65576
65589
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -65604,7 +65617,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65604
65617
|
}
|
|
65605
65618
|
} catch {}
|
|
65606
65619
|
try {
|
|
65607
|
-
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-
|
|
65620
|
+
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-5768wb0n.js");
|
|
65608
65621
|
output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
|
|
65609
65622
|
} catch {}
|
|
65610
65623
|
const strayDirs = detectStraySwarmDirs(directory);
|
|
@@ -66501,7 +66514,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
66501
66514
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
66502
66515
|
}
|
|
66503
66516
|
async function handleEvidenceSummaryCommand(directory) {
|
|
66504
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
66517
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-z2yj87tn.js");
|
|
66505
66518
|
const artifact = await buildEvidenceSummary(directory);
|
|
66506
66519
|
if (!artifact) {
|
|
66507
66520
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -90952,7 +90965,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
90952
90965
|
}
|
|
90953
90966
|
const sdkOpts = signal ? { signal } : {};
|
|
90954
90967
|
try {
|
|
90955
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
90968
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-by7x4ty3.js");
|
|
90956
90969
|
const createResult = await client.session.create({
|
|
90957
90970
|
...sessionId ? {
|
|
90958
90971
|
body: {
|
|
@@ -93289,7 +93302,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
|
|
|
93289
93302
|
clearedEvents: []
|
|
93290
93303
|
};
|
|
93291
93304
|
try {
|
|
93292
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
93305
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-srpa0mds.js");
|
|
93293
93306
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
93294
93307
|
} catch (err) {
|
|
93295
93308
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -107030,7 +107043,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
|
|
|
107030
107043
|
if (!input.dispatcher) {
|
|
107031
107044
|
throw new Error("no evaluation dispatcher available (cannot run validation)");
|
|
107032
107045
|
}
|
|
107033
|
-
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-
|
|
107046
|
+
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-tk1cmgzt.js");
|
|
107034
107047
|
const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
|
|
107035
107048
|
const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals128.evaluateCandidateV1({
|
|
107036
107049
|
projectRoot: input.directory,
|
|
@@ -109659,7 +109672,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
109659
109672
|
async function handleHelpCommand(ctx) {
|
|
109660
109673
|
const targetCommand = ctx.args.join(" ");
|
|
109661
109674
|
if (!targetCommand) {
|
|
109662
|
-
const { buildHelpText } = await import("./index-
|
|
109675
|
+
const { buildHelpText } = await import("./index-m3dcecc5.js");
|
|
109663
109676
|
return buildHelpText();
|
|
109664
109677
|
}
|
|
109665
109678
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -109673,7 +109686,7 @@ async function handleHelpCommand(ctx) {
|
|
|
109673
109686
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
109674
109687
|
}
|
|
109675
109688
|
const similar = _internals27.findSimilarCommands(targetCommand);
|
|
109676
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
109689
|
+
const { buildHelpText: fullHelp } = await import("./index-m3dcecc5.js");
|
|
109677
109690
|
if (similar.length > 0) {
|
|
109678
109691
|
return `Command '/swarm ${targetCommand}' not found.
|
|
109679
109692
|
|
|
@@ -110001,7 +110014,7 @@ var COMMAND_REGISTRY = {
|
|
|
110001
110014
|
},
|
|
110002
110015
|
"guardrail explain": {
|
|
110003
110016
|
handler: async (ctx) => {
|
|
110004
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
110017
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-y2g82gqv.js");
|
|
110005
110018
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
110006
110019
|
},
|
|
110007
110020
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -110011,7 +110024,7 @@ var COMMAND_REGISTRY = {
|
|
|
110011
110024
|
},
|
|
110012
110025
|
"guardrail reset": {
|
|
110013
110026
|
handler: async (ctx) => {
|
|
110014
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
110027
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-h7g9a90e.js");
|
|
110015
110028
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
110016
110029
|
},
|
|
110017
110030
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -110032,7 +110045,7 @@ var COMMAND_REGISTRY = {
|
|
|
110032
110045
|
},
|
|
110033
110046
|
"guardrail-log": {
|
|
110034
110047
|
handler: async (ctx) => {
|
|
110035
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
110048
|
+
const { handleGuardrailLog } = await import("./guardrail-log-c50qd8sf.js");
|
|
110036
110049
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
110037
110050
|
},
|
|
110038
110051
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|