opencode-swarm 7.136.5 → 7.137.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/dist/agents/agent-output-schema.d.ts +2 -2
- package/dist/cli/{config-doctor-n3hatm9d.js → config-doctor-vyx82nx2.js} +2 -2
- package/dist/cli/{core-jpjk2qvt.js → core-6w5sd5bc.js} +1 -1
- package/dist/cli/{curation-policy-c4g08bg1.js → curation-policy-8tvs4pa0.js} +7 -6
- package/dist/cli/{curator-jc5cc980.js → curator-43xqs75k.js} +25 -25
- package/dist/cli/{curator-llm-factory-atfnhbn6.js → curator-llm-factory-8nywfdsh.js} +25 -25
- package/dist/cli/{evidence-summary-service-nse06dqr.js → evidence-summary-service-85gw9p2m.js} +7 -7
- package/dist/cli/{gate-evidence-kdygjr56.js → gate-evidence-s2kytsrj.js} +4 -4
- package/dist/cli/{guardrail-explain-v6f8efve.js → guardrail-explain-8kkqz8tx.js} +26 -26
- package/dist/cli/{guardrail-log-0mrq14g9.js → guardrail-log-e2v9qw71.js} +3 -3
- package/dist/cli/{hive-promoter-wyejhz8b.js → hive-promoter-jt9ky0hn.js} +25 -25
- package/dist/cli/{index-45y0y3xh.js → index-1zrb3vt2.js} +7 -7
- package/dist/cli/{index-d2sf9an1.js → index-5r6kkhd7.js} +4 -4
- package/dist/cli/{index-ne28wyyc.js → index-5wjw05dy.js} +2 -2
- package/dist/cli/{index-84se71v1.js → index-72wzb81c.js} +3 -3
- package/dist/cli/{index-7t3vjw5e.js → index-877ah4kx.js} +1 -1
- package/dist/cli/{index-tncy55bp.js → index-8ehyt3rx.js} +1 -1
- package/dist/cli/{index-j7ja83v5.js → index-91kk2e9j.js} +1 -1
- package/dist/cli/{index-hbzh7yyz.js → index-92v63zzr.js} +55 -55
- package/dist/cli/{index-bqan4y2y.js → index-aze9n64z.js} +2 -2
- package/dist/cli/{index-tr0ctbhq.js → index-d00q9kpq.js} +5 -5
- package/dist/cli/{index-akc6rp3x.js → index-d0nhz96c.js} +2 -2
- package/dist/cli/{index-hh34tyv7.js → index-dxatvs3f.js} +1 -1
- package/dist/cli/{index-yj61bped.js → index-f24r6yqk.js} +3 -3
- package/dist/cli/{index-qhbr4h5n.js → index-fgkhpdc6.js} +6 -6
- package/dist/cli/{index-w6j1n5az.js → index-gv00q5gc.js} +1 -1
- package/dist/cli/index-h5sbn1zr.js +1670 -0
- package/dist/cli/{index-xvcctb2t.js → index-j2ghsdzz.js} +27 -27
- package/dist/cli/{index-f5qs217h.js → index-j6ewv2pe.js} +1 -1
- package/dist/cli/{index-nfm9f10v.js → index-k3mezk96.js} +1 -1
- package/dist/cli/{index-6kd0ezgd.js → index-mg26zd8x.js} +2 -2
- package/dist/cli/{index-eeb35dnx.js → index-mwdzkr6k.js} +3 -2
- package/dist/cli/{index-b3jfcptk.js → index-n3h6rmbe.js} +1 -1
- package/dist/cli/{index-vm05set2.js → index-p124rnwb.js} +4 -4
- package/dist/cli/{index-pyz1p8qv.js → index-pcwjz5de.js} +1 -1
- package/dist/cli/{index-kym0cctr.js → index-qy3rgmkc.js} +1 -1
- package/dist/cli/{index-d61h3f3h.js → index-s3j9fsab.js} +2 -2
- package/dist/cli/{index-zzhyws9g.js → index-vft1pg34.js} +1 -1
- package/dist/cli/{index-8f4346kf.js → index-wg98bsxz.js} +2 -2
- package/dist/cli/{index-xp2pfbpq.js → index-y25nsyaq.js} +1 -1
- package/dist/cli/index.js +25 -25
- package/dist/cli/{knowledge-escalator-2xe8z24p.js → knowledge-escalator-9k0kbx6b.js} +8 -7
- package/dist/cli/{knowledge-events-wecrshsx.js → knowledge-events-8nz3sa2d.js} +6 -5
- package/dist/cli/{knowledge-link-zr40rnwr.js → knowledge-link-t94b79qe.js} +5 -4
- package/dist/cli/{knowledge-store-9f74whxw.js → knowledge-store-esghe3f9.js} +6 -5
- package/dist/cli/{knowledge-validator-4ng7x9dr.js → knowledge-validator-bjxag1jp.js} +9 -8
- package/dist/cli/{pending-delegations-0h5b18p7.js → pending-delegations-kshh66s2.js} +3 -3
- package/dist/cli/{pr-subscriptions-jn0h047q.js → pr-subscriptions-5fpzz4f3.js} +3 -3
- package/dist/cli/{runner-deeswadt.js → runner-d820ws7y.js} +5 -5
- package/dist/cli/{scan-cursor-yzj9n225.js → scan-cursor-t212v00f.js} +7 -6
- package/dist/cli/{schema-cr1nr1w0.js → schema-11gyrec3.js} +1 -1
- package/dist/cli/{scope-persistence-5xc9ntdh.js → scope-persistence-sjz200dt.js} +4 -4
- package/dist/cli/{skill-generator-ybncj9et.js → skill-generator-a07hpmw6.js} +10 -9
- package/dist/cli/{telemetry-6678gya0.js → telemetry-h7h7f0ez.js} +2 -1
- package/dist/cli/{worktree-collision-ownership-wt7cc850.js → worktree-collision-ownership-xzwab4xt.js} +3 -3
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/evidence-schema.d.ts +103 -103
- package/dist/config/plan-schema.d.ts +10 -10
- package/dist/config/schema.d.ts +8 -8
- package/dist/consensus/contracts.d.ts +3 -3
- package/dist/hooks/hive-promoter.d.ts +1 -1
- package/dist/index.js +72 -72
- package/dist/observability/catalog.d.ts +84 -0
- package/dist/observability/envelope.d.ts +401 -0
- package/dist/observability/ids.d.ts +97 -0
- package/dist/observability/index.d.ts +58 -0
- package/dist/observability/legacy.d.ts +68 -0
- package/dist/observability/observe.d.ts +112 -0
- package/dist/observability/otel-mapping.d.ts +48 -0
- package/dist/observability/relationships.d.ts +44 -0
- package/dist/observability/sampling.d.ts +77 -0
- package/dist/summaries/schema.d.ts +2 -2
- package/dist/telemetry.d.ts +4 -1
- package/package.json +3 -2
- package/dist/cli/index-cze4bq1x.js +0 -358
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
resolveExecutableFromPath,
|
|
13
13
|
runEvaluation,
|
|
14
14
|
runExternalTool
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-k3mezk96.js";
|
|
16
16
|
import {
|
|
17
17
|
stableCanonicalStringify
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-j6ewv2pe.js";
|
|
19
19
|
import {
|
|
20
20
|
detectStraySwarmDirs,
|
|
21
21
|
readDoctorArtifact,
|
|
22
22
|
removeStraySwarmDir,
|
|
23
23
|
runConfigDoctor
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-91kk2e9j.js";
|
|
25
25
|
import {
|
|
26
26
|
MAX_TRANSIENT_RETRIES,
|
|
27
27
|
archiveEvidence,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
savePlan,
|
|
59
59
|
transientBackoff,
|
|
60
60
|
validateProjectRoot
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-1zrb3vt2.js";
|
|
62
62
|
import {
|
|
63
63
|
EvaluationTaskV1Schema,
|
|
64
64
|
GateAuditManifestV1Schema,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
saveGateAuditResult,
|
|
76
76
|
savePromotionDecision,
|
|
77
77
|
saveTaskSetSnapshot
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-5wjw05dy.js";
|
|
79
79
|
import {
|
|
80
80
|
canonicalHash,
|
|
81
81
|
canonicalJson,
|
|
@@ -113,15 +113,15 @@ import {
|
|
|
113
113
|
retireSkill,
|
|
114
114
|
selectCandidateEntries,
|
|
115
115
|
syncBundledProjectSkillsIfMissingAsync
|
|
116
|
-
} from "./index-
|
|
116
|
+
} from "./index-f24r6yqk.js";
|
|
117
117
|
import {
|
|
118
118
|
readRecentEscalations
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-d00q9kpq.js";
|
|
120
120
|
import {
|
|
121
121
|
alreadyCuratedThisGeneration,
|
|
122
122
|
claimNextScanBatch,
|
|
123
123
|
resolveCohortId
|
|
124
|
-
} from "./index-
|
|
124
|
+
} from "./index-wg98bsxz.js";
|
|
125
125
|
import {
|
|
126
126
|
CURATOR_INIT_PROMPT,
|
|
127
127
|
CURATOR_PHASE_PROMPT,
|
|
@@ -174,11 +174,11 @@ import {
|
|
|
174
174
|
validateActionableFields,
|
|
175
175
|
validateLesson,
|
|
176
176
|
validateSkillPath
|
|
177
|
-
} from "./index-
|
|
177
|
+
} from "./index-p124rnwb.js";
|
|
178
178
|
import {
|
|
179
179
|
authorizeCuration,
|
|
180
180
|
buildConfigFingerprintInput
|
|
181
|
-
} from "./index-
|
|
181
|
+
} from "./index-mg26zd8x.js";
|
|
182
182
|
import {
|
|
183
183
|
cohortConfigFingerprint
|
|
184
184
|
} from "./index-rtry5xyf.js";
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
transactFile,
|
|
212
212
|
transactKnowledge,
|
|
213
213
|
wordBigrams
|
|
214
|
-
} from "./index-
|
|
214
|
+
} from "./index-fgkhpdc6.js";
|
|
215
215
|
import {
|
|
216
216
|
MAX_EVENT_LOG_ENTRIES,
|
|
217
217
|
_internals,
|
|
@@ -221,7 +221,7 @@ import {
|
|
|
221
221
|
recordHiveKnowledgeEvent,
|
|
222
222
|
recordKnowledgeEvent,
|
|
223
223
|
resolveKnowledgeEventsPath
|
|
224
|
-
} from "./index-
|
|
224
|
+
} from "./index-72wzb81c.js";
|
|
225
225
|
import {
|
|
226
226
|
resolveHiveDataDir,
|
|
227
227
|
resolveHiveEventsPath,
|
|
@@ -237,16 +237,16 @@ import {
|
|
|
237
237
|
resolveLinkDir,
|
|
238
238
|
sanitizeLinkId,
|
|
239
239
|
writeLinkPointer
|
|
240
|
-
} from "./index-
|
|
240
|
+
} from "./index-vft1pg34.js";
|
|
241
241
|
import {
|
|
242
242
|
atomicWriteFile
|
|
243
|
-
} from "./index-
|
|
243
|
+
} from "./index-n3h6rmbe.js";
|
|
244
244
|
import {
|
|
245
245
|
exports_loader,
|
|
246
246
|
init_loader,
|
|
247
247
|
loadPluginConfig,
|
|
248
248
|
loadPluginConfigWithMeta
|
|
249
|
-
} from "./index-
|
|
249
|
+
} from "./index-pcwjz5de.js";
|
|
250
250
|
import {
|
|
251
251
|
RetrospectiveEvidenceSchema
|
|
252
252
|
} from "./index-k5jrywpr.js";
|
|
@@ -262,7 +262,7 @@ import {
|
|
|
262
262
|
package_default,
|
|
263
263
|
resolveAutoReviewConfig,
|
|
264
264
|
stripKnownSwarmPrefix
|
|
265
|
-
} from "./index-
|
|
265
|
+
} from "./index-mwdzkr6k.js";
|
|
266
266
|
import {
|
|
267
267
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
268
268
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -278,13 +278,13 @@ import {
|
|
|
278
278
|
listActive,
|
|
279
279
|
subscribe,
|
|
280
280
|
unsubscribe
|
|
281
|
-
} from "./index-
|
|
281
|
+
} from "./index-qy3rgmkc.js";
|
|
282
282
|
import {
|
|
283
283
|
MAX_PENDING_SCOPE_BINDINGS,
|
|
284
284
|
clearAllScopes,
|
|
285
285
|
clearScopeBindingFromDisk,
|
|
286
286
|
clearScopeBindings
|
|
287
|
-
} from "./index-
|
|
287
|
+
} from "./index-gv00q5gc.js";
|
|
288
288
|
import {
|
|
289
289
|
appendLedgerEvent,
|
|
290
290
|
computePlanHash,
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
292
292
|
derivePlanId,
|
|
293
293
|
initLedger,
|
|
294
294
|
takeSnapshotEvent
|
|
295
|
-
} from "./index-
|
|
295
|
+
} from "./index-s3j9fsab.js";
|
|
296
296
|
import {
|
|
297
297
|
PlanSchema
|
|
298
298
|
} from "./index-1kz6da87.js";
|
|
@@ -319,7 +319,7 @@ import {
|
|
|
319
319
|
import {
|
|
320
320
|
findByBatchId,
|
|
321
321
|
readDelegations
|
|
322
|
-
} from "./index-
|
|
322
|
+
} from "./index-877ah4kx.js";
|
|
323
323
|
import {
|
|
324
324
|
readSwarmFileAsync,
|
|
325
325
|
safeHook,
|
|
@@ -328,19 +328,19 @@ import {
|
|
|
328
328
|
import {
|
|
329
329
|
tryAcquireLock,
|
|
330
330
|
withEvidenceLock
|
|
331
|
-
} from "./index-
|
|
331
|
+
} from "./index-8ehyt3rx.js";
|
|
332
332
|
import {
|
|
333
333
|
require_proper_lockfile
|
|
334
334
|
} from "./index-7g4c7s5r.js";
|
|
335
|
-
import {
|
|
336
|
-
exports_external,
|
|
337
|
-
init_zod
|
|
338
|
-
} from "./index-bpmtbmy9.js";
|
|
339
335
|
import {
|
|
340
336
|
emit,
|
|
341
337
|
getLastHeartbeat,
|
|
342
338
|
telemetry
|
|
343
|
-
} from "./index-
|
|
339
|
+
} from "./index-h5sbn1zr.js";
|
|
340
|
+
import {
|
|
341
|
+
exports_external,
|
|
342
|
+
init_zod
|
|
343
|
+
} from "./index-bpmtbmy9.js";
|
|
344
344
|
import {
|
|
345
345
|
bunSpawn,
|
|
346
346
|
bunWrite,
|
|
@@ -6106,7 +6106,7 @@ function hasActiveEpicMode(sessionID) {
|
|
|
6106
6106
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
6107
6107
|
const map = new Map;
|
|
6108
6108
|
try {
|
|
6109
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
6109
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-5fpzz4f3.js");
|
|
6110
6110
|
const records = await listActive2(directory);
|
|
6111
6111
|
for (const record of records) {
|
|
6112
6112
|
if (record.sessionID !== sessionID)
|
|
@@ -18157,7 +18157,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
18157
18157
|
};
|
|
18158
18158
|
}
|
|
18159
18159
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
18160
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
18160
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-aze9n64z.js");
|
|
18161
18161
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
18162
18162
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
18163
18163
|
if (sweepConfig?.enabled === false)
|
|
@@ -19750,7 +19750,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
19750
19750
|
}
|
|
19751
19751
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
19752
19752
|
try {
|
|
19753
|
-
const skillModule = await import("./skill-generator-
|
|
19753
|
+
const skillModule = await import("./skill-generator-a07hpmw6.js");
|
|
19754
19754
|
for (const cand of skillCandidates) {
|
|
19755
19755
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
19756
19756
|
continue;
|
|
@@ -20210,7 +20210,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
20210
20210
|
} catch {}
|
|
20211
20211
|
}
|
|
20212
20212
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
20213
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
20213
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-9k0kbx6b.js");
|
|
20214
20214
|
for (const { id } of contradictedEntries) {
|
|
20215
20215
|
try {
|
|
20216
20216
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -21029,7 +21029,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
21029
21029
|
warnings.push("Failed to collect knowledge summary.");
|
|
21030
21030
|
}
|
|
21031
21031
|
try {
|
|
21032
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
21032
|
+
const { getScanStatus } = await import("./scan-cursor-t212v00f.js");
|
|
21033
21033
|
const scanStatus = await getScanStatus(directory);
|
|
21034
21034
|
if (scanStatus.remaining_estimate > 0) {
|
|
21035
21035
|
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.`);
|
|
@@ -21201,9 +21201,9 @@ var _internals24 = {
|
|
|
21201
21201
|
verifyPostMortemKnowledgeActions,
|
|
21202
21202
|
repairPostMortemActions,
|
|
21203
21203
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
21204
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
21204
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-11gyrec3.js");
|
|
21205
21205
|
try {
|
|
21206
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
21206
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-aze9n64z.js");
|
|
21207
21207
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
21208
21208
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
21209
21209
|
} catch {
|
|
@@ -21211,11 +21211,11 @@ var _internals24 = {
|
|
|
21211
21211
|
}
|
|
21212
21212
|
},
|
|
21213
21213
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
21214
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
21214
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-43xqs75k.js");
|
|
21215
21215
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
21216
21216
|
},
|
|
21217
21217
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
21218
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
21218
|
+
const { checkHivePromotions } = await import("./hive-promoter-jt9ky0hn.js");
|
|
21219
21219
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
21220
21220
|
},
|
|
21221
21221
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -21224,7 +21224,7 @@ var _internals24 = {
|
|
|
21224
21224
|
activateProposal,
|
|
21225
21225
|
listSkills: listSkills2,
|
|
21226
21226
|
sanitizeSlug
|
|
21227
|
-
} = await import("./skill-generator-
|
|
21227
|
+
} = await import("./skill-generator-a07hpmw6.js");
|
|
21228
21228
|
const result = {
|
|
21229
21229
|
approved: [],
|
|
21230
21230
|
rejected: [],
|
|
@@ -23851,9 +23851,9 @@ function hashContent(content) {
|
|
|
23851
23851
|
return createHash9("sha1").update(content).digest("hex");
|
|
23852
23852
|
}
|
|
23853
23853
|
async function loadConfigForPolicyCurator(directory) {
|
|
23854
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
23854
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-11gyrec3.js");
|
|
23855
23855
|
try {
|
|
23856
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
23856
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-aze9n64z.js");
|
|
23857
23857
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
23858
23858
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
23859
23859
|
} catch {
|
|
@@ -27198,7 +27198,7 @@ async function runFinalizeStage(ctx) {
|
|
|
27198
27198
|
}
|
|
27199
27199
|
}
|
|
27200
27200
|
try {
|
|
27201
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
27201
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-11gyrec3.js");
|
|
27202
27202
|
const { config: pmLoadedConfig } = _internals34.loadPluginConfigWithMeta(ctx.directory);
|
|
27203
27203
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
27204
27204
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -29428,9 +29428,9 @@ var _internals39 = {
|
|
|
29428
29428
|
loadPluginConfigWithMeta,
|
|
29429
29429
|
loadCuratorDeps: async () => {
|
|
29430
29430
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
29431
|
-
import("./schema-
|
|
29432
|
-
import("./curator-
|
|
29433
|
-
import("./curator-llm-factory-
|
|
29431
|
+
import("./schema-11gyrec3.js"),
|
|
29432
|
+
import("./curator-43xqs75k.js"),
|
|
29433
|
+
import("./curator-llm-factory-8nywfdsh.js")
|
|
29434
29434
|
]);
|
|
29435
29435
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
29436
29436
|
}
|
|
@@ -30335,7 +30335,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
30335
30335
|
let scanCompleted = false;
|
|
30336
30336
|
let scanRemaining = 0;
|
|
30337
30337
|
try {
|
|
30338
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
30338
|
+
const { getScanStatus } = await import("./scan-cursor-t212v00f.js");
|
|
30339
30339
|
const status = await getScanStatus(directory);
|
|
30340
30340
|
scanGeneration = status.generation;
|
|
30341
30341
|
scanCompleted = status.completed;
|
|
@@ -30343,19 +30343,19 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
30343
30343
|
} catch {}
|
|
30344
30344
|
let configMatch = null;
|
|
30345
30345
|
try {
|
|
30346
|
-
const { isLinked: isLinked2 } = await import("./knowledge-link-
|
|
30346
|
+
const { isLinked: isLinked2 } = await import("./knowledge-link-t94b79qe.js");
|
|
30347
30347
|
if (isLinked2(directory)) {
|
|
30348
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
30348
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-11gyrec3.js");
|
|
30349
30349
|
let config;
|
|
30350
30350
|
try {
|
|
30351
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
30351
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-aze9n64z.js");
|
|
30352
30352
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
30353
30353
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
30354
30354
|
} catch {
|
|
30355
30355
|
config = KnowledgeConfigSchema2.parse({});
|
|
30356
30356
|
}
|
|
30357
30357
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
30358
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
30358
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-8tvs4pa0.js");
|
|
30359
30359
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
30360
30360
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
30361
30361
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -31566,7 +31566,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
31566
31566
|
const result = runConfigDoctor(config, directory);
|
|
31567
31567
|
let output;
|
|
31568
31568
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
31569
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
31569
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-vyx82nx2.js");
|
|
31570
31570
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
31571
31571
|
applyLossy: true
|
|
31572
31572
|
});
|
|
@@ -32403,7 +32403,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
32403
32403
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
32404
32404
|
}
|
|
32405
32405
|
async function handleEvidenceSummaryCommand(directory) {
|
|
32406
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
32406
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-85gw9p2m.js");
|
|
32407
32407
|
const artifact = await buildEvidenceSummary(directory);
|
|
32408
32408
|
if (!artifact) {
|
|
32409
32409
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -52677,7 +52677,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
|
|
|
52677
52677
|
if (!input.dispatcher) {
|
|
52678
52678
|
throw new Error("no evaluation dispatcher available (cannot run validation)");
|
|
52679
52679
|
}
|
|
52680
|
-
const { createModelEvaluationExecutor } = await import("./runner-
|
|
52680
|
+
const { createModelEvaluationExecutor } = await import("./runner-d820ws7y.js");
|
|
52681
52681
|
const executor = createModelEvaluationExecutor(input.dispatcher, input.sessionId);
|
|
52682
52682
|
const result = await _internals81.evaluateCandidateV1({
|
|
52683
52683
|
projectRoot: input.directory,
|
|
@@ -54505,7 +54505,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
54505
54505
|
async function handleHelpCommand(ctx) {
|
|
54506
54506
|
const targetCommand = ctx.args.join(" ");
|
|
54507
54507
|
if (!targetCommand) {
|
|
54508
|
-
const { buildHelpText } = await import("./index-
|
|
54508
|
+
const { buildHelpText } = await import("./index-j2ghsdzz.js");
|
|
54509
54509
|
return buildHelpText();
|
|
54510
54510
|
}
|
|
54511
54511
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -54514,7 +54514,7 @@ async function handleHelpCommand(ctx) {
|
|
|
54514
54514
|
return _internals14.buildDetailedHelp(resolved.key, resolved.entry);
|
|
54515
54515
|
}
|
|
54516
54516
|
const similar = _internals14.findSimilarCommands(targetCommand);
|
|
54517
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
54517
|
+
const { buildHelpText: fullHelp } = await import("./index-j2ghsdzz.js");
|
|
54518
54518
|
if (similar.length > 0) {
|
|
54519
54519
|
return `Command '/swarm ${targetCommand}' not found.
|
|
54520
54520
|
|
|
@@ -54691,7 +54691,7 @@ var COMMAND_REGISTRY = {
|
|
|
54691
54691
|
},
|
|
54692
54692
|
"guardrail explain": {
|
|
54693
54693
|
handler: async (ctx) => {
|
|
54694
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
54694
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-8kkqz8tx.js");
|
|
54695
54695
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
54696
54696
|
},
|
|
54697
54697
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -54701,7 +54701,7 @@ var COMMAND_REGISTRY = {
|
|
|
54701
54701
|
},
|
|
54702
54702
|
"guardrail-explain": {
|
|
54703
54703
|
handler: async (ctx) => {
|
|
54704
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
54704
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-8kkqz8tx.js");
|
|
54705
54705
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
54706
54706
|
},
|
|
54707
54707
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -54711,7 +54711,7 @@ var COMMAND_REGISTRY = {
|
|
|
54711
54711
|
},
|
|
54712
54712
|
"guardrail-log": {
|
|
54713
54713
|
handler: async (ctx) => {
|
|
54714
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
54714
|
+
const { handleGuardrailLog } = await import("./guardrail-log-e2v9qw71.js");
|
|
54715
54715
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
54716
54716
|
},
|
|
54717
54717
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadPluginConfigWithMeta,
|
|
8
8
|
loadPluginConfigWithMetaAsync,
|
|
9
9
|
resolveWorktreeIsolationConfig
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-pcwjz5de.js";
|
|
11
11
|
import {
|
|
12
12
|
ApprovalEvidenceSchema,
|
|
13
13
|
BaseEvidenceSchema,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
TurboConfigSchema,
|
|
55
55
|
WorktreeIsolationConfigSchema,
|
|
56
56
|
resolveAutoReviewConfig
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-mwdzkr6k.js";
|
|
58
58
|
import"./index-bk5tah7q.js";
|
|
59
59
|
import {
|
|
60
60
|
MigrationStatusSchema,
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-fgkhpdc6.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-72wzb81c.js";
|
|
16
16
|
import {
|
|
17
17
|
init_knowledge_types,
|
|
18
18
|
isActiveStatus
|
|
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
190
190
|
alreadyInactive: true
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
193
|
+
const { quarantineEntry } = await import("./knowledge-validator-bjxag1jp.js");
|
|
194
194
|
let policyConfig;
|
|
195
195
|
try {
|
|
196
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
197
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
196
|
+
const { KnowledgeConfigSchema } = await import("./schema-11gyrec3.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-aze9n64z.js");
|
|
198
198
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
199
199
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
200
200
|
} catch {
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-92v63zzr.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-j6ewv2pe.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -86,7 +86,7 @@ var _internals = {
|
|
|
86
86
|
symlinkSync: fs.symlinkSync
|
|
87
87
|
},
|
|
88
88
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
89
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
89
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-sjz200dt.js");
|
|
90
90
|
return realWrite(directory, taskId, files);
|
|
91
91
|
},
|
|
92
92
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-p124rnwb.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-fgkhpdc6.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-72wzb81c.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./index-ae75rja9.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveKnowledgeStoreDir
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-vft1pg34.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-n3h6rmbe.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
702
702
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
703
703
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
704
704
|
return;
|
|
705
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
705
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-8nz3sa2d.js");
|
|
706
706
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
707
707
|
const flagIds = new Set;
|
|
708
708
|
for (const e of atFloor) {
|
|
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
772
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
773
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
772
|
+
const { quarantineEntry } = await import("./knowledge-validator-bjxag1jp.js");
|
|
773
|
+
const { KnowledgeConfigSchema } = await import("./schema-11gyrec3.js");
|
|
774
774
|
let config;
|
|
775
775
|
try {
|
|
776
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
776
|
+
const { loadPluginConfigWithMeta } = await import("./index-aze9n64z.js");
|
|
777
777
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
778
778
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
779
779
|
} catch {
|