@desplega.ai/agent-swarm 2.12.0 → 2.13.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 (327) hide show
  1. package/dist/acp-adapter-cn53011z.js +17 -0
  2. package/dist/{acp-targets-311gcyvw.js → acp-targets-86f0sh6g.js} +9 -8
  3. package/dist/{actions-c4chgxp6.js → actions-zv8vcxvr.js} +24 -23
  4. package/dist/{agent-fs-provision-0b9awm5n.js → agent-fs-provision-jqshb33y.js} +4 -4
  5. package/dist/{amp-adapter-r0veq6x5.js → amp-adapter-gt503ywc.js} +2 -2
  6. package/dist/{app-hn5fftf5.js → app-6t4k5rh1.js} +6 -4
  7. package/dist/{approval-notifications-3g6yc8nv.js → approval-notifications-fcfw063h.js} +7 -6
  8. package/dist/{assistant-cpjgpjvp.js → assistant-9dzybh12.js} +25 -24
  9. package/dist/{boot-args-schema-hce1av1h.js → boot-args-schema-xzfp2feg.js} +1 -1
  10. package/dist/{boot-reembed-d7xcym0j.js → boot-reembed-3jz0p2jk.js} +1 -1
  11. package/dist/{boot-reembed-bztbxc4z.js → boot-reembed-r88wngfg.js} +5 -2
  12. package/dist/{boot-scrub-sweep-mkmm16gk.js → boot-scrub-sweep-scrqhw48.js} +2 -2
  13. package/dist/{boot-seeds-arrkbe8t.js → boot-seeds-vb2dcrrb.js} +4 -4
  14. package/dist/{claude-adapter-ykpyr5p8.js → claude-adapter-h3mp9hgs.js} +7 -6
  15. package/dist/{claude-managed-adapter-ssg6z4bt.js → claude-managed-adapter-kpbyj2vb.js} +3 -3
  16. package/dist/{claude-managed-setup-trd59v7b.js → claude-managed-setup-0efr3wkg.js} +5 -5
  17. package/dist/{claude-sdk-session-yjcze0j1.js → claude-sdk-session-03dw669q.js} +7 -6
  18. package/dist/{cli-e3ahxq5y.js → cli-0b655smz.js} +4 -4
  19. package/dist/{cli-mcymtvwn.js → cli-0dg7ytxm.js} +89 -11
  20. package/dist/cli-0jkenasr.js +148 -0
  21. package/dist/{cli-c7j31hq9.js → cli-0pazkmd4.js} +3 -3
  22. package/dist/{cli-5tg94mdw.js → cli-117g15t4.js} +8 -11
  23. package/dist/{cli-r14ac1y0.js → cli-1dbv9mj9.js} +1 -1
  24. package/dist/{cli-q8tc22bj.js → cli-1v82d2w6.js} +3 -3
  25. package/dist/{cli-pe3yxedk.js → cli-2jk4s7z1.js} +2 -2
  26. package/dist/{cli-0pp1yjg2.js → cli-2skf1mdf.js} +8 -8
  27. package/dist/{cli-2tw284hj.js → cli-48nvk6sb.js} +1 -1
  28. package/dist/{cli-en6dmkxd.js → cli-49f5jyhh.js} +2 -2
  29. package/dist/{cli-2z2c4k6q.js → cli-50w82h6m.js} +21 -0
  30. package/dist/{cli-dd2k2mcd.js → cli-6a40p4kv.js} +1 -1
  31. package/dist/{cli-yegz2g06.js → cli-6h88mn9q.js} +3 -3
  32. package/dist/{cli-52nfye5j.js → cli-7dbhnsj9.js} +23 -15
  33. package/dist/{cli-04zc3f7b.js → cli-9fsagra4.js} +1 -1
  34. package/dist/{cli-nja15knq.js → cli-9m9kyw77.js} +3 -3
  35. package/dist/{cli-k5jx8jya.js → cli-ajjvqhf3.js} +1 -1
  36. package/dist/{cli-hbvgzjq4.js → cli-avqkr20b.js} +2 -2
  37. package/dist/{cli-yfpc6qy9.js → cli-avxh26pd.js} +46 -15
  38. package/dist/{cli-q2dywc8h.js → cli-b2jh3dyb.js} +4 -4
  39. package/dist/{cli-m5qtmrbc.js → cli-c8v2yvej.js} +2 -2
  40. package/dist/{cli-gfy6hbd9.js → cli-ct8sz3np.js} +17 -10
  41. package/dist/{cli-bz97ff9n.js → cli-dka73bak.js} +1 -1
  42. package/dist/{cli-dkvtfgn4.js → cli-dkejt425.js} +75 -16
  43. package/dist/{cli-sv2r3bw8.js → cli-dnh64e8e.js} +2 -2
  44. package/dist/{cli-kwr5qv5g.js → cli-eb279wn3.js} +2 -2
  45. package/dist/{cli-hhc47ack.js → cli-f1952kjy.js} +2 -2
  46. package/dist/{cli-5z0g0e8v.js → cli-f8rcvf2x.js} +49 -13
  47. package/dist/{cli-eq4kew31.js → cli-fhvk2nvp.js} +24 -11
  48. package/dist/{cli-xf4z5bdn.js → cli-fz9pcjsw.js} +2 -2
  49. package/dist/{cli-fxd1mwtr.js → cli-g6j6ac3h.js} +1 -1
  50. package/dist/{cli-ya3kf4gs.js → cli-gfcv679k.js} +1 -1
  51. package/dist/{cli-55tc8cj4.js → cli-hbq0kwxz.js} +4 -4
  52. package/dist/{cli-39qm0rtm.js → cli-hc6e4tac.js} +28 -149
  53. package/dist/{cli-j5gtytvg.js → cli-hgsxnjyg.js} +13 -10
  54. package/dist/{cli-h70a2mxy.js → cli-hpb9x72z.js} +48 -8
  55. package/dist/{cli-7yn42w6m.js → cli-j53hpbsm.js} +1 -1
  56. package/dist/{cli-12vek61e.js → cli-jj3c5nyb.js} +471 -119
  57. package/dist/{cli-fy4gb74g.js → cli-kde4ky90.js} +1 -1
  58. package/dist/{cli-9qe5y107.js → cli-kspxjftk.js} +1 -1
  59. package/dist/{cli-bp6k9acz.js → cli-mh7pdxe0.js} +16 -16
  60. package/dist/{cli-v9ya390t.js → cli-mz34pxbk.js} +8 -8
  61. package/dist/{cli-ma9ys8rt.js → cli-nc6a8b5b.js} +7 -4
  62. package/dist/{cli-1htmtqc2.js → cli-prf7kz78.js} +49 -49
  63. package/dist/{cli-01tvvtad.js → cli-qec9bynj.js} +3 -3
  64. package/dist/{cli-t75xngj1.js → cli-qhhb30e8.js} +7 -7
  65. package/dist/{cli-73q4g5nx.js → cli-qm3ntjqs.js} +12 -12
  66. package/dist/{cli-tm60vtax.js → cli-rfejbpe1.js} +1 -1
  67. package/dist/{cli-agjbj5x0.js → cli-sdh61g52.js} +37 -19
  68. package/dist/{cli-9y4tgrkf.js → cli-skd2c4ej.js} +2 -1
  69. package/dist/{cli-5x03v6en.js → cli-sq913bh1.js} +8 -8
  70. package/dist/{cli-b93d81yg.js → cli-t35hx078.js} +1 -1
  71. package/dist/{cli-r0mz92by.js → cli-tn91wc6e.js} +1 -1
  72. package/dist/{cli-wvjqaqcp.js → cli-tstj6e8e.js} +1113 -227
  73. package/dist/{cli-xm34qj8m.js → cli-w14j2z4k.js} +2 -2
  74. package/dist/{cli-eqq0hwvx.js → cli-wndegmns.js} +1 -1
  75. package/dist/{cli-0k1a0sde.js → cli-wrhbym01.js} +6 -6
  76. package/dist/{cli-fyaq4zdv.js → cli-wv20kbr3.js} +6 -6
  77. package/dist/{cli-mq2fbgva.js → cli-wxwv3t11.js} +2 -2
  78. package/dist/{cli-krbcr00p.js → cli-xfjn2kyq.js} +58 -4
  79. package/dist/{cli-5r95eqbh.js → cli-y260hgep.js} +1 -1
  80. package/dist/{cli-cjqyse9q.js → cli-y4a4458j.js} +3 -3
  81. package/dist/{cli-2amwhyv2.js → cli-y518qkjg.js} +5 -3
  82. package/dist/{cli-0vcqcwfn.js → cli-yfvhvw8m.js} +2 -0
  83. package/dist/cli-yn4kt85g.js +148 -0
  84. package/dist/{cli-n8f0fs3c.js → cli-ytc7fpza.js} +8 -8
  85. package/dist/{cli-e8n0hdzd.js → cli-z64t9pe6.js} +1 -1
  86. package/dist/{cli-72yms3ey.js → cli-zqmmy073.js} +198 -18
  87. package/dist/cli.js +18 -16
  88. package/dist/{codex-adapter-wc6e4wct.js → codex-adapter-f3yp0kaj.js} +5 -5
  89. package/dist/{codex-hook-aqtj17yr.js → codex-hook-262cekfp.js} +73 -2
  90. package/dist/{codex-session-runner-ppfgjd97.js → codex-session-runner-ns4mv70p.js} +5 -5
  91. package/dist/{commands-tsv2vx5b.js → commands-5bzf2tfw.js} +3 -3
  92. package/dist/{controller-ye4sdwsy.js → controller-5xt7kvfm.js} +2 -2
  93. package/dist/{controllers-connect-zn4dg69h.js → controllers-connect-0gg13mzp.js} +24 -23
  94. package/dist/core-0fqtbrxa.js +42 -0
  95. package/dist/{cursor-adapter-q2g9vwts.js → cursor-adapter-p0c5zv6r.js} +1 -1
  96. package/dist/{db-g111qn9j.js → db-2s68ycq7.js} +3 -3
  97. package/dist/{db-3r1fyr2n.js → db-q7q639k5.js} +4 -2
  98. package/dist/{dispatcher-4q8s0mx8.js → dispatcher-j2y1q7ae.js} +24 -21
  99. package/dist/{dsh-adapter-mmcw1z5s.js → dsh-adapter-pgnkf4st.js} +1 -1
  100. package/dist/{easter-egg-3d-04ke6hcp.js → easter-egg-3d-0kea97jf.js} +1 -1
  101. package/dist/{embedding-space-kcdn52vz.js → embedding-space-3n6mhhmy.js} +6 -6
  102. package/dist/{embeddings-jnzcd91a.js → embeddings-jfmj6yme.js} +1 -1
  103. package/dist/{execute-74amghty.js → execute-tjrej979.js} +1 -1
  104. package/dist/{external-channel-v9zgxnxz.js → external-channel-jy8w2gg3.js} +2 -2
  105. package/dist/fx-adapter-k6w3jvz9.js +20 -0
  106. package/dist/grok-adapter-4q5tssw0.js +20 -0
  107. package/dist/handlers-qxgfvvsf.js +41 -0
  108. package/dist/{heartbeat-p8pk1msj.js → heartbeat-6tr2w2da.js} +25 -24
  109. package/dist/{hook-p5reemds.js → hook-bpnncsec.js} +76 -17
  110. package/dist/{hook-k1h73zd7.js → hook-fv1jwrv7.js} +6 -5
  111. package/dist/{http-ms1z5xxy.js → http-bpa26czn.js} +785 -181
  112. package/dist/index-0mcxjdsa.js +44 -0
  113. package/dist/{index-kn63q1gr.js → index-52tgbhrw.js} +29 -28
  114. package/dist/index-dz4q23ag.js +40 -0
  115. package/dist/{index-76zzxtzf.js → index-mpj0z9e0.js} +1 -1
  116. package/dist/index-s175jckx.js +39 -0
  117. package/dist/{index-gjn6qfgn.js → index-s8re7mvq.js} +1 -1
  118. package/dist/{index-fbkqhvvj.js → index-w216g9y9.js} +198 -160
  119. package/dist/{keepalive-031js8jz.js → keepalive-d6z12s04.js} +3 -3
  120. package/dist/lead-p3hx7h35.js +79 -0
  121. package/dist/{maintenance-sq9v3qx9.js → maintenance-7kac6g2g.js} +1 -1
  122. package/dist/{oauth-refresh-sweep-zqmnyvs8.js → oauth-refresh-sweep-t1xjetbh.js} +2 -2
  123. package/dist/{object-webhooks-r24wwb5y.js → object-webhooks-6rdagg0r.js} +7 -7
  124. package/dist/{onboard-p25yhh7t.js → onboard-32y1cfxy.js} +3 -3
  125. package/dist/{opencode-adapter-wcjc4zdk.js → opencode-adapter-enp3v31n.js} +7 -6
  126. package/dist/{otel-impl-ff1gf20m.js → otel-impl-k0tm5ptj.js} +1 -1
  127. package/dist/{pending-hxj5yatb.js → pending-24zebgvs.js} +23 -22
  128. package/dist/{pi-mono-adapter-vkp4zz7p.js → pi-mono-adapter-yj72xxxe.js} +85 -16
  129. package/dist/{pricing-refresh-9w7gx41w.js → pricing-refresh-cf25x38j.js} +2 -2
  130. package/dist/{rbac-roles-84aw10nz.js → rbac-roles-0wydd22m.js} +3 -3
  131. package/dist/{rbac-roles-hz74vckp.js → rbac-roles-at6crb3r.js} +7 -4
  132. package/dist/{registry-eeyx1201.js → registry-zv0zvxsx.js} +1 -1
  133. package/dist/{render-v2-nrdkg9gf.js → render-v2-nvcw0jd7.js} +8 -4
  134. package/dist/{resume-s6ey36rh.js → resume-y4w0k5v3.js} +9 -8
  135. package/dist/{runtime-x0b4pyam.js → runtime-vpe43hx0.js} +1 -1
  136. package/dist/{session-access-xv49tk14.js → session-access-gkyvnfye.js} +5 -4
  137. package/dist/{session-source-backfill-r5j988ah.js → session-source-backfill-3w2st4m2.js} +2 -2
  138. package/dist/{setup-mj0krk1p.js → setup-axxvqtys.js} +1 -1
  139. package/dist/thread-buffer-rwa7d4dx.js +42 -0
  140. package/dist/{tree-visibility-cbrsfaar.js → tree-visibility-y4fqvab5.js} +2 -2
  141. package/dist/{user-merge-jobs-f9d8nwnw.js → user-merge-jobs-kcmwvrc6.js} +3 -3
  142. package/dist/{virtual-modules-ns0ryw05.js → virtual-modules-7d92dct1.js} +3 -3
  143. package/dist/{work-objects-pydhzast.js → work-objects-f708e069.js} +27 -25
  144. package/dist/worker-8rg9gz74.js +79 -0
  145. package/dist/{worker-follow-up-9z2xec5e.js → worker-follow-up-0by8wztc.js} +22 -21
  146. package/dist/xlsx-9acfmxr1.js +31534 -0
  147. package/openapi.json +1385 -204
  148. package/package.json +5 -3
  149. package/src/agentmail/handlers.ts +26 -19
  150. package/src/apps/catalog.generated.json +31 -0
  151. package/src/apps/row-store.ts +37 -14
  152. package/src/azure-devops/handlers.ts +2 -0
  153. package/src/be/audit-user.ts +46 -6
  154. package/src/be/db/kv-windows.ts +22 -0
  155. package/src/be/db/session-moves.ts +3 -3
  156. package/src/be/db/session-tree.ts +52 -5
  157. package/src/be/db/skill-audit.ts +17 -0
  158. package/src/be/db/tasks/write.ts +18 -3
  159. package/src/be/db.ts +114 -23
  160. package/src/be/extensions/assets.ts +11 -7
  161. package/src/be/memory/demotion-evidence.ts +2 -2
  162. package/src/be/memory/providers/sqlite-store.ts +151 -18
  163. package/src/be/memory/search-read-worker.ts +60 -0
  164. package/src/be/memory/search-reader.ts +223 -0
  165. package/src/be/migrations/337_favorites_session_hidden_key.sql +39 -0
  166. package/src/be/migrations/338_audit_agent_columns.sql +30 -0
  167. package/src/be/migrations/339_deferred_event_waits.sql +26 -0
  168. package/src/be/model-tier-resolution.ts +18 -1
  169. package/src/be/multi-runtime.ts +17 -0
  170. package/src/be/primitives/object-embed.ts +250 -0
  171. package/src/be/primitives/objects.ts +29 -9
  172. package/src/be/primitives/sheets/service.ts +138 -6
  173. package/src/be/primitives/sheets/xlsx.ts +367 -0
  174. package/src/be/rbac-roles.ts +3 -0
  175. package/src/be/repo-checked-update.ts +4 -4
  176. package/src/be/repo-merge-policy.ts +26 -9
  177. package/src/be/scripts/boot-reembed.ts +6 -0
  178. package/src/be/scripts/db.ts +17 -5
  179. package/src/be/scripts/embeddings.ts +6 -0
  180. package/src/be/scripts/typecheck.ts +43 -2
  181. package/src/be/seed/schedules-seeder.ts +9 -1
  182. package/src/be/seed/workflows-seeder.ts +9 -1
  183. package/src/be/seed-scripts/index.ts +2 -0
  184. package/src/be/seed-skills/index.ts +12 -0
  185. package/src/be/swarm-config-guard.ts +1 -0
  186. package/src/be/unmapped-identities.ts +95 -1
  187. package/src/bitbucket/handlers.ts +2 -0
  188. package/src/commands/onboard/agent-fs-version.ts +1 -1
  189. package/src/event-waits/github.ts +43 -0
  190. package/src/event-waits/index.ts +29 -0
  191. package/src/event-waits/types.ts +51 -0
  192. package/src/extensions/contract-types.generated.ts +1 -1
  193. package/src/extensions/dispatcher.ts +9 -0
  194. package/src/fs/agent-fs-provider.ts +4 -1
  195. package/src/github/handlers.ts +3 -1
  196. package/src/github/pull-request-state.ts +34 -0
  197. package/src/gitlab/handlers.ts +12 -7
  198. package/src/hooks/codex-hook.ts +99 -1
  199. package/src/hooks/hook.ts +85 -11
  200. package/src/hooks/native-tool-hooks.ts +245 -0
  201. package/src/http/all-routes.ts +1 -0
  202. package/src/http/assets.ts +4 -3
  203. package/src/http/comb.ts +2 -2
  204. package/src/http/favorite-owner.ts +2 -2
  205. package/src/http/favorites.ts +3 -2
  206. package/src/http/fs.ts +13 -4
  207. package/src/http/index.ts +2 -0
  208. package/src/http/mcp-bridge.ts +4 -0
  209. package/src/http/objects.ts +265 -0
  210. package/src/http/pages.ts +3 -3
  211. package/src/http/poll.ts +43 -12
  212. package/src/http/repos.ts +7 -6
  213. package/src/http/schedules.ts +10 -6
  214. package/src/http/script-connections.ts +2 -2
  215. package/src/http/scripts.ts +9 -0
  216. package/src/http/sessions.ts +30 -12
  217. package/src/http/skills.ts +17 -0
  218. package/src/http/task-requester.ts +2 -2
  219. package/src/http/tasks.ts +13 -3
  220. package/src/http/tool-hooks.ts +24 -2
  221. package/src/http/trackers/authorize-gate.ts +2 -2
  222. package/src/http/users.ts +136 -1
  223. package/src/http/workflow-events.ts +13 -0
  224. package/src/http/workflows.ts +21 -11
  225. package/src/linear/sync.ts +3 -1
  226. package/src/prompts/base-prompt.ts +35 -13
  227. package/src/prompts/session-templates.ts +25 -0
  228. package/src/providers/acp-targets.ts +1 -1
  229. package/src/providers/amp-adapter.ts +1 -1
  230. package/src/providers/dsh-adapter.ts +1 -1
  231. package/src/providers/opencode-adapter.ts +1 -0
  232. package/src/providers/opencode-swarm-plugin.ts +50 -1
  233. package/src/providers/pi-mono-adapter.ts +139 -9
  234. package/src/providers/pi-mono-extension.ts +69 -0
  235. package/src/providers/runtime-dependencies.ts +1 -1
  236. package/src/rbac/legacy-policy.ts +3 -0
  237. package/src/rbac/permissions.ts +11 -1
  238. package/src/scheduler/deferred-task-waits.ts +170 -13
  239. package/src/scripts-runtime/executors/types.ts +5 -0
  240. package/src/scripts-runtime/loader.ts +8 -0
  241. package/src/scripts-runtime/mcp-client.ts +4 -0
  242. package/src/scripts-runtime/sdk-allowlist.ts +14 -1
  243. package/src/scripts-runtime/swarm-config.ts +8 -0
  244. package/src/scripts-runtime/swarm-sdk.ts +4 -0
  245. package/src/scripts-runtime/types/stdlib.d.ts +47 -4
  246. package/src/scripts-runtime/types/swarm-extension.d.ts +1 -0
  247. package/src/scripts-runtime/types/swarm-sdk.d.ts +47 -4
  248. package/src/server.ts +4 -0
  249. package/src/slack/enrich.ts +81 -21
  250. package/src/slack/handlers.test.ts +55 -2
  251. package/src/slack/handlers.ts +38 -3
  252. package/src/slack/render-v2.ts +19 -0
  253. package/src/slack/session-mirror.ts +208 -0
  254. package/src/slack/thread-participants.ts +0 -5
  255. package/src/slack/watcher.ts +3 -0
  256. package/src/slack/work-objects.test.ts +2 -1
  257. package/src/slack/work-objects.ts +7 -2
  258. package/src/tests/agentmail-filters.test.ts +4 -3
  259. package/src/tests/audit-agent-person.test.ts +825 -0
  260. package/src/tests/audit-updated-by.test.ts +19 -12
  261. package/src/tests/claude-hook-output.test.ts +107 -2
  262. package/src/tests/claude-managed-setup.test.ts +1 -1
  263. package/src/tests/codex-adapter.test.ts +6 -6
  264. package/src/tests/codex-gpt6-release.test.ts +4 -4
  265. package/src/tests/db-task-read-contract.test.ts +1 -0
  266. package/src/tests/db-task-write-contract.test.ts +1 -0
  267. package/src/tests/dsh-adapter.test.ts +1 -1
  268. package/src/tests/extensions-catalog.test.ts +33 -25
  269. package/src/tests/fixtures/sheets/eocd-count-mismatch.xlsx +0 -0
  270. package/src/tests/fixtures/sheets/rich-budget.xlsx +0 -0
  271. package/src/tests/fixtures/sheets/tracker-export.xlsx +0 -0
  272. package/src/tests/kv-storage.test.ts +3 -0
  273. package/src/tests/memory-search-reader.test.ts +258 -0
  274. package/src/tests/memory-search-stall.test.ts +197 -20
  275. package/src/tests/model-control.test.ts +4 -4
  276. package/src/tests/model-tier-resolution.test.ts +2 -2
  277. package/src/tests/multi-runtime-registration.test.ts +8 -2
  278. package/src/tests/native-tool-hooks.test.ts +188 -0
  279. package/src/tests/opencode-swarm-plugin.test.ts +6 -1
  280. package/src/tests/pi-provider-runtime-keys.test.ts +163 -0
  281. package/src/tests/poll-probe-readonly.test.ts +108 -0
  282. package/src/tests/primitives-sheets-xlsx.test.ts +549 -0
  283. package/src/tests/prompt-template-session.test.ts +3 -2
  284. package/src/tests/rbac-roles.test.ts +3 -0
  285. package/src/tests/script-connections.test.ts +4 -0
  286. package/src/tests/seed-model-profiles.test.ts +1 -1
  287. package/src/tests/sessions-tree.test.ts +10 -2
  288. package/src/tests/slack-thread-participants.test.ts +66 -4
  289. package/src/tests/tool-registrar-no-input.test.ts +1 -0
  290. package/src/tools/defer-task.ts +154 -12
  291. package/src/tools/objects.ts +10 -5
  292. package/src/tools/repos/update-repo.ts +6 -6
  293. package/src/tools/schedules/create-schedule.ts +1 -0
  294. package/src/tools/schedules/list-schedules.ts +3 -0
  295. package/src/tools/schedules/patch-schedule.ts +12 -3
  296. package/src/tools/schedules/update-schedule.ts +12 -3
  297. package/src/tools/sheets.ts +66 -0
  298. package/src/tools/skills/skill-create.ts +6 -0
  299. package/src/tools/skills/skill-install-remote.ts +6 -0
  300. package/src/tools/skills/skill-sync-remote.ts +9 -0
  301. package/src/tools/skills/skill-update.ts +9 -1
  302. package/src/tools/tool-config.ts +3 -1
  303. package/src/tools/utils.ts +15 -0
  304. package/src/tools/workflows/create-workflow.ts +9 -4
  305. package/src/tools/workflows/patch-workflow-node.ts +1 -1
  306. package/src/tools/workflows/patch-workflow.ts +5 -2
  307. package/src/tools/workflows/update-workflow.ts +13 -7
  308. package/src/types.ts +96 -12
  309. package/src/workflows/input.ts +12 -5
  310. package/src/workflows/patch-definition.ts +13 -5
  311. package/src/workflows/triggers.ts +11 -6
  312. package/src/workflows/version.ts +7 -1
  313. package/templates/skills/boards-and-sheets/config.json +14 -0
  314. package/templates/skills/boards-and-sheets/content.md +163 -0
  315. package/templates/skills/swarm-docs/content.md +9 -0
  316. package/dist/acp-adapter-11m13kx4.js +0 -16
  317. package/dist/core-dxcy02sc.js +0 -41
  318. package/dist/fx-adapter-0ar6pqm3.js +0 -19
  319. package/dist/grok-adapter-t6m74fb1.js +0 -19
  320. package/dist/handlers-9kwcrc4k.js +0 -38
  321. package/dist/index-23cdfzr6.js +0 -39
  322. package/dist/index-g7kkjs5b.js +0 -38
  323. package/dist/index-stk36pa5.js +0 -43
  324. package/dist/lead-mfggjtfk.js +0 -77
  325. package/dist/thread-buffer-temgaqsy.js +0 -41
  326. package/dist/worker-efcemc22.js +0 -77
  327. /package/dist/{cli-cah298e5.js → cli-m4ejz4nj.js} +0 -0
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.12.0",
5
+ "version": "2.13.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": [
@@ -2547,7 +2547,9 @@
2547
2547
  "workflow",
2548
2548
  "schedule",
2549
2549
  "agent-fs-path",
2550
- "key"
2550
+ "key",
2551
+ "session",
2552
+ "hidden-key"
2551
2553
  ]
