@desplega.ai/agent-swarm 2.7.10 → 2.8.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 (281) hide show
  1. package/dist/acp-adapter-t949vbbp.js +15 -0
  2. package/dist/{actions-b8aqhrsg.js → actions-7e9czc7s.js} +18 -19
  3. package/dist/{amp-adapter-4c165vgn.js → amp-adapter-gv6cbb7d.js} +2 -3
  4. package/dist/{app-m9khefrh.js → app-b9fbkp9v.js} +3 -3
  5. package/dist/{assistant-rh4v3ntz.js → assistant-wjb7v4c7.js} +20 -21
  6. package/dist/{boot-args-schema-hwkc8bzv.js → boot-args-schema-2t37e0fe.js} +1 -1
  7. package/dist/{boot-reembed-5y6yw9sj.js → boot-reembed-a35nkyr1.js} +1 -1
  8. package/dist/{boot-reembed-fdyk55h4.js → boot-reembed-gka3zas7.js} +1 -1
  9. package/dist/{boot-scrub-sweep-r5r8kqsn.js → boot-scrub-sweep-65sdnp6c.js} +3 -3
  10. package/dist/{boot-seeds-8f9zt5cm.js → boot-seeds-x42tzytw.js} +4 -5
  11. package/dist/{claude-adapter-s5df247c.js → claude-adapter-v221b2fd.js} +7 -8
  12. package/dist/{claude-managed-adapter-h74d06yz.js → claude-managed-adapter-29eq09wd.js} +2 -2
  13. package/dist/{claude-managed-setup-9gsmwzyx.js → claude-managed-setup-9m6450zk.js} +2 -2
  14. package/dist/{claude-sdk-session-dq1j4nz9.js → claude-sdk-session-0q0ptaba.js} +9066 -8818
  15. package/dist/{cli-n5yexkdg.js → cli-0b4zam62.js} +1 -0
  16. package/dist/{cli-5wfz00be.js → cli-0jzra9ad.js} +2 -2
  17. package/dist/{cli-eqtfgfr6.js → cli-2gxeg5gr.js} +1 -1
  18. package/dist/{cli-eqk5p56g.js → cli-2wnq8jkz.js} +9 -9
  19. package/dist/{cli-hfkwwy1h.js → cli-2zp0et3v.js} +21 -2
  20. package/dist/{cli-rt0ag4x1.js → cli-334z18y3.js} +4 -4
  21. package/dist/{cli-6m6b4bep.js → cli-3rkdne1h.js} +2 -2
  22. package/dist/{cli-3xddv0rk.js → cli-4txa0ter.js} +5 -7
  23. package/dist/{cli-jc1g9ndz.js → cli-5j88qqa8.js} +10 -5
  24. package/dist/{cli-xfjrc279.js → cli-5mrq3ake.js} +48 -14
  25. package/dist/{cli-n07eecjs.js → cli-6t09sdhy.js} +3 -3
  26. package/dist/{cli-38yww4e9.js → cli-6wxjceza.js} +8 -8
  27. package/dist/{cli-5xcb8gxq.js → cli-7b8sbmag.js} +8 -8
  28. package/dist/{cli-3xj33nrx.js → cli-7cp6aa1q.js} +10 -3
  29. package/dist/{cli-mp9aa8g5.js → cli-7p1kvkck.js} +6 -6
  30. package/dist/{cli-w3bk0dgv.js → cli-8aes17e4.js} +2 -2
  31. package/dist/{cli-n9abj89w.js → cli-8fknbnhw.js} +8 -8
  32. package/dist/{cli-xd5ebp64.js → cli-8kzasymh.js} +3 -3
  33. package/dist/{cli-2tsfpc70.js → cli-a7wvp2km.js} +1 -1
  34. package/dist/{cli-kx4c8j05.js → cli-abejgen1.js} +63 -19
  35. package/dist/{cli-36wdfzgn.js → cli-bsywb58a.js} +8 -8
  36. package/dist/{cli-yz7v0sh4.js → cli-c55z5chy.js} +4 -6
  37. package/dist/{cli-18qt3few.js → cli-deefvewm.js} +1 -1
  38. package/dist/{cli-jg24scat.js → cli-ee0b971j.js} +3 -3
  39. package/dist/cli-f3vq58d2.js +242 -0
  40. package/dist/{cli-3xcwp3z8.js → cli-ffhtssbp.js} +2 -2
  41. package/dist/{cli-rjyghzg4.js → cli-g70vxtjh.js} +2 -2
  42. package/dist/{cli-g1px1g2e.js → cli-gxkx0zzp.js} +1 -1
  43. package/dist/{cli-j7d73g1y.js → cli-h38x262p.js} +3035 -354
  44. package/dist/{cli-zjphdj1a.js → cli-j790gp2w.js} +40 -18
  45. package/dist/{cli-f2zenhja.js → cli-kc7v1nfv.js} +1 -1
  46. package/dist/{cli-td33w98c.js → cli-m23zjcy2.js} +10 -10
  47. package/dist/{cli-8ewkreqd.js → cli-m28atx8q.js} +7 -9
  48. package/dist/{cli-x9exydey.js → cli-m4dqmnbp.js} +1 -1
  49. package/dist/{cli-ybjdc978.js → cli-mrt48bx7.js} +7 -4
  50. package/dist/{cli-mr97t7cc.js → cli-p1bq50aa.js} +263 -14
  51. package/dist/{cli-ttbqe3q4.js → cli-p1w18yhx.js} +1 -1
  52. package/dist/{cli-nj3x45rw.js → cli-p2gfst4m.js} +52 -43
  53. package/dist/{cli-z9cs5m0w.js → cli-pasjcnmj.js} +12 -12
  54. package/dist/{cli-an1knn2k.js → cli-qa4wdgsy.js} +5 -5
  55. package/dist/{cli-xncjscpm.js → cli-qfedvmcr.js} +50 -24
  56. package/dist/{cli-tmft5dz2.js → cli-qmqk2yc2.js} +1 -1
  57. package/dist/{cli-bxz823sz.js → cli-qsnnd04k.js} +1 -1
  58. package/dist/{cli-cr14kftt.js → cli-qwca7s44.js} +3 -3
  59. package/dist/{cli-7wz05bx3.js → cli-rfywm85n.js} +460 -737
  60. package/dist/{cli-v2fwbnsk.js → cli-rmmpt0wm.js} +6 -6
  61. package/dist/{cli-xbtq4d6s.js → cli-rzsy6nc6.js} +12 -8
  62. package/dist/{cli-0m7rtm11.js → cli-s7t6p9my.js} +1 -1
  63. package/dist/{cli-16phend6.js → cli-sdtt3men.js} +1 -1
  64. package/dist/{cli-pyrxt9gw.js → cli-tk7cjj8h.js} +1 -1
  65. package/dist/{cli-xvymtmv4.js → cli-tqegb8eq.js} +3 -3
  66. package/dist/{cli-kf3pxxdg.js → cli-v1dv1r37.js} +1 -1
  67. package/dist/{cli-h49ejvmc.js → cli-wcg8x116.js} +1 -1
  68. package/dist/{cli-q581b386.js → cli-wk18cm92.js} +5 -5
  69. package/dist/{cli-4vwxp550.js → cli-x1wa213s.js} +1 -1
  70. package/dist/{cli-jrp1dt73.js → cli-xzm9vcfg.js} +1 -1
  71. package/dist/{cli-eb2azq8n.js → cli-y97qxcfx.js} +9 -9
  72. package/dist/{cli-55bkx8hh.js → cli-yq3zak69.js} +1 -1
  73. package/dist/cli.js +17 -17
  74. package/dist/{codex-adapter-yr60sme6.js → codex-adapter-30j9bpzd.js} +5 -6
  75. package/dist/{codex-hook-fac6175r.js → codex-hook-h3vk6xzr.js} +1 -1
  76. package/dist/{codex-session-runner-pch8x584.js → codex-session-runner-8vp57v8w.js} +5 -6
  77. package/dist/{commands-phjfbkv0.js → commands-bngnz9g7.js} +3 -3
  78. package/dist/{controller-jkx994pz.js → controller-hxx8wwy1.js} +2 -2
  79. package/dist/{controllers-connect-c4448kwa.js → controllers-connect-e2b4gyxc.js} +19 -20
  80. package/dist/{cursor-adapter-ndebqnm8.js → cursor-adapter-n5nc3mfe.js} +1 -2
  81. package/dist/{db-ez6egt6v.js → db-bgm7vkc0.js} +3 -3
  82. package/dist/{db-ef32tbfc.js → db-c6np41ca.js} +10 -2
  83. package/dist/{devin-adapter-z46ep5ph.js → devin-adapter-xedz98zv.js} +1 -1
  84. package/dist/{dispatcher-g3tt9hs9.js → dispatcher-jnybck15.js} +17 -18
  85. package/dist/{dsh-adapter-tcyn3099.js → dsh-adapter-nrhbrjz8.js} +1 -2
  86. package/dist/{easter-egg-3d-e36hk5td.js → easter-egg-3d-533knw22.js} +1 -1
  87. package/dist/{embedding-space-4kyh5qqj.js → embedding-space-crsm2zp0.js} +6 -6
  88. package/dist/{embeddings-6a8v4a6t.js → embeddings-e7z3f27f.js} +1 -1
  89. package/dist/{execute-3cbg0twf.js → execute-b3mrb1mv.js} +1 -1
  90. package/dist/{external-channel-se646snz.js → external-channel-m77wf5z3.js} +2 -2
  91. package/dist/{fx-adapter-yw795hqq.js → fx-adapter-b6w0kf56.js} +7 -8
  92. package/dist/{grok-adapter-ttmcss2j.js → grok-adapter-4sqtebdk.js} +7 -8
  93. package/dist/handlers-kdjcyzdj.js +32 -0
  94. package/dist/heartbeat-xgb036sx.js +43 -0
  95. package/dist/{hook-g3nhexsy.js → hook-5h02c9ga.js} +6 -6
  96. package/dist/{hook-hq93y5ej.js → hook-xsk1jbha.js} +5 -5
  97. package/dist/{http-5a9p4h6y.js → http-txe7qhvn.js} +282 -140
  98. package/dist/{index-6haqt3v5.js → index-4a0670yh.js} +8917 -8476
  99. package/dist/index-835xdgnm.js +33 -0
  100. package/dist/index-d469300x.js +37 -0
  101. package/dist/index-rzqwp11g.js +32 -0
  102. package/dist/{index-s72rqgsx.js → index-tvfafeyy.js} +1 -1
  103. package/dist/{index-hgn3c961.js → index-vk63emp7.js} +978 -35
  104. package/dist/{index-3c5pxbge.js → index-ysvbhg5m.js} +1 -1
  105. package/dist/{keepalive-1j4n4dmk.js → keepalive-4zsrce78.js} +3 -3
  106. package/dist/lead-yqt47dkr.js +70 -0
  107. package/dist/{maintenance-dmghacy5.js → maintenance-86jvartk.js} +1 -1
  108. package/dist/{oauth-refresh-sweep-yy06c03c.js → oauth-refresh-sweep-j52kg9pr.js} +2 -2
  109. package/dist/{onboard-52f9t5dm.js → onboard-c2aj5p8q.js} +3 -3
  110. package/dist/{opencode-adapter-krnh9jkn.js → opencode-adapter-dsagkhtw.js} +5 -6
  111. package/dist/{otel-impl-xjqz6wjj.js → otel-impl-yyy203z8.js} +1 -1
  112. package/dist/{pi-mono-adapter-dbxyp0qv.js → pi-mono-adapter-546cd1cc.js} +9 -9
  113. package/dist/{pricing-refresh-ctdr74pd.js → pricing-refresh-1rgzqyzz.js} +2 -3
  114. package/dist/{rbac-roles-q0gr8eyj.js → rbac-roles-e70xfeyj.js} +4 -6
  115. package/dist/{rbac-roles-ehv8s10n.js → rbac-roles-q89qe8er.js} +3 -3
  116. package/dist/{registry-hpjfmcfz.js → registry-32b1mft6.js} +1 -1
  117. package/dist/{render-v2-5b6chvcq.js → render-v2-k6tt107q.js} +3 -3
  118. package/dist/{resume-5a5d2845.js → resume-cnnrjfxa.js} +6 -6
  119. package/dist/{runtime-khxszyfp.js → runtime-1hv06jsn.js} +1 -1
  120. package/dist/{session-access-gj0bjhqg.js → session-access-xkxkjw3n.js} +4 -4
  121. package/dist/{session-source-backfill-2sy0krfk.js → session-source-backfill-1d5pdwww.js} +2 -2
  122. package/dist/{setup-7ssfakk1.js → setup-se8q7gkc.js} +1 -1
  123. package/dist/{virtual-modules-pjj0knwf.js → virtual-modules-gazyapte.js} +3 -3
  124. package/dist/{work-objects-bf3syvhq.js → work-objects-1kxnbzy5.js} +20 -21
  125. package/dist/{worker-follow-up-38xevga6.js → worker-follow-up-zqm8apt4.js} +17 -18
  126. package/dist/worker-j6xxtq7p.js +70 -0
  127. package/openapi.json +334 -7
  128. package/package.json +4 -4
  129. package/src/apps/definition.ts +11 -0
  130. package/src/apps/store.ts +28 -8
  131. package/src/be/db/model-profiles.ts +147 -38
  132. package/src/be/db/tasks/read.ts +5 -1
  133. package/src/be/db/workflow-run-definitions.ts +117 -0
  134. package/src/be/db.ts +24 -3
  135. package/src/be/memory/constants.ts +14 -1
  136. package/src/be/memory/key-paths.ts +8 -0
  137. package/src/be/memory/providers/sqlite-store.ts +160 -10
  138. package/src/be/memory/task-learning.ts +79 -14
  139. package/src/be/memory/types.ts +24 -1
  140. package/src/be/migrations/279_backfill_learning_expiry.sql +15 -0
  141. package/src/be/migrations/281_model_profiles_pr2.sql +28 -0
  142. package/src/be/migrations/283_workflow_run_definitions.sql +14 -0
  143. package/src/be/model-profile-check.ts +284 -0
  144. package/src/be/model-tier-resolution.ts +112 -12
  145. package/src/be/multi-runtime.ts +27 -0
  146. package/src/be/runtime-pools/routing.ts +52 -4
  147. package/src/be/scripts/typecheck.ts +1 -0
  148. package/src/be/seed-scripts/catalog/dreaming-learnings.ts +552 -0
  149. package/src/be/seed-scripts/catalog/dreaming-memtax-create.ts +389 -14
  150. package/src/be/seed-scripts/catalog/dreaming-memtax.ts +6 -3
  151. package/src/be/seed-scripts/index.ts +9 -0
  152. package/src/be/steering.ts +8 -2
  153. package/src/commands/onboard/agent-fs-version.ts +1 -1
  154. package/src/commands/runner.ts +32 -1
  155. package/src/fs/provider.ts +17 -3
  156. package/src/heartbeat/heartbeat.ts +12 -1
  157. package/src/heartbeat/index.ts +1 -0
  158. package/src/http/agents.ts +56 -4
  159. package/src/http/apps.ts +3 -1
  160. package/src/http/config.ts +2 -6
  161. package/src/http/index.ts +2 -3
  162. package/src/http/model-profiles.ts +58 -10
  163. package/src/http/poll.ts +36 -3
  164. package/src/http/schedules.ts +42 -3
  165. package/src/http/tasks.ts +37 -12
  166. package/src/http/workflows.ts +15 -2
  167. package/src/prompts/session-templates.ts +1 -1
  168. package/src/providers/acp-targets.ts +11 -6
  169. package/src/providers/amp-adapter.ts +1 -1
  170. package/src/providers/claude-sdk-session.ts +132 -23
  171. package/src/providers/codex-skill-resolver.ts +10 -4
  172. package/src/providers/cursor-adapter.ts +1 -1
  173. package/src/providers/devin-skill-resolver.ts +5 -5
  174. package/src/providers/dsh-adapter.ts +1 -1
  175. package/src/scheduler/schedule-task.ts +1 -0
  176. package/src/scripts-runtime/sdk-allowlist.ts +1 -0
  177. package/src/scripts-runtime/swarm-sdk.ts +18 -1
  178. package/src/scripts-runtime/types/stdlib.d.ts +1 -0
  179. package/src/scripts-runtime/types/swarm-sdk.d.ts +1 -0
  180. package/src/server.ts +2 -0
  181. package/src/slack/app.ts +93 -0
  182. package/src/slack/inbound-dispatch.ts +18 -1
  183. package/src/slack/workspace-guard.ts +345 -0
  184. package/src/tasks/task-terminal-effects.ts +4 -0
  185. package/src/tasks/worker-follow-up.ts +102 -2
  186. package/src/tests/acp-adapter.test.ts +82 -0
  187. package/src/tests/apps-icon.test.ts +120 -0
  188. package/src/tests/chained-task-follow-up.test.ts +248 -0
  189. package/src/tests/check-pr-body.test.ts +40 -0
  190. package/src/tests/claude-sdk-lifecycle.test.ts +216 -1
  191. package/src/tests/claude-sdk-process.fixture.ts +57 -0
  192. package/src/tests/codex-skill-resolver.test.ts +31 -0
  193. package/src/tests/credentials-allowlist.test.ts +470 -0
  194. package/src/tests/db-task-read-contract.test.ts +5 -0
  195. package/src/tests/db-task-write-contract.test.ts +5 -0
  196. package/src/tests/deferred-wake-follow-up.test.ts +47 -0
  197. package/src/tests/docs-index-footprint.test.js +3 -3
  198. package/src/tests/dreaming-learnings.test.ts +1395 -0
  199. package/src/tests/dsh-adapter.test.ts +1 -1
  200. package/src/tests/explicit-model-validation.test.ts +2 -0
  201. package/src/tests/fs-provider.test.ts +42 -0
  202. package/src/tests/heartbeat.test.ts +28 -1
  203. package/src/tests/human-free-reclassify.test.ts +5 -1
  204. package/src/tests/list-endpoint-slimming.test.ts +17 -0
  205. package/src/tests/migration-283-workflow-run-definitions.test.ts +69 -0
  206. package/src/tests/model-profile-check.test.ts +387 -0
  207. package/src/tests/model-profiles-api.test.ts +528 -1
  208. package/src/tests/profile-claim.test.ts +415 -3
  209. package/src/tests/profile-tier-alias.test.ts +382 -0
  210. package/src/tests/schedule-profile.test.ts +359 -0
  211. package/src/tests/script-connections.test.ts +6 -0
  212. package/src/tests/script-per-script-executor.test.ts +1 -0
  213. package/src/tests/scripts-sdk-bridge-tool-failure.test.ts +141 -0
  214. package/src/tests/seed-scripts.test.ts +2 -2
  215. package/src/tests/slack-inbound-receipts.test.ts +22 -2
  216. package/src/tests/slack-socket-ack.test.ts +16 -1
  217. package/src/tests/slack-workspace-guard.test.ts +905 -0
  218. package/src/tests/steering-core.test.ts +40 -0
  219. package/src/tests/store-progress-learning.test.ts +605 -20
  220. package/src/tests/tool-annotations.test.ts +1 -1
  221. package/src/tests/workflow-convergence.test.ts +46 -40
  222. package/src/tests/workflow-definition-pinning-recovery.test.ts +552 -0
  223. package/src/tests/workflow-definition-pinning.test.ts +645 -0
  224. package/src/tests/workflow-executors.test.ts +16 -7
  225. package/src/tests/workflow-foreach.test.ts +43 -20
  226. package/src/tests/workflow-notify-slack-ready.test.ts +161 -0
  227. package/src/tests/workflow-profile.test.ts +328 -0
  228. package/src/tools/app-upsert.ts +1 -1
  229. package/src/tools/memory-edit.ts +2 -1
  230. package/src/tools/model-profiles/check-model-profile.ts +63 -0
  231. package/src/tools/schedules/create-schedule.ts +45 -4
  232. package/src/tools/schedules/patch-schedule.ts +50 -4
  233. package/src/tools/schedules/update-schedule.ts +50 -4
  234. package/src/tools/send-task.ts +17 -2
  235. package/src/tools/store-progress.ts +15 -3
  236. package/src/tools/task-action.ts +9 -1
  237. package/src/tools/templates.ts +13 -0
  238. package/src/tools/tool-config.ts +2 -1
  239. package/src/tools/utils.ts +61 -4
  240. package/src/tools/workflows/create-workflow.ts +1 -1
  241. package/src/tools/workflows/retry-workflow-run.ts +1 -1
  242. package/src/tools/workflows/update-workflow.ts +10 -1
  243. package/src/types.ts +56 -1
  244. package/src/utils/credentials.ts +89 -12
  245. package/src/workflows/engine.ts +10 -1
  246. package/src/workflows/executors/agent-task.ts +21 -2
  247. package/src/workflows/executors/foreach.ts +4 -1
  248. package/src/workflows/executors/notify.ts +62 -6
  249. package/src/workflows/executors/sub-workflow.ts +1 -1
  250. package/src/workflows/executors/swarm-script.ts +4 -1
  251. package/src/workflows/foreach-driver.ts +8 -5
  252. package/src/workflows/limits.ts +2 -1
  253. package/src/workflows/model-validation.ts +27 -2
  254. package/src/workflows/patch-definition.ts +3 -1
  255. package/src/workflows/recovery.ts +6 -6
  256. package/src/workflows/resume.ts +9 -9
  257. package/src/workflows/retry-poller.ts +2 -2
  258. package/templates/skills/apps/SKILL.md +2 -0
  259. package/templates/skills/apps/content.md +2 -0
  260. package/templates/skills/code-quality/content.md +12 -0
  261. package/templates/skills/memory/content.md +8 -0
  262. package/templates/skills/scheduling/config.json +1 -1
  263. package/templates/skills/scheduling/content.md +2 -2
  264. package/templates/skills/swarm-docs/content.md +4 -0
  265. package/templates/skills/swarm-extensions/content.md +1 -1
  266. package/templates/skills/swarm-scripts/SKILL.md +1 -1
  267. package/templates/skills/swarm-scripts/content.md +1 -1
  268. package/templates/skills/work-on-task/SKILL.md +2 -0
  269. package/templates/skills/work-on-task/content.md +2 -0
  270. package/templates/workflows/dreaming/content.md +174 -7
  271. package/dist/acp-adapter-srfhs1s9.js +0 -16
  272. package/dist/cli-bzvs88tv.js +0 -339
  273. package/dist/cli-cyn9v8zr.js +0 -748
  274. package/dist/cli-ed6yqpf1.js +0 -779
  275. package/dist/handlers-17wha3ze.js +0 -33
  276. package/dist/heartbeat-gwewgdms.js +0 -42
  277. package/dist/index-8arwq8mw.js +0 -34
  278. package/dist/index-tpw054az.js +0 -38
  279. package/dist/index-waq75j2j.js +0 -31
  280. package/dist/lead-re73kdgc.js +0 -72
  281. package/dist/worker-r8mz7a65.js +0 -72
