opencode-swarm 7.179.0 → 7.179.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.
Files changed (70) hide show
  1. package/.opencode/skills/execute/SKILL.md +9 -8
  2. package/.opencode/skills/running-tests/SKILL.md +41 -36
  3. package/.opencode/skills/writing-tests/SKILL.md +11 -4
  4. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  5. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  6. package/dist/agents/explorer.d.ts +1 -1
  7. package/dist/cli/{coder-settlement-7pt3a0y0.js → coder-settlement-f1nmezzv.js} +3 -3
  8. package/dist/cli/{config-doctor-82w4bp4b.js → config-doctor-ena2803f.js} +2 -2
  9. package/dist/cli/{core-9rqzs794.js → core-fcfzme3m.js} +1 -1
  10. package/dist/cli/{curator-llm-factory-cbm1ny30.js → curator-llm-factory-dds2fnhj.js} +21 -21
  11. package/dist/cli/{curator-m8act07j.js → curator-q9s5q9v4.js} +21 -21
  12. package/dist/cli/{dispatch-3rwdxpp2.js → dispatch-p5zjg5e6.js} +1 -1
  13. package/dist/cli/{evidence-summary-service-a99bgje1.js → evidence-summary-service-wtj8mkm6.js} +6 -6
  14. package/dist/cli/{explorer-z0cf5cz0.js → explorer-m50sfrp7.js} +1 -1
  15. package/dist/cli/{gate-evidence-yssmxba5.js → gate-evidence-h83yb8nd.js} +2 -2
  16. package/dist/cli/{guardrail-explain-ffwmhf7s.js → guardrail-explain-qm5wej7v.js} +22 -22
  17. package/dist/cli/{guardrail-log-j2wtq7p2.js → guardrail-log-zf1htf1d.js} +3 -3
  18. package/dist/cli/{guardrail-reset-07byr7nr.js → guardrail-reset-f2p198j3.js} +21 -21
  19. package/dist/cli/{hive-promoter-ewrz7vh1.js → hive-promoter-1mhx2jh0.js} +21 -21
  20. package/dist/cli/{index-yagqxt2p.js → index-5d224akk.js} +1 -1
  21. package/dist/cli/{index-tmy46dtd.js → index-93nx95me.js} +3 -3
  22. package/dist/cli/{index-amf88k1e.js → index-9fb01jk5.js} +1 -1
  23. package/dist/cli/{index-twtez316.js → index-9s1xzvnn.js} +1 -1
  24. package/dist/cli/{index-kanxpgf8.js → index-ajm7ebyd.js} +2 -2
  25. package/dist/cli/{index-7zmbtxw1.js → index-aqpwm350.js} +1 -1
  26. package/dist/cli/{index-09wm3963.js → index-b567t0cr.js} +2 -2
  27. package/dist/cli/{index-8815e95e.js → index-dz12bshh.js} +3 -3
  28. package/dist/cli/{index-hwcra3y9.js → index-epfjc1c1.js} +3 -3
  29. package/dist/cli/{index-zgvzbz48.js → index-hamqvzqn.js} +69 -13
  30. package/dist/cli/{index-d66zb40k.js → index-ky262b73.js} +1605 -716
  31. package/dist/cli/{index-1sz02k85.js → index-m1w40kfw.js} +1 -1
  32. package/dist/cli/{index-kmhnkn6t.js → index-n2wjrgcs.js} +1 -1
  33. package/dist/cli/{index-1rwyfvq2.js → index-pfg3jwe9.js} +1 -1
  34. package/dist/cli/{index-pxtye2ng.js → index-pn023bf9.js} +23 -23
  35. package/dist/cli/{index-0bc8jdnv.js → index-q375xdcw.js} +1 -1
  36. package/dist/cli/{index-9p1pqykb.js → index-rb9jmj30.js} +2 -2
  37. package/dist/cli/{index-1c1dbwze.js → index-rdec0y3z.js} +1 -1
  38. package/dist/cli/{index-sv4y1cma.js → index-sj29n50e.js} +1 -1
  39. package/dist/cli/{index-qxk5qkfh.js → index-vp9pn7sv.js} +5 -5
  40. package/dist/cli/{index-etmwjgre.js → index-w4c2repz.js} +21 -21
  41. package/dist/cli/{index-80q47hpw.js → index-xy7k7f3k.js} +2 -2
  42. package/dist/cli/{index-3hne91yd.js → index-y94vwx2q.js} +3 -3
  43. package/dist/cli/{index-wvpsm8ja.js → index-y98fvmb8.js} +4 -4
  44. package/dist/cli/{index-ndwbb3xm.js → index-yp25bc9n.js} +4 -4
  45. package/dist/cli/{index-6tnkvqr9.js → index-zbhvr9st.js} +1 -1
  46. package/dist/cli/index.js +22 -22
  47. package/dist/cli/{knowledge-escalator-yx97q9c1.js → knowledge-escalator-z6tkgrjq.js} +6 -6
  48. package/dist/cli/{knowledge-events-p269fyvv.js → knowledge-events-2bgefatz.js} +4 -4
  49. package/dist/cli/{knowledge-store-36zemyqa.js → knowledge-store-1fphg9sa.js} +1 -1
  50. package/dist/cli/{knowledge-validator-rd20yq41.js → knowledge-validator-723h2vck.js} +2 -2
  51. package/dist/cli/{mcp-sg9zrkz2.js → mcp-xyswgya5.js} +1 -1
  52. package/dist/cli/{pending-delegations-8p2gf4kt.js → pending-delegations-5zm19yvv.js} +2 -2
  53. package/dist/cli/{pr-subscriptions-4dj9r71h.js → pr-subscriptions-5hm6hzv6.js} +1 -1
  54. package/dist/cli/{pr-workflow-gate-8dgz5z1h.js → pr-workflow-gate-48rzb2bh.js} +21 -21
  55. package/dist/cli/{scan-cursor-nx0jv9ya.js → scan-cursor-m28tddrg.js} +2 -2
  56. package/dist/cli/{schema-q6gsrxwz.js → schema-jt9axyj6.js} +1 -1
  57. package/dist/cli/{scope-persistence-1k4xsyh7.js → scope-persistence-d0358pw7.js} +5 -5
  58. package/dist/cli/{server-shhxq34t.js → server-d5jxcbxz.js} +21 -21
  59. package/dist/cli/{skill-generator-6j7tq2tb.js → skill-generator-qanka67x.js} +7 -7
  60. package/dist/cli/{snapshot-coordination-init-h8n8w1cm.js → snapshot-coordination-init-mhrq11p8.js} +21 -21
  61. package/dist/cli/{worktree-collision-ownership-97jzh4ra.js → worktree-collision-ownership-ygdbpexh.js} +2 -2
  62. package/dist/cli/{worktree-isolation-g4w74ccb.js → worktree-isolation-4855f2az.js} +21 -21
  63. package/dist/index.js +207 -200
  64. package/dist/lang/backends/go.d.ts +2 -0
  65. package/dist/mutation/engine.d.ts +1 -0
  66. package/dist/test-impact/analyzer.d.ts +46 -4
  67. package/dist/test-impact/constants.d.ts +4 -0
  68. package/dist/tools/mutation-test.d.ts +11 -5
  69. package/dist/tools/test-runner.d.ts +34 -6
  70. package/package.json +1 -1
