opencode-swarm 7.134.3 → 7.135.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.
Files changed (58) hide show
  1. package/dist/background/pr-monitor-worker.d.ts +14 -13
  2. package/dist/cli/{config-doctor-yqwm2tfh.js → config-doctor-j1x63x87.js} +2 -2
  3. package/dist/cli/{core-d6yd2jzv.js → core-fvqp2gnn.js} +1 -1
  4. package/dist/cli/{curation-policy-x5m4x34n.js → curation-policy-xg9zw0ep.js} +6 -6
  5. package/dist/cli/{curator-llm-factory-24mjnh2y.js → curator-llm-factory-4mat6cq5.js} +23 -23
  6. package/dist/cli/{curator-thrwgwh1.js → curator-yc06cmnz.js} +23 -23
  7. package/dist/cli/{evidence-summary-service-pay9409b.js → evidence-summary-service-0cczdmjv.js} +6 -6
  8. package/dist/cli/{gate-evidence-b5v1xvxp.js → gate-evidence-8zrwdj69.js} +4 -4
  9. package/dist/cli/{guardrail-explain-nmfq71cm.js → guardrail-explain-zmbxwh3s.js} +24 -24
  10. package/dist/cli/{guardrail-log-2a61rz1w.js → guardrail-log-7egxrxap.js} +3 -3
  11. package/dist/cli/{hive-promoter-2nkjjwgc.js → hive-promoter-7s3gzajy.js} +23 -23
  12. package/dist/cli/{index-5nybajn9.js → index-09b9zncg.js} +1 -1
  13. package/dist/cli/{index-tsmjmhnk.js → index-337r9pkr.js} +2 -2
  14. package/dist/cli/{index-2t1n9k7b.js → index-44zgqvqh.js} +1 -1
  15. package/dist/cli/{index-8wktghbc.js → index-4yv2rn8q.js} +1 -1
  16. package/dist/cli/{index-yaptf0hg.js → index-6kmmdtdp.js} +2 -2
  17. package/dist/cli/{index-q2rrv0cy.js → index-7a2hm51h.js} +57 -2
  18. package/dist/cli/{index-y3v1404y.js → index-7an2qn0s.js} +1 -1
  19. package/dist/cli/{index-mgr951p8.js → index-86wdrskb.js} +5 -5
  20. package/dist/cli/{index-txwm0fv4.js → index-96b78s7p.js} +25 -25
  21. package/dist/cli/{index-q3m6bpx2.js → index-997d6p42.js} +4 -4
  22. package/dist/cli/{index-1mq8kmp6.js → index-a4972t0f.js} +3 -3
  23. package/dist/cli/{index-wk1h5ec2.js → index-b7p0mp2q.js} +2 -2
  24. package/dist/cli/{index-6kfqz0jw.js → index-crw4n55v.js} +1289 -1124
  25. package/dist/cli/{index-2b7sv71f.js → index-ctvnb76s.js} +1 -1
  26. package/dist/cli/{index-ddxt327j.js → index-e8w62fgs.js} +1 -1
  27. package/dist/cli/{index-8fhg2nt2.js → index-ens0gt38.js} +5 -5
  28. package/dist/cli/{index-y3rj2jgb.js → index-g0raqavt.js} +2 -2
  29. package/dist/cli/{index-yqvh2s4w.js → index-grxkbbc5.js} +1 -1
  30. package/dist/cli/{index-rjngxx7q.js → index-nrvs08pr.js} +6 -6
  31. package/dist/cli/{index-p8hezdtz.js → index-ny93srnd.js} +1 -1
  32. package/dist/cli/{index-reesz606.js → index-q9mq5tv3.js} +2 -2
  33. package/dist/cli/{index-5f403c30.js → index-vf6e8ame.js} +2 -2
  34. package/dist/cli/{index-4p02dp92.js → index-wxyxf0bd.js} +2 -2
  35. package/dist/cli/{index-6wya5cqh.js → index-x88w0cp5.js} +3 -3
  36. package/dist/cli/{index-dd7ttx8x.js → index-xg9repnx.js} +1 -1
  37. package/dist/cli/{index-cfkvc5q9.js → index-yhba8swx.js} +1 -1
  38. package/dist/cli/{index-1j3682j8.js → index-z085b4ka.js} +1 -1
  39. package/dist/cli/index.js +23 -23
  40. package/dist/cli/{knowledge-escalator-fqsavryx.js → knowledge-escalator-d76a090n.js} +7 -7
  41. package/dist/cli/{knowledge-events-ykt8vrvj.js → knowledge-events-3mcg1a0e.js} +5 -5
  42. package/dist/cli/{knowledge-link-nc4y2zkq.js → knowledge-link-etrfntkd.js} +4 -4
  43. package/dist/cli/{knowledge-store-tpd98m39.js → knowledge-store-xtt4sede.js} +5 -5
  44. package/dist/cli/{knowledge-validator-kc7fnt2r.js → knowledge-validator-h1k7ymtd.js} +8 -8
  45. package/dist/cli/{pending-delegations-v9e40hfk.js → pending-delegations-4z3tkkct.js} +3 -3
  46. package/dist/cli/{pr-subscriptions-ztq40hrt.js → pr-subscriptions-29j794kd.js} +3 -3
  47. package/dist/cli/{scan-cursor-121b73j0.js → scan-cursor-stztfv7d.js} +6 -6
  48. package/dist/cli/{schema-jb4p8ja9.js → schema-tbq2srrh.js} +1 -1
  49. package/dist/cli/{scope-persistence-hz3zmmsv.js → scope-persistence-7wydjzx8.js} +4 -4
  50. package/dist/cli/{skill-generator-m2g5mdva.js → skill-generator-02q1qdf0.js} +9 -9
  51. package/dist/cli/{telemetry-qh78ymq4.js → telemetry-859khp82.js} +9 -1
  52. package/dist/cli/{worktree-collision-ownership-c4bdnjtx.js → worktree-collision-ownership-dtwr0xj4.js} +3 -3
  53. package/dist/commands/context-map-stats.d.ts +5 -0
  54. package/dist/commands/registry.d.ts +14 -0
  55. package/dist/index.js +180 -178
  56. package/dist/services/status-service.d.ts +12 -2
  57. package/dist/telemetry.d.ts +5 -0
  58. package/package.json +1 -1