package/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Agent Swarm API",
5
- "version": "2.7.10",
5
+ "version": "2.8.0",
6
6
  "description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
7
7
  },
8
8
  "servers": [
@@ -1283,6 +1283,74 @@
1283
1283
  "lastUpdatedAt"
1284
1284
  ]
1285
1285
  },
1286
+ "ProfileCheckResult": {
1287
+ "type": "object",
1288
+ "properties": {
1289
+ "agentId": {
1290
+ "type": "string"
1291
+ },
1292
+ "ok": {
1293
+ "type": "boolean"
1294
+ },
1295
+ "profiles": {
1296
+ "type": "array",
1297
+ "items": {
1298
+ "type": "object",
1299
+ "properties": {
1300
+ "name": {
1301
+ "type": "string"
1302
+ },
1303
+ "ok": {
1304
+ "type": "boolean"
1305
+ },
1306
+ "checks": {
1307
+ "type": "array",
1308
+ "items": {
1309
+ "type": "object",
1310
+ "properties": {
1311
+ "check": {
1312
+ "type": "string",
1313
+ "enum": [
1314
+ "harness",
1315
+ "model",
1316
+ "harness-credentials",
1317
+ "credential-allowlist"
1318
+ ]
1319
+ },
1320
+ "state": {
1321
+ "type": "string",
1322
+ "enum": [
1323
+ "pass",
1324
+ "warn",
1325
+ "fail",
1326
+ "unverified"
1327
+ ]
1328
+ },
1329
+ "detail": {
1330
+ "type": "string"
1331
+ }
1332
+ },
1333
+ "required": [
1334
+ "check",
1335
+ "state"
1336
+ ]
1337
+ }
1338
+ }
1339
+ },
1340
+ "required": [
1341
+ "name",
1342
+ "ok",
1343
+ "checks"
1344
+ ]
1345
+ }
1346
+ }
1347
+ },
1348
+ "required": [
1349
+ "agentId",
1350
+ "ok",
1351
+ "profiles"
1352
+ ]
1353
+ },
1286
1354
  "SwarmConfig": {
1287
1355
  "type": "object",
1288
1356
  "properties": {
@@ -7500,6 +7568,34 @@
7500
7568
  "description": {
7501
7569
  "type": "string"
7502
7570
  },
7571
+ "icon": {
7572
+ "oneOf": [
7573
+ {
7574
+ "type": "object",
7575
+ "properties": {
7576
+ "type": {
7577
+ "type": "string",
7578
+ "enum": [
7579
+ "lucide"
7580
+ ]
7581
+ },
7582
+ "icon": {
7583
+ "type": "string",
7584
+ "maxLength": 64,
7585
+ "pattern": "^[a-z0-9-]+$"
7586
+ },
7587
+ "color": {
7588
+ "type": "string",
7589
+ "pattern": "^#[0-9a-fA-F]{6}$"
7590
+ }
7591
+ },
7592
+ "required": [
7593
+ "type",
7594
+ "icon"
7595
+ ]
7596
+ }
7597
+ ]
7598
+ },
7503
7599
  "createdAt": {
7504
7600
  "type": "string"
7505
7601
  },
@@ -11243,7 +11339,7 @@
11243
11339
  },
11244
11340
  "patch": {
11245
11341
  "summary": "Update an agent's runtime harness and default model",
11246
- "description": "Updates `agents.harness_provider` and agent-scoped runtime config. The settings apply to future provider sessions. For `model`, `reasoning_effort`, and `claude.transport`: omit the field to leave it unchanged, send `null` to clear the corresponding override, or send a value to set it. A `model` the model catalog does not list is a 400 unless `allow_custom_model` is true. A `latest:` alias is not accepted here (aliases resolve for a task's model and for `MODEL_TIER_*` values); `reasoning_effort` must be one the harness and model support. `profile` sets the agent's default model profile (same tri-state): it must exist and run on `harness_provider`, and it cannot be sent with `model`. Sending `model`, or changing the model or effort override by any path, clears the default profile.",
11342
+ "description": "Updates `agents.harness_provider` and agent-scoped runtime config. The settings apply to future provider sessions. For `model`, `reasoning_effort`, and `claude.transport`: omit the field to leave it unchanged, send `null` to clear the corresponding override, or send a value to set it. A `model` the model catalog does not list is a 400 unless `allow_custom_model` is true. A `latest:` alias is not accepted here (aliases resolve for a task's model and for `MODEL_TIER_*` values); `reasoning_effort` must be one the harness and model support. `profile` sets the agent's default model profile (same tri-state): it must exist, run on `harness_provider` and pass the profile check (`GET /api/agents/{id}/profile-check`) against it, and it cannot be sent with `model`. A failing check is a 400 `{ error, check }`; a passing one returns the result as `profileCheck`. Sending `model`, or changing the model or effort override by any path, clears the default profile.",
11247
11343
  "tags": [
11248
11344
  "Agents"
11249
11345
  ],
@@ -11410,7 +11506,7 @@
11410
11506
  },
11411
11507
  "responses": {
11412
11508
  "200": {
11413
- "description": "Updated agent row",
11509
+ "description": "Updated agent row. `profileCheck` is set when the body set `profile`, so warnings show.",
11414
11510
  "content": {
11415
11511
  "application/json": {
11416
11512
  "schema": {
@@ -11439,6 +11535,9 @@
11439
11535
  "max",
11440
11536
  "available"
11441
11537
  ]
11538
+ },
11539
+ "profileCheck": {
11540
+ "$ref": "#/components/schemas/ProfileCheckResult"
11442
11541
  }
11443
11542
  },
11444
11543
  "required": [
@@ -11451,7 +11550,7 @@
11451
11550
  }
11452
11551
  },
11453
11552
  "400": {
11454
- "description": "Validation error",
11553
+ "description": "Validation error, or `{ error, check }` when the profile check fails",
11455
11554
  "content": {
11456
11555
  "application/json": {
11457
11556
  "schema": {
@@ -12534,6 +12633,61 @@
12534
12633
  }
12535
12634
  }
12536
12635
  },
12636
+ "/api/agents/{id}/profile-check": {
12637
+ "get": {
12638
+ "summary": "Check whether an agent can run a model profile",
12639
+ "description": "Read-only. Judges the profile's harness, model, the agent's credential report and the profile's credential allowlist. Each row is pass, warn, fail or unverified; `ok` is false only when a row fails. Never returns a secret value.",
12640
+ "tags": [
12641
+ "Agents"
12642
+ ],
12643
+ "security": [
12644
+ {
12645
+ "bearerAuth": []
12646
+ }
12647
+ ],
12648
+ "parameters": [
12649
+ {
12650
+ "schema": {
12651
+ "type": "string"
12652
+ },
12653
+ "required": true,
12654
+ "name": "id",
12655
+ "in": "path"
12656
+ },
12657
+ {
12658
+ "schema": {
12659
+ "type": "string",
12660
+ "minLength": 1
12661
+ },
12662
+ "required": true,
12663
+ "name": "profile",
12664
+ "in": "query"
12665
+ }
12666
+ ],
12667
+ "responses": {
12668
+ "200": {
12669
+ "description": "The check result",
12670
+ "content": {
12671
+ "application/json": {
12672
+ "schema": {
12673
+ "$ref": "#/components/schemas/ProfileCheckResult"
12674
+ }
12675
+ }
12676
+ }
12677
+ },
12678
+ "404": {
12679
+ "description": "Agent or profile not found",
12680
+ "content": {
12681
+ "application/json": {
12682
+ "schema": {
12683
+ "$ref": "#/components/schemas/ErrorResponse"
12684
+ }
12685
+ }
12686
+ }
12687
+ }
12688
+ }
12689
+ }
12690
+ },
12537
12691
  "/api/agents/credential-status": {
12538
12692
  "get": {
12539
12693
  "summary": "Bulk credential-status across all agents (powers the dashboard)",
@@ -28211,6 +28365,21 @@
28211
28365
  "null"
28212
28366
  ]
28213
28367
  },
28368
+ "credentials": {
28369
+ "type": [
28370
+ "object",
28371
+ "null"
28372
+ ],
28373
+ "additionalProperties": {
28374
+ "type": "array",
28375
+ "items": {
28376
+ "type": "string",
28377
+ "minLength": 5,
28378
+ "maxLength": 5
28379
+ },
28380
+ "minItems": 1
28381
+ }
28382
+ },
28214
28383
  "createdAt": {
28215
28384
  "type": "string"
28216
28385
  },
@@ -28227,6 +28396,7 @@
28227
28396
  "allowCustomModel",
28228
28397
  "description",
28229
28398
  "seededFrom",
28399
+ "credentials",
28230
28400
  "createdAt",
28231
28401
  "lastUpdatedAt"
28232
28402
  ]
@@ -28244,7 +28414,7 @@
28244
28414
  },
28245
28415
  "post": {
28246
28416
  "summary": "Create a model profile",
28247
- "description": "A profile runs on one harness. `model` must run on that harness and be in the model catalog unless `allowCustomModel` is true (a gateway id, a fresh launch); a `latest:` alias is accepted and resolves at claim. `effort` must be a level the harness and model support. Operator only (the shared API key).",
28417
+ "description": "A profile runs on one harness. `model` must run on that harness and be in the model catalog unless `allowCustomModel` is true (a gateway id, a fresh launch); a `latest:` alias is accepted and resolves at claim. `effort` must be a level the harness and model support. `credentials` pins which pooled keys the profile uses: per credential var of the harness, the last 5 characters of each allowed key (`CODEX_OAUTH` is not supported). Operator only (the shared API key).",
28248
28418
  "tags": [
28249
28419
  "Models"
28250
28420
  ],
@@ -28309,6 +28479,21 @@
28309
28479
  "null"
28310
28480
  ],
28311
28481
  "maxLength": 500
28482
+ },
28483
+ "credentials": {
28484
+ "type": [
28485
+ "object",
28486
+ "null"
28487
+ ],
28488
+ "additionalProperties": {
28489
+ "type": "array",
28490
+ "items": {
28491
+ "type": "string",
28492
+ "minLength": 5,
28493
+ "maxLength": 5
28494
+ },
28495
+ "minItems": 1
28496
+ }
28312
28497
  }
