@desplega.ai/agent-swarm 2.13.2 → 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 (180) hide show
  1. package/dist/acp-adapter-t2q6nsqv.js +17 -0
  2. package/dist/{acp-targets-mz8c5dnt.js → acp-targets-k8xs4tj8.js} +7 -7
  3. package/dist/{actions-5ft3qp5a.js → actions-pg5fxjer.js} +23 -23
  4. package/dist/{agent-fs-provision-6fgz7wvz.js → agent-fs-provision-vbk3fppw.js} +4 -4
  5. package/dist/{amp-adapter-nthn8ezm.js → amp-adapter-adbhxsz9.js} +2 -2
  6. package/dist/{app-535m78qw.js → app-b267ggx1.js} +6 -6
  7. package/dist/{approval-notifications-dewbk403.js → approval-notifications-evc1a9z5.js} +7 -7
  8. package/dist/{assistant-39zyabv2.js → assistant-wgz2ab84.js} +24 -24
  9. package/dist/{boot-args-schema-bqv5bf77.js → boot-args-schema-6tpk28j4.js} +1 -1
  10. package/dist/{boot-reembed-fas7z3zn.js → boot-reembed-ankp369c.js} +1 -1
  11. package/dist/{boot-reembed-157c0gcz.js → boot-reembed-r1zyvefv.js} +1 -1
  12. package/dist/{boot-scrub-sweep-tmec0be2.js → boot-scrub-sweep-cgb6r5bd.js} +2 -2
  13. package/dist/{boot-seeds-32zm50x2.js → boot-seeds-bjceqg7b.js} +4 -4
  14. package/dist/{claude-adapter-gwq7x2nj.js → claude-adapter-knztdnff.js} +9 -6
  15. package/dist/{claude-managed-adapter-rkvw6fvq.js → claude-managed-adapter-qwejzqkk.js} +2 -2
  16. package/dist/{claude-sdk-session-5wbwxy8c.js → claude-sdk-session-c3g6dv0g.js} +22 -8
  17. package/dist/{cli-cs26ed89.js → cli-0j4qmc80.js} +7 -7
  18. package/dist/{cli-dnvmwsvc.js → cli-1606qw3n.js} +32 -32
  19. package/dist/{cli-b0kqw55g.js → cli-1gnf5c7x.js} +1 -1
  20. package/dist/{cli-31vt7baf.js → cli-1wew39p0.js} +10 -10
  21. package/dist/{cli-tceqvv6h.js → cli-268b3dgn.js} +2 -2
  22. package/dist/cli-2ap1the6.js +11 -0
  23. package/dist/{cli-e87fg3en.js → cli-4dyhzhpx.js} +1 -1
  24. package/dist/{cli-t9nxq30h.js → cli-55fqpd9q.js} +8 -8
  25. package/dist/{cli-nvqq3232.js → cli-61fzwtjk.js} +7 -7
  26. package/dist/{cli-c9bwawf9.js → cli-61p7ty8d.js} +2 -2
  27. package/dist/{cli-d528acsw.js → cli-7fa6yv98.js} +2 -2
  28. package/dist/{cli-bp2rt28p.js → cli-7kv5d674.js} +3 -3
  29. package/dist/{cli-tbdw3f92.js → cli-80d5g0fa.js} +2 -2
  30. package/dist/{cli-0xwb7zpt.js → cli-88np9va3.js} +1 -1
  31. package/dist/{cli-zm6bkx3e.js → cli-8m6gqnf1.js} +2 -2
  32. package/dist/{cli-r4fphq38.js → cli-8pnawt98.js} +3 -3
  33. package/dist/{cli-xerdrnqs.js → cli-8sayvj48.js} +2 -2
  34. package/dist/{cli-d0jb2qnt.js → cli-9gmkw6xn.js} +53 -32
  35. package/dist/{cli-a6rzw649.js → cli-a21cwm89.js} +2 -2
  36. package/dist/{cli-s6fhqbz1.js → cli-aytna2fm.js} +1 -1
  37. package/dist/{cli-mwxez0pz.js → cli-b768ek79.js} +1 -1
  38. package/dist/{cli-ewb028rs.js → cli-bh53ppqm.js} +2 -2
  39. package/dist/{cli-zqy28rwx.js → cli-czeh7x13.js} +3 -3
  40. package/dist/{cli-s08zsqva.js → cli-djwt4mtn.js} +71 -5
  41. package/dist/{cli-fgm2mad9.js → cli-dq30fq3q.js} +2 -2
  42. package/dist/{cli-2wde56gv.js → cli-dw43pnzp.js} +5 -5
  43. package/dist/{cli-erh1rgh4.js → cli-e4gx499y.js} +12 -12
  44. package/dist/{cli-69eq6gdk.js → cli-ea367bdn.js} +31 -22
  45. package/dist/{cli-cmgdptmx.js → cli-ef590376.js} +29 -5
  46. package/dist/{cli-8qvte9hn.js → cli-fbmgpt72.js} +2 -2
  47. package/dist/{cli-tgmate57.js → cli-g4dhd3pr.js} +2 -2
  48. package/dist/{cli-0f7n3td3.js → cli-gc715jrc.js} +1 -1
  49. package/dist/{cli-xysy1g8x.js → cli-gkjw33x5.js} +1 -1
  50. package/dist/{cli-getrvmtx.js → cli-grk77aen.js} +1 -1
  51. package/dist/{cli-f1sdh8ca.js → cli-gxqwm3k3.js} +5 -5
  52. package/dist/{cli-m1wddksc.js → cli-h3drhntp.js} +1 -1
  53. package/dist/{cli-qn79645p.js → cli-h9d3sdnc.js} +1 -1
  54. package/dist/{cli-7m6bbtab.js → cli-hd2a204w.js} +6 -6
  55. package/dist/{cli-jkkcm72j.js → cli-hhb8kbwd.js} +9 -9
  56. package/dist/{cli-fcwrd7bh.js → cli-hpxcfvdm.js} +3 -3
  57. package/dist/{cli-ka13xx6b.js → cli-hxj888w3.js} +1 -1
  58. package/dist/{cli-82j36f2m.js → cli-jjzxsk47.js} +9 -3
  59. package/dist/{cli-nkfv398a.js → cli-ka4tqjzd.js} +6 -6
  60. package/dist/{cli-n46d87mj.js → cli-kh973792.js} +3 -3
  61. package/dist/{cli-x5yb8zc8.js → cli-kwm1bek7.js} +1 -1
  62. package/dist/{cli-5k1hvycs.js → cli-mgr3gatr.js} +4 -4
  63. package/dist/{cli-8a4qg44m.js → cli-nbawx3s0.js} +2 -2
  64. package/dist/{cli-1gevjrc1.js → cli-ppf9ap9n.js} +1 -1
  65. package/dist/{cli-6rmryz03.js → cli-pzsedyb0.js} +4 -4
  66. package/dist/{cli-g0b3ma7r.js → cli-r6xnchva.js} +1 -1
  67. package/dist/{cli-j2ybkdk2.js → cli-snwz16eg.js} +1 -1
  68. package/dist/{cli-sjk85d7v.js → cli-sy2ge2ye.js} +3 -3
  69. package/dist/{cli-rvhaahfv.js → cli-syqcny89.js} +3 -3
  70. package/dist/{cli-n14r8h4n.js → cli-tjf1bh1v.js} +2 -2
  71. package/dist/{cli-xhkek467.js → cli-v1v49t36.js} +28 -2
  72. package/dist/{cli-4djg31jh.js → cli-v8rpjrnx.js} +1 -1
  73. package/dist/{cli-62fjschk.js → cli-vgh5adn9.js} +5 -5
  74. package/dist/{cli-wdtqkqnq.js → cli-w24741sm.js} +3 -3
  75. package/dist/{cli-gq6qhmrr.js → cli-wsnradtk.js} +3 -3
  76. package/dist/{cli-gc7jkf4a.js → cli-wtffytm8.js} +3 -3
  77. package/dist/{cli-1f48qdnb.js → cli-xc8m5cjn.js} +2 -2
  78. package/dist/{cli-x7aqhxj5.js → cli-y0q92v4r.js} +2 -2
  79. package/dist/{cli-gedf48yw.js → cli-y754psdt.js} +4 -4
  80. package/dist/cli.js +14 -14
  81. package/dist/{codex-adapter-x25xfbnh.js → codex-adapter-493vb8cv.js} +5 -5
  82. package/dist/{codex-hook-c0nvm30r.js → codex-hook-ej8hn6z5.js} +9 -2
  83. package/dist/{codex-session-runner-kn5xnrvp.js → codex-session-runner-ps5m4z1g.js} +5 -5
  84. package/dist/{commands-8n59gxmy.js → commands-shktk0b8.js} +3 -3
  85. package/dist/{controllers-connect-09gvkrhc.js → controllers-connect-yft057ws.js} +22 -22
  86. package/dist/{core-2b8bv6ny.js → core-nheayfgm.js} +21 -21
  87. package/dist/{cursor-adapter-w1681kp1.js → cursor-adapter-8fpm4dng.js} +1 -1
  88. package/dist/{db-e71keqxk.js → db-0ezhdhz5.js} +3 -3
  89. package/dist/{db-spg81qtr.js → db-84pz2w5c.js} +2 -2
  90. package/dist/{dispatcher-fr4vawwb.js → dispatcher-h2rz69f6.js} +21 -21
  91. package/dist/{easter-egg-3d-ac9tv9a6.js → easter-egg-3d-m41ad78v.js} +1 -1
  92. package/dist/{embedding-space-an77f45k.js → embedding-space-yam9zwzj.js} +6 -6
  93. package/dist/{embeddings-jkrehejr.js → embeddings-g2be0y8q.js} +1 -1
  94. package/dist/{execute-3mys4nta.js → execute-hhdejgzf.js} +1 -1
  95. package/dist/{external-channel-s6zxpts9.js → external-channel-kjt2yzfj.js} +2 -2
  96. package/dist/fx-adapter-8g7xsp8q.js +20 -0
  97. package/dist/{grok-adapter-8ge6tw7m.js → grok-adapter-ztk2zkz1.js} +9 -9
  98. package/dist/handlers-9ywssz71.js +41 -0
  99. package/dist/{heartbeat-jjpb44e5.js → heartbeat-2e5jdexj.js} +23 -23
  100. package/dist/{hook-y6n23zzj.js → hook-34s8cmgn.js} +9 -6
  101. package/dist/{hook-68gbs87k.js → hook-acg9saz7.js} +8 -5
  102. package/dist/{http-8c6y008s.js → http-ra2zr2f8.js} +58 -65
  103. package/dist/{index-xcw7hjt5.js → index-2z1z7qx6.js} +24 -24
  104. package/dist/{index-p2f5xg64.js → index-3j803vnb.js} +36259 -34299
  105. package/dist/index-6mgbdtv1.js +44 -0
  106. package/dist/{index-6h3r0vpe.js → index-93bw5wds.js} +1 -1
  107. package/dist/{index-we3nd2t0.js → index-9q42cr54.js} +1 -1
  108. package/dist/{index-0vthtbc2.js → index-9r4j0a60.js} +23 -15
  109. package/dist/index-hqdsn2t2.js +39 -0
  110. package/dist/index-st231bqv.js +40 -0
  111. package/dist/{keepalive-7e9r5dvp.js → keepalive-vjnnqbkm.js} +4 -4
  112. package/dist/lead-mk0xkth2.js +82 -0
  113. package/dist/{maintenance-d3erjvcg.js → maintenance-px2g599e.js} +1 -1
  114. package/dist/{oauth-refresh-sweep-0qh70988.js → oauth-refresh-sweep-nkykf09m.js} +3 -3
  115. package/dist/{object-webhooks-ac7v2q5p.js → object-webhooks-gt9xnq21.js} +7 -7
  116. package/dist/{onboard-5yphtken.js → onboard-1f134p65.js} +3 -3
  117. package/dist/{opencode-adapter-0xvyba4m.js → opencode-adapter-94976yab.js} +6 -6
  118. package/dist/{otel-impl-svqp691q.js → otel-impl-5d4p2fqs.js} +1 -1
  119. package/dist/{pending-bn4xe5br.js → pending-vkk0vx6n.js} +22 -22
  120. package/dist/{pi-mono-adapter-763s8a3w.js → pi-mono-adapter-cyzdv5er.js} +8 -8
  121. package/dist/{pricing-refresh-kfc215mf.js → pricing-refresh-jtmjwss9.js} +2 -2
  122. package/dist/{rbac-roles-6r4h2ghj.js → rbac-roles-1fvmdyeb.js} +2 -2
  123. package/dist/{rbac-roles-3bznvkpt.js → rbac-roles-yd1fgpsn.js} +3 -3
  124. package/dist/{render-v2-f3qedbpy.js → render-v2-kb5s3vx4.js} +6 -6
  125. package/dist/{resume-vcag4ann.js → resume-z1vs44n5.js} +9 -9
  126. package/dist/{runtime-x0s55z2t.js → runtime-gk6ct7r7.js} +1 -1
  127. package/dist/{session-access-nwzve8q2.js → session-access-nz6nre4d.js} +5 -5
  128. package/dist/{session-source-backfill-jpqfzmgz.js → session-source-backfill-wb60zjkd.js} +1 -1
  129. package/dist/{setup-d2smwaem.js → setup-2x8g8j4s.js} +1 -1
  130. package/dist/thread-buffer-d50rqpev.js +42 -0
  131. package/dist/{tree-visibility-dwzc8en0.js → tree-visibility-ts3z30kw.js} +2 -2
  132. package/dist/{user-merge-jobs-4ce7kma2.js → user-merge-jobs-zetg26e0.js} +3 -3
  133. package/dist/{virtual-modules-78a6yw71.js → virtual-modules-674fka8x.js} +3 -3
  134. package/dist/{work-objects-m0w1e7q8.js → work-objects-w52yyjxm.js} +24 -24
  135. package/dist/worker-662x1vse.js +82 -0
  136. package/dist/{worker-follow-up-e3t6f895.js → worker-follow-up-dyfxyjbj.js} +21 -21
  137. package/openapi.json +4 -1
  138. package/package.json +3 -3
  139. package/src/commands/onboard/agent-fs-version.ts +1 -1
  140. package/src/commands/runner.ts +62 -6
  141. package/src/hooks/codex-hook.ts +15 -4
  142. package/src/hooks/hook.ts +7 -0
  143. package/src/http/session-cost-recompute.ts +3 -1
  144. package/src/http/session-data.ts +3 -0
  145. package/src/prompts/base-prompt.ts +1 -1
  146. package/src/prompts/session-templates.ts +1 -1
  147. package/src/providers/acp-targets.ts +2 -2
  148. package/src/providers/amp-adapter.ts +1 -1
  149. package/src/providers/claude-adapter.ts +21 -1
  150. package/src/providers/claude-sdk-session.ts +22 -3
  151. package/src/providers/claude-session-events.ts +76 -1
  152. package/src/providers/cursor-adapter.ts +1 -1
  153. package/src/providers/fx-adapter.ts +2 -2
  154. package/src/providers/pricing-sources.md +3 -0
  155. package/src/providers/types.ts +13 -0
  156. package/src/slack/render-v2.ts +27 -7
  157. package/src/tests/base-prompt.test.ts +6 -2
  158. package/src/tests/claude-adapter.test.ts +115 -0
  159. package/src/tests/fixtures/fx/acp-updates-recorded.jsonl +1 -1
  160. package/src/tests/internal-ai/complete-structured.test.ts +105 -0
  161. package/src/tests/internal-ai/credentials.test.ts +149 -0
  162. package/src/tests/internal-ai/task-title.test.ts +78 -0
  163. package/src/tests/mcp-input-caps.test.ts +16 -11
  164. package/src/tests/runner-slot-reconcile.test.ts +102 -0
  165. package/src/tests/slack-render-v2.test.ts +85 -0
  166. package/src/types.ts +2 -1
  167. package/src/utils/internal-ai/complete-structured.ts +36 -5
  168. package/src/utils/internal-ai/credentials.ts +78 -2
  169. package/src/utils/internal-ai/models.ts +37 -1
  170. package/src/utils/internal-ai/task-title.ts +31 -1
  171. package/templates/skills/swarm-docs/content.md +8 -0
  172. package/dist/acp-adapter-x1qqgzwx.js +0 -17
  173. package/dist/fx-adapter-4yet1c4f.js +0 -20
  174. package/dist/handlers-0r9evrdj.js +0 -41
  175. package/dist/index-1v23363p.js +0 -39
  176. package/dist/index-30qw6vyw.js +0 -44
  177. package/dist/index-6bm3w6cn.js +0 -40
  178. package/dist/lead-3jpc7kcr.js +0 -79
  179. package/dist/thread-buffer-8fc703jc.js +0 -42
  180. package/dist/worker-3p2vq107.js +0 -79
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  contextBoundNoteThreshold,
3
3
  createContextBoundNote
