opencode-swarm 7.186.2 → 7.186.4
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/{auto-checkpoint-c7ykm2vt.js → auto-checkpoint-3fsd5nhp.js} +7 -7
- package/dist/cli/{checkpoint-jafvsq23.js → checkpoint-cnt2zfc4.js} +12 -12
- package/dist/cli/{coder-settlement-n00djebn.js → coder-settlement-h9t6anbr.js} +8 -8
- package/dist/cli/{config-doctor-17yft6hp.js → config-doctor-7vewvger.js} +2 -2
- package/dist/cli/{core-trk38w53.js → core-azfp090f.js} +1 -1
- package/dist/cli/{curation-policy-1zdsb3h0.js → curation-policy-3dvythny.js} +5 -5
- package/dist/cli/{curator-yvp2e7tk.js → curator-6347y33h.js} +34 -34
- package/dist/cli/{curator-drift-b6cjgsq3.js → curator-drift-rsh7k3vj.js} +5 -5
- package/dist/cli/{curator-llm-factory-a1hy89ea.js → curator-llm-factory-bvazaeax.js} +34 -34
- package/dist/cli/{evidence-summary-service-9vh0t896.js → evidence-summary-service-71g302wy.js} +15 -15
- package/dist/cli/{gate-evidence-tbjsm6r8.js → gate-evidence-zfj7q5f7.js} +5 -5
- package/dist/cli/{guardrail-explain-a16eabym.js → guardrail-explain-mfgjbr2t.js} +35 -35
- package/dist/cli/{guardrail-log-4kj5e7da.js → guardrail-log-j0afxr5d.js} +6 -6
- package/dist/cli/{guardrail-reset-fstvd42q.js → guardrail-reset-mqv4chxa.js} +34 -34
- package/dist/cli/{hive-promoter-68prvn82.js → hive-promoter-5t3xhvf5.js} +34 -34
- package/dist/cli/{index-y8prb5a1.js → index-02fema92.js} +3 -3
- package/dist/cli/{index-tnt9dnvm.js → index-02stsgw6.js} +4 -4
- package/dist/cli/{index-8r96zar7.js → index-0ab8x2nj.js} +1 -1
- package/dist/cli/{index-w3fyzw3s.js → index-0tccxc8m.js} +1 -1
- package/dist/cli/{index-k3gz8b6j.js → index-1cdkdha7.js} +4 -4
- package/dist/cli/{index-5cybjkj0.js → index-2mtbc0wz.js} +1 -1
- package/dist/cli/{index-4tpwp24b.js → index-4dkmehar.js} +1 -1
- package/dist/cli/{index-n8aep8en.js → index-5mh1638n.js} +4 -4
- package/dist/cli/{index-kbcx6rqh.js → index-743kwz1r.js} +2 -2
- package/dist/cli/{index-d7kz64yr.js → index-7fk8zcnj.js} +1 -1
- package/dist/cli/{index-qd5pnbz9.js → index-8fhczdja.js} +7 -7
- package/dist/cli/{index-h8pb617g.js → index-8jhpedx9.js} +2 -2
- package/dist/cli/{index-cbpggzdm.js → index-8y9p665v.js} +1 -1
- package/dist/cli/{index-nq6evkky.js → index-92hcbz8j.js} +3 -3
- package/dist/cli/{index-8n2emawn.js → index-bb2myjge.js} +2 -2
- package/dist/cli/{index-g23nwtfq.js → index-dg39ea2t.js} +2 -2
- package/dist/cli/{index-3w0v6n9x.js → index-f2nbkpsd.js} +5 -5
- package/dist/cli/{index-sqksezk4.js → index-h9gkgwn6.js} +1 -1
- package/dist/cli/{index-s5ek7jdr.js → index-htwb6znd.js} +7 -7
- package/dist/cli/{index-98hksf1k.js → index-j0j82th1.js} +1 -1
- package/dist/cli/{index-a07nc99k.js → index-j3j3xknh.js} +3 -3
- package/dist/cli/{index-js4spqjf.js → index-m47nt45k.js} +4 -4
- package/dist/cli/{index-8ehsv9yw.js → index-m9xhje7p.js} +1 -1
- package/dist/cli/{index-hdeqj1k4.js → index-mcvp13x7.js} +1 -1
- package/dist/cli/{index-y9wsfekf.js → index-mr86ywsj.js} +1 -1
- package/dist/cli/{index-27yspj61.js → index-ne82w55j.js} +6 -6
- package/dist/cli/{index-mqc6phah.js → index-nkr29v6k.js} +3 -3
- package/dist/cli/{index-f2mtzrsr.js → index-p3tkx10s.js} +4 -4
- package/dist/cli/{index-msejg9hk.js → index-qt6101j8.js} +1 -1
- package/dist/cli/{index-pppczpa6.js → index-scasxhsf.js} +34 -34
- package/dist/cli/{index-3h80xyek.js → index-sev04gtf.js} +2 -2
- package/dist/cli/{index-1m3502g5.js → index-tq8f6ar8.js} +3 -3
- package/dist/cli/{index-b58k1wy8.js → index-tynapn5c.js} +85 -86
- package/dist/cli/{index-5qbm61fh.js → index-v2b00xgq.js} +1 -1
- package/dist/cli/{index-70m4cxys.js → index-vacbzrma.js} +1 -1
- package/dist/cli/{index-1f7mkb7p.js → index-xdjwefa5.js} +43 -43
- package/dist/cli/{index-52s3tsmj.js → index-xdtt2xxx.js} +2 -2
- package/dist/cli/{index-fxvthwwk.js → index-xn3axfb7.js} +36 -36
- package/dist/cli/{index-g7rp7200.js → index-ys4888ae.js} +3 -3
- package/dist/cli/index.js +35 -35
- package/dist/cli/{knowledge-escalator-7xdvw9qy.js → knowledge-escalator-d51hm9bf.js} +11 -11
- package/dist/cli/{knowledge-events-hp5yr9dm.js → knowledge-events-7n6fq6ga.js} +9 -9
- package/dist/cli/{knowledge-link-5jhded41.js → knowledge-link-xwn2ww1d.js} +4 -4
- package/dist/cli/{knowledge-store-7erepd4t.js → knowledge-store-5yq3dr0w.js} +5 -5
- package/dist/cli/{knowledge-validator-ejdh74qq.js → knowledge-validator-snb5k0t7.js} +7 -7
- package/dist/cli/{mcp-msrbe1bx.js → mcp-85386zbc.js} +1 -1
- package/dist/cli/{model-preflight-gsesc142.js → model-preflight-bjcm13dz.js} +34 -34
- package/dist/cli/{pending-delegations-97pcsaak.js → pending-delegations-gajb3g07.js} +7 -7
- package/dist/cli/{pr-subscriptions-p0dm693y.js → pr-subscriptions-5nxh5d6n.js} +7 -7
- package/dist/cli/{pr-workflow-gate-y122hbd1.js → pr-workflow-gate-2ky49yr6.js} +34 -34
- package/dist/cli/{runner-fbmancth.js → runner-mfxyvzv5.js} +5 -5
- package/dist/cli/{scan-cursor-yp2kvnjz.js → scan-cursor-44kwkvzz.js} +6 -6
- package/dist/cli/{schema-0jatfw66.js → schema-f8rw7sep.js} +1 -1
- package/dist/cli/{scope-persistence-hqw7br2s.js → scope-persistence-90yg8kfc.js} +11 -11
- package/dist/cli/{server-kyqq4pan.js → server-x5aaqtfp.js} +34 -34
- package/dist/cli/{skill-generator-0hbmdy2p.js → skill-generator-5dytd2v5.js} +13 -13
- package/dist/cli/{snapshot-coordination-init-akt1wad4.js → snapshot-coordination-init-16g8rnk9.js} +34 -34
- package/dist/cli/{speckit-checkoff-rnfy30qb.js → speckit-checkoff-s06hxcsr.js} +3 -3
- package/dist/cli/{telemetry-3bjvjbcp.js → telemetry-rb8hrvbx.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-q4604rmc.js → worktree-collision-ownership-rfspbxph.js} +7 -7
- package/dist/cli/{worktree-isolation-5bafpzf9.js → worktree-isolation-1bzyww4e.js} +34 -34
- package/dist/hooks/diff-scope.d.ts +24 -1
- package/dist/index.js +14 -14
- package/dist/services/cost-accounting.d.ts +2 -0
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
protectedRoots,
|
|
9
9
|
redactDecisionLineForArchive,
|
|
10
10
|
stableCanonicalStringify
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-02fema92.js";
|
|
12
12
|
import {
|
|
13
13
|
detectStraySwarmDirs,
|
|
14
14
|
readDoctorArtifact,
|
|
15
15
|
removeStraySwarmDir,
|
|
16
16
|
runConfigDoctor
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-0ab8x2nj.js";
|
|
18
18
|
import {
|
|
19
19
|
archiveEvidence,
|
|
20
20
|
checkRequirementCoverage,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
sanitizeTaskId,
|
|
27
27
|
saveEvidence,
|
|
28
28
|
validateProjectRoot
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-ys4888ae.js";
|
|
30
30
|
import {
|
|
31
31
|
LANGUAGE_REGISTRY,
|
|
32
32
|
_internals as _internals3,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
runEvaluation,
|
|
45
45
|
runExternalTool,
|
|
46
46
|
withDisposableWorktree
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-h9gkgwn6.js";
|
|
48
48
|
import {
|
|
49
49
|
EvaluationTaskV1Schema,
|
|
50
50
|
GateAuditManifestV1Schema,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
saveGateAuditResult,
|
|
62
62
|
savePromotionDecision,
|
|
63
63
|
saveTaskSetSnapshot
|
|
64
|
-
} from "./index-
|
|
64
|
+
} from "./index-8jhpedx9.js";
|
|
65
65
|
import {
|
|
66
66
|
canonicalHash,
|
|
67
67
|
canonicalJson,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
alreadyCuratedThisGeneration,
|
|
78
78
|
claimNextScanBatch,
|
|
79
79
|
resolveCohortId
|
|
80
|
-
} from "./index-
|
|
80
|
+
} from "./index-bb2myjge.js";
|
|
81
81
|
import {
|
|
82
82
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
83
83
|
CURATOR_INIT_PROMPT,
|
|
@@ -96,13 +96,13 @@ import {
|
|
|
96
96
|
getGroupCommitWriter,
|
|
97
97
|
importLegacyJsonl,
|
|
98
98
|
readPriorDriftReports
|
|
99
|
-
} from "./index-
|
|
99
|
+
} from "./index-vacbzrma.js";
|
|
100
100
|
import {
|
|
101
101
|
assertNoUnsettledCoderDispatch,
|
|
102
102
|
listCoderSettlementWalStates,
|
|
103
103
|
recoverCoderSettlement,
|
|
104
104
|
recoverStaleCoderSettlements
|
|
105
|
-
} from "./index-
|
|
105
|
+
} from "./index-1cdkdha7.js";
|
|
106
106
|
import {
|
|
107
107
|
BUNDLED_PROJECT_SKILL_ROOT,
|
|
108
108
|
DEFAULT_SKILL_MIN_CONFIDENCE,
|
|
@@ -123,11 +123,11 @@ import {
|
|
|
123
123
|
retireSkill,
|
|
124
124
|
selectCandidateEntries,
|
|
125
125
|
syncBundledProjectSkillsIfMissingAsync
|
|
126
|
-
} from "./index-
|
|
126
|
+
} from "./index-nkr29v6k.js";
|
|
127
127
|
import {
|
|
128
128
|
buildEscalationBriefing,
|
|
129
129
|
readRecentEscalations
|
|
130
|
-
} from "./index-
|
|
130
|
+
} from "./index-f2nbkpsd.js";
|
|
131
131
|
import {
|
|
132
132
|
parsePorcelainV2Snapshot,
|
|
133
133
|
resolveCommitCountSince,
|
|
@@ -176,7 +176,7 @@ import {
|
|
|
176
176
|
sweepStale,
|
|
177
177
|
unsubscribe,
|
|
178
178
|
updateSnapshot
|
|
179
|
-
} from "./index-
|
|
179
|
+
} from "./index-tq8f6ar8.js";
|
|
180
180
|
import {
|
|
181
181
|
WORKTREE_LIFECYCLE_LOCK_FILE,
|
|
182
182
|
recordWorktreeProvisioningOwner,
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
checkpoint,
|
|
195
195
|
createSwarmTool,
|
|
196
196
|
resolveWorkingDirectory
|
|
197
|
-
} from "./index-
|
|
197
|
+
} from "./index-m47nt45k.js";
|
|
198
198
|
import {
|
|
199
199
|
MAX_TRANSIENT_RETRIES,
|
|
200
200
|
PlanRecoverySupersededError,
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
transientBackoff,
|
|
223
223
|
updateTaskStatus,
|
|
224
224
|
withPlanLifecycleLock
|
|
225
|
-
} from "./index-
|
|
225
|
+
} from "./index-htwb6znd.js";
|
|
226
226
|
import {
|
|
227
227
|
containsControlChars,
|
|
228
228
|
containsPathTraversal,
|
|
@@ -238,7 +238,7 @@ import {
|
|
|
238
238
|
resolveSpeckitProjection,
|
|
239
239
|
validateSpeckit,
|
|
240
240
|
writeProjectedSpecSync
|
|
241
|
-
} from "./index-
|
|
241
|
+
} from "./index-mcvp13x7.js";
|
|
242
242
|
import {
|
|
243
243
|
clearWorktreeMergeStatus,
|
|
244
244
|
getAllWorktreeMergeFailures,
|
|
@@ -269,7 +269,7 @@ import {
|
|
|
269
269
|
transitionTaskWorkflowEvidenceWithStatus,
|
|
270
270
|
withTaskEvidenceTransaction,
|
|
271
271
|
writeWorkflowWalFile
|
|
272
|
-
} from "./index-
|
|
272
|
+
} from "./index-92hcbz8j.js";
|
|
273
273
|
import {
|
|
274
274
|
isPathUnderSwarmWorktreeBase,
|
|
275
275
|
listLiveLaneOwners,
|
|
@@ -278,7 +278,7 @@ import {
|
|
|
278
278
|
recordLiveLaneOwner,
|
|
279
279
|
removeWorktree,
|
|
280
280
|
resolveWorktreeBaseDir
|
|
281
|
-
} from "./index-
|
|
281
|
+
} from "./index-2mtbc0wz.js";
|
|
282
282
|
import {
|
|
283
283
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
284
284
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -312,7 +312,7 @@ import {
|
|
|
312
312
|
scanBackgroundCoderReservationsForAdmission,
|
|
313
313
|
scanDelegationsForRecovery,
|
|
314
314
|
sweepStaleDelegations
|
|
315
|
-
} from "./index-
|
|
315
|
+
} from "./index-02stsgw6.js";
|
|
316
316
|
import {
|
|
317
317
|
MAX_EVENT_LOG_ENTRIES,
|
|
318
318
|
_internals,
|
|
@@ -331,7 +331,7 @@ import {
|
|
|
331
331
|
recordKnowledgeEvent,
|
|
332
332
|
recordPhaseCloseIntent,
|
|
333
333
|
resolveKnowledgeEventsPath
|
|
334
|
-
} from "./index-
|
|
334
|
+
} from "./index-8fhczdja.js";
|
|
335
335
|
import {
|
|
336
336
|
estimateCharsForTokens,
|
|
337
337
|
estimateTokens,
|
|
@@ -359,18 +359,18 @@ import {
|
|
|
359
359
|
validateActionableFields,
|
|
360
360
|
validateLesson,
|
|
361
361
|
validateSkillPath
|
|
362
|
-
} from "./index-
|
|
362
|
+
} from "./index-p3tkx10s.js";
|
|
363
363
|
import {
|
|
364
364
|
MAX_CURATION_PROPOSALS,
|
|
365
365
|
authorizeCuration,
|
|
366
366
|
buildConfigFingerprintInput
|
|
367
|
-
} from "./index-
|
|
367
|
+
} from "./index-j0j82th1.js";
|
|
368
368
|
import {
|
|
369
369
|
cohortConfigFingerprint
|
|
370
370
|
} from "./index-rtry5xyf.js";
|
|
371
371
|
import {
|
|
372
372
|
resolveWorktreeIsolationConfig
|
|
373
|
-
} from "./index-
|
|
373
|
+
} from "./index-dg39ea2t.js";
|
|
374
374
|
import {
|
|
375
375
|
RetrospectiveEvidenceSchema
|
|
376
376
|
} from "./index-frcemc0b.js";
|
|
@@ -382,7 +382,7 @@ import {
|
|
|
382
382
|
clearScopeBindings,
|
|
383
383
|
readAuthoritativeScopeBindingSet,
|
|
384
384
|
readDeclaredScopeFilesFromBindings
|
|
385
|
-
} from "./index-
|
|
385
|
+
} from "./index-sev04gtf.js";
|
|
386
386
|
import {
|
|
387
387
|
clearPlanLedgerForReset,
|
|
388
388
|
computePlanStructureHash,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
replayFromLedgerWithStatus,
|
|
399
399
|
resolvePlanningProfile,
|
|
400
400
|
takeSnapshotEvent
|
|
401
|
-
} from "./index-
|
|
401
|
+
} from "./index-5mh1638n.js";
|
|
402
402
|
import {
|
|
403
403
|
CORE_EVENT_LOCKED,
|
|
404
404
|
appendCoreEventSync,
|
|
@@ -408,7 +408,7 @@ import {
|
|
|
408
408
|
hasSpecDriftAuditEvent,
|
|
409
409
|
hasTaskRepairAuditEvent,
|
|
410
410
|
readCoreEvents
|
|
411
|
-
} from "./index-
|
|
411
|
+
} from "./index-743kwz1r.js";
|
|
412
412
|
import {
|
|
413
413
|
DEFAULT_QA_GATES,
|
|
414
414
|
computeProfileHash,
|
|
@@ -456,7 +456,7 @@ import {
|
|
|
456
456
|
observeModelLimitResolution,
|
|
457
457
|
observeStoreHealth,
|
|
458
458
|
readLearningHealth
|
|
459
|
-
} from "./index-
|
|
459
|
+
} from "./index-8y9p665v.js";
|
|
460
460
|
import {
|
|
461
461
|
appendKnowledge,
|
|
462
462
|
appendRejectedLesson,
|
|
@@ -487,7 +487,7 @@ import {
|
|
|
487
487
|
transactFile,
|
|
488
488
|
transactKnowledge,
|
|
489
489
|
wordBigrams
|
|
490
|
-
} from "./index-
|
|
490
|
+
} from "./index-ne82w55j.js";
|
|
491
491
|
import {
|
|
492
492
|
readTailJsonl,
|
|
493
493
|
readTailJsonlDetailed,
|
|
@@ -508,13 +508,13 @@ import {
|
|
|
508
508
|
resolveLinkDir,
|
|
509
509
|
sanitizeLinkId,
|
|
510
510
|
writeLinkPointer
|
|
511
|
-
} from "./index-
|
|
511
|
+
} from "./index-m9xhje7p.js";
|
|
512
512
|
import {
|
|
513
513
|
atomicWriteFile
|
|
514
|
-
} from "./index-
|
|
514
|
+
} from "./index-4dkmehar.js";
|
|
515
515
|
import {
|
|
516
516
|
withEvidenceLock
|
|
517
|
-
} from "./index-
|
|
517
|
+
} from "./index-mr86ywsj.js";
|
|
518
518
|
import {
|
|
519
519
|
assertProjectRoot
|
|
520
520
|
} from "./index-t7hmqgjy.js";
|
|
@@ -528,7 +528,7 @@ import {
|
|
|
528
528
|
pseudonymousRef,
|
|
529
529
|
resolveLineageSalt,
|
|
530
530
|
telemetry
|
|
531
|
-
} from "./index-
|
|
531
|
+
} from "./index-xdjwefa5.js";
|
|
532
532
|
import {
|
|
533
533
|
SESSION_KEY_SEPARATOR,
|
|
534
534
|
canonicalRootKey,
|
|
@@ -568,7 +568,7 @@ import {
|
|
|
568
568
|
loadGateOverrides,
|
|
569
569
|
loadPluginConfig,
|
|
570
570
|
loadPluginConfigWithMeta
|
|
571
|
-
} from "./index-
|
|
571
|
+
} from "./index-qt6101j8.js";
|
|
572
572
|
import {
|
|
573
573
|
addDeferredWarning,
|
|
574
574
|
advisoryWarn,
|
|
@@ -600,7 +600,7 @@ import {
|
|
|
600
600
|
resolveContextWindow,
|
|
601
601
|
resolveGeneratedAgentRole,
|
|
602
602
|
stripKnownSwarmPrefix
|
|
603
|
-
} from "./index-
|
|
603
|
+
} from "./index-v2b00xgq.js";
|
|
604
604
|
import {
|
|
605
605
|
AGENT_TOOL_MAP,
|
|
606
606
|
ALL_AGENT_NAMES,
|
|
@@ -3389,7 +3389,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3389
3389
|
return null;
|
|
3390
3390
|
throw error2;
|
|
3391
3391
|
}
|
|
3392
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3392
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-2ky49yr6.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3393
3393
|
if (!legacy)
|
|
3394
3394
|
return null;
|
|
3395
3395
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3476,7 +3476,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3476
3476
|
let recoveryState = null;
|
|
3477
3477
|
if (!currentAuthoritative) {
|
|
3478
3478
|
if (options.allowSalvagedRead) {
|
|
3479
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3479
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-2ky49yr6.js");
|
|
3480
3480
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3481
3481
|
}
|
|
3482
3482
|
if (!recoveryState) {
|
|
@@ -15039,7 +15039,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
15039
15039
|
return extracted === expectedSessionId;
|
|
15040
15040
|
}
|
|
15041
15041
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
15042
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
15042
|
+
const collisionOwnership = await import("./worktree-collision-ownership-rfspbxph.js");
|
|
15043
15043
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
15044
15044
|
}
|
|
15045
15045
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -15465,7 +15465,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
15465
15465
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
15466
15466
|
if (laneProfile) {
|
|
15467
15467
|
try {
|
|
15468
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
15468
|
+
const { writeLaneProfileToDiskReal } = await import("./core-azfp090f.js");
|
|
15469
15469
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
15470
15470
|
} catch {}
|
|
15471
15471
|
}
|
|
@@ -16444,7 +16444,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
16444
16444
|
}
|
|
16445
16445
|
clearWorktreeMergeStatus(statusKey);
|
|
16446
16446
|
try {
|
|
16447
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
16447
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-azfp090f.js");
|
|
16448
16448
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
16449
16449
|
} catch {}
|
|
16450
16450
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -24083,7 +24083,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
24083
24083
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
24084
24084
|
const map = new Map;
|
|
24085
24085
|
try {
|
|
24086
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
24086
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-5nxh5d6n.js");
|
|
24087
24087
|
const records = await listActive2(directory);
|
|
24088
24088
|
for (const record of records) {
|
|
24089
24089
|
if (record.sessionID !== sessionID)
|
|
@@ -34707,7 +34707,7 @@ function finalizeSummary(summary) {
|
|
|
34707
34707
|
summary.total_reported_usd = roundUsd(summary.total_reported_usd);
|
|
34708
34708
|
summary.total_estimated_usd = roundUsd(summary.total_estimated_usd);
|
|
34709
34709
|
summary.total_legacy_usd = roundUsd(summary.total_legacy_usd);
|
|
34710
|
-
if (summary.delegations === 0) {
|
|
34710
|
+
if (summary.delegations === 0 && summary.join_miss_count === 0 && summary.telemetry_error_count === 0) {
|
|
34711
34711
|
summary.total_input_tokens ??= 0;
|
|
34712
34712
|
summary.total_output_tokens ??= 0;
|
|
34713
34713
|
summary.total_reasoning_tokens ??= 0;
|
|
@@ -35057,6 +35057,7 @@ async function handleBenchmarkCommand(directory, args) {
|
|
|
35057
35057
|
total_output_tokens: costSummary.total_output_tokens,
|
|
35058
35058
|
total_reasoning_tokens: costSummary.total_reasoning_tokens,
|
|
35059
35059
|
total_cache_tokens: costSummary.total_cache_tokens,
|
|
35060
|
+
unknown_usage_delegations: costSummary.unknown_usage_delegations,
|
|
35060
35061
|
delegations: costSummary.delegations,
|
|
35061
35062
|
unavailable_delegations: costSummary.unavailable_delegations
|
|
35062
35063
|
};
|
|
@@ -40520,9 +40521,9 @@ function hashContent(content) {
|
|
|
40520
40521
|
return createHash27("sha1").update(content).digest("hex");
|
|
40521
40522
|
}
|
|
40522
40523
|
async function loadConfigForPolicyCurator(directory) {
|
|
40523
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
40524
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-f8rw7sep.js");
|
|
40524
40525
|
try {
|
|
40525
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
40526
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-j3j3xknh.js");
|
|
40526
40527
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
40527
40528
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
40528
40529
|
} catch {
|
|
@@ -43580,7 +43581,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
43580
43581
|
const seam = _internals38.createCuratorLLMDelegate;
|
|
43581
43582
|
if (seam)
|
|
43582
43583
|
return seam(directory, mode, sessionId);
|
|
43583
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
43584
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-bvazaeax.js");
|
|
43584
43585
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
43585
43586
|
}
|
|
43586
43587
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -43975,7 +43976,7 @@ async function runFinalizeStage(ctx) {
|
|
|
43975
43976
|
}
|
|
43976
43977
|
}
|
|
43977
43978
|
try {
|
|
43978
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
43979
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-f8rw7sep.js");
|
|
43979
43980
|
const { config: pmLoadedConfig } = _internals38.loadPluginConfigWithMeta(ctx.directory);
|
|
43980
43981
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
43981
43982
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -46161,7 +46162,7 @@ function serializeAgentSession(s) {
|
|
|
46161
46162
|
}
|
|
46162
46163
|
async function writeSnapshot(directory, state) {
|
|
46163
46164
|
try {
|
|
46164
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
46165
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-16g8rnk9.js");
|
|
46165
46166
|
await ensureSnapshotCoordinationReady(directory);
|
|
46166
46167
|
const snapshot = {
|
|
46167
46168
|
version: 3,
|
|
@@ -49339,7 +49340,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
49339
49340
|
};
|
|
49340
49341
|
}
|
|
49341
49342
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
49342
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
49343
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-j3j3xknh.js");
|
|
49343
49344
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
49344
49345
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
49345
49346
|
if (sweepConfig?.enabled === false)
|
|
@@ -50463,7 +50464,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
50463
50464
|
}
|
|
50464
50465
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
50465
50466
|
try {
|
|
50466
|
-
const skillModule = await import("./skill-generator-
|
|
50467
|
+
const skillModule = await import("./skill-generator-5dytd2v5.js");
|
|
50467
50468
|
for (const cand of skillCandidates) {
|
|
50468
50469
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
50469
50470
|
continue;
|
|
@@ -50935,7 +50936,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
50935
50936
|
} catch {}
|
|
50936
50937
|
}
|
|
50937
50938
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
50938
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
50939
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-d51hm9bf.js");
|
|
50939
50940
|
for (const { id } of contradictedEntries) {
|
|
50940
50941
|
try {
|
|
50941
50942
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -51767,7 +51768,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
51767
51768
|
warnings.push("Failed to collect knowledge summary.");
|
|
51768
51769
|
}
|
|
51769
51770
|
try {
|
|
51770
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
51771
|
+
const { getScanStatus } = await import("./scan-cursor-44kwkvzz.js");
|
|
51771
51772
|
const scanStatus = await getScanStatus(directory);
|
|
51772
51773
|
if (scanStatus.remaining_estimate > 0) {
|
|
51773
51774
|
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.`);
|
|
@@ -51939,9 +51940,9 @@ var _internals57 = {
|
|
|
51939
51940
|
verifyPostMortemKnowledgeActions,
|
|
51940
51941
|
repairPostMortemActions,
|
|
51941
51942
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
51942
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
51943
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-f8rw7sep.js");
|
|
51943
51944
|
try {
|
|
51944
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
51945
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-j3j3xknh.js");
|
|
51945
51946
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
51946
51947
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
51947
51948
|
} catch {
|
|
@@ -51949,11 +51950,11 @@ var _internals57 = {
|
|
|
51949
51950
|
}
|
|
51950
51951
|
},
|
|
51951
51952
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
51952
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
51953
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-6347y33h.js");
|
|
51953
51954
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
51954
51955
|
},
|
|
51955
51956
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
51956
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
51957
|
+
const { checkHivePromotions } = await import("./hive-promoter-5t3xhvf5.js");
|
|
51957
51958
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
51958
51959
|
},
|
|
51959
51960
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -51962,7 +51963,7 @@ var _internals57 = {
|
|
|
51962
51963
|
activateProposal,
|
|
51963
51964
|
listSkills: listSkills2,
|
|
51964
51965
|
sanitizeSlug
|
|
51965
|
-
} = await import("./skill-generator-
|
|
51966
|
+
} = await import("./skill-generator-5dytd2v5.js");
|
|
51966
51967
|
const result = {
|
|
51967
51968
|
approved: [],
|
|
51968
51969
|
rejected: [],
|
|
@@ -52004,7 +52005,7 @@ var _internals57 = {
|
|
|
52004
52005
|
return result;
|
|
52005
52006
|
},
|
|
52006
52007
|
readPriorDriftReports: async (directory) => {
|
|
52007
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
52008
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-rsh7k3vj.js");
|
|
52008
52009
|
return readPriorDriftReports2(directory);
|
|
52009
52010
|
},
|
|
52010
52011
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -60448,7 +60449,7 @@ function wireCloseInternals() {
|
|
|
60448
60449
|
archiveEvidence,
|
|
60449
60450
|
endAgentSession,
|
|
60450
60451
|
flushAndDrainTelemetry: async () => {
|
|
60451
|
-
const { flushAndDrainTelemetry } = await import("./telemetry-
|
|
60452
|
+
const { flushAndDrainTelemetry } = await import("./telemetry-rb8hrvbx.js");
|
|
60452
60453
|
return flushAndDrainTelemetry();
|
|
60453
60454
|
},
|
|
60454
60455
|
finalizeContextTelemetry,
|
|
@@ -61001,11 +61002,14 @@ function appendCostRows(lines, label, rows, emptyMessage) {
|
|
|
61001
61002
|
}
|
|
61002
61003
|
lines.push(`| ${label} | Delegations | Cost | Input | Output | Reasoning | Cache | Unavailable |`, "|------|-------------|------|-------|--------|-----------|-------|-------------|");
|
|
61003
61004
|
for (const row of rows) {
|
|
61004
|
-
lines.push(`| ${row.name} | ${row.delegations} | ${formatUsd(row.cost_usd)} | ${formatTokens(row.input_tokens)} | ${formatTokens(row.output_tokens)} | ${formatTokens(row.reasoning_tokens)} | ${formatTokens(row.cache_tokens)} | ${row.unavailable_delegations} |`);
|
|
61005
|
+
lines.push(`| ${sanitizeTableCell(row.name)} | ${row.delegations} | ${formatUsd(row.cost_usd)} | ${formatTokens(row.input_tokens)} | ${formatTokens(row.output_tokens)} | ${formatTokens(row.reasoning_tokens)} | ${formatTokens(row.cache_tokens)} | ${row.unavailable_delegations} |`);
|
|
61005
61006
|
}
|
|
61006
61007
|
}
|
|
61007
61008
|
function formatTokens(value) {
|
|
61008
|
-
return value === null ? "unknown" : value.toLocaleString();
|
|
61009
|
+
return value === null ? "unknown" : value.toLocaleString("en-US");
|
|
61010
|
+
}
|
|
61011
|
+
function sanitizeTableCell(value) {
|
|
61012
|
+
return value.replace(/\|/g, "\\|").replace(/[\r\n]+/g, " ");
|
|
61009
61013
|
}
|
|
61010
61014
|
function formatUsd(value) {
|
|
61011
61015
|
return `$${value.toFixed(6)}`;
|
|
@@ -61804,9 +61808,9 @@ var _internals67 = {
|
|
|
61804
61808
|
loadPluginConfigWithMeta,
|
|
61805
61809
|
loadCuratorDeps: async () => {
|
|
61806
61810
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
61807
|
-
import("./schema-
|
|
61808
|
-
import("./curator-
|
|
61809
|
-
import("./curator-llm-factory-
|
|
61811
|
+
import("./schema-f8rw7sep.js"),
|
|
61812
|
+
import("./curator-6347y33h.js"),
|
|
61813
|
+
import("./curator-llm-factory-bvazaeax.js")
|
|
61810
61814
|
]);
|
|
61811
61815
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
61812
61816
|
}
|
|
@@ -64199,7 +64203,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64199
64203
|
let scanCompleted = false;
|
|
64200
64204
|
let scanRemaining = 0;
|
|
64201
64205
|
try {
|
|
64202
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
64206
|
+
const { getScanStatus } = await import("./scan-cursor-44kwkvzz.js");
|
|
64203
64207
|
const status = await getScanStatus(directory);
|
|
64204
64208
|
scanGeneration = status.generation;
|
|
64205
64209
|
scanCompleted = status.completed;
|
|
@@ -64207,19 +64211,19 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64207
64211
|
} catch {}
|
|
64208
64212
|
let configMatch = null;
|
|
64209
64213
|
try {
|
|
64210
|
-
const { isLinked: isLinked2 } = await import("./knowledge-link-
|
|
64214
|
+
const { isLinked: isLinked2 } = await import("./knowledge-link-xwn2ww1d.js");
|
|
64211
64215
|
if (isLinked2(directory)) {
|
|
64212
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
64216
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-f8rw7sep.js");
|
|
64213
64217
|
let config;
|
|
64214
64218
|
try {
|
|
64215
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
64219
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-j3j3xknh.js");
|
|
64216
64220
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
64217
64221
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
64218
64222
|
} catch {
|
|
64219
64223
|
config = KnowledgeConfigSchema2.parse({});
|
|
64220
64224
|
}
|
|
64221
64225
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
64222
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
64226
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-3dvythny.js");
|
|
64223
64227
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
64224
64228
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
64225
64229
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -65667,7 +65671,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65667
65671
|
const result = runConfigDoctor(config, directory);
|
|
65668
65672
|
let output;
|
|
65669
65673
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
65670
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
65674
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-7vewvger.js");
|
|
65671
65675
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
65672
65676
|
applyLossy: true
|
|
65673
65677
|
});
|
|
@@ -65705,7 +65709,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65705
65709
|
`;
|
|
65706
65710
|
}
|
|
65707
65711
|
try {
|
|
65708
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
65712
|
+
const { runModelPreflight } = await import("./model-preflight-bjcm13dz.js");
|
|
65709
65713
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
65710
65714
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
65711
65715
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -66632,7 +66636,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
66632
66636
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
66633
66637
|
}
|
|
66634
66638
|
async function handleEvidenceSummaryCommand(directory) {
|
|
66635
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
66639
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-71g302wy.js");
|
|
66636
66640
|
const artifact = await buildEvidenceSummary(directory);
|
|
66637
66641
|
if (!artifact) {
|
|
66638
66642
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -90965,7 +90969,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
90965
90969
|
}
|
|
90966
90970
|
const sdkOpts = signal ? { signal } : {};
|
|
90967
90971
|
try {
|
|
90968
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
90972
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-scasxhsf.js");
|
|
90969
90973
|
const createResult = await client.session.create({
|
|
90970
90974
|
...sessionId ? {
|
|
90971
90975
|
body: {
|
|
@@ -93302,7 +93306,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
|
|
|
93302
93306
|
clearedEvents: []
|
|
93303
93307
|
};
|
|
93304
93308
|
try {
|
|
93305
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
93309
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-2ky49yr6.js");
|
|
93306
93310
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
93307
93311
|
} catch (err) {
|
|
93308
93312
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -104487,11 +104491,6 @@ async function dispatchReviewerWithFallback(input, prompt, timeoutMs, promptByte
|
|
|
104487
104491
|
}
|
|
104488
104492
|
return { result: attempts[0], attempts };
|
|
104489
104493
|
}
|
|
104490
|
-
function sumKnown(total, value) {
|
|
104491
|
-
if (value === null)
|
|
104492
|
-
return total;
|
|
104493
|
-
return total === null ? value : total + value;
|
|
104494
|
-
}
|
|
104495
104494
|
function addCost(evidence2, dispatches) {
|
|
104496
104495
|
const MAX_REVIEW_COST_EVIDENCE = 32;
|
|
104497
104496
|
evidence2.cost.model_calls = dispatches.length;
|
|
@@ -104507,10 +104506,10 @@ function addCost(evidence2, dispatches) {
|
|
|
104507
104506
|
evidence2.cost.evidence_status = "inconclusive";
|
|
104508
104507
|
evidence2.cost.evidence_reason = fields?.evidence_reason ?? "missing_cost";
|
|
104509
104508
|
}
|
|
104510
|
-
evidence2.cost.tokens_input =
|
|
104511
|
-
evidence2.cost.tokens_output =
|
|
104512
|
-
evidence2.cost.tokens_reasoning =
|
|
104513
|
-
evidence2.cost.tokens_cache =
|
|
104509
|
+
evidence2.cost.tokens_input = sumKnownAxis(evidence2.cost.tokens_input, fields?.tokens_input ?? null);
|
|
104510
|
+
evidence2.cost.tokens_output = sumKnownAxis(evidence2.cost.tokens_output, fields?.tokens_output ?? null);
|
|
104511
|
+
evidence2.cost.tokens_reasoning = sumKnownAxis(evidence2.cost.tokens_reasoning, fields?.tokens_reasoning ?? null);
|
|
104512
|
+
evidence2.cost.tokens_cache = sumKnownAxis(evidence2.cost.tokens_cache, fields?.tokens_cache ?? null);
|
|
104514
104513
|
if (typeof fields?.cost_usd === "number") {
|
|
104515
104514
|
evidence2.cost.cost_usd = (evidence2.cost.cost_usd ?? 0) + fields.cost_usd;
|
|
104516
104515
|
evidence2.cost.cost_source = fields.cost_source === "estimated" ? "estimated" : evidence2.cost.cost_source === "estimated" ? "estimated" : "reported";
|
|
@@ -105045,7 +105044,7 @@ function costLine(evidence2) {
|
|
|
105045
105044
|
return "Cost: unavailable (durable evidence was not readable)";
|
|
105046
105045
|
const cost = evidence2.cost;
|
|
105047
105046
|
const dollars = cost.cost_usd === null ? `unavailable (${cost.cost_source})` : `$${cost.cost_usd.toFixed(6)} (${cost.cost_source})`;
|
|
105048
|
-
const axis = (value) => value === null ? "unknown" :
|
|
105047
|
+
const axis = (value) => value === null ? "unknown" : value.toLocaleString("en-US");
|
|
105049
105048
|
return `Cost: ${dollars}; tokens ${axis(cost.tokens_input)} input / ${axis(cost.tokens_output)} output / ${axis(cost.tokens_reasoning)} reasoning / ${axis(cost.tokens_cache)} cache; prompt ${cost.prompt_bytes} bytes`;
|
|
105050
105049
|
}
|
|
105051
105050
|
function renderHuman(result, evidence2, requestedSelector) {
|
|
@@ -106933,7 +106932,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
|
|
|
106933
106932
|
if (!input.dispatcher) {
|
|
106934
106933
|
throw new Error("no evaluation dispatcher available (cannot run validation)");
|
|
106935
106934
|
}
|
|
106936
|
-
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-
|
|
106935
|
+
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-mfxyvzv5.js");
|
|
106937
106936
|
const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
|
|
106938
106937
|
const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals129.evaluateCandidateV1({
|
|
106939
106938
|
projectRoot: input.directory,
|
|
@@ -109562,7 +109561,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
109562
109561
|
async function handleHelpCommand(ctx) {
|
|
109563
109562
|
const targetCommand = ctx.args.join(" ");
|
|
109564
109563
|
if (!targetCommand) {
|
|
109565
|
-
const { buildHelpText } = await import("./index-
|
|
109564
|
+
const { buildHelpText } = await import("./index-xn3axfb7.js");
|
|
109566
109565
|
return buildHelpText();
|
|
109567
109566
|
}
|
|
109568
109567
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -109576,7 +109575,7 @@ async function handleHelpCommand(ctx) {
|
|
|
109576
109575
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
109577
109576
|
}
|
|
109578
109577
|
const similar = _internals27.findSimilarCommands(targetCommand);
|
|
109579
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
109578
|
+
const { buildHelpText: fullHelp } = await import("./index-xn3axfb7.js");
|
|
109580
109579
|
if (similar.length > 0) {
|
|
109581
109580
|
return `Command '/swarm ${targetCommand}' not found.
|
|
109582
109581
|
|
|
@@ -109904,7 +109903,7 @@ var COMMAND_REGISTRY = {
|
|
|
109904
109903
|
},
|
|
109905
109904
|
"guardrail explain": {
|
|
109906
109905
|
handler: async (ctx) => {
|
|
109907
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
109906
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-mfgjbr2t.js");
|
|
109908
109907
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
109909
109908
|
},
|
|
109910
109909
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -109914,7 +109913,7 @@ var COMMAND_REGISTRY = {
|
|
|
109914
109913
|
},
|
|
109915
109914
|
"guardrail reset": {
|
|
109916
109915
|
handler: async (ctx) => {
|
|
109917
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
109916
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-mqv4chxa.js");
|
|
109918
109917
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
109919
109918
|
},
|
|
109920
109919
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -109935,7 +109934,7 @@ var COMMAND_REGISTRY = {
|
|
|
109935
109934
|
},
|
|
109936
109935
|
"guardrail-log": {
|
|
109937
109936
|
handler: async (ctx) => {
|
|
109938
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
109937
|
+
const { handleGuardrailLog } = await import("./guardrail-log-j0afxr5d.js");
|
|
109939
109938
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
109940
109939
|
},
|
|
109941
109940
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.186.
|
|
24
|
+
version: "7.186.4",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|