28313
28498
  },
28314
28499
  "required": [
@@ -28384,6 +28569,21 @@
28384
28569
  "null"
28385
28570
  ]
28386
28571
  },
28572
+ "credentials": {
28573
+ "type": [
28574
+ "object",
28575
+ "null"
28576
+ ],
28577
+ "additionalProperties": {
28578
+ "type": "array",
28579
+ "items": {
28580
+ "type": "string",
28581
+ "minLength": 5,
28582
+ "maxLength": 5
28583
+ },
28584
+ "minItems": 1
28585
+ }
28586
+ },
28387
28587
  "createdAt": {
28388
28588
  "type": "string"
28389
28589
  },
@@ -28400,6 +28600,7 @@
28400
28600
  "allowCustomModel",
28401
28601
  "description",
28402
28602
  "seededFrom",
28603
+ "credentials",
28403
28604
  "createdAt",
28404
28605
  "lastUpdatedAt"
28405
28606
  ]
@@ -28525,6 +28726,21 @@
28525
28726
  "null"
28526
28727
  ]
28527
28728
  },
28729
+ "credentials": {
28730
+ "type": [
28731
+ "object",
28732
+ "null"
28733
+ ],
28734
+ "additionalProperties": {
28735
+ "type": "array",
28736
+ "items": {
28737
+ "type": "string",
28738
+ "minLength": 5,
28739
+ "maxLength": 5
28740
+ },
28741
+ "minItems": 1
28742
+ }
28743
+ },
28528
28744
  "createdAt": {
28529
28745
  "type": "string"
28530
28746
  },
