opencode-swarm 7.135.4 → 7.135.5

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 (35) hide show
  1. package/dist/cli/{config-doctor-fgmemknc.js → config-doctor-exj26ryt.js} +2 -2
  2. package/dist/cli/{curation-policy-frs28q57.js → curation-policy-mbv3b27c.js} +2 -2
  3. package/dist/cli/{curator-psq8m2j7.js → curator-7ycd6x29.js} +12 -12
  4. package/dist/cli/{curator-llm-factory-pr59p535.js → curator-llm-factory-4d5pzh47.js} +12 -12
  5. package/dist/cli/{guardrail-explain-ws45zchy.js → guardrail-explain-2jrqv2zf.js} +13 -13
  6. package/dist/cli/{guardrail-log-gbzek1pz.js → guardrail-log-c843gxnm.js} +3 -3
  7. package/dist/cli/{hive-promoter-gdbg4nyd.js → hive-promoter-epnj14q8.js} +12 -12
  8. package/dist/cli/{index-jsp8r6f9.js → index-09w3ezq2.js} +1 -1
  9. package/dist/cli/{index-vh39nxpx.js → index-0csbx1wc.js} +1 -1
  10. package/dist/cli/{index-b34vbxmx.js → index-6yk6ezvj.js} +1 -1
  11. package/dist/cli/{index-g86vfxnk.js → index-8et4bx6j.js} +3 -3
  12. package/dist/cli/{index-66w4jjg6.js → index-9s5b8wrs.js} +35 -35
  13. package/dist/cli/{index-mysdsqtk.js → index-bx10dq60.js} +1 -1
  14. package/dist/cli/{index-ck9rx6j1.js → index-db52969t.js} +1 -1
  15. package/dist/cli/{index-cgqekdja.js → index-gvfw2y6v.js} +2 -2
  16. package/dist/cli/{index-5s1q6xcw.js → index-hw6yt4rs.js} +4 -4
  17. package/dist/cli/{index-ys04j1np.js → index-jnemjn16.js} +2 -2
  18. package/dist/cli/{index-cg413zhk.js → index-k8arazbb.js} +1 -1
  19. package/dist/cli/{index-ajehqzvn.js → index-kjg6vgqs.js} +1 -1
  20. package/dist/cli/{index-xfeg0c0c.js → index-kq9zb1cv.js} +14 -14
  21. package/dist/cli/{index-4g3nq4sh.js → index-qyn0b2jj.js} +1 -1
  22. package/dist/cli/{index-fx7bn93y.js → index-t1gszcwg.js} +2 -2
  23. package/dist/cli/{index-tegdwx34.js → index-ym516a9a.js} +5 -5
  24. package/dist/cli/index.js +12 -12
  25. package/dist/cli/{knowledge-escalator-0060q7we.js → knowledge-escalator-3tjhpwjf.js} +3 -3
  26. package/dist/cli/{knowledge-events-yh2qwa6k.js → knowledge-events-0akk3p15.js} +1 -1
  27. package/dist/cli/{knowledge-store-geqaez58.js → knowledge-store-7nvfh2n3.js} +1 -1
  28. package/dist/cli/{knowledge-validator-4zq4vm7t.js → knowledge-validator-z618vhda.js} +4 -4
  29. package/dist/cli/{scan-cursor-nk2rybhq.js → scan-cursor-5zqr3afj.js} +2 -2
  30. package/dist/cli/{schema-th3tx32c.js → schema-n1cj94m0.js} +1 -1
  31. package/dist/cli/{skill-generator-1947bbkn.js → skill-generator-560ksca8.js} +5 -5
  32. package/dist/hooks/pr-workflow-gate.d.ts +5 -5
  33. package/dist/hooks/pr-workflow-response-gate.d.ts +32 -1
  34. package/dist/index.js +8 -8
  35. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-cgqekdja.js";
4
+ } from "./index-gvfw2y6v.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-4g3nq4sh.js";
7
+ } from "./index-qyn0b2jj.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,36 +84,36 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-66w4jjg6.js";
87
+ } from "./index-9s5b8wrs.js";
88
88
  import"./index-vm4xw9z3.js";
89
- import"./index-b34vbxmx.js";
90
- import"./index-ck9rx6j1.js";
89
+ import"./index-6yk6ezvj.js";
90
+ import"./index-db52969t.js";
91
91
  import"./index-cggqh2dz.js";
