opencode-swarm 7.133.0 → 7.134.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/codebase-review-swarm/SKILL.md +18 -2
- package/.opencode/skills/codebase-review-swarm/references/review-protocol-v8.2.md +18 -2
- package/.opencode/skills/swarm-implement/SKILL.md +17 -2
- package/dist/background/completion-observer.d.ts +17 -7
- package/dist/background/pending-delegations.d.ts +305 -30
- package/dist/background/pr-event-subscribers.d.ts +1 -1
- package/dist/cli/{config-doctor-8nbdwnn6.js → config-doctor-4avzz3rh.js} +3 -3
- package/dist/cli/{core-egwpry19.js → core-d6yd2jzv.js} +3 -3
- package/dist/cli/{curation-policy-gae3xm5d.js → curation-policy-8vkzjtwb.js} +7 -7
- package/dist/cli/{curator-e88bm4mg.js → curator-3vsvhwav.js} +31 -28
- package/dist/cli/{curator-drift-ea0p8nh1.js → curator-drift-9q6f85bm.js} +7 -7
- package/dist/cli/{curator-llm-factory-1a7esr69.js → curator-llm-factory-2qk8q4y9.js} +31 -28
- package/dist/cli/{dispatch-3mhgqj2x.js → dispatch-gxbeb2ps.js} +2 -2
- package/dist/cli/{evidence-summary-service-nhsmsap8.js → evidence-summary-service-mrzsjpg4.js} +13 -12
- package/dist/cli/{gate-evidence-cy2te3x8.js → gate-evidence-b5v1xvxp.js} +4 -4
- package/dist/cli/guardrail-explain-tw521x47.js +57 -0
- package/dist/cli/{guardrail-log-fjgyx76r.js → guardrail-log-e3jrwdw8.js} +5 -5
- package/dist/cli/{hive-promoter-2b04e0wh.js → hive-promoter-sdy5qjzn.js} +31 -28
- package/dist/cli/{index-66zght9d.js → index-0541h76w.js} +2 -2
- package/dist/cli/{index-g4mnf3p5.js → index-1j3682j8.js} +5 -5
- package/dist/cli/{index-mmvaf4t6.js → index-1v5mby7t.js} +25 -3
- package/dist/cli/{index-j5pnah1w.js → index-2j8f71c3.js} +12 -12
- package/dist/cli/{index-17zjp67y.js → index-2t1n9k7b.js} +4 -4
- package/dist/cli/{index-mwqfyjja.js → index-358f9h8p.js} +48406 -48697
- package/dist/cli/{index-hfpw5m0e.js → index-463k8mfr.js} +3 -3
- package/dist/cli/{index-2tn5h2zp.js → index-4p02dp92.js} +6 -6
- package/dist/cli/{index-7ftthvqt.js → index-6b69mp0r.js} +8 -8
- package/dist/cli/{index-bz08438z.js → index-8t9xpn1a.js} +7 -7
- package/dist/cli/{index-sp7tm8t7.js → index-9z1q181f.js} +1 -1
- package/dist/cli/index-b4z7s917.js +80 -0
- package/dist/cli/index-b8zgtz81.js +123 -0
- package/dist/cli/{index-tj2mkfb3.js → index-bq2848a3.js} +1 -1
- package/dist/cli/{index-kc1m6vpr.js → index-c0e3vhv9.js} +2 -2
- package/dist/cli/{index-q27bajqb.js → index-cfkvc5q9.js} +3 -3
- package/dist/cli/{index-7mkpsw6g.js → index-dd7ttx8x.js} +1 -1
- package/dist/cli/{index-r260ybay.js → index-k742ecbm.js} +178 -222
- package/dist/cli/{index-cpest8sa.js → index-kwm7hz18.js} +5 -5
- package/dist/cli/{index-0vd91yb8.js → index-m8ajf6wb.js} +3 -3
- package/dist/cli/{index-mhcge2ry.js → index-mz6sqtm9.js} +33 -30
- package/dist/cli/{index-74tptrss.js → index-p8hezdtz.js} +1 -1
- package/dist/cli/{index-sw82jvf2.js → index-pz49rx4y.js} +2 -2
- package/dist/cli/{index-3x761jqv.js → index-wk1h5ec2.js} +1 -1
- package/dist/cli/{index-wzb4dv5s.js → index-y2esw64s.js} +4 -4
- package/dist/cli/index-y3v1404y.js +1625 -0
- package/dist/cli/{index-wz36r0fk.js → index-zjw32rv9.js} +2 -2
- package/dist/cli/index.js +31 -28
- package/dist/cli/{knowledge-escalator-hzkw1ban.js → knowledge-escalator-v09w0jmg.js} +8 -8
- package/dist/cli/{knowledge-events-pbycdhqd.js → knowledge-events-qp19r2he.js} +6 -6
- package/dist/cli/{knowledge-link-4yd2z8ev.js → knowledge-link-nc4y2zkq.js} +5 -5
- package/dist/cli/{knowledge-store-45jawb2p.js → knowledge-store-n5pvv0s3.js} +6 -6
- package/dist/cli/{knowledge-validator-ge576f8n.js → knowledge-validator-qg31ycbb.js} +9 -9
- package/dist/cli/pending-delegations-v9e40hfk.js +96 -0
- package/dist/cli/{pr-subscriptions-zqbmctwz.js → pr-subscriptions-ztq40hrt.js} +7 -7
- package/dist/cli/{scan-cursor-kvw872be.js → scan-cursor-wtzfvkh2.js} +7 -7
- package/dist/cli/{schema-a2zm2m3r.js → schema-erk5bz43.js} +2 -2
- package/dist/cli/{scope-persistence-5qypzxxm.js → scope-persistence-hz3zmmsv.js} +5 -5
- package/dist/cli/{skill-generator-ch79hvxh.js → skill-generator-nxs65tq3.js} +10 -10
- package/dist/cli/worktree-collision-ownership-c4bdnjtx.js +221 -0
- package/dist/evaluation/contracts.d.ts +1 -1
- package/dist/evaluation/public-api.d.ts +1 -1
- package/dist/hooks/delegation-gate/worktree-collision-ownership.d.ts +28 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +63 -1
- package/dist/hooks/delegation-gate/worktree-merge-status.d.ts +14 -0
- package/dist/hooks/delegation-gate/worktree-ownership-tag.d.ts +19 -0
- package/dist/hooks/delegation-gate/worktree-provisioning-owner.d.ts +30 -0
- package/dist/hooks/delegation-gate.d.ts +14 -5
- package/dist/hooks/guardrails/messages-transform.d.ts +10 -0
- package/dist/hooks/guardrails/stored-input-args.d.ts +6 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/init-orphan-recovery.d.ts +17 -0
- package/dist/index.js +486 -479
- package/dist/memory/schema.d.ts +4 -4
- package/dist/prm/escalation.d.ts +1 -11
- package/dist/prm/index.d.ts +1 -0
- package/dist/prm/types.d.ts +0 -2
- package/dist/session/snapshot-writer.d.ts +3 -0
- package/dist/state.d.ts +54 -1
- package/dist/tools/dispatch-lanes.d.ts +1 -1
- package/dist/tools/epic-record-divergence.d.ts +5 -5
- package/dist/utils/advisory-queue.d.ts +60 -0
- package/dist/worktree/merge.d.ts +47 -1
- package/package.json +1 -1
- package/dist/cli/guardrail-explain-zgja2b9m.js +0 -54
- package/dist/cli/pending-delegations-kxy8mdqg.js +0 -75
- package/dist/cli/{index-9f71ye47.js → index-13xxjfhn.js} +3 -3
- package/dist/cli/{index-s80bsjkj.js → index-2ghkk9ve.js} +6 -6
- package/dist/cli/{index-76kvm9z5.js → index-5nybajn9.js} +3 -3
|
@@ -14,52 +14,55 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
17
|
+
} from "./index-358f9h8p.js";
|
|
18
|
+
import"./index-13xxjfhn.js";
|
|
19
|
+
import"./index-1v5mby7t.js";
|
|
20
|
+
import"./index-bq2848a3.js";
|
|
21
|
+
import"./index-k742ecbm.js";
|
|
21
22
|
import"./index-4905hd2m.js";
|
|
22
23
|
import"./index-134d35c1.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-66zght9d.js";
|
|
24
|
+
import"./index-m8ajf6wb.js";
|
|
25
|
+
import"./index-kwm7hz18.js";
|
|
26
|
+
import"./index-0541h76w.js";
|
|
27
27
|
import"./index-vxv732ex.js";
|
|
28
28
|
import"./index-c8s9a3zh.js";
|
|
29
29
|
import"./index-9ss2m4rs.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
30
|
+
import"./index-wk1h5ec2.js";
|
|
31
|
+
import"./index-1j3682j8.js";
|
|
32
|
+
import"./index-6b69mp0r.js";
|
|
33
|
+
import"./index-zjw32rv9.js";
|
|
34
34
|
import"./index-rtry5xyf.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-2j8f71c3.js";
|
|
36
|
+
import"./index-8t9xpn1a.js";
|
|
37
37
|
import"./index-ae75rja9.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-cfkvc5q9.js";
|
|
39
|
+
import"./index-dd7ttx8x.js";
|
|
40
|
+
import"./index-c0e3vhv9.js";
|
|
40
41
|
import"./index-k5jrywpr.js";
|
|
41
42
|
import"./index-n832052r.js";
|
|
42
|
-
import"./index-
|
|
43
|
+
import"./index-y2esw64s.js";
|
|
43
44
|
import"./index-bk5tah7q.js";
|
|
44
45
|
import"./index-8fwhhayc.js";
|
|
45
46
|
import"./index-q1exe2b3.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-p8hezdtz.js";
|
|
48
|
+
import"./index-4p02dp92.js";
|
|
48
49
|
import"./index-1kz6da87.js";
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
50
|
+
import"./index-b4z7s917.js";
|
|
51
|
+
import"./index-b8zgtz81.js";
|
|
52
|
+
import"./index-2t1n9k7b.js";
|
|
51
53
|
import"./index-4rhhvd1a.js";
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-h3k62043.js";
|
|
55
|
-
import"./index-3x761jqv.js";
|
|
56
|
-
import"./index-7mkpsw6g.js";
|
|
54
|
+
import"./index-y3v1404y.js";
|
|
55
|
+
import"./index-2ghkk9ve.js";
|
|
57
56
|
import"./index-fsrp8wp3.js";
|
|
58
|
-
import"./index-
|
|
57
|
+
import"./index-5nybajn9.js";
|
|
58
|
+
import"./index-7g4c7s5r.js";
|
|
59
59
|
import"./index-q2rrv0cy.js";
|
|
60
60
|
import"./index-bpmtbmy9.js";
|
|
61
|
-
import"./index-
|
|
61
|
+
import"./index-z6xqpmqg.js";
|
|
62
|
+
import"./index-zjygnfay.js";
|
|
62
63
|
import"./index-qe3v54nb.js";
|
|
64
|
+
import"./index-zgwm4ryv.js";
|
|
65
|
+
import"./index-h3k62043.js";
|
|
63
66
|
import"./index-a76rekgs.js";
|
|
64
67
|
export {
|
|
65
68
|
writeCuratorSummary,
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
readEffectiveSpecSync
|
|
7
7
|
} from "./index-9ss2m4rs.js";
|
|
8
|
+
import"./index-n832052r.js";
|
|
9
|
+
import"./index-4rhhvd1a.js";
|
|
8
10
|
import {
|
|
9
11
|
readSwarmFileAsync,
|
|
10
12
|
validateSwarmPath
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
+
} from "./index-2ghkk9ve.js";
|
|
14
|
+
import"./index-fsrp8wp3.js";
|
|
15
|
+
import"./index-bpmtbmy9.js";
|
|
13
16
|
import"./index-z6xqpmqg.js";
|
|
14
|
-
import"./index-4rhhvd1a.js";
|
|
15
17
|
import"./index-zjygnfay.js";
|
|
18
|
+
import"./index-qe3v54nb.js";
|
|
16
19
|
import {
|
|
17
20
|
init_logger,
|
|
18
21
|
warn
|
|
19
22
|
} from "./index-zgwm4ryv.js";
|
|
20
|
-
import"./index-fsrp8wp3.js";
|
|
21
|
-
import"./index-bpmtbmy9.js";
|
|
22
|
-
import"./index-qe3v54nb.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
|
|
25
25
|
// src/hooks/curator-drift.ts
|
|
@@ -150,7 +150,7 @@ async function runDeterministicDriftCheck(directory, phase, curatorResult, confi
|
|
|
150
150
|
});
|
|
151
151
|
if (injectAdvisory && alignment !== "ALIGNED" && driftScore > 0) {
|
|
152
152
|
try {
|
|
153
|
-
const advisoryText = `CURATOR DRIFT DETECTED (phase ${phase}, score ${driftScore.toFixed(2)}): ${injectionSummary.slice(0, 300)}. Review .swarm/${DRIFT_REPORT_PREFIX}${phase}.json and address spec alignment before proceeding.`;
|
|
153
|
+
const advisoryText = `CURATOR DRIFT DETECTED (phase ${phase}, score ${driftScore.toFixed(2)}): ${injectionSummary.slice(0, 300)}. Review .swarm/${DRIFT_REPORT_PREFIX}${phase}.json and address spec alignment before proceeding. Consider running critic_drift_verifier before phase completion to get a proper drift review.`;
|
|
154
154
|
injectAdvisory(advisoryText);
|
|
155
155
|
} catch {}
|
|
156
156
|
}
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
4
|
+
} from "./index-358f9h8p.js";
|
|
5
|
+
import"./index-13xxjfhn.js";
|
|
6
|
+
import"./index-1v5mby7t.js";
|
|
7
|
+
import"./index-bq2848a3.js";
|
|
8
|
+
import"./index-k742ecbm.js";
|
|
8
9
|
import"./index-4905hd2m.js";
|
|
9
10
|
import"./index-134d35c1.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-66zght9d.js";
|
|
11
|
+
import"./index-m8ajf6wb.js";
|
|
12
|
+
import"./index-kwm7hz18.js";
|
|
13
|
+
import"./index-0541h76w.js";
|
|
14
14
|
import"./index-vxv732ex.js";
|
|
15
15
|
import"./index-c8s9a3zh.js";
|
|
16
16
|
import"./index-9ss2m4rs.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
17
|
+
import"./index-wk1h5ec2.js";
|
|
18
|
+
import"./index-1j3682j8.js";
|
|
19
|
+
import"./index-6b69mp0r.js";
|
|
20
|
+
import"./index-zjw32rv9.js";
|
|
21
21
|
import"./index-rtry5xyf.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
import"./index-2j8f71c3.js";
|
|
23
|
+
import"./index-8t9xpn1a.js";
|
|
24
24
|
import"./index-ae75rja9.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
import"./index-cfkvc5q9.js";
|
|
26
|
+
import"./index-dd7ttx8x.js";
|
|
27
|
+
import"./index-c0e3vhv9.js";
|
|
27
28
|
import"./index-k5jrywpr.js";
|
|
28
29
|
import"./index-n832052r.js";
|
|
29
|
-
import"./index-
|
|
30
|
+
import"./index-y2esw64s.js";
|
|
30
31
|
import"./index-bk5tah7q.js";
|
|
31
32
|
import"./index-8fwhhayc.js";
|
|
32
33
|
import"./index-q1exe2b3.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-p8hezdtz.js";
|
|
35
|
+
import"./index-4p02dp92.js";
|
|
35
36
|
import"./index-1kz6da87.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-b4z7s917.js";
|
|
38
|
+
import"./index-b8zgtz81.js";
|
|
39
|
+
import"./index-2t1n9k7b.js";
|
|
38
40
|
import"./index-4rhhvd1a.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-h3k62043.js";
|
|
42
|
-
import"./index-3x761jqv.js";
|
|
43
|
-
import"./index-7mkpsw6g.js";
|
|
41
|
+
import"./index-y3v1404y.js";
|
|
42
|
+
import"./index-2ghkk9ve.js";
|
|
44
43
|
import"./index-fsrp8wp3.js";
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-5nybajn9.js";
|
|
45
|
+
import"./index-7g4c7s5r.js";
|
|
46
46
|
import"./index-q2rrv0cy.js";
|
|
47
47
|
import"./index-bpmtbmy9.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-z6xqpmqg.js";
|
|
49
|
+
import"./index-zjygnfay.js";
|
|
49
50
|
import"./index-qe3v54nb.js";
|
|
51
|
+
import"./index-zgwm4ryv.js";
|
|
52
|
+
import"./index-h3k62043.js";
|
|
50
53
|
import"./index-a76rekgs.js";
|
|
51
54
|
export {
|
|
52
55
|
createCuratorLLMDelegate
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
defaultTestFilesFor,
|
|
12
12
|
detectProjectLanguages,
|
|
13
13
|
tokenizeCommand
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-13xxjfhn.js";
|
|
15
15
|
import"./index-z6xqpmqg.js";
|
|
16
16
|
import"./index-zjygnfay.js";
|
|
17
|
-
import"./index-zgwm4ryv.js";
|
|
18
17
|
import"./index-qe3v54nb.js";
|
|
18
|
+
import"./index-zgwm4ryv.js";
|
|
19
19
|
import"./index-a76rekgs.js";
|
|
20
20
|
|
|
21
21
|
// src/lang/dispatch.ts
|
package/dist/cli/{evidence-summary-service-nhsmsap8.js → evidence-summary-service-mrzsjpg4.js}
RENAMED
|
@@ -6,28 +6,29 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-k742ecbm.js";
|
|
10
10
|
import"./index-9ss2m4rs.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-wk1h5ec2.js";
|
|
12
|
+
import"./index-dd7ttx8x.js";
|
|
12
13
|
import"./index-k5jrywpr.js";
|
|
13
14
|
import"./index-n832052r.js";
|
|
14
15
|
import"./index-q1exe2b3.js";
|
|
15
|
-
import"./index-
|
|
16
|
+
import"./index-4p02dp92.js";
|
|
16
17
|
import"./index-1kz6da87.js";
|
|
17
|
-
import"./index-
|
|
18
|
+
import"./index-b8zgtz81.js";
|
|
18
19
|
import"./index-4rhhvd1a.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import {
|
|
21
|
-
log
|
|
22
|
-
} from "./index-zgwm4ryv.js";
|
|
23
|
-
import"./index-3x761jqv.js";
|
|
24
|
-
import"./index-7mkpsw6g.js";
|
|
20
|
+
import"./index-2ghkk9ve.js";
|
|
25
21
|
import"./index-fsrp8wp3.js";
|
|
26
|
-
import"./index-
|
|
22
|
+
import"./index-5nybajn9.js";
|
|
23
|
+
import"./index-7g4c7s5r.js";
|
|
27
24
|
import"./index-q2rrv0cy.js";
|
|
28
25
|
import"./index-bpmtbmy9.js";
|
|
29
|
-
import"./index-
|
|
26
|
+
import"./index-z6xqpmqg.js";
|
|
27
|
+
import"./index-zjygnfay.js";
|
|
30
28
|
import"./index-qe3v54nb.js";
|
|
29
|
+
import {
|
|
30
|
+
log
|
|
31
|
+
} from "./index-zgwm4ryv.js";
|
|
31
32
|
import"./index-a76rekgs.js";
|
|
32
33
|
|
|
33
34
|
// src/services/evidence-summary-service.ts
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
readTaskEvidenceRaw,
|
|
10
10
|
recordAgentDispatch,
|
|
11
11
|
recordGateEvidence
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-wk1h5ec2.js";
|
|
13
|
+
import"./index-dd7ttx8x.js";
|
|
14
14
|
import"./index-fsrp8wp3.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-5nybajn9.js";
|
|
16
|
+
import"./index-7g4c7s5r.js";
|
|
16
17
|
import"./index-q2rrv0cy.js";
|
|
17
18
|
import"./index-bpmtbmy9.js";
|
|
18
|
-
import"./index-7g4c7s5r.js";
|
|
19
19
|
import"./index-qe3v54nb.js";
|
|
20
20
|
import"./index-a76rekgs.js";
|
|
21
21
|
export {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
handleGuardrailExplain
|
|
4
|
+
} from "./index-pz49rx4y.js";
|
|
5
|
+
import"./index-358f9h8p.js";
|
|
6
|
+
import"./index-13xxjfhn.js";
|
|
7
|
+
import"./index-1v5mby7t.js";
|
|
8
|
+
import"./index-bq2848a3.js";
|
|
9
|
+
import"./index-k742ecbm.js";
|
|
10
|
+
import"./index-4905hd2m.js";
|
|
11
|
+
import"./index-134d35c1.js";
|
|
12
|
+
import"./index-m8ajf6wb.js";
|
|
13
|
+
import"./index-kwm7hz18.js";
|
|
14
|
+
import"./index-0541h76w.js";
|
|
15
|
+
import"./index-vxv732ex.js";
|
|
16
|
+
import"./index-c8s9a3zh.js";
|
|
17
|
+
import"./index-9ss2m4rs.js";
|
|
18
|
+
import"./index-wk1h5ec2.js";
|
|
19
|
+
import"./index-1j3682j8.js";
|
|
20
|
+
import"./index-6b69mp0r.js";
|
|
21
|
+
import"./index-zjw32rv9.js";
|
|
22
|
+
import"./index-rtry5xyf.js";
|
|
23
|
+
import"./index-2j8f71c3.js";
|
|
24
|
+
import"./index-8t9xpn1a.js";
|
|
25
|
+
import"./index-ae75rja9.js";
|
|
26
|
+
import"./index-cfkvc5q9.js";
|
|
27
|
+
import"./index-dd7ttx8x.js";
|
|
28
|
+
import"./index-c0e3vhv9.js";
|
|
29
|
+
import"./index-k5jrywpr.js";
|
|
30
|
+
import"./index-n832052r.js";
|
|
31
|
+
import"./index-y2esw64s.js";
|
|
32
|
+
import"./index-bk5tah7q.js";
|
|
33
|
+
import"./index-8fwhhayc.js";
|
|
34
|
+
import"./index-q1exe2b3.js";
|
|
35
|
+
import"./index-p8hezdtz.js";
|
|
36
|
+
import"./index-4p02dp92.js";
|
|
37
|
+
import"./index-1kz6da87.js";
|
|
38
|
+
import"./index-b4z7s917.js";
|
|
39
|
+
import"./index-b8zgtz81.js";
|
|
40
|
+
import"./index-2t1n9k7b.js";
|
|
41
|
+
import"./index-4rhhvd1a.js";
|
|
42
|
+
import"./index-y3v1404y.js";
|
|
43
|
+
import"./index-2ghkk9ve.js";
|
|
44
|
+
import"./index-fsrp8wp3.js";
|
|
45
|
+
import"./index-5nybajn9.js";
|
|
46
|
+
import"./index-7g4c7s5r.js";
|
|
47
|
+
import"./index-q2rrv0cy.js";
|
|
48
|
+
import"./index-bpmtbmy9.js";
|
|
49
|
+
import"./index-z6xqpmqg.js";
|
|
50
|
+
import"./index-zjygnfay.js";
|
|
51
|
+
import"./index-qe3v54nb.js";
|
|
52
|
+
import"./index-zgwm4ryv.js";
|
|
53
|
+
import"./index-h3k62043.js";
|
|
54
|
+
import"./index-a76rekgs.js";
|
|
55
|
+
export {
|
|
56
|
+
handleGuardrailExplain
|
|
57
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-9z1q181f.js";
|
|
5
|
+
import"./index-1v5mby7t.js";
|
|
6
|
+
import"./index-y2esw64s.js";
|
|
7
7
|
import"./index-bk5tah7q.js";
|
|
8
|
+
import"./index-bpmtbmy9.js";
|
|
8
9
|
import"./index-z6xqpmqg.js";
|
|
9
10
|
import"./index-zjygnfay.js";
|
|
10
|
-
import"./index-zgwm4ryv.js";
|
|
11
|
-
import"./index-bpmtbmy9.js";
|
|
12
11
|
import"./index-qe3v54nb.js";
|
|
12
|
+
import"./index-zgwm4ryv.js";
|
|
13
13
|
import"./index-a76rekgs.js";
|
|
14
14
|
export {
|
|
15
15
|
handleGuardrailLog
|
|
@@ -7,54 +7,57 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-358f9h8p.js";
|
|
11
|
+
import"./index-13xxjfhn.js";
|
|
12
|
+
import"./index-1v5mby7t.js";
|
|
13
|
+
import"./index-bq2848a3.js";
|
|
14
|
+
import"./index-k742ecbm.js";
|
|
14
15
|
import"./index-4905hd2m.js";
|
|
15
16
|
import"./index-134d35c1.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-66zght9d.js";
|
|
17
|
+
import"./index-m8ajf6wb.js";
|
|
18
|
+
import"./index-kwm7hz18.js";
|
|
19
|
+
import"./index-0541h76w.js";
|
|
20
20
|
import"./index-vxv732ex.js";
|
|
21
21
|
import"./index-c8s9a3zh.js";
|
|
22
22
|
import"./index-9ss2m4rs.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
23
|
+
import"./index-wk1h5ec2.js";
|
|
24
|
+
import"./index-1j3682j8.js";
|
|
25
|
+
import"./index-6b69mp0r.js";
|
|
26
|
+
import"./index-zjw32rv9.js";
|
|
27
27
|
import"./index-rtry5xyf.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveHiveKnowledgePath
|
|
30
|
-
} from "./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
} from "./index-2j8f71c3.js";
|
|
31
|
+
import"./index-8t9xpn1a.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
33
|
+
import"./index-cfkvc5q9.js";
|
|
34
|
+
import"./index-dd7ttx8x.js";
|
|
35
|
+
import"./index-c0e3vhv9.js";
|
|
35
36
|
import"./index-k5jrywpr.js";
|
|
36
37
|
import"./index-n832052r.js";
|
|
37
|
-
import"./index-
|
|
38
|
+
import"./index-y2esw64s.js";
|
|
38
39
|
import"./index-bk5tah7q.js";
|
|
39
40
|
import"./index-8fwhhayc.js";
|
|
40
41
|
import"./index-q1exe2b3.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-p8hezdtz.js";
|
|
43
|
+
import"./index-4p02dp92.js";
|
|
43
44
|
import"./index-1kz6da87.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-b4z7s917.js";
|
|
46
|
+
import"./index-b8zgtz81.js";
|
|
47
|
+
import"./index-2t1n9k7b.js";
|
|
46
48
|
import"./index-4rhhvd1a.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-h3k62043.js";
|
|
50
|
-
import"./index-3x761jqv.js";
|
|
51
|
-
import"./index-7mkpsw6g.js";
|
|
49
|
+
import"./index-y3v1404y.js";
|
|
50
|
+
import"./index-2ghkk9ve.js";
|
|
52
51
|
import"./index-fsrp8wp3.js";
|
|
53
|
-
import"./index-
|
|
52
|
+
import"./index-5nybajn9.js";
|
|
53
|
+
import"./index-7g4c7s5r.js";
|
|
54
54
|
import"./index-q2rrv0cy.js";
|
|
55
55
|
import"./index-bpmtbmy9.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-z6xqpmqg.js";
|
|
57
|
+
import"./index-zjygnfay.js";
|
|
57
58
|
import"./index-qe3v54nb.js";
|
|
59
|
+
import"./index-zgwm4ryv.js";
|
|
60
|
+
import"./index-h3k62043.js";
|
|
58
61
|
import"./index-a76rekgs.js";
|
|
59
62
|
export {
|
|
60
63
|
resolveHiveKnowledgePath,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-2j8f71c3.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveKnowledgeStoreDir
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-cfkvc5q9.js";
|
|
9
9
|
import {
|
|
10
10
|
init_knowledge_types,
|
|
11
11
|
isActiveStatus
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
5
|
-
import {
|
|
6
|
-
log
|
|
7
|
-
} from "./index-zgwm4ryv.js";
|
|
4
|
+
} from "./index-2ghkk9ve.js";
|
|
8
5
|
import {
|
|
9
6
|
withEvidenceLock
|
|
10
|
-
} from "./index-
|
|
7
|
+
} from "./index-5nybajn9.js";
|
|
11
8
|
import {
|
|
12
9
|
exports_external,
|
|
13
10
|
init_zod
|
|
14
11
|
} from "./index-bpmtbmy9.js";
|
|
12
|
+
import {
|
|
13
|
+
log
|
|
14
|
+
} from "./index-zgwm4ryv.js";
|
|
15
15
|
|
|
16
16
|
// src/background/pr-subscriptions.ts
|
|
17
17
|
init_zod();
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
init_constants,
|
|
4
4
|
init_schema,
|
|
5
5
|
stripKnownSwarmPrefix
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-y2esw64s.js";
|
|
7
7
|
import {
|
|
8
8
|
init_logger,
|
|
9
9
|
warn
|
|
@@ -2212,6 +2212,28 @@ function isInDeclaredScope(filePath, scopeEntries, cwd) {
|
|
|
2212
2212
|
return rel.length > 0 && !rel.startsWith("..") && !path.isAbsolute(rel);
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
+
var MAX_ALLOWED_HINT_ENTRIES = 20;
|
|
2216
|
+
function formatAllowedHints(rules) {
|
|
2217
|
+
const fmt = (items) => {
|
|
2218
|
+
if (!items || items.length === 0)
|
|
2219
|
+
return "(none)";
|
|
2220
|
+
if (items.length <= MAX_ALLOWED_HINT_ENTRIES)
|
|
2221
|
+
return items.join(", ");
|
|
2222
|
+
const omitted = items.length - MAX_ALLOWED_HINT_ENTRIES;
|
|
2223
|
+
return `${items.slice(0, MAX_ALLOWED_HINT_ENTRIES).join(", ")}, \u2026 (+${omitted} more)`;
|
|
2224
|
+
};
|
|
2225
|
+
const parts = [];
|
|
2226
|
+
if (rules.allowedExact && rules.allowedExact.length > 0) {
|
|
2227
|
+
parts.push(`Allowed exact paths: ${fmt(rules.allowedExact)}`);
|
|
2228
|
+
}
|
|
2229
|
+
parts.push(`Allowed prefixes: ${fmt(rules.allowedPrefix)}`);
|
|
2230
|
+
parts.push(`Allowed globs: ${fmt(rules.allowedGlobs)}`);
|
|
2231
|
+
if (rules.allowedCaseSensitiveGlobs && rules.allowedCaseSensitiveGlobs.length > 0) {
|
|
2232
|
+
parts.push(`Allowed case-sensitive globs: ${fmt(rules.allowedCaseSensitiveGlobs)}`);
|
|
2233
|
+
}
|
|
2234
|
+
parts.push("Block rules (blocked zones/prefixes/globs/exact) and universal deny paths still apply.");
|
|
2235
|
+
return parts.join(" ");
|
|
2236
|
+
}
|
|
2215
2237
|
function checkFileAuthorityWithRules(agentName, filePath, cwd, effectiveRules, options) {
|
|
2216
2238
|
const normalizedAgent = agentName.toLowerCase();
|
|
2217
2239
|
const strippedAgent = stripKnownSwarmPrefix(agentName).toLowerCase();
|
|
@@ -2321,13 +2343,13 @@ function checkFileAuthorityWithRules(agentName, filePath, cwd, effectiveRules, o
|
|
|
2321
2343
|
if (!isAllowed) {
|
|
2322
2344
|
return {
|
|
2323
2345
|
allowed: false,
|
|
2324
|
-
reason: `Path ${normalizedPath} not in allowed list for ${normalizedAgent}`
|
|
2346
|
+
reason: `Path ${normalizedPath} not in allowed list for ${normalizedAgent}. ${formatAllowedHints(rules)}`
|
|
2325
2347
|
};
|
|
2326
2348
|
}
|
|
2327
2349
|
} else if (rules.allowedPrefix != null && rules.allowedPrefix.length === 0) {
|
|
2328
2350
|
return {
|
|
2329
2351
|
allowed: false,
|
|
2330
|
-
reason: `Path ${normalizedPath} not in allowed list for ${normalizedAgent}`
|
|
2352
|
+
reason: `Path ${normalizedPath} not in allowed list for ${normalizedAgent}. ${formatAllowedHints(rules)}`
|
|
2331
2353
|
};
|
|
2332
2354
|
}
|
|
2333
2355
|
}
|
|
@@ -6,24 +6,24 @@ import {
|
|
|
6
6
|
} from "./index-ae75rja9.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveKnowledgeStoreDir
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-cfkvc5q9.js";
|
|
10
|
+
import {
|
|
11
|
+
atomicWriteFile
|
|
12
|
+
} from "./index-dd7ttx8x.js";
|
|
10
13
|
import {
|
|
11
14
|
init_knowledge_types,
|
|
12
15
|
isActiveStatus
|
|
13
16
|
} from "./index-bk5tah7q.js";
|
|
14
|
-
import {
|
|
15
|
-
init_logger,
|
|
16
|
-
log
|
|
17
|
-
} from "./index-zgwm4ryv.js";
|
|
18
|
-
import {
|
|
19
|
-
atomicWriteFile
|
|
20
|
-
} from "./index-7mkpsw6g.js";
|
|
21
17
|
import {
|
|
22
18
|
readCachedParsedFile
|
|
23
19
|
} from "./index-fsrp8wp3.js";
|
|
24
20
|
import {
|
|
25
21
|
require_proper_lockfile
|
|
26
22
|
} from "./index-7g4c7s5r.js";
|
|
23
|
+
import {
|
|
24
|
+
init_logger,
|
|
25
|
+
log
|
|
26
|
+
} from "./index-zgwm4ryv.js";
|
|
27
27
|
import {
|
|
28
28
|
__require,
|
|
29
29
|
__toESM
|
|
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
702
702
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
703
703
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
704
704
|
return;
|
|
705
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
705
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-qp19r2he.js");
|
|
706
706
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
707
707
|
const flagIds = new Set;
|
|
708
708
|
for (const e of atFloor) {
|
|
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
772
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
773
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
772
|
+
const { quarantineEntry } = await import("./knowledge-validator-qg31ycbb.js");
|
|
773
|
+
const { KnowledgeConfigSchema } = await import("./schema-erk5bz43.js");
|
|
774
774
|
let config;
|
|
775
775
|
try {
|
|
776
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
776
|
+
const { loadPluginConfigWithMeta } = await import("./index-463k8mfr.js");
|
|
777
777
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
778
778
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
779
779
|
} catch {
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
advisoryWarn,
|
|
4
4
|
init_warning_buffer
|
|
5
5
|
} from "./index-4rhhvd1a.js";
|
|
6
|
-
import {
|
|
7
|
-
log
|
|
8
|
-
} from "./index-zgwm4ryv.js";
|
|
9
6
|
import {
|
|
10
7
|
bunSpawn
|
|
11
8
|
} from "./index-qe3v54nb.js";
|
|
9
|
+
import {
|
|
10
|
+
log
|
|
11
|
+
} from "./index-zgwm4ryv.js";
|
|
12
12
|
import {
|
|
13
13
|
__require
|
|
14
14
|
} from "./index-a76rekgs.js";
|
|
@@ -39,7 +39,7 @@ var _internals = {
|
|
|
39
39
|
symlinkSync: fs.symlinkSync
|
|
40
40
|
},
|
|
41
41
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
42
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
42
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-hz3zmmsv.js");
|
|
43
43
|
return realWrite(directory, taskId, files);
|
|
44
44
|
},
|
|
45
45
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|