@@ -28541,6 +28757,7 @@
28541
28757
  "allowCustomModel",
28542
28758
  "description",
28543
28759
  "seededFrom",
28760
+ "credentials",
28544
28761
  "createdAt",
28545
28762
  "lastUpdatedAt"
28546
28763
  ]
@@ -28562,7 +28779,7 @@
28562
28779
  },
28563
28780
  "patch": {
28564
28781
  "summary": "Update a model profile",
28565
- "description": "Changes the model, effort, custom-model flag or description; the name and harness are fixed. Omit a field to keep it; `effort: null` clears it. Applies to tasks claimed after the change. Operator only (the shared API key).",
28782
+ "description": "Changes the model, effort, custom-model flag, description or credential allowlist; the name and harness are fixed. Omit a field to keep it; `effort: null` and `credentials: null` clear it. Applies to tasks claimed after the change. Operator only (the shared API key).",
28566
28783
  "tags": [
28567
28784
  "Models"
28568
28785
  ],
@@ -28615,6 +28832,21 @@
28615
28832
  "null"
28616
28833
  ],
28617
28834
  "maxLength": 500
28835
+ },
28836
+ "credentials": {
28837
+ "type": [
28838
+ "object",
28839
+ "null"
28840
+ ],
28841
+ "additionalProperties": {
28842
+ "type": "array",
28843
+ "items": {
28844
+ "type": "string",
28845
+ "minLength": 5,
28846
+ "maxLength": 5
28847
+ },
28848
+ "minItems": 1
28849
+ }
28618
28850
  }
