opencode-swarm 7.135.4 → 7.136.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/cli/{config-doctor-fgmemknc.js → config-doctor-q0krbxwv.js} +2 -2
- package/dist/cli/{curation-policy-frs28q57.js → curation-policy-v6ywe8qd.js} +2 -2
- package/dist/cli/{curator-llm-factory-pr59p535.js → curator-llm-factory-mhwje8rf.js} +12 -12
- package/dist/cli/{curator-psq8m2j7.js → curator-tqedvpy1.js} +12 -12
- package/dist/cli/{guardrail-explain-ws45zchy.js → guardrail-explain-m0m74hvr.js} +13 -13
- package/dist/cli/{guardrail-log-gbzek1pz.js → guardrail-log-5g8x6qc6.js} +3 -3
- package/dist/cli/{hive-promoter-gdbg4nyd.js → hive-promoter-s804newd.js} +12 -12
- package/dist/cli/{index-vh39nxpx.js → index-1kjg590p.js} +1 -1
- package/dist/cli/{index-4g3nq4sh.js → index-2cv1j3rf.js} +1 -1
- package/dist/cli/{index-jsp8r6f9.js → index-2w4tsmva.js} +1 -1
- package/dist/cli/{index-66w4jjg6.js → index-81dkzncr.js} +35 -35
- package/dist/cli/{index-mysdsqtk.js → index-9bk16zkv.js} +1 -1
- package/dist/cli/{index-ajehqzvn.js → index-bbejqagj.js} +1 -1
- package/dist/cli/{index-g86vfxnk.js → index-bwfzq91q.js} +3 -3
- package/dist/cli/{index-ck9rx6j1.js → index-cfz5750k.js} +1 -1
- package/dist/cli/{index-xfeg0c0c.js → index-cxq1t7j1.js} +14 -14
- package/dist/cli/{index-tegdwx34.js → index-j08trvny.js} +5 -5
- package/dist/cli/{index-cg413zhk.js → index-m1hew17b.js} +7 -2
- package/dist/cli/{index-5s1q6xcw.js → index-n8j0cnp1.js} +4 -4
- package/dist/cli/{index-b34vbxmx.js → index-nw9cn84t.js} +1 -1
- package/dist/cli/{index-cgqekdja.js → index-qh9466j3.js} +2 -2
- package/dist/cli/{index-ys04j1np.js → index-w58bmwyq.js} +2 -2
- package/dist/cli/{index-fx7bn93y.js → index-wpqypdge.js} +2 -2
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-0060q7we.js → knowledge-escalator-f1m2xp5x.js} +3 -3
- package/dist/cli/{knowledge-events-yh2qwa6k.js → knowledge-events-rksgem6f.js} +1 -1
- package/dist/cli/{knowledge-store-geqaez58.js → knowledge-store-t6d6fr8b.js} +1 -1
- package/dist/cli/{knowledge-validator-4zq4vm7t.js → knowledge-validator-5ggzb3j1.js} +4 -4
- package/dist/cli/{scan-cursor-nk2rybhq.js → scan-cursor-18fnwr58.js} +2 -2
- package/dist/cli/{schema-th3tx32c.js → schema-jw15d8bt.js} +1 -1
- package/dist/cli/{skill-generator-1947bbkn.js → skill-generator-3n5y902z.js} +5 -5
- package/dist/config/schema.d.ts +11 -1
- package/dist/hooks/pr-workflow-gate.d.ts +5 -5
- package/dist/hooks/pr-workflow-response-gate.d.ts +32 -1
- package/dist/hooks/repo-graph-builder.d.ts +17 -11
- package/dist/hooks/repo-graph-injection.d.ts +20 -9
- package/dist/hooks/semantic-diff-injection.d.ts +2 -2
- package/dist/index.js +142 -141
- package/dist/tools/repo-graph/builder.d.ts +55 -1
- package/dist/tools/repo-graph/cache.d.ts +12 -36
- package/dist/tools/repo-graph/freshness.d.ts +54 -0
- package/dist/tools/repo-graph/incremental.d.ts +17 -8
- package/dist/tools/repo-graph/query.d.ts +7 -1
- package/dist/tools/repo-graph/storage.d.ts +3 -1
- package/dist/tools/repo-graph/types.d.ts +31 -1
- package/dist/tools/repo-graph.d.ts +5 -3
- package/dist/tools/repo-map.d.ts +8 -0
- package/dist/utils/path-security.d.ts +22 -0
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
shouldRunOnStartup,
|
|
13
13
|
writeBackupArtifact,
|
|
14
14
|
writeDoctorArtifact
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-cfz5750k.js";
|
|
16
|
+
import"./index-m1hew17b.js";
|
|
17
17
|
import"./index-bk5tah7q.js";
|
|
18
18
|
import"./index-3jcyn8g6.js";
|
|
19
19
|
import"./index-bpmtbmy9.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
authorizeCuration,
|
|
5
5
|
buildConfigFingerprintInput,
|
|
6
6
|
readCohortConfigFingerprint
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2w4tsmva.js";
|
|
8
8
|
import"./index-rtry5xyf.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-9bk16zkv.js";
|
|
10
10
|
import"./index-ae75rja9.js";
|
|
11
11
|
import"./index-dzyjb33e.js";
|
|
12
12
|
import"./index-ey29aap6.js";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-81dkzncr.js";
|
|
5
5
|
import"./index-vm4xw9z3.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
import"./index-nw9cn84t.js";
|
|
7
|
+
import"./index-cfz5750k.js";
|
|
8
8
|
import"./index-cggqh2dz.js";
|
|
9
9
|
import"./index-4905hd2m.js";
|
|
10
10
|
import"./index-134d35c1.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-bwfzq91q.js";
|
|
12
|
+
import"./index-j08trvny.js";
|
|
13
|
+
import"./index-1kjg590p.js";
|
|
14
14
|
import"./index-6mjf4vr1.js";
|
|
15
15
|
import"./index-c8s9a3zh.js";
|
|
16
16
|
import"./index-9ss2m4rs.js";
|
|
17
17
|
import"./index-y6a7gjtj.js";
|
|
18
18
|
import"./index-mrtms113.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-wpqypdge.js";
|
|
20
|
+
import"./index-2w4tsmva.js";
|
|
21
21
|
import"./index-rtry5xyf.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
import"./index-n8j0cnp1.js";
|
|
23
|
+
import"./index-9bk16zkv.js";
|
|
24
24
|
import"./index-ae75rja9.js";
|
|
25
25
|
import"./index-dzyjb33e.js";
|
|
26
26
|
import"./index-ey29aap6.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-bbejqagj.js";
|
|
28
28
|
import"./index-k5jrywpr.js";
|
|
29
29
|
import"./index-n832052r.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-m1hew17b.js";
|
|
31
31
|
import"./index-bk5tah7q.js";
|
|
32
32
|
import"./index-8fwhhayc.js";
|
|
33
33
|
import"./index-q1exe2b3.js";
|
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-81dkzncr.js";
|
|
18
18
|
import"./index-vm4xw9z3.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-nw9cn84t.js";
|
|
20
|
+
import"./index-cfz5750k.js";
|
|
21
21
|
import"./index-cggqh2dz.js";
|
|
22
22
|
import"./index-4905hd2m.js";
|
|
23
23
|
import"./index-134d35c1.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
24
|
+
import"./index-bwfzq91q.js";
|
|
25
|
+
import"./index-j08trvny.js";
|
|
26
|
+
import"./index-1kjg590p.js";
|
|
27
27
|
import"./index-6mjf4vr1.js";
|
|
28
28
|
import"./index-c8s9a3zh.js";
|
|
29
29
|
import"./index-9ss2m4rs.js";
|
|
30
30
|
import"./index-y6a7gjtj.js";
|
|
31
31
|
import"./index-mrtms113.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-wpqypdge.js";
|
|
33
|
+
import"./index-2w4tsmva.js";
|
|
34
34
|
import"./index-rtry5xyf.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-n8j0cnp1.js";
|
|
36
|
+
import"./index-9bk16zkv.js";
|
|
37
37
|
import"./index-ae75rja9.js";
|
|
38
38
|
import"./index-dzyjb33e.js";
|
|
39
39
|
import"./index-ey29aap6.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-bbejqagj.js";
|
|
41
41
|
import"./index-k5jrywpr.js";
|
|
42
42
|
import"./index-n832052r.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-m1hew17b.js";
|
|
44
44
|
import"./index-bk5tah7q.js";
|
|
45
45
|
import"./index-8fwhhayc.js";
|
|
46
46
|
import"./index-q1exe2b3.js";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-qh9466j3.js";
|
|
5
|
+
import"./index-81dkzncr.js";
|
|
6
6
|
import"./index-vm4xw9z3.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
import"./index-nw9cn84t.js";
|
|
8
|
+
import"./index-cfz5750k.js";
|
|
9
9
|
import"./index-cggqh2dz.js";
|
|
10
10
|
import"./index-4905hd2m.js";
|
|
11
11
|
import"./index-134d35c1.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
import"./index-bwfzq91q.js";
|
|
13
|
+
import"./index-j08trvny.js";
|
|
14
|
+
import"./index-1kjg590p.js";
|
|
15
15
|
import"./index-6mjf4vr1.js";
|
|
16
16
|
import"./index-c8s9a3zh.js";
|
|
17
17
|
import"./index-9ss2m4rs.js";
|
|
18
18
|
import"./index-y6a7gjtj.js";
|
|
19
19
|
import"./index-mrtms113.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-wpqypdge.js";
|
|
21
|
+
import"./index-2w4tsmva.js";
|
|
22
22
|
import"./index-rtry5xyf.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-n8j0cnp1.js";
|
|
24
|
+
import"./index-9bk16zkv.js";
|
|
25
25
|
import"./index-ae75rja9.js";
|
|
26
26
|
import"./index-dzyjb33e.js";
|
|
27
27
|
import"./index-ey29aap6.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-bbejqagj.js";
|
|
29
29
|
import"./index-k5jrywpr.js";
|
|
30
30
|
import"./index-n832052r.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-m1hew17b.js";
|
|
32
32
|
import"./index-bk5tah7q.js";
|
|
33
33
|
import"./index-8fwhhayc.js";
|
|
34
34
|
import"./index-q1exe2b3.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-2cv1j3rf.js";
|
|
5
|
+
import"./index-nw9cn84t.js";
|
|
6
|
+
import"./index-m1hew17b.js";
|
|
7
7
|
import"./index-bk5tah7q.js";
|
|
8
8
|
import"./index-3jcyn8g6.js";
|
|
9
9
|
import"./index-bpmtbmy9.js";
|
|
@@ -7,35 +7,35 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-81dkzncr.js";
|
|
11
11
|
import"./index-vm4xw9z3.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
import"./index-nw9cn84t.js";
|
|
13
|
+
import"./index-cfz5750k.js";
|
|
14
14
|
import"./index-cggqh2dz.js";
|
|
15
15
|
import"./index-4905hd2m.js";
|
|
16
16
|
import"./index-134d35c1.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-bwfzq91q.js";
|
|
18
|
+
import"./index-j08trvny.js";
|
|
19
|
+
import"./index-1kjg590p.js";
|
|
20
20
|
import"./index-6mjf4vr1.js";
|
|
21
21
|
import"./index-c8s9a3zh.js";
|
|
22
22
|
import"./index-9ss2m4rs.js";
|
|
23
23
|
import"./index-y6a7gjtj.js";
|
|
24
24
|
import"./index-mrtms113.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
import"./index-wpqypdge.js";
|
|
26
|
+
import"./index-2w4tsmva.js";
|
|
27
27
|
import"./index-rtry5xyf.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveHiveKnowledgePath
|
|
30
|
-
} from "./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
} from "./index-n8j0cnp1.js";
|
|
31
|
+
import"./index-9bk16zkv.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-dzyjb33e.js";
|
|
34
34
|
import"./index-ey29aap6.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-bbejqagj.js";
|
|
36
36
|
import"./index-k5jrywpr.js";
|
|
37
37
|
import"./index-n832052r.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-m1hew17b.js";
|
|
39
39
|
import"./index-bk5tah7q.js";
|
|
40
40
|
import"./index-8fwhhayc.js";
|
|
41
41
|
import"./index-q1exe2b3.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
readDoctorArtifact,
|
|
12
12
|
removeStraySwarmDir,
|
|
13
13
|
runConfigDoctor
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-cfz5750k.js";
|
|
15
15
|
import {
|
|
16
16
|
EvaluationTaskV1Schema,
|
|
17
17
|
GateAuditManifestV1Schema,
|
|
@@ -92,15 +92,15 @@ import {
|
|
|
92
92
|
retireSkill,
|
|
93
93
|
selectCandidateEntries,
|
|
94
94
|
syncBundledProjectSkillsIfMissingAsync
|
|
95
|
-
} from "./index-
|
|
95
|
+
} from "./index-bwfzq91q.js";
|
|
96
96
|
import {
|
|
97
97
|
readRecentEscalations
|
|
98
|
-
} from "./index-
|
|
98
|
+
} from "./index-j08trvny.js";
|
|
99
99
|
import {
|
|
100
100
|
alreadyCuratedThisGeneration,
|
|
101
101
|
claimNextScanBatch,
|
|
102
102
|
resolveCohortId
|
|
103
|
-
} from "./index-
|
|
103
|
+
} from "./index-1kjg590p.js";
|
|
104
104
|
import {
|
|
105
105
|
CURATOR_INIT_PROMPT,
|
|
106
106
|
CURATOR_PHASE_PROMPT,
|
|
@@ -150,11 +150,11 @@ import {
|
|
|
150
150
|
validateActionability,
|
|
151
151
|
validateActionableFields,
|
|
152
152
|
validateLesson
|
|
153
|
-
} from "./index-
|
|
153
|
+
} from "./index-wpqypdge.js";
|
|
154
154
|
import {
|
|
155
155
|
authorizeCuration,
|
|
156
156
|
buildConfigFingerprintInput
|
|
157
|
-
} from "./index-
|
|
157
|
+
} from "./index-2w4tsmva.js";
|
|
158
158
|
import {
|
|
159
159
|
cohortConfigFingerprint
|
|
160
160
|
} from "./index-rtry5xyf.js";
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
transactFile,
|
|
188
188
|
transactKnowledge,
|
|
189
189
|
wordBigrams
|
|
190
|
-
} from "./index-
|
|
190
|
+
} from "./index-n8j0cnp1.js";
|
|
191
191
|
import {
|
|
192
192
|
MAX_EVENT_LOG_ENTRIES,
|
|
193
193
|
_internals,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
recordHiveKnowledgeEvent,
|
|
198
198
|
recordKnowledgeEvent,
|
|
199
199
|
resolveKnowledgeEventsPath
|
|
200
|
-
} from "./index-
|
|
200
|
+
} from "./index-9bk16zkv.js";
|
|
201
201
|
import {
|
|
202
202
|
resolveHiveDataDir,
|
|
203
203
|
resolveHiveEventsPath,
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
init_loader,
|
|
223
223
|
loadPluginConfig,
|
|
224
224
|
loadPluginConfigWithMeta
|
|
225
|
-
} from "./index-
|
|
225
|
+
} from "./index-bbejqagj.js";
|
|
226
226
|
import {
|
|
227
227
|
RetrospectiveEvidenceSchema
|
|
228
228
|
} from "./index-k5jrywpr.js";
|
|
@@ -237,7 +237,7 @@ import {
|
|
|
237
237
|
package_default,
|
|
238
238
|
resolveAutoReviewConfig,
|
|
239
239
|
stripKnownSwarmPrefix
|
|
240
|
-
} from "./index-
|
|
240
|
+
} from "./index-m1hew17b.js";
|
|
241
241
|
import {
|
|
242
242
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
243
243
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -17503,7 +17503,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
17503
17503
|
};
|
|
17504
17504
|
}
|
|
17505
17505
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
17506
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
17506
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w58bmwyq.js");
|
|
17507
17507
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
17508
17508
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
17509
17509
|
if (sweepConfig?.enabled === false)
|
|
@@ -19096,7 +19096,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
19096
19096
|
}
|
|
19097
19097
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
19098
19098
|
try {
|
|
19099
|
-
const skillModule = await import("./skill-generator-
|
|
19099
|
+
const skillModule = await import("./skill-generator-3n5y902z.js");
|
|
19100
19100
|
for (const cand of skillCandidates) {
|
|
19101
19101
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
19102
19102
|
continue;
|
|
@@ -19497,7 +19497,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
19497
19497
|
} catch {}
|
|
19498
19498
|
}
|
|
19499
19499
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
19500
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
19500
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-f1m2xp5x.js");
|
|
19501
19501
|
for (const { id } of contradictedEntries) {
|
|
19502
19502
|
try {
|
|
19503
19503
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -20316,7 +20316,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
20316
20316
|
warnings.push("Failed to collect knowledge summary.");
|
|
20317
20317
|
}
|
|
20318
20318
|
try {
|
|
20319
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
20319
|
+
const { getScanStatus } = await import("./scan-cursor-18fnwr58.js");
|
|
20320
20320
|
const scanStatus = await getScanStatus(directory);
|
|
20321
20321
|
if (scanStatus.remaining_estimate > 0) {
|
|
20322
20322
|
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.`);
|
|
@@ -20488,9 +20488,9 @@ var _internals24 = {
|
|
|
20488
20488
|
verifyPostMortemKnowledgeActions,
|
|
20489
20489
|
repairPostMortemActions,
|
|
20490
20490
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
20491
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
20491
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-jw15d8bt.js");
|
|
20492
20492
|
try {
|
|
20493
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
20493
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w58bmwyq.js");
|
|
20494
20494
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
20495
20495
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
20496
20496
|
} catch {
|
|
@@ -20498,11 +20498,11 @@ var _internals24 = {
|
|
|
20498
20498
|
}
|
|
20499
20499
|
},
|
|
20500
20500
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
20501
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
20501
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-tqedvpy1.js");
|
|
20502
20502
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
20503
20503
|
},
|
|
20504
20504
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
20505
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
20505
|
+
const { checkHivePromotions } = await import("./hive-promoter-s804newd.js");
|
|
20506
20506
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
20507
20507
|
},
|
|
20508
20508
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -20511,7 +20511,7 @@ var _internals24 = {
|
|
|
20511
20511
|
activateProposal,
|
|
20512
20512
|
listSkills: listSkills2,
|
|
20513
20513
|
sanitizeSlug
|
|
20514
|
-
} = await import("./skill-generator-
|
|
20514
|
+
} = await import("./skill-generator-3n5y902z.js");
|
|
20515
20515
|
const result = {
|
|
20516
20516
|
approved: [],
|
|
20517
20517
|
rejected: [],
|
|
@@ -23138,9 +23138,9 @@ function hashContent(content) {
|
|
|
23138
23138
|
return createHash9("sha1").update(content).digest("hex");
|
|
23139
23139
|
}
|
|
23140
23140
|
async function loadConfigForPolicyCurator(directory) {
|
|
23141
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
23141
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-jw15d8bt.js");
|
|
23142
23142
|
try {
|
|
23143
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
23143
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w58bmwyq.js");
|
|
23144
23144
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
23145
23145
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
23146
23146
|
} catch {
|
|
@@ -26485,7 +26485,7 @@ async function runFinalizeStage(ctx) {
|
|
|
26485
26485
|
}
|
|
26486
26486
|
}
|
|
26487
26487
|
try {
|
|
26488
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
26488
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-jw15d8bt.js");
|
|
26489
26489
|
const { config: pmLoadedConfig } = _internals34.loadPluginConfigWithMeta(ctx.directory);
|
|
26490
26490
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
26491
26491
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -28715,9 +28715,9 @@ var _internals39 = {
|
|
|
28715
28715
|
loadPluginConfigWithMeta,
|
|
28716
28716
|
loadCuratorDeps: async () => {
|
|
28717
28717
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
28718
|
-
import("./schema-
|
|
28719
|
-
import("./curator-
|
|
28720
|
-
import("./curator-llm-factory-
|
|
28718
|
+
import("./schema-jw15d8bt.js"),
|
|
28719
|
+
import("./curator-tqedvpy1.js"),
|
|
28720
|
+
import("./curator-llm-factory-mhwje8rf.js")
|
|
28721
28721
|
]);
|
|
28722
28722
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
28723
28723
|
}
|
|
@@ -29619,7 +29619,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
29619
29619
|
let scanCompleted = false;
|
|
29620
29620
|
let scanRemaining = 0;
|
|
29621
29621
|
try {
|
|
29622
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
29622
|
+
const { getScanStatus } = await import("./scan-cursor-18fnwr58.js");
|
|
29623
29623
|
const status = await getScanStatus(directory);
|
|
29624
29624
|
scanGeneration = status.generation;
|
|
29625
29625
|
scanCompleted = status.completed;
|
|
@@ -29629,17 +29629,17 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
29629
29629
|
try {
|
|
29630
29630
|
const { isLinked: isLinked2 } = await import("./knowledge-link-mm1w967j.js");
|
|
29631
29631
|
if (isLinked2(directory)) {
|
|
29632
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
29632
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-jw15d8bt.js");
|
|
29633
29633
|
let config;
|
|
29634
29634
|
try {
|
|
29635
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
29635
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w58bmwyq.js");
|
|
29636
29636
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
29637
29637
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
29638
29638
|
} catch {
|
|
29639
29639
|
config = KnowledgeConfigSchema2.parse({});
|
|
29640
29640
|
}
|
|
29641
29641
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
29642
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
29642
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-v6ywe8qd.js");
|
|
29643
29643
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
29644
29644
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
29645
29645
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -30850,7 +30850,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
30850
30850
|
const result = runConfigDoctor(config, directory);
|
|
30851
30851
|
let output;
|
|
30852
30852
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
30853
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
30853
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-q0krbxwv.js");
|
|
30854
30854
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
30855
30855
|
applyLossy: true
|
|
30856
30856
|
});
|
|
@@ -52271,7 +52271,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
52271
52271
|
async function handleHelpCommand(ctx) {
|
|
52272
52272
|
const targetCommand = ctx.args.join(" ");
|
|
52273
52273
|
if (!targetCommand) {
|
|
52274
|
-
const { buildHelpText } = await import("./index-
|
|
52274
|
+
const { buildHelpText } = await import("./index-cxq1t7j1.js");
|
|
52275
52275
|
return buildHelpText();
|
|
52276
52276
|
}
|
|
52277
52277
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -52280,7 +52280,7 @@ async function handleHelpCommand(ctx) {
|
|
|
52280
52280
|
return _internals14.buildDetailedHelp(resolved.key, resolved.entry);
|
|
52281
52281
|
}
|
|
52282
52282
|
const similar = _internals14.findSimilarCommands(targetCommand);
|
|
52283
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
52283
|
+
const { buildHelpText: fullHelp } = await import("./index-cxq1t7j1.js");
|
|
52284
52284
|
if (similar.length > 0) {
|
|
52285
52285
|
return `Command '/swarm ${targetCommand}' not found.
|
|
52286
52286
|
|
|
@@ -52457,7 +52457,7 @@ var COMMAND_REGISTRY = {
|
|
|
52457
52457
|
},
|
|
52458
52458
|
"guardrail explain": {
|
|
52459
52459
|
handler: async (ctx) => {
|
|
52460
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
52460
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-m0m74hvr.js");
|
|
52461
52461
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
52462
52462
|
},
|
|
52463
52463
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -52467,7 +52467,7 @@ var COMMAND_REGISTRY = {
|
|
|
52467
52467
|
},
|
|
52468
52468
|
"guardrail-explain": {
|
|
52469
52469
|
handler: async (ctx) => {
|
|
52470
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
52470
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-m0m74hvr.js");
|
|
52471
52471
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
52472
52472
|
},
|
|
52473
52473
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -52477,7 +52477,7 @@ var COMMAND_REGISTRY = {
|
|
|
52477
52477
|
},
|
|
52478
52478
|
"guardrail-log": {
|
|
52479
52479
|
handler: async (ctx) => {
|
|
52480
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
52480
|
+
const { handleGuardrailLog } = await import("./guardrail-log-5g8x6qc6.js");
|
|
52481
52481
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
52482
52482
|
},
|
|
52483
52483
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -625,7 +625,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
625
625
|
deltas.push({ id, delta });
|
|
626
626
|
}
|
|
627
627
|
if (deltas.length > 0) {
|
|
628
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
628
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-t6d6fr8b.js");
|
|
629
629
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
630
630
|
}
|
|
631
631
|
return {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-wpqypdge.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-n8j0cnp1.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-9bk16zkv.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-qh9466j3.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2cv1j3rf.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,36 +84,36 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-81dkzncr.js";
|
|
88
88
|
import"./index-vm4xw9z3.js";
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
89
|
+
import"./index-nw9cn84t.js";
|
|
90
|
+
import"./index-cfz5750k.js";
|
|
91
91
|
import"./index-cggqh2dz.js";
|
|
92
92
|
import"./index-4905hd2m.js";
|
|
93
93
|
import"./index-134d35c1.js";
|
|
94
|
-
import"./index-
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
94
|
+
import"./index-bwfzq91q.js";
|
|
95
|
+
import"./index-j08trvny.js";
|
|
96
|
+
import"./index-1kjg590p.js";
|
|
97
97
|
import"./index-6mjf4vr1.js";
|
|
98
98
|
import"./index-c8s9a3zh.js";
|
|
99
99
|
import"./index-9ss2m4rs.js";
|
|
100
100
|
import"./index-y6a7gjtj.js";
|
|
101
101
|
import"./index-mrtms113.js";
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
102
|
+
import"./index-wpqypdge.js";
|
|
103
|
+
import"./index-2w4tsmva.js";
|
|
104
104
|
import"./index-rtry5xyf.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-n8j0cnp1.js";
|
|
106
|
+
import"./index-9bk16zkv.js";
|
|
107
107
|
import"./index-ae75rja9.js";
|
|
108
108
|
import"./index-dzyjb33e.js";
|
|
109
109
|
import"./index-ey29aap6.js";
|
|
110
|
-
import"./index-
|
|
110
|
+
import"./index-bbejqagj.js";
|
|
111
111
|
import"./index-k5jrywpr.js";
|
|
112
112
|
import"./index-n832052r.js";
|
|
113
113
|
import {
|
|
114
114
|
init_schema,
|
|
115
115
|
stripKnownSwarmPrefix
|
|
116
|
-
} from "./index-
|
|
116
|
+
} from "./index-m1hew17b.js";
|
|
117
117
|
import"./index-bk5tah7q.js";
|
|
118
118
|
import"./index-8fwhhayc.js";
|
|
119
119
|
import"./index-q1exe2b3.js";
|