@@ -28,6 +28,20 @@ export interface AutomationEvent<T = unknown> {
28
28
  payload: T;
29
29
  source: string;
30
30
  }
31
+ /**
32
+ * Determine whether to skip polling a PR based on idle backoff (issue #1691).
33
+ *
34
+ * After N consecutive no-change polls, skip cycles deterministically:
35
+ * idle 0-2: poll every cycle (no skip)
36
+ * idle 3-5: poll every 2nd cycle (50% reduction)
37
+ * idle 6+: poll every 3rd cycle (67% reduction) — 3× cap per General Council
38
+ *
39
+ * Uses pollCycleCount for deterministic scheduling (no random skips).
40
+ * Any detected change resets the counter to 0.
41
+ *
42
+ * Pure function — exported for direct unit testing without worker setup.
43
+ */
44
+ export declare function shouldSkipIdlePoll(idleCount: number, cycleNumber: number): boolean;
31
45
  /**
32
46
  * PR Monitor Worker.
33
47
  *
@@ -134,19 +148,6 @@ export declare class PrMonitorWorker {
134
148
  * circuit-breaker suspension with exponential backoff.
135
149
  */
136
150
  private handlePollError;
137
- /**
138
- * Determine whether to skip polling a PR based on idle backoff (issue #1691).
139
- *
140
- * After N consecutive no-change polls, skip cycles deterministically:
141
- * idle 0-2: poll every cycle (no skip)
142
- * idle 3-5: poll every 2nd cycle (50% reduction)
143
- * idle 6-9: poll every 3rd cycle (67% reduction)
144
- * idle 10+: poll every 5th cycle (80% reduction)
145
- *
146
- * Uses pollCycleCount for deterministic scheduling (no random skips).
147
- * Any detected change resets the counter to 0.
148
- */
149
- private shouldSkipIdlePoll;
150
151
  /**
151
152
  * Publish an event to the global event bus and optional callback.
152
153
  */
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-2b7sv71f.js";
16
- import"./index-tsmjmhnk.js";
15
+ } from "./index-ctvnb76s.js";
16
+ import"./index-337r9pkr.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-bpmtbmy9.js";
19
19
  import"./index-z6xqpmqg.js";