28619
28851
  }
28620
28852
  }
@@ -28685,6 +28917,21 @@
28685
28917
  "null"
28686
28918
  ]
28687
28919
  },
28920
+ "credentials": {
28921
+ "type": [
28922
+ "object",
28923
+ "null"
28924
+ ],
28925
+ "additionalProperties": {
28926
+ "type": "array",
28927
+ "items": {
28928
+ "type": "string",
28929
+ "minLength": 5,
28930
+ "maxLength": 5
28931
+ },
28932
+ "minItems": 1
28933
+ }
28934
+ },
28688
28935
  "createdAt": {
28689
28936
  "type": "string"
28690
28937
  },
@@ -28701,6 +28948,7 @@
28701
28948
  "allowCustomModel",
28702
28949
  "description",
28703
28950
  "seededFrom",
28951
+ "credentials",
28704
28952
  "createdAt",
28705
28953
  "lastUpdatedAt"
28706
28954
  ]
@@ -28742,7 +28990,7 @@
28742
28990
  },
28743
28991
  "delete": {
28744
28992
  "summary": "Delete a model profile",
28745
- "description": "Refused (409) for a shipped `<harness>-<tier>` seed (edit it instead; it would come back at the next boot), and while an agent has the profile as its default or a task holds it (unfinished, or superseded and still owed its resume). Operator only (the shared API key).",
28993
+ "description": "Refused (409) for a shipped `<harness>-<tier>` seed (edit it instead; it would come back at the next boot), and while an agent has the profile as its default, a schedule names it, or a task holds it (unfinished, or superseded and still owed its resume). Operator only (the shared API key).",
28746
28994
  "tags": [
28747
28995
  "Models"
28748
28996
  ],
@@ -34361,6 +34609,12 @@
34361
34609
  "max"
34362
34610
  ]
