opencode-swarm 7.114.9 → 7.116.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/README.md +3 -1
- package/dist/cli/{config-doctor-jy3mdh9t.js → config-doctor-htzxe394.js} +2 -2
- package/dist/cli/{curator-5xt89z05.js → curator-7s5yw6hw.js} +18 -17
- package/dist/cli/{curator-llm-factory-pnhvf3s3.js → curator-llm-factory-x96dr0zf.js} +18 -17
- package/dist/cli/{dispatch-mczsxy5s.js → dispatch-07jgc3hn.js} +1 -1
- package/dist/cli/{evidence-summary-service-fehwj116.js → evidence-summary-service-ef6kgtev.js} +5 -5
- package/dist/cli/{gate-evidence-vkpqt300.js → gate-evidence-thqt0beq.js} +4 -4
- package/dist/cli/{guardrail-explain-7aztgtyh.js → guardrail-explain-kwqfkwch.js} +19 -18
- package/dist/cli/{guardrail-log-84wnx273.js → guardrail-log-dzbqcgz9.js} +3 -3
- package/dist/cli/{hive-promoter-q899q2m6.js → hive-promoter-rkkx40qv.js} +18 -17
- package/dist/cli/{index-54sevh81.js → index-3b8n3dbd.js} +30 -22
- package/dist/cli/{index-8f2270hc.js → index-3yh67t1h.js} +3 -3
- package/dist/cli/{index-4sckv7y6.js → index-42cx6g2h.js} +9 -4
- package/dist/cli/index-4905hd2m.js +19 -0
- package/dist/cli/{index-4h2ea8h5.js → index-81vzywh3.js} +2 -2
- package/dist/cli/{index-6f6y2rbp.js → index-8bvh0qfa.js} +3 -3
- package/dist/cli/{index-yfedche9.js → index-8j5d3ytd.js} +1 -1
- package/dist/cli/{index-80jkseqw.js → index-a6f8b0vn.js} +1 -1
- package/dist/cli/{index-0p660a87.js → index-bbsaxnj5.js} +1 -1
- package/dist/cli/{index-yrrqs4b0.js → index-cnrhj56z.js} +1160 -47
- package/dist/cli/{index-n18yy0z1.js → index-jyetmzcn.js} +3 -3
- package/dist/cli/{index-rk6qhyng.js → index-k5ey429j.js} +4 -4
- package/dist/cli/{index-7jmrbp68.js → index-m43zgtjn.js} +1 -1
- package/dist/cli/{index-9bsmzfk3.js → index-m7hc7nn7.js} +5 -1
- package/dist/cli/{index-typ408f4.js → index-me46ffm2.js} +6811 -1947
- package/dist/cli/{index-ga4ta3cr.js → index-nprawcc0.js} +7 -1
- package/dist/cli/{index-a45jq4b7.js → index-nvc0nsvg.js} +6 -1
- package/dist/cli/{index-pa6t33pt.js → index-q2rrv0cy.js} +11 -0
- package/dist/cli/{index-g40r5d08.js → index-qgeeyy75.js} +1 -1
- package/dist/cli/{index-x12hvfpf.js → index-s385axt1.js} +3 -3
- package/dist/cli/{index-m9m7p49w.js → index-tvgvb5pa.js} +2 -2
- package/dist/cli/index.js +18 -17
- package/dist/cli/{knowledge-escalator-5gwp1ar8.js → knowledge-escalator-0bq62d34.js} +7 -7
- package/dist/cli/{knowledge-events-m304swh6.js → knowledge-events-cwwky393.js} +5 -5
- package/dist/cli/{knowledge-store-9babt8rd.js → knowledge-store-q8x4h82m.js} +5 -5
- package/dist/cli/{knowledge-validator-t9sym59g.js → knowledge-validator-zr0djm02.js} +6 -6
- package/dist/cli/{pending-delegations-ddbkbgxy.js → pending-delegations-rr9x47rd.js} +2 -2
- package/dist/cli/{pr-subscriptions-vwv7zm2p.js → pr-subscriptions-cny2jz2d.js} +3 -3
- package/dist/cli/runtime-ykafcwc6.js +3397 -0
- package/dist/cli/{schema-aymfdrsb.js → schema-bqn7g3ez.js} +3 -1
- package/dist/cli/{skill-generator-tav44xpm.js → skill-generator-mz267btk.js} +8 -8
- package/dist/cli/{telemetry-jny76r83.js → telemetry-qh78ymq4.js} +1 -1
- package/dist/commands/archive.d.ts +4 -4
- 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 +19 -2
- package/dist/config/index.d.ts +2 -2
- package/dist/config/plan-schema.d.ts +7 -7
- package/dist/config/schema.d.ts +9 -0
- 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/index.d.ts +4 -0
- package/dist/index.js +497 -450
- package/dist/mutation/engine.d.ts +29 -5
- package/dist/telemetry.d.ts +11 -1
- package/dist/tools/apply-patch.d.ts +21 -0
- 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/fuzzy-match.d.ts +115 -0
- package/dist/utils/sequence-matcher.d.ts +83 -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
package/README.md
CHANGED
|
@@ -1097,7 +1097,9 @@ Control how tool outputs are summarized for LLM context.
|
|
|
1097
1097
|
| `/swarm export` | Export plan and context as portable JSON |
|
|
1098
1098
|
| `/swarm evidence [task]` | Evidence bundles for a task or all tasks |
|
|
1099
1099
|
| `/swarm archive [--dry-run]` | Archive old evidence with retention policy |
|
|
1100
|
-
| `/swarm benchmark` | Performance benchmarks |
|
|
1100
|
+
| `/swarm benchmark` | Performance benchmarks; optionally consume a stored gate audit with `--gate-audit-run <id>` |
|
|
1101
|
+
| `/swarm gate-audit` | Run the bounded 12-fixture reviewer/test/SAST/mutation/quality evaluation matrix |
|
|
1102
|
+
| `/swarm gate-stats` | Aggregate offline catch, false-reject, retry, cost, and reviewer-fallback statistics |
|
|
1101
1103
|
| `/swarm costs [--json]` | Per-agent, per-task, per-gate, and per-retry token/cost totals from telemetry |
|
|
1102
1104
|
| `/swarm retrieve [id]` | Retrieve auto-summarized tool outputs (supports offset/limit pagination) |
|
|
1103
1105
|
| `/swarm reset --confirm` | Clear swarm state files |
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
shouldRunOnStartup,
|
|
13
13
|
writeBackupArtifact,
|
|
14
14
|
writeDoctorArtifact
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-m7hc7nn7.js";
|
|
16
|
+
import"./index-nvc0nsvg.js";
|
|
17
17
|
import"./index-bfwt3abw.js";
|
|
18
18
|
import"./index-5e4e2hvv.js";
|
|
19
19
|
import"./index-p0arc26j.js";
|
|
@@ -14,22 +14,23 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
} from "./index-me46ffm2.js";
|
|
18
|
+
import"./index-nprawcc0.js";
|
|
19
|
+
import"./index-8j5d3ytd.js";
|
|
19
20
|
import"./index-c8s9a3zh.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-m7hc7nn7.js";
|
|
22
|
+
import"./index-nvc0nsvg.js";
|
|
23
|
+
import"./index-cnrhj56z.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-a6f8b0vn.js";
|
|
27
|
+
import"./index-s385axt1.js";
|
|
28
|
+
import"./index-jyetmzcn.js";
|
|
29
|
+
import"./index-8bvh0qfa.js";
|
|
30
|
+
import"./index-3yh67t1h.js";
|
|
31
|
+
import"./index-k5ey429j.js";
|
|
31
32
|
import"./index-bfwt3abw.js";
|
|
32
|
-
import"./index-
|
|
33
|
+
import"./index-qgeeyy75.js";
|
|
33
34
|
import"./index-vxv732ex.js";
|
|
34
35
|
import"./index-8fwhhayc.js";
|
|
35
36
|
import"./index-q1exe2b3.js";
|
|
@@ -41,11 +42,11 @@ import"./index-5e4e2hvv.js";
|
|
|
41
42
|
import"./index-p0arc26j.js";
|
|
42
43
|
import"./index-zgwm4ryv.js";
|
|
43
44
|
import"./index-dqh3zhhc.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-81vzywh3.js";
|
|
46
|
+
import"./index-bbsaxnj5.js";
|
|
46
47
|
import"./index-293f68mj.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-42cx6g2h.js";
|
|
49
|
+
import"./index-q2rrv0cy.js";
|
|
49
50
|
import"./index-vvk2g744.js";
|
|
50
51
|
import"./index-qe3v54nb.js";
|
|
51
52
|
import"./index-a76rekgs.js";
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-me46ffm2.js";
|
|
5
|
+
import"./index-nprawcc0.js";
|
|
6
|
+
import"./index-8j5d3ytd.js";
|
|
6
7
|
import"./index-c8s9a3zh.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-m7hc7nn7.js";
|
|
9
|
+
import"./index-nvc0nsvg.js";
|
|
10
|
+
import"./index-cnrhj56z.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-a6f8b0vn.js";
|
|
14
|
+
import"./index-s385axt1.js";
|
|
15
|
+
import"./index-jyetmzcn.js";
|
|
16
|
+
import"./index-8bvh0qfa.js";
|
|
17
|
+
import"./index-3yh67t1h.js";
|
|
18
|
+
import"./index-k5ey429j.js";
|
|
18
19
|
import"./index-bfwt3abw.js";
|
|
19
|
-
import"./index-
|
|
20
|
+
import"./index-qgeeyy75.js";
|
|
20
21
|
import"./index-vxv732ex.js";
|
|
21
22
|
import"./index-8fwhhayc.js";
|
|
22
23
|
import"./index-q1exe2b3.js";
|
|
@@ -28,11 +29,11 @@ import"./index-5e4e2hvv.js";
|
|
|
28
29
|
import"./index-p0arc26j.js";
|
|
29
30
|
import"./index-zgwm4ryv.js";
|
|
30
31
|
import"./index-dqh3zhhc.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-81vzywh3.js";
|
|
33
|
+
import"./index-bbsaxnj5.js";
|
|
33
34
|
import"./index-293f68mj.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-42cx6g2h.js";
|
|
36
|
+
import"./index-q2rrv0cy.js";
|
|
36
37
|
import"./index-vvk2g744.js";
|
|
37
38
|
import"./index-qe3v54nb.js";
|
|
38
39
|
import"./index-a76rekgs.js";
|
package/dist/cli/{evidence-summary-service-fehwj116.js → evidence-summary-service-ef6kgtev.js}
RENAMED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-cnrhj56z.js";
|
|
10
10
|
import"./index-scww5b77.js";
|
|
11
11
|
import"./index-q1exe2b3.js";
|
|
12
12
|
import"./index-wh8949ef.js";
|
|
@@ -16,11 +16,11 @@ import"./index-p0arc26j.js";
|
|
|
16
16
|
import {
|
|
17
17
|
log
|
|
18
18
|
} from "./index-zgwm4ryv.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-81vzywh3.js";
|
|
20
|
+
import"./index-bbsaxnj5.js";
|
|
21
21
|
import"./index-293f68mj.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
import"./index-42cx6g2h.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,11 @@ import {
|
|
|
9
9
|
readTaskEvidenceRaw,
|
|
10
10
|
recordAgentDispatch,
|
|
11
11
|
recordGateEvidence
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-81vzywh3.js";
|
|
13
|
+
import"./index-bbsaxnj5.js";
|
|
14
14
|
import"./index-293f68mj.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
import"./index-42cx6g2h.js";
|
|
16
|
+
import"./index-q2rrv0cy.js";
|
|
17
17
|
import"./index-vvk2g744.js";
|
|
18
18
|
import"./index-qe3v54nb.js";
|
|
19
19
|
import"./index-a76rekgs.js";
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-tvgvb5pa.js";
|
|
5
|
+
import"./index-me46ffm2.js";
|
|
6
|
+
import"./index-nprawcc0.js";
|
|
7
|
+
import"./index-8j5d3ytd.js";
|
|
7
8
|
import"./index-c8s9a3zh.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
import"./index-m7hc7nn7.js";
|
|
10
|
+
import"./index-nvc0nsvg.js";
|
|
11
|
+
import"./index-cnrhj56z.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-a6f8b0vn.js";
|
|
15
|
+
import"./index-s385axt1.js";
|
|
16
|
+
import"./index-jyetmzcn.js";
|
|
17
|
+
import"./index-8bvh0qfa.js";
|
|
18
|
+
import"./index-3yh67t1h.js";
|
|
19
|
+
import"./index-k5ey429j.js";
|
|
19
20
|
import"./index-bfwt3abw.js";
|
|
20
|
-
import"./index-
|
|
21
|
+
import"./index-qgeeyy75.js";
|
|
21
22
|
import"./index-vxv732ex.js";
|
|
22
23
|
import"./index-8fwhhayc.js";
|
|
23
24
|
import"./index-q1exe2b3.js";
|
|
@@ -29,11 +30,11 @@ import"./index-5e4e2hvv.js";
|
|
|
29
30
|
import"./index-p0arc26j.js";
|
|
30
31
|
import"./index-zgwm4ryv.js";
|
|
31
32
|
import"./index-dqh3zhhc.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-81vzywh3.js";
|
|
34
|
+
import"./index-bbsaxnj5.js";
|
|
34
35
|
import"./index-293f68mj.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-42cx6g2h.js";
|
|
37
|
+
import"./index-q2rrv0cy.js";
|
|
37
38
|
import"./index-vvk2g744.js";
|
|
38
39
|
import"./index-qe3v54nb.js";
|
|
39
40
|
import"./index-a76rekgs.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-m43zgtjn.js";
|
|
5
|
+
import"./index-8j5d3ytd.js";
|
|
6
|
+
import"./index-nvc0nsvg.js";
|
|
7
7
|
import"./index-bfwt3abw.js";
|
|
8
8
|
import"./index-5e4e2hvv.js";
|
|
9
9
|
import"./index-p0arc26j.js";
|
|
@@ -6,22 +6,23 @@ import {
|
|
|
6
6
|
isHiveEligible,
|
|
7
7
|
promoteFromSwarm,
|
|
8
8
|
promoteToHive
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-me46ffm2.js";
|
|
10
|
+
import"./index-nprawcc0.js";
|
|
11
|
+
import"./index-8j5d3ytd.js";
|
|
11
12
|
import"./index-c8s9a3zh.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-m7hc7nn7.js";
|
|
14
|
+
import"./index-nvc0nsvg.js";
|
|
15
|
+
import"./index-cnrhj56z.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-a6f8b0vn.js";
|
|
19
|
+
import"./index-s385axt1.js";
|
|
20
|
+
import"./index-jyetmzcn.js";
|
|
21
|
+
import"./index-8bvh0qfa.js";
|
|
22
|
+
import"./index-3yh67t1h.js";
|
|
23
|
+
import"./index-k5ey429j.js";
|
|
23
24
|
import"./index-bfwt3abw.js";
|
|
24
|
-
import"./index-
|
|
25
|
+
import"./index-qgeeyy75.js";
|
|
25
26
|
import"./index-vxv732ex.js";
|
|
26
27
|
import"./index-8fwhhayc.js";
|
|
27
28
|
import"./index-q1exe2b3.js";
|
|
@@ -33,11 +34,11 @@ import"./index-5e4e2hvv.js";
|
|
|
33
34
|
import"./index-p0arc26j.js";
|
|
34
35
|
import"./index-zgwm4ryv.js";
|
|
35
36
|
import"./index-dqh3zhhc.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-81vzywh3.js";
|
|
38
|
+
import"./index-bbsaxnj5.js";
|
|
38
39
|
import"./index-293f68mj.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-42cx6g2h.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,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-tvgvb5pa.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-m43zgtjn.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -43,6 +43,8 @@ import {
|
|
|
43
43
|
handleEvidenceSummaryCommand,
|
|
44
44
|
handleExportCommand,
|
|
45
45
|
handleFullAutoCommand,
|
|
46
|
+
handleGateAuditCommand,
|
|
47
|
+
handleGateStatsCommand,
|
|
46
48
|
handleHandoffCommand,
|
|
47
49
|
handleHelpCommand,
|
|
48
50
|
handleHistoryCommand,
|
|
@@ -81,26 +83,27 @@ import {
|
|
|
81
83
|
handleWriteRetroCommand,
|
|
82
84
|
normalizeSwarmCommandInput,
|
|
83
85
|
resolveCommand
|
|
84
|
-
} from "./index-
|
|
85
|
-
import"./index-
|
|
86
|
+
} from "./index-me46ffm2.js";
|
|
87
|
+
import"./index-nprawcc0.js";
|
|
88
|
+
import"./index-8j5d3ytd.js";
|
|
86
89
|
import"./index-c8s9a3zh.js";
|
|
87
|
-
import"./index-
|
|
90
|
+
import"./index-m7hc7nn7.js";
|
|
88
91
|
import {
|
|
89
92
|
AGENT_TOOL_MAP,
|
|
90
93
|
ORCHESTRATOR_NAME,
|
|
91
94
|
stripKnownSwarmPrefix
|
|
92
|
-
} from "./index-
|
|
93
|
-
import"./index-
|
|
95
|
+
} from "./index-nvc0nsvg.js";
|
|
96
|
+
import"./index-cnrhj56z.js";
|
|
94
97
|
import"./index-scww5b77.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
98
|
+
import"./index-4905hd2m.js";
|
|
99
|
+
import"./index-a6f8b0vn.js";
|
|
100
|
+
import"./index-s385axt1.js";
|
|
101
|
+
import"./index-jyetmzcn.js";
|
|
102
|
+
import"./index-8bvh0qfa.js";
|
|
103
|
+
import"./index-3yh67t1h.js";
|
|
104
|
+
import"./index-k5ey429j.js";
|
|
102
105
|
import"./index-bfwt3abw.js";
|
|
103
|
-
import"./index-
|
|
106
|
+
import"./index-qgeeyy75.js";
|
|
104
107
|
import"./index-vxv732ex.js";
|
|
105
108
|
import"./index-8fwhhayc.js";
|
|
106
109
|
import"./index-q1exe2b3.js";
|
|
@@ -112,11 +115,11 @@ import"./index-5e4e2hvv.js";
|
|
|
112
115
|
import"./index-p0arc26j.js";
|
|
113
116
|
import"./index-zgwm4ryv.js";
|
|
114
117
|
import"./index-dqh3zhhc.js";
|
|
115
|
-
import"./index-
|
|
116
|
-
import"./index-
|
|
118
|
+
import"./index-81vzywh3.js";
|
|
119
|
+
import"./index-bbsaxnj5.js";
|
|
117
120
|
import"./index-293f68mj.js";
|
|
118
|
-
import"./index-
|
|
119
|
-
import"./index-
|
|
121
|
+
import"./index-42cx6g2h.js";
|
|
122
|
+
import"./index-q2rrv0cy.js";
|
|
120
123
|
import"./index-vvk2g744.js";
|
|
121
124
|
import"./index-qe3v54nb.js";
|
|
122
125
|
import"./index-a76rekgs.js";
|
|
@@ -241,7 +244,8 @@ function createSwarmCommandHandler(directory, agents, options = {}) {
|
|
|
241
244
|
tokens: normalized.tokens,
|
|
242
245
|
activeAgentName: options.getActiveAgentName?.(input.sessionID),
|
|
243
246
|
packageRoot: options.packageRoot,
|
|
244
|
-
registeredAgents: options.registeredAgents
|
|
247
|
+
registeredAgents: options.registeredAgents,
|
|
248
|
+
evaluationModelDispatcher: options.evaluationModelDispatcher
|
|
245
249
|
})
|
|
246
250
|
});
|
|
247
251
|
return;
|
|
@@ -255,7 +259,8 @@ async function buildSwarmCommandPrompt(args) {
|
|
|
255
259
|
tokens,
|
|
256
260
|
activeAgentName,
|
|
257
261
|
packageRoot,
|
|
258
|
-
registeredAgents
|
|
262
|
+
registeredAgents,
|
|
263
|
+
evaluationModelDispatcher
|
|
259
264
|
} = args;
|
|
260
265
|
const resolved = _internals.resolveCommand(tokens);
|
|
261
266
|
if (!resolved) {
|
|
@@ -298,7 +303,8 @@ async function buildSwarmCommandPrompt(args) {
|
|
|
298
303
|
agents,
|
|
299
304
|
sessionID,
|
|
300
305
|
tokens,
|
|
301
|
-
packageRoot
|
|
306
|
+
packageRoot,
|
|
307
|
+
evaluationModelDispatcher
|
|
302
308
|
});
|
|
303
309
|
return formatCanonicalPromptFallback({
|
|
304
310
|
original: `/swarm ${tokens.join(" ")}`.trim(),
|
|
@@ -391,6 +397,8 @@ export {
|
|
|
391
397
|
handleHandoffCommand,
|
|
392
398
|
handleGuardrailLog,
|
|
393
399
|
handleGuardrailExplain,
|
|
400
|
+
handleGateStatsCommand,
|
|
401
|
+
handleGateAuditCommand,
|
|
394
402
|
handleFullAutoCommand,
|
|
395
403
|
handleExportCommand,
|
|
396
404
|
handleEvidenceSummaryCommand,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveKnowledgeStoreDir
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-qgeeyy75.js";
|
|
5
5
|
import {
|
|
6
6
|
init_logger,
|
|
7
7
|
warn
|
|
8
8
|
} from "./index-zgwm4ryv.js";
|
|
9
9
|
import {
|
|
10
10
|
atomicWriteFile
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-bbsaxnj5.js";
|
|
12
12
|
import {
|
|
13
13
|
require_proper_lockfile
|
|
14
14
|
} from "./index-vvk2g744.js";
|
|
@@ -594,7 +594,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
594
594
|
deltas.push({ id, delta });
|
|
595
595
|
}
|
|
596
596
|
if (deltas.length > 0) {
|
|
597
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
597
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-q8x4h82m.js");
|
|
598
598
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
599
599
|
}
|
|
600
600
|
return {
|
|
@@ -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 };
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
atomicWriteFile,
|
|
4
4
|
taskEvidencePath,
|
|
5
5
|
withTaskEvidenceLock
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-bbsaxnj5.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_external
|
|
9
9
|
} from "./index-293f68mj.js";
|
|
10
10
|
import {
|
|
11
11
|
telemetry
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-q2rrv0cy.js";
|
|
13
13
|
|
|
14
14
|
// src/gate-evidence.ts
|
|
15
15
|
import { mkdirSync, readFileSync, realpathSync } from "fs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
countEntryViolationsInWindow,
|
|
5
5
|
readKnowledgeEvents,
|
|
6
6
|
recordKnowledgeEvent
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3yh67t1h.js";
|
|
8
8
|
import {
|
|
9
9
|
jaccardBigram,
|
|
10
10
|
readKnowledge,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveSwarmKnowledgePath,
|
|
13
13
|
transactKnowledge,
|
|
14
14
|
wordBigrams
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-k5ey429j.js";
|
|
16
16
|
import {
|
|
17
17
|
isActiveStatus
|
|
18
18
|
} from "./index-bfwt3abw.js";
|
|
@@ -188,7 +188,7 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
188
188
|
alreadyInactive: true
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
191
|
+
const { quarantineEntry } = await import("./knowledge-validator-zr0djm02.js");
|
|
192
192
|
await quarantineEntry(directory, entryId, `repeat_contradiction: ${count} contradicted events in ${windowDays}d`, "auto");
|
|
193
193
|
return { quarantined: true, entryId, contradictionsInWindow: count };
|
|
194
194
|
} catch {
|