@@ -1,44 +1,44 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-80q47hpw.js";
5
- import"./index-d66zb40k.js";
6
- import"./index-zgvzbz48.js";
4
+ } from "./index-xy7k7f3k.js";
5
+ import"./index-ky262b73.js";
6
+ import"./index-hamqvzqn.js";
7
7
  import"./index-pskba939.js";
8
- import"./index-7zmbtxw1.js";
8
+ import"./index-aqpwm350.js";
9
9
  import"./index-h4nh6s8b.js";
10
- import"./index-0bc8jdnv.js";
11
- import"./index-wvpsm8ja.js";
10
+ import"./index-q375xdcw.js";
11
+ import"./index-y98fvmb8.js";
12
12
  import"./index-g6nyk713.js";
13
13
  import"./index-txdagbh7.js";
14
14
  import"./index-n1tcj1q7.js";
15
15
  import"./index-6b295cas.js";
16
- import"./index-8815e95e.js";
17
- import"./index-qxk5qkfh.js";
18
- import"./index-1rwyfvq2.js";
19
- import"./index-1c1dbwze.js";
16
+ import"./index-dz12bshh.js";
17
+ import"./index-vp9pn7sv.js";
18
+ import"./index-pfg3jwe9.js";
19
+ import"./index-rdec0y3z.js";
20
20
  import"./index-6r92fw88.js";
