@desplega.ai/agent-swarm 1.152.2 → 1.153.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 (224) hide show
  1. package/README.md +1 -1
  2. package/dist/{acp-adapter-pfeje2v5.js → acp-adapter-ahmjxhek.js} +4 -4
  3. package/dist/{actions-0sttc7f5.js → actions-jzrfpkmn.js} +30 -26
  4. package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
  5. package/dist/{app-p8teva95.js → app-03na2vwb.js} +9 -6
  6. package/dist/{assistant-r45jnsrt.js → assistant-hfkxvhgt.js} +31 -27
  7. package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
  8. package/dist/{boot-reembed-je26h5y7.js → boot-reembed-c98xrad3.js} +8 -6
  9. package/dist/{boot-reembed-1qmybsd4.js → boot-reembed-zt3qm9xn.js} +9 -7
  10. package/dist/{boot-scrub-logs-gte3h1mm.js → boot-scrub-logs-jcqd8ksj.js} +6 -4
  11. package/dist/{claude-adapter-csc1mzka.js → claude-adapter-mgryg8g3.js} +17 -15
  12. package/dist/{claude-managed-adapter-dsmkcrjy.js → claude-managed-adapter-ea2aga6w.js} +3 -3
  13. package/dist/{claude-sdk-session-fcd6f078.js → claude-sdk-session-jjf4zss1.js} +17 -15
  14. package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
  15. package/dist/{cli-fm4ytsdk.js → cli-0d9nbqxf.js} +1 -1
  16. package/dist/cli-0x5qzvkg.js +4279 -0
  17. package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
  18. package/dist/{cli-wbyk465z.js → cli-1hwnb4hc.js} +1 -1
  19. package/dist/{cli-xw7vak96.js → cli-3bcmp015.js} +5 -5
  20. package/dist/cli-3er6gcsn.js +1849 -0
  21. package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
  22. package/dist/{cli-4ahpr4sw.js → cli-5mbmvxnn.js} +5 -5
  23. package/dist/{cli-xy1cchaf.js → cli-5taqtpze.js} +235 -8
  24. package/dist/{cli-fmy65jdn.js → cli-6ks9xf1n.js} +7 -5
  25. package/dist/cli-7g9s78jf.js +2827 -0
  26. package/dist/{cli-jew3jda5.js → cli-7pnz2v6s.js} +2 -2
  27. package/dist/{cli-r84ctdxn.js → cli-83wkg402.js} +2 -2
  28. package/dist/{cli-jvy9qgjs.js → cli-a9scg8sv.js} +4 -4
  29. package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
  30. package/dist/{cli-ht5rs63n.js → cli-b2g6mzjc.js} +15 -6
  31. package/dist/{cli-jbmc0r7r.js → cli-bw0dfwkr.js} +1 -1
  32. package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
  33. package/dist/{cli-wpv5rgg2.js → cli-cdq08v3r.js} +2 -2
  34. package/dist/cli-cgj4hc12.js +18902 -0
  35. package/dist/cli-d6hk10xx.js +14075 -0
  36. package/dist/{cli-zvgj5zg8.js → cli-djvxhnc4.js} +31 -3324
  37. package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
  38. package/dist/{cli-3bpzj8me.js → cli-eazstkad.js} +2 -2
  39. package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
  40. package/dist/cli-h38x0qhg.js +6912 -0
  41. package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
  42. package/dist/{pi-mono-adapter-jcqt71cg.js → cli-ja7mrygn.js} +67343 -101083
  43. package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
  44. package/dist/{cli-gphgnvpf.js → cli-m04pt18h.js} +2 -2
  45. package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
  46. package/dist/{cli-j4nv2wqy.js → cli-mzgyhxbe.js} +10 -4
  47. package/dist/{cli-qn042eh7.js → cli-n0q9b7j4.js} +46 -1870
  48. package/dist/cli-n7h1kqpf.js +29 -0
  49. package/dist/{cli-ckz5t2hb.js → cli-nq0kgyxe.js} +5 -5
  50. package/dist/{cli-z3wkng35.js → cli-qrqhc31j.js} +151 -125
  51. package/dist/{cli-56h18ng2.js → cli-r8tdds6s.js} +1 -1
  52. package/dist/{cli-ch38q5z4.js → cli-rj7de4b2.js} +6788 -2541
  53. package/dist/{cli-qd65dvr6.js → cli-s5s1f2yn.js} +56 -40
  54. package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
  55. package/dist/{cli-2nnd56zt.js → cli-tdh4hjr2.js} +3 -2
  56. package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
  57. package/dist/{cli-b9dd0h3k.js → cli-vw03hg5t.js} +3 -2
  58. package/dist/{cli-zvkq5csn.js → cli-ybpp1srm.js} +6 -6
  59. package/dist/cli-yn0a417a.js +4069 -0
  60. package/dist/{cli-gpqcs935.js → cli-ysc1kbet.js} +2 -2
  61. package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
  62. package/dist/cli-zcsyfw2z.js +3335 -0
  63. package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
  64. package/dist/cli-zy5w9gpt.js +230 -0
  65. package/dist/cli.js +26 -34
  66. package/dist/{codex-adapter-fxmpsabw.js → codex-adapter-8548daap.js} +12 -11
  67. package/dist/{codex-session-runner-rr1e47ea.js → codex-session-runner-2dad8p4x.js} +12 -11
  68. package/dist/{commands-0f5rxz51.js → commands-355dbpa8.js} +6 -4
  69. package/dist/{db-r3jxf3wy.js → db-4jjvwz1s.js} +6 -4
  70. package/dist/{dispatcher-06vph6q4.js → dispatcher-ca590nkz.js} +29 -25
  71. package/dist/dsh-adapter-rgvj6ykp.js +19 -0
  72. package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
  73. package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-xtw7tggr.js} +33 -73
  74. package/dist/{google-vertex-fr665tqs.js → google-vertex-zdqpms6n.js} +38 -68
  75. package/dist/{handlers-0hgtc910.js → handlers-2y6dqpvf.js} +32 -28
  76. package/dist/{hook-9kvrv1er.js → hook-0s8knepr.js} +11 -9
  77. package/dist/{hook-fbfhkat3.js → hook-k0gec254.js} +12 -10
  78. package/dist/{http-xbyx8k5j.js → http-jp2nb4zw.js} +300 -237
  79. package/dist/{index-tfsdxyv6.js → index-0wzg3sp3.js} +39 -24
  80. package/dist/{index-rnyahfn5.js → index-3mq6ce93.js} +29 -25
  81. package/dist/{index-jsw3aynb.js → index-42s7eezq.js} +29 -25
  82. package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
  83. package/dist/{index-gpfn1741.js → index-b56xkbc7.js} +8 -6
  84. package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
  85. package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
  86. package/dist/{index-sgk50mbg.js → index-s37dbevy.js} +30 -26
  87. package/dist/index-w097eg0x.js +5 -0
  88. package/dist/jiti-loader-b4837mtm.js +34 -0
  89. package/dist/jiti-static-loader-q2g5ds0y.js +31267 -0
  90. package/dist/{keepalive-s3xpr7sw.js → keepalive-9pfw7t02.js} +8 -6
  91. package/dist/{lead-rq4n5r16.js → lead-7vcmcdq4.js} +44 -39
  92. package/dist/{maintenance-f0atj1ab.js → maintenance-x277jbpd.js} +9 -7
  93. package/dist/{mistral-conversations-qhr84ph3.js → mistral-conversations-zx0kn554.js} +24 -18
  94. package/dist/{node-x1g4v0pq.js → node-5qtycf6a.js} +16 -11
  95. package/dist/{oauth-refresh-sweep-q0t3bxre.js → oauth-refresh-sweep-5fwa7th2.js} +7 -5
  96. package/dist/{onboard-br5j1kch.js → onboard-17sv0f51.js} +103 -35
  97. package/dist/{openai-codex-responses-wy6a43wd.js → openai-codex-responses-4vjqzvjp.js} +33 -27
  98. package/dist/{openai-completions-32rdwmze.js → openai-completions-pxsmym7g.js} +52 -64
  99. package/dist/{openai-responses-6xwf7bzg.js → openai-responses-tmn0rqp0.js} +23 -24
  100. package/dist/{opencode-adapter-28axqa09.js → opencode-adapter-qbmv4tpy.js} +6 -6
  101. package/dist/{otel-impl-vdqge2nt.js → otel-impl-srjy4be4.js} +4 -4
  102. package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
  103. package/dist/pi-mono-adapter-946a0sdd.js +1316 -0
  104. package/dist/{pricing-refresh-hb3691fd.js → pricing-refresh-vetcm563.js} +8 -6
  105. package/dist/{rbac-roles-jh280k9g.js → rbac-roles-cfzgr6r1.js} +8 -6
  106. package/dist/{rbac-roles-t78xt39b.js → rbac-roles-cmxaddmy.js} +7 -5
  107. package/dist/{render-v2-7p8r2ymg.js → render-v2-f9hzff72.js} +9 -6
  108. package/dist/{seed-pricing-hf889enh.js → seed-pricing-jggk6rsy.js} +7 -5
  109. package/dist/{setup-w6mb03jv.js → setup-8mfceb9t.js} +4 -5
  110. package/dist/virtual-modules-ax661xp0.js +54 -0
  111. package/dist/{work-objects-nt8gy1kj.js → work-objects-vdsdcczj.js} +32 -28
  112. package/dist/{worker-dwy617t0.js → worker-cd0nhyv1.js} +44 -39
  113. package/openapi.json +36 -14
  114. package/package.json +6 -6
  115. package/src/be/automation-preflight.ts +6 -4
  116. package/src/be/extensions/db.ts +35 -4
  117. package/src/be/models-catalog.ts +2 -0
  118. package/src/be/modelsdev-cache.json +213 -0
  119. package/src/be/rbac-audit.ts +2 -0
  120. package/src/be/seed-pricing.ts +3 -1
  121. package/src/be/swarm-config-guard.ts +1 -0
  122. package/src/commands/onboard/compose-generator.ts +6 -1
  123. package/src/commands/onboard/env-generator.ts +6 -1
  124. package/src/commands/onboard/manifest.ts +1 -0
  125. package/src/commands/onboard/steps/integration-slack.tsx +56 -16
  126. package/src/commands/onboard/steps/review.tsx +5 -0
  127. package/src/commands/onboard/types.ts +6 -0
  128. package/src/commands/onboard.tsx +5 -1
  129. package/src/commands/provider-credentials.ts +14 -2
  130. package/src/extensions/lifecycle.ts +15 -21
  131. package/src/http/agents.ts +2 -2
  132. package/src/http/config.ts +1 -1
  133. package/src/http/core.ts +5 -3
  134. package/src/http/extensions.ts +108 -34
  135. package/src/http/status.ts +22 -10
  136. package/src/prompts/base-prompt.ts +15 -7
  137. package/src/providers/claude-managed-models.ts +8 -0
  138. package/src/providers/codex-models.ts +15 -1
  139. package/src/providers/dsh-adapter.ts +248 -0
  140. package/src/providers/index.ts +5 -1
  141. package/src/providers/modelsdev-reasoning.json +50 -0
  142. package/src/rbac/legacy-policy.ts +15 -1
  143. package/src/rbac/types.ts +2 -0
  144. package/src/server.ts +7 -1
  145. package/src/slack/app.ts +32 -10
  146. package/src/slack/config.ts +29 -0
  147. package/src/telemetry.ts +2 -3
  148. package/src/tests/agents-harness-provider.test.ts +19 -0
  149. package/src/tests/agents-list-model-display.test.ts +60 -1
  150. package/src/tests/base-prompt.test.ts +25 -0
  151. package/src/tests/claude-managed-adapter.test.ts +6 -0
  152. package/src/tests/codex-gpt6-release.test.ts +97 -0
  153. package/src/tests/config-api-only-keys.test.ts +9 -0
  154. package/src/tests/context-window.test.ts +1 -0
  155. package/src/tests/dsh-adapter.test.ts +276 -0
  156. package/src/tests/e2e-nightly-report.test.ts +3 -3
  157. package/src/tests/e2e-redact.test.ts +2 -0
  158. package/src/tests/env-flag.test.ts +6 -0
  159. package/src/tests/extensions-db.test.ts +41 -0
  160. package/src/tests/extensions-http.test.ts +148 -4
  161. package/src/tests/extensions-lifecycle.test.ts +18 -0
  162. package/src/tests/extensions-mcp-tools.test.ts +9 -5
  163. package/src/tests/internal-ai/complete-structured.test.ts +32 -9
  164. package/src/tests/internal-ai/credentials.test.ts +4 -4
  165. package/src/tests/internal-ai/models.test.ts +20 -0
  166. package/src/tests/migration-046-budgets.test.ts +2 -0
  167. package/src/tests/model-control.test.ts +2 -2
  168. package/src/tests/onboard-compose.test.ts +14 -0
  169. package/src/tests/onboard-env.test.ts +17 -0
  170. package/src/tests/onboard-manifest.test.ts +12 -0
  171. package/src/tests/opus-5-5-registry.test.ts +48 -0
  172. package/src/tests/pricing-refresh.test.ts +1 -1
  173. package/src/tests/pricing-routes.test.ts +15 -3
  174. package/src/tests/provider-registration.test.ts +5 -2
  175. package/src/tests/rbac-admission-e2e.test.ts +54 -0
  176. package/src/tests/rbac-e2e-helpers.ts +2 -0
  177. package/src/tests/rbac-engine.test.ts +32 -0
  178. package/src/tests/rbac-wire-e2e.test.ts +33 -0
  179. package/src/tests/reasoning-effort.test.ts +8 -0
  180. package/src/tests/reload-config.test.ts +33 -0
  181. package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
  182. package/src/tests/slack-config.test.ts +136 -0
  183. package/src/tests/slack-mode-lifecycle.test.ts +69 -0
  184. package/src/tests/status.test.ts +22 -2
  185. package/src/tests/task-tool-preload-mcp.test.ts +3 -1
  186. package/src/tests/telemetry-init.test.ts +18 -0
  187. package/src/tests/workflow-llm.test.ts +3 -3
  188. package/src/tools/extension-common.ts +4 -0
  189. package/src/tools/extension-install.ts +1 -1
  190. package/src/tools/extension-list.ts +4 -3
  191. package/src/types.ts +17 -8
  192. package/src/utils/context-window.ts +1 -0
  193. package/src/utils/credentials.ts +8 -0
  194. package/src/utils/internal-ai/complete-structured.ts +8 -0
  195. package/src/utils/internal-ai/models.ts +5 -5
  196. package/templates/schedules/daily-status-report/content.md +25 -12
  197. package/templates/schedules/daily-workflow-health-audit/content.md +1 -1
  198. package/templates/skills/swarm-extensions/content.md +9 -5
  199. package/dist/cli-4wppfkcm.js +0 -16384
  200. package/dist/cli-55qrx3q8.js +0 -6041
  201. package/dist/cli-cg4vnyh4.js +0 -305
  202. package/dist/cli-jyetr64j.js +0 -52
  203. package/dist/cli-pp9ax9pa.js +0 -520
  204. package/dist/cli-qa66qaf0.js +0 -6076
  205. package/dist/cli-qghpvca2.js +0 -590
  206. package/dist/cli-rembwgt8.js +0 -861
  207. package/dist/cli-tcvj7j2r.js +0 -1971
  208. package/dist/cli-vfcth11k.js +0 -36
  209. package/dist/cli-w1d1bgkk.js +0 -1422
  210. package/dist/cli-y6x0gqtg.js +0 -5977
  211. package/dist/es5-tj3tn4jj.js +0 -844
  212. package/dist/index-1kq5hw2p.js +0 -467
  213. package/dist/index-1p8wdstt.js +0 -7
  214. package/dist/index-8fdjzb2f.js +0 -100
  215. package/dist/index-bxmwzbgw.js +0 -365
  216. package/dist/index-nzerxd5z.js +0 -7
  217. package/dist/index-pyymnzat.js +0 -1168
  218. package/dist/index-qv6atbab.js +0 -619
  219. package/dist/index-rja32qa7.js +0 -801
  220. package/dist/index-tzg5srfp.js +0 -211
  221. package/dist/index-vhncw983.js +0 -90
  222. package/dist/index-xk036zsk.js +0 -859
  223. package/dist/index-zyazbzcb.js +0 -6
  224. package/dist/{claude-managed-setup-48dwg9bv.js → claude-managed-setup-f5pmsyrp.js} +3 -3