@@ -14,7 +14,7 @@ import {
14
14
  resolveWorktreeBaseDir,
15
15
  shortenWorktreePath,
16
16
  writeLaneProfileToDiskReal
17
- } from "./index-2t1n9k7b.js";
17
+ } from "./index-44zgqvqh.js";
18
18
  import"./index-4rhhvd1a.js";
19
19
  import"./index-z6xqpmqg.js";
20
20
  import"./index-zjygnfay.js";
@@ -4,16 +4,16 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-y3rj2jgb.js";
7
+ } from "./index-g0raqavt.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-6wya5cqh.js";
9
+ import"./index-x88w0cp5.js";
10
10
  import"./index-ae75rja9.js";
11
- import"./index-cfkvc5q9.js";
12
- import"./index-dd7ttx8x.js";
11
+ import"./index-yhba8swx.js";
12
+ import"./index-xg9repnx.js";
13
13
  import"./index-fsrp8wp3.js";
14
- import"./index-5nybajn9.js";
14
+ import"./index-09b9zncg.js";
15
15
  import"./index-7g4c7s5r.js";
16
- import"./index-q2rrv0cy.js";
16
+ import"./index-7a2hm51h.js";
17
17
  import"./index-qe3v54nb.js";
18
18
  import"./index-zgwm4ryv.js";
19
19
  import"./index-a76rekgs.js";
@@ -1,49 +1,49 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-6kfqz0jw.js";
4
+ } from "./index-crw4n55v.js";
5
5
  import"./index-13xxjfhn.js";
6
- import"./index-yqvh2s4w.js";
7
- import"./index-2b7sv71f.js";
8
- import"./index-8fhg2nt2.js";
6
+ import"./index-grxkbbc5.js";
7
+ import"./index-ctvnb76s.js";
8
+ import"./index-ens0gt38.js";
9
9
  import"./index-4905hd2m.js";
10
10
  import"./index-134d35c1.js";
11
- import"./index-1mq8kmp6.js";
12
- import"./index-mgr951p8.js";
13
- import"./index-5f403c30.js";
11
+ import"./index-a4972t0f.js";
12
+ import"./index-86wdrskb.js";
13
+ import"./index-vf6e8ame.js";
14
14
  import"./index-vxv732ex.js";
15
15
  import"./index-c8s9a3zh.js";
16
16
  import"./index-9ss2m4rs.js";
17
- import"./index-wk1h5ec2.js";
18
- import"./index-1j3682j8.js";
19
- import"./index-q3m6bpx2.js";
20
- import"./index-y3rj2jgb.js";
17
+ import"./index-b7p0mp2q.js";
18
+ import"./index-z085b4ka.js";
19
+ import"./index-997d6p42.js";
20
+ import"./index-g0raqavt.js";
21
21
  import"./index-rtry5xyf.js";
22
- import"./index-rjngxx7q.js";
23
- import"./index-6wya5cqh.js";
22
+ import"./index-nrvs08pr.js";
23
+ import"./index-x88w0cp5.js";
24
24
  import"./index-ae75rja9.js";
25
- import"./index-cfkvc5q9.js";
26
- import"./index-dd7ttx8x.js";
27
- import"./index-ddxt327j.js";
25
+ import"./index-yhba8swx.js";
26
+ import"./index-xg9repnx.js";
27
+ import"./index-e8w62fgs.js";
28
28
  import"./index-k5jrywpr.js";
29
29
  import"./index-n832052r.js";
30
- import"./index-tsmjmhnk.js";
30
+ import"./index-337r9pkr.js";
31
31
  import"./index-bk5tah7q.js";
32
32
  import"./index-8fwhhayc.js";
33
33
  import"./index-q1exe2b3.js";
