opencode-swarm 7.181.3 → 7.182.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/skills/issue-ingest/SKILL.md +19 -1
- 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-txte2m87.js → coder-settlement-vwwxs7t1.js} +11 -11
- package/dist/cli/{config-doctor-101n3c1r.js → config-doctor-7wyqt1ke.js} +3 -3
- package/dist/cli/{core-s0yzzpaj.js → core-739y5zsf.js} +4 -4
- package/dist/cli/{curation-policy-r4dkajw9.js → curation-policy-bwj3wanw.js} +4 -4
- package/dist/cli/{curator-drift-r7w3cg3m.js → curator-drift-mbpc200k.js} +9 -9
- package/dist/cli/curator-llm-factory-m039mxt9.js +74 -0
- package/dist/cli/{curator-dp49fr0p.js → curator-qrcydww2.js} +38 -38
- package/dist/cli/{evidence-summary-service-r648x5f2.js → evidence-summary-service-w6hw58bc.js} +17 -17
- package/dist/cli/{gate-evidence-8rh69tsh.js → gate-evidence-2dqabzxy.js} +6 -6
- package/dist/cli/guardrail-explain-kaebxfq3.js +75 -0
- package/dist/cli/{guardrail-log-yr60w7h6.js → guardrail-log-h3vxqte8.js} +7 -7
- package/dist/cli/{guardrail-reset-eztc62va.js → guardrail-reset-n1ameem0.js} +38 -38
- package/dist/cli/{hive-promoter-g56ba4a4.js → hive-promoter-ev201390.js} +38 -38
- package/dist/cli/{index-4ffryqb1.js → index-0vvnwq2f.js} +1 -1
- package/dist/cli/{index-01r2wrwa.js → index-0yj2ebtj.js} +1 -1
- package/dist/cli/{index-by9wfeja.js → index-1kpa3an2.js} +2 -2
- package/dist/cli/{index-a2hvmc3a.js → index-25m6rekr.js} +1 -1
- package/dist/cli/{index-1ks0rnzn.js → index-2qw3rxcq.js} +5 -5
- package/dist/cli/{index-ekwe81my.js → index-34k5sg2a.js} +2 -2
- package/dist/cli/{index-ap6hs8fj.js → index-4a9kyt9z.js} +1 -1
- package/dist/cli/{index-vvgpgcyn.js → index-5cvm6ykc.js} +1 -1
- package/dist/cli/{index-hcaspktr.js → index-6q23tysf.js} +1 -1
- package/dist/cli/{index-rchygh27.js → index-6qntafey.js} +2 -2
- package/dist/cli/{index-ved1325w.js → index-820e6w22.js} +2 -2
- package/dist/cli/{index-789tdsfv.js → index-8qkc4xdx.js} +3 -3
- package/dist/cli/{index-s34y6gbh.js → index-9h1n6s76.js} +1 -1
- package/dist/cli/{index-kkrbybgt.js → index-awwqf5v7.js} +1 -1
- package/dist/cli/{index-ckrm4784.js → index-cxxpkw6v.js} +7 -7
- package/dist/cli/{index-nw3z614g.js → index-d4wj3jyg.js} +6 -6
- package/dist/cli/{index-4jvt3r77.js → index-db8tzj7b.js} +6 -6
- package/dist/cli/{index-7s6ct0t2.js → index-e2cdym66.js} +7 -7
- package/dist/cli/{index-ttgex8ky.js → index-extyzd5c.js} +5 -5
- package/dist/cli/{index-1w1xrk5k.js → index-fae4qp3c.js} +1 -1
- package/dist/cli/{index-sr9k8sh7.js → index-fyzakptj.js} +4 -4
- package/dist/cli/{index-kexzhwbq.js → index-hd3kacp0.js} +2 -2
- package/dist/cli/{index-427x3j6p.js → index-hg4gx6wa.js} +1 -1
- package/dist/cli/{index-sf51gh68.js → index-k38nw0xx.js} +1 -1
- package/dist/cli/{index-2pt5g7zz.js → index-kbxeq0r2.js} +4 -4
- package/dist/cli/{index-m4e3p8na.js → index-q0k4zdfg.js} +2 -2
- package/dist/cli/{index-k5rqe97g.js → index-q3qqyp4d.js} +12 -12
- package/dist/cli/{index-vgjmahnd.js → index-qgewm1x8.js} +3 -3
- package/dist/cli/{index-989v83pb.js → index-s1y70y0w.js} +8 -2
- package/dist/cli/{index-nw8pfcw1.js → index-td54jp0w.js} +3 -3
- package/dist/cli/{index-jrxrjz89.js → index-v8ja5zcr.js} +2 -2
- package/dist/cli/{index-6ep83w7x.js → index-vj5da9w4.js} +2 -2
- package/dist/cli/{index-23mdeh2a.js → index-wbqvjdne.js} +1 -1
- package/dist/cli/{index-w1ydvzef.js → index-wnkx6gs0.js} +1 -1
- package/dist/cli/{index-mdqp0cq2.js → index-wyvzrp4x.js} +3 -3
- package/dist/cli/{index-2t21pv2v.js → index-wzec3c4g.js} +13 -1
- package/dist/cli/{index-xqr076aq.js → index-x7z5fbs3.js} +4 -4
- package/dist/cli/{index-qdz43cne.js → index-y41v2h6s.js} +38 -38
- package/dist/cli/{index-h6gxh3an.js → index-yqc672pn.js} +136 -85
- package/dist/cli/{index-dy9mxh0z.js → index-ysch2gg6.js} +40 -40
- package/dist/cli/{index-yv0q0hp9.js → index-z2m4n1sm.js} +7 -7
- package/dist/cli/{index-8c37kzh6.js → index-zqd0tnwj.js} +6 -6
- package/dist/cli/{index-yzapt508.js → index-zryhqf6h.js} +4 -4
- package/dist/cli/index.js +39 -39
- package/dist/cli/{knowledge-escalator-0rcft6q4.js → knowledge-escalator-1shry4k7.js} +12 -12
- package/dist/cli/{knowledge-events-7jyz3qxs.js → knowledge-events-e2hdj3kq.js} +10 -10
- package/dist/cli/{knowledge-link-655xa3db.js → knowledge-link-akjk6gby.js} +3 -3
- package/dist/cli/{knowledge-store-asa26g6p.js → knowledge-store-t2c8spdv.js} +4 -4
- package/dist/cli/{knowledge-validator-j3x9ezej.js → knowledge-validator-d7amfzsx.js} +6 -6
- package/dist/cli/{mcp-70hefjk6.js → mcp-174sj68r.js} +1 -1
- package/dist/cli/{model-preflight-szekh1dc.js → model-preflight-6x39q1pq.js} +38 -38
- package/dist/cli/{pending-delegations-rb6bhv5x.js → pending-delegations-n9hp95ad.js} +10 -10
- package/dist/cli/{pr-subscriptions-v4ms5pfb.js → pr-subscriptions-b0pbkkpr.js} +10 -10
- package/dist/cli/{pr-workflow-gate-qmfpz6wb.js → pr-workflow-gate-5374j5nm.js} +38 -38
- package/dist/cli/{runner-b5vt1any.js → runner-xfagxzkx.js} +4 -4
- package/dist/cli/{scan-cursor-7zn4t1hw.js → scan-cursor-qqt0v8e4.js} +5 -5
- package/dist/cli/{schema-tx62mfy8.js → schema-6mh6et27.js} +2 -2
- package/dist/cli/{scope-persistence-f8w12sns.js → scope-persistence-astxnj1c.js} +14 -14
- package/dist/cli/{server-f2vrp2wc.js → server-dqq8v0bs.js} +38 -38
- package/dist/cli/{skill-generator-jme09w7n.js → skill-generator-s9y7098d.js} +14 -14
- package/dist/cli/{snapshot-coordination-init-ad83sq6c.js → snapshot-coordination-init-gs4258xn.js} +38 -38
- package/dist/cli/{speckit-checkoff-98gfvn3r.js → speckit-checkoff-y5ynwxhq.js} +5 -5
- package/dist/cli/{workspace-snapshot-hsssm50w.js → workspace-snapshot-7e9me3q7.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-47kdjtqb.js → worktree-collision-ownership-hrv6e3ps.js} +11 -11
- package/dist/cli/{worktree-isolation-etaawcnt.js → worktree-isolation-wksm23tp.js} +38 -38
- package/dist/hooks/delegation-gate.d.ts +10 -8
- package/dist/hooks/issue-trace-reducer.d.ts +29 -6
- package/dist/hooks/issue-trace-state.d.ts +29 -0
- package/dist/hooks/issue-trace.d.ts +4 -1
- package/dist/hooks/task-id-resolver.d.ts +7 -0
- package/dist/index.js +42 -33
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/manifest.d.ts +3 -0
- package/dist/tools/record-branch-freshness.d.ts +17 -0
- package/dist/tools/record-merge-approval.d.ts +17 -0
- package/dist/tools/record-trace-validation.d.ts +18 -0
- package/dist/tools/tool-metadata.d.ts +12 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-tycc9xkw.js +0 -74
- package/dist/cli/guardrail-explain-dfyj1g1c.js +0 -75
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
protectedRoots,
|
|
9
9
|
redactDecisionLineForArchive,
|
|
10
10
|
stableCanonicalStringify
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-wyvzrp4x.js";
|
|
12
12
|
import {
|
|
13
13
|
LANGUAGE_REGISTRY,
|
|
14
14
|
_internals as _internals3,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
runEvaluation,
|
|
28
28
|
runExternalTool,
|
|
29
29
|
withDisposableWorktree
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-0yj2ebtj.js";
|
|
31
31
|
import {
|
|
32
32
|
buildDriftInjectionText,
|
|
33
33
|
canonicalProjectKey,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
getGroupCommitWriter,
|
|
37
37
|
importLegacyJsonl,
|
|
38
38
|
readPriorDriftReports
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-td54jp0w.js";
|
|
40
40
|
import {
|
|
41
41
|
detectStraySwarmDirs,
|
|
42
42
|
readDoctorArtifact,
|
|
43
43
|
removeStraySwarmDir,
|
|
44
44
|
runConfigDoctor
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-34k5sg2a.js";
|
|
46
46
|
import {
|
|
47
47
|
MAX_TRANSIENT_RETRIES,
|
|
48
48
|
archiveEvidence,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
updateTaskStatus,
|
|
83
83
|
validateProjectRoot,
|
|
84
84
|
withPlanLifecycleLock
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-q3qqyp4d.js";
|
|
86
86
|
import {
|
|
87
87
|
EvaluationTaskV1Schema,
|
|
88
88
|
GateAuditManifestV1Schema,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
saveGateAuditResult,
|
|
100
100
|
savePromotionDecision,
|
|
101
101
|
saveTaskSetSnapshot
|
|
102
|
-
} from "./index-
|
|
102
|
+
} from "./index-k38nw0xx.js";
|
|
103
103
|
import {
|
|
104
104
|
canonicalHash,
|
|
105
105
|
canonicalJson,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
resolveSpeckitProjection,
|
|
120
120
|
validateSpeckit,
|
|
121
121
|
writeProjectedSpecSync
|
|
122
|
-
} from "./index-
|
|
122
|
+
} from "./index-0vvnwq2f.js";
|
|
123
123
|
import {
|
|
124
124
|
containsControlChars,
|
|
125
125
|
containsPathTraversal,
|
|
@@ -147,16 +147,16 @@ import {
|
|
|
147
147
|
retireSkill,
|
|
148
148
|
selectCandidateEntries,
|
|
149
149
|
syncBundledProjectSkillsIfMissingAsync
|
|
150
|
-
} from "./index-
|
|
150
|
+
} from "./index-zryhqf6h.js";
|
|
151
151
|
import {
|
|
152
152
|
buildEscalationBriefing,
|
|
153
153
|
readRecentEscalations
|
|
154
|
-
} from "./index-
|
|
154
|
+
} from "./index-2qw3rxcq.js";
|
|
155
155
|
import {
|
|
156
156
|
alreadyCuratedThisGeneration,
|
|
157
157
|
claimNextScanBatch,
|
|
158
158
|
resolveCohortId
|
|
159
|
-
} from "./index-
|
|
159
|
+
} from "./index-q0k4zdfg.js";
|
|
160
160
|
import {
|
|
161
161
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
162
162
|
CURATOR_INIT_PROMPT,
|
|
@@ -176,7 +176,7 @@ import {
|
|
|
176
176
|
sweepStale,
|
|
177
177
|
unsubscribe,
|
|
178
178
|
updateSnapshot
|
|
179
|
-
} from "./index-
|
|
179
|
+
} from "./index-d4wj3jyg.js";
|
|
180
180
|
import {
|
|
181
181
|
clearWorktreeMergeStatus,
|
|
182
182
|
getAllWorktreeMergeFailures,
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
listCoderSettlementWalStates,
|
|
189
189
|
recoverCoderSettlement,
|
|
190
190
|
recoverStaleCoderSettlements
|
|
191
|
-
} from "./index-
|
|
191
|
+
} from "./index-cxxpkw6v.js";
|
|
192
192
|
import {
|
|
193
193
|
parsePorcelainV2Snapshot,
|
|
194
194
|
resolveCommitCountSince,
|
|
@@ -216,12 +216,12 @@ import {
|
|
|
216
216
|
resolveRemoteUrlIdentity,
|
|
217
217
|
resolveRemoteUrlIdentityAsync,
|
|
218
218
|
switchPrFeedbackTrackingCandidateAsync
|
|
219
|
-
} from "./index-
|
|
219
|
+
} from "./index-v8ja5zcr.js";
|
|
220
220
|
import {
|
|
221
221
|
WORKTREE_LIFECYCLE_LOCK_FILE,
|
|
222
222
|
recordWorktreeProvisioningOwner,
|
|
223
223
|
removeWorktreeProvisioningOwner
|
|
224
|
-
} from "./index-
|
|
224
|
+
} from "./index-1kpa3an2.js";
|
|
225
225
|
import {
|
|
226
226
|
getLanguageForExtension
|
|
227
227
|
} from "./index-pt7h91zc.js";
|
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
transitionTaskWorkflowEvidence,
|
|
260
260
|
withTaskEvidenceTransaction,
|
|
261
261
|
writeWorkflowWalFile
|
|
262
|
-
} from "./index-
|
|
262
|
+
} from "./index-8qkc4xdx.js";
|
|
263
263
|
import {
|
|
264
264
|
isPathUnderSwarmWorktreeBase,
|
|
265
265
|
listLiveLaneOwners,
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
recordLiveLaneOwner,
|
|
269
269
|
removeWorktree,
|
|
270
270
|
resolveWorktreeBaseDir
|
|
271
|
-
} from "./index-
|
|
271
|
+
} from "./index-kbxeq0r2.js";
|
|
272
272
|
import {
|
|
273
273
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
274
274
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -302,7 +302,7 @@ import {
|
|
|
302
302
|
scanBackgroundCoderReservationsForAdmission,
|
|
303
303
|
scanDelegationsForRecovery,
|
|
304
304
|
sweepStaleDelegations
|
|
305
|
-
} from "./index-
|
|
305
|
+
} from "./index-zqd0tnwj.js";
|
|
306
306
|
import {
|
|
307
307
|
MAX_EVENT_LOG_ENTRIES,
|
|
308
308
|
_internals,
|
|
@@ -321,7 +321,7 @@ import {
|
|
|
321
321
|
recordKnowledgeEvent,
|
|
322
322
|
recordPhaseCloseIntent,
|
|
323
323
|
resolveKnowledgeEventsPath
|
|
324
|
-
} from "./index-
|
|
324
|
+
} from "./index-z2m4n1sm.js";
|
|
325
325
|
import {
|
|
326
326
|
estimateCharsForTokens,
|
|
327
327
|
estimateTokens,
|
|
@@ -329,7 +329,7 @@ import {
|
|
|
329
329
|
readSwarmFileAsync,
|
|
330
330
|
safeHook,
|
|
331
331
|
validateSwarmPath
|
|
332
|
-
} from "./index-
|
|
332
|
+
} from "./index-25m6rekr.js";
|
|
333
333
|
import {
|
|
334
334
|
bunFile,
|
|
335
335
|
bunSpawn,
|
|
@@ -349,18 +349,18 @@ import {
|
|
|
349
349
|
validateActionableFields,
|
|
350
350
|
validateLesson,
|
|
351
351
|
validateSkillPath
|
|
352
|
-
} from "./index-
|
|
352
|
+
} from "./index-x7z5fbs3.js";
|
|
353
353
|
import {
|
|
354
354
|
MAX_CURATION_PROPOSALS,
|
|
355
355
|
authorizeCuration,
|
|
356
356
|
buildConfigFingerprintInput
|
|
357
|
-
} from "./index-
|
|
357
|
+
} from "./index-9h1n6s76.js";
|
|
358
358
|
import {
|
|
359
359
|
cohortConfigFingerprint
|
|
360
360
|
} from "./index-rtry5xyf.js";
|
|
361
361
|
import {
|
|
362
362
|
resolveWorktreeIsolationConfig
|
|
363
|
-
} from "./index-
|
|
363
|
+
} from "./index-qgewm1x8.js";
|
|
364
364
|
import {
|
|
365
365
|
RetrospectiveEvidenceSchema
|
|
366
366
|
} from "./index-frcemc0b.js";
|
|
@@ -372,7 +372,7 @@ import {
|
|
|
372
372
|
clearScopeBindings,
|
|
373
373
|
readAuthoritativeScopeBindingSet,
|
|
374
374
|
readDeclaredScopeFilesFromBindings
|
|
375
|
-
} from "./index-
|
|
375
|
+
} from "./index-db8tzj7b.js";
|
|
376
376
|
import {
|
|
377
377
|
clearPlanLedgerForReset,
|
|
378
378
|
computePlanStructureHash,
|
|
@@ -388,7 +388,7 @@ import {
|
|
|
388
388
|
replayFromLedgerWithStatus,
|
|
389
389
|
resolvePlanningProfile,
|
|
390
390
|
takeSnapshotEvent
|
|
391
|
-
} from "./index-
|
|
391
|
+
} from "./index-extyzd5c.js";
|
|
392
392
|
import {
|
|
393
393
|
CORE_EVENT_LOCKED,
|
|
394
394
|
appendCoreEventSync,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
hasSpecDriftAuditEvent,
|
|
399
399
|
hasTaskRepairAuditEvent,
|
|
400
400
|
readCoreEvents
|
|
401
|
-
} from "./index-
|
|
401
|
+
} from "./index-hg4gx6wa.js";
|
|
402
402
|
import {
|
|
403
403
|
DEFAULT_QA_GATES,
|
|
404
404
|
computeProfileHash,
|
|
@@ -406,7 +406,7 @@ import {
|
|
|
406
406
|
getEffectiveGates,
|
|
407
407
|
getProfileLookupForIdentity,
|
|
408
408
|
setGatesForIdentity
|
|
409
|
-
} from "./index-
|
|
409
|
+
} from "./index-820e6w22.js";
|
|
410
410
|
import {
|
|
411
411
|
MAX_COORDINATION_STATE_LIST_ROWS,
|
|
412
412
|
deleteCoordinationImports,
|
|
@@ -419,7 +419,7 @@ import {
|
|
|
419
419
|
listCoordinationStates,
|
|
420
420
|
transitionCoordinationState,
|
|
421
421
|
withCoordinationTransaction
|
|
422
|
-
} from "./index-
|
|
422
|
+
} from "./index-wnkx6gs0.js";
|
|
423
423
|
import {
|
|
424
424
|
DURABILITY_CLASSES,
|
|
425
425
|
closeAllProjectDbs,
|
|
@@ -428,7 +428,7 @@ import {
|
|
|
428
428
|
projectDbExists,
|
|
429
429
|
projectDbPath,
|
|
430
430
|
withImmediateTransaction
|
|
431
|
-
} from "./index-
|
|
431
|
+
} from "./index-5cvm6ykc.js";
|
|
432
432
|
import {
|
|
433
433
|
loadDatabaseCtor
|
|
434
434
|
} from "./index-rdm3px0g.js";
|
|
@@ -444,7 +444,7 @@ import {
|
|
|
444
444
|
observeModelLimitResolution,
|
|
445
445
|
observeStoreHealth,
|
|
446
446
|
readLearningHealth
|
|
447
|
-
} from "./index-
|
|
447
|
+
} from "./index-awwqf5v7.js";
|
|
448
448
|
import {
|
|
449
449
|
appendKnowledge,
|
|
450
450
|
appendRejectedLesson,
|
|
@@ -475,7 +475,7 @@ import {
|
|
|
475
475
|
transactFile,
|
|
476
476
|
transactKnowledge,
|
|
477
477
|
wordBigrams
|
|
478
|
-
} from "./index-
|
|
478
|
+
} from "./index-e2cdym66.js";
|
|
479
479
|
import {
|
|
480
480
|
readTailJsonl,
|
|
481
481
|
readTailJsonlDetailed,
|
|
@@ -496,14 +496,14 @@ import {
|
|
|
496
496
|
resolveLinkDir,
|
|
497
497
|
sanitizeLinkId,
|
|
498
498
|
writeLinkPointer
|
|
499
|
-
} from "./index-
|
|
499
|
+
} from "./index-wbqvjdne.js";
|
|
500
500
|
import {
|
|
501
501
|
assertProjectRoot,
|
|
502
502
|
atomicWriteFile,
|
|
503
503
|
hasExplicitProjectBoundary,
|
|
504
504
|
isStrictPathDescendant,
|
|
505
505
|
withEvidenceLock
|
|
506
|
-
} from "./index-
|
|
506
|
+
} from "./index-4a9kyt9z.js";
|
|
507
507
|
import {
|
|
508
508
|
OPENINFERENCE_MAPPING_VERSION,
|
|
509
509
|
OTEL_GENAI_MAPPING_VERSION,
|
|
@@ -538,7 +538,7 @@ import {
|
|
|
538
538
|
matchTempGrammar,
|
|
539
539
|
parseTargetBasename,
|
|
540
540
|
resetSwarmArtifactCache
|
|
541
|
-
} from "./index-
|
|
541
|
+
} from "./index-s1y70y0w.js";
|
|
542
542
|
import {
|
|
543
543
|
PlanSchema,
|
|
544
544
|
getCurrentPhase,
|
|
@@ -551,7 +551,7 @@ import {
|
|
|
551
551
|
loadGateOverrides,
|
|
552
552
|
loadPluginConfig,
|
|
553
553
|
loadPluginConfigWithMeta
|
|
554
|
-
} from "./index-
|
|
554
|
+
} from "./index-6q23tysf.js";
|
|
555
555
|
import {
|
|
556
556
|
addDeferredWarning,
|
|
557
557
|
advisoryWarn,
|
|
@@ -583,7 +583,7 @@ import {
|
|
|
583
583
|
resolveContextWindow,
|
|
584
584
|
resolveGeneratedAgentRole,
|
|
585
585
|
stripKnownSwarmPrefix
|
|
586
|
-
} from "./index-
|
|
586
|
+
} from "./index-6qntafey.js";
|
|
587
587
|
import {
|
|
588
588
|
AGENT_TOOL_MAP,
|
|
589
589
|
ALL_AGENT_NAMES,
|
|
@@ -606,7 +606,7 @@ import {
|
|
|
606
606
|
init_agent_names,
|
|
607
607
|
init_constants,
|
|
608
608
|
init_tool_metadata
|
|
609
|
-
} from "./index-
|
|
609
|
+
} from "./index-wzec3c4g.js";
|
|
610
610
|
import {
|
|
611
611
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
612
612
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -3346,7 +3346,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3346
3346
|
return null;
|
|
3347
3347
|
throw error2;
|
|
3348
3348
|
}
|
|
3349
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3349
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-5374j5nm.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3350
3350
|
if (!legacy)
|
|
3351
3351
|
return null;
|
|
3352
3352
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3433,7 +3433,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3433
3433
|
let recoveryState = null;
|
|
3434
3434
|
if (!currentAuthoritative) {
|
|
3435
3435
|
if (options.allowSalvagedRead) {
|
|
3436
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3436
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-5374j5nm.js");
|
|
3437
3437
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3438
3438
|
}
|
|
3439
3439
|
if (!recoveryState) {
|
|
@@ -8419,7 +8419,7 @@ var TASK_ID_RESOLUTION_LIMITS = {
|
|
|
8419
8419
|
maxTokenChars: 80
|
|
8420
8420
|
};
|
|
8421
8421
|
var TEXT_FIELDS = ["prompt", "description", "task", "input"];
|
|
8422
|
-
var
|
|
8422
|
+
var EXPLICIT_TASK_ID_FIELDS = [
|
|
8423
8423
|
"plan_task_id",
|
|
8424
8424
|
"planTaskId",
|
|
8425
8425
|
"task_id",
|
|
@@ -8431,8 +8431,44 @@ var PLAN_CANDIDATE = /\b(\d+\.\d+(?:\.\d+)*)\b/g;
|
|
|
8431
8431
|
var TASK_LINE = /^\s*TASK\s*[:=]\s*(.*)$/gim;
|
|
8432
8432
|
var ATTRIBUTION_ID_MARKER = /\b(?:task_id|task-id|taskId)\s*[:=]\s*([A-Za-z0-9][A-Za-z0-9._-]*)/gi;
|
|
8433
8433
|
var ATTRIBUTION_TASK_MARKER = /\bTASK\s*[:=]\s*([A-Za-z0-9][A-Za-z0-9._-]*)[ \t]*(?=\r?$)/gim;
|
|
8434
|
+
var ATTRIBUTION_TASK_MARKER_STANDALONE = /^TASK\s*[:=]\s*([A-Za-z0-9][A-Za-z0-9._-]*)[ \t]*\r?$/gim;
|
|
8434
8435
|
var ATTRIBUTION_ID_MARKER_RAW = /\b(?:task_id|task-id|taskId)\s*[:=][ \t]*([^\s]*)/gi;
|
|
8435
8436
|
var ATTRIBUTION_TASK_MARKER_RAW = /\bTASK\s*[:=][ \t]*([^\s]+)[ \t]*(?=\r?$)/gim;
|
|
8437
|
+
var ATTRIBUTION_TASK_MARKER_RAW_STANDALONE = /^TASK\s*[:=][ \t]*([^\s]+)[ \t]*\r?$/gim;
|
|
8438
|
+
function stripUntrustedAttributionMarkdown(text) {
|
|
8439
|
+
const lines = text.split(/\r?\n/);
|
|
8440
|
+
const kept = [];
|
|
8441
|
+
let fence;
|
|
8442
|
+
let inBlockQuote = false;
|
|
8443
|
+
for (const line of lines) {
|
|
8444
|
+
if (fence) {
|
|
8445
|
+
const close = line.match(/^[ \t]{0,3}(`+|~+)[ \t]*$/);
|
|
8446
|
+
if (close && close[1][0] === fence.marker && close[1].length >= fence.length) {
|
|
8447
|
+
fence = undefined;
|
|
8448
|
+
}
|
|
8449
|
+
continue;
|
|
8450
|
+
}
|
|
8451
|
+
const open2 = line.match(/^[ \t]{0,3}(`{3,}|~{3,})(.*)$/);
|
|
8452
|
+
if (open2 && !(open2[1][0] === "`" && open2[2].includes("`"))) {
|
|
8453
|
+
fence = { marker: open2[1][0], length: open2[1].length };
|
|
8454
|
+
continue;
|
|
8455
|
+
}
|
|
8456
|
+
if (/^[ \t]{0,3}>/.test(line)) {
|
|
8457
|
+
inBlockQuote = true;
|
|
8458
|
+
continue;
|
|
8459
|
+
}
|
|
8460
|
+
if (inBlockQuote) {
|
|
8461
|
+
if (line.trim() === "") {
|
|
8462
|
+
inBlockQuote = false;
|
|
8463
|
+
} else {
|
|
8464
|
+
continue;
|
|
8465
|
+
}
|
|
8466
|
+
}
|
|
8467
|
+
kept.push(line);
|
|
8468
|
+
}
|
|
8469
|
+
return kept.join(`
|
|
8470
|
+
`);
|
|
8471
|
+
}
|
|
8436
8472
|
function isSafeAttributionId(value) {
|
|
8437
8473
|
return value.length <= TASK_ID_RESOLUTION_LIMITS.maxTokenChars && SAFE_ATTRIBUTION_ID.test(value) && !/^ses_/i.test(value) && !value.includes("..");
|
|
8438
8474
|
}
|
|
@@ -8502,7 +8538,7 @@ function resolveTaskId(input, options) {
|
|
|
8502
8538
|
textFields.push(raw);
|
|
8503
8539
|
}
|
|
8504
8540
|
const explicit = new Set;
|
|
8505
|
-
for (const field of
|
|
8541
|
+
for (const field of EXPLICIT_TASK_ID_FIELDS) {
|
|
8506
8542
|
const raw = input[field];
|
|
8507
8543
|
if (raw === undefined || raw === null)
|
|
8508
8544
|
continue;
|
|
@@ -8569,12 +8605,11 @@ function resolveTaskId(input, options) {
|
|
|
8569
8605
|
if (textSelection)
|
|
8570
8606
|
return textSelection;
|
|
8571
8607
|
} else {
|
|
8608
|
+
const markerTextFields = options.standaloneTaskMarkerOnly ? textFields.map(stripUntrustedAttributionMarkdown) : textFields;
|
|
8572
8609
|
let hasInvalidRawMarker = false;
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
]) {
|
|
8577
|
-
for (const text of textFields) {
|
|
8610
|
+
const rawMarkers = options.standaloneTaskMarkerOnly ? [ATTRIBUTION_TASK_MARKER_RAW_STANDALONE] : [ATTRIBUTION_ID_MARKER_RAW, ATTRIBUTION_TASK_MARKER_RAW];
|
|
8611
|
+
for (const rawMarker of rawMarkers) {
|
|
8612
|
+
for (const text of markerTextFields) {
|
|
8578
8613
|
rawMarker.lastIndex = 0;
|
|
8579
8614
|
for (const match of text.matchAll(rawMarker)) {
|
|
8580
8615
|
const value = match[1];
|
|
@@ -8590,8 +8625,9 @@ function resolveTaskId(input, options) {
|
|
|
8590
8625
|
if (hasInvalidRawMarker)
|
|
8591
8626
|
return { status: "invalid", input: "marker" };
|
|
8592
8627
|
const marked = new Set;
|
|
8593
|
-
|
|
8594
|
-
|
|
8628
|
+
const markers = options.standaloneTaskMarkerOnly ? [ATTRIBUTION_TASK_MARKER_STANDALONE] : [ATTRIBUTION_ID_MARKER, ATTRIBUTION_TASK_MARKER];
|
|
8629
|
+
for (const marker of markers) {
|
|
8630
|
+
for (const text of markerTextFields) {
|
|
8595
8631
|
marker.lastIndex = 0;
|
|
8596
8632
|
for (const match of text.matchAll(marker)) {
|
|
8597
8633
|
const value = match[1];
|
|
@@ -14723,7 +14759,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
14723
14759
|
return extracted === expectedSessionId;
|
|
14724
14760
|
}
|
|
14725
14761
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
14726
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
14762
|
+
const collisionOwnership = await import("./worktree-collision-ownership-hrv6e3ps.js");
|
|
14727
14763
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
14728
14764
|
}
|
|
14729
14765
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -15149,7 +15185,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
15149
15185
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
15150
15186
|
if (laneProfile) {
|
|
15151
15187
|
try {
|
|
15152
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
15188
|
+
const { writeLaneProfileToDiskReal } = await import("./core-739y5zsf.js");
|
|
15153
15189
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
15154
15190
|
} catch {}
|
|
15155
15191
|
}
|
|
@@ -16128,7 +16164,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
16128
16164
|
}
|
|
16129
16165
|
clearWorktreeMergeStatus(statusKey);
|
|
16130
16166
|
try {
|
|
16131
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
16167
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-739y5zsf.js");
|
|
16132
16168
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
16133
16169
|
} catch {}
|
|
16134
16170
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -21491,6 +21527,13 @@ var TASK_GATE_AGENTS = new Set([
|
|
|
21491
21527
|
"explorer",
|
|
21492
21528
|
"sme"
|
|
21493
21529
|
]);
|
|
21530
|
+
var EXPLICIT_TASK_EVIDENCE_AGENTS = new Set([
|
|
21531
|
+
"critic",
|
|
21532
|
+
"critic_sounding_board",
|
|
21533
|
+
"critic_drift_verifier",
|
|
21534
|
+
"critic_hallucination_verifier",
|
|
21535
|
+
"critic_architecture_supervisor"
|
|
21536
|
+
]);
|
|
21494
21537
|
|
|
21495
21538
|
// src/hooks/realtime-learning-nudge.ts
|
|
21496
21539
|
var realtimeLearningNudgeBySession = new Map;
|
|
@@ -23391,7 +23434,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
23391
23434
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
23392
23435
|
const map = new Map;
|
|
23393
23436
|
try {
|
|
23394
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
23437
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-b0pbkkpr.js");
|
|
23395
23438
|
const records = await listActive2(directory);
|
|
23396
23439
|
for (const record of records) {
|
|
23397
23440
|
if (record.sessionID !== sessionID)
|
|
@@ -40335,9 +40378,9 @@ function hashContent(content) {
|
|
|
40335
40378
|
return createHash24("sha1").update(content).digest("hex");
|
|
40336
40379
|
}
|
|
40337
40380
|
async function loadConfigForPolicyCurator(directory) {
|
|
40338
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
40381
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-6mh6et27.js");
|
|
40339
40382
|
try {
|
|
40340
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
40383
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fyzakptj.js");
|
|
40341
40384
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
40342
40385
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
40343
40386
|
} catch {
|
|
@@ -43395,7 +43438,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
43395
43438
|
const seam = _internals37.createCuratorLLMDelegate;
|
|
43396
43439
|
if (seam)
|
|
43397
43440
|
return seam(directory, mode, sessionId);
|
|
43398
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
43441
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-m039mxt9.js");
|
|
43399
43442
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
43400
43443
|
}
|
|
43401
43444
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -43790,7 +43833,7 @@ async function runFinalizeStage(ctx) {
|
|
|
43790
43833
|
}
|
|
43791
43834
|
}
|
|
43792
43835
|
try {
|
|
43793
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
43836
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-6mh6et27.js");
|
|
43794
43837
|
const { config: pmLoadedConfig } = _internals37.loadPluginConfigWithMeta(ctx.directory);
|
|
43795
43838
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
43796
43839
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -45972,7 +46015,7 @@ function serializeAgentSession(s) {
|
|
|
45972
46015
|
}
|
|
45973
46016
|
async function writeSnapshot(directory, state) {
|
|
45974
46017
|
try {
|
|
45975
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
46018
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-gs4258xn.js");
|
|
45976
46019
|
await ensureSnapshotCoordinationReady(directory);
|
|
45977
46020
|
const snapshot = {
|
|
45978
46021
|
version: 3,
|
|
@@ -49035,7 +49078,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
49035
49078
|
};
|
|
49036
49079
|
}
|
|
49037
49080
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
49038
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
49081
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fyzakptj.js");
|
|
49039
49082
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
49040
49083
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
49041
49084
|
if (sweepConfig?.enabled === false)
|
|
@@ -50159,7 +50202,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
50159
50202
|
}
|
|
50160
50203
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
50161
50204
|
try {
|
|
50162
|
-
const skillModule = await import("./skill-generator-
|
|
50205
|
+
const skillModule = await import("./skill-generator-s9y7098d.js");
|
|
50163
50206
|
for (const cand of skillCandidates) {
|
|
50164
50207
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
50165
50208
|
continue;
|
|
@@ -50631,7 +50674,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
50631
50674
|
} catch {}
|
|
50632
50675
|
}
|
|
50633
50676
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
50634
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
50677
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-1shry4k7.js");
|
|
50635
50678
|
for (const { id } of contradictedEntries) {
|
|
50636
50679
|
try {
|
|
50637
50680
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -51463,7 +51506,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
51463
51506
|
warnings.push("Failed to collect knowledge summary.");
|
|
51464
51507
|
}
|
|
51465
51508
|
try {
|
|
51466
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
51509
|
+
const { getScanStatus } = await import("./scan-cursor-qqt0v8e4.js");
|
|
51467
51510
|
const scanStatus = await getScanStatus(directory);
|
|
51468
51511
|
if (scanStatus.remaining_estimate > 0) {
|
|
51469
51512
|
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.`);
|
|
@@ -51635,9 +51678,9 @@ var _internals55 = {
|
|
|
51635
51678
|
verifyPostMortemKnowledgeActions,
|
|
51636
51679
|
repairPostMortemActions,
|
|
51637
51680
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
51638
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
51681
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-6mh6et27.js");
|
|
51639
51682
|
try {
|
|
51640
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
51683
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fyzakptj.js");
|
|
51641
51684
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
51642
51685
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
51643
51686
|
} catch {
|
|
@@ -51645,11 +51688,11 @@ var _internals55 = {
|
|
|
51645
51688
|
}
|
|
51646
51689
|
},
|
|
51647
51690
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
51648
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
51691
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-qrcydww2.js");
|
|
51649
51692
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
51650
51693
|
},
|
|
51651
51694
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
51652
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
51695
|
+
const { checkHivePromotions } = await import("./hive-promoter-ev201390.js");
|
|
51653
51696
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
51654
51697
|
},
|
|
51655
51698
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -51658,7 +51701,7 @@ var _internals55 = {
|
|
|
51658
51701
|
activateProposal,
|
|
51659
51702
|
listSkills: listSkills2,
|
|
51660
51703
|
sanitizeSlug
|
|
51661
|
-
} = await import("./skill-generator-
|
|
51704
|
+
} = await import("./skill-generator-s9y7098d.js");
|
|
51662
51705
|
const result = {
|
|
51663
51706
|
approved: [],
|
|
51664
51707
|
rejected: [],
|
|
@@ -51700,7 +51743,7 @@ var _internals55 = {
|
|
|
51700
51743
|
return result;
|
|
51701
51744
|
},
|
|
51702
51745
|
readPriorDriftReports: async (directory) => {
|
|
51703
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
51746
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-mbpc200k.js");
|
|
51704
51747
|
return readPriorDriftReports2(directory);
|
|
51705
51748
|
},
|
|
51706
51749
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -61496,9 +61539,9 @@ var _internals65 = {
|
|
|
61496
61539
|
loadPluginConfigWithMeta,
|
|
61497
61540
|
loadCuratorDeps: async () => {
|
|
61498
61541
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
61499
|
-
import("./schema-
|
|
61500
|
-
import("./curator-
|
|
61501
|
-
import("./curator-llm-factory-
|
|
61542
|
+
import("./schema-6mh6et27.js"),
|
|
61543
|
+
import("./curator-qrcydww2.js"),
|
|
61544
|
+
import("./curator-llm-factory-m039mxt9.js")
|
|
61502
61545
|
]);
|
|
61503
61546
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
61504
61547
|
}
|
|
@@ -63832,7 +63875,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
63832
63875
|
let scanCompleted = false;
|
|
63833
63876
|
let scanRemaining = 0;
|
|
63834
63877
|
try {
|
|
63835
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
63878
|
+
const { getScanStatus } = await import("./scan-cursor-qqt0v8e4.js");
|
|
63836
63879
|
const status = await getScanStatus(directory);
|
|
63837
63880
|
scanGeneration = status.generation;
|
|
63838
63881
|
scanCompleted = status.completed;
|
|
@@ -63840,19 +63883,19 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
63840
63883
|
} catch {}
|
|
63841
63884
|
let configMatch = null;
|
|
63842
63885
|
try {
|
|
63843
|
-
const { isLinked: isLinked2 } = await import("./knowledge-link-
|
|
63886
|
+
const { isLinked: isLinked2 } = await import("./knowledge-link-akjk6gby.js");
|
|
63844
63887
|
if (isLinked2(directory)) {
|
|
63845
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
63888
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-6mh6et27.js");
|
|
63846
63889
|
let config;
|
|
63847
63890
|
try {
|
|
63848
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
63891
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-fyzakptj.js");
|
|
63849
63892
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
63850
63893
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
63851
63894
|
} catch {
|
|
63852
63895
|
config = KnowledgeConfigSchema2.parse({});
|
|
63853
63896
|
}
|
|
63854
63897
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
63855
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
63898
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-bwj3wanw.js");
|
|
63856
63899
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
63857
63900
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
63858
63901
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -65288,7 +65331,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65288
65331
|
const result = runConfigDoctor(config, directory);
|
|
65289
65332
|
let output;
|
|
65290
65333
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
65291
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
65334
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-7wyqt1ke.js");
|
|
65292
65335
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
65293
65336
|
applyLossy: true
|
|
65294
65337
|
});
|
|
@@ -65326,7 +65369,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65326
65369
|
`;
|
|
65327
65370
|
}
|
|
65328
65371
|
try {
|
|
65329
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
65372
|
+
const { runModelPreflight } = await import("./model-preflight-6x39q1pq.js");
|
|
65330
65373
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
65331
65374
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
65332
65375
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -66253,7 +66296,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
66253
66296
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
66254
66297
|
}
|
|
66255
66298
|
async function handleEvidenceSummaryCommand(directory) {
|
|
66256
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
66299
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-w6hw58bc.js");
|
|
66257
66300
|
const artifact = await buildEvidenceSummary(directory);
|
|
66258
66301
|
if (!artifact) {
|
|
66259
66302
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -90443,7 +90486,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
90443
90486
|
}
|
|
90444
90487
|
const sdkOpts = signal ? { signal } : {};
|
|
90445
90488
|
try {
|
|
90446
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
90489
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-y41v2h6s.js");
|
|
90447
90490
|
const createResult = await client.session.create({
|
|
90448
90491
|
...sessionId ? {
|
|
90449
90492
|
body: {
|
|
@@ -91185,7 +91228,7 @@ async function cancelPrFeedbackLoop(directory, sessionID, reason) {
|
|
|
91185
91228
|
clearedEvents: []
|
|
91186
91229
|
};
|
|
91187
91230
|
try {
|
|
91188
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
91231
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-5374j5nm.js");
|
|
91189
91232
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
91190
91233
|
} catch (err) {
|
|
91191
91234
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -105202,7 +105245,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
|
|
|
105202
105245
|
if (!input.dispatcher) {
|
|
105203
105246
|
throw new Error("no evaluation dispatcher available (cannot run validation)");
|
|
105204
105247
|
}
|
|
105205
|
-
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-
|
|
105248
|
+
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-xfagxzkx.js");
|
|
105206
105249
|
const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
|
|
105207
105250
|
const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals124.evaluateCandidateV1({
|
|
105208
105251
|
projectRoot: input.directory,
|
|
@@ -107831,7 +107874,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
107831
107874
|
async function handleHelpCommand(ctx) {
|
|
107832
107875
|
const targetCommand = ctx.args.join(" ");
|
|
107833
107876
|
if (!targetCommand) {
|
|
107834
|
-
const { buildHelpText } = await import("./index-
|
|
107877
|
+
const { buildHelpText } = await import("./index-ysch2gg6.js");
|
|
107835
107878
|
return buildHelpText();
|
|
107836
107879
|
}
|
|
107837
107880
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -107845,7 +107888,7 @@ async function handleHelpCommand(ctx) {
|
|
|
107845
107888
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
107846
107889
|
}
|
|
107847
107890
|
const similar = _internals25.findSimilarCommands(targetCommand);
|
|
107848
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
107891
|
+
const { buildHelpText: fullHelp } = await import("./index-ysch2gg6.js");
|
|
107849
107892
|
if (similar.length > 0) {
|
|
107850
107893
|
return `Command '/swarm ${targetCommand}' not found.
|
|
107851
107894
|
|
|
@@ -108160,7 +108203,7 @@ var COMMAND_REGISTRY = {
|
|
|
108160
108203
|
},
|
|
108161
108204
|
"guardrail explain": {
|
|
108162
108205
|
handler: async (ctx) => {
|
|
108163
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
108206
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-kaebxfq3.js");
|
|
108164
108207
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
108165
108208
|
},
|
|
108166
108209
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -108170,7 +108213,7 @@ var COMMAND_REGISTRY = {
|
|
|
108170
108213
|
},
|
|
108171
108214
|
"guardrail reset": {
|
|
108172
108215
|
handler: async (ctx) => {
|
|
108173
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
108216
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-n1ameem0.js");
|
|
108174
108217
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
108175
108218
|
},
|
|
108176
108219
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -108191,7 +108234,7 @@ var COMMAND_REGISTRY = {
|
|
|
108191
108234
|
},
|
|
108192
108235
|
"guardrail-log": {
|
|
108193
108236
|
handler: async (ctx) => {
|
|
108194
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
108237
|
+
const { handleGuardrailLog } = await import("./guardrail-log-h3vxqte8.js");
|
|
108195
108238
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
108196
108239
|
},
|
|
108197
108240
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -109945,6 +109988,14 @@ Mutation delegations are performed by calling the **Task** tool. Read-only advis
|
|
|
109945
109988
|
All delegations MUST follow the receiving agent's INPUT FORMAT exactly. Do NOT invent fields, omit required fields, or force one agent's schema onto another. Every delegation MUST begin with the agent name, include \`TASK:\`, and include \`SKILLS:\` when that agent prompt supports skills.
|
|
109946
109989
|
Do NOT add conversational preamble before the agent prefix. Begin directly with the agent name.
|
|
109947
109990
|
|
|
109991
|
+
TASK ATTRIBUTION: For task-scoped delegations, put the exact numeric plan task ID
|
|
109992
|
+
alone on a standalone \`TASK:\` line (for example, \`TASK: 1.1\`) and put the objective
|
|
109993
|
+
on the following line. When the Task arguments support an explicit field, set
|
|
109994
|
+
\`task_id\` to the same numeric value as a tool argument (not as prompt prose). Keep
|
|
109995
|
+
the numeric ID consistent across the TASK line, \`task_id\`, and any acceptance text.
|
|
109996
|
+
Plan-level critics and other project-wide reviews must omit task attribution rather
|
|
109997
|
+
than guessing from ambient prose or session state.
|
|
109998
|
+
|
|
109948
109999
|
{{AGENT_PREFIX}}[agent]
|
|
109949
110000
|
TASK: [single objective]
|
|
109950
110001
|
[agent-specific fields required by that agent's INPUT FORMAT]
|