2552
2554
  },
2553
2555
  "itemId": {
@@ -4173,6 +4175,9 @@
4173
4175
  "items": {
4174
4176
  "type": "string"
4175
4177
  }
4178
+ },
4179
+ "mergePolicy": {
4180
+ "$ref": "#/components/schemas/RepoMergePolicy"
4176
4181
  }
4177
4182
  },
4178
4183
  "required": [
@@ -4181,6 +4186,85 @@
4181
4186
  "review"
4182
4187
  ]
4183
4188
  },
4189
+ "RepoMergePolicy": {
4190
+ "type": "object",
4191
+ "properties": {
4192
+ "autoMerge": {
4193
+ "type": "object",
4194
+ "properties": {
4195
+ "enabled": {
4196
+ "type": "boolean",
4197
+ "default": false
4198
+ },
4199
+ "threshold": {
4200
+ "type": "integer",
4201
+ "minimum": 0,
4202
+ "maximum": 100,
4203
+ "default": 80
4204
+ },
4205
+ "baseScores": {
4206
+ "type": "object",
4207
+ "additionalProperties": {
4208
+ "type": "integer",
4209
+ "minimum": 0,
4210
+ "maximum": 100
4211
+ },
4212
+ "default": {}
4213
+ },
4214
+ "maxLines": {
4215
+ "type": "object",
4216
+ "additionalProperties": {
4217
+ "type": "integer",
4218
+ "minimum": 0,
4219
+ "maximum": 100000
4220
+ },
4221
+ "default": {}
4222
+ },
4223
+ "riskyPaths": {
4224
+ "type": "array",
4225
+ "items": {
4226
+ "type": "string",
4227
+ "minLength": 1,
4228
+ "maxLength": 200
4229
+ },
4230
+ "maxItems": 50,
4231
+ "default": []
4232
+ },
4233
+ "classes": {
4234
+ "type": "array",
4235
+ "items": {
4236
+ "type": "string",
4237
+ "minLength": 1,
4238
+ "maxLength": 60
4239
+ },
4240
+ "maxItems": 50,
4241
+ "default": []
4242
+ }
4243
+ }
4244
+ },
4245
+ "agentsMayMerge": {
4246
+ "type": "boolean"
4247
+ },
4248
+ "notify": {
4249
+ "type": "object",
4250
+ "properties": {
4251
+ "dmWhenNotAutoMerging": {
4252
+ "type": "boolean",
4253
+ "default": true
4254
+ },
4255
+ "digestAt": {
4256
+ "type": "string",
4257
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
4258
+ },
4259
+ "timezone": {
4260
+ "type": "string",
4261
+ "minLength": 1,
4262
+ "maxLength": 60
4263
+ }
4264
+ }
4265
+ }
4266
+ }
4267
+ },
4184
4268
  "RepoGuidelinesInput": {
4185
4269
  "type": [
4186
4270
  "object",
@@ -4211,6 +4295,9 @@
4211
4295
  "type": "string"
4212
4296
  },
4213
4297
  "maxItems": 50
4298
+ },
4299
+ "mergePolicy": {
4300
+ "$ref": "#/components/schemas/RepoMergePolicy"
4214
4301
  }