34363
34611
  },
34612
+ "profile": {
34613
+ "type": "string"
34614
+ },
34615
+ "resolvedProfile": {
34616
+ "type": "string"
34617
+ },
34364
34618
  "provider": {
34365
34619
  "type": "string",
34366
34620
  "enum": [
@@ -35934,6 +36188,12 @@
35934
36188
  "max"
35935
36189
  ]
35936
36190
  },
36191
+ "profile": {
36192
+ "type": "string"
36193
+ },
36194
+ "resolvedProfile": {
36195
+ "type": "string"
36196
+ },
35937
36197
  "provider": {
35938
36198
  "type": "string",
35939
36199
  "enum": [
@@ -36362,6 +36622,18 @@
36362
36622
  "required": [
36363
36623
  "name"
36364
36624
  ]
36625
+ },
36626
+ "credentialAllowlist": {
36627
+ "type": "object",
36628
+ "additionalProperties": {
36629
+ "type": "array",
36630
+ "items": {
36631
+ "type": "string",
36632
+ "minLength": 5,
36633
+ "maxLength": 5
36634
+ },
36635
+ "minItems": 1
36636
+ }
36365
36637
  }
36366
36638
  },
36367
36639
  "required": [
@@ -39180,6 +39452,18 @@
39180
39452
  "name"
39181
39453
  ]