21
21
  import"./index-549wxbe1.js";
22
22
  import"./index-zsrtt42s.js";
23
- import"./index-3hne91yd.js";
23
+ import"./index-y94vwx2q.js";
24
24
  import"./index-2b0ktpbf.js";
25
25
  import"./index-3pzwsesm.js";
26
26
  import"./index-pt7h91zc.js";
27
27
  import"./index-q7sjgr1y.js";
28
- import"./index-kmhnkn6t.js";
29
- import"./index-6tnkvqr9.js";
30
- import"./index-sv4y1cma.js";
31
- import"./index-hwcra3y9.js";
28
+ import"./index-n2wjrgcs.js";
29
+ import"./index-zbhvr9st.js";
30
+ import"./index-sj29n50e.js";
31
+ import"./index-epfjc1c1.js";
32
32
  import"./index-s4bkey0q.js";
33
33
  import"./index-2s7dvzff.js";
34
- import"./index-yagqxt2p.js";
34
+ import"./index-5d224akk.js";
35
35
  import"./index-0h3cr7pn.js";
36
36
  import"./index-rtry5xyf.js";
37
- import"./index-kanxpgf8.js";
37
+ import"./index-ajm7ebyd.js";
38
38
  import"./index-frcemc0b.js";
39
39
  import"./index-wrt875kh.js";
40
- import"./index-9p1pqykb.js";
41
- import"./index-09wm3963.js";
40
+ import"./index-rb9jmj30.js";
41
+ import"./index-b567t0cr.js";
42
42
  import"./index-h59vsbch.js";
43
43
  import"./index-cvg402ha.js";
44
44
  import"./index-a11ztzs5.js";
@@ -46,7 +46,7 @@ import"./index-nzekzzs2.js";
46
46
  import"./index-ry16d01s.js";
47
47
  import"./index-rdm3px0g.js";
48
48
  import"./index-yfpswnjt.js";
49
- import"./index-ndwbb3xm.js";
49
+ import"./index-yp25bc9n.js";
50
50
  import"./index-vzm6zre7.js";
51
51
  import"./index-ae75rja9.js";
52
52
  import"./index-34bwqcea.js";
@@ -56,10 +56,10 @@ import"./index-qt0793qm.js";
56
56
  import"./index-ne9zamcs.js";
57
57
  import"./index-1xnse449.js";
58
58
  import"./index-c1ggtmpm.js";
59
- import"./index-1sz02k85.js";
59
+ import"./index-m1w40kfw.js";
60
60
  import"./index-zz7gzw57.js";
61
61
  import"./index-4ddpvd5c.js";
62
- import"./index-twtez316.js";
62
+ import"./index-9s1xzvnn.js";
63
63
  import"./index-w872yykk.js";
64
64
  import"./index-bk5tah7q.js";
65
65
  import"./index-gknz3bv1.js";
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-amf88k1e.js";
5
- import"./index-7zmbtxw1.js";
4
+ } from "./index-9fb01jk5.js";
5
+ import"./index-aqpwm350.js";
6
6
  import"./index-2s7dvzff.js";
7
7
  import"./index-h59vsbch.js";
8
8
  import"./index-yfpswnjt.js";
@@ -10,7 +10,7 @@ import"./index-qt0793qm.js";
10
10
  import"./index-ne9zamcs.js";
11
11
  import"./index-1xnse449.js";
12
12
  import"./index-c1ggtmpm.js";
13
- import"./index-twtez316.js";
13
+ import"./index-9s1xzvnn.js";
14
14
  import"./index-w872yykk.js";