34
- import"./index-p8hezdtz.js";
35
- import"./index-4p02dp92.js";
34
+ import"./index-ny93srnd.js";
35
+ import"./index-wxyxf0bd.js";
36
36
  import"./index-1kz6da87.js";
37
37
  import"./index-b4z7s917.js";
38
38
  import"./index-b8zgtz81.js";
39
- import"./index-2t1n9k7b.js";
39
+ import"./index-44zgqvqh.js";
40
40
  import"./index-4rhhvd1a.js";
41
- import"./index-y3v1404y.js";
41
+ import"./index-7an2qn0s.js";
42
42
  import"./index-2ghkk9ve.js";
43
43
  import"./index-fsrp8wp3.js";
44
- import"./index-5nybajn9.js";
44
+ import"./index-09b9zncg.js";
45
45
  import"./index-7g4c7s5r.js";
46
- import"./index-q2rrv0cy.js";
46
+ import"./index-7a2hm51h.js";
47
47
  import"./index-bpmtbmy9.js";
48
48
  import"./index-z6xqpmqg.js";
49
49
  import"./index-zjygnfay.js";
@@ -14,49 +14,49 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-6kfqz0jw.js";
17
+ } from "./index-crw4n55v.js";
18
18
  import"./index-13xxjfhn.js";
19
- import"./index-yqvh2s4w.js";
20
- import"./index-2b7sv71f.js";
21
- import"./index-8fhg2nt2.js";
19
+ import"./index-grxkbbc5.js";
20
+ import"./index-ctvnb76s.js";
21
+ import"./index-ens0gt38.js";
22
22
  import"./index-4905hd2m.js";
23
23
  import"./index-134d35c1.js";
24
- import"./index-1mq8kmp6.js";
25
- import"./index-mgr951p8.js";
26
- import"./index-5f403c30.js";
24
+ import"./index-a4972t0f.js";
25
+ import"./index-86wdrskb.js";
26
+ import"./index-vf6e8ame.js";
27
27
  import"./index-vxv732ex.js";
28
28
  import"./index-c8s9a3zh.js";
29
29
  import"./index-9ss2m4rs.js";
30
- import"./index-wk1h5ec2.js";
31
- import"./index-1j3682j8.js";
32
- import"./index-q3m6bpx2.js";
33
- import"./index-y3rj2jgb.js";
30
+ import"./index-b7p0mp2q.js";
31
+ import"./index-z085b4ka.js";
32
+ import"./index-997d6p42.js";
33
+ import"./index-g0raqavt.js";
34
34
  import"./index-rtry5xyf.js";
35
- import"./index-rjngxx7q.js";
36
- import"./index-6wya5cqh.js";
35
+ import"./index-nrvs08pr.js";
36
+ import"./index-x88w0cp5.js";
37
37
  import"./index-ae75rja9.js";
38
- import"./index-cfkvc5q9.js";
39
- import"./index-dd7ttx8x.js";
40
- import"./index-ddxt327j.js";
38
+ import"./index-yhba8swx.js";
39
+ import"./index-xg9repnx.js";
40
+ import"./index-e8w62fgs.js";
41
41
  import"./index-k5jrywpr.js";
42
42
  import"./index-n832052r.js";
43
- import"./index-tsmjmhnk.js";
43
+ import"./index-337r9pkr.js";
44
44
  import"./index-bk5tah7q.js";
45
45
  import"./index-8fwhhayc.js";
46
46
  import"./index-q1exe2b3.js";
47
- import"./index-p8hezdtz.js";
48
- import"./index-4p02dp92.js";
47
+ import"./index-ny93srnd.js";
48
+ import"./index-wxyxf0bd.js";
49
49
  import"./index-1kz6da87.js";
50
50
  import"./index-b4z7s917.js";
51
51
  import"./index-b8zgtz81.js";
52
- import"./index-2t1n9k7b.js";
52
+ import"./index-44zgqvqh.js";
53
53
  import"./index-4rhhvd1a.js";
54
- import"./index-y3v1404y.js";
54
+ import"./index-7an2qn0s.js";
55
55
  import"./index-2ghkk9ve.js";