39182
39454
  }
39455
+ },
39456
+ "credentialAllowlist": {
39457
+ "type": "object",
39458
+ "additionalProperties": {
39459
+ "type": "array",
39460
+ "items": {
39461
+ "type": "string",
39462
+ "minLength": 5,
39463
+ "maxLength": 5
39464
+ },
39465
+ "minItems": 1
39466
+ }
39183
39467
  }
39184
39468
  },
39185
39469
  "required": [
@@ -41195,6 +41479,9 @@
41195
41479
  "ultra"
41196
41480
  ]
41197
41481
  },
41482
+ "profile": {
41483
+ "type": "string"
41484
+ },
41198
41485
  "allowCustomModel": {
41199
41486
  "type": "boolean"
41200
41487
  },
@@ -41373,6 +41660,9 @@
41373
41660
  "ultra"
41374
41661
  ]
41375
41662
  },
41663
+ "profile": {
41664
+ "type": "string"
41665
+ },
41376
41666
  "scheduleType": {
41377
41667
  "type": "string",
41378
41668
  "enum": [
@@ -41738,6 +42028,9 @@
41738
42028
  "ultra"
41739
42029
  ]
41740
42030
  },
42031
+ "profile": {
42032
+ "type": "string"
42033
+ },
41741
42034
  "scheduleType": {
41742
42035
  "type": "string",
41743
42036
  "enum": [
@@ -41930,6 +42223,9 @@
41930
42223
  "ultra"
41931
42224
  ]
41932
42225
  },
42226
+ "profile": {
42227
+ "type": "string"
42228
+ },
41933
42229
  "scheduleType": {
41934
42230
  "type": "string",
41935
42231
  "enum": [
@@ -42165,6 +42461,9 @@
42165
42461
  "ultra"
42166
42462
  ]
42167
42463
  },
42464
+ "profile": {
42465
+ "type": "string"
42466
+ },
42168
42467
  "scheduleType": {
42169
42468
  "type": "string",
42170
42469
  "enum": [
@@ -42415,6 +42714,9 @@
42415
42714
  "ultra"
42416
42715
  ]
42417
42716
  },
42717
+ "profile": {
42718
+ "type": "string"
42719
+ },
42418
42720
  "scheduleType": {
42419
42721
  "type": "string",
42420
42722
  "enum": [
@@ -42608,6 +42910,12 @@
42608
42910
  null
42609
42911
  ]
42610
42912
  },