@@ -1,16 +1,18 @@
1
1
  import {
2
2
  ensureAuthorizationTokenOrThrow,
3
3
  listKeepAliveAuthorizations
4
- } from "./cli-56h18ng2.js";
5
- import"./cli-zvgj5zg8.js";
6
- import"./cli-ht5rs63n.js";
4
+ } from "./cli-r8tdds6s.js";
5
+ import"./cli-djvxhnc4.js";
6
+ import"./cli-zcsyfw2z.js";
7
+ import"./cli-b2g6mzjc.js";
7
8
  import"./cli-z61ykvam.js";
9
+ import"./cli-v4en75c5.js";
8
10
  import"./cli-dv6cdjs2.js";
9
- import"./cli-c2mk1kgf.js";
11
+ import"./cli-n7h1kqpf.js";
10
12
  import"./cli-ej6gbxfb.js";
11
13
  import"./cli-sd0mxa3c.js";
12
14
  import"./cli-w5e1d1vv.js";
13
- import"./cli-zvkq5csn.js";
15
+ import"./cli-ybpp1srm.js";
14
16
  import {
15
17
  init_secret_scrubber,
16
18
  scrubSecrets
@@ -66,7 +68,7 @@ async function notifySlack(text) {
66
68
  return;
67
69
  }
68
70
  try {
69
- const { getSlackApp } = await import("./app-p8teva95.js");
71
+ const { getSlackApp } = await import("./app-03na2vwb.js");
70
72
  const app = getSlackApp();
71
73
  if (!app) {
72
74
  console.warn("[OAuth Keepalive] Slack not available, cannot send notification");
@@ -1,77 +1,82 @@
1
1
  import {
2
2
  runAgent
3
- } from "./cli-qd65dvr6.js";
3
+ } from "./cli-s5s1f2yn.js";
4
4
  import"./cli-pgj4a5fb.js";
5
- import"./cli-kj76p1ez.js";
5
+ import"./cli-scwq51gn.js";
6
6
  import"./cli-9b13ggd1.js";
7
- import"./cli-d3p82erb.js";
8
- import"./cli-xw7vak96.js";
9
- import"./cli-4ahpr4sw.js";
10
- import"./cli-wbyk465z.js";
11
- import"./cli-tng3131n.js";
7
+ import"./cli-18amys3y.js";
8
+ import"./cli-zy5w9gpt.js";
12
9
  import"./cli-5bfdm1ah.js";
13
- import"./cli-xy1cchaf.js";
10
+ import"./cli-5taqtpze.js";
14
11
  import"./cli-hsxj0yar.js";
15
12
  import"./cli-r94z9p1z.js";
16
- import"./cli-b5b30yzk.js";
17
- import"./cli-zm7njwzd.js";
18
- import"./cli-s25avqg9.js";
19
13
  import"./cli-2djtr51b.js";
20
- import"./cli-j4nv2wqy.js";
21
- import"./cli-hp1n6zq3.js";
22
14
  import"./cli-pf9q3696.js";
23
15
  import"./cli-j490egb5.js";
16
+ import"./cli-3bcmp015.js";
17
+ import"./cli-5mbmvxnn.js";
18
+ import"./cli-1hwnb4hc.js";
19
+ import"./cli-tng3131n.js";
20
+ import"./cli-b5b30yzk.js";
21
+ import"./cli-zm7njwzd.js";
22
+ import"./cli-e781c6f9.js";
23
+ import"./cli-mzgyhxbe.js";
24
+ import"./cli-hp1n6zq3.js";
24
25
  import"./cli-eree7rnv.js";
25
- import"./cli-4yc5d8fk.js";
26
+ import"./cli-avkd6mqv.js";
26
27
  import {
27
28
  getEnabledCapabilities
28
- } from "./cli-z3wkng35.js";
29
+ } from "./cli-qrqhc31j.js";
29
30
  import"./cli-0z2v4nhw.js";
30
- import"./cli-4wppfkcm.js";
31
+ import"./cli-7g9s78jf.js";
31
32
  import"./cli-e7d20cty.js";
32
33
  import"./cli-re8z5p8p.js";
33
34
  import"./cli-3dpj7atn.js";
34
- import"./cli-b9dd0h3k.js";
35
- import"./cli-r84ctdxn.js";
36
- import"./cli-zfzznn7c.js";
37
- import"./cli-fmy65jdn.js";
35
+ import"./cli-d6hk10xx.js";
36
+ import"./cli-vw03hg5t.js";
37
+ import"./cli-tdh4hjr2.js";
38
+ import"./cli-83wkg402.js";
39
+ import"./cli-ytxs7mn1.js";
40
+ import"./cli-6ks9xf1n.js";
38
41
  import"./cli-epan13p1.js";
39
42
  import"./cli-y89t4nca.js";
40
43
  import"./cli-f14fvzag.js";
41
- import"./cli-fad8m16k.js";
42
- import"./cli-56h18ng2.js";
43
- import"./cli-2nnd56zt.js";
44
+ import"./cli-r8tdds6s.js";
44
45
  import"./cli-bsakbbkm.js";
45
- import"./cli-gpqcs935.js";
46
+ import"./cli-fad8m16k.js";
47
+ import"./cli-jsp14b6c.js";
48
+ import"./cli-ysc1kbet.js";
49
+ import"./cli-7pnz2v6s.js";
50
+ import"./cli-0d9nbqxf.js";
51
+ import"./cli-aehm1rbq.js";
46
52
  import"./cli-51tf7ac3.js";
47
- import"./cli-qn042eh7.js";
53
+ import"./cli-n0q9b7j4.js";
48
54
  import"./cli-q51yprfq.js";
55
+ import"./cli-3er6gcsn.js";
49
56
  import"./cli-yatxqynm.js";
50
- import"./cli-jew3jda5.js";
51
- import"./cli-fm4ytsdk.js";
52
- import"./cli-aehm1rbq.js";
53
57
  import"./cli-2658f6at.js";
54
- import"./cli-jsp14b6c.js";
55
- import"./cli-zvgj5zg8.js";
56
- import"./cli-ht5rs63n.js";
58
+ import"./cli-djvxhnc4.js";
59
+ import"./cli-zcsyfw2z.js";
60
+ import"./cli-b2g6mzjc.js";
57
61
  import"./cli-z61ykvam.js";
62
+ import"./cli-v4en75c5.js";
58
63
  import"./cli-dv6cdjs2.js";
59
- import"./cli-c2mk1kgf.js";
64
+ import"./cli-n7h1kqpf.js";
60
65
  import"./cli-ej6gbxfb.js";
61
66
  import"./cli-sd0mxa3c.js";
62
67
  import"./cli-w5e1d1vv.js";
63
- import"./cli-zvkq5csn.js";
68
+ import"./cli-ybpp1srm.js";
64
69
  import"./cli-r2ap2czm.js";
70
+ import"./cli-5b6b62tz.js";
71
+ import"./cli-btbzvq95.js";
72
+ import"./cli-1m2e086m.js";
73
+ import"./cli-mcnhgnn1.js";
74
+ import"./cli-bzr0ftht.js";
75
+ import"./cli-bd957dgb.js";
65
76
  import"./cli-pzxba7gw.js";
66
77
  import"./cli-f7kvq46p.js";
67
78
  import"./cli-zf8jjwex.js";
68
79
  import"./cli-knd276ed.js";
69
- import"./cli-c4eeb5q2.js";
70
- import"./cli-rgvp6r2x.js";
71
- import"./cli-btbzvq95.js";
72
- import"./cli-1m2e086m.js";
73
- import"./cli-8wrympd7.js";
74
- import"./cli-bd957dgb.js";
75
80
  import"./cli-bc05qbss.js";
76
81
 
77
82
  // src/commands/lead.ts
@@ -1,19 +1,21 @@
1
1
  import {
2
2
  reembedAllScripts
3
- } from "./cli-gpqcs935.js";
4
- import"./cli-jew3jda5.js";
5
- import"./cli-fm4ytsdk.js";
3
+ } from "./cli-ysc1kbet.js";
4
+ import"./cli-7pnz2v6s.js";
5
+ import"./cli-0d9nbqxf.js";
6
6
  import"./cli-aehm1rbq.js";
7
7
  import"./cli-2658f6at.js";
8
- import"./cli-zvgj5zg8.js";
9
- import"./cli-ht5rs63n.js";
8
+ import"./cli-djvxhnc4.js";
9
+ import"./cli-zcsyfw2z.js";
10
+ import"./cli-b2g6mzjc.js";
10
11
  import"./cli-z61ykvam.js";
12
+ import"./cli-v4en75c5.js";
11
13
  import"./cli-dv6cdjs2.js";
12
- import"./cli-c2mk1kgf.js";
14
+ import"./cli-n7h1kqpf.js";
13
15
  import"./cli-ej6gbxfb.js";
14
16
  import"./cli-sd0mxa3c.js";
15
17
  import"./cli-w5e1d1vv.js";
16
- import"./cli-zvkq5csn.js";
18
+ import"./cli-ybpp1srm.js";
17
19
  import"./cli-r2ap2czm.js";
18
20
  import"./cli-zf8jjwex.js";
19
21
  import"./cli-bc05qbss.js";
@@ -9,23 +9,27 @@ import {
9
9
  getJsonSchemaToolParameters,
10
10
  resolveJsonSchemaStrictSampling,
11
11
  transformMessages
12
- } from "./cli-j8dggbcr.js";
12
+ } from "./cli-k0g1sjzm.js";
13
13
  import {
14
14
  sanitizeSurrogates
15
15
  } from "./cli-y2apkfe2.js";
16
16
  import {
17
17
  headersToRecord
18
18
  } from "./cli-vapyk8sw.js";
19
- import {
20
- calculateCost,
21
- clampThinkingLevel
22
- } from "./cli-rgvp6r2x.js";
23
19
  import {
24
20
  parseStreamingJson
25
21
  } from "./cli-1m2e086m.js";
22
+ import {
23
+ calculateCost,
24
+ clampThinkingLevel,
25
+ getCurrentTools,
26
+ getSystemMessageText,
27
+ renderSystemMessageUpdate,
28
+ resolveTranscript
29
+ } from "./cli-mcnhgnn1.js";
26
30
  import {
27
31
  AssistantMessageEventStream
28
- } from "./cli-8wrympd7.js";
32
+ } from "./cli-bzr0ftht.js";
29
33
  import"./cli-bc05qbss.js";
30
34
 
31
35
  // node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js
@@ -33,6 +37,7 @@ var MISTRAL_TOOL_CALL_ID_LENGTH = 9;
33
37
  var MAX_MISTRAL_ERROR_BODY_CHARS = 4000;
34
38
  var stream = (model, context, options) => {
35
39
  const stream2 = new AssistantMessageEventStream;
40
+ const normalizedContext = resolveTranscript(context, model.compat?.supportsMidConvoSystemMessages);
36
41
  (async () => {
37
42
  const output = createOutput(model);
38
43
  try {
@@ -41,8 +46,8 @@ var stream = (model, context, options) => {
41
46
  throw new Error(`No API key for provider: ${model.provider}`);
42
47
  }
43
48
  const normalizeMistralToolCallId = createMistralToolCallIdNormalizer();
44
- const transformedMessages = transformMessages(context.messages, model, (id) => normalizeMistralToolCallId(id));
45
- let payload = buildChatPayload(model, context, transformedMessages, options);
49
+ const transformedMessages = transformMessages(normalizedContext.messages, model, (id) => normalizeMistralToolCallId(id));
50
+ let payload = buildChatPayload(model, normalizedContext, transformedMessages, options);
46
51
  const nextPayload = await options?.onPayload?.(payload, model);
47
52
  if (nextPayload !== undefined) {
48
53
  payload = nextPayload;
@@ -360,8 +365,9 @@ function buildChatPayload(model, context, messages, options) {
360
365
  stream: true,
361
366
  messages: toChatMessages(messages, model.input.includes("image"))
362
367
  };
363
- if (context.tools?.length)
364
- payload.tools = toFunctionTools(context.tools);
368
+ const currentTools = getCurrentTools(context.messages);
369
+ if (currentTools.length > 0)
370
+ payload.tools = toFunctionTools(currentTools);
365
371
  if (options?.temperature !== undefined)
366
372
  payload.temperature = options.temperature;
367
373
  if (options?.maxTokens !== undefined)
@@ -374,12 +380,6 @@ function buildChatPayload(model, context, messages, options) {
374
380
  payload.reasoningEffort = options.reasoningEffort;
375
381
  if (shouldUsePromptCaching(options))
376
382
  payload.promptCacheKey = options.sessionId;
377
- if (context.systemPrompt) {
378
- payload.messages.unshift({
379
- role: "system",
380
- content: sanitizeSurrogates(context.systemPrompt)
381
- });
382
- }
383
383
  return payload;
384
384
  }
385
385
  function shouldUsePromptCaching(options) {
@@ -584,7 +584,13 @@ function stripSymbolKeys(value) {
584
584
  }
585
585
  function toChatMessages(messages, supportsImages) {
586
586
  const result = [];
587
- for (const msg of messages) {
587
+ for (const [index, msg] of messages.entries()) {
588
+ if (msg.role === "system") {
589
+ const text = index === 0 ? getSystemMessageText(msg) : renderSystemMessageUpdate(msg);
590
+ if (text.length > 0)
591
+ result.push({ role: "system", content: sanitizeSurrogates(text) });
592
+ continue;
593
+ }
588
594
  if (msg.role === "user") {
589
595
  if (typeof msg.content === "string") {
590
596
  result.push({ role: "user", content: sanitizeSurrogates(msg.content) });
@@ -682,7 +688,7 @@ function buildToolResultText(text, hasImages, supportsImages, isError) {
682
688
  return isError ? "[tool error] (no tool output)" : "(no tool output)";
683
689
  }
684
690
  function usesReasoningEffort(model) {
685
- return model.id === "mistral-small-2603" || model.id === "mistral-small-latest" || model.id === "mistral-medium-3.5";
691
+ return model.id === "mistral-small-2603" || model.id === "mistral-small-latest" || model.id.startsWith("mistral-medium-") || model.id === "zai-glm-5-2";
686
692
  }
687
693
  function usesPromptModeReasoning(model) {
688
694
  return model.reasoning && !usesReasoningEffort(model);
@@ -1,11 +1,3 @@
1
- import {
2
- child_process,
3
- crypto,
4
- fs,
5
- path,
6
- stream,
7
- util
8
- } from "./cli-w2f2y3dp.js";
9
1
  import {
10
2
  AnthropicError,
11
3
  DEFAULT_MEMORY_SYNC_INTERVAL_MS,
@@ -19,7 +11,15 @@ import {
19
11
  isStatus,
20
12
  loggerFor,
21
13
  promiseWithResolvers
22
- } from "./cli-9xvdm3bx.js";
14
+ } from "./cli-h60qfasa.js";
15
+ import {
16
+ child_process,
17
+ crypto,
18
+ fs,
19
+ path,
20
+ stream,
21
+ util
22
+ } from "./cli-w2f2y3dp.js";
23
23
  import"./cli-51tf7ac3.js";
24
24
  import"./cli-bc05qbss.js";
25
25
 
@@ -63,8 +63,8 @@ function betaTool(options) {
63
63
 
64
64
  // node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
65
65
  var fs2 = fs.promises;
66
- var DIR_CREATE_MODE = 493;
67
- var FILE_CREATE_MODE = 420;
66
+ var DIR_CREATE_MODE = 448;
67
+ var FILE_CREATE_MODE = 384;
68
68
  function isWithin(root, p) {
69
69
  const rel = path.relative(root, p);
70
70
  return rel === "" || !rel.startsWith(".." + path.sep) && rel !== ".." && !path.isAbsolute(rel);
@@ -133,9 +133,14 @@ async function confineToRoot(root, p, opts) {
133
133
  async function atomicWriteFile(targetPath, content) {
134
134
  const dir = path.dirname(targetPath);
135
135
  const tempPath = path.join(dir, `.tmp-${process.pid}-${crypto.randomUUID()}`);
136
+ const existingMode = await fs2.stat(targetPath).then((st) => st.mode & 511, () => {
137
+ return;
138
+ });
136
139
  let handle;
137
140
  try {
138
141
  handle = await fs2.open(tempPath, "wx", FILE_CREATE_MODE);
142
+ if (existingMode !== undefined)
143
+ await handle.chmod(existingMode);
139
144
  await handle.writeFile(content, "utf-8");
140
145
  await handle.sync();
141
146
  await handle.close();
@@ -2,16 +2,18 @@ import {
2
2
  forceRefreshAuthorizationOrThrow,
3
3
  getAuthorizationById,
4
4
  listAuthorizationSweepRows
5
- } from "./cli-56h18ng2.js";
6
- import"./cli-zvgj5zg8.js";
7
- import"./cli-ht5rs63n.js";
5
+ } from "./cli-r8tdds6s.js";
6
+ import"./cli-djvxhnc4.js";
7
+ import"./cli-zcsyfw2z.js";
8
+ import"./cli-b2g6mzjc.js";
8
9
  import"./cli-z61ykvam.js";
10
+ import"./cli-v4en75c5.js";
9
11
  import"./cli-dv6cdjs2.js";
10
- import"./cli-c2mk1kgf.js";
12
+ import"./cli-n7h1kqpf.js";
11
13
  import"./cli-ej6gbxfb.js";
12
14
  import"./cli-sd0mxa3c.js";
13
15
  import"./cli-w5e1d1vv.js";
14
- import"./cli-zvkq5csn.js";
16
+ import"./cli-ybpp1srm.js";
15
17
  import {
16
18
  init_secret_scrubber,
17
19
  scrubSecrets
@@ -3,17 +3,22 @@ import {
3
3
  createDefaultMcpJson,
4
4
  createDefaultSettingsLocal,
5
5
  createHooksConfig
6
- } from "./cli-jbmc0r7r.js";
6
+ } from "./cli-bw0dfwkr.js";
7
7
  import {
8
8
  require_jsx_dev_runtime
9
- } from "./cli-s2qjdd6z.js";
9
+ } from "./cli-eetrvv91.js";
10
10
  import {
11
11
  getApiKey
12
12
  } from "./cli-f14fvzag.js";
13
+ import {
14
+ getSlackConfiguration,
15
+ init_config,
16
+ isSlackConfigured
17
+ } from "./cli-n7h1kqpf.js";
13
18
  import {
14
19
  init_package,
15
20
  package_default
16
- } from "./cli-zvkq5csn.js";
21
+ } from "./cli-ybpp1srm.js";
17
22
  import {
18
23
  Box_default,
19
24
  Select,
@@ -23,9 +28,8 @@ import {
23
28
  require_react,
24
29
  use_app_default,
25
30
  use_input_default
26
- } from "./cli-4j8k1m4w.js";
31
+ } from "./cli-zt1227k1.js";
27
32
  import"./cli-pw9rj5t9.js";
28
- import"./cli-pp9ax9pa.js";
29
33
  import {
30
34
  __toESM
31
35
  } from "./cli-bc05qbss.js";
@@ -33,6 +37,7 @@ import {
33
37
  // src/commands/onboard.tsx
34
38
  import crypto2 from "node:crypto";
35
39
  init_package();
40
+ init_config();
36
41
  var import_react15 = __toESM(require_react(), 1);
37
42
 
38
43
  // src/commands/onboard/dashboard-url.ts
@@ -124,6 +129,8 @@ var INITIAL_STATE = {
124
129
  githubName: "",
125
130
  slackBotToken: "",
126
131
  slackAppToken: "",
132
+ slackSigningSecret: "",
133
+ slackMode: "socket",
127
134
  gitlabToken: "",
128
135
  gitlabEmail: "",
129
136
  sentryToken: "",
@@ -856,6 +863,8 @@ var ENV_INSTALL_METHOD = " - INSTALL_METHOD=${INSTALL_METHOD}";
856
863
  var ENV_INSTALL_PRESET = " - INSTALL_PRESET=${INSTALL_PRESET:-}";
857
864
  var ENV_SLACK_BOT_TOKEN = " - SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN}";
858
865
  var ENV_SLACK_APP_TOKEN = " - SLACK_APP_TOKEN=${SLACK_APP_TOKEN}";
866
+ var ENV_SLACK_SIGNING_SECRET = " - SLACK_SIGNING_SECRET=${SLACK_SIGNING_SECRET}";
867
+ var ENV_SLACK_MODE = " - SLACK_MODE=${SLACK_MODE:-socket}";
859
868
  var ENV_CLAUDE_OAUTH = " - CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN}";
860
869
  var ENV_ANTHROPIC_KEY = " - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}";
861
870
  var ENV_HARNESS_PROVIDER = " - HARNESS_PROVIDER=${HARNESS_PROVIDER}";
@@ -941,8 +950,9 @@ function generateCompose(state) {
941
950
  lines.push(" - APP_URL=https://app.agent-swarm.dev");
942
951
  if (state.integrations.slack) {
943
952
  lines.push(" - SLACK_DISABLE=false");
953
+ lines.push(ENV_SLACK_MODE);
944
954
  lines.push(ENV_SLACK_BOT_TOKEN);
945
- lines.push(ENV_SLACK_APP_TOKEN);
955
+ lines.push(state.slackMode === "http" ? ENV_SLACK_SIGNING_SECRET : ENV_SLACK_APP_TOKEN);
946
956
  }
947
957
  if (state.integrations.github) {
948
958
  lines.push(" - GITHUB_DISABLE=false");
@@ -1094,8 +1104,13 @@ function generateEnv(state) {
1094
1104
  if (state.integrations.slack) {
1095
1105
  lines.push("");
1096
1106
  lines.push("# Slack");
1107
+ lines.push(`SLACK_MODE=${state.slackMode}`);
1097
1108
  lines.push(`SLACK_BOT_TOKEN=${state.slackBotToken}`);
1098
- lines.push(`SLACK_APP_TOKEN=${state.slackAppToken}`);
1109
+ if (state.slackMode === "http") {
1110
+ lines.push(`SLACK_SIGNING_SECRET=${state.slackSigningSecret}`);
1111
+ } else {
1112
+ lines.push(`SLACK_APP_TOKEN=${state.slackAppToken}`);
1113
+ }
1099
1114
  lines.push("SLACK_DISABLE=false");
1100
1115
  } else {
1101
1116
  lines.push("SLACK_DISABLE=true");
@@ -1147,6 +1162,7 @@ function generateManifest(state) {
1147
1162
  gitlab: state.integrations.gitlab,
1148
1163
  sentry: state.integrations.sentry
1149
1164
  },
1165
+ slackMode: state.slackMode,
1150
1166
  composePath: "./docker-compose.yml",
1151
1167
  envPath: "./.env",
1152
1168
  apiUrl: `http://localhost:${state.apiPort || 3013}`,
@@ -2351,6 +2367,7 @@ function IntegrationSlackStep({ goToNext }) {
2351
2367
  const [subStep, setSubStep] = import_react10.useState("manifest_options");
2352
2368
  const [copied, setCopied] = import_react10.useState(false);
2353
2369
  const [botToken, setBotToken] = import_react10.useState("");
2370
+ const [mode, setMode] = import_react10.useState("socket");
2354
2371
  const [error, setError] = import_react10.useState("");
2355
2372
  return /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
2356
2373
  flexDirection: "column",
@@ -2395,7 +2412,7 @@ function IntegrationSlackStep({ goToNext }) {
2395
2412
  setCopied(false);
2396
2413
  setSubStep("app_created");
2397
2414
  } else {
2398
- setSubStep("bot_token");
2415
+ setSubStep("mode");
2399
2416
  }
2400
2417
  }
2401
2418
  }, undefined, false, undefined, this)
@@ -2457,7 +2474,32 @@ function IntegrationSlackStep({ goToNext }) {
2457
2474
  marginTop: 1,
2458
2475
  children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Select, {
2459
2476
  options: [{ label: "Continue — I've created the app", value: "continue" }],
2460
- onChange: () => setSubStep("bot_token")
2477
+ onChange: () => setSubStep("mode")
2478
+ }, undefined, false, undefined, this)
2479
+ }, undefined, false, undefined, this)
2480
+ ]
2481
+ }, undefined, true, undefined, this),
2482
+ subStep === "mode" && /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
2483
+ marginTop: 1,
2484
+ flexDirection: "column",
2485
+ children: [
2486
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2487
+ children: "Select the Slack transport:"
2488
+ }, undefined, false, undefined, this),
2489
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
2490
+ marginTop: 1,
2491
+ children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Select, {
2492
+ options: [
2493
+ { label: "Socket Mode (default)", value: "socket" },
2494
+ {
2495
+ label: "HTTP (configuration only; receiver not installed yet)",
2496
+ value: "http"
2497
+ }
2498
+ ],
2499
+ onChange: (value2) => {
2500
+ setMode(value2);
2501
+ setSubStep("bot_token");
2502
+ }
2461
2503
  }, undefined, false, undefined, this)
2462
2504
  }, undefined, false, undefined, this)
2463
2505
  ]
@@ -2498,14 +2540,14 @@ function IntegrationSlackStep({ goToNext }) {
2498
2540
  }
2499
2541
  setError("");
2500
2542
  setBotToken(trimmed);
2501
- setSubStep("app_token");
2543
+ setSubStep("credential");
2502
2544
  }
2503
2545
  }, "slack-bot-token", false, undefined, this)
2504
2546
  ]
2505
2547
  }, undefined, true, undefined, this)
2506
2548
  ]
2507
2549
  }, undefined, true, undefined, this),
2508
- subStep === "app_token" && /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
2550
+ subStep === "credential" && /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
2509
2551
  marginTop: 1,
2510
2552
  flexDirection: "column",
2511
2553
  children: [
@@ -2520,50 +2562,64 @@ function IntegrationSlackStep({ goToNext }) {
2520
2562
  /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
2521
2563
  marginTop: 1,
2522
2564
  flexDirection: "column",
2523
- children: [
2524
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2525
- children: [
2526
- "Find your App-Level Token under ",
2527
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2528
- bold: true,
2529
- children: "Basic Information → App-Level Tokens"
2530
- }, undefined, false, undefined, this),
2531
- "."
2532
- ]
2533
- }, undefined, true, undefined, this),
2534
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2535
- dimColor: true,
2536
- children: "Create one with connections:write scope if you don't have one."
2537
- }, undefined, false, undefined, this)
2538
- ]
2539
- }, undefined, true, undefined, this),
2565
+ children: mode === "socket" ? /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(jsx_dev_runtime11.Fragment, {
2566
+ children: [
2567
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2568
+ children: [
2569
+ "Find your App-Level Token under",
2570
+ " ",
2571
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2572
+ bold: true,
2573
+ children: "Basic Information → App-Level Tokens"
2574
+ }, undefined, false, undefined, this),
2575
+ "."
2576
+ ]
2577
+ }, undefined, true, undefined, this),
2578
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2579
+ dimColor: true,
2580
+ children: "Create one with connections:write scope if you don't have one."
2581
+ }, undefined, false, undefined, this)
2582
+ ]
2583
+ }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2584
+ children: [
2585
+ "Find your Signing Secret under ",
2586
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2587
+ bold: true,
2588
+ children: "Basic Information → App Credentials"
2589
+ }, undefined, false, undefined, this),
2590
+ "."
2591
+ ]
2592
+ }, undefined, true, undefined, this)
2593
+ }, undefined, false, undefined, this),
2540
2594
  /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
2541
2595
  marginTop: 1,
2542
2596
  flexDirection: "column",
2543
2597
  children: [
2544
2598
  /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
2545
2599
  bold: true,
2546
- children: "App Token (SLACK_APP_TOKEN):"
2600
+ children: mode === "socket" ? "App Token (SLACK_APP_TOKEN):" : "Signing Secret (SLACK_SIGNING_SECRET):"
2547
2601
  }, undefined, false, undefined, this),
2548
2602
  /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(TextInput, {
2549
- placeholder: "xapp-...",
2603
+ placeholder: mode === "socket" ? "xapp-..." : "signing secret",
2550
2604
  onSubmit: (value2) => {
2551
2605
  const trimmed = value2.trim();
2552
2606
  if (!trimmed) {
2553
- setError("App token is required. Please enter it above.");
2607
+ setError(`${mode === "socket" ? "App token" : "Signing secret"} is required. Please enter it above.`);
2554
2608
  return;
2555
2609
  }
2556
- if (!trimmed.startsWith("xapp-")) {
2610
+ if (mode === "socket" && !trimmed.startsWith("xapp-")) {
2557
2611
  setError("App token should start with xapp- — please check and re-enter.");
2558
2612
  return;
2559
2613
  }
2560
2614
  setError("");
2561
2615
  goToNext({
2562
2616
  slackBotToken: botToken,
2563
- slackAppToken: trimmed
2617
+ slackMode: mode,
2618
+ slackAppToken: mode === "socket" ? trimmed : "",
2619
+ slackSigningSecret: mode === "http" ? trimmed : ""
2564
2620
  });
2565
2621
  }
2566
- }, "slack-app-token", false, undefined, this)
2622
+ }, `slack-${mode}-credential`, false, undefined, this)
2567
2623
  ]
2568
2624
  }, undefined, true, undefined, this)
2569
2625
  ]
@@ -3164,6 +3220,15 @@ function ReviewStep({ state, dryRun, goToNext, goToStep }) {
3164
3220
  }, undefined, false, undefined, this)
3165
3221
  ]
3166
3222
  }, undefined, true, undefined, this),
3223
+ state.integrations.slack ? /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(Text, {
3224
+ children: [
3225
+ "Slack transport: ",
3226
+ /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(Text, {
3227
+ color: "cyan",
3228
+ children: state.slackMode
3229
+ }, undefined, false, undefined, this)
3230
+ ]
3231
+ }, undefined, true, undefined, this) : null,
3167
3232
  /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(Text, {
3168
3233
  children: [
3169
3234
  "Output directory: ",
@@ -3438,9 +3503,10 @@ function Onboard({
3438
3503
  }
3439
3504
  }
3440
3505
  }
3506
+ const slackConfig = getSlackConfiguration(process.env);
3441
3507
  const integrations = {
3442
3508
  github: !!process.env.GITHUB_TOKEN,
3443
- slack: !!process.env.SLACK_BOT_TOKEN,
3509
+ slack: isSlackConfigured(process.env),
3444
3510
  gitlab: !!process.env.GITLAB_TOKEN,
3445
3511
  sentry: !!process.env.SENTRY_AUTH_TOKEN
3446
3512
  };
@@ -3464,6 +3530,8 @@ function Onboard({
3464
3530
  githubName: process.env.GITHUB_NAME || "",
3465
3531
  slackBotToken: process.env.SLACK_BOT_TOKEN || "",
3466
3532
  slackAppToken: process.env.SLACK_APP_TOKEN || "",
3533
+ slackSigningSecret: process.env.SLACK_SIGNING_SECRET || "",
3534
+ slackMode: slackConfig.mode ?? "socket",
3467
3535
  gitlabToken: process.env.GITLAB_TOKEN || "",
3468
3536
  gitlabEmail: process.env.GITLAB_EMAIL || "",
3469
3537
  sentryToken: process.env.SENTRY_AUTH_TOKEN || "",