56
56
  import"./index-fsrp8wp3.js";
57
- import"./index-5nybajn9.js";
57
+ import"./index-09b9zncg.js";
58
58
  import"./index-7g4c7s5r.js";
59
- import"./index-q2rrv0cy.js";
59
+ import"./index-7a2hm51h.js";
60
60
  import"./index-bpmtbmy9.js";
61
61
  import"./index-z6xqpmqg.js";
62
62
  import"./index-zjygnfay.js";
@@ -6,22 +6,22 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-8fhg2nt2.js";
9
+ } from "./index-ens0gt38.js";
10
10
  import"./index-9ss2m4rs.js";
11
- import"./index-wk1h5ec2.js";
12
- import"./index-dd7ttx8x.js";
11
+ import"./index-b7p0mp2q.js";
12
+ import"./index-xg9repnx.js";
13
13
  import"./index-k5jrywpr.js";
14
14
  import"./index-n832052r.js";
15
15
  import"./index-q1exe2b3.js";
16
- import"./index-4p02dp92.js";
16
+ import"./index-wxyxf0bd.js";
17
17
  import"./index-1kz6da87.js";
18
18
  import"./index-b8zgtz81.js";
19
19
  import"./index-4rhhvd1a.js";
20
20
  import"./index-2ghkk9ve.js";
21
21
  import"./index-fsrp8wp3.js";
22
- import"./index-5nybajn9.js";
22
+ import"./index-09b9zncg.js";
23
23
  import"./index-7g4c7s5r.js";
24
- import"./index-q2rrv0cy.js";
24
+ import"./index-7a2hm51h.js";
25
25
  import"./index-bpmtbmy9.js";
26
26
  import"./index-z6xqpmqg.js";
27
27
  import"./index-zjygnfay.js";
@@ -9,12 +9,12 @@ import {
9
9
  readTaskEvidenceRaw,
10
10
  recordAgentDispatch,
11
11
  recordGateEvidence
12
- } from "./index-wk1h5ec2.js";
13
- import"./index-dd7ttx8x.js";
12
+ } from "./index-b7p0mp2q.js";
13
+ import"./index-xg9repnx.js";
14
14
  import"./index-fsrp8wp3.js";
15
- import"./index-5nybajn9.js";
15
+ import"./index-09b9zncg.js";
16
16
  import"./index-7g4c7s5r.js";
17
- import"./index-q2rrv0cy.js";
17
+ import"./index-7a2hm51h.js";
18
18
  import"./index-bpmtbmy9.js";
19
19
  import"./index-qe3v54nb.js";
20
20
  import"./index-a76rekgs.js";
@@ -1,50 +1,50 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-yaptf0hg.js";
5
- import"./index-6kfqz0jw.js";
4
+ } from "./index-6kmmdtdp.js";
5
+ import"./index-crw4n55v.js";
6
6
  import"./index-13xxjfhn.js";
7
- import"./index-yqvh2s4w.js";
8
- import"./index-2b7sv71f.js";
9
- import"./index-8fhg2nt2.js";
7
+ import"./index-grxkbbc5.js";
8
+ import"./index-ctvnb76s.js";
9
+ import"./index-ens0gt38.js";
10
10
  import"./index-4905hd2m.js";
11
11
  import"./index-134d35c1.js";
12
- import"./index-1mq8kmp6.js";
13
- import"./index-mgr951p8.js";
14
- import"./index-5f403c30.js";
12
+ import"./index-a4972t0f.js";
13
+ import"./index-86wdrskb.js";
14
+ import"./index-vf6e8ame.js";
15
15
  import"./index-vxv732ex.js";
16
16
  import"./index-c8s9a3zh.js";
17
17
  import"./index-9ss2m4rs.js";
18
- import"./index-wk1h5ec2.js";
19
- import"./index-1j3682j8.js";
20
- import"./index-q3m6bpx2.js";
21
- import"./index-y3rj2jgb.js";
18
+ import"./index-b7p0mp2q.js";
19
+ import"./index-z085b4ka.js";
20
+ import"./index-997d6p42.js";
21
+ import"./index-g0raqavt.js";
22
22
  import"./index-rtry5xyf.js";