42913
+ "profile": {
42914
+ "type": [
42915
+ "string",
42916
+ "null"
42917
+ ]
42918
+ },
42611
42919
  "allowCustomModel": {
42612
42920
  "type": "boolean"
42613
42921
  },
@@ -42788,6 +43096,9 @@
42788
43096
  "ultra"
42789
43097
  ]
42790
43098
  },
43099
+ "profile": {
43100
+ "type": "string"
43101
+ },
42791
43102
  "scheduleType": {
42792
43103
  "type": "string",
42793
43104
  "enum": [
@@ -43012,6 +43323,12 @@
43012
43323
  null
43013
43324
  ]
43014
43325
  },
43326
+ "profile": {
43327
+ "type": [
43328
+ "string",
43329
+ "null"
43330
+ ]
43331
+ },
43015
43332
  "allowCustomModel": {
43016
43333
  "type": "boolean"
43017
43334
  },
@@ -43192,6 +43509,9 @@
43192
43509
  "ultra"
43193
43510
  ]
43194
43511
  },
43512
+ "profile": {
43513
+ "type": "string"
43514
+ },
43195
43515
  "scheduleType": {
43196
43516
  "type": "string",
43197
43517
  "enum": [
@@ -58252,6 +58572,9 @@
58252
58572
  "ultra"
58253
58573
  ]
58254
58574
  },
58575
+ "profile": {
58576
+ "type": "string"
58577
+ },
58255
58578
  "scheduleType": {
58256
58579
  "type": "string",
58257
58580
  "enum": [
@@ -58436,6 +58759,9 @@
58436
58759
  "ultra"
58437
58760
  ]
58438
58761
  },
58762
+ "profile": {
58763
+ "type": "string"
58764
+ },
58439
58765
  "scheduleType": {
58440
58766
  "type": "string",
58441
58767
  "enum": [
@@ -66611,6 +66937,7 @@
66611
66937
  "/api/workflow-runs/{id}/retry": {
66612
66938
  "post": {
66613
66939
  "summary": "Retry a failed workflow run",
66940
+ "description": "Retries on the definition the run started with; to use an edited workflow, trigger a new run.",
66614
66941
  "tags": [
66615
66942
  "Workflows"
66616
66943
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desplega.ai/agent-swarm",
3
- "version": "2.7.10",
3
+ "version": "2.8.0",
4
4
  "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.",
5
5
  "keywords": [
6
6
  "agent-swarm.dev",
@@ -204,7 +204,7 @@
204
204
  "dependencies": {
205
205
  "@agentclientprotocol/sdk": "2.4.0",
206
206
  "@ai-sdk/openai": "^3.0.41",
207
- "@anthropic-ai/claude-agent-sdk": "0.3.317",
207
+ "@anthropic-ai/claude-agent-sdk": "0.3.318",
208
208
  "@anthropic-ai/sdk": "^1.4.0",
209
209
  "@asteasolutions/zod-to-openapi": "^8.0.0",
210
210
  "@aws-sdk/client-bedrock": "3.1048.0",
@@ -213,8 +213,8 @@
213
213
  "@chat-adapter/slack": "4.41.1",
214
214
  "@chat-adapter/teams": "4.41.1",
215
215
  "@chat-adapter/telegram": "4.41.1",
216
- "@cursor/sdk": "1.3.0",
217
- "@desplega.ai/agent-fs-just-bash": "0.18.16",
216
+ "@cursor/sdk": "1.3.1",
217
+ "@desplega.ai/agent-fs-just-bash": "0.18.18",
218
218
  "@desplega.ai/business-use": "^0.4.2",
219
219
  "@earendil-works/pi-agent-core": "^1.5.0",
220
220
  "@earendil-works/pi-ai": "^1.5.0",
@@ -4,6 +4,7 @@ import { getScriptById } from "../be/scripts/db";
4
4
  import { getSavedScriptOwnerAgentId } from "../be/scripts/run-saved";
5
5
  import { APPS_JSON_COLUMN_MAX_BYTES_BOUNDS } from "../be/swarm-config-guard";
6
6
  import { checkQuickJSCompat, quickJSCompatWarnings } from "../scripts-runtime/quickjs-compat";
7
+ import { AppIconSchema } from "../types";
7
8
  import catalog from "./catalog.generated.json";
8
9
  import {
9
10
  crossPageDefinitionIssues,
@@ -467,6 +468,13 @@ export const AppDefinitionSchema = z
467
468
  pages: z.record(AppNameSchema, AppPageSchema),
468
469
  defaultPage: AppNameSchema,
469
470
  theme: AppThemeIdSchema.optional(),
471
+ /**
472
+ * Icon shown for the app on the dashboard Apps page (lucide icon name +
473
+ * optional hex color). The server validates shape only; the dashboard owns
474
+ * the curated icon catalog and falls back to a generic icon when the name
475
+ * is unknown (`AVATAR_ICON_CATALOG` in `apps/ui/src/lib/agent-icon.ts`).
476
+ */
477
+ icon: AppIconSchema.optional(),
470
478
  })
471
479
  .superRefine((definition, ctx) => {
472
480
  if (!Object.hasOwn(definition.pages, definition.defaultPage)) {
@@ -626,6 +634,7 @@ const APP_DEFINITION_TOP_LEVEL_KEYS = new Set([
626
634
  "defaultPage",
627
635
  "schemaVersion",
628
636
  "theme",
637
+ "icon",
629
638
  ]);
630
639
 
631
640
  const TOP_LEVEL_KEY_SUGGESTIONS: Record<string, string> = {
@@ -634,6 +643,8 @@ const TOP_LEVEL_KEY_SUGGESTIONS: Record<string, string> = {
634
643
  themes: "theme",
635
644
  appearance: "theme",
636
645
  styling: "theme",
646
+ avatar: "icon",
647
+ emoji: "icon",
637
648
  };
638
649
 
639
650
  export type AppDefinitionPatchResult =