opencode-swarm 7.115.0 → 7.116.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/commit-pr/SKILL.md +60 -579
- package/README.md +3 -1
- package/dist/cli/{curator-drift-c0by7063.js → curator-drift-7p2ky1th.js} +2 -2
- package/dist/cli/{curator-llm-factory-6n9sgaj8.js → curator-llm-factory-9qn52fnv.js} +17 -16
- package/dist/cli/{curator-hpc4tsjv.js → curator-yxmtp8py.js} +17 -16
- package/dist/cli/{dispatch-mczsxy5s.js → dispatch-07jgc3hn.js} +1 -1
- package/dist/cli/{evidence-summary-service-fehwj116.js → evidence-summary-service-bwt6drb3.js} +7 -7
- package/dist/cli/{gate-evidence-vkpqt300.js → gate-evidence-j2m4cd85.js} +5 -4
- package/dist/cli/{guardrail-explain-hecpd738.js → guardrail-explain-xvyz2eag.js} +18 -17
- package/dist/cli/{hive-promoter-0kfb4vjk.js → hive-promoter-ykqc60w1.js} +17 -16
- package/dist/cli/{index-0p660a87.js → index-0pfqcjp6.js} +5 -1
- package/dist/cli/{index-g40r5d08.js → index-34g1mv3c.js} +1 -1
- package/dist/cli/{index-4sckv7y6.js → index-42cx6g2h.js} +9 -4
- package/dist/cli/index-4905hd2m.js +19 -0
- package/dist/cli/{index-80jkseqw.js → index-5bcrp3bc.js} +2 -2
- package/dist/cli/{index-rk6qhyng.js → index-5h7d37nf.js} +7 -7
- package/dist/cli/{index-m766gvdt.js → index-7kcpkm4y.js} +7016 -1994
- package/dist/cli/{index-4h2ea8h5.js → index-abjjn4yh.js} +2 -2
- package/dist/cli/{index-m0rce3x6.js → index-efdyjgeh.js} +2 -2
- package/dist/cli/{index-jtqkh8jf.js → index-fsrp8wp3.js} +10 -1
- package/dist/cli/{index-8f2270hc.js → index-g4p13g8t.js} +3 -3
- package/dist/cli/{index-wh8949ef.js → index-kzj3fp7c.js} +3 -3
- package/dist/cli/{index-ga4ta3cr.js → index-nprawcc0.js} +7 -1
- package/dist/cli/{index-2etc05tv.js → index-p9jf8gt8.js} +28 -20
- package/dist/cli/{index-pa6t33pt.js → index-q2rrv0cy.js} +11 -0
- package/dist/cli/{index-n18yy0z1.js → index-t5f01hnz.js} +3 -3
- package/dist/cli/{index-6f6y2rbp.js → index-wegc6xwr.js} +3 -3
- package/dist/cli/{index-x12hvfpf.js → index-wxkf3089.js} +3 -3
- package/dist/cli/{index-yrrqs4b0.js → index-xdsd2hma.js} +1164 -51
- package/dist/cli/index.js +17 -16
- package/dist/cli/{knowledge-escalator-5gwp1ar8.js → knowledge-escalator-tthw6c9q.js} +8 -8
- package/dist/cli/{knowledge-events-m304swh6.js → knowledge-events-hrbmwxxj.js} +6 -5
- package/dist/cli/{knowledge-store-9babt8rd.js → knowledge-store-5cns5sns.js} +6 -6
- package/dist/cli/{knowledge-validator-t9sym59g.js → knowledge-validator-xre0s774.js} +7 -7
- package/dist/cli/{pending-delegations-ddbkbgxy.js → pending-delegations-9cn17983.js} +4 -4
- package/dist/cli/{pr-subscriptions-vwv7zm2p.js → pr-subscriptions-8a6jwek2.js} +5 -5
- package/dist/cli/runtime-ykafcwc6.js +3397 -0
- package/dist/cli/{skill-generator-tav44xpm.js → skill-generator-22nk6c6a.js} +9 -9
- package/dist/cli/{telemetry-jny76r83.js → telemetry-qh78ymq4.js} +1 -1
- package/dist/commands/archive.d.ts +4 -4
- package/dist/commands/close.d.ts +12 -0
- package/dist/commands/command-dispatch.d.ts +2 -0
- package/dist/commands/gate-audit.d.ts +28 -0
- package/dist/commands/gate-stats.d.ts +1 -0
- package/dist/commands/index.d.ts +4 -0
- package/dist/commands/registry.d.ts +25 -8
- package/dist/commands/reset-backup.d.ts +32 -0
- package/dist/commands/reset-session.d.ts +2 -0
- package/dist/commands/reset.d.ts +9 -0
- package/dist/config/plan-schema.d.ts +7 -7
- package/dist/evaluation/contracts.d.ts +545 -0
- package/dist/evaluation/disposable-worktree.d.ts +38 -0
- package/dist/evaluation/fixtures.d.ts +8 -0
- package/dist/evaluation/gate-audit.d.ts +32 -0
- package/dist/evaluation/gate-ground-truth.d.ts +43 -0
- package/dist/evaluation/gate-stats.d.ts +47 -0
- package/dist/evaluation/hashing.d.ts +34 -0
- package/dist/evaluation/index.d.ts +17 -0
- package/dist/evaluation/model-dispatcher.d.ts +30 -0
- package/dist/evaluation/public-api.d.ts +87 -0
- package/dist/evaluation/retention.d.ts +56 -0
- package/dist/evaluation/runner.d.ts +48 -0
- package/dist/evaluation/statistics.d.ts +9 -0
- package/dist/evaluation/store.d.ts +26 -0
- package/dist/evidence/manager.d.ts +18 -0
- package/dist/evidence/task-file.d.ts +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +468 -451
- package/dist/mutation/engine.d.ts +29 -5
- package/dist/telemetry.d.ts +11 -1
- package/dist/tools/plugin-registration.d.ts +2 -1
- package/dist/tools/sast-scan.d.ts +9 -0
- package/dist/tools/swarm-command.d.ts +2 -1
- package/dist/tools/update-task-status.d.ts +16 -4
- package/dist/utils/external-tool-runner.d.ts +2 -1
- package/dist/utils/swarm-artifact-cache.d.ts +13 -0
- package/evaluation-fixtures/tier1/boundary-error/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/boundary-error/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/boundary-error/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/boundary-error/instruction.md +1 -0
- package/evaluation-fixtures/tier1/boundary-error/manifest.json +1 -0
- package/evaluation-fixtures/tier1/branch-swap/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/branch-swap/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/branch-swap/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/branch-swap/instruction.md +1 -0
- package/evaluation-fixtures/tier1/branch-swap/manifest.json +1 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/instruction.md +1 -0
- package/evaluation-fixtures/tier1/curated-off-by-one/manifest.json +1 -0
- package/evaluation-fixtures/tier1/guard-removal/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/guard-removal/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/guard-removal/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/guard-removal/instruction.md +1 -0
- package/evaluation-fixtures/tier1/guard-removal/manifest.json +1 -0
- package/evaluation-fixtures/tier1/injection-prone-string/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/injection-prone-string/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/injection-prone-string/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/injection-prone-string/instruction.md +1 -0
- package/evaluation-fixtures/tier1/injection-prone-string/manifest.json +1 -0
- package/evaluation-fixtures/tier1/missing-auth-check/environment/baseline.ts +4 -0
- package/evaluation-fixtures/tier1/missing-auth-check/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/missing-auth-check/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/missing-auth-check/instruction.md +1 -0
- package/evaluation-fixtures/tier1/missing-auth-check/manifest.json +1 -0
- package/evaluation-fixtures/tier1/missing-await/environment/baseline.ts +7 -0
- package/evaluation-fixtures/tier1/missing-await/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/missing-await/environment/defect.ts +4 -0
- package/evaluation-fixtures/tier1/missing-await/instruction.md +1 -0
- package/evaluation-fixtures/tier1/missing-await/manifest.json +1 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/instruction.md +1 -0
- package/evaluation-fixtures/tier1/mutation-off-by-one/manifest.json +1 -0
- package/evaluation-fixtures/tier1/null-substitution/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/null-substitution/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/null-substitution/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/null-substitution/instruction.md +1 -0
- package/evaluation-fixtures/tier1/null-substitution/manifest.json +1 -0
- package/evaluation-fixtures/tier1/operator-swap/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/operator-swap/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/operator-swap/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/operator-swap/instruction.md +1 -0
- package/evaluation-fixtures/tier1/operator-swap/manifest.json +1 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/environment/baseline.ts +4 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/instruction.md +1 -0
- package/evaluation-fixtures/tier1/side-effect-deletion/manifest.json +1 -0
- package/evaluation-fixtures/tier1/swallowed-error/environment/baseline.ts +3 -0
- package/evaluation-fixtures/tier1/swallowed-error/environment/defect.test.ts +3 -0
- package/evaluation-fixtures/tier1/swallowed-error/environment/defect.ts +3 -0
- package/evaluation-fixtures/tier1/swallowed-error/instruction.md +1 -0
- package/evaluation-fixtures/tier1/swallowed-error/manifest.json +1 -0
- package/package.json +2 -1
|
@@ -8,8 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
readSwarmFileAsync,
|
|
10
10
|
validateSwarmPath
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-jtqkh8jf.js";
|
|
11
|
+
} from "./index-kzj3fp7c.js";
|
|
13
12
|
import"./index-5e4e2hvv.js";
|
|
14
13
|
import"./index-p0arc26j.js";
|
|
15
14
|
import {
|
|
@@ -17,6 +16,7 @@ import {
|
|
|
17
16
|
warn
|
|
18
17
|
} from "./index-zgwm4ryv.js";
|
|
19
18
|
import"./index-293f68mj.js";
|
|
19
|
+
import"./index-fsrp8wp3.js";
|
|
20
20
|
import"./index-qe3v54nb.js";
|
|
21
21
|
import"./index-a76rekgs.js";
|
|
22
22
|
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-7kcpkm4y.js";
|
|
5
|
+
import"./index-nprawcc0.js";
|
|
5
6
|
import"./index-8j5d3ytd.js";
|
|
6
7
|
import"./index-c8s9a3zh.js";
|
|
7
8
|
import"./index-m7hc7nn7.js";
|
|
8
9
|
import"./index-nvc0nsvg.js";
|
|
9
|
-
import"./index-
|
|
10
|
+
import"./index-xdsd2hma.js";
|
|
10
11
|
import"./index-scww5b77.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
12
|
+
import"./index-4905hd2m.js";
|
|
13
|
+
import"./index-5bcrp3bc.js";
|
|
14
|
+
import"./index-wxkf3089.js";
|
|
15
|
+
import"./index-t5f01hnz.js";
|
|
16
|
+
import"./index-wegc6xwr.js";
|
|
17
|
+
import"./index-g4p13g8t.js";
|
|
18
|
+
import"./index-5h7d37nf.js";
|
|
18
19
|
import"./index-bfwt3abw.js";
|
|
19
|
-
import"./index-
|
|
20
|
+
import"./index-34g1mv3c.js";
|
|
20
21
|
import"./index-vxv732ex.js";
|
|
21
22
|
import"./index-8fwhhayc.js";
|
|
22
23
|
import"./index-q1exe2b3.js";
|
|
23
24
|
import"./index-n6fa2hhk.js";
|
|
24
25
|
import"./index-rdwfqhp7.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-jtqkh8jf.js";
|
|
26
|
+
import"./index-kzj3fp7c.js";
|
|
27
27
|
import"./index-5e4e2hvv.js";
|
|
28
28
|
import"./index-p0arc26j.js";
|
|
29
29
|
import"./index-zgwm4ryv.js";
|
|
30
30
|
import"./index-dqh3zhhc.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-abjjn4yh.js";
|
|
32
|
+
import"./index-0pfqcjp6.js";
|
|
33
33
|
import"./index-293f68mj.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
import"./index-42cx6g2h.js";
|
|
35
|
+
import"./index-fsrp8wp3.js";
|
|
36
|
+
import"./index-q2rrv0cy.js";
|
|
36
37
|
import"./index-vvk2g744.js";
|
|
37
38
|
import"./index-qe3v54nb.js";
|
|
38
39
|
import"./index-a76rekgs.js";
|
|
@@ -14,38 +14,39 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-7kcpkm4y.js";
|
|
18
|
+
import"./index-nprawcc0.js";
|
|
18
19
|
import"./index-8j5d3ytd.js";
|
|
19
20
|
import"./index-c8s9a3zh.js";
|
|
20
21
|
import"./index-m7hc7nn7.js";
|
|
21
22
|
import"./index-nvc0nsvg.js";
|
|
22
|
-
import"./index-
|
|
23
|
+
import"./index-xdsd2hma.js";
|
|
23
24
|
import"./index-scww5b77.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
25
|
+
import"./index-4905hd2m.js";
|
|
26
|
+
import"./index-5bcrp3bc.js";
|
|
27
|
+
import"./index-wxkf3089.js";
|
|
28
|
+
import"./index-t5f01hnz.js";
|
|
29
|
+
import"./index-wegc6xwr.js";
|
|
30
|
+
import"./index-g4p13g8t.js";
|
|
31
|
+
import"./index-5h7d37nf.js";
|
|
31
32
|
import"./index-bfwt3abw.js";
|
|
32
|
-
import"./index-
|
|
33
|
+
import"./index-34g1mv3c.js";
|
|
33
34
|
import"./index-vxv732ex.js";
|
|
34
35
|
import"./index-8fwhhayc.js";
|
|
35
36
|
import"./index-q1exe2b3.js";
|
|
36
37
|
import"./index-n6fa2hhk.js";
|
|
37
38
|
import"./index-rdwfqhp7.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-jtqkh8jf.js";
|
|
39
|
+
import"./index-kzj3fp7c.js";
|
|
40
40
|
import"./index-5e4e2hvv.js";
|
|
41
41
|
import"./index-p0arc26j.js";
|
|
42
42
|
import"./index-zgwm4ryv.js";
|
|
43
43
|
import"./index-dqh3zhhc.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-abjjn4yh.js";
|
|
45
|
+
import"./index-0pfqcjp6.js";
|
|
46
46
|
import"./index-293f68mj.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
import"./index-42cx6g2h.js";
|
|
48
|
+
import"./index-fsrp8wp3.js";
|
|
49
|
+
import"./index-q2rrv0cy.js";
|
|
49
50
|
import"./index-vvk2g744.js";
|
|
50
51
|
import"./index-qe3v54nb.js";
|
|
51
52
|
import"./index-a76rekgs.js";
|
package/dist/cli/{evidence-summary-service-fehwj116.js → evidence-summary-service-bwt6drb3.js}
RENAMED
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-xdsd2hma.js";
|
|
10
10
|
import"./index-scww5b77.js";
|
|
11
11
|
import"./index-q1exe2b3.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-jtqkh8jf.js";
|
|
12
|
+
import"./index-kzj3fp7c.js";
|
|
14
13
|
import"./index-5e4e2hvv.js";
|
|
15
14
|
import"./index-p0arc26j.js";
|
|
16
15
|
import {
|
|
17
16
|
log
|
|
18
17
|
} from "./index-zgwm4ryv.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
18
|
+
import"./index-abjjn4yh.js";
|
|
19
|
+
import"./index-0pfqcjp6.js";
|
|
21
20
|
import"./index-293f68mj.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
21
|
+
import"./index-42cx6g2h.js";
|
|
22
|
+
import"./index-fsrp8wp3.js";
|
|
23
|
+
import"./index-q2rrv0cy.js";
|
|
24
24
|
import"./index-vvk2g744.js";
|
|
25
25
|
import"./index-qe3v54nb.js";
|
|
26
26
|
import"./index-a76rekgs.js";
|
|
@@ -9,11 +9,12 @@ import {
|
|
|
9
9
|
readTaskEvidenceRaw,
|
|
10
10
|
recordAgentDispatch,
|
|
11
11
|
recordGateEvidence
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-abjjn4yh.js";
|
|
13
|
+
import"./index-0pfqcjp6.js";
|
|
14
14
|
import"./index-293f68mj.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
import"./index-42cx6g2h.js";
|
|
16
|
+
import"./index-fsrp8wp3.js";
|
|
17
|
+
import"./index-q2rrv0cy.js";
|
|
17
18
|
import"./index-vvk2g744.js";
|
|
18
19
|
import"./index-qe3v54nb.js";
|
|
19
20
|
import"./index-a76rekgs.js";
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-efdyjgeh.js";
|
|
5
|
+
import"./index-7kcpkm4y.js";
|
|
6
|
+
import"./index-nprawcc0.js";
|
|
6
7
|
import"./index-8j5d3ytd.js";
|
|
7
8
|
import"./index-c8s9a3zh.js";
|
|
8
9
|
import"./index-m7hc7nn7.js";
|
|
9
10
|
import"./index-nvc0nsvg.js";
|
|
10
|
-
import"./index-
|
|
11
|
+
import"./index-xdsd2hma.js";
|
|
11
12
|
import"./index-scww5b77.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
13
|
+
import"./index-4905hd2m.js";
|
|
14
|
+
import"./index-5bcrp3bc.js";
|
|
15
|
+
import"./index-wxkf3089.js";
|
|
16
|
+
import"./index-t5f01hnz.js";
|
|
17
|
+
import"./index-wegc6xwr.js";
|
|
18
|
+
import"./index-g4p13g8t.js";
|
|
19
|
+
import"./index-5h7d37nf.js";
|
|
19
20
|
import"./index-bfwt3abw.js";
|
|
20
|
-
import"./index-
|
|
21
|
+
import"./index-34g1mv3c.js";
|
|
21
22
|
import"./index-vxv732ex.js";
|
|
22
23
|
import"./index-8fwhhayc.js";
|
|
23
24
|
import"./index-q1exe2b3.js";
|
|
24
25
|
import"./index-n6fa2hhk.js";
|
|
25
26
|
import"./index-rdwfqhp7.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-jtqkh8jf.js";
|
|
27
|
+
import"./index-kzj3fp7c.js";
|
|
28
28
|
import"./index-5e4e2hvv.js";
|
|
29
29
|
import"./index-p0arc26j.js";
|
|
30
30
|
import"./index-zgwm4ryv.js";
|
|
31
31
|
import"./index-dqh3zhhc.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-abjjn4yh.js";
|
|
33
|
+
import"./index-0pfqcjp6.js";
|
|
34
34
|
import"./index-293f68mj.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-42cx6g2h.js";
|
|
36
|
+
import"./index-fsrp8wp3.js";
|
|
37
|
+
import"./index-q2rrv0cy.js";
|
|
37
38
|
import"./index-vvk2g744.js";
|
|
38
39
|
import"./index-qe3v54nb.js";
|
|
39
40
|
import"./index-a76rekgs.js";
|
|
@@ -6,38 +6,39 @@ import {
|
|
|
6
6
|
isHiveEligible,
|
|
7
7
|
promoteFromSwarm,
|
|
8
8
|
promoteToHive
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-7kcpkm4y.js";
|
|
10
|
+
import"./index-nprawcc0.js";
|
|
10
11
|
import"./index-8j5d3ytd.js";
|
|
11
12
|
import"./index-c8s9a3zh.js";
|
|
12
13
|
import"./index-m7hc7nn7.js";
|
|
13
14
|
import"./index-nvc0nsvg.js";
|
|
14
|
-
import"./index-
|
|
15
|
+
import"./index-xdsd2hma.js";
|
|
15
16
|
import"./index-scww5b77.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
17
|
+
import"./index-4905hd2m.js";
|
|
18
|
+
import"./index-5bcrp3bc.js";
|
|
19
|
+
import"./index-wxkf3089.js";
|
|
20
|
+
import"./index-t5f01hnz.js";
|
|
21
|
+
import"./index-wegc6xwr.js";
|
|
22
|
+
import"./index-g4p13g8t.js";
|
|
23
|
+
import"./index-5h7d37nf.js";
|
|
23
24
|
import"./index-bfwt3abw.js";
|
|
24
|
-
import"./index-
|
|
25
|
+
import"./index-34g1mv3c.js";
|
|
25
26
|
import"./index-vxv732ex.js";
|
|
26
27
|
import"./index-8fwhhayc.js";
|
|
27
28
|
import"./index-q1exe2b3.js";
|
|
28
29
|
import"./index-n6fa2hhk.js";
|
|
29
30
|
import"./index-rdwfqhp7.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-jtqkh8jf.js";
|
|
31
|
+
import"./index-kzj3fp7c.js";
|
|
32
32
|
import"./index-5e4e2hvv.js";
|
|
33
33
|
import"./index-p0arc26j.js";
|
|
34
34
|
import"./index-zgwm4ryv.js";
|
|
35
35
|
import"./index-dqh3zhhc.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
import"./index-abjjn4yh.js";
|
|
37
|
+
import"./index-0pfqcjp6.js";
|
|
38
38
|
import"./index-293f68mj.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-42cx6g2h.js";
|
|
40
|
+
import"./index-fsrp8wp3.js";
|
|
41
|
+
import"./index-q2rrv0cy.js";
|
|
41
42
|
import"./index-vvk2g744.js";
|
|
42
43
|
import"./index-qe3v54nb.js";
|
|
43
44
|
import"./index-a76rekgs.js";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
withEvidenceLock
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-42cx6g2h.js";
|
|
5
|
+
import {
|
|
6
|
+
invalidateCachedArtifact
|
|
7
|
+
} from "./index-fsrp8wp3.js";
|
|
5
8
|
import {
|
|
6
9
|
bunWrite
|
|
7
10
|
} from "./index-qe3v54nb.js";
|
|
@@ -29,6 +32,7 @@ async function atomicWriteFile(targetPath, content) {
|
|
|
29
32
|
_internals.unlinkSync(tempPath);
|
|
30
33
|
} catch {}
|
|
31
34
|
}
|
|
35
|
+
invalidateCachedArtifact(targetPath);
|
|
32
36
|
}
|
|
33
37
|
function withTaskEvidenceLock(directory, taskId, agent, fn) {
|
|
34
38
|
return withEvidenceLock(directory, taskEvidenceRelPath(taskId), agent, taskId, fn);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
emit
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-q2rrv0cy.js";
|
|
5
5
|
import {
|
|
6
6
|
require_proper_lockfile
|
|
7
7
|
} from "./index-vvk2g744.js";
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
// src/parallel/file-locks.ts
|
|
13
13
|
var import_proper_lockfile = __toESM(require_proper_lockfile(), 1);
|
|
14
|
+
import * as crypto from "crypto";
|
|
14
15
|
import * as fs from "fs";
|
|
15
16
|
import * as path from "path";
|
|
16
17
|
var LOCKS_DIR = ".swarm/locks";
|
|
@@ -27,10 +28,14 @@ function getLockFilePath(directory, filePath) {
|
|
|
27
28
|
throw new Error("Invalid file path: path traversal not allowed");
|
|
28
29
|
}
|
|
29
30
|
const pathForHash = process.platform === "win32" ? normalized.toLowerCase() : normalized;
|
|
30
|
-
const hash =
|
|
31
|
+
const hash = crypto.createHash("sha256").update(pathForHash).digest("hex");
|
|
31
32
|
const lockPath = path.join(directory, LOCKS_DIR, `${hash}.lock`);
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
const legacyPaths = [pathForHash];
|
|
34
|
+
if (process.platform === "win32" && normalized !== pathForHash) {
|
|
35
|
+
legacyPaths.push(normalized);
|
|
36
|
+
}
|
|
37
|
+
for (const legacyPath of legacyPaths) {
|
|
38
|
+
const oldHash = Buffer.from(legacyPath).toString("base64").replace(/[/+=]/g, "_");
|
|
34
39
|
const oldLockPath = path.join(directory, LOCKS_DIR, `${oldHash}.lock`);
|
|
35
40
|
if (fs.existsSync(oldLockPath)) {
|
|
36
41
|
return oldLockPath;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/utils/timeout.ts
|
|
3
|
+
async function withTimeout(promise, ms, timeoutError) {
|
|
4
|
+
let timer;
|
|
5
|
+
const timeoutPromise = new Promise((_, reject) => {
|
|
6
|
+
timer = setTimeout(() => reject(timeoutError), ms);
|
|
7
|
+
if (typeof timer.unref === "function") {
|
|
8
|
+
timer.unref();
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
try {
|
|
12
|
+
return await Promise.race([promise, timeoutPromise]);
|
|
13
|
+
} finally {
|
|
14
|
+
if (timer !== undefined)
|
|
15
|
+
clearTimeout(timer);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { withTimeout };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-kzj3fp7c.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
7
|
} from "./index-zgwm4ryv.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./index-293f68mj.js";
|
|
11
11
|
import {
|
|
12
12
|
withEvidenceLock
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-42cx6g2h.js";
|
|
14
14
|
|
|
15
15
|
// src/background/pr-subscriptions.ts
|
|
16
16
|
import * as fs from "fs";
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
} from "./index-bfwt3abw.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveKnowledgeStoreDir
|
|
7
|
-
} from "./index-
|
|
8
|
-
import {
|
|
9
|
-
readCachedParsedFile
|
|
10
|
-
} from "./index-jtqkh8jf.js";
|
|
7
|
+
} from "./index-34g1mv3c.js";
|
|
11
8
|
import {
|
|
12
9
|
init_logger,
|
|
13
10
|
log
|
|
14
11
|
} from "./index-zgwm4ryv.js";
|
|
15
12
|
import {
|
|
16
13
|
atomicWriteFile
|
|
17
|
-
} from "./index-
|
|
14
|
+
} from "./index-0pfqcjp6.js";
|
|
15
|
+
import {
|
|
16
|
+
readCachedParsedFile
|
|
17
|
+
} from "./index-fsrp8wp3.js";
|
|
18
18
|
import {
|
|
19
19
|
require_proper_lockfile
|
|
20
20
|
} from "./index-vvk2g744.js";
|
|
@@ -595,7 +595,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
595
595
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
596
596
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
597
597
|
return;
|
|
598
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
598
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-hrbmwxxj.js");
|
|
599
599
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
600
600
|
const flagIds = new Set;
|
|
601
601
|
for (const e of atFloor) {
|
|
@@ -662,7 +662,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
665
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
665
|
+
const { quarantineEntry } = await import("./knowledge-validator-xre0s774.js");
|
|
666
666
|
for (const { id } of toQuarantine) {
|
|
667
667
|
await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto").catch((err) => {
|
|
668
668
|
log("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
|