opencode-swarm 7.188.5 → 7.188.7

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 (91) hide show
  1. package/README.md +2 -2
  2. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  3. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  4. package/dist/cli/{auto-checkpoint-6z6dhqak.js → auto-checkpoint-1z9d2jrk.js} +8 -8
  5. package/dist/cli/{checkpoint-99vqentz.js → checkpoint-f8165pv4.js} +13 -13
  6. package/dist/cli/{coder-settlement-07dkrqvy.js → coder-settlement-gaby6spt.js} +9 -9
  7. package/dist/cli/{config-doctor-0pqexbab.js → config-doctor-4wgw6nak.js} +12 -12
  8. package/dist/cli/{core-zx4az38t.js → core-y89texpp.js} +2 -2
  9. package/dist/cli/{curation-policy-nxcx99yp.js → curation-policy-65ckmmd5.js} +5 -5
  10. package/dist/cli/{curator-drift-0ne6gnj0.js → curator-drift-rpwrx355.js} +6 -6
  11. package/dist/cli/{curator-llm-factory-gdedzs6k.js → curator-llm-factory-1qbcj7vs.js} +36 -36
  12. package/dist/cli/{curator-s08eqma1.js → curator-tkz65fvw.js} +36 -36
  13. package/dist/cli/{doctor-knowledge-receipt-phase-id-kpzaepq8.js → doctor-knowledge-receipt-phase-id-11q7en6t.js} +7 -7
  14. package/dist/cli/{evidence-summary-service-xadab4ym.js → evidence-summary-service-hn7vdm45.js} +16 -16
  15. package/dist/cli/{gate-evidence-c3d7ewv4.js → gate-evidence-sxh3r64f.js} +6 -6
  16. package/dist/cli/{guardrail-explain-enbr5ne9.js → guardrail-explain-e0wbeyk1.js} +37 -37
  17. package/dist/cli/{guardrail-log-0g59n4ae.js → guardrail-log-gzrj46h0.js} +7 -7
  18. package/dist/cli/{guardrail-reset-e0m3p15n.js → guardrail-reset-7z62s1j5.js} +36 -36
  19. package/dist/cli/{hive-promoter-1jb0t5g2.js → hive-promoter-88d95wk8.js} +36 -36
  20. package/dist/cli/{index-3b71hf2k.js → index-03ad14qc.js} +2 -2
  21. package/dist/cli/{index-sg2agtt5.js → index-0j5ggeem.js} +1 -1
  22. package/dist/cli/{index-j9swvmt3.js → index-1xa8wq76.js} +1 -1
  23. package/dist/cli/{index-txr48a64.js → index-2vtrjm19.js} +38 -38
  24. package/dist/cli/{index-vn8phy76.js → index-2wctq2hn.js} +1 -1
  25. package/dist/cli/{index-br33a6v7.js → index-5102w44y.js} +3 -3
  26. package/dist/cli/{index-98zfmfnn.js → index-61kszszd.js} +4 -4
  27. package/dist/cli/{index-0cdkb7e8.js → index-7eajwwfg.js} +4 -4
  28. package/dist/cli/{index-w5p9crxx.js → index-7k9hdn0b.js} +4 -4
  29. package/dist/cli/{index-03ng9y76.js → index-7zyktm9f.js} +7 -7
  30. package/dist/cli/{index-wx43mc8h.js → index-8q8783g0.js} +1 -1
  31. package/dist/cli/{index-8f0j6kf2.js → index-8sqyx5rh.js} +3 -3
  32. package/dist/cli/{index-z11watrb.js → index-8xabhfwr.js} +2 -2
  33. package/dist/cli/{index-ykaaejka.js → index-9czp2dcg.js} +3 -3
  34. package/dist/cli/{index-9qbn3chx.js → index-9tes309n.js} +1 -1
  35. package/dist/cli/{index-85npnq5t.js → index-a4s5yrdd.js} +4 -4
  36. package/dist/cli/{index-d95b3yce.js → index-c016phsk.js} +6 -6
  37. package/dist/cli/{index-4ak3ewt2.js → index-c937rpbm.js} +3 -3
  38. package/dist/cli/{index-h83221w1.js → index-d3rjvm9e.js} +3 -3
  39. package/dist/cli/{index-dd258pfn.js → index-eh0sg1pz.js} +4 -4
  40. package/dist/cli/{index-4m7cywkf.js → index-emh69vk9.js} +90 -77
  41. package/dist/cli/{index-9f7y0rym.js → index-ffmw6af9.js} +36 -36
  42. package/dist/cli/{index-cjekszvy.js → index-g39cmzpj.js} +600 -4
  43. package/dist/cli/{index-jevq7a7b.js → index-ghjg1rxe.js} +2 -2
  44. package/dist/cli/{index-5nwfz9bn.js → index-hh7pa3yk.js} +1 -1
  45. package/dist/cli/{index-jc2ndtdt.js → index-k8sarme1.js} +1 -1
  46. package/dist/cli/{index-p746x44z.js → index-kap459mr.js} +4 -4
  47. package/dist/cli/{index-bjh6cw86.js → index-m9g7s9ee.js} +4 -4
  48. package/dist/cli/{index-3jn6155r.js → index-pnfd3s7s.js} +1 -1
  49. package/dist/cli/{index-hq7mfqe5.js → index-q9kefh33.js} +1 -1
  50. package/dist/cli/{index-ar33mkxc.js → index-rw0c6qtt.js} +4 -4
  51. package/dist/cli/{index-f1wqew85.js → index-snwj9ptc.js} +2 -2
  52. package/dist/cli/{index-4zran0jk.js → index-twb3f4tk.js} +1 -1
  53. package/dist/cli/{index-dmdg2zay.js → index-wrdktgpy.js} +2 -2
  54. package/dist/cli/{index-1tgkj4mf.js → index-xj3k6x1h.js} +2 -2
  55. package/dist/cli/{index-n7vy4gb3.js → index-xsdphmet.js} +6 -6
  56. package/dist/cli/{index-vktygb4k.js → index-y3sk68m5.js} +2 -2
  57. package/dist/cli/{index-1kd2cbcz.js → index-y8z9x87e.js} +3 -3
  58. package/dist/cli/{index-fbwerevq.js → index-yj1cwps4.js} +1 -1
  59. package/dist/cli/{index-dmnvgc03.js → index-ytms8x1h.js} +4 -4
  60. package/dist/cli/{index-bstjg81q.js → index-zfbxfm2m.js} +33 -33
  61. package/dist/cli/index.js +37 -37
  62. package/dist/cli/{knowledge-escalator-c65r55bv.js → knowledge-escalator-ejfb2e7c.js} +13 -13
  63. package/dist/cli/{knowledge-events-exc94dr2.js → knowledge-events-3fzfehwy.js} +11 -11
  64. package/dist/cli/{knowledge-link-kgt3zx0c.js → knowledge-link-h4pdcnya.js} +4 -4
  65. package/dist/cli/{knowledge-store-b2qm637m.js → knowledge-store-swxk4tr6.js} +5 -5
  66. package/dist/cli/{knowledge-validator-44pn1xrn.js → knowledge-validator-0a1at9gm.js} +7 -7
  67. package/dist/cli/{mcp-6qjt8ey7.js → mcp-0ah7s1j0.js} +1 -1
  68. package/dist/cli/{model-preflight-dh9dadg8.js → model-preflight-nfvapzyj.js} +80 -36
  69. package/dist/cli/{pending-delegations-vcqw78d8.js → pending-delegations-hynywgkj.js} +7 -7
  70. package/dist/cli/{pr-subscriptions-2vp2sxjb.js → pr-subscriptions-k86p5qcn.js} +7 -7
  71. package/dist/cli/{pr-workflow-gate-cy24tc3c.js → pr-workflow-gate-3ett6hjh.js} +36 -36
  72. package/dist/cli/{runner-zeqpd2c2.js → runner-4hfmp1ag.js} +5 -5
  73. package/dist/cli/{scan-cursor-3hyz0qnh.js → scan-cursor-9961dhv1.js} +6 -6
  74. package/dist/cli/{schema-4s2nnpqt.js → schema-s5zbnzmv.js} +2 -2
  75. package/dist/cli/{scope-persistence-1bvaeene.js → scope-persistence-2w562h83.js} +12 -12
  76. package/dist/cli/{server-zb4j57w6.js → server-vrk0k61v.js} +36 -36
  77. package/dist/cli/{skill-generator-fqh79jr7.js → skill-generator-bfcjzp20.js} +15 -15
  78. package/dist/cli/{snapshot-coordination-init-v50k6v2v.js → snapshot-coordination-init-8ykpp5m6.js} +36 -36
  79. package/dist/cli/{speckit-checkoff-mcxxpmy4.js → speckit-checkoff-3x52vw64.js} +4 -4
  80. package/dist/cli/{telemetry-eq1cwq2x.js → telemetry-kvhe94gs.js} +1 -1
  81. package/dist/cli/{worktree-collision-ownership-fk6spbrf.js → worktree-collision-ownership-kjw1pqfc.js} +7 -7
  82. package/dist/cli/{worktree-isolation-ht89tqrc.js → worktree-isolation-xdgm4ekx.js} +36 -36
  83. package/dist/config/consumers.d.ts +35 -0
  84. package/dist/host/v2/events.d.ts +19 -1
  85. package/dist/host/v2/model-apply.d.ts +39 -0
  86. package/dist/host/v2/setup.d.ts +0 -35
  87. package/dist/index.js +16 -16
  88. package/dist/models/task-model-routing.d.ts +8 -0
  89. package/dist/services/model-preflight.d.ts +24 -0
  90. package/dist/utils/provider-error-classification.d.ts +30 -4
  91. package/package.json +1 -1