23
- import"./index-rjngxx7q.js";
24
- import"./index-6wya5cqh.js";
23
+ import"./index-nrvs08pr.js";
24
+ import"./index-x88w0cp5.js";
25
25
  import"./index-ae75rja9.js";
26
- import"./index-cfkvc5q9.js";
27
- import"./index-dd7ttx8x.js";
28
- import"./index-ddxt327j.js";
26
+ import"./index-yhba8swx.js";
27
+ import"./index-xg9repnx.js";
28
+ import"./index-e8w62fgs.js";
29
29
  import"./index-k5jrywpr.js";
30
30
  import"./index-n832052r.js";
31
- import"./index-tsmjmhnk.js";
31
+ import"./index-337r9pkr.js";
32
32
  import"./index-bk5tah7q.js";
33
33
  import"./index-8fwhhayc.js";
34
34
  import"./index-q1exe2b3.js";
35
- import"./index-p8hezdtz.js";
36
- import"./index-4p02dp92.js";
35
+ import"./index-ny93srnd.js";
36
+ import"./index-wxyxf0bd.js";
37
37
  import"./index-1kz6da87.js";
38
38
  import"./index-b4z7s917.js";
39
39
  import"./index-b8zgtz81.js";
40
- import"./index-2t1n9k7b.js";
40
+ import"./index-44zgqvqh.js";
41
41
  import"./index-4rhhvd1a.js";
42
- import"./index-y3v1404y.js";
42
+ import"./index-7an2qn0s.js";
43
43
  import"./index-2ghkk9ve.js";
44
44
  import"./index-fsrp8wp3.js";
45
- import"./index-5nybajn9.js";
45
+ import"./index-09b9zncg.js";
46
46
  import"./index-7g4c7s5r.js";
47
- import"./index-q2rrv0cy.js";
47
+ import"./index-7a2hm51h.js";
48
48
  import"./index-bpmtbmy9.js";
49
49
  import"./index-z6xqpmqg.js";
50
50
  import"./index-zjygnfay.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-8wktghbc.js";
5
- import"./index-yqvh2s4w.js";
6
- import"./index-tsmjmhnk.js";
4
+ } from "./index-4yv2rn8q.js";
5
+ import"./index-grxkbbc5.js";
6
+ import"./index-337r9pkr.js";
7
7
  import"./index-bk5tah7q.js";
8
8
  import"./index-bpmtbmy9.js";
9
9
  import"./index-z6xqpmqg.js";
@@ -7,51 +7,51 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-6kfqz0jw.js";
10
+ } from "./index-crw4n55v.js";
11
11
  import"./index-13xxjfhn.js";
12
- import"./index-yqvh2s4w.js";
13
- import"./index-2b7sv71f.js";
14
- import"./index-8fhg2nt2.js";
12
+ import"./index-grxkbbc5.js";
13
+ import"./index-ctvnb76s.js";
14
+ import"./index-ens0gt38.js";
15
15
  import"./index-4905hd2m.js";
16
16
  import"./index-134d35c1.js";
17
- import"./index-1mq8kmp6.js";
18
- import"./index-mgr951p8.js";
19
- import"./index-5f403c30.js";
17
+ import"./index-a4972t0f.js";
18
+ import"./index-86wdrskb.js";
19
+ import"./index-vf6e8ame.js";
20
20
  import"./index-vxv732ex.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
- import"./index-wk1h5ec2.js";
24
- import"./index-1j3682j8.js";
25
- import"./index-q3m6bpx2.js";
26
- import"./index-y3rj2jgb.js";
23
+ import"./index-b7p0mp2q.js";
24
+ import"./index-z085b4ka.js";
25
+ import"./index-997d6p42.js";
26
+ import"./index-g0raqavt.js";
27
27
  import"./index-rtry5xyf.js";