15
15
  import"./index-bk5tah7q.js";
16
16
  import"./index-gknz3bv1.js";
@@ -3,43 +3,43 @@ import {
3
3
  getAgentSession,
4
4
  getBlockingActionCircuit,
5
5
  resetActionCircuitExternally
6
- } from "./index-d66zb40k.js";
7
- import"./index-zgvzbz48.js";
6
+ } from "./index-ky262b73.js";
7
+ import"./index-hamqvzqn.js";
8
8
  import"./index-pskba939.js";
9
- import"./index-7zmbtxw1.js";
9
+ import"./index-aqpwm350.js";
10
10
  import"./index-h4nh6s8b.js";
11
- import"./index-0bc8jdnv.js";
12
- import"./index-wvpsm8ja.js";
11
+ import"./index-q375xdcw.js";
12
+ import"./index-y98fvmb8.js";
13
13
  import"./index-g6nyk713.js";
14
14
  import"./index-txdagbh7.js";
15
15
  import"./index-n1tcj1q7.js";
16
16
  import"./index-6b295cas.js";
17
- import"./index-8815e95e.js";
18
- import"./index-qxk5qkfh.js";
19
- import"./index-1rwyfvq2.js";
20
- import"./index-1c1dbwze.js";
17
+ import"./index-dz12bshh.js";
18
+ import"./index-vp9pn7sv.js";
19
+ import"./index-pfg3jwe9.js";
20
+ import"./index-rdec0y3z.js";
21
21
  import"./index-6r92fw88.js";
22
22
  import"./index-549wxbe1.js";
23
23
  import"./index-zsrtt42s.js";
24
- import"./index-3hne91yd.js";
24
+ import"./index-y94vwx2q.js";
25
25
  import"./index-2b0ktpbf.js";
26
26
  import"./index-3pzwsesm.js";
27
27
  import"./index-pt7h91zc.js";
28
28
  import"./index-q7sjgr1y.js";
29
- import"./index-kmhnkn6t.js";
30
- import"./index-6tnkvqr9.js";
31
- import"./index-sv4y1cma.js";
32
- import"./index-hwcra3y9.js";
29
+ import"./index-n2wjrgcs.js";
30
+ import"./index-zbhvr9st.js";
31
+ import"./index-sj29n50e.js";
32
+ import"./index-epfjc1c1.js";
33
33
  import"./index-s4bkey0q.js";
34
34
  import"./index-2s7dvzff.js";
35
- import"./index-yagqxt2p.js";
35
+ import"./index-5d224akk.js";
36
36
  import"./index-0h3cr7pn.js";
37
37
  import"./index-rtry5xyf.js";
38
- import"./index-kanxpgf8.js";
38
+ import"./index-ajm7ebyd.js";
39
39
  import"./index-frcemc0b.js";
40
40
  import"./index-wrt875kh.js";
41
- import"./index-9p1pqykb.js";
42
- import"./index-09wm3963.js";
41
+ import"./index-rb9jmj30.js";
42
+ import"./index-b567t0cr.js";
43
43
  import"./index-h59vsbch.js";
44
44
  import"./index-cvg402ha.js";
45
45
  import"./index-a11ztzs5.js";
@@ -47,7 +47,7 @@ import"./index-nzekzzs2.js";
47
47
  import"./index-ry16d01s.js";
48
48
  import"./index-rdm3px0g.js";
49
49
  import"./index-yfpswnjt.js";
50
- import"./index-ndwbb3xm.js";
50
+ import"./index-yp25bc9n.js";
51
51
  import"./index-vzm6zre7.js";
52
52
  import"./index-ae75rja9.js";
53
53
  import"./index-34bwqcea.js";
@@ -57,10 +57,10 @@ import"./index-qt0793qm.js";
57
57
  import"./index-ne9zamcs.js";
58
58
  import"./index-1xnse449.js";
59
59
  import"./index-c1ggtmpm.js";
60
- import"./index-1sz02k85.js";
60
+ import"./index-m1w40kfw.js";
61
61
  import"./index-zz7gzw57.js";