4215
4302
  },
4216
4303
  "required": [
@@ -4905,6 +4992,34 @@
4905
4992
  "null"
4906
4993
  ]
4907
4994
  },
4995
+ "createdByAgentId": {
4996
+ "type": [
4997
+ "string",
4998
+ "null"
4999
+ ],
5000
+ "default": null
5001
+ },
5002
+ "updatedByAgentId": {
5003
+ "type": [
5004
+ "string",
5005
+ "null"
5006
+ ],
5007
+ "default": null
5008
+ },
5009
+ "createdBy": {
5010
+ "type": [
5011
+ "string",
5012
+ "null"
5013
+ ],
5014
+ "default": null
5015
+ },
5016
+ "updatedBy": {
5017
+ "type": [
5018
+ "string",
5019
+ "null"
5020
+ ],
5021
+ "default": null
5022
+ },
4908
5023
  "createdAt": {
4909
5024
  "type": "string"
4910
5025
  },
@@ -5757,6 +5872,25 @@
5757
5872
  "format"
5758
5873
  ]
5759
5874
  },
5875
+ {
5876
+ "type": "object",
5877
+ "properties": {
5878
+ "format": {
5879
+ "type": "string",
5880
+ "enum": [
5881
+ "hmac-sha1"
5882
+ ]
5883
+ },
5884
+ "header": {
5885
+ "type": "string",
5886
+ "default": "X-Hub-Signature",
5887
+ "description": "Header containing HMAC-SHA1 over the raw request body. Accepts sha1=<hex> or bare hex."
5888
+ }
5889
+ },
5890
+ "required": [
5891
+ "format"
5892
+ ]
5893
+ },
5760
5894
  {
5761
5895
  "type": "object",
5762
5896
  "properties": {
@@ -6064,6 +6198,9 @@
6064
6198
  "createdByAgentId": {
6065
6199
  "type": "string"
6066
6200
  },
6201
+ "updatedByAgentId": {
6202
+ "type": "string"
6203
+ },
6067
6204
  "createdAt": {
6068
6205
  "type": "string"
6069
6206
  },
@@ -6617,6 +6754,25 @@
6617
6754
  "format"
6618
6755
  ]
6619
6756
  },
