opencode-swarm 7.186.0 → 7.186.2

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 (98) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +3 -3
  2. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +19 -1
  3. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  4. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  5. package/dist/background/pr-review-trigger-contract.d.ts +8 -0
  6. package/dist/cli/{auto-checkpoint-wd99h2bt.js → auto-checkpoint-c7ykm2vt.js} +8 -8
  7. package/dist/cli/{checkpoint-kjzwsxw2.js → checkpoint-jafvsq23.js} +16 -16
  8. package/dist/cli/{coder-settlement-kp3ph56n.js → coder-settlement-n00djebn.js} +12 -12
  9. package/dist/cli/{config-doctor-28ggsms8.js → config-doctor-17yft6hp.js} +2 -2
  10. package/dist/cli/{core-pj2fz34e.js → core-trk38w53.js} +3 -3
  11. package/dist/cli/{curation-policy-ytzwb080.js → curation-policy-1zdsb3h0.js} +6 -6
  12. package/dist/cli/{curator-drift-q84jn9cc.js → curator-drift-b6cjgsq3.js} +8 -8
  13. package/dist/cli/curator-llm-factory-a1hy89ea.js +81 -0
  14. package/dist/cli/{curator-r0jfc7xw.js → curator-yvp2e7tk.js} +41 -41
  15. package/dist/cli/{evidence-summary-service-rsectw2t.js → evidence-summary-service-9vh0t896.js} +19 -19
  16. package/dist/cli/{gate-evidence-mpwhcm2s.js → gate-evidence-tbjsm6r8.js} +7 -7
  17. package/dist/cli/guardrail-explain-a16eabym.js +82 -0
  18. package/dist/cli/{guardrail-log-r8zmh4rd.js → guardrail-log-4kj5e7da.js} +7 -7
  19. package/dist/cli/{guardrail-reset-11cvwgbe.js → guardrail-reset-fstvd42q.js} +41 -41
  20. package/dist/cli/{hive-promoter-0vg8w79a.js → hive-promoter-68prvn82.js} +41 -41
  21. package/dist/cli/{index-w6w6ny06.js → index-1f7mkb7p.js} +58 -58
  22. package/dist/cli/{index-j972ags2.js → index-1m3502g5.js} +7 -7
  23. package/dist/cli/{index-m94gfe82.js → index-27yspj61.js} +7 -7
  24. package/dist/cli/{index-vk3ngryj.js → index-3h80xyek.js} +5 -5
  25. package/dist/cli/{index-7xt5m1cz.js → index-3w0v6n9x.js} +5 -5
  26. package/dist/cli/{index-6sffjy74.js → index-4tpwp24b.js} +2 -2
  27. package/dist/cli/{index-nxjm66qb.js → index-52s3tsmj.js} +2 -2
  28. package/dist/cli/{index-p9m1nhds.js → index-5cybjkj0.js} +3 -3
  29. package/dist/cli/{index-qyjyd3ej.js → index-5qbm61fh.js} +1 -1
  30. package/dist/cli/{index-s68z4a39.js → index-5z1xrkaa.js} +2 -2
  31. package/dist/cli/{index-hvmfa7m8.js → index-70m4cxys.js} +3 -3
  32. package/dist/cli/{index-zxck9sr7.js → index-8ehsv9yw.js} +1 -1
  33. package/dist/cli/{index-wmazt588.js → index-8n2emawn.js} +2 -2
  34. package/dist/cli/{index-jxd67x6z.js → index-8r96zar7.js} +1 -1
  35. package/dist/cli/{index-8nsjefpc.js → index-98hksf1k.js} +1 -1
  36. package/dist/cli/{index-p6bvzgp2.js → index-a07nc99k.js} +3 -3
  37. package/dist/cli/{index-bgpq7wn2.js → index-b58k1wy8.js} +220 -143
  38. package/dist/cli/{index-xgdypzch.js → index-cbpggzdm.js} +2 -2
  39. package/dist/cli/{index-kv3n7g8w.js → index-d7kz64yr.js} +2 -2
  40. package/dist/cli/{index-5pa0e0k3.js → index-f2mtzrsr.js} +4 -4
  41. package/dist/cli/{index-4dwhfbed.js → index-fxvthwwk.js} +43 -43
  42. package/dist/cli/{index-d7mcdyqb.js → index-g23nwtfq.js} +2 -2
  43. package/dist/cli/{index-yj7etak0.js → index-g319bdeh.js} +2 -2
  44. package/dist/cli/{index-amamkcpy.js → index-g7rp7200.js} +5 -5
  45. package/dist/cli/{index-nen885g8.js → index-gvch83kc.js} +1 -1
  46. package/dist/cli/{index-62akgg9d.js → index-h8pb617g.js} +2 -2
  47. package/dist/cli/{index-6ndc8cmn.js → index-hdeqj1k4.js} +1 -1
  48. package/dist/cli/{index-afmyp3kt.js → index-j2m9q6w1.js} +1 -1
  49. package/dist/cli/{index-a6h5arqs.js → index-js4spqjf.js} +4 -4
  50. package/dist/cli/{index-151bdyf9.js → index-k3gz8b6j.js} +7 -7
  51. package/dist/cli/{index-373880cv.js → index-kbcx6rqh.js} +2 -2
  52. package/dist/cli/{index-74yxwf8y.js → index-mdxqv3r9.js} +1 -1
  53. package/dist/cli/{index-9y6cyc7z.js → index-mqc6phah.js} +4 -4
  54. package/dist/cli/{index-a1tpq5zr.js → index-msejg9hk.js} +1 -1
  55. package/dist/cli/{index-bajvxmnb.js → index-n8aep8en.js} +5 -5
  56. package/dist/cli/{index-fp4hxcsy.js → index-nq6evkky.js} +4 -4
  57. package/dist/cli/{index-22f1ek6k.js → index-pppczpa6.js} +41 -41
  58. package/dist/cli/{index-9g61bfj9.js → index-q4vf9k47.js} +1 -1
  59. package/dist/cli/{index-w2b8qq6d.js → index-qd5pnbz9.js} +8 -8
  60. package/dist/cli/{index-wkv1qdb0.js → index-s5ek7jdr.js} +11 -11
  61. package/dist/cli/{index-1fc5aj26.js → index-sqksezk4.js} +1 -1
  62. package/dist/cli/{index-9th8npp7.js → index-tnt9dnvm.js} +7 -7
  63. package/dist/cli/{index-6bfcsczm.js → index-w3fyzw3s.js} +1 -1
  64. package/dist/cli/{index-4fd28s8v.js → index-y8prb5a1.js} +3 -3
  65. package/dist/cli/{index-6cjpmvpa.js → index-y9wsfekf.js} +1 -1
  66. package/dist/cli/{index-vqz0avr4.js → index-zyx7p0kb.js} +2 -2
  67. package/dist/cli/index.js +42 -42
  68. package/dist/cli/{knowledge-escalator-7xcd0zea.js → knowledge-escalator-7xdvw9qy.js} +13 -13
  69. package/dist/cli/{knowledge-events-e4ts8y2v.js → knowledge-events-hp5yr9dm.js} +11 -11
  70. package/dist/cli/{knowledge-link-dv78fb9g.js → knowledge-link-5jhded41.js} +5 -5
  71. package/dist/cli/{knowledge-store-mmeqmjwj.js → knowledge-store-7erepd4t.js} +6 -6
  72. package/dist/cli/{knowledge-validator-w2ttgxyj.js → knowledge-validator-ejdh74qq.js} +8 -8
  73. package/dist/cli/{mcp-5dmm4fk2.js → mcp-msrbe1bx.js} +1 -1
  74. package/dist/cli/{model-preflight-kap3zp3g.js → model-preflight-gsesc142.js} +41 -41
  75. package/dist/cli/{pending-delegations-q3sj608s.js → pending-delegations-97pcsaak.js} +12 -12
  76. package/dist/cli/{pr-subscriptions-qw4wjv66.js → pr-subscriptions-p0dm693y.js} +12 -12
  77. package/dist/cli/{pr-workflow-gate-tdj50p2g.js → pr-workflow-gate-y122hbd1.js} +43 -41
  78. package/dist/cli/{runner-tb3eppeg.js → runner-fbmancth.js} +6 -6
  79. package/dist/cli/{scan-cursor-fgecb928.js → scan-cursor-yp2kvnjz.js} +7 -7
  80. package/dist/cli/{schema-zrcgm9d9.js → schema-0jatfw66.js} +1 -1
  81. package/dist/cli/{scope-persistence-08xd3kyb.js → scope-persistence-hqw7br2s.js} +15 -15
  82. package/dist/cli/{server-kng2nggc.js → server-kyqq4pan.js} +41 -41
  83. package/dist/cli/{skill-generator-dztn1ctf.js → skill-generator-0hbmdy2p.js} +15 -15
  84. package/dist/cli/{snapshot-coordination-init-5q0hac3d.js → snapshot-coordination-init-akt1wad4.js} +41 -41
  85. package/dist/cli/{speckit-checkoff-hhsy83m9.js → speckit-checkoff-rnfy30qb.js} +4 -4
  86. package/dist/cli/{telemetry-n6y2sjhg.js → telemetry-3bjvjbcp.js} +1 -1
  87. package/dist/cli/{workspace-snapshot-kcfkk3a2.js → workspace-snapshot-hcgztg7w.js} +3 -3
  88. package/dist/cli/{worktree-collision-ownership-e2cqcmnw.js → worktree-collision-ownership-q4604rmc.js} +13 -13
  89. package/dist/cli/{worktree-isolation-refd2n16.js → worktree-isolation-5bafpzf9.js} +41 -41
  90. package/dist/hooks/pr-workflow-gate.d.ts +67 -0
  91. package/dist/index.d.ts +21 -0
  92. package/dist/index.js +17 -17
  93. package/dist/review/evidence.d.ts +8 -4
  94. package/dist/services/cost-accounting.d.ts +21 -12
  95. package/dist/tools/write-pr-review-trigger-eval.d.ts +2 -1
  96. package/package.json +1 -1
  97. package/dist/cli/curator-llm-factory-13h02244.js +0 -81
  98. package/dist/cli/guardrail-explain-njv3pnsw.js +0 -82
