opencode-swarm 7.123.0 → 7.125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/skills/critic-gate/SKILL.md +8 -0
- package/.opencode/skills/swarm/SKILL.md +12 -8
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +252 -62
- package/.opencode/skills/swarm-pr-review/SKILL.md +242 -76
- package/README.md +6 -1
- package/dist/background/lane-output-store.d.ts +10 -0
- package/dist/background/pending-delegations.d.ts +3 -0
- package/dist/background/workspace-snapshot.d.ts +59 -0
- package/dist/cli/{config-doctor-3ksh1534.js → config-doctor-be9sxqx8.js} +6 -6
- package/dist/cli/{core-cwgb7ev8.js → core-d38hc85b.js} +4 -4
- package/dist/cli/{curation-policy-4j4qce5a.js → curation-policy-52kt6d7t.js} +2 -2
- package/dist/cli/{curator-drift-6b2fjsgr.js → curator-drift-h9a2sjvf.js} +7 -7
- package/dist/cli/{curator-tkyn9bzz.js → curator-hbst8nbc.js} +32 -30
- package/dist/cli/curator-llm-factory-frde1955.js +54 -0
- package/dist/cli/{dispatch-07jgc3hn.js → dispatch-f4hj1cj7.js} +3 -3
- package/dist/cli/{evidence-summary-service-96ndczbk.js → evidence-summary-service-9hq7n9k9.js} +12 -12
- package/dist/cli/{gate-evidence-xqks3kk2.js → gate-evidence-cy2te3x8.js} +2 -2
- package/dist/cli/guardrail-explain-112kqmbc.js +55 -0
- package/dist/cli/guardrail-log-c8zcab91.js +16 -0
- package/dist/cli/hive-promoter-448xs2tp.js +69 -0
- package/dist/cli/{index-hns7xjm7.js → index-09vd53pz.js} +4 -2
- package/dist/cli/{pending-delegations-68cbaqv2.js → index-0cz1ws47.js} +9 -21
- package/dist/cli/{index-det5jwfk.js → index-0y6tmm9v.js} +5 -1
- package/dist/cli/index-134d35c1.js +116 -0
- package/dist/cli/{index-m1abzg93.js → index-1kz6da87.js} +4 -2
- package/dist/cli/{index-22e127jw.js → index-23zsx7dm.js} +5 -3
- package/dist/cli/{index-kzj3fp7c.js → index-2445sx3d.js} +1 -1
- package/dist/cli/{index-ctpgsj84.js → index-2tn5h2zp.js} +1 -1
- package/dist/cli/{index-6xnxz6z0.js → index-3x761jqv.js} +4 -2
- package/dist/cli/{index-7cspygmb.js → index-4rzzzjtg.js} +11 -8
- package/dist/cli/{index-cqsak7bf.js → index-67hqr2zv.js} +1 -1
- package/dist/cli/{index-nprawcc0.js → index-6n2jpz7x.js} +1 -1
- package/dist/cli/{index-19zn67q6.js → index-6vfvc36k.js} +5 -1
- package/dist/cli/{index-6sgqnvpw.js → index-7j3sm7h8.js} +2 -2
- package/dist/cli/{index-2j25br0p.js → index-958hf0yr.js} +9 -9
- package/dist/cli/{index-j9kxwshw.js → index-99ed0h32.js} +8 -6
- package/dist/cli/{index-7g91saha.js → index-9hbwa5x1.js} +40 -32
- package/dist/cli/{index-jyrhy4ww.js → index-amspa811.js} +3179 -1557
- package/dist/cli/index-bk5tah7q.js +19 -0
- package/dist/cli/{index-293f68mj.js → index-bpmtbmy9.js} +4680 -4342
- package/dist/cli/{index-m0bmh3w0.js → index-dx2c2wjt.js} +2 -2
- package/dist/cli/{index-ye3fndsw.js → index-gacm5s2n.js} +9 -5
- package/dist/cli/{index-d6h5hq91.js → index-gnvg72y1.js} +2 -2
- package/dist/cli/{index-17eybc3z.js → index-jh6s75f6.js} +1 -1
- package/dist/cli/{index-vcgfqd8f.js → index-k5jrywpr.js} +4 -2
- package/dist/cli/{index-3rr0ese8.js → index-kt0awv1n.js} +41 -9
- package/dist/cli/index-mg54y5gc.js +564 -0
- package/dist/cli/{index-dywekeen.js → index-n6chz2g8.js} +1 -1
- package/dist/cli/{index-gnp9x6se.js → index-n832052r.js} +4 -2
- package/dist/cli/{index-816rkp4y.js → index-s9mj4rb9.js} +5 -3
- package/dist/cli/{index-gw3m5fw0.js → index-v2rdhwx8.js} +5 -3
- package/dist/cli/{index-q00e4s1s.js → index-vtwqjr4z.js} +11 -7
- package/dist/cli/index-xattnmyb.js +2502 -0
- package/dist/cli/{index-n2712byd.js → index-yt1v62pv.js} +8 -5
- package/dist/cli/{index-5e4e2hvv.js → index-z6xqpmqg.js} +4 -0
- package/dist/cli/{index-p0arc26j.js → index-zjygnfay.js} +7 -2
- package/dist/cli/index.js +35 -31
- package/dist/cli/{knowledge-escalator-dyxsm78k.js → knowledge-escalator-htafbhxg.js} +4 -4
- package/dist/cli/{knowledge-events-36q6nvae.js → knowledge-events-havw8c4t.js} +1 -1
- package/dist/cli/{knowledge-store-e07b4s54.js → knowledge-store-hqngpt2v.js} +2 -2
- package/dist/cli/{knowledge-validator-sfyf7wn2.js → knowledge-validator-g7mpnazh.js} +5 -5
- package/dist/cli/pending-delegations-7j8xqg5f.js +34 -0
- package/dist/cli/{pr-subscriptions-x653151h.js → pr-subscriptions-bxpqde8w.js} +5 -5
- package/dist/cli/{scan-cursor-hm0aqqae.js → scan-cursor-sx7cvh8v.js} +3 -3
- package/dist/cli/{schema-13bnng2n.js → schema-2418eqy3.js} +7 -4
- package/dist/cli/{scope-persistence-d9erwnvb.js → scope-persistence-habn4q8a.js} +4 -4
- package/dist/cli/{skill-generator-63r20a9k.js → skill-generator-zggy797r.js} +7 -7
- package/dist/cli/sqlite-loader-r1kgt2pq.js +12 -0
- package/dist/cli/workspace-snapshot-c9pxxt9a.js +48 -0
- package/dist/commands/memory-link.d.ts +28 -0
- package/dist/commands/registry.d.ts +26 -1
- package/dist/config/schema.d.ts +6 -0
- package/dist/hooks/pr-workflow-gate.d.ts +211 -0
- package/dist/hooks/pr-workflow-response-gate.d.ts +23 -0
- package/dist/hooks/pr-workflow-session-resolver.d.ts +14 -0
- package/dist/index.js +496 -451
- package/dist/knowledge/family-migration-shared.d.ts +24 -0
- package/dist/knowledge/family-migration.d.ts +5 -0
- package/dist/memory/config.d.ts +11 -0
- package/dist/memory/consolidation-log.d.ts +8 -2
- package/dist/memory/finalize-reward-sweep.d.ts +2 -1
- package/dist/memory/gateway.d.ts +13 -0
- package/dist/memory/index.d.ts +4 -2
- package/dist/memory/local-jsonl-provider.d.ts +25 -1
- package/dist/memory/memory-family-manifest.d.ts +52 -0
- package/dist/memory/memory-family-migration.d.ts +94 -0
- package/dist/memory/memory-link.d.ts +103 -0
- package/dist/memory/provider-pool.d.ts +35 -0
- package/dist/memory/redaction.d.ts +31 -0
- package/dist/memory/schema.d.ts +21 -0
- package/dist/memory/sqlite-provider.d.ts +58 -1
- package/dist/memory/storage-root.d.ts +93 -0
- package/dist/memory/types.d.ts +20 -1
- package/dist/services/knowledge-diagnostics.d.ts +25 -0
- package/dist/services/status-service.d.ts +16 -0
- package/dist/tools/complete-pr-workflow.d.ts +5 -0
- package/dist/tools/dispatch-lanes.d.ts +44 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/manifest.d.ts +2 -0
- package/dist/tools/run-pr-feedback-stage-a.d.ts +69 -0
- package/dist/tools/tool-metadata.d.ts +8 -0
- package/dist/tools/write-pr-review-trigger-eval.d.ts +56 -46
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-mfvd4sqx.js +0 -52
- package/dist/cli/guardrail-explain-4vytbchb.js +0 -53
- package/dist/cli/guardrail-log-z291m4gw.js +0 -16
- package/dist/cli/hive-promoter-y5wsztkc.js +0 -67
- package/dist/cli/index-4rhcth7a.js +0 -14
- package/dist/cli/index-dqh3zhhc.js +0 -133
- package/dist/cli/index-wr8qgpz5.js +0 -2463
- package/dist/cli/workspace-snapshot-eyf6gd0d.js +0 -22
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
resolveKnowledgeStoreDir
|
|
9
9
|
} from "./index-q27bajqb.js";
|
|
10
10
|
import {
|
|
11
|
+
init_knowledge_types,
|
|
11
12
|
isActiveStatus
|
|
12
|
-
} from "./index-
|
|
13
|
+
} from "./index-bk5tah7q.js";
|
|
13
14
|
import {
|
|
14
15
|
init_logger,
|
|
15
16
|
log
|
|
@@ -38,6 +39,7 @@ import * as path from "path";
|
|
|
38
39
|
init_logger();
|
|
39
40
|
|
|
40
41
|
// src/hooks/knowledge-reinforcement.ts
|
|
42
|
+
init_knowledge_types();
|
|
41
43
|
function isActiveSwarmKnowledgeEntry(entry) {
|
|
42
44
|
return isActiveStatus(entry.status);
|
|
43
45
|
}
|
|
@@ -72,6 +74,7 @@ function reinforceSwarmKnowledgeEntry(entry, confirmation) {
|
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
// src/hooks/knowledge-store.ts
|
|
77
|
+
init_knowledge_types();
|
|
75
78
|
var KNOWLEDGE_JSONL_CACHE_NAMESPACE = "knowledge-jsonl:normalized:v1";
|
|
76
79
|
function getPlatformConfigDir() {
|
|
77
80
|
const platform = process.platform;
|
|
@@ -647,7 +650,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
647
650
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
648
651
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
649
652
|
return;
|
|
650
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
653
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-havw8c4t.js");
|
|
651
654
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
652
655
|
const flagIds = new Set;
|
|
653
656
|
for (const e of atFloor) {
|
|
@@ -714,11 +717,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
714
717
|
});
|
|
715
718
|
}
|
|
716
719
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
717
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
718
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
720
|
+
const { quarantineEntry } = await import("./knowledge-validator-g7mpnazh.js");
|
|
721
|
+
const { KnowledgeConfigSchema } = await import("./schema-2418eqy3.js");
|
|
719
722
|
let config;
|
|
720
723
|
try {
|
|
721
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
724
|
+
const { loadPluginConfigWithMeta } = await import("./index-958hf0yr.js");
|
|
722
725
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
723
726
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
724
727
|
} catch {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_merge
|
|
4
|
+
} from "./index-zjygnfay.js";
|
|
2
5
|
import {
|
|
3
6
|
init_logger
|
|
4
7
|
} from "./index-zgwm4ryv.js";
|
|
@@ -17,6 +20,7 @@ class SwarmError extends Error {
|
|
|
17
20
|
|
|
18
21
|
// src/utils/index.ts
|
|
19
22
|
init_logger();
|
|
23
|
+
init_merge();
|
|
20
24
|
|
|
21
25
|
// src/utils/regex.ts
|
|
22
26
|
function escapeRegex(s) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
__esm
|
|
4
|
+
} from "./index-a76rekgs.js";
|
|
5
|
+
|
|
2
6
|
// src/utils/merge.ts
|
|
3
|
-
var MAX_MERGE_DEPTH = 10;
|
|
4
7
|
function deepMergeInternal(base, override, depth) {
|
|
5
8
|
if (depth >= MAX_MERGE_DEPTH) {
|
|
6
9
|
throw new Error(`deepMerge exceeded maximum depth of ${MAX_MERGE_DEPTH}`);
|
|
@@ -24,5 +27,7 @@ function deepMerge(base, override) {
|
|
|
24
27
|
return base;
|
|
25
28
|
return deepMergeInternal(base, override, 0);
|
|
26
29
|
}
|
|
30
|
+
var MAX_MERGE_DEPTH = 10;
|
|
31
|
+
var init_merge = () => {};
|
|
27
32
|
|
|
28
|
-
export { deepMerge };
|
|
33
|
+
export { MAX_MERGE_DEPTH, deepMerge, init_merge };
|
package/dist/cli/index.js
CHANGED
|
@@ -7,51 +7,54 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-amspa811.js";
|
|
11
|
+
import"./index-6vfvc36k.js";
|
|
12
|
+
import"./index-0y6tmm9v.js";
|
|
13
|
+
import"./index-4rzzzjtg.js";
|
|
14
14
|
import"./index-4905hd2m.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
import"./index-134d35c1.js";
|
|
16
|
+
import"./index-6n2jpz7x.js";
|
|
17
|
+
import"./index-vtwqjr4z.js";
|
|
18
|
+
import"./index-99ed0h32.js";
|
|
19
|
+
import"./index-09vd53pz.js";
|
|
19
20
|
import"./index-vxv732ex.js";
|
|
20
21
|
import"./index-c8s9a3zh.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
import"./index-s9mj4rb9.js";
|
|
23
|
+
import"./index-23zsx7dm.js";
|
|
24
|
+
import"./index-dx2c2wjt.js";
|
|
25
|
+
import"./index-67hqr2zv.js";
|
|
25
26
|
import"./index-rtry5xyf.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-yt1v62pv.js";
|
|
28
|
+
import"./index-n6chz2g8.js";
|
|
28
29
|
import"./index-ae75rja9.js";
|
|
29
30
|
import"./index-q27bajqb.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-kt0awv1n.js";
|
|
32
|
+
import"./index-k5jrywpr.js";
|
|
33
|
+
import"./index-n832052r.js";
|
|
33
34
|
import {
|
|
34
|
-
DEFAULT_AGENT_CONFIGS
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
DEFAULT_AGENT_CONFIGS,
|
|
36
|
+
init_constants
|
|
37
|
+
} from "./index-xattnmyb.js";
|
|
38
|
+
import"./index-bk5tah7q.js";
|
|
37
39
|
import"./index-8fwhhayc.js";
|
|
38
40
|
import"./index-q1exe2b3.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
41
|
+
import"./index-gnvg72y1.js";
|
|
42
|
+
import"./index-2tn5h2zp.js";
|
|
43
|
+
import"./index-1kz6da87.js";
|
|
44
|
+
import"./index-v2rdhwx8.js";
|
|
45
|
+
import"./index-gacm5s2n.js";
|
|
46
|
+
import"./index-0cz1ws47.js";
|
|
47
|
+
import"./index-2445sx3d.js";
|
|
48
|
+
import"./index-z6xqpmqg.js";
|
|
49
|
+
import"./index-zjygnfay.js";
|
|
47
50
|
import"./index-zgwm4ryv.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
51
|
+
import"./index-mg54y5gc.js";
|
|
52
|
+
import"./index-3x761jqv.js";
|
|
50
53
|
import"./index-7mkpsw6g.js";
|
|
51
54
|
import"./index-fsrp8wp3.js";
|
|
52
55
|
import"./index-76kvm9z5.js";
|
|
53
56
|
import"./index-q2rrv0cy.js";
|
|
54
|
-
import"./index-
|
|
57
|
+
import"./index-bpmtbmy9.js";
|
|
55
58
|
import"./index-7g4c7s5r.js";
|
|
56
59
|
import"./index-qe3v54nb.js";
|
|
57
60
|
import"./index-a76rekgs.js";
|
|
@@ -60,6 +63,7 @@ import"./index-a76rekgs.js";
|
|
|
60
63
|
import * as fs from "fs";
|
|
61
64
|
import * as os from "os";
|
|
62
65
|
import * as path from "path";
|
|
66
|
+
init_constants();
|
|
63
67
|
|
|
64
68
|
// src/tools/repo-graph/safe-realpath.ts
|
|
65
69
|
import { realpathSync } from "fs";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-99ed0h32.js";
|
|
12
|
+
import"./index-yt1v62pv.js";
|
|
13
|
+
import"./index-n6chz2g8.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-q27bajqb.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-bk5tah7q.js";
|
|
17
17
|
import"./index-zgwm4ryv.js";
|
|
18
18
|
import"./index-7mkpsw6g.js";
|
|
19
19
|
import"./index-fsrp8wp3.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
resolveKnowledgeCounterBaselinePath,
|
|
27
27
|
resolveKnowledgeEventsPath,
|
|
28
28
|
resolveLegacyApplicationLogPath
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-n6chz2g8.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-q27bajqb.js";
|
|
32
32
|
import"./index-zgwm4ryv.js";
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
transactKnowledge,
|
|
41
41
|
transactKnowledgeWithCas,
|
|
42
42
|
wordBigrams
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-yt1v62pv.js";
|
|
44
44
|
import {
|
|
45
45
|
resolveHiveDataDir
|
|
46
46
|
} from "./index-ae75rja9.js";
|
|
47
47
|
import"./index-q27bajqb.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-bk5tah7q.js";
|
|
49
49
|
import"./index-zgwm4ryv.js";
|
|
50
50
|
import"./index-7mkpsw6g.js";
|
|
51
51
|
import"./index-fsrp8wp3.js";
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-dx2c2wjt.js";
|
|
27
|
+
import"./index-67hqr2zv.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-yt1v62pv.js";
|
|
30
|
+
import"./index-n6chz2g8.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-q27bajqb.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-bk5tah7q.js";
|
|
34
34
|
import"./index-zgwm4ryv.js";
|
|
35
35
|
import"./index-7mkpsw6g.js";
|
|
36
36
|
import"./index-fsrp8wp3.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
BACKGROUND_DELEGATIONS_FILE,
|
|
4
|
+
appendDelegationTransition,
|
|
5
|
+
buildPromptSnapshot,
|
|
6
|
+
findByBatchId,
|
|
7
|
+
findByCorrelationId,
|
|
8
|
+
findOpenAsyncLaneBatches,
|
|
9
|
+
readDelegations,
|
|
10
|
+
recordPendingDelegation,
|
|
11
|
+
sweepStaleDelegations
|
|
12
|
+
} from "./index-0cz1ws47.js";
|
|
13
|
+
import"./index-2445sx3d.js";
|
|
14
|
+
import"./index-z6xqpmqg.js";
|
|
15
|
+
import"./index-zjygnfay.js";
|
|
16
|
+
import"./index-zgwm4ryv.js";
|
|
17
|
+
import"./index-fsrp8wp3.js";
|
|
18
|
+
import"./index-76kvm9z5.js";
|
|
19
|
+
import"./index-q2rrv0cy.js";
|
|
20
|
+
import"./index-bpmtbmy9.js";
|
|
21
|
+
import"./index-7g4c7s5r.js";
|
|
22
|
+
import"./index-qe3v54nb.js";
|
|
23
|
+
import"./index-a76rekgs.js";
|
|
24
|
+
export {
|
|
25
|
+
sweepStaleDelegations,
|
|
26
|
+
recordPendingDelegation,
|
|
27
|
+
readDelegations,
|
|
28
|
+
findOpenAsyncLaneBatches,
|
|
29
|
+
findByCorrelationId,
|
|
30
|
+
findByBatchId,
|
|
31
|
+
buildPromptSnapshot,
|
|
32
|
+
appendDelegationTransition,
|
|
33
|
+
BACKGROUND_DELEGATIONS_FILE
|
|
34
|
+
};
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
} from "./index-23zsx7dm.js";
|
|
13
|
+
import"./index-2445sx3d.js";
|
|
14
|
+
import"./index-z6xqpmqg.js";
|
|
15
|
+
import"./index-zjygnfay.js";
|
|
16
16
|
import"./index-zgwm4ryv.js";
|
|
17
17
|
import"./index-fsrp8wp3.js";
|
|
18
18
|
import"./index-76kvm9z5.js";
|
|
19
19
|
import"./index-q2rrv0cy.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-bpmtbmy9.js";
|
|
21
21
|
import"./index-7g4c7s5r.js";
|
|
22
22
|
import"./index-qe3v54nb.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-09vd53pz.js";
|
|
8
|
+
import"./index-yt1v62pv.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-q27bajqb.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-bk5tah7q.js";
|
|
12
12
|
import"./index-zgwm4ryv.js";
|
|
13
13
|
import"./index-7mkpsw6g.js";
|
|
14
14
|
import"./index-fsrp8wp3.js";
|
|
@@ -82,16 +82,19 @@ import {
|
|
|
82
82
|
WorktreeIsolationConfigSchema,
|
|
83
83
|
_internals,
|
|
84
84
|
getCanonicalAgentRole,
|
|
85
|
+
init_schema,
|
|
85
86
|
isKnownCanonicalRole,
|
|
86
87
|
resolveExternalSkillsConfig,
|
|
87
88
|
resolveGeneratedAgentRole,
|
|
88
89
|
resolveGuardrailsConfig,
|
|
89
90
|
stripKnownSwarmPrefix
|
|
90
|
-
} from "./index-
|
|
91
|
-
import"./index-
|
|
92
|
-
import"./index-
|
|
93
|
-
import"./index-
|
|
91
|
+
} from "./index-xattnmyb.js";
|
|
92
|
+
import"./index-bk5tah7q.js";
|
|
93
|
+
import"./index-zjygnfay.js";
|
|
94
|
+
import"./index-bpmtbmy9.js";
|
|
94
95
|
import"./index-a76rekgs.js";
|
|
96
|
+
init_schema();
|
|
97
|
+
|
|
95
98
|
export {
|
|
96
99
|
stripKnownSwarmPrefix,
|
|
97
100
|
resolveGuardrailsConfig,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
resolveScopeWithFallbacks,
|
|
12
12
|
writeScopeBindingToDisk,
|
|
13
13
|
writeScopeToDisk
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
14
|
+
} from "./index-gnvg72y1.js";
|
|
15
|
+
import"./index-2tn5h2zp.js";
|
|
16
|
+
import"./index-1kz6da87.js";
|
|
17
17
|
import"./index-zgwm4ryv.js";
|
|
18
18
|
import"./index-76kvm9z5.js";
|
|
19
19
|
import"./index-q2rrv0cy.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-bpmtbmy9.js";
|
|
21
21
|
import"./index-7g4c7s5r.js";
|
|
22
22
|
import"./index-qe3v54nb.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
@@ -33,16 +33,16 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-vtwqjr4z.js";
|
|
37
|
+
import"./index-dx2c2wjt.js";
|
|
38
|
+
import"./index-67hqr2zv.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-yt1v62pv.js";
|
|
41
|
+
import"./index-n6chz2g8.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-q27bajqb.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-bk5tah7q.js";
|
|
45
|
+
import"./index-gacm5s2n.js";
|
|
46
46
|
import"./index-zgwm4ryv.js";
|
|
47
47
|
import"./index-7mkpsw6g.js";
|
|
48
48
|
import"./index-fsrp8wp3.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
_internals,
|
|
4
|
+
captureWorkspaceSnapshot,
|
|
5
|
+
changedFilesSinceSnapshot,
|
|
6
|
+
compareWorkspaceSnapshot,
|
|
7
|
+
compareWorkspaceSnapshots,
|
|
8
|
+
digest,
|
|
9
|
+
parsePorcelainPaths,
|
|
10
|
+
readGitTextAtRevision,
|
|
11
|
+
resolveCommitCountSince,
|
|
12
|
+
resolveCurrentGitHead,
|
|
13
|
+
resolveCurrentUpstreamPushTarget,
|
|
14
|
+
resolveCurrentUpstreamRemoteRef,
|
|
15
|
+
resolveExactMergeBase,
|
|
16
|
+
resolveExactRemoteBranchHead,
|
|
17
|
+
resolveGitControlStateDigest,
|
|
18
|
+
resolveIsExactSingleChildCommit,
|
|
19
|
+
resolveIsWorkingTreeClean,
|
|
20
|
+
resolvePrWorkflowRevisionDigest,
|
|
21
|
+
resolvePrWorkflowRevisionDigestAsync,
|
|
22
|
+
resolveRemoteRefsContainingHead,
|
|
23
|
+
workspaceSnapshotMatches
|
|
24
|
+
} from "./index-mg54y5gc.js";
|
|
25
|
+
import"./index-a76rekgs.js";
|
|
26
|
+
export {
|
|
27
|
+
workspaceSnapshotMatches,
|
|
28
|
+
resolveRemoteRefsContainingHead,
|
|
29
|
+
resolvePrWorkflowRevisionDigestAsync,
|
|
30
|
+
resolvePrWorkflowRevisionDigest,
|
|
31
|
+
resolveIsWorkingTreeClean,
|
|
32
|
+
resolveIsExactSingleChildCommit,
|
|
33
|
+
resolveGitControlStateDigest,
|
|
34
|
+
resolveExactRemoteBranchHead,
|
|
35
|
+
resolveExactMergeBase,
|
|
36
|
+
resolveCurrentUpstreamRemoteRef,
|
|
37
|
+
resolveCurrentUpstreamPushTarget,
|
|
38
|
+
resolveCurrentGitHead,
|
|
39
|
+
resolveCommitCountSince,
|
|
40
|
+
readGitTextAtRevision,
|
|
41
|
+
parsePorcelainPaths,
|
|
42
|
+
digest,
|
|
43
|
+
compareWorkspaceSnapshots,
|
|
44
|
+
compareWorkspaceSnapshot,
|
|
45
|
+
changedFilesSinceSnapshot,
|
|
46
|
+
captureWorkspaceSnapshot,
|
|
47
|
+
_internals
|
|
48
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* #1850 Linked Knowledge 5/5: handles `/swarm memory link` / `/swarm memory unlink`.
|
|
3
|
+
*
|
|
4
|
+
* Ties this worktree's memory store to a shared cohort root through the #1846
|
|
5
|
+
* cohort identity — independently of the knowledge link (`/swarm link`).
|
|
6
|
+
* Knowledge link and memory link are separate opt-in toggles (issue #1850
|
|
7
|
+
* acceptance #1): linking knowledge does NOT link memory, and vice versa.
|
|
8
|
+
*
|
|
9
|
+
* On link:
|
|
10
|
+
* 1. Resolve the canonical cohort id (same id used by knowledge link).
|
|
11
|
+
* 2. Drain + close pooled providers for the local root (acceptance #5).
|
|
12
|
+
* 3. Migrate the local memory family into the cohort root via
|
|
13
|
+
* `migrateMemoryFamily` (acceptance #7).
|
|
14
|
+
* 4. Write `memory-cohort-config.json` under the migration lock (acceptance
|
|
15
|
+
* #10 — provider/schema/embedding/redaction fingerprint; CONCERN-2).
|
|
16
|
+
* 5. Write the `memory-link.json` pointer LAST so a failure above leaves the
|
|
17
|
+
* worktree local (idempotent retry on re-link).
|
|
18
|
+
*
|
|
19
|
+
* On unlink:
|
|
20
|
+
* 1. Migrate the cohort memory family back into local `.swarm/memory/`.
|
|
21
|
+
* 2. Remove the pointer. The cohort store is NEVER deleted/truncated (other
|
|
22
|
+
* worktrees may still be linked).
|
|
23
|
+
*
|
|
24
|
+
* Status: `/swarm memory link status` prints the memory link state distinctly
|
|
25
|
+
* from the knowledge link state (acceptance #2).
|
|
26
|
+
*/
|
|
27
|
+
export declare function handleMemoryLinkCommand(directory: string, args: string[]): Promise<string>;
|
|
28
|
+
export declare function handleMemoryUnlinkCommand(directory: string, args: string[]): Promise<string>;
|
|
@@ -517,7 +517,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
517
517
|
readonly handler: (ctx: CommandContext) => CommandResult;
|
|
518
518
|
readonly description: "Launch deep PR review with multi-lane analysis [url] [--council]";
|
|
519
519
|
readonly args: "<pr-url|owner/repo#N|N> [--council]";
|
|
520
|
-
readonly details: "Launches a structured PR review: reconstructs PR intent via obligation extraction cascade, launches all 6 fixed base explorer lanes through dispatch_lanes_async while the architect keeps doing non-dependent work, polls collect_lane_results incrementally, runs
|
|
520
|
+
readonly details: "Launches a structured PR review: reconstructs PR intent via obligation extraction cascade, launches all 6 fixed base explorer lanes through dispatch_lanes_async while the architect keeps doing non-dependent work, polls collect_lane_results incrementally, runs all 11 mandatory repository-agnostic micro-lanes without applicability waivers, validates findings through independent reviewer confirmation, applies critic challenge to HIGH/CRITICAL findings, then synthesizes only after coverage is closed. Failed obligations retry through the same structured async mode and exact PR head; blocking or direct-Task dispatch is not provenance-equivalent, so unclosed coverage leaves the review BLOCKED rather than degraded. --council variant fires adversarial multi-model review. Supports full GitHub URL, owner/repo#N shorthand, or bare PR number (resolves against origin remote).";
|
|
521
521
|
readonly category: "agent";
|
|
522
522
|
readonly toolPolicy: "none";
|
|
523
523
|
};
|
|
@@ -910,6 +910,31 @@ export declare const COMMAND_REGISTRY: {
|
|
|
910
910
|
readonly category: "diagnostics";
|
|
911
911
|
readonly toolPolicy: "agent";
|
|
912
912
|
};
|
|
913
|
+
readonly 'memory link': {
|
|
914
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
915
|
+
readonly description: "Share this worktree memory across linked sibling worktrees via the cohort identity (requires memory.link.enabled). Independently opt-in from /swarm link.";
|
|
916
|
+
readonly subcommandOf: "memory";
|
|
917
|
+
readonly args: "[name]";
|
|
918
|
+
readonly category: "utility";
|
|
919
|
+
readonly toolPolicy: "agent";
|
|
920
|
+
};
|
|
921
|
+
readonly 'memory link status': {
|
|
922
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
923
|
+
readonly description: "Show whether this worktree shares memory via a cohort link";
|
|
924
|
+
readonly subcommandOf: "memory";
|
|
925
|
+
readonly args: "";
|
|
926
|
+
readonly category: "diagnostics";
|
|
927
|
+
readonly toolPolicy: "agent";
|
|
928
|
+
readonly toolNoArgs: true;
|
|
929
|
+
};
|
|
930
|
+
readonly 'memory unlink': {
|
|
931
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
932
|
+
readonly description: "Stop sharing memory; copies the cohort memory family back to local .swarm/memory/. The cohort store is never deleted.";
|
|
933
|
+
readonly subcommandOf: "memory";
|
|
934
|
+
readonly args: "[--no-copy]";
|
|
935
|
+
readonly category: "utility";
|
|
936
|
+
readonly toolPolicy: "agent";
|
|
937
|
+
};
|
|
913
938
|
readonly 'memory-status': {
|
|
914
939
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
915
940
|
readonly description: "Show Swarm memory provider, JSONL, and migration status";
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -665,6 +665,9 @@ export declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
665
665
|
path: z.ZodDefault<z.ZodString>;
|
|
666
666
|
busyTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
667
667
|
}, z.core.$strip>>;
|
|
668
|
+
link: z.ZodDefault<z.ZodObject<{
|
|
669
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
670
|
+
}, z.core.$strip>>;
|
|
668
671
|
recall: z.ZodDefault<z.ZodObject<{
|
|
669
672
|
defaultMaxItems: z.ZodDefault<z.ZodNumber>;
|
|
670
673
|
defaultTokenBudget: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1976,6 +1979,9 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
1976
1979
|
path: z.ZodDefault<z.ZodString>;
|
|
1977
1980
|
busyTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1978
1981
|
}, z.core.$strip>>;
|
|
1982
|
+
link: z.ZodDefault<z.ZodObject<{
|
|
1983
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1984
|
+
}, z.core.$strip>>;
|
|
1979
1985
|
recall: z.ZodDefault<z.ZodObject<{
|
|
1980
1986
|
defaultMaxItems: z.ZodDefault<z.ZodNumber>;
|
|
1981
1987
|
defaultTokenBudget: z.ZodDefault<z.ZodNumber>;
|