6757
+ {
6758
+ "type": "object",
6759
+ "properties": {
6760
+ "format": {
6761
+ "type": "string",
6762
+ "enum": [
6763
+ "hmac-sha1"
6764
+ ]
6765
+ },
6766
+ "header": {
6767
+ "type": "string",
6768
+ "default": "X-Hub-Signature",
6769
+ "description": "Header containing HMAC-SHA1 over the raw request body. Accepts sha1=<hex> or bare hex."
6770
+ }
6771
+ },
6772
+ "required": [
6773
+ "format"
6774
+ ]
6775
+ },
6620
6776
  {
6621
6777
  "type": "object",
6622
6778
  "properties": {
@@ -24792,7 +24948,9 @@
24792
24948
  "workflow",
24793
24949
  "schedule",
24794
24950
  "agent-fs-path",
24795
- "key"
24951
+ "key",
24952
+ "session",
24953
+ "hidden-key"
24796
24954
  ]
24797
24955
  },
24798
24956
  "required": false,
@@ -24872,7 +25030,9 @@
24872
25030
  "workflow",
24873
25031
  "schedule",
24874
25032
  "agent-fs-path",
24875
- "key"
25033
+ "key",
25034
+ "session",
25035
+ "hidden-key"
24876
25036
  ]
24877
25037
  },
24878
25038
  "itemId": {
@@ -24910,7 +25070,9 @@
24910
25070
  "workflow",
24911
25071
  "schedule",
24912
25072
  "agent-fs-path",
24913
- "key"
25073
+ "key",
25074
+ "session",
25075
+ "hidden-key"
24914
25076
  ]
24915
25077
  },
24916
25078
  "itemId": {
@@ -24938,7 +25100,7 @@
24938
25100
  }
24939
25101
  },