28
28
  import {
29
29
  resolveHiveKnowledgePath
30
- } from "./index-rjngxx7q.js";
31
- import"./index-6wya5cqh.js";
30
+ } from "./index-nrvs08pr.js";
31
+ import"./index-x88w0cp5.js";
32
32
  import"./index-ae75rja9.js";
33
- import"./index-cfkvc5q9.js";
34
- import"./index-dd7ttx8x.js";
35
- import"./index-ddxt327j.js";
33
+ import"./index-yhba8swx.js";
34
+ import"./index-xg9repnx.js";
35
+ import"./index-e8w62fgs.js";
36
36
  import"./index-k5jrywpr.js";
37
37
  import"./index-n832052r.js";
38
- import"./index-tsmjmhnk.js";
38
+ import"./index-337r9pkr.js";
39
39
  import"./index-bk5tah7q.js";
40
40
  import"./index-8fwhhayc.js";
41
41
  import"./index-q1exe2b3.js";
42
- import"./index-p8hezdtz.js";
43
- import"./index-4p02dp92.js";
42
+ import"./index-ny93srnd.js";
43
+ import"./index-wxyxf0bd.js";
44
44
  import"./index-1kz6da87.js";
45
45
  import"./index-b4z7s917.js";
46
46
  import"./index-b8zgtz81.js";
47
- import"./index-2t1n9k7b.js";
47
+ import"./index-44zgqvqh.js";
48
48
  import"./index-4rhhvd1a.js";
49
- import"./index-y3v1404y.js";
49
+ import"./index-7an2qn0s.js";
50
50
  import"./index-2ghkk9ve.js";
51
51
  import"./index-fsrp8wp3.js";
52
- import"./index-5nybajn9.js";
52
+ import"./index-09b9zncg.js";
53
53
  import"./index-7g4c7s5r.js";
54
- import"./index-q2rrv0cy.js";
54
+ import"./index-7a2hm51h.js";
55
55
  import"./index-bpmtbmy9.js";
56
56
  import"./index-z6xqpmqg.js";
57
57
  import"./index-zjygnfay.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-7g4c7s5r.js";
5
5
  import {
6
6
  emit
7
- } from "./index-q2rrv0cy.js";
7
+ } from "./index-7a2hm51h.js";
8
8
  import {
9
9
  __toESM
10
10
  } from "./index-a76rekgs.js";
@@ -19,7 +19,7 @@ var package_default;
19
19
  var init_package = __esm(() => {
20
20
  package_default = {
21
21
  name: "opencode-swarm",
22
- version: "7.134.3",
22
+ version: "7.135.0",
23
23
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
24
24
  main: "dist/index.js",
25
25
  types: "dist/index.d.ts",
@@ -1989,7 +1989,7 @@ var init_schema = __esm(() => {
1989
1989
  ]);
1990
1990
  CheckpointConfigSchema = exports_external.preprocess(rejectCheckpointPrototypePollution, exports_external.object({
1991
1991
  enabled: exports_external.boolean().default(true),
1992
- auto_checkpoint_threshold: exports_external.number().int().min(1).max(20).default(3),
1992
+ auto_checkpoint_threshold: exports_external.number().int().min(1).max(20).default(3).describe("Maximum number of checkpoints to retain. Oldest checkpoints are evicted when this limit is exceeded."),
1993
1993
  max_retention: exports_external.number().int().min(1).max(100).default(20),
1994
1994
  allow_empty_commits: exports_external.boolean().default(false)
1995
1995
  }).strict());
@@ -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-hz3zmmsv.js");
42
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-7wydjzx8.js");
43
43
  return realWrite(directory, taskId, files);
44
44
  },
45
45
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-yqvh2s4w.js";
5
+ } from "./index-grxkbbc5.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-6kfqz0jw.js";
15
+ } from "./index-crw4n55v.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-yqvh2s4w.js";
22
+ } from "./index-grxkbbc5.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -8,6 +8,55 @@ var _writeStream = null;
8
8
  var _projectDirectory = null;
9
9
  var _listeners = [];
10
10
  var _disabled = false;
