opencode-swarm 7.170.0 → 7.170.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/reviewer-directive-compliance.d.ts +23 -7
- package/dist/cli/{coder-settlement-65zx1bet.js → coder-settlement-g1n2dk0a.js} +3 -3
- package/dist/cli/{config-doctor-c30rss1c.js → config-doctor-7v7hvdgw.js} +2 -2
- package/dist/cli/{core-8wkbr1tr.js → core-mz3rae1q.js} +1 -1
- package/dist/cli/{curator-llm-factory-jkjqasfs.js → curator-llm-factory-xaetdtgf.js} +19 -19
- package/dist/cli/{curator-pckzk1q4.js → curator-x28dw2mf.js} +19 -19
- package/dist/cli/{evidence-summary-service-4ydcapke.js → evidence-summary-service-kd22mp04.js} +6 -6
- package/dist/cli/{gate-evidence-xwqfky3m.js → gate-evidence-9snb217d.js} +2 -2
- package/dist/cli/{guardrail-explain-fe2veh2s.js → guardrail-explain-11zswj2c.js} +20 -20
- package/dist/cli/{guardrail-log-z38j69bx.js → guardrail-log-ykwrswvw.js} +3 -3
- package/dist/cli/{guardrail-reset-mmnzt4mz.js → guardrail-reset-7affkkeq.js} +19 -19
- package/dist/cli/{hive-promoter-68hrw1y1.js → hive-promoter-sfzrcn03.js} +19 -19
- package/dist/cli/{index-pw00xcj0.js → index-0hjtck07.js} +2 -2
- package/dist/cli/{index-xztkjj3c.js → index-8b2aqj41.js} +21 -21
- package/dist/cli/{index-9xk97bcf.js → index-987ga2vy.js} +3 -3
- package/dist/cli/{index-4wc5gfgm.js → index-9z0dc1t5.js} +1 -1
- package/dist/cli/{index-p6fj7qz7.js → index-as43fjha.js} +3 -3
- package/dist/cli/{index-t73888m0.js → index-bqscvndc.js} +1 -1
- package/dist/cli/{index-j144fgk8.js → index-bswpngg6.js} +54 -54
- package/dist/cli/{index-5bbem0ey.js → index-d6q0g0nd.js} +3 -3
- package/dist/cli/{index-31sqcdsd.js → index-ensg0pt6.js} +1 -1
- package/dist/cli/{index-06rbdzqn.js → index-g0qsftdd.js} +1 -1
- package/dist/cli/{index-td6xrw55.js → index-hp729z5v.js} +1 -1
- package/dist/cli/{index-n0d5hrs4.js → index-hzav6zra.js} +2 -2
- package/dist/cli/{index-0xprxg95.js → index-knh5z9gb.js} +1 -1
- package/dist/cli/{index-zw3hkzch.js → index-krzb4zkx.js} +1 -1
- package/dist/cli/{index-ssx8087p.js → index-q5q42mf3.js} +4 -4
- package/dist/cli/{index-8w1mrvbd.js → index-qv1y6f8r.js} +3 -3
- package/dist/cli/{index-ye43mdfm.js → index-r1yqx3h9.js} +1 -1
- package/dist/cli/{index-z5vas8c3.js → index-rkc1a0ym.js} +19 -19
- package/dist/cli/{index-mjn6aqqk.js → index-rp0dpvd2.js} +2 -2
- package/dist/cli/{index-3p3y55xg.js → index-rwdfk03c.js} +3 -3
- package/dist/cli/{index-59fcfpkh.js → index-tz3jzz2t.js} +1 -1
- package/dist/cli/{index-r1z8nrb6.js → index-v5gsvtvs.js} +5 -5
- package/dist/cli/{index-3eh2n3dx.js → index-wc34rqj0.js} +1 -1
- package/dist/cli/{index-3axdtaf0.js → index-z970hmyt.js} +2 -2
- package/dist/cli/index.js +19 -19
- package/dist/cli/{knowledge-escalator-pz2faktx.js → knowledge-escalator-s0y3m4sn.js} +6 -6
- package/dist/cli/{knowledge-events-s6s8qedx.js → knowledge-events-w7vjypwy.js} +4 -4
- package/dist/cli/{knowledge-store-dgv3xw3h.js → knowledge-store-bc2v557f.js} +1 -1
- package/dist/cli/{knowledge-validator-22qppdyv.js → knowledge-validator-adaamxzg.js} +2 -2
- package/dist/cli/{pending-delegations-4r21nf9d.js → pending-delegations-fzjr7p7f.js} +2 -2
- package/dist/cli/{pr-subscriptions-d52xy3zd.js → pr-subscriptions-tfwf461r.js} +1 -1
- package/dist/cli/{pr-workflow-gate-0de81kzw.js → pr-workflow-gate-heajnnkw.js} +19 -19
- package/dist/cli/{scan-cursor-ahbbejab.js → scan-cursor-512cqk7t.js} +2 -2
- package/dist/cli/{schema-17h2hcw9.js → schema-z9kd66wf.js} +1 -1
- package/dist/cli/{scope-persistence-gcn3zm5e.js → scope-persistence-8cpqcwg7.js} +5 -5
- package/dist/cli/{skill-generator-hkqr5qs7.js → skill-generator-1efdbkqh.js} +7 -7
- package/dist/cli/{snapshot-coordination-init-ms36zxv6.js → snapshot-coordination-init-fsf8h4d3.js} +19 -19
- package/dist/cli/{worktree-collision-ownership-7v7gg511.js → worktree-collision-ownership-zdpeepe4.js} +2 -2
- package/dist/cli/{worktree-isolation-nanamt25.js → worktree-isolation-zswrjstb.js} +19 -19
- package/dist/hooks/phase-complete-directive-gate.d.ts +13 -0
- package/dist/hooks/phase-directives.d.ts +31 -2
- package/dist/hooks/reviewer-verdict-parser.d.ts +6 -1
- package/dist/index.js +18 -10
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-hzav6zra.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-bqscvndc.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
DEFAULT_CI_DEADLINE_MS,
|
|
@@ -97,43 +97,43 @@ import {
|
|
|
97
97
|
handleWriteRetroCommand,
|
|
98
98
|
normalizeSwarmCommandInput,
|
|
99
99
|
resolveCommand
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-bswpngg6.js";
|
|
101
101
|
import"./index-5400m33a.js";
|
|
102
102
|
import"./index-7h01bkm6.js";
|
|
103
|
-
import"./index-
|
|
103
|
+
import"./index-krzb4zkx.js";
|
|
104
104
|
import"./index-cgpwjctj.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-r1yqx3h9.js";
|
|
106
|
+
import"./index-rwdfk03c.js";
|
|
107
107
|
import"./index-xnpjwc4h.js";
|
|
108
108
|
import"./index-txdagbh7.js";
|
|
109
109
|
import"./index-9br68j86.js";
|
|
110
110
|
import"./index-cw912re7.js";
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
111
|
+
import"./index-987ga2vy.js";
|
|
112
|
+
import"./index-v5gsvtvs.js";
|
|
113
|
+
import"./index-wc34rqj0.js";
|
|
114
114
|
import"./index-fyfbpz4f.js";
|
|
115
115
|
import"./index-gfbggp8k.js";
|
|
116
116
|
import"./index-0hgmsyfp.js";
|
|
117
117
|
import"./index-zsrtt42s.js";
|
|
118
|
-
import"./index-
|
|
118
|
+
import"./index-d6q0g0nd.js";
|
|
119
119
|
import"./index-fhh02gwx.js";
|
|
120
120
|
import"./index-nyn01yrz.js";
|
|
121
121
|
import"./index-b43rt5ph.js";
|
|
122
122
|
import"./index-q7sjgr1y.js";
|
|
123
|
-
import"./index-
|
|
124
|
-
import"./index-
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
123
|
+
import"./index-g0qsftdd.js";
|
|
124
|
+
import"./index-tz3jzz2t.js";
|
|
125
|
+
import"./index-knh5z9gb.js";
|
|
126
|
+
import"./index-qv1y6f8r.js";
|
|
127
127
|
import"./index-b3pmzbh1.js";
|
|
128
128
|
import"./index-2s7dvzff.js";
|
|
129
|
-
import"./index-
|
|
129
|
+
import"./index-ensg0pt6.js";
|
|
130
130
|
import"./index-bm5xrfnx.js";
|
|
131
131
|
import"./index-rtry5xyf.js";
|
|
132
|
-
import"./index-
|
|
132
|
+
import"./index-rp0dpvd2.js";
|
|
133
133
|
import"./index-3qf1vxtb.js";
|
|
134
134
|
import"./index-n832052r.js";
|
|
135
|
-
import"./index-
|
|
136
|
-
import"./index-
|
|
135
|
+
import"./index-z970hmyt.js";
|
|
136
|
+
import"./index-0hjtck07.js";
|
|
137
137
|
import"./index-fgp96k3r.js";
|
|
138
138
|
import"./index-br3mvbsa.js";
|
|
139
139
|
import"./index-bernkwgf.js";
|
|
@@ -141,7 +141,7 @@ import"./index-dvbf6fpn.js";
|
|
|
141
141
|
import"./index-rdm3px0g.js";
|
|
142
142
|
import"./index-ry16d01s.js";
|
|
143
143
|
import"./index-5qt9yf5w.js";
|
|
144
|
-
import"./index-
|
|
144
|
+
import"./index-q5q42mf3.js";
|
|
145
145
|
import"./index-vzm6zre7.js";
|
|
146
146
|
import"./index-ae75rja9.js";
|
|
147
147
|
import"./index-9ttqbhvw.js";
|
|
@@ -151,13 +151,13 @@ import"./index-nprdr0sm.js";
|
|
|
151
151
|
import"./index-nbdmdyke.js";
|
|
152
152
|
import"./index-1xnse449.js";
|
|
153
153
|
import"./index-ee6ydtfe.js";
|
|
154
|
-
import"./index-
|
|
154
|
+
import"./index-hp729z5v.js";
|
|
155
155
|
import"./index-0mhftbpp.js";
|
|
156
156
|
import"./index-a1w58b47.js";
|
|
157
157
|
import {
|
|
158
158
|
init_schema,
|
|
159
159
|
stripKnownSwarmPrefix
|
|
160
|
-
} from "./index-
|
|
160
|
+
} from "./index-9z0dc1t5.js";
|
|
161
161
|
import {
|
|
162
162
|
AGENT_TOOL_MAP,
|
|
163
163
|
ORCHESTRATOR_NAME,
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
effectiveRetrievalOutcomes,
|
|
7
7
|
readAuthoritativeKnowledgeCounterRollups
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-qv1y6f8r.js";
|
|
9
9
|
import {
|
|
10
10
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
11
11
|
validateSkillPath
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-ensg0pt6.js";
|
|
13
13
|
import {
|
|
14
14
|
computeOutcomeSignal,
|
|
15
15
|
readKnowledge,
|
|
16
16
|
resolveHiveKnowledgePath,
|
|
17
17
|
resolveSwarmKnowledgePath,
|
|
18
18
|
transactKnowledge
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-q5q42mf3.js";
|
|
20
20
|
import {
|
|
21
21
|
appendCappedJsonl,
|
|
22
22
|
resolveRetentionCap
|
|
@@ -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.170.
|
|
24
|
+
version: "7.170.1",
|
|
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",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-rp0dpvd2.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
loadPluginConfigWithMeta,
|
|
45
45
|
loadPluginConfigWithMetaAsync,
|
|
46
46
|
resetConfigAdvisoryDedup
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-hp729z5v.js";
|
|
48
48
|
import"./index-0mhftbpp.js";
|
|
49
49
|
import"./index-a1w58b47.js";
|
|
50
50
|
import {
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
TurboConfigSchema,
|
|
71
71
|
WorktreeIsolationConfigSchema,
|
|
72
72
|
resolveAutoReviewConfig
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-9z0dc1t5.js";
|
|
74
74
|
import {
|
|
75
75
|
ALL_AGENT_NAMES,
|
|
76
76
|
ALL_SUBAGENT_NAMES,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
protectedRoots,
|
|
26
26
|
redactDecisionLineForArchive,
|
|
27
27
|
stableCanonicalStringify
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-krzb4zkx.js";
|
|
29
29
|
import {
|
|
30
30
|
canonicalProjectKey,
|
|
31
31
|
closeGroupCommitWriter,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
readDoctorArtifact,
|
|
39
39
|
removeStraySwarmDir,
|
|
40
40
|
runConfigDoctor
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-r1yqx3h9.js";
|
|
42
42
|
import {
|
|
43
43
|
MAX_TRANSIENT_RETRIES,
|
|
44
44
|
archiveEvidence,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
updateTaskStatus,
|
|
81
81
|
validateProjectRoot,
|
|
82
82
|
withPlanLifecycleLock
|
|
83
|
-
} from "./index-
|
|
83
|
+
} from "./index-rwdfk03c.js";
|
|
84
84
|
import {
|
|
85
85
|
EvaluationTaskV1Schema,
|
|
86
86
|
GateAuditManifestV1Schema,
|
|
@@ -145,15 +145,15 @@ import {
|
|
|
145
145
|
retireSkill,
|
|
146
146
|
selectCandidateEntries,
|
|
147
147
|
syncBundledProjectSkillsIfMissingAsync
|
|
148
|
-
} from "./index-
|
|
148
|
+
} from "./index-987ga2vy.js";
|
|
149
149
|
import {
|
|
150
150
|
readRecentEscalations
|
|
151
|
-
} from "./index-
|
|
151
|
+
} from "./index-v5gsvtvs.js";
|
|
152
152
|
import {
|
|
153
153
|
alreadyCuratedThisGeneration,
|
|
154
154
|
claimNextScanBatch,
|
|
155
155
|
resolveCohortId
|
|
156
|
-
} from "./index-
|
|
156
|
+
} from "./index-wc34rqj0.js";
|
|
157
157
|
import {
|
|
158
158
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
159
159
|
CURATOR_INIT_PROMPT,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
listCoderSettlementWalStates,
|
|
186
186
|
recoverCoderSettlement,
|
|
187
187
|
recoverStaleCoderSettlements
|
|
188
|
-
} from "./index-
|
|
188
|
+
} from "./index-d6q0g0nd.js";
|
|
189
189
|
import {
|
|
190
190
|
parsePorcelainV2Snapshot,
|
|
191
191
|
resolveCommitCountSince,
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
transitionTaskWorkflowEvidence,
|
|
257
257
|
withTaskEvidenceTransaction,
|
|
258
258
|
writeWorkflowWalFile
|
|
259
|
-
} from "./index-
|
|
259
|
+
} from "./index-g0qsftdd.js";
|
|
260
260
|
import {
|
|
261
261
|
isPathUnderSwarmWorktreeBase,
|
|
262
262
|
listLiveLaneOwners,
|
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
recordLiveLaneOwner,
|
|
266
266
|
removeWorktree,
|
|
267
267
|
resolveWorktreeBaseDir
|
|
268
|
-
} from "./index-
|
|
268
|
+
} from "./index-tz3jzz2t.js";
|
|
269
269
|
import {
|
|
270
270
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
271
271
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -299,7 +299,7 @@ import {
|
|
|
299
299
|
scanBackgroundCoderReservationsForAdmission,
|
|
300
300
|
scanDelegationsForRecovery,
|
|
301
301
|
sweepStaleDelegations
|
|
302
|
-
} from "./index-
|
|
302
|
+
} from "./index-knh5z9gb.js";
|
|
303
303
|
import {
|
|
304
304
|
MAX_EVENT_LOG_ENTRIES,
|
|
305
305
|
_internals,
|
|
@@ -315,7 +315,7 @@ import {
|
|
|
315
315
|
recordKnowledgeEvent,
|
|
316
316
|
recordPhaseCloseIntent,
|
|
317
317
|
resolveKnowledgeEventsPath
|
|
318
|
-
} from "./index-
|
|
318
|
+
} from "./index-qv1y6f8r.js";
|
|
319
319
|
import {
|
|
320
320
|
estimateTokens,
|
|
321
321
|
readSwarmFileAsync,
|
|
@@ -341,7 +341,7 @@ import {
|
|
|
341
341
|
validateActionableFields,
|
|
342
342
|
validateLesson,
|
|
343
343
|
validateSkillPath
|
|
344
|
-
} from "./index-
|
|
344
|
+
} from "./index-ensg0pt6.js";
|
|
345
345
|
import {
|
|
346
346
|
MAX_CURATION_PROPOSALS,
|
|
347
347
|
authorizeCuration,
|
|
@@ -352,7 +352,7 @@ import {
|
|
|
352
352
|
} from "./index-rtry5xyf.js";
|
|
353
353
|
import {
|
|
354
354
|
resolveWorktreeIsolationConfig
|
|
355
|
-
} from "./index-
|
|
355
|
+
} from "./index-rp0dpvd2.js";
|
|
356
356
|
import {
|
|
357
357
|
RetrospectiveEvidenceSchema
|
|
358
358
|
} from "./index-3qf1vxtb.js";
|
|
@@ -362,7 +362,7 @@ import {
|
|
|
362
362
|
clearAllScopes,
|
|
363
363
|
clearScopeBindingFromDisk,
|
|
364
364
|
clearScopeBindings
|
|
365
|
-
} from "./index-
|
|
365
|
+
} from "./index-z970hmyt.js";
|
|
366
366
|
import {
|
|
367
367
|
clearPlanLedgerForReset,
|
|
368
368
|
computePlanStructureHash,
|
|
@@ -378,7 +378,7 @@ import {
|
|
|
378
378
|
replayFromLedgerWithStatus,
|
|
379
379
|
resolvePlanningProfile,
|
|
380
380
|
takeSnapshotEvent
|
|
381
|
-
} from "./index-
|
|
381
|
+
} from "./index-0hjtck07.js";
|
|
382
382
|
import {
|
|
383
383
|
CORE_EVENT_LOCKED,
|
|
384
384
|
appendCoreEventSync,
|
|
@@ -461,7 +461,7 @@ import {
|
|
|
461
461
|
transactFile,
|
|
462
462
|
transactKnowledge,
|
|
463
463
|
wordBigrams
|
|
464
|
-
} from "./index-
|
|
464
|
+
} from "./index-q5q42mf3.js";
|
|
465
465
|
import {
|
|
466
466
|
readTailJsonl,
|
|
467
467
|
readTailJsonlDetailed,
|
|
@@ -527,7 +527,7 @@ import {
|
|
|
527
527
|
loadGateOverrides,
|
|
528
528
|
loadPluginConfig,
|
|
529
529
|
loadPluginConfigWithMeta
|
|
530
|
-
} from "./index-
|
|
530
|
+
} from "./index-hp729z5v.js";
|
|
531
531
|
import {
|
|
532
532
|
init_git_executable,
|
|
533
533
|
resolveGitExecutable,
|
|
@@ -556,7 +556,7 @@ import {
|
|
|
556
556
|
resolveAutoReviewConfig,
|
|
557
557
|
resolveGeneratedAgentRole,
|
|
558
558
|
stripKnownSwarmPrefix
|
|
559
|
-
} from "./index-
|
|
559
|
+
} from "./index-9z0dc1t5.js";
|
|
560
560
|
import {
|
|
561
561
|
AGENT_TOOL_MAP,
|
|
562
562
|
ALL_AGENT_NAMES,
|
|
@@ -3170,7 +3170,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3170
3170
|
return null;
|
|
3171
3171
|
throw error2;
|
|
3172
3172
|
}
|
|
3173
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3173
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-heajnnkw.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3174
3174
|
if (!legacy)
|
|
3175
3175
|
return null;
|
|
3176
3176
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3240,7 +3240,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3240
3240
|
let recoveryState = null;
|
|
3241
3241
|
if (!currentAuthoritative) {
|
|
3242
3242
|
if (options.allowSalvagedRead) {
|
|
3243
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3243
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-heajnnkw.js");
|
|
3244
3244
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3245
3245
|
}
|
|
3246
3246
|
if (!recoveryState) {
|
|
@@ -13874,7 +13874,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
13874
13874
|
return extracted === expectedSessionId;
|
|
13875
13875
|
}
|
|
13876
13876
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
13877
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
13877
|
+
const collisionOwnership = await import("./worktree-collision-ownership-zdpeepe4.js");
|
|
13878
13878
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
13879
13879
|
}
|
|
13880
13880
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -14300,7 +14300,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
14300
14300
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
14301
14301
|
if (laneProfile) {
|
|
14302
14302
|
try {
|
|
14303
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
14303
|
+
const { writeLaneProfileToDiskReal } = await import("./core-mz3rae1q.js");
|
|
14304
14304
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
14305
14305
|
} catch {}
|
|
14306
14306
|
}
|
|
@@ -15271,7 +15271,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
15271
15271
|
}
|
|
15272
15272
|
clearWorktreeMergeStatus(statusKey);
|
|
15273
15273
|
try {
|
|
15274
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
15274
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-mz3rae1q.js");
|
|
15275
15275
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
15276
15276
|
} catch {}
|
|
15277
15277
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -21795,7 +21795,7 @@ function getDisplayFinalPromptPressure() {
|
|
|
21795
21795
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
21796
21796
|
const map = new Map;
|
|
21797
21797
|
try {
|
|
21798
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
21798
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-tfwf461r.js");
|
|
21799
21799
|
const records = await listActive2(directory);
|
|
21800
21800
|
for (const record of records) {
|
|
21801
21801
|
if (record.sessionID !== sessionID)
|
|
@@ -38114,9 +38114,9 @@ function hashContent(content) {
|
|
|
38114
38114
|
return createHash23("sha1").update(content).digest("hex");
|
|
38115
38115
|
}
|
|
38116
38116
|
async function loadConfigForPolicyCurator(directory) {
|
|
38117
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
38117
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-z9kd66wf.js");
|
|
38118
38118
|
try {
|
|
38119
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
38119
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-as43fjha.js");
|
|
38120
38120
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
38121
38121
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
38122
38122
|
} catch {
|
|
@@ -41174,7 +41174,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
41174
41174
|
const seam = _internals35.createCuratorLLMDelegate;
|
|
41175
41175
|
if (seam)
|
|
41176
41176
|
return seam(directory, mode, sessionId);
|
|
41177
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
41177
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-xaetdtgf.js");
|
|
41178
41178
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
41179
41179
|
}
|
|
41180
41180
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -41569,7 +41569,7 @@ async function runFinalizeStage(ctx) {
|
|
|
41569
41569
|
}
|
|
41570
41570
|
}
|
|
41571
41571
|
try {
|
|
41572
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
41572
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-z9kd66wf.js");
|
|
41573
41573
|
const { config: pmLoadedConfig } = _internals35.loadPluginConfigWithMeta(ctx.directory);
|
|
41574
41574
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
41575
41575
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -43386,7 +43386,7 @@ function serializeAgentSession(s) {
|
|
|
43386
43386
|
}
|
|
43387
43387
|
async function writeSnapshot(directory, state) {
|
|
43388
43388
|
try {
|
|
43389
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
43389
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-fsf8h4d3.js");
|
|
43390
43390
|
await ensureSnapshotCoordinationReady(directory);
|
|
43391
43391
|
const snapshot = {
|
|
43392
43392
|
version: 3,
|
|
@@ -46042,7 +46042,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
46042
46042
|
};
|
|
46043
46043
|
}
|
|
46044
46044
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
46045
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
46045
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-as43fjha.js");
|
|
46046
46046
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
46047
46047
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
46048
46048
|
if (sweepConfig?.enabled === false)
|
|
@@ -47166,7 +47166,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
47166
47166
|
}
|
|
47167
47167
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
47168
47168
|
try {
|
|
47169
|
-
const skillModule = await import("./skill-generator-
|
|
47169
|
+
const skillModule = await import("./skill-generator-1efdbkqh.js");
|
|
47170
47170
|
for (const cand of skillCandidates) {
|
|
47171
47171
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
47172
47172
|
continue;
|
|
@@ -47638,7 +47638,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
47638
47638
|
} catch {}
|
|
47639
47639
|
}
|
|
47640
47640
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
47641
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
47641
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-s0y3m4sn.js");
|
|
47642
47642
|
for (const { id } of contradictedEntries) {
|
|
47643
47643
|
try {
|
|
47644
47644
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -48470,7 +48470,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
48470
48470
|
warnings.push("Failed to collect knowledge summary.");
|
|
48471
48471
|
}
|
|
48472
48472
|
try {
|
|
48473
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
48473
|
+
const { getScanStatus } = await import("./scan-cursor-512cqk7t.js");
|
|
48474
48474
|
const scanStatus = await getScanStatus(directory);
|
|
48475
48475
|
if (scanStatus.remaining_estimate > 0) {
|
|
48476
48476
|
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.`);
|
|
@@ -48642,9 +48642,9 @@ var _internals51 = {
|
|
|
48642
48642
|
verifyPostMortemKnowledgeActions,
|
|
48643
48643
|
repairPostMortemActions,
|
|
48644
48644
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
48645
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
48645
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-z9kd66wf.js");
|
|
48646
48646
|
try {
|
|
48647
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
48647
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-as43fjha.js");
|
|
48648
48648
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
48649
48649
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
48650
48650
|
} catch {
|
|
@@ -48652,11 +48652,11 @@ var _internals51 = {
|
|
|
48652
48652
|
}
|
|
48653
48653
|
},
|
|
48654
48654
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
48655
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
48655
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-x28dw2mf.js");
|
|
48656
48656
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
48657
48657
|
},
|
|
48658
48658
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
48659
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
48659
|
+
const { checkHivePromotions } = await import("./hive-promoter-sfzrcn03.js");
|
|
48660
48660
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
48661
48661
|
},
|
|
48662
48662
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -48665,7 +48665,7 @@ var _internals51 = {
|
|
|
48665
48665
|
activateProposal,
|
|
48666
48666
|
listSkills: listSkills2,
|
|
48667
48667
|
sanitizeSlug
|
|
48668
|
-
} = await import("./skill-generator-
|
|
48668
|
+
} = await import("./skill-generator-1efdbkqh.js");
|
|
48669
48669
|
const result = {
|
|
48670
48670
|
approved: [],
|
|
48671
48671
|
rejected: [],
|
|
@@ -57538,9 +57538,9 @@ var _internals60 = {
|
|
|
57538
57538
|
loadPluginConfigWithMeta,
|
|
57539
57539
|
loadCuratorDeps: async () => {
|
|
57540
57540
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
57541
|
-
import("./schema-
|
|
57542
|
-
import("./curator-
|
|
57543
|
-
import("./curator-llm-factory-
|
|
57541
|
+
import("./schema-z9kd66wf.js"),
|
|
57542
|
+
import("./curator-x28dw2mf.js"),
|
|
57543
|
+
import("./curator-llm-factory-xaetdtgf.js")
|
|
57544
57544
|
]);
|
|
57545
57545
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
57546
57546
|
}
|
|
@@ -58537,7 +58537,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
58537
58537
|
let scanCompleted = false;
|
|
58538
58538
|
let scanRemaining = 0;
|
|
58539
58539
|
try {
|
|
58540
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
58540
|
+
const { getScanStatus } = await import("./scan-cursor-512cqk7t.js");
|
|
58541
58541
|
const status = await getScanStatus(directory);
|
|
58542
58542
|
scanGeneration = status.generation;
|
|
58543
58543
|
scanCompleted = status.completed;
|
|
@@ -58547,10 +58547,10 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
58547
58547
|
try {
|
|
58548
58548
|
const { isLinked: isLinked2 } = await import("./knowledge-link-rkxfrmhm.js");
|
|
58549
58549
|
if (isLinked2(directory)) {
|
|
58550
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
58550
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-z9kd66wf.js");
|
|
58551
58551
|
let config;
|
|
58552
58552
|
try {
|
|
58553
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
58553
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-as43fjha.js");
|
|
58554
58554
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
58555
58555
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
58556
58556
|
} catch {
|
|
@@ -59948,7 +59948,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
59948
59948
|
const result = runConfigDoctor(config, directory);
|
|
59949
59949
|
let output;
|
|
59950
59950
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
59951
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
59951
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-7v7hvdgw.js");
|
|
59952
59952
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
59953
59953
|
applyLossy: true
|
|
59954
59954
|
});
|
|
@@ -60902,7 +60902,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
60902
60902
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
60903
60903
|
}
|
|
60904
60904
|
async function handleEvidenceSummaryCommand(directory) {
|
|
60905
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
60905
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-kd22mp04.js");
|
|
60906
60906
|
const artifact = await buildEvidenceSummary(directory);
|
|
60907
60907
|
if (!artifact) {
|
|
60908
60908
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -80906,7 +80906,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
80906
80906
|
}
|
|
80907
80907
|
const sdkOpts = signal ? { signal } : {};
|
|
80908
80908
|
try {
|
|
80909
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
80909
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-rkc1a0ym.js");
|
|
80910
80910
|
const createResult = await client.session.create({
|
|
80911
80911
|
...sessionId ? {
|
|
80912
80912
|
body: {
|
|
@@ -97739,7 +97739,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
97739
97739
|
async function handleHelpCommand(ctx) {
|
|
97740
97740
|
const targetCommand = ctx.args.join(" ");
|
|
97741
97741
|
if (!targetCommand) {
|
|
97742
|
-
const { buildHelpText } = await import("./index-
|
|
97742
|
+
const { buildHelpText } = await import("./index-8b2aqj41.js");
|
|
97743
97743
|
return buildHelpText();
|
|
97744
97744
|
}
|
|
97745
97745
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -97753,7 +97753,7 @@ async function handleHelpCommand(ctx) {
|
|
|
97753
97753
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
97754
97754
|
}
|
|
97755
97755
|
const similar = _internals24.findSimilarCommands(targetCommand);
|
|
97756
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
97756
|
+
const { buildHelpText: fullHelp } = await import("./index-8b2aqj41.js");
|
|
97757
97757
|
if (similar.length > 0) {
|
|
97758
97758
|
return `Command '/swarm ${targetCommand}' not found.
|
|
97759
97759
|
|
|
@@ -98068,7 +98068,7 @@ var COMMAND_REGISTRY = {
|
|
|
98068
98068
|
},
|
|
98069
98069
|
"guardrail explain": {
|
|
98070
98070
|
handler: async (ctx) => {
|
|
98071
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
98071
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-11zswj2c.js");
|
|
98072
98072
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
98073
98073
|
},
|
|
98074
98074
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -98078,7 +98078,7 @@ var COMMAND_REGISTRY = {
|
|
|
98078
98078
|
},
|
|
98079
98079
|
"guardrail reset": {
|
|
98080
98080
|
handler: async (ctx) => {
|
|
98081
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
98081
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-7affkkeq.js");
|
|
98082
98082
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
98083
98083
|
},
|
|
98084
98084
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -98099,7 +98099,7 @@ var COMMAND_REGISTRY = {
|
|
|
98099
98099
|
},
|
|
98100
98100
|
"guardrail-log": {
|
|
98101
98101
|
handler: async (ctx) => {
|
|
98102
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
98102
|
+
const { handleGuardrailLog } = await import("./guardrail-log-ykwrswvw.js");
|
|
98103
98103
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
98104
98104
|
},
|
|
98105
98105
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -101702,11 +101702,11 @@ function createResearcherAgent(model, customPrompt, customAppendPrompt) {
|
|
|
101702
101702
|
}
|
|
101703
101703
|
|
|
101704
101704
|
// src/agents/reviewer-directive-compliance.ts
|
|
101705
|
-
var DIRECTIVE_COMPLIANCE_OUTPUT_SPEC = `DIRECTIVE_COMPLIANCE: one line per
|
|
101705
|
+
var DIRECTIVE_COMPLIANCE_OUTPUT_SPEC = `DIRECTIVE_COMPLIANCE: one line per listed obligation. Copy the encoded trace_id and entry_id tokens exactly from the DIRECTIVES TO VERIFY block. Use exactly one of:
|
|
101706
101706
|
VERIFIED:<trace_id>:<entry_id> evidence=<file:line | predicate_passed>
|
|
101707
101707
|
VIOLATED:<trace_id>:<entry_id> evidence=<file:line | failing_predicate>
|
|
101708
101708
|
N/A:<trace_id>:<entry_id> reason=<why it does not apply to this change>
|
|
101709
|
-
Every listed trace_id + entry_id pair MUST appear exactly once
|
|
101709
|
+
Every listed trace_id + entry_id pair MUST appear exactly once in your verdicts. If a directive carries a verification_predicate, you MUST run it and report predicate_passed / failing_predicate as the evidence. Omitting a listed CRITICAL pair is itself a VIOLATED verdict.`;
|
|
101710
101710
|
|
|
101711
101711
|
// src/agents/reviewer.ts
|
|
101712
101712
|
var REVIEWER_MEMORY_OUTCOME_GUIDANCE = "Use `swarm_memory_outcome` after evaluating recalled memory or a graph answer. When overturning a memory-backed claim, record `corrected` and include the correction text and relevant file/symbol anchors.";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-g0qsftdd.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
20
|
} from "./index-b3pmzbh1.js";
|
|
@@ -489,7 +489,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
489
489
|
awaitingMergeByCallID,
|
|
490
490
|
cleanupStandardWorktreeForCallId,
|
|
491
491
|
standardWorktreeByCallID
|
|
492
|
-
} = await import("./worktree-isolation-
|
|
492
|
+
} = await import("./worktree-isolation-zswrjstb.js");
|
|
493
493
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
494
494
|
if (hasResidue)
|
|
495
495
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -613,7 +613,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
613
613
|
awaitingMergeByCallID,
|
|
614
614
|
finishStandardWorktreeDispatch,
|
|
615
615
|
standardWorktreeByCallID
|
|
616
|
-
} = await import("./worktree-isolation-
|
|
616
|
+
} = await import("./worktree-isolation-zswrjstb.js");
|
|
617
617
|
const descriptor = wal.worktree;
|
|
618
618
|
const reconstructedDispatch = {
|
|
619
619
|
callID: descriptor.callID,
|