@@ -61,10 +61,14 @@ export interface AutoReviewEvidence {
61
61
  model_calls: number;
62
62
  diff_bytes: number;
63
63
  prompt_bytes: number;
64
- tokens_input: number;
65
- tokens_output: number;
66
- tokens_reasoning: number;
67
- tokens_cache: number;
64
+ /**
65
+ * #2789: null when no dispatch held a known value for the axis —
66
+ * unknown is never folded to zero.
67
+ */
68
+ tokens_input: number | null;
69
+ tokens_output: number | null;
70
+ tokens_reasoning: number | null;
71
+ tokens_cache: number | null;
68
72
  cost_usd: number | null;
69
73
  cost_source: 'reported' | 'estimated' | 'unavailable';
70
74
  /** Bounded per-dispatch provenance; scalar totals remain compatibility projections. */
@@ -46,10 +46,15 @@ export type PricingConfig = {
46
46
  subscription_unbilled?: boolean;
47
47
  };
48
48
  export type TokenUsage = {
49
- tokens_input: number;
50
- tokens_output: number;
51
- tokens_reasoning: number;
52
- tokens_cache: number;
49
+ /**
50
+ * #2789: each axis is `number | null`. `null` means the producer did not
51
+ * hold the value (unknown); a numeric value — including an explicit 0 —
52
+ * is a KNOWN measurement. Zero is never fabricated for an absent axis.
53
+ */
54
+ tokens_input: number | null;
55
+ tokens_output: number | null;
56
+ tokens_reasoning: number | null;
57
+ tokens_cache: number | null;
53
58
  };
54
59
  export type DelegationCostFields = TokenUsage & {
55
60
  cost_usd: number | null;
@@ -81,12 +86,15 @@ export type CostSummary = {
81
86
  total_cost_usd: number;
82
87
  total_reported_usd: number;
83
88
  total_estimated_usd: number;
84
- total_input_tokens: number;
85
- total_output_tokens: number;
86
- total_reasoning_tokens: number;
87
- total_cache_tokens: number;
89
+ /** #2789: null when no delegation contributed a known value for the axis. */
90
+ total_input_tokens: number | null;
91
+ total_output_tokens: number | null;
92
+ total_reasoning_tokens: number | null;
93
+ total_cache_tokens: number | null;
88
94
  delegations: number;
89
95
  unavailable_delegations: number;
96
+ /** #2789: delegations whose token axes were all unknown (no known axis). */
97
+ unknown_usage_delegations: number;
90
98
  by_agent: CostSummaryRow[];
91
99
  by_task: CostSummaryRow[];
92
100
  by_gate: CostSummaryRow[];
@@ -110,10 +118,11 @@ export type CostSummaryRow = {
110
118
  name: string;
111
119
  delegations: number;
112
120
  cost_usd: number;
113
- input_tokens: number;
114
- output_tokens: number;
115
- reasoning_tokens: number;
116
- cache_tokens: number;
121
+ /** #2789: null when no delegation in this row held a known value. */
122
+ input_tokens: number | null;
123
+ output_tokens: number | null;
124
+ reasoning_tokens: number | null;
125
+ cache_tokens: number | null;
117
126
  unavailable_delegations: number;
118
127
  };
119
128
  export declare const BUNDLED_MODEL_PRICING: Record<string, ModelPricing>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { findByBatchIdDetailed } from '../background/pending-delegations.js';
3
3
  import { resolveExactMergeBase, resolveExactMergeBaseAsync, resolvePrWorkflowRevisionDigest, resolvePrWorkflowRevisionDigestAsync } from '../background/workspace-snapshot.js';
4
- import { markPrReviewTriggerEvaluationComplete } from '../hooks/pr-workflow-gate.js';
4
+ import { markPrReviewTriggerEvaluationComplete, readPrWorkflowGateState } from '../hooks/pr-workflow-gate.js';
5
5
  import { createSwarmTool } from './create-tool';
6
6
  export { PR_REVIEW_TRIGGER_DEFINITIONS } from '../background/pr-review-trigger-contract.js';
7
7
  export declare const _internals: {
@@ -11,6 +11,7 @@ export declare const _internals: {
11
11
  resolveMergeBaseAsync: typeof resolveExactMergeBaseAsync;
12
12
  markPrReviewTriggerEvaluationComplete: typeof markPrReviewTriggerEvaluationComplete;
13
13
  findByBatchIdDetailed: typeof findByBatchIdDetailed;
14
+ readPrWorkflowGateState: typeof readPrWorkflowGateState;
14
15
  };
15
16
  declare const WritePrReviewTriggerEvalArgsSchema: z.ZodObject<{
16
17
  run_id: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.186.0",
3
+ "version": "7.186.2",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,81 +0,0 @@
1
- // @bun
2
- import {
3
- createCuratorLLMDelegate
4
- } from "./index-bgpq7wn2.js";
5
- import"./index-4fd28s8v.js";
6
- import"./index-jxd67x6z.js";
7
- import"./index-amamkcpy.js";
8
- import"./index-7bxssqaf.js";
9
- import"./index-1fc5aj26.js";
10
- import"./index-62akgg9d.js";
11
- import"./index-txdagbh7.js";
12
- import"./index-wmazt588.js";
13
- import"./index-rdec0y3z.js";
14
- import"./index-hvmfa7m8.js";
15
- import"./index-151bdyf9.js";
16
- import"./index-9y6cyc7z.js";
17
- import"./index-7xt5m1cz.js";
18
- import"./index-s68z4a39.js";
19
- import"./index-j972ags2.js";
20
- import"./index-cjapb4hy.js";
21
- import"./index-vqz0avr4.js";
22
- import"./index-pt7h91zc.js";
23
- import"./index-q7sjgr1y.js";
24
- import"./index-a6h5arqs.js";
25
- import"./index-wkv1qdb0.js";
26
- import"./index-6b295cas.js";
27
- import"./index-9nyqt3kb.js";
28
- import"./index-6ndc8cmn.js";
29
- import"./index-zsrtt42s.js";
30
- import"./index-kv3n7g8w.js";
31
- import"./index-fp4hxcsy.js";
32
- import"./index-p9m1nhds.js";
33
- import"./index-g4fs6z4e.js";
34
- import"./index-9th8npp7.js";
35
- import"./index-w2b8qq6d.js";
36
- import"./index-afmyp3kt.js";
37
- import"./index-2s7dvzff.js";
38
- import"./index-5pa0e0k3.js";
39
- import"./index-8nsjefpc.js";
40
- import"./index-rtry5xyf.js";
41
- import"./index-d7mcdyqb.js";
42
- import"./index-frcemc0b.js";
43
- import"./index-0725jpp7.js";
44
- import"./index-vk3ngryj.js";
45
- import"./index-bajvxmnb.js";
46
- import"./index-373880cv.js";
47
- import"./index-9g61bfj9.js";
48
- import"./index-nen885g8.js";
49
- import"./index-74yxwf8y.js";
50
- import"./index-ry16d01s.js";
51
- import"./index-rdm3px0g.js";
52
- import"./index-7pmbnjvj.js";
53
- import"./index-xgdypzch.js";
54
- import"./index-m94gfe82.js";
55
- import"./index-vzm6zre7.js";
56
- import"./index-ae75rja9.js";
57
- import"./index-zxck9sr7.js";
58
- import"./index-6sffjy74.js";
59
- import"./index-6cjpmvpa.js";
60
- import"./index-t7hmqgjy.js";
61
- import"./index-w6w6ny06.js";
62
- import"./index-mc72pk74.js";
63
- import"./index-c1ggtmpm.js";
64
- import"./index-ejhxgyvm.js";
65
- import"./index-7g4c7s5r.js";
66
- import"./index-yj7etak0.js";
67
- import"./index-gx2vp8gx.js";
68
- import"./index-a1tpq5zr.js";
69
- import"./index-zxdawwc7.js";
70
- import"./index-qyjyd3ej.js";
71
- import"./index-48jvqqfa.js";
72
- import"./index-bk5tah7q.js";
73
- import"./index-gknz3bv1.js";
74
- import"./index-zpsr8rpc.js";
75
- import"./index-wvghb3x6.js";
76
- import"./index-9rwhas09.js";
77
- import"./index-zgwm4ryv.js";
78
- import"./index-a76rekgs.js";
79
- export {
80
- createCuratorLLMDelegate
81
- };
@@ -1,82 +0,0 @@
1
- // @bun
2
- import {
3
- handleGuardrailExplain
4
- } from "./index-nxjm66qb.js";
5
- import"./index-bgpq7wn2.js";
6
- import"./index-4fd28s8v.js";
7
- import"./index-jxd67x6z.js";
8
- import"./index-amamkcpy.js";
9
- import"./index-7bxssqaf.js";
10
- import"./index-1fc5aj26.js";
11
- import"./index-62akgg9d.js";
12
- import"./index-txdagbh7.js";
13
- import"./index-wmazt588.js";
14
- import"./index-rdec0y3z.js";
15
- import"./index-hvmfa7m8.js";
16
- import"./index-151bdyf9.js";
17
- import"./index-9y6cyc7z.js";
18
- import"./index-7xt5m1cz.js";
19
- import"./index-s68z4a39.js";
20
- import"./index-j972ags2.js";
21
- import"./index-cjapb4hy.js";
22
- import"./index-vqz0avr4.js";
23
- import"./index-pt7h91zc.js";
24
- import"./index-q7sjgr1y.js";
25
- import"./index-a6h5arqs.js";
26
- import"./index-wkv1qdb0.js";
27
- import"./index-6b295cas.js";
28
- import"./index-9nyqt3kb.js";
29
- import"./index-6ndc8cmn.js";
30
- import"./index-zsrtt42s.js";
31
- import"./index-kv3n7g8w.js";
32
- import"./index-fp4hxcsy.js";
33
- import"./index-p9m1nhds.js";
34
- import"./index-g4fs6z4e.js";
35
- import"./index-9th8npp7.js";
36
- import"./index-w2b8qq6d.js";
37
- import"./index-afmyp3kt.js";
38
- import"./index-2s7dvzff.js";
39
- import"./index-5pa0e0k3.js";
40
- import"./index-8nsjefpc.js";
41
- import"./index-rtry5xyf.js";
42
- import"./index-d7mcdyqb.js";
43
- import"./index-frcemc0b.js";
44
- import"./index-0725jpp7.js";
45
- import"./index-vk3ngryj.js";
46
- import"./index-bajvxmnb.js";
47
- import"./index-373880cv.js";
48
- import"./index-9g61bfj9.js";
49
- import"./index-nen885g8.js";
50
- import"./index-74yxwf8y.js";
51
- import"./index-ry16d01s.js";
52
- import"./index-rdm3px0g.js";
53
- import"./index-7pmbnjvj.js";
54
- import"./index-xgdypzch.js";
55
- import"./index-m94gfe82.js";
56
- import"./index-vzm6zre7.js";
57
- import"./index-ae75rja9.js";
58
- import"./index-zxck9sr7.js";
59
- import"./index-6sffjy74.js";
60
- import"./index-6cjpmvpa.js";
61
- import"./index-t7hmqgjy.js";
62
- import"./index-w6w6ny06.js";
63
- import"./index-mc72pk74.js";
64
- import"./index-c1ggtmpm.js";
65
- import"./index-ejhxgyvm.js";
66
- import"./index-7g4c7s5r.js";
67
- import"./index-yj7etak0.js";
68
- import"./index-gx2vp8gx.js";
69
- import"./index-a1tpq5zr.js";
70
- import"./index-zxdawwc7.js";
71
- import"./index-qyjyd3ej.js";
72
- import"./index-48jvqqfa.js";
73
- import"./index-bk5tah7q.js";
74
- import"./index-gknz3bv1.js";
75
- import"./index-zpsr8rpc.js";
76
- import"./index-wvghb3x6.js";
77
- import"./index-9rwhas09.js";
78
- import"./index-zgwm4ryv.js";
79
- import"./index-a76rekgs.js";
80
- export {
81
- handleGuardrailExplain
82
- };