92
92
  import"./index-4905hd2m.js";
93
93
  import"./index-134d35c1.js";
94
- import"./index-g86vfxnk.js";
95
- import"./index-tegdwx34.js";
96
- import"./index-vh39nxpx.js";
94
+ import"./index-8et4bx6j.js";
95
+ import"./index-ym516a9a.js";
96
+ import"./index-0csbx1wc.js";
97
97
  import"./index-6mjf4vr1.js";
98
98
  import"./index-c8s9a3zh.js";
99
99
  import"./index-9ss2m4rs.js";
100
100
  import"./index-y6a7gjtj.js";
101
101
  import"./index-mrtms113.js";
102
- import"./index-fx7bn93y.js";
103
- import"./index-jsp8r6f9.js";
102
+ import"./index-t1gszcwg.js";
103
+ import"./index-09w3ezq2.js";
104
104
  import"./index-rtry5xyf.js";
105
- import"./index-5s1q6xcw.js";
106
- import"./index-mysdsqtk.js";
105
+ import"./index-hw6yt4rs.js";
106
+ import"./index-bx10dq60.js";
107
107
  import"./index-ae75rja9.js";
108
108
  import"./index-dzyjb33e.js";
109
109
  import"./index-ey29aap6.js";
110
- import"./index-ajehqzvn.js";
110
+ import"./index-kjg6vgqs.js";
111
111
  import"./index-k5jrywpr.js";
112
112
  import"./index-n832052r.js";
113
113
  import {
114
114
  init_schema,
115
115
  stripKnownSwarmPrefix
116
- } from "./index-cg413zhk.js";
116
+ } from "./index-k8arazbb.js";
117
117
  import"./index-bk5tah7q.js";
118
118
  import"./index-8fwhhayc.js";
119
119
  import"./index-q1exe2b3.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-b34vbxmx.js";
5
+ } from "./index-6yk6ezvj.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-jsp8r6f9.js";
4
+ } from "./index-09w3ezq2.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-5s1q6xcw.js";
12
+ } from "./index-hw6yt4rs.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-dzyjb33e.js";
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-5s1q6xcw.js";
9
+ } from "./index-hw6yt4rs.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-mysdsqtk.js";
15
+ } from "./index-bx10dq60.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-4zq4vm7t.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-z618vhda.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-th3tx32c.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-ys04j1np.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-n1cj94m0.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-jnemjn16.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
package/dist/cli/index.js CHANGED
@@ -6,36 +6,36 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-66w4jjg6.js";
9
+ } from "./index-9s5b8wrs.js";
10
10
  import"./index-vm4xw9z3.js";
11
- import"./index-b34vbxmx.js";
12
- import"./index-ck9rx6j1.js";
11
+ import"./index-6yk6ezvj.js";
12
+ import"./index-db52969t.js";
13
13
  import"./index-cggqh2dz.js";
14
14
  import"./index-4905hd2m.js";
15
15
  import"./index-134d35c1.js";
16
- import"./index-g86vfxnk.js";
17
- import"./index-tegdwx34.js";
18
- import"./index-vh39nxpx.js";
16
+ import"./index-8et4bx6j.js";
17
+ import"./index-ym516a9a.js";
18
+ import"./index-0csbx1wc.js";
19
19
  import"./index-6mjf4vr1.js";
20
20
  import"./index-c8s9a3zh.js";
21
21
  import"./index-9ss2m4rs.js";
22
22
  import"./index-y6a7gjtj.js";
23
23
  import"./index-mrtms113.js";
24
- import"./index-fx7bn93y.js";
25
- import"./index-jsp8r6f9.js";
24
+ import"./index-t1gszcwg.js";
25
+ import"./index-09w3ezq2.js";
26
26
  import"./index-rtry5xyf.js";
27
- import"./index-5s1q6xcw.js";
28
- import"./index-mysdsqtk.js";
27
+ import"./index-hw6yt4rs.js";
28
+ import"./index-bx10dq60.js";
29
29
  import"./index-ae75rja9.js";
30
30
  import"./index-dzyjb33e.js";
31
31
  import"./index-ey29aap6.js";