11
+ var _heartbeatTrackingActive = false;
12
+ var _heartbeatListener = null;
13
+ var heartbeatTimestamps = new Map;
14
+ function capHeartbeatMap() {
15
+ while (heartbeatTimestamps.size >= 500) {
16
+ const oldestKey = heartbeatTimestamps.keys().next().value;
17
+ if (oldestKey === undefined)
18
+ break;
19
+ heartbeatTimestamps.delete(oldestKey);
20
+ }
21
+ }
22
+ function startHeartbeatTracking() {
23
+ if (_heartbeatTrackingActive)
24
+ return;
25
+ _heartbeatTrackingActive = true;
26
+ const listener = (event, data) => {
27
+ if (event !== "heartbeat")
28
+ return;
29
+ const payload = data;
30
+ if (!payload?.sessionId)
31
+ return;
32
+ heartbeatTimestamps.set(payload.sessionId, Date.now());
33
+ capHeartbeatMap();
34
+ };
35
+ _heartbeatListener = listener;
36
+ addTelemetryListener(listener);
37
+ }
38
+ function getLastHeartbeat(sessionId) {
39
+ return heartbeatTimestamps.get(sessionId);
40
+ }
41
+ function stopHeartbeatTracking() {
42
+ _heartbeatTrackingActive = false;
43
+ if (_heartbeatListener !== null) {
44
+ const idx = _listeners.indexOf(_heartbeatListener);
45
+ if (idx >= 0)
46
+ _listeners.splice(idx, 1);
47
+ _heartbeatListener = null;
48
+ }
49
+ }
50
+ function resetHeartbeatTrackingForTesting() {
51
+ _heartbeatTrackingActive = false;
52
+ heartbeatTimestamps.clear();
53
+ if (_heartbeatListener !== null) {
54
+ const idx = _listeners.indexOf(_heartbeatListener);
55
+ if (idx >= 0)
56
+ _listeners.splice(idx, 1);
57
+ _heartbeatListener = null;
58
+ }
59
+ }
11
60
  var _emitCount = 0;
12
61
  var ROTATION_CHECK_INTERVAL = 50;
13
62
  function resetTelemetryForTesting() {
@@ -15,6 +64,7 @@ function resetTelemetryForTesting() {
15
64
  _projectDirectory = null;
16
65
  _listeners.length = 0;
17
66
  _emitCount = 0;
67
+ resetHeartbeatTrackingForTesting();
18
68
  if (_writeStream !== null) {
19
69
  _writeStream.end();
20
70
  _writeStream = null;
@@ -257,6 +307,11 @@ var telemetry = {
257
307
  });
258
308
  }
259
309
  };
260
- var _internals = { telemetry, emit, rotateTelemetryIfNeeded };
310
+ var _internals = {
311
+ telemetry,
312
+ emit,
313
+ rotateTelemetryIfNeeded,
314
+ heartbeatListenerCount: () => _heartbeatListener !== null ? 1 : 0
315
+ };
261
316
 
262
- export { ROTATION_CHECK_INTERVAL, resetTelemetryForTesting, initTelemetry, emit, addTelemetryListener, rotateTelemetryIfNeeded, telemetry, _internals };
317
+ export { startHeartbeatTracking, getLastHeartbeat, stopHeartbeatTracking, resetHeartbeatTrackingForTesting, ROTATION_CHECK_INTERVAL, resetTelemetryForTesting, initTelemetry, emit, addTelemetryListener, rotateTelemetryIfNeeded, telemetry, _internals };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-2ghkk9ve.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-5nybajn9.js";
7
+ } from "./index-09b9zncg.js";
8
8
  import {
9
9
  exports_external,
10
10
  init_zod
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-rjngxx7q.js";
9
+ } from "./index-nrvs08pr.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-6wya5cqh.js";
15
+ } from "./index-x88w0cp5.js";
16
16
  import {
17
17
  init_knowledge_types,
18
18
  isActiveStatus
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
190
190
  alreadyInactive: true
191
191
  };
192
192
  }
193
- const { quarantineEntry } = await import("./knowledge-validator-kc7fnt2r.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-h1k7ymtd.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-jb4p8ja9.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-reesz606.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-tbq2srrh.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-q9mq5tv3.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {