@desplega.ai/agent-swarm 2.13.1 → 2.13.3

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 (229) hide show
  1. package/README.md +1 -1
  2. package/dist/acp-adapter-t2q6nsqv.js +17 -0
  3. package/dist/{acp-targets-n7vm5atw.js → acp-targets-k8xs4tj8.js} +7 -7
  4. package/dist/{actions-hq6wp9xv.js → actions-pg5fxjer.js} +25 -25
  5. package/dist/{agent-fs-provision-y0qc1rdd.js → agent-fs-provision-vbk3fppw.js} +4 -4
  6. package/dist/{amp-adapter-1qqs6h91.js → amp-adapter-adbhxsz9.js} +2 -2
  7. package/dist/{app-7m4z44rv.js → app-b267ggx1.js} +8 -8
  8. package/dist/{approval-notifications-8sr41gjx.js → approval-notifications-evc1a9z5.js} +9 -9
  9. package/dist/{assistant-hkczwfv6.js → assistant-wgz2ab84.js} +26 -26
  10. package/dist/{boot-args-schema-8025snev.js → boot-args-schema-6tpk28j4.js} +1 -1
  11. package/dist/{boot-reembed-15m87nr1.js → boot-reembed-ankp369c.js} +1 -1
  12. package/dist/{boot-reembed-4bbpxjh1.js → boot-reembed-r1zyvefv.js} +1 -1
  13. package/dist/{boot-scrub-sweep-eajr97e9.js → boot-scrub-sweep-cgb6r5bd.js} +2 -2
  14. package/dist/{boot-seeds-9cwy39jx.js → boot-seeds-bjceqg7b.js} +4 -4
  15. package/dist/{claude-adapter-g61wa4rt.js → claude-adapter-knztdnff.js} +9 -6
  16. package/dist/{claude-managed-adapter-znkk0prm.js → claude-managed-adapter-qwejzqkk.js} +3 -3
  17. package/dist/{claude-managed-setup-f1wndkr2.js → claude-managed-setup-0vgz4d1j.js} +4 -4
  18. package/dist/{claude-sdk-session-687xzf21.js → claude-sdk-session-c3g6dv0g.js} +11984 -11775
  19. package/dist/{cli-4mj5g29m.js → cli-0j4qmc80.js} +7 -7
  20. package/dist/{cli-fn8aj7gb.js → cli-1606qw3n.js} +98 -71
  21. package/dist/{cli-w41bvvms.js → cli-1gnf5c7x.js} +1 -1
  22. package/dist/{cli-aebswqmz.js → cli-1wew39p0.js} +15 -15
  23. package/dist/{cli-0fx95c06.js → cli-268b3dgn.js} +2 -2
  24. package/dist/cli-2ap1the6.js +11 -0
  25. package/dist/{cli-w6c6dj91.js → cli-4dyhzhpx.js} +1 -1
  26. package/dist/{cli-grcc2h2g.js → cli-55fqpd9q.js} +8 -8
  27. package/dist/{cli-p7g7wd9n.js → cli-61fzwtjk.js} +7 -7
  28. package/dist/{cli-zaate0rd.js → cli-61p7ty8d.js} +2 -2
  29. package/dist/{cli-cp0m07wb.js → cli-7fa6yv98.js} +2 -2
  30. package/dist/{cli-5v6b2am8.js → cli-7kv5d674.js} +7 -7
  31. package/dist/{cli-6r1dwegd.js → cli-80d5g0fa.js} +2 -2
  32. package/dist/{cli-0xwb7zpt.js → cli-88np9va3.js} +1 -1
  33. package/dist/{cli-1b5axkt1.js → cli-8m6gqnf1.js} +2 -2
  34. package/dist/{cli-0a336ze7.js → cli-8pnawt98.js} +3 -3
  35. package/dist/{cli-7ewre3dm.js → cli-8sayvj48.js} +2 -2
  36. package/dist/{cli-yeh3g1q6.js → cli-9gmkw6xn.js} +53 -32
  37. package/dist/{cli-h03j6je3.js → cli-a21cwm89.js} +2 -2
  38. package/dist/{cli-s6fhqbz1.js → cli-aytna2fm.js} +1 -1
  39. package/dist/{cli-84xtgbn6.js → cli-b0m3bg0f.js} +100 -2
  40. package/dist/{cli-mwxez0pz.js → cli-b768ek79.js} +1 -1
  41. package/dist/{cli-9xx36trj.js → cli-bh53ppqm.js} +2 -2
  42. package/dist/{cli-1carhg8g.js → cli-czeh7x13.js} +3 -3
  43. package/dist/{cli-cd9acnvd.js → cli-djwt4mtn.js} +71 -5
  44. package/dist/{cli-sfajkbd7.js → cli-dq30fq3q.js} +2 -2
  45. package/dist/{cli-a8ts6x1n.js → cli-dw43pnzp.js} +5 -5
  46. package/dist/{cli-h9bejmkf.js → cli-e4gx499y.js} +52 -29
  47. package/dist/{cli-t90k0phh.js → cli-ea367bdn.js} +32 -23
  48. package/dist/{cli-cmgdptmx.js → cli-ef590376.js} +29 -5
  49. package/dist/{cli-8rbkw18r.js → cli-fbmgpt72.js} +2 -2
  50. package/dist/{cli-tzzas8rb.js → cli-g4dhd3pr.js} +2 -2
  51. package/dist/{cli-snypfjgj.js → cli-gc715jrc.js} +1 -1
  52. package/dist/{cli-c0tyzt73.js → cli-gkjw33x5.js} +1 -1
  53. package/dist/{cli-z6m6xzxt.js → cli-grk77aen.js} +26 -5
  54. package/dist/{cli-hs3mqswp.js → cli-gxqwm3k3.js} +5 -5
  55. package/dist/{cli-4h90xaet.js → cli-h3drhntp.js} +1 -1
  56. package/dist/{cli-qn79645p.js → cli-h9d3sdnc.js} +1 -1
  57. package/dist/{cli-byxsctca.js → cli-hd2a204w.js} +6 -6
  58. package/dist/{cli-1dr5at77.js → cli-hhb8kbwd.js} +12 -12
  59. package/dist/{cli-zvpkrgsc.js → cli-hpxcfvdm.js} +3 -3
  60. package/dist/{cli-cqxwjb93.js → cli-hxj888w3.js} +1 -1
  61. package/dist/{cli-82j36f2m.js → cli-jjzxsk47.js} +9 -3
  62. package/dist/{cli-13t0smbk.js → cli-ka4tqjzd.js} +185 -58
  63. package/dist/{cli-jhtvt7gn.js → cli-kh973792.js} +3 -3
  64. package/dist/{cli-x5yb8zc8.js → cli-kwm1bek7.js} +1 -1
  65. package/dist/{cli-bjmq14k9.js → cli-mgr3gatr.js} +4 -4
  66. package/dist/{cli-c8kqmzzf.js → cli-nbawx3s0.js} +2 -2
  67. package/dist/{cli-04103ryh.js → cli-ppf9ap9n.js} +1 -1
  68. package/dist/{cli-dd57p1gd.js → cli-pzsedyb0.js} +4 -4
  69. package/dist/{cli-32xndx6b.js → cli-r6xnchva.js} +2 -2
  70. package/dist/{cli-4tbvndmm.js → cli-r8ddn0hf.js} +1 -1
  71. package/dist/{cli-y6qqbpwc.js → cli-snwz16eg.js} +1 -1
  72. package/dist/{cli-w24f3j49.js → cli-sy2ge2ye.js} +7 -6
  73. package/dist/{cli-3m8vqehw.js → cli-syqcny89.js} +3 -3
  74. package/dist/{cli-qx1dwrr5.js → cli-tjf1bh1v.js} +2 -2
  75. package/dist/{cli-xhkek467.js → cli-v1v49t36.js} +28 -2
  76. package/dist/{cli-cn6fpa1p.js → cli-v8rpjrnx.js} +1 -1
  77. package/dist/{cli-mmw2sjaf.js → cli-vgh5adn9.js} +5 -5
  78. package/dist/{cli-3zyme1wt.js → cli-w24741sm.js} +3 -3
  79. package/dist/{cli-gq6qhmrr.js → cli-wsnradtk.js} +3 -3
  80. package/dist/{cli-nk8swfpx.js → cli-wtffytm8.js} +3 -3
  81. package/dist/{cli-0m77n7ej.js → cli-xc8m5cjn.js} +54 -12
  82. package/dist/{cli-8cmjkbvj.js → cli-y0q92v4r.js} +2 -2
  83. package/dist/{cli-gedf48yw.js → cli-y754psdt.js} +4 -4
  84. package/dist/cli.js +19 -18
  85. package/dist/{codex-adapter-ysfg6ty3.js → codex-adapter-493vb8cv.js} +5 -5
  86. package/dist/{codex-hook-c0nvm30r.js → codex-hook-ej8hn6z5.js} +9 -2
  87. package/dist/{codex-session-runner-823scr6g.js → codex-session-runner-ps5m4z1g.js} +5 -5
  88. package/dist/{commands-5rbm07fz.js → commands-shktk0b8.js} +3 -3
  89. package/dist/{controllers-connect-34jzhfft.js → controllers-connect-yft057ws.js} +24 -24
  90. package/dist/core-nheayfgm.js +42 -0
  91. package/dist/{cursor-adapter-w1681kp1.js → cursor-adapter-8fpm4dng.js} +1 -1
  92. package/dist/{db-6bkgbfwk.js → db-0ezhdhz5.js} +3 -3
  93. package/dist/{db-hcj16x7z.js → db-84pz2w5c.js} +2 -2
  94. package/dist/{dispatcher-jgjqrfzv.js → dispatcher-h2rz69f6.js} +23 -23
  95. package/dist/{easter-egg-3d-w17nsny6.js → easter-egg-3d-m41ad78v.js} +1 -1
  96. package/dist/{embedding-space-v06fwy7b.js → embedding-space-yam9zwzj.js} +6 -6
  97. package/dist/{embeddings-g50dxea4.js → embeddings-g2be0y8q.js} +1 -1
  98. package/dist/{execute-1n36haw1.js → execute-hhdejgzf.js} +1 -1
  99. package/dist/{external-channel-43tv8pg6.js → external-channel-kjt2yzfj.js} +2 -2
  100. package/dist/fx-adapter-8g7xsp8q.js +20 -0
  101. package/dist/{grok-adapter-my5j8mdf.js → grok-adapter-ztk2zkz1.js} +9 -9
  102. package/dist/handlers-9ywssz71.js +41 -0
  103. package/dist/{heartbeat-sf3nk937.js → heartbeat-2e5jdexj.js} +25 -25
  104. package/dist/{hook-dqph1e05.js → hook-34s8cmgn.js} +9 -6
  105. package/dist/{hook-m1m9dm6w.js → hook-acg9saz7.js} +8 -5
  106. package/dist/{http-w0th1cz9.js → http-ra2zr2f8.js} +304 -111
  107. package/dist/{index-pb03vans.js → index-2z1z7qx6.js} +26 -26
  108. package/dist/{index-p2f5xg64.js → index-3j803vnb.js} +36259 -34299
  109. package/dist/index-6mgbdtv1.js +44 -0
  110. package/dist/{index-e8pz8qdg.js → index-7dgxveck.js} +2 -2
  111. package/dist/{index-gkpfgpg7.js → index-93bw5wds.js} +1 -1
  112. package/dist/{index-c0e8en64.js → index-9q42cr54.js} +1 -1
  113. package/dist/{index-ffba0z8q.js → index-9r4j0a60.js} +28 -18
  114. package/dist/index-hqdsn2t2.js +39 -0
  115. package/dist/{index-k8ajc0g0.js → index-maddg9ys.js} +1 -1
  116. package/dist/{index-y4vd4mhn.js → index-mbpxhc4w.js} +1 -1
  117. package/dist/index-rz8ve510.js +569 -0
  118. package/dist/index-st231bqv.js +40 -0
  119. package/dist/{index-ez823q84.js → index-ym9fgxad.js} +1 -1
  120. package/dist/{keepalive-2v06q2e8.js → keepalive-vjnnqbkm.js} +4 -4
  121. package/dist/lead-mk0xkth2.js +82 -0
  122. package/dist/{maintenance-vx7vjhhy.js → maintenance-px2g599e.js} +1 -1
  123. package/dist/{oauth-refresh-sweep-g06k4bza.js → oauth-refresh-sweep-nkykf09m.js} +3 -3
  124. package/dist/{object-webhooks-3dzdq4fm.js → object-webhooks-gt9xnq21.js} +7 -7
  125. package/dist/{onboard-232pazny.js → onboard-1f134p65.js} +3 -3
  126. package/dist/{opencode-adapter-t0paqbh8.js → opencode-adapter-94976yab.js} +6 -6
  127. package/dist/{otel-impl-kmpkyp4y.js → otel-impl-5d4p2fqs.js} +1 -1
  128. package/dist/{pending-x0z3vx1x.js → pending-vkk0vx6n.js} +24 -24
  129. package/dist/{pi-mono-adapter-7pmypn6d.js → pi-mono-adapter-cyzdv5er.js} +11 -11
  130. package/dist/{pricing-refresh-ytjmtyd7.js → pricing-refresh-jtmjwss9.js} +2 -2
  131. package/dist/{rbac-roles-xyaxekh3.js → rbac-roles-1fvmdyeb.js} +2 -2
  132. package/dist/{rbac-roles-fgm5mxr2.js → rbac-roles-yd1fgpsn.js} +3 -3
  133. package/dist/{render-v2-ws972g4r.js → render-v2-kb5s3vx4.js} +8 -8
  134. package/dist/{resume-m6mjzhkp.js → resume-z1vs44n5.js} +11 -11
  135. package/dist/{runtime-zzpc0c8a.js → runtime-gk6ct7r7.js} +1 -1
  136. package/dist/{session-access-vp35xs91.js → session-access-nz6nre4d.js} +5 -5
  137. package/dist/{session-source-backfill-p73e8zbe.js → session-source-backfill-wb60zjkd.js} +1 -1
  138. package/dist/{setup-r4kd7rxg.js → setup-2x8g8j4s.js} +1 -1
  139. package/dist/thread-buffer-d50rqpev.js +42 -0
  140. package/dist/{tree-visibility-07h2tbs2.js → tree-visibility-ts3z30kw.js} +2 -2
  141. package/dist/{user-merge-jobs-96vg9rpe.js → user-merge-jobs-zetg26e0.js} +3 -3
  142. package/dist/{virtual-modules-vgn3f2x4.js → virtual-modules-674fka8x.js} +3 -3
  143. package/dist/{work-objects-74hbcx3e.js → work-objects-w52yyjxm.js} +26 -26
  144. package/dist/worker-662x1vse.js +82 -0
  145. package/dist/{worker-follow-up-ezavwn5d.js → worker-follow-up-dyfxyjbj.js} +23 -23
  146. package/openapi.json +6 -2
  147. package/package.json +7 -6
  148. package/src/be/migrations/341_user_token_expiry.sql +4 -0
  149. package/src/be/scripts/run-credential.ts +55 -1
  150. package/src/be/scripts/typecheck.ts +4 -4
  151. package/src/be/scripts/user-code-mode.ts +160 -0
  152. package/src/be/users.ts +48 -7
  153. package/src/commands/onboard/agent-fs-version.ts +1 -1
  154. package/src/commands/runner.ts +62 -6
  155. package/src/hooks/codex-hook.ts +15 -4
  156. package/src/hooks/hook.ts +7 -0
  157. package/src/http/script-connection-proxy.ts +18 -6
  158. package/src/http/scripts.ts +2 -11
  159. package/src/http/session-cost-recompute.ts +3 -1
  160. package/src/http/session-data.ts +3 -0
  161. package/src/http/users.ts +1 -0
  162. package/src/integrations/chat-sdk/adapters.ts +29 -0
  163. package/src/integrations/chat-sdk/limits.ts +3 -0
  164. package/src/integrations/chat-sdk/rocketchat/README.md +8 -0
  165. package/src/integrations/chat-sdk/rocketchat/index.ts +790 -0
  166. package/src/integrations/chat-sdk/rocketchat/markdown.ts +210 -0
  167. package/src/integrations/chat-sdk/rocketchat/types.ts +249 -0
  168. package/src/integrations/chat-sdk/runtime.ts +11 -5
  169. package/src/integrations/chat-sdk/schema.ts +37 -3
  170. package/src/integrations/chat-sdk/status.ts +9 -0
  171. package/src/prompts/base-prompt.ts +1 -1
  172. package/src/prompts/session-templates.ts +1 -1
  173. package/src/providers/acp-targets.ts +2 -2
  174. package/src/providers/amp-adapter.ts +1 -1
  175. package/src/providers/claude-adapter.ts +21 -1
  176. package/src/providers/claude-sdk-session.ts +22 -3
  177. package/src/providers/claude-session-events.ts +76 -1
  178. package/src/providers/cursor-adapter.ts +1 -1
  179. package/src/providers/fx-adapter.ts +2 -2
  180. package/src/providers/pricing-sources.md +3 -0
  181. package/src/providers/types.ts +13 -0
  182. package/src/rbac/legacy-policy.ts +1 -0
  183. package/src/rbac/permissions.ts +4 -0
  184. package/src/scripts-runtime/executors/native.ts +225 -67
  185. package/src/scripts-runtime/mcp-client.ts +2 -1
  186. package/src/scripts-runtime/swarm-sdk.ts +2 -1
  187. package/src/scripts-runtime/types/stdlib.d.ts +4 -4
  188. package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -4
  189. package/src/server-user.ts +98 -0
  190. package/src/slack/render-v2.ts +27 -7
  191. package/src/tests/base-prompt.test.ts +6 -2
  192. package/src/tests/chat-sdk-rocketchat-vendored.test.ts +67 -0
  193. package/src/tests/chat-sdk-status-route.test.ts +13 -1
  194. package/src/tests/claude-adapter.test.ts +115 -0
  195. package/src/tests/codex-app-server.test.ts +4 -6
  196. package/src/tests/fixtures/fx/acp-updates-recorded.jsonl +1 -1
  197. package/src/tests/internal-ai/complete-structured.test.ts +105 -0
  198. package/src/tests/internal-ai/credentials.test.ts +149 -0
  199. package/src/tests/internal-ai/task-title.test.ts +78 -0
  200. package/src/tests/mcp-input-caps.test.ts +16 -11
  201. package/src/tests/mcp-user-route.test.ts +10 -1
  202. package/src/tests/runner-slot-reconcile.test.ts +102 -0
  203. package/src/tests/script-connections-mcp.test.ts +14 -10
  204. package/src/tests/script-connections-sql.test.ts +6 -2
  205. package/src/tests/script-connections.test.ts +2 -0
  206. package/src/tests/slack-render-v2.test.ts +85 -0
  207. package/src/tools/script-common.ts +37 -22
  208. package/src/tools/script-query-types.ts +1 -1
  209. package/src/tools/script-run.ts +1 -1
  210. package/src/tools/script-search.ts +12 -10
  211. package/src/tools/utils.ts +7 -1
  212. package/src/types.ts +2 -1
  213. package/src/utils/internal-ai/complete-structured.ts +36 -5
  214. package/src/utils/internal-ai/credentials.ts +78 -2
  215. package/src/utils/internal-ai/models.ts +37 -1
  216. package/src/utils/internal-ai/task-title.ts +31 -1
  217. package/templates/skills/chat-sdk/content.md +2 -2
  218. package/templates/skills/swarm-docs/content.md +10 -0
  219. package/dist/acp-adapter-xtj40wd8.js +0 -17
  220. package/dist/core-kdehq26g.js +0 -42
  221. package/dist/fx-adapter-bvh05t4a.js +0 -20
  222. package/dist/handlers-wyymeeqh.js +0 -41
  223. package/dist/index-22khdtby.js +0 -44
  224. package/dist/index-np0582ac.js +0 -40
  225. package/dist/index-vgkrj1jt.js +0 -39
  226. package/dist/lead-55z813ng.js +0 -79
  227. package/dist/thread-buffer-cm2nzq6t.js +0 -42
  228. package/dist/worker-5pn2vzx6.js +0 -79
  229. /package/dist/{cli-m4ejz4nj.js → cli-cah298e5.js} +0 -0
@@ -142,11 +142,7 @@ function describeScriptFailure(
142
142
  return undefined;
143
143
  }
144
144
 
145
- export async function proxyScriptsApi(args: {
146
- method: "GET" | "POST" | "PATCH" | "DELETE";
147
- path: string;
148
- body?: unknown;
149
- requestInfo: RequestInfo;
145
+ type ScriptToolRendering = {
150
146
  successMessage: (data: unknown) => string;
151
147
  /** Optional model-facing rendering of the success payload (appended to the text channel). */
152
148
  successDetails?: (data: unknown) => string | undefined;
@@ -162,26 +158,45 @@ export async function proxyScriptsApi(args: {
162
158
  * no pagination) — everything else stays capped.
163
159
  */
164
160
  uncappedDetails?: boolean;
165
- }): Promise<SwarmToolResult> {
161
+ };
162
+
163
+ /**
164
+ * Turn a scripts API response into the tool result. Shared by the agent
165
+ * tools (over HTTP) and the user MCP code-mode tools (in process).
166
+ */
167
+ export function scriptsApiToolResult(
168
+ data: unknown,
169
+ res: { ok: boolean; status: number },
170
+ args: ScriptToolRendering,
171
+ ): SwarmToolResult {
172
+ const toolData = { status: res.status, data };
173
+ const failure = describeScriptFailure(res.ok, res.status, data);
174
+ if (failure) {
175
+ return toolErr(failure.message, {
176
+ details: failure.details ?? capDetails(args.failureDetails?.(data)),
177
+ data: toolData,
178
+ });
179
+ }
180
+
181
+ const successDetails = args.successDetails?.(data);
182
+ return toolOk(args.successMessage(data), {
183
+ details: args.uncappedDetails ? successDetails : capDetails(successDetails),
184
+ data: toolData,
185
+ });
186
+ }
187
+
188
+ export async function proxyScriptsApi(
189
+ args: {
190
+ method: "GET" | "POST" | "PATCH" | "DELETE";
191
+ path: string;
192
+ body?: unknown;
193
+ requestInfo: RequestInfo;
194
+ } & ScriptToolRendering,
195
+ ): Promise<SwarmToolResult> {
166
196
  return proxySwarmApi({
167
197
  ...args,
168
198
  transportError: SCRIPT_TRANSPORT_ERROR,
169
- respond: (data, res) => {
170
- const toolData = { status: res.status, data };
171
- const failure = describeScriptFailure(res.ok, res.status, data);
172
- if (failure) {
173
- return toolErr(failure.message, {
174
- details: failure.details ?? capDetails(args.failureDetails?.(data)),
175
- data: toolData,
176
- });
177
- }
178
-
179
- const successDetails = args.successDetails?.(data);
180
- return toolOk(args.successMessage(data), {
181
- details: args.uncappedDetails ? successDetails : capDetails(successDetails),
182
- data: toolData,
183
- });
184
- },
199
+ respond: (data, res) => scriptsApiToolResult(data, res, args),
185
200
  });
186
201
  }
187
202
 
@@ -11,7 +11,7 @@ import {
11
11
  export const SCRIPT_QUERY_TYPES_DESCRIPTION =
12
12
  "Fetch the auto-generated `swarm-sdk.d.ts` (derived from the live MCP tool registry) + the `stdlib.d.ts` blobs — for IDE-style introspection before authoring or running a script. Pass `name` to also get that script's signature; omit it for the swarm-wide type surface. The same types are used by `script-upsert`'s typecheck pass, so they are authoritative.";
13
13
 
14
- function renderTypeBlobs(data: unknown): string | undefined {
14
+ export function renderTypeBlobs(data: unknown): string | undefined {
15
15
  if (typeof data !== "object" || data === null) return undefined;
16
16
  const body = data as {
17
17
  signature?: unknown;
@@ -13,7 +13,7 @@ import {
13
13
  export const SCRIPT_RUN_DESCRIPTION =
14
14
  "Run a named swarm-shared script (callable across agents and from workflow `swarm-script` nodes), OR inline source (auto-saved as scratch to the catalog). Inline source executes without the `script-upsert` compile-time typecheck. Use for swarm-visible, durable scripts. For local-only throwaway TS, use code-mode `run`. The run ends when the script's default export resolves: a call it did not await gets 2 s more, then is stopped (native) or aborted at once (quickjs), so await every write that must land. A `Promise.race` deadline therefore bounds the run; a nested `script_run` that lost the race keeps running on the server under its own wall.";
15
15
 
16
- function renderRunOutput(data: unknown): string | undefined {
16
+ export function renderRunOutput(data: unknown): string | undefined {
17
17
  if (typeof data !== "object" || data === null) return undefined;
18
18
  const body = data as {
19
19
  result?: unknown;
@@ -6,7 +6,7 @@ import { proxyScriptsApi, scriptScopeSchema, scriptToolOutputSchema } from "./sc
6
6
  export const SCRIPT_SEARCH_DESCRIPTION =
7
7
  "Semantic search over swarm-shared TypeScript scripts (catalog persisted in the agent-swarm DB; callable from agents and workflows). For ephemeral throwaway TS on your local machine, use code-mode instead.";
8
8
 
9
- function renderSearchResults(data: unknown): string | undefined {
9
+ export function renderSearchResults(data: unknown): string | undefined {
10
10
  if (typeof data !== "object" || data === null) return undefined;
11
11
  const results = (data as { results?: unknown[] }).results;
12
12
  if (!Array.isArray(results) || results.length === 0) return undefined;
@@ -20,6 +20,16 @@ function renderSearchResults(data: unknown): string | undefined {
20
20
  .join("\n");
21
21
  }
22
22
 
23
+ export function searchSuccessMessage(data: unknown): string {
24
+ const results =
25
+ typeof data === "object" &&
26
+ data !== null &&
27
+ Array.isArray((data as { results?: unknown[] }).results)
28
+ ? (data as { results: unknown[] }).results
29
+ : [];
30
+ return `Found ${results.length} script(s).`;
31
+ }
32
+
23
33
  export const registerScriptSearchTool = (server: McpServer) => {
24
34
  createToolRegistrar(server)(
25
35
  "script-search",
@@ -40,15 +50,7 @@ export const registerScriptSearchTool = (server: McpServer) => {
40
50
  path: "/api/scripts/search",
41
51
  body: args,
42
52
  requestInfo,
43
- successMessage: (data) => {
44
- const results =
45
- typeof data === "object" &&
46
- data !== null &&
47
- Array.isArray((data as { results?: unknown[] }).results)
48
- ? (data as { results: unknown[] }).results
49
- : [];
50
- return `Found ${results.length} script(s).`;
51
- },
53
+ successMessage: searchSuccessMessage,
52
54
  successDetails: renderSearchResults,
53
55
  }),
54
56
  );
@@ -701,8 +701,14 @@ function canonicalOverflowPayload(toolName: string, result: SwarmToolResult): st
701
701
  * and the full value could never leave the store over MCP. Its oversized
702
702
  * results go out whole; the harness applies its own truncation and the
703
703
  * kv-get nudge steers big-value processing toward scripts.
704
+ *
705
+ * script-get-types is the user MCP's type surface (src/server-user.ts): a user
706
+ * has no kv to read a spill back from, and the declarations only help whole.
704
707
  */
705
- export const CTX_CONTROL_EXEMPT_TOOLS: ReadonlySet<string> = new Set(["kv-get"]);
708
+ export const CTX_CONTROL_EXEMPT_TOOLS: ReadonlySet<string> = new Set([
709
+ "kv-get",
710
+ "script-get-types",
711
+ ]);
706
712
 
707
713
  type ArrayTarget = {
708
714
  path: string;
package/src/types.ts CHANGED
@@ -2114,7 +2114,8 @@ export const SessionCostSchema = z
2114
2114
  // had no matching pricing rows; totalCostUsd is whatever
2115
2115
  // the worker submitted (often 0).
2116
2116
  // 'estimated' — the API priced fallback token counts at an assumed
2117
- // model (amp with a failed thread export).
2117
+ // model (amp with a failed thread export), or summed
2118
+ // per-message usage (claude killed before its result).
2118
2119
  costSource: SessionCostSourceSchema.default("harness"),
2119
2120
  kind: SessionCostKindSchema.default("harness"),
2120
2121
  // Migration 128: adapter-reported amount retained for reconciliation only.
@@ -212,6 +212,24 @@ export interface CompleteStructuredResult<TData> {
212
212
  model: string;
213
213
  }
214
214
 
215
+ /**
216
+ * Extra pi-ai request options a credential kind needs, or `undefined` for the
217
+ * providers that need none.
218
+ *
219
+ * Only Bedrock: it has no key to pass, so the one thing the adapter cannot
220
+ * derive is the region, and the resolver established that (from `AWS_REGION` or
221
+ * `AWS_DEFAULT_REGION`). It goes in as the documented `region` option rather
222
+ * than an `env` override, because the catalog's model entries carry a
223
+ * `us-east-1` base URL and an explicit region is what stops that default from
224
+ * winning over the deployment's actual region. Credentials are deliberately
225
+ * absent: the AWS SDK reads its own chain from `process.env`, and no AWS
226
+ * variable is in the swarm-config allowlist, so there is nothing extra to
227
+ * forward.
228
+ */
229
+ function providerRequestOptions(cred: ResolvedCredential): Record<string, unknown> | undefined {
230
+ return cred.kind === "amazon-bedrock" ? { region: cred.region } : undefined;
231
+ }
232
+
215
233
  /**
216
234
  * Run a structured-output completion. Returns the parsed object on success,
217
235
  * `null` on auth-missing or exhausted retries (errors logged, never thrown).
@@ -304,7 +322,8 @@ export async function completeStructuredWithModel<TZod extends z.ZodTypeAny>(
304
322
  return null;
305
323
  }
306
324
 
307
- // 3. pi-ai path (openrouter / anthropic / openai / openai-codex).
325
+ // 3. pi-ai path (openrouter / anthropic / openai / openai-codex / fireworks /
326
+ // amazon-bedrock).
308
327
  const [provider, modelId] = parseModelStr(cred.modelDefault);
309
328
  let model: ReturnType<typeof getModel>;
310
329
  try {
@@ -341,10 +360,18 @@ export async function completeStructuredWithModel<TZod extends z.ZodTypeAny>(
341
360
  provider === "openrouter" ? getOpenRouterAttributionHeaders(model.baseUrl, env) : {};
342
361
 
343
362
  const completeFn = opts._complete ?? complete;
363
+ // Bedrock's adapter maps a `{type:"tool"}` choice to `toolChoice: {tool:{name}}`,
364
+ // which is the same forcing the Anthropic adapter does. Without it the
365
+ // Converse request carries no toolChoice and the model is free to answer in
366
+ // prose, which costs a retry per call.
344
367
  const toolChoice =
345
- model.api === "anthropic-messages"
368
+ model.api === "anthropic-messages" || model.api === "bedrock-converse-stream"
346
369
  ? ({ type: "tool", name: opts.toolName } as const)
347
370
  : ("required" as const);
371
+ // Bedrock is the one provider whose request config is not a key: the SDK
372
+ // reads its credential chain from the environment, and the region the
373
+ // resolver established has to travel with the request.
374
+ const providerOptions = providerRequestOptions(cred);
348
375
  let userPrompt = opts.userPrompt;
349
376
  let lastErr: unknown = null;
350
377
  for (let attempt = 0; attempt < retries; attempt++) {
@@ -364,9 +391,13 @@ export async function completeStructuredWithModel<TZod extends z.ZodTypeAny>(
364
391
  },
365
392
  // pi-ai's ProviderStreamOptions type only allows known providers;
366
393
  // we pass the validated apiKey through verbatim.
367
- { apiKey: cred.apiKey, signal: opts.signal, toolChoice, headers } as Parameters<
368
- typeof completeFn
369
- >[2],
394
+ {
395
+ apiKey: "apiKey" in cred ? cred.apiKey : undefined,
396
+ signal: opts.signal,
397
+ toolChoice,
398
+ headers,
399
+ ...(providerOptions ?? {}),
400
+ } as Parameters<typeof completeFn>[2],
370
401
  );
371
402
 
372
403
  const toolCall = msg.content.find(
@@ -76,10 +76,14 @@ const resolveOAuthApiKey: OAuthApiKeyResolver = async (providerId, credentials)
76
76
  * credential kind (`resolveRaterModelString`: `MEMORY_RATER_MODEL` env, else
77
77
  * the pinned `MEMORY_RATER_DEFAULT_MODEL`). It is not the general
78
78
  * `DEFAULT_MODEL`; callers that want that (workflow LLM nodes) read it directly.
79
+ *
80
+ * `region` exists only on the `amazon-bedrock` variant: the AWS SDK needs a
81
+ * region and there is no honest default to invent, so it is resolved once here
82
+ * and carried to the call site.
79
83
  */
80
84
  export type ResolvedCredential =
81
85
  | {
82
- kind: "openrouter" | "anthropic" | "openai" | "openai-codex";
86
+ kind: "openrouter" | "anthropic" | "openai" | "openai-codex" | "fireworks";
83
87
  apiKey: string;
84
88
  modelDefault: string;
85
89
  }
@@ -87,6 +91,20 @@ export type ResolvedCredential =
87
91
  kind: "claude-cli";
88
92
  modelDefault: string;
89
93
  // No apiKey — the `claude` CLI uses CLAUDE_CODE_OAUTH_TOKEN from env directly.
94
+ }
95
+ | {
96
+ /**
97
+ * No `apiKey`: Bedrock authenticates through the AWS SDK's credential
98
+ * chain (profile, IAM keys, ECS task role, IRSA) or the
99
+ * `AWS_BEARER_TOKEN_BEDROCK` bearer identity, both of which the SDK reads
100
+ * from the environment itself. A placeholder key would be a lie that some
101
+ * downstream code could act on; the absence of the field is the honest
102
+ * shape.
103
+ */
104
+ kind: "amazon-bedrock";
105
+ modelDefault: string;
106
+ /** `AWS_REGION` (or `AWS_DEFAULT_REGION`), the SDK's required region. */
107
+ region: string;
90
108
  };
91
109
 
92
110
  export interface ResolveCredentialOptions {
@@ -111,6 +129,18 @@ export interface ResolveCredentialOptions {
111
129
  /**
112
130
  * Credential kinds in precedence order. `resolveCredentials` walks this list;
113
131
  * `resolveCredential` returns the first hit.
132
+ *
133
+ * `fireworks` and `amazon-bedrock` sit AFTER every kind that shipped before
134
+ * them. Both can be present in an environment that already works today (a
135
+ * deployment with an OpenRouter key and an ambient AWS profile, or a worker
136
+ * that sets FIREWORKS_API_KEY for its harness), so putting either of them
137
+ * earlier would silently capture calls that currently go to a key the
138
+ * operator chose explicitly. Adding them at the end keeps every existing
139
+ * caller on its current provider, which is the documented cost of being the
140
+ * newest entries rather than the guide for where they belong by quality.
141
+ *
142
+ * `amazon-bedrock` is last of the two because it resolves from an ambient
143
+ * credential chain rather than a key someone set on purpose for this layer.
114
144
  */
115
145
  export const CREDENTIAL_KIND_PRECEDENCE: readonly CredentialKind[] = [
116
146
  "openrouter",
@@ -118,6 +148,8 @@ export const CREDENTIAL_KIND_PRECEDENCE: readonly CredentialKind[] = [
118
148
  "openai",
119
149
  "openai-codex",
120
150
  "claude-cli",
151
+ "fireworks",
152
+ "amazon-bedrock",
121
153
  ];
122
154
 
123
155
  export interface ResolveCredentialsOptions extends ResolveCredentialOptions {
@@ -144,7 +176,9 @@ export interface ResolveCredentialsOptions extends ResolveCredentialOptions {
144
176
  * 3. `env.OPENAI_API_KEY` (via pi-ai `getEnvApiKey("openai")`)
145
177
  * 4. codex OAuth (only when `apiUrl && apiKey` are provided)
146
178
  * 5. `env.CLAUDE_CODE_OAUTH_TOKEN` → claude-cli fallback
147
- * 6. null
179
+ * 6. `env.FIREWORKS_API_KEY` (via pi-ai `getEnvApiKey("fireworks")`)
180
+ * 7. the AWS credential chain **and** a region → `amazon-bedrock`
181
+ * 8. null
148
182
  */
149
183
  export async function resolveCredential(
150
184
  opts: ResolveCredentialOptions = {},
@@ -227,9 +261,51 @@ async function resolveKind(
227
261
  // hook subprocesses (security), so the hook reads the mirror instead.
228
262
  if (!env.AGENT_SWARM_CLAUDE_OAUTH_TOKEN && !env.CLAUDE_CODE_OAUTH_TOKEN) return null;
229
263
  return { kind, modelDefault: resolveRaterModelString(kind) };
264
+ case "fireworks": {
265
+ const key = env.FIREWORKS_API_KEY ?? getEnvKey("fireworks");
266
+ if (!key) return null;
267
+ return {
268
+ kind,
269
+ apiKey: selectCredential(key, undefined, "FIREWORKS_API_KEY").selected,
270
+ modelDefault: resolveRaterModelString(kind),
271
+ };
272
+ }
273
+ case "amazon-bedrock":
274
+ return resolveBedrockCredential(env, getEnvKey);
230
275
  }
231
276
  }
232
277
 
278
+ /**
279
+ * Bedrock is credential-chain auth, not a key: pi-ai's `getEnvApiKey` returns
280
+ * the sentinel `"<authenticated>"` when any link of the chain is configured
281
+ * (`AWS_PROFILE`, an IAM key pair, `AWS_BEARER_TOKEN_BEDROCK`, ECS task role,
282
+ * IRSA). Nothing in this layer ever sees or handles the actual credential.
283
+ *
284
+ * Region is required as well. pi-ai's adapter would fall back to `us-east-1`
285
+ * via the SDK, which may not be where inference is available; rather than
286
+ * guess, an unset region is treated like an absent key (a clean no-op), so no
287
+ * `region` is ever fabricated and the caller keeps whatever it had.
288
+ */
289
+ function resolveBedrockCredential(
290
+ env: NodeJS.ProcessEnv,
291
+ getEnvKey: typeof getEnvApiKey,
292
+ ): ResolvedCredential | null {
293
+ // `||`, not `??`: an env var set to an empty or whitespace-only value is
294
+ // common (a compose file with `AWS_REGION=${AWS_REGION:-}`), and `??` would
295
+ // keep that empty string and discard a valid `AWS_DEFAULT_REGION`.
296
+ const region = env.AWS_REGION?.trim() || env.AWS_DEFAULT_REGION?.trim();
297
+ if (!region) return null;
298
+ if (!getEnvKey("amazon-bedrock", env as Record<string, string>)) return null;
299
+ // `AWS_BEARER_TOKEN_BEDROCK` is a bearer identity, not a key to hand around;
300
+ // the SDK reads it from the environment on its own. The regional Bedrock
301
+ // endpoint and the region are all the call site needs to add.
302
+ return {
303
+ kind: "amazon-bedrock",
304
+ modelDefault: resolveRaterModelString("amazon-bedrock"),
305
+ region,
306
+ };
307
+ }
308
+
233
309
  async function resolveCodexOAuthCredential(
234
310
  opts: ResolveCredentialOptions,
235
311
  apiUrl: string,
@@ -14,12 +14,34 @@
14
14
  * env (kept for backwards-compat with the claude hook).
15
15
  */
16
16
 
17
- export type CredentialKind = "openrouter" | "anthropic" | "openai" | "openai-codex" | "claude-cli";
17
+ /**
18
+ * A provider the internal-ai layer can call. The value doubles as the
19
+ * `provider/` prefix a model string carries (`parseModelStr`), so a kind and
20
+ * its provider id are the same string by construction.
21
+ */
22
+ export type CredentialKind =
23
+ | "openrouter"
24
+ | "anthropic"
25
+ | "openai"
26
+ | "openai-codex"
27
+ | "claude-cli"
28
+ | "fireworks"
29
+ | "amazon-bedrock";
18
30
 
19
31
  /**
20
32
  * Per-credential default model strings. The "claude-cli" kind uses the
21
33
  * shorthand "haiku" because the only consumer is the `claude -p --model haiku`
22
34
  * shellout, not pi-ai's `getModel`.
35
+ *
36
+ * Every `provider/model-id` value here must exist in pi-ai's own catalog
37
+ * (`getBuiltinModel(provider, modelId)`), because `complete-structured.ts`
38
+ * resolves it through that catalog and a miss is a silent no-op.
39
+ *
40
+ * `amazon-bedrock` names a cross-region inference profile
41
+ * (`global.` prefix). A foundation-model id would only be invocable in the one
42
+ * region that owns it, and the profile prefix is what current Claude models on
43
+ * Bedrock actually take. Pin a region-scoped profile (`us.…`, `eu.…`) with
44
+ * `MEMORY_RATER_MODEL` / `TASK_AUTO_TITLE_MODEL` where an account needs one.
23
45
  */
24
46
  export const DEFAULT_MODEL: Record<CredentialKind, string> = {
25
47
  openrouter: "openrouter/deepseek/deepseek-v4.1-flash",
@@ -27,6 +49,8 @@ export const DEFAULT_MODEL: Record<CredentialKind, string> = {
27
49
  openai: "openai/gpt-6-luna",
28
50
  "openai-codex": "openai-codex/gpt-6-luna",
29
51
  "claude-cli": "haiku",
52
+ fireworks: "fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
53
+ "amazon-bedrock": "amazon-bedrock/global.anthropic.claude-haiku-5-5",
30
54
  };
31
55
 
32
56
  /**
@@ -46,6 +70,16 @@ export const MEMORY_RATER_DEFAULT_MODEL: Record<CredentialKind, string> = {
46
70
  openai: "openai/gpt-6-luna",
47
71
  "openai-codex": "openai-codex/gpt-6-luna",
48
72
  "claude-cli": "haiku",
73
+ // Same model family as the OpenRouter judge above (DeepSeek V4.1 Flash), so a
74
+ // Fireworks deployment rates with the model the distribution was tuned on
75
+ // rather than shifting it. `fireworks/accounts/fireworks/models/…` is the
76
+ // provider's native id; the `routers/…` variants cost more per token.
77
+ fireworks: "fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
78
+ // A Haiku, i.e. the same family the Anthropic kind rates with, reached
79
+ // through a global inference profile. Not `anthropic.claude-haiku-4-5`: that
80
+ // generation costs 1.00/5.00 per million on Bedrock, ten times this one, and
81
+ // a new kind has no existing rating distribution to stay consistent with.
82
+ "amazon-bedrock": "amazon-bedrock/global.anthropic.claude-haiku-5-5",
49
83
  };
50
84
 
51
85
  /**
@@ -64,6 +98,8 @@ const PROVIDER_TO_KIND: Record<string, CredentialKind> = {
64
98
  anthropic: "anthropic",
65
99
  openai: "openai",
66
100
  "openai-codex": "openai-codex",
101
+ fireworks: "fireworks",
102
+ "amazon-bedrock": "amazon-bedrock",
67
103
  };
68
104
 
69
105
  /**
@@ -40,9 +40,15 @@ export interface TaskTitleCandidateGroup {
40
40
  * first: pay-per-token API keys before subscription OAuth, and the `claude -p`
41
41
  * shellout last (it spawns a full CLI process per call).
42
42
  *
43
+ * `fireworks` and `amazon-bedrock` are appended after every kind that shipped
44
+ * before them, matching `CREDENTIAL_KIND_PRECEDENCE`: an environment that
45
+ * already titles through OpenRouter/Anthropic/OpenAI keeps doing so.
46
+ *
43
47
  * Model prices (input / output, USD per million tokens, models.dev snapshot):
44
48
  * deepseek-v4.1-flash 0.034 / 0.137 · claude-haiku-5.5 0.10 / 0.50 ·
45
- * gpt-6-luna 0.10 / 0.50 · gpt-5-nano 0.05 / 0.40
49
+ * gpt-6-luna 0.10 / 0.50 · gpt-5-nano 0.05 / 0.40 ·
50
+ * fireworks deepseek-v4p1-flash 0.30 / 1.20 ·
51
+ * bedrock global claude-haiku-5-5 0.10 / 0.50 · nova-micro 0.035 / 0.14
46
52
  */
47
53
  export const TASK_TITLE_MODEL_CANDIDATES: readonly TaskTitleCandidateGroup[] = [
48
54
  {
@@ -57,6 +63,25 @@ export const TASK_TITLE_MODEL_CANDIDATES: readonly TaskTitleCandidateGroup[] = [
57
63
  { kind: "openai", models: ["openai/gpt-6-luna", "openai/gpt-5-nano"] },
58
64
  { kind: "openai-codex", models: ["openai-codex/gpt-6-luna"] },
59
65
  { kind: "claude-cli", models: ["haiku"] },
66
+ {
67
+ kind: "fireworks",
68
+ // The native (non-router) ids are the cheap ones; `routers/…` costs 8x.
69
+ models: [
70
+ "fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
71
+ "fireworks/accounts/fireworks/models/glm-5p3-flash",
72
+ ],
73
+ },
74
+ {
75
+ kind: "amazon-bedrock",
76
+ // Both ids verified present in pi-ai's catalog (`getBuiltinModel`). The
77
+ // haiku entry is a global inference profile; Nova Micro is a plain
78
+ // foundation model, so it only answers in the region that owns it, which is
79
+ // why it is the fallback rather than the first choice.
80
+ models: [
81
+ "amazon-bedrock/global.anthropic.claude-haiku-5-5",
82
+ "amazon-bedrock/amazon.nova-micro-v1:0",
83
+ ],
84
+ },
60
85
  ];
61
86
 
62
87
  export { kindForModelString };
@@ -65,6 +90,11 @@ export { kindForModelString };
65
90
  * The candidate list for one environment. `TASK_AUTO_TITLE_MODEL` moves its
66
91
  * provider to the front and puts the pinned model first inside it; the rest of
67
92
  * the list stays as fallback. An unknown provider is ignored with a warning.
93
+ *
94
+ * `TASK_AUTO_TITLE_MODEL` that names a model string we do not recognise as a
95
+ * provider prefix is exactly why `kindForModelString` now knows
96
+ * `fireworks/…` and `amazon-bedrock/…`: without that, pinning a Bedrock judge
97
+ * would have logged "unsupported provider" and been silently dropped.
68
98
  */
69
99
  export function buildTaskTitlePlan(
70
100
  env: Record<string, string | undefined> = process.env,
@@ -1,6 +1,6 @@
1
1
  # Chat SDK
2
2
 
3
- The swarm receives messages from Telegram, Slack, Discord, and Microsoft Teams through the Chat SDK channel. A person mentions the bot or sends it a direct message, and the swarm creates a task for it. This skill tells you how to work on such a task.
3
+ The swarm receives messages from Telegram, Slack, Discord, Microsoft Teams, and Rocket.Chat through the Chat SDK channel. A person mentions the bot or sends it a direct message, and the swarm creates a task for it. This skill tells you how to work on such a task.
4
4
 
5
5
  ## How you know you are on a chat task
6
6
 
@@ -62,7 +62,7 @@ The upload limit is 50 MB per file on Telegram and 10 MB on Discord. A larger fi
62
62
 
63
63
  ## `chat-read-thread` limits per platform
64
64
 
65
- `chat-read-thread { threadId, limit? }` returns the most recent messages of a thread, oldest first. The thread id is the adapter name plus the URI-decoded remainder of the contextKey. Telegram ids have no escaping, so `telegram:555001` stays as it is. Slack, Discord, and Teams ids contain `%3A` in the contextKey, so do not build the id by hand. `chat-reply` resolves the thread itself. For `chat-read-thread`, use the thread id returned by `chat-reply`, `chat-post`, or `chat-open-dm`. You can read the thread of your current task. Any other thread needs lead privileges.
65
+ `chat-read-thread { threadId, limit? }` returns the most recent messages of a thread, oldest first. The thread id is the adapter name plus the URI-decoded remainder of the contextKey. Telegram ids have no escaping, so `telegram:555001` stays as it is. Slack, Discord, Teams, and Rocket.Chat ids contain `%3A` in the contextKey, so do not build the id by hand. `chat-reply` resolves the thread itself. For `chat-read-thread`, use the thread id returned by `chat-reply`, `chat-post`, or `chat-open-dm`. You can read the thread of your current task. Any other thread needs lead privileges.
66
66
 
67
67
  - Telegram has no history API. The SDK keeps the Telegram thread history it saw in the swarm database, capped at 100 messages and 7 days.
68
68
  - Teams needs the `Chat.Read.*` Graph permission on the bot. Without it, the call fails.
@@ -65,17 +65,26 @@ Fetch the page as markdown: `curl -fsSL https://docs.agent-swarm.dev/llms.mdx/do
65
65
  - [Small tech team operating model](https://docs.agent-swarm.dev/docs/guides/small-tech-team-operating-model). Reference.
66
66
  - [Customer renewal review](https://docs.agent-swarm.dev/docs/guides/customer-renewal-review). Reference.
67
67
  - [Customer commitment tracking](https://docs.agent-swarm.dev/docs/guides/customer-commitment-tracking). Reference.
68
+ - [Reviewing a potential customer service-level breach with AI agents](https://docs.agent-swarm.dev/docs/guides/service-level-breach-review). Reference.
68
69
  - [Reviewing supplier invoice and purchase order discrepancies with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-invoice-discrepancy-review). Reference.
69
70
  - [Reviewing marketplace partner payout discrepancies with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-payout-exception-review). Reference.
70
71
  - [Preparing marketplace moderation appeals for human review with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-moderation-appeals). Reference.
71
72
  - [Reviewing customer billing disputes with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-billing-dispute-review). Reference.
73
+ - [Reviewing a proposed customer pricing change with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-pricing-change-review). Reference.
72
74
  - [Escalating a customer support issue to engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-support-escalation-handoff). Reference.
73
75
  - [Reviewing inconsistent product listings across sales channels with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-catalog-discrepancy-review). Reference.
76
+ - [Reviewing marketplace partner launch readiness with AI agents](https://docs.agent-swarm.dev/docs/guides/partner-onboarding-readiness). Reference.
77
+ - [Preparing a digital asset license review for a human rights owner with AI agents](https://docs.agent-swarm.dev/docs/guides/digital-content-license-rights-review). Reference.
74
78
  - [Handing off inventory discrepancies from operations to purchasing with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-inventory-exception-handoff). Reference.
75
79
  - [Handing off unresolved operational work between shifts with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-operations-shift-handoff). Reference.
76
80
  - [Preparing a disputed product return for a human decision with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-returns-exception-handoff). Reference.
77
81
  - [Reviewing a supplier's security evidence before onboarding with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-security-evidence-review). Reference.
82
+ - [Coordinating a customer data access request across support, privacy and engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/privacy-data-request-handoff). Reference.
78
83
  - [Reviewing supplier performance across delivery, quality and service records with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-performance-review). Reference.
84
+ - [Reviewing a supplier ingredient specification change with AI agents](https://docs.agent-swarm.dev/docs/guides/food-supplier-ingredient-change-review). Reference.
85
+ - [Preparing a bid or no-bid review for an incoming RFP with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-rfp-bid-qualification). Reference.
86
+ - [Coordinating a departing employee's access review across HR and IT with AI agents](https://docs.agent-swarm.dev/docs/guides/employee-offboarding-access-review). Reference.
87
+ - [Briefing sales and leadership on competitor changes with AI agents](https://docs.agent-swarm.dev/docs/guides/competitor-change-brief). Reference.
79
88
  - [Deployment Guide](https://docs.agent-swarm.dev/docs/guides/deployment). When: Someone wants to run Agent Swarm on their own server with Docker Compose.
80
89
  - [One-click deploy](https://docs.agent-swarm.dev/docs/guides/one-click-deploy). When: Someone has no server yet and wants Agent Swarm running in the cloud with HTTPS.
81
90
  - [Kubernetes and Helm](https://docs.agent-swarm.dev/docs/guides/kubernetes). When: Someone wants to install Agent Swarm on Kubernetes.
@@ -129,6 +138,7 @@ Fetch the page as markdown: `curl -fsSL https://docs.agent-swarm.dev/llms.mdx/do
129
138
  - [boxd runtime provider](https://docs.agent-swarm.dev/docs/guides/boxd-runtime-provider). Reference.
130
139
  - [Coordinating delivery delay investigations between operations and support with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-delivery-delay-handoff). Reference.
131
140
  - [Preparing a service capacity planning brief with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-service-capacity-planning). Reference.
141
+ - [Preparing a property maintenance request for human triage with AI agents](https://docs.agent-swarm.dev/docs/guides/maintenance-work-order-triage). Reference.
132
142
  - [Reviewing customer help content for conflicts with AI agents](https://docs.agent-swarm.dev/docs/guides/support-knowledge-conflict-review). Reference.
133
143
 
134
144
  ## Other docs
@@ -1,17 +0,0 @@
1
- import {
2
- ACPAdapter2
3
- } from "./cli-0m77n7ej.js";
4
- import"./cli-cp0m07wb.js";
5
- import"./cli-3m8vqehw.js";
6
- import"./cli-5v6b2am8.js";
7
- import"./cli-1b5axkt1.js";
8
- import"./cli-hv3820ez.js";
9
- import"./cli-2v4xxnx2.js";
10
- import"./cli-gq6qhmrr.js";
11
- import"./cli-0726awxw.js";
12
- import"./cli-0xwb7zpt.js";
13
- import"./cli-cmgdptmx.js";
14
- import"./cli-vdfngx2g.js";
15
- export {
16
- ACPAdapter2 as ACPAdapter
17
- };
@@ -1,42 +0,0 @@
1
- import {
2
- getDeploymentEnvValue2,
3
- loadGlobalConfigsIntoEnv2,
4
- reloadGlobalConfigsAndIntegrations2,
5
- scheduleIntegrationsReload2,
6
- handleCore2,
7
- init_core
8
- } from "./cli-fn8aj7gb.js";
9
- import"./cli-8rbkw18r.js";
10
- import"./cli-4h90xaet.js";
11
- import"./cli-13t0smbk.js";
12
- import"./cli-7ewre3dm.js";
13
- import"./cli-3zyme1wt.js";
14
- import"./cli-y6qqbpwc.js";
15
- import"./cli-y260hgep.js";
16
- import"./cli-cn6fpa1p.js";
17
- import"./cli-zvpkrgsc.js";
18
- import"./cli-1dr5at77.js";
19
- import"./cli-hs3mqswp.js";
20
- import"./cli-a8ts6x1n.js";
21
- import"./cli-0fx95c06.js";
22
- import"./cli-t90k0phh.js";
23
- import"./cli-cqxwjb93.js";
24
- import"./cli-4tbvndmm.js";
25
- import"./cli-84xtgbn6.js";
26
- import"./cli-vr4eyq6p.js";
27
- import"./cli-w6c6dj91.js";
28
- import"./cli-w41bvvms.js";
29
- import"./cli-vx9acp12.js";
30
- import"./cli-c0tyzt73.js";
31
- import"./cli-qx1dwrr5.js";
32
- import"./cli-z6m6xzxt.js";
33
- import"./cli-h9bejmkf.js";
34
- init_core();
35
-
36
- export {
37
- getDeploymentEnvValue2 as getDeploymentEnvValue,
38
- handleCore2 as handleCore,
39
- loadGlobalConfigsIntoEnv2 as loadGlobalConfigsIntoEnv,
40
- reloadGlobalConfigsAndIntegrations2 as reloadGlobalConfigsAndIntegrations,
41
- scheduleIntegrationsReload2 as scheduleIntegrationsReload
42
- };
@@ -1,20 +0,0 @@
1
- import {
2
- checkFxCredentials2,
3
- FxAdapter2
4
- } from "./cli-9xx36trj.js";
5
- import"./cli-0m77n7ej.js";
6
- import"./cli-cp0m07wb.js";
7
- import"./cli-3m8vqehw.js";
8
- import"./cli-5v6b2am8.js";
9
- import"./cli-1b5axkt1.js";
10
- import"./cli-hv3820ez.js";
11
- import"./cli-2v4xxnx2.js";
12
- import"./cli-gq6qhmrr.js";
13
- import"./cli-0726awxw.js";
14
- import"./cli-0xwb7zpt.js";
15
- import"./cli-cmgdptmx.js";
16
- import"./cli-vdfngx2g.js";
17
- export {
18
- FxAdapter2 as FxAdapter,
19
- checkFxCredentials2 as checkFxCredentials
20
- };