4
- } from "./cli-0xwb7zpt.js";
4
+ } from "./cli-88np9va3.js";
5
5
  import {
6
6
  SessionErrorTracker
7
7
  } from "./cli-zkbz8m2q.js";
8
8
  import {
9
9
  summarizeSession
10
- } from "./cli-gq6qhmrr.js";
10
+ } from "./cli-wsnradtk.js";
11
11
  import {
12
12
  resolveCodexCommand
13
- } from "./cli-zm6bkx3e.js";
13
+ } from "./cli-8m6gqnf1.js";
14
14
  import {
15
15
  createSwarmEventHandler
16
16
  } from "./cli-at67kvnp.js";
@@ -99,7 +99,7 @@ import {
99
99
  import {
100
100
  init_package,
101
101
  package_default
102
- } from "./cli-sjk85d7v.js";
102
+ } from "./cli-sy2ge2ye.js";
103
103
  import {
104
104
  init_src2,
105
105
  scrubSecrets,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  contextBoundNoteThreshold,
6
6
  createContextBoundNote
7
- } from "./cli-0xwb7zpt.js";
7
+ } from "./cli-88np9va3.js";
8
8
  import {
9
9
  checkToolLoop
10
10
  } from "./cli-0726awxw.js";
@@ -3,7 +3,7 @@ import {
3
3
  getSwarmConfigs2,
4
4
  getResolvedConfig2,
5
5
  init_db4
6
- } from "./cli-erh1rgh4.js";
6
+ } from "./cli-e4gx499y.js";
7
7
  import {
8
8
  AgentFsProvider,
9
9
  init_agent_fs_provider
@@ -7,7 +7,7 @@ var package_default;
7
7
  var init_package = __esm(() => {
8
8
  package_default = {
9
9
  name: "@desplega.ai/agent-swarm",
10
- version: "2.13.2",
10
+ version: "2.13.3",
11
11
  description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
12
12
  keywords: [
13
13
  "agent-swarm.dev",
@@ -226,8 +226,8 @@ var init_package = __esm(() => {
226
226
  "@chat-adapter/slack": "4.45.0",
227
227
  "@chat-adapter/teams": "4.45.0",
228
228
  "@chat-adapter/telegram": "4.45.0",
229
- "@cursor/sdk": "1.3.1",
230
- "@desplega.ai/agent-fs-just-bash": "0.18.28",
229
+ "@cursor/sdk": "1.4.0",
230
+ "@desplega.ai/agent-fs-just-bash": "0.18.29",
231
231
  "@desplega.ai/business-use": "^0.4.2",
232
232
  "@earendil-works/pi-agent-core": "^1.5.2",
233
233
  "@earendil-works/pi-ai": "^1.5.2",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  contextBoundNoteThreshold,
3
3
  createContextBoundNote
4
- } from "./cli-0xwb7zpt.js";
4
+ } from "./cli-88np9va3.js";
5
5
  import {
6
6
  canonicalToolName,
7
7
  canonicalArgs,
@@ -27,13 +27,13 @@ import {
27
27
  autoIndexMemoryFile,
28
28
  fetchConcurrentContext,
29
29
  summarizeTranscript
30
- } from "./cli-bp2rt28p.js";
30
+ } from "./cli-7kv5d674.js";
31
31
  import {
32
32
  applyReasoningEffort
33
33
  } from "./cli-vdfngx2g.js";
34
34
  import {
35
35
  resolveOpencodeSdkSpecifier
36
- } from "./cli-zm6bkx3e.js";
36
+ } from "./cli-8m6gqnf1.js";
37
37
  import {
38
38
  fetchInstalledMcpServers
39
39
  } from "./cli-5y2fvw4z.js";
@@ -8,12 +8,12 @@ import {
8
8
  invalidateTelemetryUserRole,
9
9
  init_telemetry_identity,
10
10
  init_db4
11
- } from "./cli-erh1rgh4.js";
11
+ } from "./cli-e4gx499y.js";
12
12
  import {
13
13
  revokeAllUserCredentials,
14
14
  isLiveUserToken,
15
15
  init_users
16
- } from "./cli-getrvmtx.js";
16
+ } from "./cli-grk77aen.js";
17
17
  import {
18
18
  init_env_flag
19
19
  } from "./cli-cebvbc9t.js";
@@ -71,7 +71,7 @@ import {
71
71
  import {
72
72
  resolveRaterModelString,
73
73
  init_models2
74
- } from "./cli-82j36f2m.js";
74
+ } from "./cli-jjzxsk47.js";
75
75
  import {
76
76
  isFirstPartyAnthropicUrl,
77
77
  init_src,
@@ -9519,8 +9519,32 @@ async function resolveKind(kind, opts, env, getEnvKey) {
9519
9519
  if (!env.AGENT_SWARM_CLAUDE_OAUTH_TOKEN && !env.CLAUDE_CODE_OAUTH_TOKEN)
9520
9520
  return null;
9521
9521
  return { kind, modelDefault: resolveRaterModelString(kind) };
9522
+ case "fireworks": {
9523
+ const key = env.FIREWORKS_API_KEY ?? getEnvKey("fireworks");
9524
+ if (!key)
9525
+ return null;
9526
+ return {
9527
+ kind,
9528
+ apiKey: selectCredential(key, undefined, "FIREWORKS_API_KEY").selected,
9529
+ modelDefault: resolveRaterModelString(kind)
9530
+ };
9531
+ }
9532
+ case "amazon-bedrock":
9533
+ return resolveBedrockCredential(env, getEnvKey);
9522
9534
  }
9523
9535
  }
9536
+ function resolveBedrockCredential(env, getEnvKey) {
9537
+ const region = env.AWS_REGION?.trim() || env.AWS_DEFAULT_REGION?.trim();
9538
+ if (!region)
9539
+ return null;
9540
+ if (!getEnvKey("amazon-bedrock", env))
9541
+ return null;
9542
+ return {
9543
+ kind: "amazon-bedrock",
9544
+ modelDefault: resolveRaterModelString("amazon-bedrock"),
9545
+ region
9546
+ };
9547
+ }
9524
9548
  async function resolveCodexOAuthCredential(opts, apiUrl, apiKey) {
9525
9549
  const getCodex = opts._getValidCodexOAuth ?? getValidCodexOAuth;
9526
9550
  const getOAuth = opts._getOAuthApiKey ?? resolveOAuthApiKey;
@@ -9596,7 +9620,9 @@ var init_credentials = __esm(() => {
9596
9620
  "anthropic",
9597
9621
  "openai",
9598
9622
  "openai-codex",
9599
- "claude-cli"
9623
+ "claude-cli",
9624
+ "fireworks",
9625
+ "amazon-bedrock"
9600
9626
  ];
9601
9627
  });
9602
9628
 
@@ -3,7 +3,7 @@ import {
3
3
  upsertKv2,
4
4
  deleteKv2,
5
5
  init_db4
6
- } from "./cli-erh1rgh4.js";
6
+ } from "./cli-e4gx499y.js";
7
7
  import {
8
8
  isEnvFlagEnabled,
9
9
  init_env_flag
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  materializeClaudeMd,
3
3
  stopClaudeMd
4
- } from "./cli-x5yb8zc8.js";
4
+ } from "./cli-kwm1bek7.js";
5
5
  import {
6
6
  summarizeSession
7
- } from "./cli-gq6qhmrr.js";
7
+ } from "./cli-wsnradtk.js";
8
8
  import {
9
9
  contextBoundNoteThreshold,
10
10
  injectClaimedContextBoundNote
11
- } from "./cli-0xwb7zpt.js";
11
+ } from "./cli-88np9va3.js";
12
12
  import {
13
13
  canonicalToolName,
14
14
  canonicalArgs,
@@ -44,7 +44,7 @@ import {
44
44
  warnProfileFileTooLarge,
45
45
  buildIndependentIdentityPayloads,
46
46
  init_profile_sync
47
- } from "./cli-s6fhqbz1.js";
47
+ } from "./cli-aytna2fm.js";
48
48
  import {
49
49
  MAX_PROFILE_FILE_LENGTH,
50
50
  getMcpBaseUrl,
@@ -57,7 +57,7 @@ import {
57
57
  import {
58
58
  init_package,
59
59
  package_default
60
- } from "./cli-sjk85d7v.js";
60
+ } from "./cli-sy2ge2ye.js";
61
61
  import {
62
62
  scrubSecrets,
63
63
  init_secret_scrubber
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getDbClient2,
3
3
  init_db4
4
- } from "./cli-erh1rgh4.js";
4
+ } from "./cli-e4gx499y.js";
5
5
  import {
6
6
  agentFsClientFor,
7
7
  init_agent_fs_identity
8
- } from "./cli-j2ybkdk2.js";
8
+ } from "./cli-snwz16eg.js";
9
9
  import {
10
10
  FilesError,
11
11
  normalizeStoredKey,
@@ -307,7 +307,7 @@ async function createObject(input) {
307
307
  return withLink(row);
308
308
  }
309
309
  function watchDrive(orgId, driveId) {
310
- import("./object-webhooks-ac7v2q5p.js").then(({ ensureObjectWebhook }) => ensureObjectWebhook(orgId, driveId)).catch(() => {
310
+ import("./object-webhooks-gt9xnq21.js").then(({ ensureObjectWebhook }) => ensureObjectWebhook(orgId, driveId)).catch(() => {
311
311
  return;
312
312
  });
313
313
  }
@@ -5,7 +5,7 @@ import {
5
5
  Number2,
6
6
  String2,
7
7
  completeStructuredWithModel
8
- } from "./cli-cmgdptmx.js";
8
+ } from "./cli-ef590376.js";
9
9
  import {
10
10
  SummaryWithRatingsSchema,
11
11
  BASE_SUMMARIZE_PROMPT,
@@ -14,10 +14,10 @@ import {
14
14
  } from "./cli-bmqp0ser.js";
15
15
  import {
16
16
  init_credentials
17
- } from "./cli-xhkek467.js";
17
+ } from "./cli-v1v49t36.js";
18
18
  import {
19
19
  init_models2
20
- } from "./cli-82j36f2m.js";
20
+ } from "./cli-jjzxsk47.js";
21
21
 
22
22
  // src/utils/internal-ai/index.ts
23
23
  init_credentials();
@@ -2,20 +2,20 @@ import {
2
2
  getKv2,
3
3
  upsertKv2,
4
4
  init_db4
5
- } from "./cli-erh1rgh4.js";
5
+ } from "./cli-e4gx499y.js";
6
6
  import {
7
7
  resolveIdentity,
8
8
  init_identity,
9
9
  recordUnmappedIdentity,
10
10
  init_unmapped_identities
11
- } from "./cli-dnvmwsvc.js";
11
+ } from "./cli-1606qw3n.js";
12
12
  import {
13
13
  findUserByExternalId,
14
14
  findUserByEmail,
15
15
  findOrCreateUserByEmail,
16
16
  linkIdentity,
17
17
  init_users
18
- } from "./cli-getrvmtx.js";
18
+ } from "./cli-grk77aen.js";
19
19
  import {
20
20
  __esm
21
21
  } from "./cli-242037k3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveAcpTarget2