24940
25102
  "400": {
24941
- "description": "Invalid asset key for a key favorite",
25103
+ "description": "Invalid asset key for a key or hidden-key favorite",
24942
25104
  "content": {
24943
25105
  "application/json": {
24944
25106
  "schema": {
@@ -25867,7 +26029,7 @@
25867
26029
  }
25868
26030
  },
25869
26031
  "403": {
25870
- "description": "A non-admin user token named an email other than its own",
26032
+ "description": "The caller is not the operator key or a user, or a non-admin user token named an email other than its own",
25871
26033
  "content": {
25872
26034
  "application/json": {
25873
26035
  "schema": {
@@ -33729,6 +33891,607 @@
33729
33891
  }
33730
33892
  }
33731
33893
  },
33894
+ "/api/objects/{id}": {
33895
+ "get": {
33896
+ "summary": "Read a board or sheet on the shared drive, or confirm it is unchanged",
33897
+ "tags": [
33898
+ "Objects"
33899
+ ],
33900
+ "security": [
33901
+ {
33902
+ "bearerAuth": []
33903
+ }
33904
+ ],
33905
+ "parameters": [
33906
+ {
33907
+ "schema": {
33908
+ "type": "string",
33909
+ "format": "uuid",
33910
+ "description": "Object id (`swarm.id` in the file)"
33911
+ },
33912
+ "required": true,
33913
+ "description": "Object id (`swarm.id` in the file)",
33914
+ "name": "id",
33915
+ "in": "path"
33916
+ },
33917
+ {
33918
+ "schema": {
33919
+ "type": [
33920
+ "integer",
33921
+ "null"
33922
+ ],
33923
+ "minimum": 0,
33924
+ "description": "The version the caller holds. A match answers `unchanged: true` with no content"
33925
+ },
33926
+ "required": false,
33927
+ "description": "The version the caller holds. A match answers `unchanged: true` with no content",
33928
+ "name": "knownVersion",
33929
+ "in": "query"
33930
+ }
33931
+ ],
33932
+ "responses": {
33933
+ "200": {
33934
+ "description": "The object with its content, or `unchanged: true` with no content",
33935
+ "content": {
33936
+ "application/json": {
33937
+ "schema": {
33938
+ "type": "object",
33939
+ "properties": {
33940
+ "object": {
33941
+ "type": "object",
33942
+ "properties": {
33943
+ "id": {
33944
+ "type": "string"
33945
+ },
33946
+ "kind": {
33947
+ "type": "string"
33948
+ },
33949
+ "orgId": {
33950
+ "type": "string"
33951
+ },
33952
+ "driveId": {
33953
+ "type": "string"
33954
+ },
33955
+ "path": {
33956
+ "type": "string"
33957
+ },
33958
+ "title": {
33959
+ "type": [
33960
+ "string",
33961
+ "null"
33962
+ ]
33963
+ },
33964
+ "fileVersion": {
33965
+ "type": [
33966
+ "number",
33967
+ "null"
33968
+ ]
33969
+ },
33970
+ "ownerAgentId": {
33971
+ "type": [
33972
+ "string",
33973
+ "null"
33974
+ ]
33975
+ },
33976
+ "createdAt": {
33977
+ "type": "string"
33978
+ },
33979
+ "updatedAt": {
33980
+ "type": "string"
33981
+ },
33982
+ "link": {
33983
+ "type": [
33984
+ "string",
33985
+ "null"
33986
+ ]
33987
+ }
33988
+ },
33989
+ "required": [
33990
+ "id",
33991
+ "kind",
33992
+ "orgId",
33993
+ "driveId",
33994
+ "path",
33995
+ "title",
33996
+ "fileVersion",
33997
+ "ownerAgentId",
33998
+ "createdAt",
33999
+ "updatedAt",
34000
+ "link"
34001
+ ]
34002
+ },
34003
+ "version": {
34004
+ "type": [
34005
+ "number",
34006
+ "null"
34007
+ ]
34008
+ },
34009
+ "unchanged": {
34010
+ "type": "boolean"
34011
+ },
34012
+ "content": {}
34013
+ },
34014
+ "required": [
34015
+ "object",
34016
+ "version",
34017
+ "unchanged"
34018
+ ]
34019
+ }
34020
+ }
34021
+ }
34022
+ },
34023
+ "400": {
34024
+ "description": "Invalid input, or the object is not the kind this route edits",
34025
+ "content": {
34026
+ "application/json": {
34027
+ "schema": {
34028
+ "$ref": "#/components/schemas/ErrorResponse"
34029
+ }
34030
+ }
34031
+ }
34032
+ },
34033
+ "403": {
34034
+ "description": "Permission denied, a page guest, a read-only page session, or an object off the shared drive",
34035
+ "content": {
34036
+ "application/json": {
34037
+ "schema": {
34038
+ "$ref": "#/components/schemas/ErrorResponse"
34039
+ }
34040
+ }
34041
+ }
34042
+ },
34043
+ "404": {
34044
+ "description": "No such object, or its file is gone",
34045
+ "content": {
34046
+ "application/json": {
34047
+ "schema": {
34048
+ "$ref": "#/components/schemas/ErrorResponse"
34049
+ }
34050
+ }
34051
+ }
34052
+ },
34053
+ "503": {
34054
+ "description": "The owner agent has no agent-fs key on the object's drive",
34055
+ "content": {
34056
+ "application/json": {
34057
+ "schema": {
34058
+ "$ref": "#/components/schemas/ErrorResponse"
34059
+ }
34060
+ }
34061
+ }
34062
+ }
34063
+ }
34064
+ }
34065
+ },
34066
+ "/api/objects/{id}/content": {
34067
+ "put": {
34068
+ "summary": "Save a board's full Excalidraw scene, guarded by its agent-fs version",
34069
+ "tags": [
34070
+ "Objects"
34071
+ ],
34072
+ "security": [
34073
+ {
34074
+ "bearerAuth": []
34075
+ }
34076
+ ],
34077
+ "parameters": [
34078
+ {
34079
+ "schema": {
34080
+ "type": "string",
34081
+ "format": "uuid",
34082
+ "description": "Object id (`swarm.id` in the file)"
34083
+ },
34084
+ "required": true,
34085
+ "description": "Object id (`swarm.id` in the file)",
34086
+ "name": "id",
34087
+ "in": "path"
34088
+ }
34089
+ ],
34090
+ "requestBody": {
34091
+ "content": {
34092
+ "application/json": {
34093
+ "schema": {
34094
+ "type": "object",
34095
+ "properties": {
34096
+ "content": {
34097
+ "type": "object",
34098
+ "additionalProperties": {},
34099
+ "description": "The Excalidraw scene"
34100
+ },
34101
+ "ifMatch": {
34102
+ "type": "integer",
34103
+ "minimum": 0,
34104
+ "description": "The version the scene was edited from"
34105
+ }
34106
+ },
34107
+ "required": [
34108
+ "content",
34109
+ "ifMatch"
34110
+ ]
34111
+ }
34112
+ }
34113
+ }
34114
+ },
34115
+ "responses": {
34116
+ "200": {
34117
+ "description": "Saved",
34118
+ "content": {
34119
+ "application/json": {
34120
+ "schema": {
34121
+ "type": "object",
34122
+ "properties": {
34123
+ "object": {
34124
+ "type": "object",
34125
+ "properties": {
34126
+ "id": {
34127
+ "type": "string"
34128
+ },
34129
+ "kind": {
34130
+ "type": "string"
34131
+ },
34132
+ "orgId": {
34133
+ "type": "string"
34134
+ },
34135
+ "driveId": {
34136
+ "type": "string"
34137
+ },
34138
+ "path": {
34139
+ "type": "string"
34140
+ },
34141
+ "title": {
34142
+ "type": [
34143
+ "string",
34144
+ "null"
34145
+ ]
34146
+ },
34147
+ "fileVersion": {
34148
+ "type": [
34149
+ "number",
34150
+ "null"
34151
+ ]
34152
+ },
34153
+ "ownerAgentId": {
34154
+ "type": [
34155
+ "string",
34156
+ "null"
34157
+ ]
34158
+ },
34159
+ "createdAt": {
34160
+ "type": "string"
34161
+ },
34162
+ "updatedAt": {
34163
+ "type": "string"
34164
+ },
34165
+ "link": {
34166
+ "type": [
34167
+ "string",
34168
+ "null"
34169
+ ]
34170
+ }
34171
+ },
34172
+ "required": [
34173
+ "id",
34174
+ "kind",
34175
+ "orgId",
34176
+ "driveId",
34177
+ "path",
34178
+ "title",
34179
+ "fileVersion",
34180
+ "ownerAgentId",
34181
+ "createdAt",
34182
+ "updatedAt",
34183
+ "link"
34184
+ ]
34185
+ },
34186
+ "version": {
34187
+ "type": [
34188
+ "number",
34189
+ "null"
34190
+ ]
34191
+ }
34192
+ },
34193
+ "required": [
34194
+ "object",
34195
+ "version"
34196
+ ]
34197
+ }
34198
+ }
34199
+ }
34200
+ },
34201
+ "400": {
34202
+ "description": "Invalid input, or the object is not the kind this route edits",
34203
+ "content": {
34204
+ "application/json": {
34205
+ "schema": {
34206
+ "$ref": "#/components/schemas/ErrorResponse"
34207
+ }
34208
+ }
34209
+ }
34210
+ },
34211
+ "403": {
34212
+ "description": "Permission denied, a page guest, a read-only page session, or an object off the shared drive",
34213
+ "content": {
34214
+ "application/json": {
34215
+ "schema": {
34216
+ "$ref": "#/components/schemas/ErrorResponse"
34217
+ }
34218
+ }
34219
+ }
34220
+ },
34221
+ "404": {
34222
+ "description": "No such object, or its file is gone",
34223
+ "content": {
34224
+ "application/json": {
34225
+ "schema": {
34226
+ "$ref": "#/components/schemas/ErrorResponse"
34227
+ }
34228
+ }
34229
+ }
34230
+ },
34231
+ "409": {
34232
+ "description": "The board changed since `ifMatch`; the body carries its `version`",
34233
+ "content": {
34234
+ "application/json": {
34235
+ "schema": {
34236
+ "$ref": "#/components/schemas/ErrorResponse"
34237
+ }
34238
+ }
34239
+ }
34240
+ },
34241
+ "413": {
34242
+ "description": "The scene exceeds 5 MiB",
34243
+ "content": {
34244
+ "application/json": {
34245
+ "schema": {
34246
+ "$ref": "#/components/schemas/ErrorResponse"
34247
+ }
34248
+ }
34249
+ }
34250
+ },
34251
+ "503": {
34252
+ "description": "The owner agent has no agent-fs key on the object's drive",
34253
+ "content": {
34254
+ "application/json": {
34255
+ "schema": {
34256
+ "$ref": "#/components/schemas/ErrorResponse"
34257
+ }
34258
+ }
34259
+ }
34260
+ }
34261
+ }
34262
+ }
34263
+ },
34264
+ "/api/objects/{id}/sheet-ops": {
34265
+ "post": {
34266
+ "summary": "Patch sheet cells; the server recalculates and merges concurrent edits",
34267
+ "tags": [
34268
+ "Objects"
34269
+ ],
34270
+ "security": [
34271
+ {
34272
+ "bearerAuth": []
34273
+ }
34274
+ ],
34275
+ "parameters": [
34276
+ {
34277
+ "schema": {
34278
+ "type": "string",
34279
+ "format": "uuid",
34280
+ "description": "Object id (`swarm.id` in the file)"
34281
+ },
34282
+ "required": true,
34283
+ "description": "Object id (`swarm.id` in the file)",
34284
+ "name": "id",
34285
+ "in": "path"
34286
+ }
34287
+ ],
34288
+ "requestBody": {
34289
+ "content": {
34290
+ "application/json": {
34291
+ "schema": {
34292
+ "oneOf": [
34293
+ {
34294
+ "type": "object",
34295
+ "properties": {
34296
+ "op": {
34297
+ "type": "string",
34298
+ "enum": [
34299
+ "setRange"
34300
+ ]
34301
+ },
34302
+ "range": {
34303
+ "type": "string",
34304
+ "minLength": 1
34305
+ },
34306
+ "values": {
34307
+ "type": "array",
34308
+ "items": {
34309
+ "type": "array",
34310
+ "items": {
34311
+ "anyOf": [
34312
+ {
34313
+ "type": "number"
34314
+ },
34315
+ {
34316
+ "type": "string"
34317
+ },
34318
+ {
34319
+ "type": "boolean"
34320
+ },
34321
+ {
34322
+ "type": "null"
34323
+ }
34324
+ ]
34325
+ }
34326
+ }
34327
+ }
34328
+ },
34329
+ "required": [
34330
+ "op",
34331
+ "range",
34332
+ "values"
34333
+ ]
34334
+ },
34335
+ {
34336
+ "type": "object",
34337
+ "properties": {
34338
+ "op": {
34339
+ "type": "string",
34340
+ "enum": [
34341
+ "clearRange"
34342
+ ]
34343
+ },
34344
+ "range": {
34345
+ "type": "string",
34346
+ "minLength": 1
34347
+ }
34348
+ },
34349
+ "required": [
34350
+ "op",
34351
+ "range"
34352
+ ]
34353
+ },
34354
+ {
34355
+ "type": "object",
34356
+ "properties": {
34357
+ "op": {
34358
+ "type": "string",
34359
+ "enum": [
34360
+ "appendRows"
34361
+ ]
34362
+ },
34363
+ "tab": {
34364
+ "type": "string",
34365
+ "minLength": 1
34366
+ },
34367
+ "rows": {
34368
+ "type": "array",
34369
+ "items": {
34370
+ "type": "array",
34371
+ "items": {
34372
+ "anyOf": [
34373
+ {
34374
+ "type": "number"
34375
+ },
34376
+ {
34377
+ "type": "string"
34378
+ },
34379
+ {
34380
+ "type": "boolean"
34381
+ },
34382
+ {
34383
+ "type": "null"
34384
+ }
34385
+ ]
34386
+ }
34387
+ }
34388
+ }
34389
+ },
34390
+ "required": [
34391
+ "op",
34392
+ "tab",
34393
+ "rows"
34394
+ ]
34395
+ }
34396
+ ]
34397
+ }
34398
+ }
34399
+ }
34400
+ },
34401
+ "responses": {
34402
+ "200": {
34403
+ "description": "Applied: the range written and the new version",
34404
+ "content": {
34405
+ "application/json": {
34406
+ "schema": {
34407
+ "type": "object",
34408
+ "properties": {
34409
+ "op": {
34410
+ "type": "string",
34411
+ "enum": [
34412
+ "setRange",
34413
+ "clearRange",
34414
+ "appendRows"
34415
+ ]
34416
+ },
34417
+ "range": {
34418
+ "type": "string"
34419
+ },
34420
+ "version": {
34421
+ "type": "number"
34422
+ },
34423
+ "changed": {
34424
+ "type": "number"
34425
+ },
34426
+ "recalculated": {
34427
+ "type": "number"
34428
+ },
34429
+ "cleared": {
34430
+ "type": "number"
34431
+ }
34432
+ },
34433
+ "required": [
34434
+ "op",
34435
+ "range",
34436
+ "version"
34437
+ ]
34438
+ }
34439
+ }
34440
+ }
34441
+ },
34442
+ "400": {
34443
+ "description": "Invalid input, or the object is not the kind this route edits",
34444
+ "content": {
34445
+ "application/json": {
34446
+ "schema": {
34447
+ "$ref": "#/components/schemas/ErrorResponse"
34448
+ }
34449
+ }
34450
+ }
34451
+ },
34452
+ "403": {
34453
+ "description": "Permission denied, a page guest, a read-only page session, or an object off the shared drive",
34454
+ "content": {
34455
+ "application/json": {
34456
+ "schema": {
34457
+ "$ref": "#/components/schemas/ErrorResponse"
34458
+ }
34459
+ }
34460
+ }
34461
+ },
34462
+ "404": {
34463
+ "description": "No such object, or its file is gone",
34464
+ "content": {
34465
+ "application/json": {
34466
+ "schema": {
34467
+ "$ref": "#/components/schemas/ErrorResponse"
34468
+ }
34469
+ }
34470
+ }
34471
+ },
34472
+ "409": {
34473
+ "description": "Other writers changed the sheet on every retry; try again",
34474
+ "content": {
34475
+ "application/json": {
34476
+ "schema": {
34477
+ "$ref": "#/components/schemas/ErrorResponse"
34478
+ }
34479
+ }
34480
+ }
34481
+ },
34482
+ "503": {
34483
+ "description": "The owner agent has no agent-fs key on the object's drive",
34484
+ "content": {
34485
+ "application/json": {
34486
+ "schema": {
34487
+ "$ref": "#/components/schemas/ErrorResponse"
34488
+ }
34489
+ }
34490
+ }
34491
+ }
34492
+ }
34493
+ }
34494
+ },
33732
34495
  "/api/oauth/refresh-locks/{key}": {
33733
34496
  "post": {
33734
34497
  "summary": "Acquire a cross-process OAuth refresh lock",
@@ -44778,7 +45541,7 @@
44778
45541
  }
44779
45542
  },
44780
45543
  "403": {
44781
- "description": "Only the lead, the operator or a user can change allowMerge",
45544
+ "description": "Only the lead, the operator or a user can change allowMerge or mergePolicy",
44782
45545
  "content": {
44783
45546
  "application/json": {
44784
45547
  "schema": {
@@ -45029,7 +45792,7 @@
45029
45792
  }
45030
45793
  },
45031
45794
  "403": {
45032
- "description": "Only the lead, the operator or a user can turn allowMerge on",
45795
+ "description": "Only the lead, the operator or a user can turn allowMerge on or set a mergePolicy",
45033
45796
  "content": {
45034
45797
  "application/json": {
45035
45798
  "schema": {
@@ -46420,6 +47183,9 @@
46420
47183
  "createdByAgentId": {
46421
47184
  "type": "string"
46422
47185
  },
47186
+ "updatedByAgentId": {
47187
+ "type": "string"
47188
+ },
46423
47189
  "parentTaskId": {
46424
47190
  "type": "string"
46425
47191
  },
@@ -46788,199 +47554,205 @@
46788
47554
  "createdByAgentId": {
46789
47555
  "type": "string"
46790
47556
  },
46791
- "parentTaskId": {
46792
- "type": "string"
46793
- },
46794
- "requestedDelayMs": {
46795
- "type": "integer",
46796
- "exclusiveMinimum": 0
46797
- },
46798
- "requestedRunAt": {
46799
- "type": "string",
46800
- "format": "date-time"
46801
- },
46802
- "timezone": {
46803
- "type": "string",
46804
- "default": "UTC"
46805
- },
46806
- "consecutiveErrors": {
46807
- "type": "integer",
46808
- "minimum": 0,
46809
- "default": 0
46810
- },
46811
- "lastErrorAt": {
46812
- "type": "string",
46813
- "format": "date-time"
46814
- },
46815
- "lastErrorMessage": {
46816
- "type": "string"
46817
- },
46818
- "model": {
46819
- "type": "string"
46820
- },
46821
- "modelTier": {
46822
- "type": "string",
46823
- "enum": [
46824
- "smol",
46825
- "regular",
46826
- "smart",
46827
- "ultra"
46828
- ]
46829
- },
46830
- "profile": {
46831
- "type": "string"
46832
- },
46833
- "scheduleType": {
46834
- "type": "string",
46835
- "enum": [
46836
- "recurring",
46837
- "one_time"
46838
- ],
46839
- "default": "recurring"
46840
- },
46841
- "targetType": {
46842
- "type": "string",
46843
- "enum": [
46844
- "agent-task",
46845
- "workflow",
46846
- "script"
46847
- ],
46848
- "default": "agent-task"
46849
- },
46850
- "workflowId": {
46851
- "type": "string",
46852
- "format": "uuid"
46853
- },
46854
- "scriptName": {
46855
- "type": "string"
46856
- },
46857
- "scriptArgs": {
46858
- "type": "object",
46859
- "additionalProperties": {}
46860
- },
46861
- "params": {
46862
- "type": "object",
46863
- "additionalProperties": {}
46864
- },
46865
- "requiredParams": {
46866
- "type": "array",
46867
- "items": {
46868
- "type": "string"
46869
- }
46870
- },
46871
- "requires": {
46872
- "type": "array",
46873
- "items": {
46874
- "type": "string",
46875
- "enum": [
46876
- "slack",
46877
- "github",
46878
- "linear",
46879
- "jira",
46880
- "gsc",
46881
- "agentmail",
46882
- "agentfs"
46883
- ]
46884
- }
46885
- },
46886
- "createdAt": {
46887
- "type": "string",
46888
- "format": "date-time"
46889
- },
46890
- "lastUpdatedAt": {
46891
- "type": "string",
46892
- "format": "date-time"
46893
- },
46894
- "createdBy": {
46895
- "type": "string"
46896
- },
46897
- "updatedBy": {
46898
- "type": "string"
46899
- },
46900
- "favorite": {
46901
- "type": "boolean"
46902
- },
46903
- "taskTemplatePreview": {
46904
- "type": "string"
46905
- }
46906
- },
46907
- "required": [
46908
- "id",
46909
- "key",
46910
- "name",
46911
- "createdAt",
46912
- "lastUpdatedAt",
46913
- "favorite",
46914
- "taskTemplatePreview"
46915
- ]
46916
- }
46917
- },
46918
- {
46919
- "type": "array",
46920
- "items": {
46921
- "type": "object",
46922
- "properties": {
46923
- "id": {
46924
- "type": "string",
46925
- "format": "uuid"
46926
- },
46927
- "key": {
46928
- "type": "string",
46929
- "minLength": 1,
46930
- "maxLength": 255,
46931
- "description": "Non-unique asset directory namespace (for example shared/ or personal/<user-id>/drafts/). Runtime write boundaries normalize and validate the canonical form."
46932
- },
46933
- "name": {
46934
- "type": "string",
46935
- "minLength": 1,
46936
- "maxLength": 100
46937
- },
46938
- "description": {
46939
- "type": "string"
46940
- },
46941
- "cronExpression": {
46942
- "type": "string"
46943
- },
46944
- "intervalMs": {
46945
- "type": "integer",
46946
- "exclusiveMinimum": 0
46947
- },
46948
- "taskTemplate": {
46949
- "type": "string"
46950
- },
46951
- "taskType": {
46952
- "type": "string",
46953
- "maxLength": 50
46954
- },
46955
- "tags": {
46956
- "type": "array",
46957
- "items": {
46958
- "type": "string"
46959
- },
46960
- "default": []
46961
- },
46962
- "priority": {
46963
- "type": "integer",
46964
- "minimum": 0,
46965
- "maximum": 100,
46966
- "default": 50
46967
- },
46968
- "targetAgentId": {
46969
- "type": "string"
46970
- },
46971
- "enabled": {
46972
- "type": "boolean",
46973
- "default": true
46974
- },
46975
- "lastRunAt": {
46976
- "type": "string",
46977
- "format": "date-time"
46978
- },
46979
- "nextRunAt": {
46980
- "type": "string",
46981
- "format": "date-time"
46982
- },
46983
- "createdByAgentId": {
47557
+ "updatedByAgentId": {
47558
+ "type": "string"
47559
+ },
47560
+ "parentTaskId": {
47561
+ "type": "string"
47562
+ },
47563
+ "requestedDelayMs": {
47564
+ "type": "integer",
47565
+ "exclusiveMinimum": 0
47566
+ },
47567
+ "requestedRunAt": {
47568
+ "type": "string",
47569
+ "format": "date-time"
47570
+ },
47571
+ "timezone": {
47572
+ "type": "string",
47573
+ "default": "UTC"
47574
+ },
47575
+ "consecutiveErrors": {
47576
+ "type": "integer",
47577
+ "minimum": 0,
47578
+ "default": 0
47579
+ },
47580
+ "lastErrorAt": {
47581
+ "type": "string",
47582
+ "format": "date-time"
47583
+ },
47584
+ "lastErrorMessage": {
47585
+ "type": "string"
47586
+ },
47587
+ "model": {
47588
+ "type": "string"
47589
+ },
47590
+ "modelTier": {
47591
+ "type": "string",
47592
+ "enum": [
47593
+ "smol",
47594
+ "regular",
47595
+ "smart",
47596
+ "ultra"
47597
+ ]
47598
+ },
47599
+ "profile": {
47600
+ "type": "string"
47601
+ },
47602
+ "scheduleType": {
47603
+ "type": "string",
47604
+ "enum": [
47605
+ "recurring",
47606
+ "one_time"
47607
+ ],
47608
+ "default": "recurring"
47609
+ },
47610
+ "targetType": {
47611
+ "type": "string",
47612
+ "enum": [
47613
+ "agent-task",
47614
+ "workflow",
47615
+ "script"
47616
+ ],
47617
+ "default": "agent-task"
47618
+ },
47619
+ "workflowId": {
47620
+ "type": "string",
47621
+ "format": "uuid"
47622
+ },
47623
+ "scriptName": {
47624
+ "type": "string"
47625
+ },
47626
+ "scriptArgs": {
47627
+ "type": "object",
47628
+ "additionalProperties": {}
47629
+ },
47630
+ "params": {
47631
+ "type": "object",
47632
+ "additionalProperties": {}
47633
+ },
47634
+ "requiredParams": {
47635
+ "type": "array",
47636
+ "items": {
47637
+ "type": "string"
47638
+ }
47639
+ },
47640
+ "requires": {
47641
+ "type": "array",
47642
+ "items": {
47643
+ "type": "string",
47644
+ "enum": [
47645
+ "slack",
47646
+ "github",
47647
+ "linear",
47648
+ "jira",
47649
+ "gsc",
47650
+ "agentmail",
47651
+ "agentfs"
47652
+ ]
47653
+ }
47654
+ },
47655
+ "createdAt": {
47656
+ "type": "string",
47657
+ "format": "date-time"
47658
+ },
47659
+ "lastUpdatedAt": {
47660
+ "type": "string",
47661
+ "format": "date-time"
47662
+ },
47663
+ "createdBy": {
47664
+ "type": "string"
47665
+ },
47666
+ "updatedBy": {
47667
+ "type": "string"
47668
+ },
47669
+ "favorite": {
47670
+ "type": "boolean"
47671
+ },
47672
+ "taskTemplatePreview": {
47673
+ "type": "string"
47674
+ }
47675
+ },
47676
+ "required": [
47677
+ "id",
47678
+ "key",
47679
+ "name",
47680
+ "createdAt",
47681
+ "lastUpdatedAt",
47682
+ "favorite",
47683
+ "taskTemplatePreview"
47684
+ ]
47685
+ }
47686
+ },
47687
+ {
47688
+ "type": "array",
47689
+ "items": {
47690
+ "type": "object",
47691
+ "properties": {
47692
+ "id": {
47693
+ "type": "string",
47694
+ "format": "uuid"
47695
+ },
47696
+ "key": {
47697
+ "type": "string",
47698
+ "minLength": 1,
47699
+ "maxLength": 255,
47700
+ "description": "Non-unique asset directory namespace (for example shared/ or personal/<user-id>/drafts/). Runtime write boundaries normalize and validate the canonical form."
47701
+ },
47702
+ "name": {
47703
+ "type": "string",
47704
+ "minLength": 1,
47705
+ "maxLength": 100
47706
+ },
47707
+ "description": {
47708
+ "type": "string"
47709
+ },
47710
+ "cronExpression": {
47711
+ "type": "string"
47712
+ },
47713
+ "intervalMs": {
47714
+ "type": "integer",
47715
+ "exclusiveMinimum": 0
47716
+ },
47717
+ "taskTemplate": {
47718
+ "type": "string"
47719
+ },
47720
+ "taskType": {
47721
+ "type": "string",
47722
+ "maxLength": 50
47723
+ },
47724
+ "tags": {
47725
+ "type": "array",
47726
+ "items": {
47727
+ "type": "string"
47728
+ },
47729
+ "default": []
47730
+ },
47731
+ "priority": {
47732
+ "type": "integer",
47733
+ "minimum": 0,
47734
+ "maximum": 100,
47735
+ "default": 50
47736
+ },
47737
+ "targetAgentId": {
47738
+ "type": "string"
47739
+ },
47740
+ "enabled": {
47741
+ "type": "boolean",
47742
+ "default": true
47743
+ },
47744
+ "lastRunAt": {
47745
+ "type": "string",
47746
+ "format": "date-time"
47747
+ },
47748
+ "nextRunAt": {
47749
+ "type": "string",
47750
+ "format": "date-time"
47751
+ },
47752
+ "createdByAgentId": {
47753
+ "type": "string"
47754
+ },
47755
+ "updatedByAgentId": {
46984
47756
  "type": "string"
46985
47757
  },
46986
47758
  "parentTaskId": {
@@ -47221,6 +47993,9 @@
47221
47993
  "createdByAgentId": {
47222
47994
  "type": "string"
47223
47995
  },
47996
+ "updatedByAgentId": {
47997
+ "type": "string"
47998
+ },
47224
47999
  "parentTaskId": {
47225
48000
  "type": "string"
47226
48001
  },
@@ -47474,6 +48249,9 @@
47474
48249
  "createdByAgentId": {
47475
48250
  "type": "string"
47476
48251
  },
48252
+ "updatedByAgentId": {
48253
+ "type": "string"
48254
+ },
47477
48255
  "parentTaskId": {
47478
48256
  "type": "string"
47479
48257
  },
@@ -47856,6 +48634,9 @@
47856
48634
  "createdByAgentId": {
47857
48635
  "type": "string"
47858
48636
  },
48637
+ "updatedByAgentId": {
48638
+ "type": "string"
48639
+ },
47859
48640
  "parentTaskId": {
47860
48641
  "type": "string"
47861
48642
  },
@@ -48269,6 +49050,9 @@
48269
49050
  "createdByAgentId": {
48270
49051
  "type": "string"
48271
49052
  },
49053
+ "updatedByAgentId": {
49054
+ "type": "string"
49055
+ },
48272
49056
  "parentTaskId": {
48273
49057
  "type": "string"
48274
49058
  },
@@ -58465,6 +59249,14 @@
58465
59249
  "name": "groupKey",
58466
59250
  "in": "query"
58467
59251
  },
59252
+ {
59253
+ "schema": {
59254
+ "type": "string"
59255
+ },
59256
+ "required": false,
59257
+ "name": "ids",
59258
+ "in": "query"
59259
+ },
58468
59260
  {
58469
59261
  "schema": {
58470
59262
  "type": "string",
@@ -58482,6 +59274,7 @@
58482
59274
  "type": "string",
58483
59275
  "enum": [
58484
59276
  "inbox",
59277
+ "working",
58485
59278
  "later",
58486
59279
  "done",
58487
59280
  "unread"
@@ -59047,6 +59840,30 @@
59047
59840
  "needsYou"
59048
59841
  ]
59049
59842
  },
59843
+ "working": {
59844
+ "type": "object",
59845
+ "properties": {
59846
+ "total": {
59847
+ "type": "integer"
59848
+ },
59849
+ "unread": {
59850
+ "type": "integer"
59851
+ },
59852
+ "running": {
59853
+ "type": "integer"
59854
+ },
59855
+ "needsYou": {
59856
+ "type": "integer"
59857
+ }
59858
+ },
59859
+ "required": [
59860
+ "total",
59861
+ "unread",
59862
+ "running",
59863
+ "needsYou"
59864
+ ],
59865
+ "description": "Inbox sessions with a task running and nothing for the person to answer. They list under Working, not Inbox."
59866
+ },
59050
59867
  "later": {
59051
59868
  "type": "object",
59052
59869
  "properties": {
@@ -59139,6 +59956,7 @@
59139
59956
  "required": [
59140
59957
  "groups",
59141
59958
  "inbox",
59959
+ "working",
59142
59960
  "later",
59143
59961
  "done",
59144
59962
  "noGroup",
@@ -59164,7 +59982,7 @@
59164
59982
  "/api/session-triage": {
59165
59983
  "post": {
59166
59984
  "summary": "Triage every session of one sidebar list",
59167
- "description": "The bulk bar's 'Select all N': Done, back to the Inbox, read, or unread for every session that one sessions v2 list shows the caller (the `GET /api/sessions?scope=tree` filters). Needs a picked user.",
59985
+ "description": "The bulk bar's 'Select all N': Done, back to the Inbox, read, or unread for every session that one sessions v2 list shows the caller (the `GET /api/sessions?scope=tree` filters), minus `exceptIds`. Needs a picked user.",
59168
59986
  "tags": [
59169
59987
  "Sessions"
59170
59988
  ],
@@ -59192,6 +60010,7 @@
59192
60010
  "type": "string",
59193
60011
  "enum": [
59194
60012
  "inbox",
60013
+ "working",
59195
60014
  "later",
59196
60015
  "done"
59197
60016
  ]
@@ -59202,6 +60021,9 @@
59202
60021
  "groupKey": {
59203
60022
  "type": "string"
59204
60023
  },
60024
+ "keyPrefix": {
60025
+ "type": "string"
60026
+ },
59205
60027
  "show": {
59206
60028
  "type": "string",
59207
60029
  "enum": [
@@ -59225,6 +60047,14 @@
59225
60047
  "minLength": 1
59226
60048
  },
59227
60049
  "maxItems": 32
60050
+ },
60051
+ "exceptIds": {
60052
+ "type": "array",
60053
+ "items": {
60054
+ "type": "string",
60055
+ "minLength": 1
60056
+ },
60057
+ "maxItems": 500
59228
60058
  }
59229
60059
  },
59230
60060
  "required": [
@@ -63361,6 +64191,27 @@
63361
64191
  "null"
63362
64192
  ]
63363
64193
  },
64194
+ "updatedByAgentId": {
64195
+ "type": [
64196
+ "string",
64197
+ "null"
64198
+ ],
64199
+ "default": null
64200
+ },
64201
+ "createdBy": {
64202
+ "type": [
64203
+ "string",
64204
+ "null"
64205
+ ],
64206
+ "default": null
64207
+ },
64208
+ "updatedBy": {
64209
+ "type": [
64210
+ "string",
64211
+ "null"
64212
+ ],
64213
+ "default": null
64214
+ },
63364
64215
  "createdAt": {
63365
64216
  "type": "string"
63366
64217
  },
@@ -63548,6 +64399,27 @@
63548
64399
  "null"
63549
64400
  ]
63550
64401
  },
64402
+ "updatedByAgentId": {
64403
+ "type": [
64404
+ "string",
64405
+ "null"
64406
+ ],
64407
+ "default": null
64408
+ },
64409
+ "createdBy": {
64410
+ "type": [
64411
+ "string",
64412
+ "null"
64413
+ ],
64414
+ "default": null
64415
+ },
64416
+ "updatedBy": {
64417
+ "type": [
64418
+ "string",
64419
+ "null"
64420
+ ],
64421
+ "default": null
64422
+ },
63551
64423
  "createdAt": {
63552
64424
  "type": "string"
63553
64425
  },
@@ -65576,6 +66448,9 @@
65576
66448
  "createdByAgentId": {
65577
66449
  "type": "string"
65578
66450
  },
66451
+ "updatedByAgentId": {
66452
+ "type": "string"
66453
+ },
65579
66454
  "parentTaskId": {
65580
66455
  "type": "string"
65581
66456
  },
@@ -65763,6 +66638,9 @@
65763
66638
  "createdByAgentId": {
65764
66639
  "type": "string"
65765
66640
  },
66641
+ "updatedByAgentId": {
66642
+ "type": "string"
66643
+ },
65766
66644
  "parentTaskId": {
65767
66645
  "type": "string"
65768
66646
  },
@@ -66523,6 +67401,40 @@
66523
67401
  }
66524
67402
  }
66525
67403
  },
67404
+ "/api/tool-hooks/status": {
67405
+ "get": {
67406
+ "summary": "Whether any enabled extension takes harness-native tool calls",
67407
+ "description": "Worker shims read this before each native tool call and skip `POST /api/tool-hooks` while `native` is false, so a swarm with no native-tool extension pays no per-call round trip. Shims cache the answer for a short time.",
67408
+ "tags": [
67409
+ "Extensions"
67410
+ ],
67411
+ "security": [
67412
+ {
67413
+ "bearerAuth": []
67414
+ }
67415
+ ],
67416
+ "responses": {
67417
+ "200": {
67418
+ "description": "Native tool hook status",
67419
+ "content": {
67420
+ "application/json": {
67421
+ "schema": {
67422
+ "type": "object",
67423
+ "properties": {
67424
+ "native": {
67425
+ "type": "boolean"
67426
+ }
67427
+ },
67428
+ "required": [
67429
+ "native"
67430
+ ]
67431
+ }
67432
+ }
67433
+ }
67434
+ }
67435
+ }
67436
+ }
67437
+ },
66526
67438
  "/api/trackers/jira/authorize": {
66527
67439
  "get": {
66528
67440
  "summary": "Start the Jira OAuth flow (admin): redirect to the consent screen, or return its URL",
@@ -69443,6 +70355,30 @@
69443
70355
  "required": false,
69444
70356
  "name": "limit",
69445
70357
  "in": "query"
70358
+ },
70359
+ {
70360
+ "schema": {
70361
+ "type": "string",
70362
+ "enum": [
70363
+ "true",
70364
+ "false"
70365
+ ]
70366
+ },
70367
+ "required": false,
70368
+ "name": "dismissed",
70369
+ "in": "query"
70370
+ },
70371
+ {
70372
+ "schema": {
70373
+ "type": "string",
70374
+ "enum": [
70375
+ "true",
70376
+ "false"
70377
+ ]
70378
+ },
70379
+ "required": false,
70380
+ "name": "includeBots",
70381
+ "in": "query"
69446
70382
  }
69447
70383
  ],
69448
70384
  "responses": {
@@ -69479,7 +70415,13 @@
69479
70415
  "null"
69480
70416
  ]
69481
70417
  },
69482
- "sampleContext": {}
70418
+ "sampleContext": {},
70419
+ "dismissedAt": {
70420
+ "type": "string"
70421
+ },
70422
+ "dismissedBy": {
70423
+ "type": "string"
70424
+ }
69483
70425
  },
69484
70426
  "required": [
69485
70427
  "kind",
@@ -69761,6 +70703,184 @@
69761
70703
  }
69762
70704
  }
69763
70705
  },
70706
+ "/api/users/unmapped/dismiss": {
70707
+ "post": {
70708
+ "summary": "Dismiss unmapped identities: hide them from triage and stop recording them. Links nothing.",
70709
+ "tags": [
70710
+ "Users"
70711
+ ],
70712
+ "security": [
70713
+ {
70714
+ "bearerAuth": []
70715
+ }
70716
+ ],
70717
+ "requestBody": {
70718
+ "content": {
70719
+ "application/json": {
70720
+ "schema": {
70721
+ "type": "object",
70722
+ "properties": {
70723
+ "identities": {
70724
+ "type": "array",
70725
+ "items": {
70726
+ "type": "object",
70727
+ "properties": {
70728
+ "kind": {
70729
+ "type": "string",
70730
+ "minLength": 1
70731
+ },
70732
+ "externalId": {
70733
+ "type": "string",
70734
+ "minLength": 1
70735
+ }
70736
+ },
70737
+ "required": [
70738
+ "kind",
70739
+ "externalId"
70740
+ ]
70741
+ },
70742
+ "minItems": 1,
70743
+ "maxItems": 500
70744
+ }
70745
+ },
70746
+ "required": [
70747
+ "identities"
70748
+ ]
70749
+ }
70750
+ }
70751
+ }
70752
+ },
70753
+ "responses": {
70754
+ "200": {
70755
+ "description": "Identities moved to the ignore list",
70756
+ "content": {
70757
+ "application/json": {
70758
+ "schema": {
70759
+ "type": "object",
70760
+ "properties": {
70761
+ "dismissed": {
70762
+ "type": "number"
70763
+ }
70764
+ },
70765
+ "required": [
70766
+ "dismissed"
70767
+ ]
70768
+ }
70769
+ }
70770
+ }
70771
+ },
70772
+ "400": {
70773
+ "description": "Validation error",
70774
+ "content": {
70775
+ "application/json": {
70776
+ "schema": {
70777
+ "$ref": "#/components/schemas/ErrorResponse"
70778
+ }
70779
+ }
70780
+ }
70781
+ },
70782
+ "401": {
70783
+ "description": "Unauthorized",
70784
+ "content": {
70785
+ "application/json": {
70786
+ "schema": {
70787
+ "$ref": "#/components/schemas/ErrorResponse"
70788
+ }
70789
+ }
70790
+ }
70791
+ }
70792
+ }
70793
+ }
70794
+ },
70795
+ "/api/users/unmapped/restore": {
70796
+ "post": {
70797
+ "summary": "Undo a dismissal: return identities to the triage queue",
70798
+ "tags": [
70799
+ "Users"
70800
+ ],
70801
+ "security": [
70802
+ {
70803
+ "bearerAuth": []
70804
+ }
70805
+ ],
70806
+ "requestBody": {
70807
+ "content": {
70808
+ "application/json": {
70809
+ "schema": {
70810
+ "type": "object",
70811
+ "properties": {
70812
+ "identities": {
70813
+ "type": "array",
70814
+ "items": {
70815
+ "type": "object",
70816
+ "properties": {
70817
+ "kind": {
70818
+ "type": "string",
70819
+ "minLength": 1
70820
+ },
70821
+ "externalId": {
70822
+ "type": "string",
70823
+ "minLength": 1
70824
+ }
70825
+ },
70826
+ "required": [
70827
+ "kind",
70828
+ "externalId"
70829
+ ]
70830
+ },
70831
+ "minItems": 1,
70832
+ "maxItems": 500
70833
+ }
70834
+ },
70835
+ "required": [
70836
+ "identities"
70837
+ ]
70838
+ }
70839
+ }
70840
+ }
70841
+ },
70842
+ "responses": {
70843
+ "200": {
70844
+ "description": "Count of identities taken off the ignore list",
70845
+ "content": {
70846
+ "application/json": {
70847
+ "schema": {
70848
+ "type": "object",
70849
+ "properties": {
70850
+ "restored": {
70851
+ "type": "number"
70852
+ }
70853
+ },
70854
+ "required": [
70855
+ "restored"
70856
+ ]
70857
+ }
70858
+ }
70859
+ }
70860
+ },
70861
+ "400": {
70862
+ "description": "Validation error",
70863
+ "content": {
70864
+ "application/json": {
70865
+ "schema": {
70866
+ "$ref": "#/components/schemas/ErrorResponse"
70867
+ }
70868
+ }
70869
+ }
70870
+ },
70871
+ "401": {
70872
+ "description": "Unauthorized",
70873
+ "content": {
70874
+ "application/json": {
70875
+ "schema": {
70876
+ "$ref": "#/components/schemas/ErrorResponse"
70877
+ }
70878
+ }
70879
+ }
70880
+ }
70881
+ }
70882
+ }
70883
+ },
69764
70884
  "/api/users/{id}": {
69765
70885
  "get": {
69766
70886
  "summary": "Get a user by ID with identities, token summaries and recent events",
@@ -72446,6 +73566,16 @@
72446
73566
  }
72447
73567
  }
72448
73568
  },
73569
+ "403": {
73570
+ "description": "Event name is reserved for provider webhooks",
73571
+ "content": {
73572
+ "application/json": {
73573
+ "schema": {
73574
+ "$ref": "#/components/schemas/ErrorResponse"
73575
+ }
73576
+ }
73577
+ }
73578
+ },
72449
73579
  "404": {
72450
73580
  "description": "Workflow run not found",
72451
73581
  "content": {
@@ -72528,6 +73658,16 @@
72528
73658
  }
72529
73659
  }
72530
73660
  }
73661
+ },
73662
+ "403": {
73663
+ "description": "Event name is reserved for provider webhooks",
73664
+ "content": {
73665
+ "application/json": {
73666
+ "schema": {
73667
+ "$ref": "#/components/schemas/ErrorResponse"
73668
+ }
73669
+ }
73670
+ }
72531
73671
  }
72532
73672
  }
72533
73673
  }
