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.
- package/dist/background/pr-monitor-worker.d.ts +14 -13
- package/dist/cli/{config-doctor-yqwm2tfh.js → config-doctor-j1x63x87.js} +2 -2
- package/dist/cli/{core-d6yd2jzv.js → core-fvqp2gnn.js} +1 -1
- package/dist/cli/{curation-policy-x5m4x34n.js → curation-policy-xg9zw0ep.js} +6 -6
- package/dist/cli/{curator-llm-factory-24mjnh2y.js → curator-llm-factory-4mat6cq5.js} +23 -23
- package/dist/cli/{curator-thrwgwh1.js → curator-yc06cmnz.js} +23 -23
- package/dist/cli/{evidence-summary-service-pay9409b.js → evidence-summary-service-0cczdmjv.js} +6 -6
- package/dist/cli/{gate-evidence-b5v1xvxp.js → gate-evidence-8zrwdj69.js} +4 -4
- package/dist/cli/{guardrail-explain-nmfq71cm.js → guardrail-explain-zmbxwh3s.js} +24 -24
- package/dist/cli/{guardrail-log-2a61rz1w.js → guardrail-log-7egxrxap.js} +3 -3
- package/dist/cli/{hive-promoter-2nkjjwgc.js → hive-promoter-7s3gzajy.js} +23 -23
- package/dist/cli/{index-5nybajn9.js → index-09b9zncg.js} +1 -1
- package/dist/cli/{index-tsmjmhnk.js → index-337r9pkr.js} +2 -2
- package/dist/cli/{index-2t1n9k7b.js → index-44zgqvqh.js} +1 -1
- package/dist/cli/{index-8wktghbc.js → index-4yv2rn8q.js} +1 -1
- package/dist/cli/{index-yaptf0hg.js → index-6kmmdtdp.js} +2 -2
- package/dist/cli/{index-q2rrv0cy.js → index-7a2hm51h.js} +57 -2
- package/dist/cli/{index-y3v1404y.js → index-7an2qn0s.js} +1 -1
- package/dist/cli/{index-mgr951p8.js → index-86wdrskb.js} +5 -5
- package/dist/cli/{index-txwm0fv4.js → index-96b78s7p.js} +25 -25
- package/dist/cli/{index-q3m6bpx2.js → index-997d6p42.js} +4 -4
- package/dist/cli/{index-1mq8kmp6.js → index-a4972t0f.js} +3 -3
- package/dist/cli/{index-wk1h5ec2.js → index-b7p0mp2q.js} +2 -2
- package/dist/cli/{index-6kfqz0jw.js → index-crw4n55v.js} +1289 -1124
- package/dist/cli/{index-2b7sv71f.js → index-ctvnb76s.js} +1 -1
- package/dist/cli/{index-ddxt327j.js → index-e8w62fgs.js} +1 -1
- package/dist/cli/{index-8fhg2nt2.js → index-ens0gt38.js} +5 -5
- package/dist/cli/{index-y3rj2jgb.js → index-g0raqavt.js} +2 -2
- package/dist/cli/{index-yqvh2s4w.js → index-grxkbbc5.js} +1 -1
- package/dist/cli/{index-rjngxx7q.js → index-nrvs08pr.js} +6 -6
- package/dist/cli/{index-p8hezdtz.js → index-ny93srnd.js} +1 -1
- package/dist/cli/{index-reesz606.js → index-q9mq5tv3.js} +2 -2
- package/dist/cli/{index-5f403c30.js → index-vf6e8ame.js} +2 -2
- package/dist/cli/{index-4p02dp92.js → index-wxyxf0bd.js} +2 -2
- package/dist/cli/{index-6wya5cqh.js → index-x88w0cp5.js} +3 -3
- package/dist/cli/{index-dd7ttx8x.js → index-xg9repnx.js} +1 -1
- package/dist/cli/{index-cfkvc5q9.js → index-yhba8swx.js} +1 -1
- package/dist/cli/{index-1j3682j8.js → index-z085b4ka.js} +1 -1
- package/dist/cli/index.js +23 -23
- package/dist/cli/{knowledge-escalator-fqsavryx.js → knowledge-escalator-d76a090n.js} +7 -7
- package/dist/cli/{knowledge-events-ykt8vrvj.js → knowledge-events-3mcg1a0e.js} +5 -5
- package/dist/cli/{knowledge-link-nc4y2zkq.js → knowledge-link-etrfntkd.js} +4 -4
- package/dist/cli/{knowledge-store-tpd98m39.js → knowledge-store-xtt4sede.js} +5 -5
- package/dist/cli/{knowledge-validator-kc7fnt2r.js → knowledge-validator-h1k7ymtd.js} +8 -8
- package/dist/cli/{pending-delegations-v9e40hfk.js → pending-delegations-4z3tkkct.js} +3 -3
- package/dist/cli/{pr-subscriptions-ztq40hrt.js → pr-subscriptions-29j794kd.js} +3 -3
- package/dist/cli/{scan-cursor-121b73j0.js → scan-cursor-stztfv7d.js} +6 -6
- package/dist/cli/{schema-jb4p8ja9.js → schema-tbq2srrh.js} +1 -1
- package/dist/cli/{scope-persistence-hz3zmmsv.js → scope-persistence-7wydjzx8.js} +4 -4
- package/dist/cli/{skill-generator-m2g5mdva.js → skill-generator-02q1qdf0.js} +9 -9
- package/dist/cli/{telemetry-qh78ymq4.js → telemetry-859khp82.js} +9 -1
- package/dist/cli/{worktree-collision-ownership-c4bdnjtx.js → worktree-collision-ownership-dtwr0xj4.js} +3 -3
- package/dist/commands/context-map-stats.d.ts +5 -0
- package/dist/commands/registry.d.ts +14 -0
- package/dist/index.js +180 -178
- package/dist/services/status-service.d.ts +12 -2
- package/dist/telemetry.d.ts +5 -0
- 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-
|
|
16
|
-
import"./index-
|
|
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";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
authorizeCuration,
|
|
5
5
|
buildConfigFingerprintInput,
|
|
6
6
|
readCohortConfigFingerprint
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-g0raqavt.js";
|
|
8
8
|
import"./index-rtry5xyf.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-x88w0cp5.js";
|
|
10
10
|
import"./index-ae75rja9.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-yhba8swx.js";
|
|
12
|
+
import"./index-xg9repnx.js";
|
|
13
13
|
import"./index-fsrp8wp3.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-09b9zncg.js";
|
|
15
15
|
import"./index-7g4c7s5r.js";
|
|
16
|
-
import"./index-
|
|
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-
|
|
4
|
+
} from "./index-crw4n55v.js";
|
|
5
5
|
import"./index-13xxjfhn.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
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-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
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-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
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-
|
|
23
|
-
import"./index-
|
|
22
|
+
import"./index-nrvs08pr.js";
|
|
23
|
+
import"./index-x88w0cp5.js";
|
|
24
24
|
import"./index-ae75rja9.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
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-
|
|
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-
|
|
35
|
-
import"./index-
|
|
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-
|
|
39
|
+
import"./index-44zgqvqh.js";
|
|
40
40
|
import"./index-4rhhvd1a.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-7an2qn0s.js";
|
|
42
42
|
import"./index-2ghkk9ve.js";
|
|
43
43
|
import"./index-fsrp8wp3.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-09b9zncg.js";
|
|
45
45
|
import"./index-7g4c7s5r.js";
|
|
46
|
-
import"./index-
|
|
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-
|
|
17
|
+
} from "./index-crw4n55v.js";
|
|
18
18
|
import"./index-13xxjfhn.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
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-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
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-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
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-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-nrvs08pr.js";
|
|
36
|
+
import"./index-x88w0cp5.js";
|
|
37
37
|
import"./index-ae75rja9.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
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-
|
|
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-
|
|
48
|
-
import"./index-
|
|
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-
|
|
52
|
+
import"./index-44zgqvqh.js";
|
|
53
53
|
import"./index-4rhhvd1a.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-7an2qn0s.js";
|
|
55
55
|
import"./index-2ghkk9ve.js";
|
|
56
56
|
import"./index-fsrp8wp3.js";
|
|
57
|
-
import"./index-
|
|
57
|
+
import"./index-09b9zncg.js";
|
|
58
58
|
import"./index-7g4c7s5r.js";
|
|
59
|
-
import"./index-
|
|
59
|
+
import"./index-7a2hm51h.js";
|
|
60
60
|
import"./index-bpmtbmy9.js";
|
|
61
61
|
import"./index-z6xqpmqg.js";
|
|
62
62
|
import"./index-zjygnfay.js";
|
package/dist/cli/{evidence-summary-service-pay9409b.js → evidence-summary-service-0cczdmjv.js}
RENAMED
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-ens0gt38.js";
|
|
10
10
|
import"./index-9ss2m4rs.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
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-
|
|
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-
|
|
22
|
+
import"./index-09b9zncg.js";
|
|
23
23
|
import"./index-7g4c7s5r.js";
|
|
24
|
-
import"./index-
|
|
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-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-b7p0mp2q.js";
|
|
13
|
+
import"./index-xg9repnx.js";
|
|
14
14
|
import"./index-fsrp8wp3.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-09b9zncg.js";
|
|
16
16
|
import"./index-7g4c7s5r.js";
|
|
17
|
-
import"./index-
|
|
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-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-6kmmdtdp.js";
|
|
5
|
+
import"./index-crw4n55v.js";
|
|
6
6
|
import"./index-13xxjfhn.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
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-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
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-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
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-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-nrvs08pr.js";
|
|
24
|
+
import"./index-x88w0cp5.js";
|
|
25
25
|
import"./index-ae75rja9.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
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-
|
|
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-
|
|
36
|
-
import"./index-
|
|
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-
|
|
40
|
+
import"./index-44zgqvqh.js";
|
|
41
41
|
import"./index-4rhhvd1a.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-7an2qn0s.js";
|
|
43
43
|
import"./index-2ghkk9ve.js";
|
|
44
44
|
import"./index-fsrp8wp3.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-09b9zncg.js";
|
|
46
46
|
import"./index-7g4c7s5r.js";
|
|
47
|
-
import"./index-
|
|
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-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
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-
|
|
10
|
+
} from "./index-crw4n55v.js";
|
|
11
11
|
import"./index-13xxjfhn.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
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-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
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-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
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-
|
|
31
|
-
import"./index-
|
|
30
|
+
} from "./index-nrvs08pr.js";
|
|
31
|
+
import"./index-x88w0cp5.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
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-
|
|
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-
|
|
43
|
-
import"./index-
|
|
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-
|
|
47
|
+
import"./index-44zgqvqh.js";
|
|
48
48
|
import"./index-4rhhvd1a.js";
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-7an2qn0s.js";
|
|
50
50
|
import"./index-2ghkk9ve.js";
|
|
51
51
|
import"./index-fsrp8wp3.js";
|
|
52
|
-
import"./index-
|
|
52
|
+
import"./index-09b9zncg.js";
|
|
53
53
|
import"./index-7g4c7s5r.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-7a2hm51h.js";
|
|
55
55
|
import"./index-bpmtbmy9.js";
|
|
56
56
|
import"./index-z6xqpmqg.js";
|
|
57
57
|
import"./index-zjygnfay.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.
|
|
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-
|
|
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) => {
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
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-
|
|
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 = {
|
|
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 };
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-nrvs08pr.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
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-
|
|
193
|
+
const { quarantineEntry } = await import("./knowledge-validator-h1k7ymtd.js");
|
|
194
194
|
let policyConfig;
|
|
195
195
|
try {
|
|
196
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
197
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
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 {
|