62
62
  import"./index-4ddpvd5c.js";
63
- import"./index-twtez316.js";
63
+ import"./index-9s1xzvnn.js";
64
64
  import"./index-w872yykk.js";
65
65
  import"./index-bk5tah7q.js";
66
66
  import"./index-gknz3bv1.js";
@@ -7,43 +7,43 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-d66zb40k.js";
11
- import"./index-zgvzbz48.js";
10
+ } from "./index-ky262b73.js";
11
+ import"./index-hamqvzqn.js";
12
12
  import"./index-pskba939.js";
13
- import"./index-7zmbtxw1.js";
13
+ import"./index-aqpwm350.js";
14
14
  import"./index-h4nh6s8b.js";
15
- import"./index-0bc8jdnv.js";
16
- import"./index-wvpsm8ja.js";
15
+ import"./index-q375xdcw.js";
16
+ import"./index-y98fvmb8.js";
17
17
  import"./index-g6nyk713.js";
18
18
  import"./index-txdagbh7.js";
19
19
  import"./index-n1tcj1q7.js";
20
20
  import"./index-6b295cas.js";
21
- import"./index-8815e95e.js";
22
- import"./index-qxk5qkfh.js";
23
- import"./index-1rwyfvq2.js";
24
- import"./index-1c1dbwze.js";
21
+ import"./index-dz12bshh.js";
22
+ import"./index-vp9pn7sv.js";
23
+ import"./index-pfg3jwe9.js";
24
+ import"./index-rdec0y3z.js";
25
25
  import"./index-6r92fw88.js";
26
26
  import"./index-549wxbe1.js";
27
27
  import"./index-zsrtt42s.js";
28
- import"./index-3hne91yd.js";
28
+ import"./index-y94vwx2q.js";
29
29
  import"./index-2b0ktpbf.js";
30
30
  import"./index-3pzwsesm.js";
31
31
  import"./index-pt7h91zc.js";
32
32
  import"./index-q7sjgr1y.js";
33
- import"./index-kmhnkn6t.js";
34
- import"./index-6tnkvqr9.js";
35
- import"./index-sv4y1cma.js";
36
- import"./index-hwcra3y9.js";
33
+ import"./index-n2wjrgcs.js";
34
+ import"./index-zbhvr9st.js";
35
+ import"./index-sj29n50e.js";
36
+ import"./index-epfjc1c1.js";
37
37
  import"./index-s4bkey0q.js";
38
38
  import"./index-2s7dvzff.js";
39
- import"./index-yagqxt2p.js";
39
+ import"./index-5d224akk.js";
40
40
  import"./index-0h3cr7pn.js";
41
41
  import"./index-rtry5xyf.js";
42
- import"./index-kanxpgf8.js";
42
+ import"./index-ajm7ebyd.js";
43
43
  import"./index-frcemc0b.js";
44
44
  import"./index-wrt875kh.js";
45
- import"./index-9p1pqykb.js";
46
- import"./index-09wm3963.js";
45
+ import"./index-rb9jmj30.js";
46
+ import"./index-b567t0cr.js";
47
47
  import"./index-h59vsbch.js";
48
48
  import"./index-cvg402ha.js";
49
49
  import"./index-a11ztzs5.js";
@@ -53,7 +53,7 @@ import"./index-rdm3px0g.js";
53
53
  import"./index-yfpswnjt.js";
54
54
  import {
55
55
  resolveHiveKnowledgePath
56
- } from "./index-ndwbb3xm.js";
56
+ } from "./index-yp25bc9n.js";
57
57
  import"./index-vzm6zre7.js";
58
58
  import"./index-ae75rja9.js";
59
59
  import"./index-34bwqcea.js";
@@ -63,10 +63,10 @@ import"./index-qt0793qm.js";
63
63
  import"./index-ne9zamcs.js";
64
64
  import"./index-1xnse449.js";
65
65
  import"./index-c1ggtmpm.js";
66
- import"./index-1sz02k85.js";
66
+ import"./index-m1w40kfw.js";
67
67
  import"./index-zz7gzw57.js";
68
68
  import"./index-4ddpvd5c.js";