@@ -1,38 +1,3 @@
1
- /**
2
- * OpenCode 2 (v2 plugin API) setup entrypoint — issue #3004 / #2910.
3
- *
4
- * The v2 host validates the plugin's default export against
5
- * `{ id, setup | effect }` (sst/opencode v2 line, packages/core/src/plugin/
6
- * module.ts). The v1 `server()` path stays byte-stable for OpenCode 1 hosts;
7
- * this module is what `setup(ctx)` runs on OpenCode 2 hosts.
8
- *
9
- * Architecture (ADR-0003): the adapter reuses the SAME initialization core and
10
- * the SAME v1 hook set — it only TRANSLATES registration surfaces:
11
- *
12
- * - tools: `hooks.tool` map → `ctx.tool.transform(editor.add)` (one source,
13
- * `buildPluginToolObject`; no parallel name list — enforced by
14
- * scripts/check-tool-registration.ts);
15
- * - agents + commands: the v1 `config` hook is invoked against a synthetic
16
- * `opencodeConfig` object, making the config hook itself the shared
17
- * builder (auto-select promotions and the command table are reused
18
- * verbatim — zero extraction from src/index.ts);
19
- * - guidance: the v1 messages/system transform chains run against a
20
- * translated session event; the #2526 USER-role guidance carriers the
21
- * messages chain materializes are re-homed into `event.system` (v2 renders
22
- * system natively — the user→system transport delta is recorded in
23
- * docs/host/v2-hook-inventory.md);
24
- * - lifecycle: tool execute.before/after, compaction, prompt hooks and the
25
- * event subscription are wired with payload translation; `setup` returns
26
- * a single Cleanup that disposes every Registration and runs the v1
27
- * dispose teardown.
28
- *
29
- * Init boundedness (AGENTS.md invariant 1): every `await` in src/host/** is
30
- * either on the same physical line as a `withTimeout(` call or inside a
31
- * function named deferred-…/cleanup-… (the frozen C6 source-scan convention).
32
- * The shared initialization wrapper (`deps.runInit`) is injected by
33
- * src/index.ts so no module cycle is created and the FATAL-fail surface stays
34
- * with the v1 wrapper.
35
- */
36
1
  import type { V1HooksSubset, V2PluginContext } from './types';
37
2
  /** Dependencies injected from src/index.ts (avoids an index↔host cycle). */
38
3
  export interface V2SetupDependencies {