32
- import"./index-ajehqzvn.js";
32
+ import"./index-kjg6vgqs.js";
33
33
  import"./index-k5jrywpr.js";
34
34
  import"./index-n832052r.js";
35
35
  import {
36
36
  init_package,
37
37
  package_default
38
- } from "./index-cg413zhk.js";
38
+ } from "./index-k8arazbb.js";
39
39
  import"./index-bk5tah7q.js";
40
40
  import"./index-8fwhhayc.js";
41
41
  import"./index-q1exe2b3.js";
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-tegdwx34.js";
12
- import"./index-5s1q6xcw.js";
13
- import"./index-mysdsqtk.js";
11
+ } from "./index-ym516a9a.js";
12
+ import"./index-hw6yt4rs.js";
13
+ import"./index-bx10dq60.js";
14
14
  import"./index-ae75rja9.js";
15
15
  import"./index-dzyjb33e.js";
16
16
  import"./index-ey29aap6.js";
@@ -28,7 +28,7 @@ import {
28
28
  resolveKnowledgeCounterBaselinePath,
29
29
  resolveKnowledgeEventsPath,
30
30
  resolveLegacyApplicationLogPath
31
- } from "./index-mysdsqtk.js";
31
+ } from "./index-bx10dq60.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-dzyjb33e.js";
34
34
  import"./index-ey29aap6.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-5s1q6xcw.js";
44
+ } from "./index-hw6yt4rs.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,11 +23,11 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-fx7bn93y.js";
27
- import"./index-jsp8r6f9.js";
26
+ } from "./index-t1gszcwg.js";
27
+ import"./index-09w3ezq2.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-5s1q6xcw.js";
30
- import"./index-mysdsqtk.js";
29
+ import"./index-hw6yt4rs.js";
30
+ import"./index-bx10dq60.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-dzyjb33e.js";
33
33
  import"./index-ey29aap6.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-vh39nxpx.js";
8
- import"./index-5s1q6xcw.js";
7
+ } from "./index-0csbx1wc.js";
8
+ import"./index-hw6yt4rs.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-dzyjb33e.js";
11
11
  import"./index-ey29aap6.js";
@@ -93,7 +93,7 @@ import {
93
93
  resolveGeneratedAgentRole,
94
94
  resolveGuardrailsConfig,
95
95
  stripKnownSwarmPrefix
96
- } from "./index-cg413zhk.js";
96
+ } from "./index-k8arazbb.js";
97
97
  import"./index-bk5tah7q.js";
98
98
  import"./index-3jcyn8g6.js";
99
99
  import"./index-bpmtbmy9.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-g86vfxnk.js";
37
- import"./index-fx7bn93y.js";
38
- import"./index-jsp8r6f9.js";
36
+ } from "./index-8et4bx6j.js";
37
+ import"./index-t1gszcwg.js";
38
+ import"./index-09w3ezq2.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-5s1q6xcw.js";
41
- import"./index-mysdsqtk.js";
40
+ import"./index-hw6yt4rs.js";
41
+ import"./index-bx10dq60.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-dzyjb33e.js";
44
44
  import"./index-ey29aap6.js";
@@ -30,10 +30,10 @@ export type PrReviewDepthTier = 'S' | 'M' | 'L';
30
30
  * always dispatch more lanes than a tier's floor, never fewer.
31
31
  */
32
32
  export declare const PR_REVIEW_DEPTH_TIER_THRESHOLDS: {
33
- readonly smallMaxChangedLines: 50;
34
- readonly smallMaxChangedFiles: 3;
35
- readonly mediumMaxChangedLines: 500;
36
- readonly mediumMaxChangedFiles: 20;
33
+ readonly smallMaxChangedLines: 100;
34
+ readonly smallMaxChangedFiles: 5;
35
+ readonly mediumMaxChangedLines: 1500;
36
+ readonly mediumMaxChangedFiles: 50;
37
37
  };