69
- import"./index-twtez316.js";
69
+ import"./index-9s1xzvnn.js";
70
70
  import"./index-w872yykk.js";
71
71
  import"./index-bk5tah7q.js";
72
72
  import"./index-gknz3bv1.js";
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-ndwbb3xm.js";
12
+ } from "./index-yp25bc9n.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-34bwqcea.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-kanxpgf8.js";
5
+ } from "./index-ajm7ebyd.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -44,7 +44,7 @@ import {
44
44
  loadPluginConfigWithMeta,
45
45
  loadPluginConfigWithMetaAsync,
46
46
  resetConfigAdvisoryDedup
47
- } from "./index-1sz02k85.js";
47
+ } from "./index-m1w40kfw.js";
48
48
  import"./index-zz7gzw57.js";
49
49
  import"./index-4ddpvd5c.js";
50
50
  import {
@@ -71,7 +71,7 @@ import {
71
71
  TurboConfigSchema,
72
72
  WorktreeIsolationConfigSchema,
73
73
  resolveAutoReviewConfig
74
- } from "./index-twtez316.js";
74
+ } from "./index-9s1xzvnn.js";
75
75
  import {
76
76
  ALL_AGENT_NAMES,
77
77
  ALL_SUBAGENT_NAMES,
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-7zmbtxw1.js";
7
+ } from "./index-aqpwm350.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.179.0",
24
+ version: "7.179.1",
25
25
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
26
26
  main: "dist/index.js",
27
27
  types: "dist/index.d.ts",
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-1sz02k85.js";
5
+ } from "./index-m1w40kfw.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-twtez316.js";
8
+ } from "./index-9s1xzvnn.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  init_schema,
10
10
  stripKnownSwarmPrefix
11
- } from "./index-twtez316.js";
11
+ } from "./index-9s1xzvnn.js";
12
12
  import {
13
13
  init_constants
14
14
  } from "./index-w872yykk.js";
@@ -23,11 +23,11 @@ import {
23
23
  init_loader,
24
24
  loadPluginConfig,
25
25
  normalizeCurrentPhaseInPlace
26
- } from "./index-1sz02k85.js";
26
+ } from "./index-m1w40kfw.js";
27
27
  import {
28
28
  init_package,
29
29
  package_default
30
- } from "./index-twtez316.js";
30
+ } from "./index-9s1xzvnn.js";
31
31
  import {
32
32
  criticalWarn,
33
33
  init_logger,
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-hwcra3y9.js";
8
+ } from "./index-epfjc1c1.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-yagqxt2p.js";
12
+ } from "./index-5d224akk.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-ndwbb3xm.js";
19
+ } from "./index-yp25bc9n.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap
@@ -26,11 +26,11 @@ import {
26
26
  } from "./index-1xnse449.js";
27
27
  import {
28
28
  loadPluginConfigWithMeta
29
- } from "./index-1sz02k85.js";
29
+ } from "./index-m1w40kfw.js";
30
30
  import {
31
31
  KnowledgeConfigSchema,
32
32
  init_schema
33
- } from "./index-twtez316.js";
33
+ } from "./index-9s1xzvnn.js";
34
34
  import {
35
35
  init_logger,
36
36
  warn
@@ -2813,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2813
2813
  }
2814
2814
  let bumps = 0;
2815
2815
  if (deltas.length > 0) {
2816
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-36zemyqa.js");
2816
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-1fphg9sa.js");
2817
2817
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2818
2818
  }
2819
2819
  return {
@@ -14739,26 +14739,82 @@ var PROFILE_ID = "go";
14739
14739
  var IMPORT_REGEX_SINGLE = /^\s*import\s+(?:[a-zA-Z_.][a-zA-Z0-9_]*\s+)?"([^"]+)"/gm;
14740
14740
  var IMPORT_REGEX_GROUP = /^\s*import\s*\(([\s\S]*?)\)/gm;
14741
14741
  var IMPORT_REGEX_GROUP_LINE = /(?:[a-zA-Z_.][a-zA-Z0-9_]*\s+)?"([^"]+)"/g;
