opencode-swarm 7.161.0 → 7.161.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/.opencode/skills/critic-gate/SKILL.md +2 -1
- package/.opencode/skills/execute/SKILL.md +1 -1
- package/dist/cli/{coder-settlement-nayk1bbf.js → coder-settlement-2jteb5vy.js} +4 -4
- package/dist/cli/{config-doctor-b1w7yvcs.js → config-doctor-1yn317qf.js} +3 -3
- package/dist/cli/{core-whesnhpf.js → core-k687jrr3.js} +2 -2
- package/dist/cli/{curator-llm-factory-bqfkaq6y.js → curator-llm-factory-m1ke17eq.js} +21 -21
- package/dist/cli/{curator-1rzb285s.js → curator-q017rjfk.js} +21 -21
- package/dist/cli/{evidence-summary-service-ma8drpv5.js → evidence-summary-service-6jzfa547.js} +8 -8
- package/dist/cli/{gate-evidence-7eh82zs0.js → gate-evidence-j6nskaka.js} +3 -3
- package/dist/cli/{guardrail-explain-em2mqz9a.js → guardrail-explain-xw3ma90f.js} +22 -22
- package/dist/cli/{guardrail-log-845tfrwb.js → guardrail-log-etmzhbge.js} +4 -4
- package/dist/cli/{guardrail-reset-091xw53a.js → guardrail-reset-z9fkxksy.js} +21 -21
- package/dist/cli/{hive-promoter-kx8t5em3.js → hive-promoter-dmwjya83.js} +21 -21
- package/dist/cli/{index-14dgnwmh.js → index-1j532307.js} +2 -2
- package/dist/cli/{index-et1jpj6z.js → index-29f9te70.js} +2 -2
- package/dist/cli/{index-t81fmfjj.js → index-32avgbyq.js} +1 -1
- package/dist/cli/{index-ambz0ryy.js → index-4p6x3xxy.js} +2 -2
- package/dist/cli/{index-f4dmccpd.js → index-7d79mj06.js} +4 -4
- package/dist/cli/{index-7qera0f6.js → index-88wb0z9r.js} +1 -1
- package/dist/cli/{index-3cxfqdpv.js → index-9kp3cp5n.js} +5 -5
- package/dist/cli/{index-c9zp4xwc.js → index-9xd073d4.js} +1 -1
- package/dist/cli/{index-h6wtxzvm.js → index-bn78ywnb.js} +2 -2
- package/dist/cli/{index-xy0e0r5f.js → index-c1geyan9.js} +2 -2
- package/dist/cli/{index-d1h4sf8f.js → index-cbcfpgz9.js} +4 -4
- package/dist/cli/{index-qjge2m9r.js → index-cs9w1hfs.js} +67 -65
- package/dist/cli/{index-52f67bbh.js → index-e0re84cx.js} +23 -23
- package/dist/cli/{index-etdtfhhv.js → index-epjvntnm.js} +1 -1
- package/dist/cli/{index-y0ra2v4w.js → index-hq57ytm5.js} +1 -1
- package/dist/cli/{index-gkv7s4xy.js → index-hvfsz7e3.js} +3 -3
- package/dist/cli/{index-trmqq4wm.js → index-jm21vbyp.js} +3 -3
- package/dist/cli/{index-54jznpq7.js → index-k4xey4kh.js} +1 -1
- package/dist/cli/{index-mj6ndvee.js → index-nm0cpfrv.js} +1 -1
- package/dist/cli/{index-w9g58t3j.js → index-qd9mrd7e.js} +3 -3
- package/dist/cli/{index-zkgrayya.js → index-rracnf2y.js} +2 -2
- package/dist/cli/{index-93pf824c.js → index-yhadrxka.js} +3 -3
- package/dist/cli/{index-mbktm1ah.js → index-za42r41w.js} +1 -1
- package/dist/cli/{index-q8hm27yj.js → index-zg9d392c.js} +4 -1
- package/dist/cli/{index-wrtgyvre.js → index-zhdfqz89.js} +5 -5
- package/dist/cli/index.js +21 -21
- package/dist/cli/{knowledge-escalator-9eqpsbw5.js → knowledge-escalator-cqyxfjfh.js} +8 -8
- package/dist/cli/{knowledge-events-a8r4ej12.js → knowledge-events-g707awjf.js} +6 -6
- package/dist/cli/{knowledge-store-ydzeppv7.js → knowledge-store-byhv66xq.js} +1 -1
- package/dist/cli/{knowledge-validator-mnv58he9.js → knowledge-validator-qfkr8eje.js} +2 -2
- package/dist/cli/{model-preflight-yqqchzjn.js → model-preflight-c3mc8njg.js} +1 -1
- package/dist/cli/{pending-delegations-9mwmrwwm.js → pending-delegations-n3baz9m3.js} +1 -1
- package/dist/cli/{pr-review-reentry-authorization-h1ssfq37.js → pr-review-reentry-authorization-ttctn8xv.js} +21 -21
- package/dist/cli/{scan-cursor-5rmaqw2t.js → scan-cursor-fbtgyeft.js} +2 -2
- package/dist/cli/{schema-72vpr9xy.js → schema-xb7d31wq.js} +2 -2
- package/dist/cli/{scope-persistence-39mwns79.js → scope-persistence-5npzdfjf.js} +5 -5
- package/dist/cli/{skill-generator-9aay0t53.js → skill-generator-k1e7nee3.js} +9 -9
- package/dist/cli/{worktree-collision-ownership-ybhktnq4.js → worktree-collision-ownership-jfam09nj.js} +1 -1
- package/dist/cli/{worktree-isolation-w8ett6bs.js → worktree-isolation-avp3yxcs.js} +21 -21
- package/dist/config/evidence-schema.d.ts +9 -0
- package/dist/hooks/delegation-gate.d.ts +4 -1
- package/dist/index.js +33 -33
- package/dist/tools/placeholder-scan.d.ts +5 -3
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-jm21vbyp.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
NoteEvidenceSchema,
|
|
18
18
|
ReviewEvidenceSchema,
|
|
19
19
|
TestEvidenceSchema
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-zg9d392c.js";
|
|
21
21
|
import {
|
|
22
22
|
DeltaSpecSchema,
|
|
23
23
|
ObligationSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
loadPluginConfig,
|
|
43
43
|
loadPluginConfigWithMeta,
|
|
44
44
|
loadPluginConfigWithMetaAsync
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-epjvntnm.js";
|
|
46
46
|
import {
|
|
47
47
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
48
48
|
AgentOverrideConfigSchema,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
TurboConfigSchema,
|
|
65
65
|
WorktreeIsolationConfigSchema,
|
|
66
66
|
resolveAutoReviewConfig
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-rracnf2y.js";
|
|
68
68
|
import"./index-9e6fdz2h.js";
|
|
69
69
|
import"./index-4rhhvd1a.js";
|
|
70
70
|
import {
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
QA_AGENTS,
|
|
77
77
|
isQAAgent,
|
|
78
78
|
isSubagent
|
|
79
|
-
} from "./index-
|
|
79
|
+
} from "./index-9xd073d4.js";
|
|
80
80
|
import"./index-zjygnfay.js";
|
|
81
81
|
import"./index-bk5tah7q.js";
|
|
82
82
|
import"./index-bpmtbmy9.js";
|
|
@@ -248,7 +248,7 @@ var init_tool_metadata = __esm(() => {
|
|
|
248
248
|
prWorkflow: { modes: ["PR_REVIEW"], capability: "validate" }
|
|
249
249
|
},
|
|
250
250
|
approve_plan_critic: {
|
|
251
|
-
description: "record a MANUAL plan_critic_gate approval snapshot to unblock the ratchet-tighter critic_pre_plan execution gate when the critic already returned APPROVED but the mechanical recorder failed to persist it (issue #2012)",
|
|
251
|
+
description: "record a MANUAL plan_critic_gate approval snapshot to unblock the ratchet-tighter critic_pre_plan execution gate when the critic already returned APPROVED but the mechanical recorder failed to persist it (issue #2012), or as the sanctioned recovery for a bookkeeping-grade hashed-field repair under the critic-gate PLAN FREEZE rule (the reason must state which case applies)",
|
|
252
252
|
agents: ["architect"]
|
|
253
253
|
},
|
|
254
254
|
prepare_pr_workflow_checkout: {
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
PluginConfigSchema,
|
|
7
7
|
init_schema,
|
|
8
8
|
stripKnownSwarmPrefix
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-rracnf2y.js";
|
|
10
10
|
import {
|
|
11
11
|
ALL_AGENT_NAMES,
|
|
12
12
|
init_constants
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-9xd073d4.js";
|
|
14
14
|
import {
|
|
15
15
|
log
|
|
16
16
|
} from "./index-zgwm4ryv.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
SWARM_WORKTREE_DIR_NAME,
|
|
15
15
|
init_constants
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-9xd073d4.js";
|
|
17
17
|
import {
|
|
18
18
|
log
|
|
19
19
|
} from "./index-zgwm4ryv.js";
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-5npzdfjf.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
713
713
|
const {
|
|
714
714
|
readAuthoritativeKnowledgeCounterRollups,
|
|
715
715
|
effectiveRetrievalOutcomes
|
|
716
|
-
} = await import("./knowledge-events-
|
|
716
|
+
} = await import("./knowledge-events-g707awjf.js");
|
|
717
717
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
718
718
|
const flagIds = new Set;
|
|
719
719
|
for (const e of atFloor) {
|
|
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
783
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
784
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
783
|
+
const { quarantineEntry } = await import("./knowledge-validator-qfkr8eje.js");
|
|
784
|
+
const { KnowledgeConfigSchema } = await import("./schema-xb7d31wq.js");
|
|
785
785
|
let config;
|
|
786
786
|
try {
|
|
787
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
787
|
+
const { loadPluginConfigWithMeta } = await import("./index-9kp3cp5n.js");
|
|
788
788
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
789
789
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
790
790
|
} catch {
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
protectedRoots,
|
|
16
16
|
redactDecisionLineForArchive,
|
|
17
17
|
stableCanonicalStringify
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-29f9te70.js";
|
|
19
19
|
import {
|
|
20
20
|
detectStraySwarmDirs,
|
|
21
21
|
readDoctorArtifact,
|
|
22
22
|
removeStraySwarmDir,
|
|
23
23
|
runConfigDoctor
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-bn78ywnb.js";
|
|
25
25
|
import {
|
|
26
26
|
MAX_TRANSIENT_RETRIES,
|
|
27
27
|
archiveEvidence,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
validateProjectRoot,
|
|
69
69
|
validateSymlinkBoundary,
|
|
70
70
|
validateTargetWithinRoot
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-7d79mj06.js";
|
|
72
72
|
import {
|
|
73
73
|
EvaluationTaskV1Schema,
|
|
74
74
|
GateAuditManifestV1Schema,
|
|
@@ -130,15 +130,15 @@ import {
|
|
|
130
130
|
retireSkill,
|
|
131
131
|
selectCandidateEntries,
|
|
132
132
|
syncBundledProjectSkillsIfMissingAsync
|
|
133
|
-
} from "./index-
|
|
133
|
+
} from "./index-yhadrxka.js";
|
|
134
134
|
import {
|
|
135
135
|
readRecentEscalations
|
|
136
|
-
} from "./index-
|
|
136
|
+
} from "./index-zhdfqz89.js";
|
|
137
137
|
import {
|
|
138
138
|
alreadyCuratedThisGeneration,
|
|
139
139
|
claimNextScanBatch,
|
|
140
140
|
resolveCohortId
|
|
141
|
-
} from "./index-
|
|
141
|
+
} from "./index-88wb0z9r.js";
|
|
142
142
|
import {
|
|
143
143
|
CURATOR_INIT_PROMPT,
|
|
144
144
|
CURATOR_PHASE_PROMPT,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
listCoderSettlementWalStates,
|
|
175
175
|
recoverCoderSettlement,
|
|
176
176
|
recoverStaleCoderSettlements
|
|
177
|
-
} from "./index-
|
|
177
|
+
} from "./index-qd9mrd7e.js";
|
|
178
178
|
import {
|
|
179
179
|
parsePorcelainV2Snapshot,
|
|
180
180
|
resolveCommitCountSince,
|
|
@@ -218,7 +218,7 @@ import {
|
|
|
218
218
|
validateActionableFields,
|
|
219
219
|
validateLesson,
|
|
220
220
|
validateSkillPath
|
|
221
|
-
} from "./index-
|
|
221
|
+
} from "./index-nm0cpfrv.js";
|
|
222
222
|
import {
|
|
223
223
|
authorizeCuration,
|
|
224
224
|
buildConfigFingerprintInput
|
|
@@ -253,12 +253,12 @@ import {
|
|
|
253
253
|
transitionTaskWorkflowEvidence,
|
|
254
254
|
withTaskEvidenceTransaction,
|
|
255
255
|
writeWorkflowWalFile
|
|
256
|
-
} from "./index-
|
|
256
|
+
} from "./index-32avgbyq.js";
|
|
257
257
|
import {
|
|
258
258
|
makeWorktreeBranchName,
|
|
259
259
|
provisionWorktree,
|
|
260
260
|
removeWorktree
|
|
261
|
-
} from "./index-
|
|
261
|
+
} from "./index-c1geyan9.js";
|
|
262
262
|
import {
|
|
263
263
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
264
264
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -286,7 +286,7 @@ import {
|
|
|
286
286
|
scanBackgroundCoderReservationsForAdmission,
|
|
287
287
|
scanDelegationsForRecovery,
|
|
288
288
|
sweepStaleDelegations
|
|
289
|
-
} from "./index-
|
|
289
|
+
} from "./index-za42r41w.js";
|
|
290
290
|
import {
|
|
291
291
|
compositeSessionKey,
|
|
292
292
|
sessionKeySuffix
|
|
@@ -297,7 +297,7 @@ import {
|
|
|
297
297
|
clearAllScopes,
|
|
298
298
|
clearScopeBindingFromDisk,
|
|
299
299
|
clearScopeBindings
|
|
300
|
-
} from "./index-
|
|
300
|
+
} from "./index-4p6x3xxy.js";
|
|
301
301
|
import {
|
|
302
302
|
appendLedgerEvent,
|
|
303
303
|
computePlanHash,
|
|
@@ -312,7 +312,7 @@ import {
|
|
|
312
312
|
readPlanEpochIdentity,
|
|
313
313
|
replayFromLedgerWithStatus,
|
|
314
314
|
takeSnapshotEvent
|
|
315
|
-
} from "./index-
|
|
315
|
+
} from "./index-hq57ytm5.js";
|
|
316
316
|
import {
|
|
317
317
|
CORE_EVENT_LOCKED,
|
|
318
318
|
appendCoreEventSync,
|
|
@@ -371,7 +371,7 @@ import {
|
|
|
371
371
|
transactFile,
|
|
372
372
|
transactKnowledge,
|
|
373
373
|
wordBigrams
|
|
374
|
-
} from "./index-
|
|
374
|
+
} from "./index-cbcfpgz9.js";
|
|
375
375
|
import {
|
|
376
376
|
MAX_EVENT_LOG_ENTRIES,
|
|
377
377
|
_internals as _internals2,
|
|
@@ -387,13 +387,13 @@ import {
|
|
|
387
387
|
recordKnowledgeEvent,
|
|
388
388
|
recordPhaseCloseIntent,
|
|
389
389
|
resolveKnowledgeEventsPath
|
|
390
|
-
} from "./index-
|
|
390
|
+
} from "./index-hvfsz7e3.js";
|
|
391
391
|
import {
|
|
392
392
|
resolveWorktreeIsolationConfig
|
|
393
|
-
} from "./index-
|
|
393
|
+
} from "./index-jm21vbyp.js";
|
|
394
394
|
import {
|
|
395
395
|
RetrospectiveEvidenceSchema
|
|
396
|
-
} from "./index-
|
|
396
|
+
} from "./index-zg9d392c.js";
|
|
397
397
|
import {
|
|
398
398
|
estimateTokens,
|
|
399
399
|
readSwarmFileAsync,
|
|
@@ -413,7 +413,7 @@ import {
|
|
|
413
413
|
init_loader,
|
|
414
414
|
loadPluginConfig,
|
|
415
415
|
loadPluginConfigWithMeta
|
|
416
|
-
} from "./index-
|
|
416
|
+
} from "./index-epjvntnm.js";
|
|
417
417
|
import {
|
|
418
418
|
DEFAULT_HARNESS_EVOLUTION_CONFIG,
|
|
419
419
|
DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
|
|
@@ -429,7 +429,7 @@ import {
|
|
|
429
429
|
package_default,
|
|
430
430
|
resolveAutoReviewConfig,
|
|
431
431
|
stripKnownSwarmPrefix
|
|
432
|
-
} from "./index-
|
|
432
|
+
} from "./index-rracnf2y.js";
|
|
433
433
|
import {
|
|
434
434
|
init_git_executable,
|
|
435
435
|
resolveGitExecutable,
|
|
@@ -459,7 +459,7 @@ import {
|
|
|
459
459
|
init_agent_names,
|
|
460
460
|
init_constants,
|
|
461
461
|
init_tool_metadata
|
|
462
|
-
} from "./index-
|
|
462
|
+
} from "./index-9xd073d4.js";
|
|
463
463
|
import {
|
|
464
464
|
resolveHiveDataDir,
|
|
465
465
|
resolveHiveEventsPath,
|
|
@@ -1255,6 +1255,21 @@ var _test_exports = {
|
|
|
1255
1255
|
init_zod();
|
|
1256
1256
|
import * as fs53 from "fs";
|
|
1257
1257
|
import * as path117 from "path";
|
|
1258
|
+
|
|
1259
|
+
// src/config/agent-model.ts
|
|
1260
|
+
init_agent_names();
|
|
1261
|
+
init_constants();
|
|
1262
|
+
var CANONICAL_AGENT_NAMES = new Set(ALL_AGENT_NAMES);
|
|
1263
|
+
var KNOWN_EMBEDDED_VARIANTS = new Set([
|
|
1264
|
+
"low",
|
|
1265
|
+
"medium",
|
|
1266
|
+
"high",
|
|
1267
|
+
"max",
|
|
1268
|
+
"xhigh",
|
|
1269
|
+
"thinking"
|
|
1270
|
+
]);
|
|
1271
|
+
|
|
1272
|
+
// src/hooks/delegation-gate.ts
|
|
1258
1273
|
init_agent_names();
|
|
1259
1274
|
init_constants();
|
|
1260
1275
|
init_schema();
|
|
@@ -14197,19 +14212,6 @@ function isoNow() {
|
|
|
14197
14212
|
function delay(ms) {
|
|
14198
14213
|
return new Promise((resolve7) => setTimeout(resolve7, ms));
|
|
14199
14214
|
}
|
|
14200
|
-
// src/config/agent-model.ts
|
|
14201
|
-
init_agent_names();
|
|
14202
|
-
init_constants();
|
|
14203
|
-
var CANONICAL_AGENT_NAMES = new Set(ALL_AGENT_NAMES);
|
|
14204
|
-
var KNOWN_EMBEDDED_VARIANTS = new Set([
|
|
14205
|
-
"low",
|
|
14206
|
-
"medium",
|
|
14207
|
-
"high",
|
|
14208
|
-
"max",
|
|
14209
|
-
"xhigh",
|
|
14210
|
-
"thinking"
|
|
14211
|
-
]);
|
|
14212
|
-
|
|
14213
14215
|
// src/agents/index.ts
|
|
14214
14216
|
init_constants();
|
|
14215
14217
|
init_schema();
|
|
@@ -21324,7 +21326,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
21324
21326
|
};
|
|
21325
21327
|
}
|
|
21326
21328
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
21327
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
21329
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
|
|
21328
21330
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
21329
21331
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
21330
21332
|
if (sweepConfig?.enabled === false)
|
|
@@ -22461,7 +22463,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
22461
22463
|
}
|
|
22462
22464
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
22463
22465
|
try {
|
|
22464
|
-
const skillModule = await import("./skill-generator-
|
|
22466
|
+
const skillModule = await import("./skill-generator-k1e7nee3.js");
|
|
22465
22467
|
for (const cand of skillCandidates) {
|
|
22466
22468
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
22467
22469
|
continue;
|
|
@@ -22933,7 +22935,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
22933
22935
|
} catch {}
|
|
22934
22936
|
}
|
|
22935
22937
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
22936
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
22938
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-cqyxfjfh.js");
|
|
22937
22939
|
for (const { id } of contradictedEntries) {
|
|
22938
22940
|
try {
|
|
22939
22941
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -23752,7 +23754,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
23752
23754
|
warnings.push("Failed to collect knowledge summary.");
|
|
23753
23755
|
}
|
|
23754
23756
|
try {
|
|
23755
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
23757
|
+
const { getScanStatus } = await import("./scan-cursor-fbtgyeft.js");
|
|
23756
23758
|
const scanStatus = await getScanStatus(directory);
|
|
23757
23759
|
if (scanStatus.remaining_estimate > 0) {
|
|
23758
23760
|
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.`);
|
|
@@ -23924,9 +23926,9 @@ var _internals27 = {
|
|
|
23924
23926
|
verifyPostMortemKnowledgeActions,
|
|
23925
23927
|
repairPostMortemActions,
|
|
23926
23928
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
23927
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
23929
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xb7d31wq.js");
|
|
23928
23930
|
try {
|
|
23929
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
23931
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
|
|
23930
23932
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
23931
23933
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
23932
23934
|
} catch {
|
|
@@ -23934,11 +23936,11 @@ var _internals27 = {
|
|
|
23934
23936
|
}
|
|
23935
23937
|
},
|
|
23936
23938
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
23937
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
23939
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-q017rjfk.js");
|
|
23938
23940
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
23939
23941
|
},
|
|
23940
23942
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
23941
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
23943
|
+
const { checkHivePromotions } = await import("./hive-promoter-dmwjya83.js");
|
|
23942
23944
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
23943
23945
|
},
|
|
23944
23946
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -23947,7 +23949,7 @@ var _internals27 = {
|
|
|
23947
23949
|
activateProposal,
|
|
23948
23950
|
listSkills: listSkills2,
|
|
23949
23951
|
sanitizeSlug
|
|
23950
|
-
} = await import("./skill-generator-
|
|
23952
|
+
} = await import("./skill-generator-k1e7nee3.js");
|
|
23951
23953
|
const result = {
|
|
23952
23954
|
approved: [],
|
|
23953
23955
|
rejected: [],
|
|
@@ -25277,9 +25279,9 @@ function hashContent(content) {
|
|
|
25277
25279
|
return createHash13("sha1").update(content).digest("hex");
|
|
25278
25280
|
}
|
|
25279
25281
|
async function loadConfigForPolicyCurator(directory) {
|
|
25280
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
25282
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xb7d31wq.js");
|
|
25281
25283
|
try {
|
|
25282
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
25284
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
|
|
25283
25285
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
25284
25286
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
25285
25287
|
} catch {
|
|
@@ -37584,7 +37586,7 @@ async function runFinalizeStage(ctx) {
|
|
|
37584
37586
|
}
|
|
37585
37587
|
}
|
|
37586
37588
|
try {
|
|
37587
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
37589
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-xb7d31wq.js");
|
|
37588
37590
|
const { config: pmLoadedConfig } = _internals41.loadPluginConfigWithMeta(ctx.directory);
|
|
37589
37591
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
37590
37592
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -39808,9 +39810,9 @@ var _internals45 = {
|
|
|
39808
39810
|
loadPluginConfigWithMeta,
|
|
39809
39811
|
loadCuratorDeps: async () => {
|
|
39810
39812
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
39811
|
-
import("./schema-
|
|
39812
|
-
import("./curator-
|
|
39813
|
-
import("./curator-llm-factory-
|
|
39813
|
+
import("./schema-xb7d31wq.js"),
|
|
39814
|
+
import("./curator-q017rjfk.js"),
|
|
39815
|
+
import("./curator-llm-factory-m1ke17eq.js")
|
|
39814
39816
|
]);
|
|
39815
39817
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
39816
39818
|
}
|
|
@@ -40819,7 +40821,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
40819
40821
|
let scanCompleted = false;
|
|
40820
40822
|
let scanRemaining = 0;
|
|
40821
40823
|
try {
|
|
40822
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
40824
|
+
const { getScanStatus } = await import("./scan-cursor-fbtgyeft.js");
|
|
40823
40825
|
const status = await getScanStatus(directory);
|
|
40824
40826
|
scanGeneration = status.generation;
|
|
40825
40827
|
scanCompleted = status.completed;
|
|
@@ -40829,10 +40831,10 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
40829
40831
|
try {
|
|
40830
40832
|
const { isLinked: isLinked2 } = await import("./knowledge-link-8knefv8x.js");
|
|
40831
40833
|
if (isLinked2(directory)) {
|
|
40832
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
40834
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xb7d31wq.js");
|
|
40833
40835
|
let config;
|
|
40834
40836
|
try {
|
|
40835
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
40837
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
|
|
40836
40838
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
40837
40839
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
40838
40840
|
} catch {
|
|
@@ -42180,7 +42182,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
42180
42182
|
const result = runConfigDoctor(config, directory);
|
|
42181
42183
|
let output;
|
|
42182
42184
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
42183
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
42185
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-1yn317qf.js");
|
|
42184
42186
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
42185
42187
|
applyLossy: true
|
|
42186
42188
|
});
|
|
@@ -42218,7 +42220,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
42218
42220
|
`;
|
|
42219
42221
|
}
|
|
42220
42222
|
try {
|
|
42221
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
42223
|
+
const { runModelPreflight } = await import("./model-preflight-c3mc8njg.js");
|
|
42222
42224
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient);
|
|
42223
42225
|
if (preflight.catalogAvailable) {
|
|
42224
42226
|
const unresolved = preflight.resolutions.filter((resolution) => resolution.status === "unresolved");
|
|
@@ -43120,7 +43122,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
43120
43122
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
43121
43123
|
}
|
|
43122
43124
|
async function handleEvidenceSummaryCommand(directory) {
|
|
43123
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
43125
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-6jzfa547.js");
|
|
43124
43126
|
const artifact = await buildEvidenceSummary(directory);
|
|
43125
43127
|
if (!artifact) {
|
|
43126
43128
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -80604,7 +80606,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
80604
80606
|
async function handleHelpCommand(ctx) {
|
|
80605
80607
|
const targetCommand = ctx.args.join(" ");
|
|
80606
80608
|
if (!targetCommand) {
|
|
80607
|
-
const { buildHelpText } = await import("./index-
|
|
80609
|
+
const { buildHelpText } = await import("./index-e0re84cx.js");
|
|
80608
80610
|
return buildHelpText();
|
|
80609
80611
|
}
|
|
80610
80612
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -80613,7 +80615,7 @@ async function handleHelpCommand(ctx) {
|
|
|
80613
80615
|
return _internals101.buildDetailedHelp(resolved.key, resolved.entry);
|
|
80614
80616
|
}
|
|
80615
80617
|
const similar = _internals101.findSimilarCommands(targetCommand);
|
|
80616
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
80618
|
+
const { buildHelpText: fullHelp } = await import("./index-e0re84cx.js");
|
|
80617
80619
|
if (similar.length > 0) {
|
|
80618
80620
|
return `Command '/swarm ${targetCommand}' not found.
|
|
80619
80621
|
|
|
@@ -80944,7 +80946,7 @@ var COMMAND_REGISTRY = {
|
|
|
80944
80946
|
},
|
|
80945
80947
|
"guardrail explain": {
|
|
80946
80948
|
handler: async (ctx) => {
|
|
80947
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
80949
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-xw3ma90f.js");
|
|
80948
80950
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
80949
80951
|
},
|
|
80950
80952
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -80954,7 +80956,7 @@ var COMMAND_REGISTRY = {
|
|
|
80954
80956
|
},
|
|
80955
80957
|
"guardrail reset": {
|
|
80956
80958
|
handler: async (ctx) => {
|
|
80957
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
80959
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-z9fkxksy.js");
|
|
80958
80960
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
80959
80961
|
},
|
|
80960
80962
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -80963,7 +80965,7 @@ var COMMAND_REGISTRY = {
|
|
|
80963
80965
|
},
|
|
80964
80966
|
"guardrail-explain": {
|
|
80965
80967
|
handler: async (ctx) => {
|
|
80966
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
80968
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-xw3ma90f.js");
|
|
80967
80969
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
80968
80970
|
},
|
|
80969
80971
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -80973,7 +80975,7 @@ var COMMAND_REGISTRY = {
|
|
|
80973
80975
|
},
|
|
80974
80976
|
"guardrail-reset": {
|
|
80975
80977
|
handler: async (ctx) => {
|
|
80976
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
80978
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-z9fkxksy.js");
|
|
80977
80979
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
80978
80980
|
},
|
|
80979
80981
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -80983,7 +80985,7 @@ var COMMAND_REGISTRY = {
|
|
|
80983
80985
|
},
|
|
80984
80986
|
"guardrail-log": {
|
|
80985
80987
|
handler: async (ctx) => {
|
|
80986
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
80988
|
+
const { handleGuardrailLog } = await import("./guardrail-log-etmzhbge.js");
|
|
80987
80989
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
80988
80990
|
},
|
|
80989
80991
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -82305,7 +82307,7 @@ CLASSIFICATION RULES:
|
|
|
82305
82307
|
- Misclassification = GATE_DELEGATION_BYPASS.
|
|
82306
82308
|
|
|
82307
82309
|
\u2500\u2500 STAGE A: AUTOMATED TOOL GATES \u2500\u2500
|
|
82308
|
-
diff \u2192 syntax_check \u2192 placeholder_scan \u2192 imports \u2192 lint fix \u2192 build_check \u2192 pre_check_batch
|
|
82310
|
+
diff \u2192 syntax_check \u2192 placeholder_scan (diff-scoped) \u2192 imports \u2192 lint fix \u2192 build_check \u2192 pre_check_batch
|
|
82309
82311
|
Stage A tools return pass/fail. Fix failures by returning to coder.
|
|
82310
82312
|
Stage A passing means: code compiles, parses, no secrets, no placeholders, no lint errors.
|
|
82311
82313
|
Stage A passing does NOT mean: code is correct, secure, tested, or reviewed.
|
|
@@ -87425,7 +87427,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
87425
87427
|
return extracted === expectedSessionId;
|
|
87426
87428
|
}
|
|
87427
87429
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
87428
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
87430
|
+
const collisionOwnership = await import("./worktree-collision-ownership-jfam09nj.js");
|
|
87429
87431
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
87430
87432
|
}
|
|
87431
87433
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -87834,7 +87836,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
87834
87836
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
87835
87837
|
if (laneProfile) {
|
|
87836
87838
|
try {
|
|
87837
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
87839
|
+
const { writeLaneProfileToDiskReal } = await import("./core-k687jrr3.js");
|
|
87838
87840
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
87839
87841
|
} catch {}
|
|
87840
87842
|
}
|
|
@@ -88759,7 +88761,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
88759
88761
|
}
|
|
88760
88762
|
clearWorktreeMergeStatus(statusKey);
|
|
88761
88763
|
try {
|
|
88762
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
88764
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-k687jrr3.js");
|
|
88763
88765
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
88764
88766
|
} catch {}
|
|
88765
88767
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1j532307.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-k4xey4kh.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,53 +94,53 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
97
|
+
} from "./index-cs9w1hfs.js";
|
|
98
98
|
import"./index-s33ee2w3.js";
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
99
|
+
import"./index-29f9te70.js";
|
|
100
|
+
import"./index-bn78ywnb.js";
|
|
101
|
+
import"./index-7d79mj06.js";
|
|
102
102
|
import"./index-dq41vsf9.js";
|
|
103
103
|
import"./index-txdagbh7.js";
|
|
104
104
|
import"./index-134d35c1.js";
|
|
105
105
|
import"./index-3146wmgv.js";
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
106
|
+
import"./index-yhadrxka.js";
|
|
107
|
+
import"./index-zhdfqz89.js";
|
|
108
|
+
import"./index-88wb0z9r.js";
|
|
109
109
|
import"./index-70ha9e09.js";
|
|
110
110
|
import"./index-c8s9a3zh.js";
|
|
111
111
|
import"./index-9ss2m4rs.js";
|
|
112
112
|
import"./index-y14mwbk8.js";
|
|
113
113
|
import"./index-zsrtt42s.js";
|
|
114
|
-
import"./index-
|
|
114
|
+
import"./index-qd9mrd7e.js";
|
|
115
115
|
import"./index-3f7hqtgg.js";
|
|
116
116
|
import"./index-awjx0wgk.js";
|
|
117
|
-
import"./index-
|
|
117
|
+
import"./index-nm0cpfrv.js";
|
|
118
118
|
import"./index-f5axf6vq.js";
|
|
119
119
|
import"./index-rtry5xyf.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
120
|
+
import"./index-32avgbyq.js";
|
|
121
|
+
import"./index-c1geyan9.js";
|
|
122
|
+
import"./index-za42r41w.js";
|
|
123
123
|
import"./index-ddszzne4.js";
|
|
124
|
-
import"./index-
|
|
125
|
-
import"./index-
|
|
124
|
+
import"./index-4p6x3xxy.js";
|
|
125
|
+
import"./index-hq57ytm5.js";
|
|
126
126
|
import"./index-7619tk9a.js";
|
|
127
127
|
import"./index-556ja8an.js";
|
|
128
128
|
import"./index-4fwbbad3.js";
|
|
129
129
|
import"./index-b43rt5ph.js";
|
|
130
130
|
import"./index-q7sjgr1y.js";
|
|
131
|
-
import"./index-
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
131
|
+
import"./index-cbcfpgz9.js";
|
|
132
|
+
import"./index-hvfsz7e3.js";
|
|
133
|
+
import"./index-jm21vbyp.js";
|
|
134
|
+
import"./index-zg9d392c.js";
|
|
135
135
|
import"./index-n832052r.js";
|
|
136
136
|
import"./index-dtn0pne5.js";
|
|
137
137
|
import"./index-z6xqpmqg.js";
|
|
138
138
|
import"./index-r3mvsbtq.js";
|
|
139
|
-
import"./index-
|
|
139
|
+
import"./index-epjvntnm.js";
|
|
140
140
|
import {
|
|
141
141
|
init_schema,
|
|
142
142
|
stripKnownSwarmPrefix
|
|
143
|
-
} from "./index-
|
|
143
|
+
} from "./index-rracnf2y.js";
|
|
144
144
|
import"./index-9e6fdz2h.js";
|
|
145
145
|
import"./index-4rhhvd1a.js";
|
|
146
146
|
import"./index-k55td019.js";
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
AGENT_TOOL_MAP,
|
|
149
149
|
ORCHESTRATOR_NAME,
|
|
150
150
|
init_constants
|
|
151
|
-
} from "./index-
|
|
151
|
+
} from "./index-9xd073d4.js";
|
|
152
152
|
import"./index-zjygnfay.js";
|
|
153
153
|
import"./index-ae75rja9.js";
|
|
154
154
|
import"./index-c6zyqgpq.js";
|