38
38
  /**
39
39
  * Minimum initial base-wave lane counts per depth tier. Tier L preserves the
@@ -44,7 +44,7 @@ export declare const PR_REVIEW_BASE_LANE_FLOORS: Record<PrReviewDepthTier, numbe
44
44
  /**
45
45
  * Minimum lane counts for a FULL micro (risk-family) sweep per depth tier. These
46
46
  * mirror the base floors' tier *semantics* — not their numbers — scaled to the
47
- * eleven risk families: S does not bind (a tier-S PR of ≤50 lines/≤3 files may
47
+ * eleven risk families: S does not bind (a tier-S PR of ≤100 lines/≤5 files may
48
48
  * consolidate a full sweep into one lane, exactly as base tier S permits); M
49
49
  * requires at least half the families to get independent lanes (ceil(11/2) = 6,
50
50
  * the deliberate scale-up from base M's 3 = ceil(6/2)); L requires one lane per
@@ -1,5 +1,5 @@
1
1
  import { claimPrFeedbackMonitorEvents, readPrFeedbackMonitorQueue } from '../background/pr-feedback-event-queue.js';
2
- import { readPrWorkflowGateState } from './pr-workflow-gate.js';
2
+ import { type PrReviewDepthTier, readPrWorkflowGateState } from './pr-workflow-gate.js';
3
3
  export declare const _internals: {
4
4
  readPrWorkflowGateState: typeof readPrWorkflowGateState;
5
5
  claimPrFeedbackMonitorEvents: typeof claimPrFeedbackMonitorEvents;
@@ -54,6 +54,24 @@ export declare const DEFAULT_BANNER_COOLDOWN_MS = 20000;
54
54
  * suppresses one.
55
55
  */
56
56
  export declare const MAX_FALLBACK_BANNER_INJECTIONS_PER_SESSION = 20;
57
+ /**
58
+ * Per-tier default total-wake ceilings, derived proportionally from each
59
+ * depth tier's consolidation-floor workload (base lanes + micro lanes).
60
+ *
61
+ * DERIVATION:
62
+ * Tier workloads (base + micro): S = 1+1 = 2, M = 3+6 = 9, L = 6+11 = 17
63
+ * Headroom multiplier: 6 (chosen so that L >= 100 and scales uniformly)
64
+ * Ceilings: S = 2×6 = 12, M = 9×6 = 54, L = 17×6 = 102
65
+ *
66
+ * The tier-L ceiling (102) is comfortably above the observed ~40–55 healthy
67
+ * tier-L wake count, providing generous headroom for real reviews while still
68
+ * bounding pathological loops. Tier-S is tightest because small PRs have the
69
+ * least lane work; tier-M is proportionally in between.
70
+ *
71
+ * When `totalWakeCeiling` is provided to `createPrWorkflowResponseGate`,
72
+ * it overrides these defaults.
73
+ */
74
+ export declare const DEFAULT_TOTAL_WAKE_CEILINGS: Record<PrReviewDepthTier, number>;
57
75
  /**
58
76
  * Bounded FIFO map of tracked wake budgets. Invariant 8 (session/global
59
77
  * state): module-level state must have an explicit eviction strategy. Three
@@ -71,6 +89,13 @@ interface WakeBudget {
71
89
  lastWakeAt: number;
72
90
  lastSeenRevision?: number;
73
91
  suspended: boolean;
92
+ /** Total number of wake attempts across the session lifetime. Never reset by
93
+ * revision progress — only the consecutive counter resets on progress. */
94
+ totalWakes: number;
95
+ /** Discriminator for WHY the session was suspended: 'consecutive' means
96
+ * the consecutive-unproductive budget was exhausted; 'total' means the
97
+ * absolute per-session total-wake ceiling was reached. */
98
+ suspendedReason: 'consecutive' | 'total';
74
99
  }
75
100
  /**
76
101
  * Prevent an architect from masquerading a premature text output as a terminal
@@ -99,6 +124,12 @@ export declare function createPrWorkflowResponseGate(options: {
99
124
  maxConsecutiveUnproductiveWakes?: number;
100
125
  wakeCooldownMs?: number;
101
126
  bannerCooldownMs?: number;
127
+ /** Override the per-tier default total-wake ceilings. A single number
128
+ * applies uniformly to all tiers; a partial Record allows per-tier
129
+ * overrides with unspecified tiers falling back to the defaults.
130
+ * When omitted, the context-aware defaults (DEFAULT_TOTAL_WAKE_CEILINGS)
131
+ * apply. */
132
+ totalWakeCeiling?: number | Partial<Record<PrReviewDepthTier, number>>;
102
133
  }): {
103
134
  event: (input: {
104
135
  event: unknown;