@@ -72709,6 +73849,9 @@
72709
73849
  "createdByAgentId": {
72710
73850
  "type": "string"
72711
73851
  },
73852
+ "updatedByAgentId": {
73853
+ "type": "string"
73854
+ },
72712
73855
  "createdAt": {
72713
73856
  "type": "string"
72714
73857
  },
@@ -72851,6 +73994,25 @@
72851
73994
  "format"
72852
73995
  ]
72853
73996
  },
73997
+ {
73998
+ "type": "object",
73999
+ "properties": {
74000
+ "format": {
74001
+ "type": "string",
74002
+ "enum": [
74003
+ "hmac-sha1"
74004
+ ]
74005
+ },
74006
+ "header": {
74007
+ "type": "string",
74008
+ "default": "X-Hub-Signature",
74009
+ "description": "Header containing HMAC-SHA1 over the raw request body. Accepts sha1=<hex> or bare hex."
74010
+ }
74011
+ },
74012
+ "required": [
74013
+ "format"
74014
+ ]
74015
+ },
72854
74016
  {
72855
74017
  "type": "object",
72856
74018
  "properties": {
@@ -73377,6 +74539,25 @@
73377
74539
  "format"
73378
74540
  ]
73379
74541
  },
74542
+ {
74543
+ "type": "object",
74544
+ "properties": {
74545
+ "format": {
74546
+ "type": "string",
74547
+ "enum": [
74548
+ "hmac-sha1"
74549
+ ]
74550
+ },
74551
+ "header": {
74552
+ "type": "string",
74553
+ "default": "X-Hub-Signature",
74554
+ "description": "Header containing HMAC-SHA1 over the raw request body. Accepts sha1=<hex> or bare hex."
74555
+ }
74556
+ },
74557
+ "required": [
74558
+ "format"
74559
+ ]
74560
+ },
73380
74561
  {
73381
74562
  "type": "object",
73382
74563
  "properties": {