14742
- function stripGoComments(block) {
14743
- const withoutBlockComments = block.replace(/\/\*[\s\S]*?\*\//g, " ");
14744
- return withoutBlockComments.split(`
14745
- `).map((line) => {
14746
- const idx = line.indexOf("//");
14747
- return idx === -1 ? line : line.slice(0, idx);
14748
- }).join(`
14749
- `);
14742
+ var MAX_IMPORT_SOURCE_BYTES = 1 * 1024 * 1024;
14743
+ function stripGoComments(source) {
14744
+ let state = "normal";
14745
+ let out = "";
14746
+ let escaped = false;
14747
+ for (let index = 0;index < source.length; index++) {
14748
+ const current = source[index];
14749
+ const next = source[index + 1];
14750
+ if (state === "line") {
14751
+ if (current === `
14752
+ ` || current === "\r") {
14753
+ state = "normal";
14754
+ out += current;
14755
+ } else {
14756
+ out += " ";
14757
+ }
14758
+ continue;
14759
+ }
14760
+ if (state === "block") {
14761
+ if (current === "*" && next === "/") {
14762
+ out += " ";
14763
+ index++;
14764
+ state = "normal";
14765
+ } else {
14766
+ out += current === `
14767
+ ` || current === "\r" ? current : " ";
14768
+ }
14769
+ continue;
14770
+ }
14771
+ if (state === "string") {
14772
+ out += current;
14773
+ if (escaped)
14774
+ escaped = false;
14775
+ else if (current === "\\")
14776
+ escaped = true;
14777
+ else if (current === '"')
14778
+ state = "normal";
14779
+ continue;
14780
+ }
14781
+ if (state === "raw") {
14782
+ out += current;
14783
+ if (current === "`")
14784
+ state = "normal";
14785
+ continue;
14786
+ }
14787
+ if (current === "/" && next === "/") {
14788
+ out += " ";
14789
+ index++;
14790
+ state = "line";
14791
+ } else if (current === "/" && next === "*") {
14792
+ out += " ";
14793
+ index++;
14794
+ state = "block";
14795
+ } else {
14796
+ out += current;
14797
+ if (current === '"')
14798
+ state = "string";
14799
+ else if (current === "`")
14800
+ state = "raw";
14801
+ }
14802
+ }
14803
+ return out;
14750
14804
  }
14751
14805
  function extractImports(_sourceFile, source) {
14806
+ if (Buffer.byteLength(source, "utf8") > MAX_IMPORT_SOURCE_BYTES)
14807
+ return [];
14752
14808
  const out = new Set;
14753
- const cleaned = stripGoComments(source);
14809
+ const uncommented = stripGoComments(source);
14754
14810
  IMPORT_REGEX_SINGLE.lastIndex = 0;
14755
- let m = IMPORT_REGEX_SINGLE.exec(cleaned);
14811
+ let m = IMPORT_REGEX_SINGLE.exec(uncommented);
14756
14812
  while (m !== null) {
14757
14813
  out.add(m[1]);
14758
- m = IMPORT_REGEX_SINGLE.exec(cleaned);
14814
+ m = IMPORT_REGEX_SINGLE.exec(uncommented);
14759
14815
  }
14760
14816
  IMPORT_REGEX_GROUP.lastIndex = 0;
14761
- m = IMPORT_REGEX_GROUP.exec(cleaned);
14817
+ m = IMPORT_REGEX_GROUP.exec(uncommented);
14762
14818
  while (m !== null) {
14763
14819
  const block = m[1];
14764
14820
  IMPORT_REGEX_GROUP_LINE.lastIndex = 0;
@@ -14767,7 +14823,7 @@ function extractImports(_sourceFile, source) {
14767
14823
  out.add(inner[1]);
14768
14824
  inner = IMPORT_REGEX_GROUP_LINE.exec(block);
14769
14825
  }
14770
- m = IMPORT_REGEX_GROUP.exec(cleaned);
14826
+ m = IMPORT_REGEX_GROUP.exec(uncommented);
14771
14827
  }
14772
14828
  return [...out];
14773
14829
  }