3
- } from "./cli-d528acsw.js";
3
+ } from "./cli-7fa6yv98.js";
4
4
  import {
5
5
  fetchInstalledMcpServers
6
6
  } from "./cli-5y2fvw4z.js";
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  init_package,
36
36
  package_default
37
- } from "./cli-sjk85d7v.js";
37
+ } from "./cli-sy2ge2ye.js";
38
38
  import {
39
39
  scrubSecrets,
40
40
  init_secret_scrubber
@@ -10,12 +10,12 @@ import {
10
10
  resolveConfigValueOrThrow,
11
11
  resolveHeadersOrThrow,
12
12
  FileAuthStorageBackend
13
- } from "./cli-t9nxq30h.js";
13
+ } from "./cli-55fqpd9q.js";
14
14
  import {
15
15
  oauthSuccessHtml,
16
16
  oauthErrorHtml,
17
17
  init_oauth_page
18
- } from "./cli-xhkek467.js";
18
+ } from "./cli-v1v49t36.js";
19
19
  import {
20
20
  __toESM
21
21
  } from "./cli-242037k3.js";
@@ -18,7 +18,7 @@ import {
18
18
  resolveTemplateAsync,
19
19
  init_resolver,
20
20
  init_session_templates
21
- } from "./cli-mwxez0pz.js";
21
+ } from "./cli-b768ek79.js";
22
22
  import {
23
23
  DEFAULT_MODEL_TIER_MAP,
24
24
  init_types5
@@ -54,7 +54,7 @@ function checkCursorCredentials2(env) {
54
54
  return env.CURSOR_API_KEY?.trim() ? { ready: true, missing: [], satisfiedBy: "env" } : { ready: false, missing: ["CURSOR_API_KEY"], hint: "Set CURSOR_API_KEY for cursor." };
55
55
  }
56
56
  async function liveTestCursorKey2(apiKey) {
57
- const { Cursor } = await import("./index-p2f5xg64.js");
57
+ const { Cursor } = await import("./index-3j803vnb.js");
58
58
  try {
59
59
  await Cursor.me({ apiKey });
60
60
  return { ok: true };
@@ -74,7 +74,7 @@ async function listCursorModels(apiKey) {
74
74
  if (modelListCache?.key === apiKey && Date.now() - modelListCache.at < MODEL_LIST_TTL_MS) {
75
75
  return modelListCache.models;
76
76
  }
77
- const { Cursor } = await import("./index-p2f5xg64.js");
77
+ const { Cursor } = await import("./index-3j803vnb.js");
78
78
  const models = await Cursor.models.list({ apiKey });
79
79
  modelListCache = { key: apiKey, at: Date.now(), models };
80
80
  return models;
@@ -448,7 +448,7 @@ class CursorAdapter2 {
448
448
  if (!apiKey)
449
449
  throw new Error("cursor requires CURSOR_API_KEY");
450
450
  registerVolatileSecret(apiKey, "CURSOR_API_KEY");
451
- const { Agent, JsonlLocalAgentStore } = await import("./index-p2f5xg64.js");
451
+ const { Agent, JsonlLocalAgentStore } = await import("./index-3j803vnb.js");
452
452
  const modelId = config.model || DEFAULT_MODEL_TIER_MAP.cursor.regular;
453
453
  const effort = applyReasoningEffort("cursor", modelId, config.reasoningEffort);
454
454
  const requested = effort.kind === "cursor-effort" ? effort.reasoningEffort : undefined;
package/dist/cli.js CHANGED
@@ -50,7 +50,7 @@ var import_react = __toESM(require_react(), 1);
50
50
  // package.json
51
51
  var package_default = {
52
52
  name: "@desplega.ai/agent-swarm",
53
- version: "2.13.2",
53
+ version: "2.13.3",
54
54
  description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
55
55
  keywords: [
56
56
  "agent-swarm.dev",
@@ -269,8 +269,8 @@ var package_default = {
269
269
  "@chat-adapter/slack": "4.45.0",
270
270
  "@chat-adapter/teams": "4.45.0",
271
271
  "@chat-adapter/telegram": "4.45.0",
272
- "@cursor/sdk": "1.3.1",
273
- "@desplega.ai/agent-fs-just-bash": "0.18.28",
272
+ "@cursor/sdk": "1.4.0",
273
+ "@desplega.ai/agent-fs-just-bash": "0.18.29",
274
274
  "@desplega.ai/business-use": "^0.4.2",
275
275
  "@earendil-works/pi-agent-core": "^1.5.2",
276
276
  "@earendil-works/pi-ai": "^1.5.2",
@@ -848,7 +848,7 @@ function McpServer({ port, apiKey, dbPath }) {
848
848
  if (dbPath) {
849
849
  process.env.DATABASE_PATH = dbPath;
850
850
  }
851
- import("./http-8c6y008s.js").then(() => {
851
+ import("./http-ra2zr2f8.js").then(() => {
852
852
  setStatus("running");
853
853
  }).catch((err) => {
854
854
  setStatus("error");
@@ -929,7 +929,7 @@ function WorkerRunner({ prompt, systemPrompt, systemPromptFile, additionalArgs }
929
929
  const { exit } = use_app_default();
930
930
  import_react.useEffect(() => {
931
931
  installConsoleScrub();
932
- import("./worker-3p2vq107.js").then(({ runWorker }) => runWorker({
932
+ import("./worker-662x1vse.js").then(({ runWorker }) => runWorker({
933
933
  prompt: prompt || undefined,
934
934
  systemPrompt: systemPrompt || undefined,
935
935
  systemPromptFile: systemPromptFile || undefined,
@@ -946,7 +946,7 @@ function LeadRunner({ prompt, systemPrompt, systemPromptFile, additionalArgs })
946
946
  const { exit } = use_app_default();
947
947
  import_react.useEffect(() => {
948
948
  installConsoleScrub();
949
- import("./lead-3jpc7kcr.js").then(({ runLead }) => runLead({
949
+ import("./lead-mk0xkth2.js").then(({ runLead }) => runLead({
950
950
  prompt: prompt || undefined,
951
951
  systemPrompt: systemPrompt || undefined,
952
952
  systemPromptFile: systemPromptFile || undefined,
@@ -985,8 +985,8 @@ function LazyComponent({
985
985
  }
986
986
  return import_react.createElement(Component, props);
987
987
  }
988
- var loadOnboard = () => import("./onboard-5yphtken.js").then(({ Onboard }) => Onboard);
989
- var loadConnect = () => import("./setup-d2smwaem.js").then(({ Setup }) => Setup);
988
+ var loadOnboard = () => import("./onboard-1f134p65.js").then(({ Onboard }) => Onboard);
989
+ var loadConnect = () => import("./setup-2x8g8j4s.js").then(({ Setup }) => Setup);
990
990
  function UnknownCommand({ command }) {
991
991
  const { exit } = use_app_default();
992
992
  import_react.useEffect(() => {
@@ -1115,14 +1115,14 @@ ${binName} docs \u2014 v${package_default.version}
1115
1115
  }
1116
1116
  process.exit(0);
1117
1117
  } else if (args.command === "hook") {
1118
- const { runHook } = await import("./hook-68gbs87k.js");
1118
+ const { runHook } = await import("./hook-acg9saz7.js");
1119
1119
  await runHook();
1120
1120
  } else if (args.command === "codex-hook") {
1121
- const { handleCodexHook } = await import("./codex-hook-c0nvm30r.js");
1121
+ const { handleCodexHook } = await import("./codex-hook-ej8hn6z5.js");
1122
1122
  await handleCodexHook();
1123
1123
  process.exit(process.exitCode ?? 0);
1124
1124
  } else if (args.command === "session-summary-stdin") {
1125
- const { runSessionSummaryFromStdin } = await import("./hook-y6n23zzj.js");
1125
+ const { runSessionSummaryFromStdin } = await import("./hook-34s8cmgn.js");
1126
1126
  await runSessionSummaryFromStdin();
1127
1127
  process.exit(process.exitCode ?? 0);
1128
1128
  } else if (args.command === "x") {
@@ -1135,7 +1135,7 @@ ${binName} docs \u2014 v${package_default.version}
1135
1135
  printHelp("scripts");
1136
1136
  process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
1137
1137
  }
1138
- const { runScriptsMaintenanceCommand } = await import("./maintenance-d3erjvcg.js");
1138
+ const { runScriptsMaintenanceCommand } = await import("./maintenance-px2g599e.js");
1139
1139
  await runScriptsMaintenanceCommand(scriptsArgs);
1140
1140
  console.log("Scripts re-embedded.");
1141
1141
  } else if (args.command === "rbac") {
@@ -1145,14 +1145,14 @@ ${binName} docs \u2014 v${package_default.version}
1145
1145
  printHelp("rbac");
1146
1146
  process.exit(args.showHelp ? 0 : 1);
1147
1147
  }
1148
- const { runRbacCliCommand } = await import("./rbac-roles-6r4h2ghj.js");
1148
+ const { runRbacCliCommand } = await import("./rbac-roles-1fvmdyeb.js");
1149
1149
  await runRbacCliCommand(rbacArgs);
1150
1150
  } else if (args.command === "codex-login") {
1151
1151
  const { runCodexLogin } = await import("./codex-login-ven5cz5j.js");
1152
1152
  const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
1153
1153
  await runCodexLogin(codexLoginArgs);
1154
1154
  } else if (args.command === "codex-session-runner") {
1155
- const { runCodexSessionRunner } = await import("./codex-session-runner-kn5xnrvp.js");
1155
+ const { runCodexSessionRunner } = await import("./codex-session-runner-ps5m4z1g.js");
1156
1156
  await runCodexSessionRunner();
1157
1157
  } else if (args.command === "claude-managed-setup") {
1158
1158
  const { runClaudeManagedSetup } = await import("./claude-managed-setup-0vgz4d1j.js");
@@ -2,16 +2,16 @@ import {
2
2
  checkCodexCredentials2,
3
3
  createInProcessCodexSession2,
4
4
  CodexAdapter2
5
- } from "./cli-6rmryz03.js";
5
+ } from "./cli-pzsedyb0.js";
6
6
  import"./cli-at67kvnp.js";
7
7
  import"./cli-kr5tjjtz.js";
8
- import"./cli-zm6bkx3e.js";
8
+ import"./cli-8m6gqnf1.js";
9
9
  import"./cli-snxhtehz.js";
10
- import"./cli-gq6qhmrr.js";
10
+ import"./cli-wsnradtk.js";
11
11
  import"./cli-0726awxw.js";
12
- import"./cli-0xwb7zpt.js";
12
+ import"./cli-88np9va3.js";
13
13
  import"./cli-zkbz8m2q.js";
14
- import"./cli-cmgdptmx.js";
14
+ import"./cli-ef590376.js";
15
15
  import"./cli-vdfngx2g.js";
16
16
  export {
17
17
  CodexAdapter2 as CodexAdapter,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  renderSteeringDelivery
4
- } from "./cli-qn79645p.js";
4
+ } from "./cli-h9d3sdnc.js";
5
5
  import {
6
6
  canonicalToolName,
7
7
  canonicalArgs,
@@ -134,6 +134,7 @@ function nativeTargetOf(config) {
134
134
  taskId: config.taskId
135
135
  };
136
136
  }
137
+ var CODEX_REWRITABLE_TOOLS = new Set(["bash", "apply_patch"]);
137
138
  async function codexNativePre(msg, config, fetchImpl = fetch, deps, roomDeps) {
138
139
  const call = nativeCallOf(msg);
139
140
  const target = nativeTargetOf(config);
@@ -142,7 +143,13 @@ async function codexNativePre(msg, config, fetchImpl = fetch, deps, roomDeps) {
142
143
  const decision = await runNativePre(target, call, fetchImpl);
143
144
  if (decision.action === "block")
144
145
  return decision;
145
- if (decision.action === "modify" && call.tool === "bash") {
146
+ if (decision.action === "modify") {
147
+ if (!CODEX_REWRITABLE_TOOLS.has(call.tool)) {
148
+ return {
149
+ action: "block",
150
+ reason: `An extension rewrote this ${call.nativeTool} call, but codex cannot apply the rewrite in place. Retry with these arguments: ${JSON.stringify(decision.args)}`
151
+ };
152
+ }
146
153
  const reason = await codexPreToolUseBlock({ ...msg, tool_input: decision.args }, deps, roomDeps);
147
154
  if (reason)
148
155
  return { action: "block", reason };
@@ -1,11 +1,11 @@
1
- import"./cli-0xwb7zpt.js";
1
+ import"./cli-88np9va3.js";
2
2
  import {
3
3
  createInProcessCodexSession2
4
- } from "./cli-6rmryz03.js";
4
+ } from "./cli-pzsedyb0.js";
5
5
  import"./cli-zkbz8m2q.js";
6
- import"./cli-cmgdptmx.js";
7
- import"./cli-gq6qhmrr.js";
8
- import"./cli-zm6bkx3e.js";
6
+ import"./cli-ef590376.js";
7
+ import"./cli-wsnradtk.js";
8
+ import"./cli-8m6gqnf1.js";
9
9
  import"./cli-0726awxw.js";
10
10
  import"./cli-at67kvnp.js";
11
11
  import"./cli-kr5tjjtz.js";
@@ -2,16 +2,16 @@ import {
2
2
  getAllAgents2,
3
3
  getAllTasks2,
4
4
  init_db4
5
- } from "./cli-erh1rgh4.js";
5
+ } from "./cli-e4gx499y.js";
6
6
  import {
7
7
  EXTERNAL_CHANNEL_BLOCKED_REPLY2,
8
8
  shouldBlockChannel2,
9
9
  init_external_channel
10
- } from "./cli-ka13xx6b.js";
10
+ } from "./cli-hxj888w3.js";
11
11
  import {
12
12
  isSlackLeaveThreadDisabled,
13
13
  init_left_threads
14
- } from "./cli-4djg31jh.js";
14
+ } from "./cli-v8rpjrnx.js";
15
15
  import {
16
16
  isEnvFlagEnabled,
17
17
  init_env_flag
@@ -3,7 +3,7 @@ import {
3
3
  isRuntimePoolsEnabled,
4
4
  init_runtime_pools_flag,
5
5
  init_db4
6
- } from "./cli-erh1rgh4.js";
6
+ } from "./cli-e4gx499y.js";
7
7
  import {
8
8
  CONTROLLER_PROTOCOL_VERSION,
9
9
  CONTROLLER_PING_INTERVAL_MS,
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  getRuntimeController2,
14
14
  init_db2
15
- } from "./cli-tceqvv6h.js";
15
+ } from "./cli-268b3dgn.js";
16
16
  import {
17
17
  remoteControllerSession,
18
18
  installRemoteController,
@@ -21,40 +21,40 @@ import {
21
21
  ensureRuntimeOwnerId,
22
22
  reconcileRemoteProvisions,
23
23
  reconcileControllerOrphans
24
- } from "./cli-7m6bbtab.js";
25
- import"./cli-ka13xx6b.js";
26
- import"./cli-e87fg3en.js";
24
+ } from "./cli-hd2a204w.js";
25
+ import"./cli-hxj888w3.js";
26
+ import"./cli-4dyhzhpx.js";
27
27
  import"./cli-vr4eyq6p.js";
28
28
  import"./cli-r8ddn0hf.js";
29
29
  import"./cli-vx9acp12.js";
30
- import"./cli-69eq6gdk.js";
31
- import"./cli-f1sdh8ca.js";
32
- import"./cli-fcwrd7bh.js";
30
+ import"./cli-ea367bdn.js";
31
+ import"./cli-gxqwm3k3.js";
32
+ import"./cli-hpxcfvdm.js";
33
33
  import {
34
34
  resolveHttpRequestAuth,
35
35
  init_auth
36
- } from "./cli-dnvmwsvc.js";
37
- import"./cli-n14r8h4n.js";
38
- import"./cli-8qvte9hn.js";
39
- import"./cli-m1wddksc.js";
36
+ } from "./cli-1606qw3n.js";
37
+ import"./cli-tjf1bh1v.js";
38
+ import"./cli-fbmgpt72.js";
39
+ import"./cli-h3drhntp.js";
40
40
  import"./cli-y260hgep.js";
41
41
  import {
42
42
  route,
43
43
  init_route_def
44
- } from "./cli-2wde56gv.js";
45
- import"./cli-nkfv398a.js";
46
- import"./cli-xerdrnqs.js";
47
- import"./cli-wdtqkqnq.js";
48
- import"./cli-j2ybkdk2.js";
49
- import"./cli-4djg31jh.js";
50
- import"./cli-jkkcm72j.js";
44
+ } from "./cli-dw43pnzp.js";
45
+ import"./cli-ka4tqjzd.js";
46
+ import"./cli-8sayvj48.js";
47
+ import"./cli-w24741sm.js";
48
+ import"./cli-snwz16eg.js";
49
+ import"./cli-v8rpjrnx.js";
50
+ import"./cli-hhb8kbwd.js";
51
51
  import {
52
52
  getApiKey,
53
53
  init_api_key
54
54
  } from "./cli-pax9q4ff.js";
55
55
  import"./cli-b0m3bg0f.js";
56
- import"./cli-b0kqw55g.js";
57
- import"./cli-xysy1g8x.js";
56
+ import"./cli-1gnf5c7x.js";
57
+ import"./cli-gkjw33x5.js";
58
58
  import {
59
59
  import_websocket_server,
60
60
  init_wrapper2
@@ -62,7 +62,7 @@ import {
62
62
  import {
63
63
  registerSessionTokenConnection,
64
64
  init_session_token_connections
65
- } from "./cli-getrvmtx.js";
65
+ } from "./cli-grk77aen.js";
66
66
  import {
67
67
  scrubSecrets,
68
68
  init_secret_scrubber