@desplega.ai/agent-swarm 2.13.3 → 2.13.4

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 (289) hide show
  1. package/dist/acp-adapter-mr4temec.js +17 -0
  2. package/dist/{acp-targets-k8xs4tj8.js → acp-targets-zrk9k0n7.js} +10 -10
  3. package/dist/{actions-pg5fxjer.js → actions-acqqj9jn.js} +236 -26
  4. package/dist/{agent-fs-provision-vbk3fppw.js → agent-fs-provision-zmaykqnd.js} +4 -4
  5. package/dist/{amp-adapter-adbhxsz9.js → amp-adapter-a7ts8tmw.js} +3 -3
  6. package/dist/{app-b267ggx1.js → app-tmwa442h.js} +7 -7
  7. package/dist/{approval-notifications-evc1a9z5.js → approval-notifications-6psaaaye.js} +8 -8
  8. package/dist/{assistant-wgz2ab84.js → assistant-564v6emv.js} +24 -24
  9. package/dist/{boot-args-schema-6tpk28j4.js → boot-args-schema-n099e0f2.js} +1 -1
  10. package/dist/{boot-reembed-ankp369c.js → boot-reembed-chx66qfk.js} +1 -1
  11. package/dist/{boot-reembed-r1zyvefv.js → boot-reembed-epvg4fp9.js} +1 -1
  12. package/dist/{boot-scrub-sweep-cgb6r5bd.js → boot-scrub-sweep-dhkfp0a7.js} +2 -2
  13. package/dist/{boot-seeds-bjceqg7b.js → boot-seeds-m74fc07r.js} +4 -4
  14. package/dist/{boxd-hr8rsxzq.js → boxd-451q55ys.js} +1 -1
  15. package/dist/{claude-adapter-knztdnff.js → claude-adapter-hw63yj3j.js} +9 -9
  16. package/dist/{claude-managed-adapter-qwejzqkk.js → claude-managed-adapter-z5s7fx6p.js} +3 -3
  17. package/dist/{claude-managed-setup-0vgz4d1j.js → claude-managed-setup-wee1762m.js} +3 -3
  18. package/dist/{claude-sdk-session-c3g6dv0g.js → claude-sdk-session-cktyqkpk.js} +11 -11
  19. package/dist/{cli-7fa6yv98.js → cli-0fgvnb0x.js} +6 -6
  20. package/dist/{cli-2v4xxnx2.js → cli-0h8skzss.js} +1 -1
  21. package/dist/{cli-hhb8kbwd.js → cli-0p76my9q.js} +29 -14
  22. package/dist/{cli-fp65jdp2.js → cli-1kvcsd2f.js} +219 -155
  23. package/dist/{cli-wtffytm8.js → cli-1vmhnncj.js} +3 -3
  24. package/dist/{cli-268b3dgn.js → cli-29h5239w.js} +5 -5
  25. package/dist/{cli-8fj8yfmk.js → cli-2vp0z049.js} +1 -1
  26. package/dist/{cli-bh53ppqm.js → cli-3bxrrh53.js} +4 -4
  27. package/dist/{cli-61fzwtjk.js → cli-3tzmh38q.js} +9 -9
  28. package/dist/{cli-88np9va3.js → cli-3xqad83h.js} +1 -1
  29. package/dist/{cli-gc715jrc.js → cli-3zrwrnz7.js} +1 -1
  30. package/dist/{cli-dw43pnzp.js → cli-404am6f3.js} +7 -7
  31. package/dist/{cli-8pnawt98.js → cli-49aq3cyn.js} +4 -4
  32. package/dist/{cli-fbmgpt72.js → cli-4fpa0zns.js} +3 -3
  33. package/dist/{cli-kwm1bek7.js → cli-4pbwg7sn.js} +2 -2
  34. package/dist/{cli-djwt4mtn.js → cli-4q2c8rxw.js} +9 -9
  35. package/dist/{cli-3mf04tkh.js → cli-4vynxtrb.js} +1 -1
  36. package/dist/{cli-80d5g0fa.js → cli-5ashycw3.js} +3 -3
  37. package/dist/{cli-61p7ty8d.js → cli-5rgm8p39.js} +3 -3
  38. package/dist/{cli-r6xnchva.js → cli-5rxsb3wq.js} +6 -6
  39. package/dist/{cli-a21cwm89.js → cli-60dwk8tx.js} +3 -3
  40. package/dist/{cli-v1v49t36.js → cli-7by7vp6m.js} +2 -2
  41. package/dist/{cli-vgh5adn9.js → cli-7g3fg4gf.js} +7 -7
  42. package/dist/{cli-hxj888w3.js → cli-7gbff32z.js} +2 -2
  43. package/dist/{cli-q8aq48v1.js → cli-8b4rpnwj.js} +1 -1
  44. package/dist/{cli-xc8m5cjn.js → cli-8cas2xvp.js} +3 -3
  45. package/dist/{cli-1606qw3n.js → cli-904wk98s.js} +797 -369
  46. package/dist/{cli-h3drhntp.js → cli-93n305hm.js} +2 -2
  47. package/dist/{cli-1wew39p0.js → cli-944w9wb4.js} +20 -16
  48. package/dist/{cli-je587f74.js → cli-94gx6ze9.js} +1 -1
  49. package/dist/{cli-hpxcfvdm.js → cli-9ah37a8a.js} +6 -6
  50. package/dist/{cli-rfejbpe1.js → cli-akm6y2a8.js} +1 -1
  51. package/dist/{cli-f8rcvf2x.js → cli-azj9t1f9.js} +37 -2
  52. package/dist/{cli-ef590376.js → cli-bv4vvnmg.js} +3 -3
  53. package/dist/{cli-ppf9ap9n.js → cli-bzcwwebm.js} +1 -1
  54. package/dist/{cli-sy2ge2ye.js → cli-cq4am6vg.js} +2 -2
  55. package/dist/{cli-gxqwm3k3.js → cli-d5pc8ep0.js} +102 -8
  56. package/dist/{cli-hd2a204w.js → cli-ea7nz50q.js} +12 -12
  57. package/dist/{cli-zkbz8m2q.js → cli-fkpnx3vf.js} +1 -1
  58. package/dist/{cli-ya1cj689.js → cli-fw67mnyc.js} +1 -1
  59. package/dist/{cli-5basv0e7.js → cli-gkv0r2hq.js} +1 -1
  60. package/dist/{cli-ka4tqjzd.js → cli-gse7bp3z.js} +12 -10
  61. package/dist/{cli-v8rpjrnx.js → cli-gtj12v95.js} +1 -1
  62. package/dist/{cli-g4dhd3pr.js → cli-hdhpdrka.js} +6 -23
  63. package/dist/{cli-dq30fq3q.js → cli-hhtbandk.js} +2 -2
  64. package/dist/cli-hyqksecw.js +1907 -0
  65. package/dist/{cli-t25rq8mg.js → cli-ja450998.js} +40 -11
  66. package/dist/{cli-43dsqhcp.js → cli-jbrc98qb.js} +4 -4
  67. package/dist/{cli-8sayvj48.js → cli-jyhbvdga.js} +3 -3
  68. package/dist/{cli-55fqpd9q.js → cli-jzerrzgc.js} +8 -8
  69. package/dist/{cli-hv3820ez.js → cli-k0nebh10.js} +1 -1
  70. package/dist/{cli-aytna2fm.js → cli-ka48vpev.js} +5 -5
  71. package/dist/{cli-d2epqm0y.js → cli-kezzteka.js} +1 -1
  72. package/dist/{cli-grk77aen.js → cli-kj84fqxz.js} +2 -2
  73. package/dist/{cli-h0ewec3d.js → cli-kr0jpw9c.js} +1 -1
  74. package/dist/{cli-wsnradtk.js → cli-m1sns1da.js} +2 -2
  75. package/dist/{cli-7kv5d674.js → cli-n1kjs58m.js} +4 -4
  76. package/dist/{cli-syqcny89.js → cli-nc4pbwmp.js} +9 -9
  77. package/dist/{cli-9gmkw6xn.js → cli-p3knvk62.js} +48 -42
  78. package/dist/{cli-50whymxq.js → cli-p436yrzp.js} +2 -2
  79. package/dist/{cli-0j4qmc80.js → cli-phdzn699.js} +7 -7
  80. package/dist/{cli-1gnf5c7x.js → cli-pz1dp12c.js} +1 -1
  81. package/dist/{cli-nbawx3s0.js → cli-pz1nq5xm.js} +6 -6
  82. package/dist/{cli-4dyhzhpx.js → cli-qzz6tz8s.js} +1 -1
  83. package/dist/{cli-ea367bdn.js → cli-rmgvwcmy.js} +22 -22
  84. package/dist/{cli-mgr3gatr.js → cli-rv3y60bt.js} +4 -4
  85. package/dist/cli-s33bzmk0.js +27 -0
  86. package/dist/{cli-at67kvnp.js → cli-srktrbby.js} +1 -1
  87. package/dist/{cli-pzsedyb0.js → cli-t0jmkcah.js} +14 -14
  88. package/dist/{cli-eetzmsy5.js → cli-t9pzz2eq.js} +2 -2
  89. package/dist/{cli-w24741sm.js → cli-tr19nyn9.js} +4 -4
  90. package/dist/{cli-e4gx499y.js → cli-ts5yv7dn.js} +163 -86
  91. package/dist/{cli-czeh7x13.js → cli-tsc3pdfd.js} +4 -4
  92. package/dist/{cli-y0q92v4r.js → cli-tzw1jr2t.js} +2 -2
  93. package/dist/{cli-tjf1bh1v.js → cli-x2cem5vy.js} +6 -4
  94. package/dist/{cli-vx9acp12.js → cli-ybte1fqc.js} +1 -1
  95. package/dist/{cli-gkjw33x5.js → cli-ysv0k1we.js} +2 -2
  96. package/dist/{cli-vdfngx2g.js → cli-ywy8yz6t.js} +2 -2
  97. package/dist/{cli-cpkxh68d.js → cli-z1vam71h.js} +2 -2
  98. package/dist/{cli-8m6gqnf1.js → cli-zexwhj3f.js} +3 -3
  99. package/dist/{cli-snwz16eg.js → cli-zhwjdhjr.js} +2 -2
  100. package/dist/{cli-y754psdt.js → cli-zjdhrzm0.js} +4 -4
  101. package/dist/cli.js +19 -19
  102. package/dist/{codex-adapter-493vb8cv.js → codex-adapter-2fs2c0n6.js} +8 -8
  103. package/dist/{codex-hook-ej8hn6z5.js → codex-hook-jxjv6dy5.js} +1 -1
  104. package/dist/{codex-login-ven5cz5j.js → codex-login-ktfg1cxk.js} +1 -1
  105. package/dist/{codex-session-runner-ps5m4z1g.js → codex-session-runner-r55tmx4c.js} +9 -9
  106. package/dist/{commands-shktk0b8.js → commands-0mxdy9x8.js} +3 -3
  107. package/dist/{controller-wn3vd217.js → controller-g3vkfhr4.js} +4 -4
  108. package/dist/{controllers-connect-yft057ws.js → controllers-connect-4wdmncqt.js} +25 -25
  109. package/dist/core-gsvj5f3z.js +42 -0
  110. package/dist/{cursor-adapter-8fpm4dng.js → cursor-adapter-t9qb96q2.js} +2 -2
  111. package/dist/{db-0ezhdhz5.js → db-487vvyv9.js} +3 -3
  112. package/dist/{db-84pz2w5c.js → db-76p7w3gr.js} +2 -2
  113. package/dist/{devin-adapter-fs90ab4v.js → devin-adapter-3bp6rape.js} +1 -1
  114. package/dist/{dispatcher-h2rz69f6.js → dispatcher-64rp6w67.js} +22 -22
  115. package/dist/{docker-1h33jvh9.js → docker-a59g3ebm.js} +2 -2
  116. package/dist/{dsh-adapter-g9yqv09y.js → dsh-adapter-8abzqk5c.js} +2 -2
  117. package/dist/{e2b-y7e5kmzf.js → e2b-3ykbe805.js} +2 -2
  118. package/dist/{e2b-jnk0yeva.js → e2b-dc8f6ctq.js} +2 -2
  119. package/dist/{easter-egg-3d-m41ad78v.js → easter-egg-3d-jrrwyf55.js} +1 -1
  120. package/dist/{embedding-space-yam9zwzj.js → embedding-space-001hhhpk.js} +6 -6
  121. package/dist/{embeddings-g2be0y8q.js → embeddings-esj19cnw.js} +1 -1
  122. package/dist/{event-bus-08t2b4y2.js → event-bus-7gbsr0g4.js} +1 -1
  123. package/dist/{execute-hhdejgzf.js → execute-301hkxqg.js} +1 -1
  124. package/dist/{external-channel-kjt2yzfj.js → external-channel-w10e2j05.js} +2 -2
  125. package/dist/fx-adapter-4sjrbdne.js +20 -0
  126. package/dist/grok-adapter-3a0ezfee.js +20 -0
  127. package/dist/handlers-ef3k11hb.js +41 -0
  128. package/dist/{heartbeat-2e5jdexj.js → heartbeat-tbrj7vhq.js} +25 -25
  129. package/dist/{hook-acg9saz7.js → hook-3am1sq68.js} +6 -6
  130. package/dist/{hook-34s8cmgn.js → hook-tx917rqw.js} +8 -8
  131. package/dist/{http-ra2zr2f8.js → http-3rmemtqy.js} +335 -1829
  132. package/dist/{index-mbpxhc4w.js → index-126v2d0t.js} +1 -4
  133. package/dist/{index-2z1z7qx6.js → index-2jw11t8s.js} +26 -26
  134. package/dist/{index-9q42cr54.js → index-aetfyx6p.js} +1 -1
  135. package/dist/index-e6bq0exk.js +42 -0
  136. package/dist/{index-9r4j0a60.js → index-gfnq66t1.js} +223 -25
  137. package/dist/index-hf2k1vge.js +39 -0
  138. package/dist/{index-93bw5wds.js → index-s7xtvc0f.js} +1 -1
  139. package/dist/index-taxmejj3.js +44 -0
  140. package/dist/{k8s-8326q0rq.js → k8s-36gfn847.js} +2 -2
  141. package/dist/{keepalive-vjnnqbkm.js → keepalive-9px3t7qj.js} +5 -5
  142. package/dist/lead-5vt6f174.js +83 -0
  143. package/dist/{maintenance-px2g599e.js → maintenance-vwqjwst6.js} +1 -1
  144. package/dist/{oauth-refresh-sweep-nkykf09m.js → oauth-refresh-sweep-yqry3wn4.js} +4 -4
  145. package/dist/{object-webhooks-gt9xnq21.js → object-webhooks-8s1wtths.js} +7 -7
  146. package/dist/{onboard-1f134p65.js → onboard-hb8czx0p.js} +7 -7
  147. package/dist/{opencode-adapter-94976yab.js → opencode-adapter-djd6m6dk.js} +8 -8
  148. package/dist/{otel-impl-5d4p2fqs.js → otel-impl-2ymwyczz.js} +2 -2
  149. package/dist/{pending-vkk0vx6n.js → pending-nxavtvx7.js} +23 -23
  150. package/dist/{pi-mono-adapter-cyzdv5er.js → pi-mono-adapter-d2cpmcy4.js} +12 -12
  151. package/dist/{pricing-refresh-jtmjwss9.js → pricing-refresh-1yz8jkqv.js} +2 -2
  152. package/dist/{rbac-roles-1fvmdyeb.js → rbac-roles-7s6m31xw.js} +6 -4
  153. package/dist/{rbac-roles-yd1fgpsn.js → rbac-roles-dbpx0x9v.js} +3 -3
  154. package/dist/{render-v2-kb5s3vx4.js → render-v2-7y20rjrn.js} +7 -7
  155. package/dist/{resume-z1vs44n5.js → resume-wz546x47.js} +10 -10
  156. package/dist/{runtime-gk6ct7r7.js → runtime-cb5bd9tz.js} +1 -1
  157. package/dist/{session-access-nz6nre4d.js → session-access-4vcft8kq.js} +5 -5
  158. package/dist/{session-source-backfill-wb60zjkd.js → session-source-backfill-57b50tpw.js} +3 -3
  159. package/dist/{setup-2x8g8j4s.js → setup-e1tevjyj.js} +1 -1
  160. package/dist/thread-buffer-686pa1p1.js +42 -0
  161. package/dist/{tree-visibility-ts3z30kw.js → tree-visibility-07wf1nct.js} +2 -2
  162. package/dist/{user-merge-jobs-zetg26e0.js → user-merge-jobs-n20qpv6s.js} +3 -3
  163. package/dist/{virtual-modules-674fka8x.js → virtual-modules-6fxmn1yv.js} +3 -3
  164. package/dist/{work-objects-w52yyjxm.js → work-objects-eg7y48pe.js} +25 -25
  165. package/dist/worker-4vp616ms.js +83 -0
  166. package/dist/{worker-follow-up-dyfxyjbj.js → worker-follow-up-jnvnnf2b.js} +22 -22
  167. package/dist/{x-asbrnafg.js → x-d27jj7z7.js} +2 -2
  168. package/openapi.json +475 -28
  169. package/package.json +2 -2
  170. package/src/be/db/approvals.ts +2 -0
  171. package/src/be/db/runtime.ts +5 -0
  172. package/src/be/db/script-run-sources.ts +17 -0
  173. package/src/be/db-retention.ts +1 -1
  174. package/src/be/db.ts +71 -62
  175. package/src/be/design-system.ts +63 -0
  176. package/src/be/migrations/342_script_run_sources.sql +20 -0
  177. package/src/be/migrations/runner.ts +8 -0
  178. package/src/be/migrations/script-run-sources.ts +51 -0
  179. package/src/be/rbac-roles.ts +2 -0
  180. package/src/be/scripts/typecheck.ts +4 -2
  181. package/src/be/seed-scripts/catalog/design-system-seed.ts +158 -0
  182. package/src/be/seed-scripts/index.ts +9 -0
  183. package/src/be/swarm-config-guard.ts +21 -1
  184. package/src/commands/onboard/agent-fs-version.ts +1 -1
  185. package/src/heartbeat/heartbeat.ts +18 -4
  186. package/src/http/all-routes.ts +1 -0
  187. package/src/http/approval-chat-answer.ts +99 -0
  188. package/src/http/approval-requests.ts +280 -225
  189. package/src/http/design-system.ts +103 -0
  190. package/src/http/index.ts +10 -6
  191. package/src/http/pages-public.ts +25 -10
  192. package/src/http/pages.ts +17 -0
  193. package/src/http/person-responder.ts +28 -0
  194. package/src/integrations/chat-sdk/adapters.ts +33 -3
  195. package/src/integrations/chat-sdk/inbound.ts +6 -18
  196. package/src/integrations/chat-sdk/mentions.ts +188 -0
  197. package/src/integrations/chat-sdk/outbound.ts +20 -3
  198. package/src/integrations/chat-sdk/router.ts +8 -0
  199. package/src/integrations/chat-sdk/telegram-thread.ts +12 -0
  200. package/src/jira/adf.ts +35 -9
  201. package/src/kv-reserved-namespaces.ts +5 -0
  202. package/src/pages/page-head.ts +11 -1
  203. package/src/providers/amp-adapter.ts +1 -1
  204. package/src/providers/dsh-adapter.ts +48 -13
  205. package/src/rbac/legacy-policy.ts +4 -0
  206. package/src/rbac/permissions.ts +8 -0
  207. package/src/scheduler/index.ts +1 -0
  208. package/src/scheduler/scheduler.test.ts +32 -1
  209. package/src/scheduler/scheduler.ts +24 -1
  210. package/src/script-workflows/executor.ts +6 -0
  211. package/src/script-workflows/supervisor.ts +2 -1
  212. package/src/scripts-runtime/sdk-allowlist.ts +2 -0
  213. package/src/scripts-runtime/swarm-sdk.ts +12 -23
  214. package/src/scripts-runtime/types/stdlib.d.ts +4 -1
  215. package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -1
  216. package/src/server.ts +2 -0
  217. package/src/slack/actions.ts +3 -0
  218. package/src/slack/approval-actions.ts +148 -0
  219. package/src/slack/approval-buttons.ts +28 -0
  220. package/src/tests/chat-sdk-mentions.test.ts +183 -0
  221. package/src/tests/create-page-tool.test.ts +5 -0
  222. package/src/tests/dsh-adapter.test.ts +53 -1
  223. package/src/tests/fixtures/compiled-source-schema-boot.ts +24 -0
  224. package/src/tests/fixtures/secret-corpus.ts +43 -1
  225. package/src/tests/heartbeat-stall-thresholds.test.ts +174 -0
  226. package/src/tests/jira-adf.test.ts +42 -2
  227. package/src/tests/merge-gate-detect-changes.test.ts +208 -16
  228. package/src/tests/migration-342-script-run-sources.test.ts +196 -0
  229. package/src/tests/migration-bunfs-compat.test.ts +129 -9
  230. package/src/tests/rbac-e2e-helpers.test.ts +10 -4
  231. package/src/tests/rbac-e2e-helpers.ts +13 -4
  232. package/src/tests/rbac-roles.test.ts +2 -0
  233. package/src/tests/runtime-e2b-pools.test.ts +7 -1
  234. package/src/tests/schedule-target-type.test.ts +4 -1
  235. package/src/tests/script-connections.test.ts +2 -0
  236. package/src/tests/script-runs-retention.test.ts +43 -16
  237. package/src/tests/script-workflows-runtime-e2e.test.ts +56 -22
  238. package/src/tests/scripts-http.test.ts +9 -3
  239. package/src/tests/sdk-allowlist.test.ts +26 -13
  240. package/src/tests/sdk-store-progress-skipped.test.ts +12 -5
  241. package/src/tests/secret-rules.test.ts +34 -0
  242. package/src/tests/secret-scrub-gate.test.ts +7 -0
  243. package/src/tests/secret-scrubber.test.ts +62 -2
  244. package/src/tests/seed-scripts.test.ts +2 -2
  245. package/src/tests/system-one-hosts-ui-mirror.test.ts +1 -0
  246. package/src/tests/vcs-azure-devops.test.ts +10 -0
  247. package/src/tests/vcs-provider.test.ts +8 -0
  248. package/src/themes/design-system.ts +163 -0
  249. package/src/themes/page-theme.ts +28 -19
  250. package/src/tools/chat-post.ts +7 -3
  251. package/src/tools/create-page.ts +3 -0
  252. package/src/tools/design-system.ts +102 -0
  253. package/src/tools/mcp-servers/mcp-server-get.ts +1 -1
  254. package/src/tools/mcp-servers/mcp-server-list.ts +1 -1
  255. package/src/tools/register-chat-channel.ts +11 -2
  256. package/src/tools/skills/skill-get-file.ts +1 -1
  257. package/src/tools/skills/skill-get.ts +1 -1
  258. package/src/tools/skills/skill-list.ts +1 -1
  259. package/src/tools/skills/skill-search.ts +1 -1
  260. package/src/tools/utils.ts +49 -4
  261. package/src/tools/workflows/get-workflow-run.ts +1 -1
  262. package/src/tools/workflows/get-workflow.ts +1 -1
  263. package/src/tools/workflows/list-workflow-runs.ts +1 -1
  264. package/src/tools/workflows/list-workflows.ts +1 -1
  265. package/src/types.ts +65 -0
  266. package/src/utils/secret-rules.generated.ts +149 -149
  267. package/src/utils/secret-scrubber.ts +111 -5
  268. package/src/vcs/azure-devops.ts +22 -1
  269. package/src/vcs/index.ts +3 -1
  270. package/src/workflows/approval-inline.ts +122 -0
  271. package/src/workflows/approval-notifications.ts +7 -2
  272. package/src/workflows/engine.ts +6 -5
  273. package/src/workflows/executors/agent-task.ts +14 -0
  274. package/src/workflows/executors/system-one-providers.ts +23 -0
  275. package/templates/skills/pages/content.md +34 -8
  276. package/templates/skills/swarm-docs/content.md +5 -0
  277. package/templates/skills/workflow-iterate/content.md +1 -1
  278. package/dist/acp-adapter-t2q6nsqv.js +0 -17
  279. package/dist/cli-kh973792.js +0 -98
  280. package/dist/core-nheayfgm.js +0 -42
  281. package/dist/fx-adapter-8g7xsp8q.js +0 -20
  282. package/dist/grok-adapter-ztk2zkz1.js +0 -20
  283. package/dist/handlers-9ywssz71.js +0 -41
  284. package/dist/index-6mgbdtv1.js +0 -44
  285. package/dist/index-hqdsn2t2.js +0 -39
  286. package/dist/index-st231bqv.js +0 -40
  287. package/dist/lead-mk0xkth2.js +0 -82
  288. package/dist/thread-buffer-d50rqpev.js +0 -42
  289. package/dist/worker-662x1vse.js +0 -82
@@ -77305,9 +77305,6 @@ function normalizeCredentialProvider(value) {
77305
77305
  }
77306
77306
  return () => Promise.resolve(value);
77307
77307
  }
77308
- function createDiscordAdapter(config) {
77309
- return new DiscordAdapter(config ?? {});
77310
- }
77311
77308
  var import_discord, import_discord_interactions, DiscordComponentType, DiscordMessageFlag, DiscordInteractionResponseFlag, DISCORD_CUSTOM_ID_DELIMITER = `
77312
77309
  `, DISCORD_CUSTOM_ID_MAX_LENGTH = 100, DISCORD_BLURPLE = 5793266, DISCORD_MAX_BUTTONS_PER_ROW = 5, DISCORD_MAX_SELECT_OPTIONS = 25, DISCORD_MAX_SECTION_TEXT_DISPLAYS = 3, DISCORD_MAX_COMPONENTS_V2 = 40, DISCORD_MAX_TEXT_V2 = 4000, SUPPRESSED_AUTOLINK_REGEX, SUPPRESSED_MASKED_LINK_REGEX, DiscordFormatConverter, DISCORD_API_BASE = "https://discord.com/api/v10", DISCORD_MAX_CONTENT_LENGTH = 2000, DISCORD_UNKNOWN_MESSAGE = 10008, DISCORD_THREAD_ALREADY_CREATED = 160004, HEX_64_PATTERN, HEX_PATTERN, DiscordApiError, DiscordAdapter;
77313
77310
  var init_dist = __esm(() => {
@@ -79376,5 +79373,5 @@ ${tableToAscii2(node)}
79376
79373
  init_dist();
79377
79374
 
79378
79375
  export {
79379
- createDiscordAdapter
79376
+ DiscordAdapter
79380
79377
  };
@@ -4,24 +4,24 @@ import {
4
4
  SKILL_FILE_LIMITS2,
5
5
  normalizeSkillFilePath2,
6
6
  init_db4
7
- } from "./cli-e4gx499y.js";
7
+ } from "./cli-ts5yv7dn.js";
8
8
  import {
9
9
  runSeeder
10
- } from "./cli-ppf9ap9n.js";
11
- import"./cli-hxj888w3.js";
12
- import"./cli-4dyhzhpx.js";
10
+ } from "./cli-bzcwwebm.js";
11
+ import"./cli-7gbff32z.js";
12
+ import"./cli-qzz6tz8s.js";
13
13
  import"./cli-vr4eyq6p.js";
14
14
  import"./cli-r8ddn0hf.js";
15
- import"./cli-vx9acp12.js";
16
- import"./cli-ea367bdn.js";
17
- import"./cli-gxqwm3k3.js";
18
- import"./cli-hpxcfvdm.js";
19
- import"./cli-tjf1bh1v.js";
20
- import"./cli-fbmgpt72.js";
21
- import"./cli-h3drhntp.js";
15
+ import"./cli-ybte1fqc.js";
16
+ import"./cli-rmgvwcmy.js";
17
+ import"./cli-d5pc8ep0.js";
18
+ import"./cli-9ah37a8a.js";
19
+ import"./cli-x2cem5vy.js";
20
+ import"./cli-4fpa0zns.js";
21
+ import"./cli-93n305hm.js";
22
22
  import"./cli-y260hgep.js";
23
- import"./cli-268b3dgn.js";
24
- import"./cli-dw43pnzp.js";
23
+ import"./cli-29h5239w.js";
24
+ import"./cli-404am6f3.js";
25
25
  import {
26
26
  getExecutorRegistry2,
27
27
  init_workflows,
@@ -30,12 +30,12 @@ import {
30
30
  skillSpecOf,
31
31
  skillHash,
32
32
  init_assets
33
- } from "./cli-1606qw3n.js";
33
+ } from "./cli-904wk98s.js";
34
34
  import {
35
35
  installImportedSkills,
36
36
  prepareSeeders,
37
37
  init_seeders
38
- } from "./cli-mgr3gatr.js";
38
+ } from "./cli-rv3y60bt.js";
39
39
  import {
40
40
  validateScriptImports,
41
41
  init_import_allowlist,
@@ -47,29 +47,29 @@ import {
47
47
  init_typecheck,
48
48
  parseSkillContent,
49
49
  init_skill_parser
50
- } from "./cli-ka4tqjzd.js";
51
- import"./cli-8sayvj48.js";
52
- import"./cli-w24741sm.js";
53
- import"./cli-snwz16eg.js";
54
- import"./cli-v8rpjrnx.js";
50
+ } from "./cli-gse7bp3z.js";
51
+ import"./cli-jyhbvdga.js";
52
+ import"./cli-tr19nyn9.js";
53
+ import"./cli-zhwjdhjr.js";
54
+ import"./cli-gtj12v95.js";
55
55
  import {
56
56
  validateDefinition,
57
57
  init_definition2
58
- } from "./cli-hhb8kbwd.js";
58
+ } from "./cli-0p76my9q.js";
59
59
  import"./cli-b0m3bg0f.js";
60
- import"./cli-1gnf5c7x.js";
61
- import"./cli-gkjw33x5.js";
62
- import"./cli-grk77aen.js";
60
+ import"./cli-pz1dp12c.js";
61
+ import"./cli-ysv0k1we.js";
62
+ import"./cli-kj84fqxz.js";
63
63
  import {
64
64
  IDENTITY_MD_MAX_CHARS,
65
65
  init_identity_field_budget
66
- } from "./cli-aytna2fm.js";
66
+ } from "./cli-ka48vpev.js";
67
67
  import {
68
68
  isSafeBundlePath,
69
69
  init_bundle_path,
70
70
  ExtensionWorkflowFileSchema,
71
71
  init_types5
72
- } from "./cli-f8rcvf2x.js";
72
+ } from "./cli-azj9t1f9.js";
73
73
  import {
74
74
  init_zod
75
75
  } from "./cli-96234j5w.js";
@@ -3,7 +3,7 @@ import {
3
3
  resetEmbeddingProvider2,
4
4
  getMemoryStore2,
5
5
  init_memory
6
- } from "./cli-e4gx499y.js";
6
+ } from "./cli-ts5yv7dn.js";
7
7
  init_memory();
8
8
 
9
9
  export {
@@ -0,0 +1,42 @@
1
+ import {
2
+ calculateNextRun2,
3
+ parseSchedulerIntervalMs2,
4
+ startScheduler2,
5
+ stopScheduler2,
6
+ runScheduleNow2,
7
+ init_scheduler2
8
+ } from "./cli-904wk98s.js";
9
+ import"./cli-4fpa0zns.js";
10
+ import"./cli-93n305hm.js";
11
+ import"./cli-gse7bp3z.js";
12
+ import"./cli-jyhbvdga.js";
13
+ import"./cli-tr19nyn9.js";
14
+ import"./cli-zhwjdhjr.js";
15
+ import"./cli-y260hgep.js";
16
+ import"./cli-gtj12v95.js";
17
+ import"./cli-9ah37a8a.js";
18
+ import"./cli-0p76my9q.js";
19
+ import"./cli-d5pc8ep0.js";
20
+ import"./cli-404am6f3.js";
21
+ import"./cli-29h5239w.js";
22
+ import"./cli-rmgvwcmy.js";
23
+ import"./cli-qzz6tz8s.js";
24
+ import"./cli-7gbff32z.js";
25
+ import"./cli-r8ddn0hf.js";
26
+ import"./cli-b0m3bg0f.js";
27
+ import"./cli-vr4eyq6p.js";
28
+ import"./cli-pz1dp12c.js";
29
+ import"./cli-ybte1fqc.js";
30
+ import"./cli-ysv0k1we.js";
31
+ import"./cli-x2cem5vy.js";
32
+ import"./cli-kj84fqxz.js";
33
+ import"./cli-ts5yv7dn.js";
34
+ init_scheduler2();
35
+
36
+ export {
37
+ calculateNextRun2 as calculateNextRun,
38
+ parseSchedulerIntervalMs2 as parseSchedulerIntervalMs,
39
+ runScheduleNow2 as runScheduleNow,
40
+ startScheduler2 as startScheduler,
41
+ stopScheduler2 as stopScheduler
42
+ };
@@ -17,22 +17,22 @@ import {
17
17
  deleteSkill2,
18
18
  getSkillByName2,
19
19
  init_db4
20
- } from "./cli-e4gx499y.js";
21
- import"./cli-tjf1bh1v.js";
20
+ } from "./cli-ts5yv7dn.js";
21
+ import"./cli-x2cem5vy.js";
22
22
  import {
23
23
  agentFsProvisionSeeder2,
24
24
  init_agent_fs_provision
25
- } from "./cli-a21cwm89.js";
25
+ } from "./cli-60dwk8tx.js";
26
26
  import {
27
27
  runSeeders
28
- } from "./cli-ppf9ap9n.js";
29
- import"./cli-hxj888w3.js";
30
- import"./cli-4dyhzhpx.js";
28
+ } from "./cli-bzcwwebm.js";
29
+ import"./cli-7gbff32z.js";
30
+ import"./cli-qzz6tz8s.js";
31
31
  import"./cli-vr4eyq6p.js";
32
32
  import"./cli-r8ddn0hf.js";
33
- import"./cli-vx9acp12.js";
34
- import"./cli-ea367bdn.js";
35
- import"./cli-gxqwm3k3.js";
33
+ import"./cli-ybte1fqc.js";
34
+ import"./cli-rmgvwcmy.js";
35
+ import"./cli-d5pc8ep0.js";
36
36
  import {
37
37
  buildSkillContent
38
38
  } from "./cli-691vz9mk.js";
@@ -56,14 +56,14 @@ import {
56
56
  init_typecheck,
57
57
  parseSkillContent,
58
58
  init_skill_parser
59
- } from "./cli-ka4tqjzd.js";
60
- import"./cli-8sayvj48.js";
61
- import"./cli-snwz16eg.js";
62
- import"./cli-hhb8kbwd.js";
59
+ } from "./cli-gse7bp3z.js";
60
+ import"./cli-jyhbvdga.js";
61
+ import"./cli-zhwjdhjr.js";
62
+ import"./cli-0p76my9q.js";
63
63
  import"./cli-b0m3bg0f.js";
64
- import"./cli-1gnf5c7x.js";
65
- import"./cli-gkjw33x5.js";
66
- import"./cli-grk77aen.js";
64
+ import"./cli-pz1dp12c.js";
65
+ import"./cli-ysv0k1we.js";
66
+ import"./cli-kj84fqxz.js";
67
67
  import {
68
68
  isEnvFlagEnabled,
69
69
  init_env_flag
@@ -2162,6 +2162,167 @@ export default async function delegate(args: any, ctx: any) {
2162
2162
  }
2163
2163
  `;
2164
2164
 
2165
+ // src/be/seed-scripts/catalog/design-system-seed.ts
2166
+ var design_system_seed_default = `import { z } from "zod";
2167
+
2168
+ export const argsSchema = z.object({
2169
+ url: z.string().optional().describe("Site to read the brand from, for example https://www.agent-swarm.dev"),
2170
+ css: z.string().optional().describe("A pasted CSS variable block (shadcn, tweakcn, Tailwind v4)"),
2171
+ preset: z.string().optional().describe("A preset id, for example hive or paper"),
2172
+ pdfUrl: z.string().optional().describe("A brand PDF. Not supported yet: extract its CSS and pass css"),
2173
+ basePreset: z.string().optional().describe("Preset the extracted tokens apply on top of (default hive)"),
2174
+ mode: z.enum(["viewer", "light", "dark"]).optional().describe("Mode lock (default viewer)"),
2175
+ logo: z.object({ url: z.string(), alt: z.string() }).optional().describe("https logo URL and alt text"),
2176
+ fontsHref: z.string().optional().describe("Google Fonts stylesheet URL; a url seed reads it from the site"),
2177
+ chartPalette: z.array(z.string()).optional().describe("Ordered chart series colors"),
2178
+ save: z.boolean().optional().describe("Save the design system after the preview. Only once the requester approved it"),
2179
+ });
2180
+
2181
+ const LIGHT = new Set([":root", ":host", "html"]);
2182
+ const DARK = new Set([".dark", ":root.dark", "html.dark", "[data-theme=dark]", '[data-theme="dark"]']);
2183
+ /** The token contract names in their shadcn, bare and \`--color-\` spellings. Tailwind palette stops stay out. */
2184
+ const CONTRACT_NAME =
2185
+ /^--(?:color-)?(?:background|foreground|card|surface|popover|primary|secondary|muted|accent|destructive|border|input|ring|chart-\\d|status-[a-z]+)(?:-(?:foreground|subtle|strong|solid))?$|^--font-(?:sans|mono)$|^--radius(?:-(?:sm|md|lg|xl))?$/;
2186
+ const MAX_STYLESHEETS = 8;
2187
+
2188
+ function escapeHtml(value: string): string {
2189
+ return value.replace(/[&<>"']/g, (c: string) => \`&#\${c.charCodeAt(0)};\`);
2190
+ }
2191
+
2192
+ /** The contract declarations of every light and dark theme block, as one clean CSS block per mode. */
2193
+ function themeCss(css: string): string {
2194
+ const light: string[] = [];
2195
+ const dark: string[] = [];
2196
+ for (const match of css.matchAll(/([^{}]+)\\{([^{}]*)\\}/g)) {
2197
+ const parts = (match[1] ?? "").split(",").map((part: string) => part.trim());
2198
+ const target = parts.every((p: string) => LIGHT.has(p)) ? light : parts.every((p: string) => DARK.has(p)) ? dark : null;
2199
+ if (!target) continue;
2200
+ for (const declaration of (match[2] ?? "").split(";")) {
2201
+ const colon = declaration.indexOf(":");
2202
+ const name = declaration.slice(0, colon).trim();
2203
+ if (colon > 0 && CONTRACT_NAME.test(name)) target.push(\`\${name}: \${declaration.slice(colon + 1).trim()};\`);
2204
+ }
2205
+ }
2206
+ return [light.length ? \`:root { \${light.join(" ")} }\` : "", dark.length ? \`.dark { \${dark.join(" ")} }\` : ""]
2207
+ .filter(Boolean)
2208
+ .join("\\n");
2209
+ }
2210
+
2211
+ async function readSite(url: string, ctx: any): Promise<{ css: string; fontsHref?: string }> {
2212
+ const html = await (await ctx.stdlib.fetch(url, { headers: { Accept: "text/html" } })).text();
2213
+ const hrefs: string[] = [];
2214
+ let fontsHref: string | undefined;
2215
+ for (const tag of html.match(/<link\\b[^>]*>/gi) ?? []) {
2216
+ const href = tag.match(/href=["']([^"']+)["']/i)?.[1]?.replace(/&amp;/g, "&");
2217
+ if (!href || !/rel=["']?stylesheet/i.test(tag)) continue;
2218
+ if (href.startsWith("https://fonts.googleapis.com/")) fontsHref ??= href;
2219
+ else hrefs.push(new URL(href, url).href);
2220
+ }
2221
+ const sheets = await Promise.all(
2222
+ hrefs.slice(0, MAX_STYLESHEETS).map(async (href) => (await ctx.stdlib.fetch(href)).text()),
2223
+ );
2224
+ const inline = (html.match(/<style\\b[^>]*>[\\s\\S]*?<\\/style>/gi) ?? []).map((s: string) => s.replace(/<\\/?style\\b[^>]*>/gi, ""));
2225
+ return { css: themeCss([...inline, ...sheets].join("\\n")), fontsHref };
2226
+ }
2227
+
2228
+ function previewHtml(record: any, ignored: string[]): string {
2229
+ const names = [...new Set([...Object.keys(record.tokens.light), ...Object.keys(record.tokens.dark)])].sort();
2230
+ const rows = names
2231
+ .map((name) => {
2232
+ const light = record.tokens.light[name] ?? "";
2233
+ const dark = record.tokens.dark[name] ?? "";
2234
+ const swatch = name.startsWith("--color-") ? \`<span class="swarm-badge" data-dot style="--swarm-dot: var(\${name})">\${escapeHtml(name)}</span>\` : escapeHtml(name);
2235
+ return \`<tr><td class="nowrap">\${swatch}</td><td>\${escapeHtml(light)}</td><td>\${escapeHtml(dark)}</td></tr>\`;
2236
+ })
2237
+ .join("");
2238
+ const palette = (record.chartPalette ?? [])
2239
+ .map((color: string) => \`<span class="swarm-badge" data-dot style="--swarm-dot: \${escapeHtml(color)}">\${escapeHtml(color)}</span>\`)
2240
+ .join(" ");
2241
+ return \`<!doctype html><html><head><meta charset="utf-8"><title>Design system preview</title>
2242
+ \${record.fontsHref ? \`<link href="\${escapeHtml(record.fontsHref)}" rel="stylesheet">\` : ""}</head>
2243
+ <body><main class="swarm-page">
2244
+ \${record.logo ? \`<img src="\${escapeHtml(record.logo.url)}" alt="\${escapeHtml(record.logo.alt)}" style="height:40px;width:auto">\` : ""}
2245
+ <p class="swarm-eyebrow">Design system preview · \${escapeHtml(record.source.kind)}\${record.source.ref ? \` · \${escapeHtml(record.source.ref)}\` : ""}</p>
2246
+ <h1>Every page will look like this</h1>
2247
+ <p class="swarm-lede">Base preset \${escapeHtml(record.basePreset)}, mode \${escapeHtml(record.mode)}. Nothing is saved until the requester approves it.</p>
2248
+ <div class="swarm-metrics">
2249
+ <div class="swarm-metric"><div class="swarm-metric-value">\${names.length}</div><div class="swarm-metric-label">Tokens set</div></div>
2250
+ <div class="swarm-metric" data-tone="success"><div class="swarm-metric-value">98.2%</div><div class="swarm-metric-label">Sample success rate</div></div>
2251
+ <div class="swarm-metric" data-tone="error"><div class="swarm-metric-value">3</div><div class="swarm-metric-label">Sample failures</div></div>
2252
+ </div>
2253
+ <section class="swarm-section"><h2>Components</h2>
2254
+ <p><button class="swarm-button" data-variant="primary" type="button">Primary action</button> <button class="swarm-button" type="button">Secondary</button></p>
2255
+ <p><span class="swarm-badge" data-tone="success" data-dot>Healthy</span> <span class="swarm-badge" data-tone="warning" data-dot>Degraded</span> <span class="swarm-badge" data-tone="error" data-dot>Down</span></p>
2256
+ <div class="swarm-callout">A callout reads like this. <a href="#tokens">Links use the primary color.</a></div>
2257
+ \${palette ? \`<p>Chart palette: \${palette}</p>\` : ""}
2258
+ </section>
2259
+ <section class="swarm-section" id="tokens"><h2>Tokens</h2>
2260
+ <div class="swarm-table-wrap"><table class="swarm-table"><thead><tr><th>Token</th><th>Light</th><th>Dark</th></tr></thead><tbody>\${rows || '<tr><td colspan="3">The base preset only.</td></tr>'}</tbody></table></div>
2261
+ \${ignored.length ? \`<details><summary>\${ignored.length} ignored names</summary><p>\${escapeHtml(ignored.join(", "))}</p></details>\` : ""}
2262
+ </section></main></body></html>\`;
2263
+ }
2264
+
2265
+ /** Build an org design system from a site URL, a CSS block or a preset, publish a preview page, and save it once approved. */
2266
+ export default async function designSystemSeed(args: any, ctx: any) {
2267
+ const parsed = argsSchema.safeParse(args ?? {});
2268
+ if (!parsed.success) return { error: "invalid args: " + parsed.error.message };
2269
+ const a = parsed.data;
2270
+ const inputs = [a.url, a.css, a.preset, a.pdfUrl].filter((value) => value !== undefined);
2271
+ if (inputs.length !== 1) return { error: "pass exactly one of url, css, preset or pdfUrl" };
2272
+ // shortcut: no brand-PDF extraction (taste-engine extract_brand_kit is not wired), add it when a requester sends a PDF.
2273
+ if (a.pdfUrl) return { error: "brand PDFs are not supported yet: extract the CSS variables and pass css" };
2274
+
2275
+ let css = a.css;
2276
+ let fontsHref = a.fontsHref;
2277
+ let source: any = { kind: "manual" };
2278
+ if (a.url) {
2279
+ if (!/^https?:\\/\\//i.test(a.url)) return { error: "url must be an absolute http(s) URL" };
2280
+ const site = await readSite(a.url, ctx);
2281
+ if (!site.css) return { error: \`no :root or .dark custom properties found on \${a.url}\` };
2282
+ css = site.css;
2283
+ fontsHref ??= site.fontsHref;
2284
+ source = { kind: "website", ref: a.url, extractedAt: new Date().toISOString() };
2285
+ }
2286
+ if (a.preset) source = { kind: "preset", ref: a.preset };
2287
+
2288
+ const input = {
2289
+ basePreset: a.preset ?? a.basePreset,
2290
+ ...(css ? { themeTokens: { format: "css", css } } : {}),
2291
+ ...(fontsHref ? { fontsHref } : {}),
2292
+ ...(a.logo ? { logo: a.logo } : {}),
2293
+ ...(a.mode ? { mode: a.mode } : {}),
2294
+ ...(a.chartPalette ? { chartPalette: a.chartPalette } : {}),
2295
+ source,
2296
+ };
2297
+ const checked: any = await ctx.swarm.designSystem_set({ ...input, dryRun: true });
2298
+ const draft = checked?.data ?? checked;
2299
+ if (draft?.success === false || !draft?.designSystem) return { error: draft?.message ?? "design system validation failed" };
2300
+ const record = draft.designSystem;
2301
+ const ignored: string[] = draft.ignoredTokens ?? [];
2302
+
2303
+ const page: any = await ctx.swarm.page_create({
2304
+ title: "Design system preview",
2305
+ slug: "design-system-preview",
2306
+ contentType: "text/html",
2307
+ body: previewHtml(record, ignored),
2308
+ theme: record.basePreset,
2309
+ themeTokens: { light: record.tokens.light, dark: record.tokens.dark },
2310
+ designVersion: 2,
2311
+ });
2312
+ const pageData = page?.data ?? page;
2313
+ if (a.save) await ctx.swarm.designSystem_set(input);
2314
+ return {
2315
+ saved: a.save === true,
2316
+ previewUrl: pageData?.app_url ?? null,
2317
+ previewApiUrl: pageData?.api_url ?? null,
2318
+ designSystem: record,
2319
+ ignoredTokens: ignored,
2320
+ // Pass this to design-system-set (or rerun with save: true) once the requester approves.
2321
+ saveInput: input,
2322
+ };
2323
+ }
2324
+ `;
2325
+
2165
2326
  // src/be/seed-scripts/catalog/dreaming-apply.ts
2166
2327
  var dreaming_apply_default = `import type { ScriptContext } from "swarm-sdk";
2167
2328
  import { z } from "zod";
@@ -14827,6 +14988,12 @@ var SEED_SCRIPTS = [
14827
14988
  intent: "Read the actual content of a URL without wading through raw HTML; readable-article / reader-mode extraction.",
14828
14989
  source: asText(fetch_readable_default)
14829
14990
  },
14991
+ {
14992
+ name: "design-system-seed",
14993
+ description: "Build the org design system from a site URL, a pasted CSS variable block or a preset, publish a preview page in the swarm look, and save it with save: true once the requester approves.",
14994
+ intent: "Seed or rebrand the org design system / page theme / brand colors and fonts from a website or shadcn CSS, with a preview before saving.",
14995
+ source: asText(design_system_seed_default)
14996
+ },
14830
14997
  {
14831
14998
  name: "json-query",
14832
14999
  description: "Run a jq-style path/filter query over any JSON value: dot fields, [n] indexing, [] iteration, | pipes, and keys/values/length/type functions.",
@@ -18296,12 +18463,38 @@ color literals.
18296
18463
  The API picks the preset of a designVersion 2 page in this order:
18297
18464
 
18298
18465
  1. The page's \`theme\`, when it is set.
18299
- 2. The viewer's dashboard preset, when the page opens inside the dashboard.
18300
- 3. \`hive\`.
18301
-
18302
- Then the page's \`themeTokens\` apply on top of the preset. The mode (light or
18303
- dark) always comes from the viewer. \`create_page\`, \`POST /api/pages\`, and
18304
- \`PUT /api/pages/:id\` accept both fields.
18466
+ 2. The org design system's base preset, when the org has one (see below).
18467
+ 3. The viewer's dashboard preset, when the page opens inside the dashboard.
18468
+ 4. \`hive\`.
18469
+
18470
+ Then the org design system tokens apply on top of the preset, and the page's
18471
+ \`themeTokens\` on top of those. A page with its own \`theme\` ignores the org
18472
+ design system completely: its tokens, fonts and mode lock. The mode (light or
18473
+ dark) comes from the viewer unless the design system locks it.
18474
+ \`create_page\`, \`POST /api/pages\`, and \`PUT /api/pages/:id\` accept both fields.
18475
+
18476
+ ### The org design system: ask once
18477
+
18478
+ One design system per org restyles every page without a \`theme\`. Read it with
18479
+ \`design-system-get\`. Its \`status\` is \`none\`, \`declined\`, \`active\` or \`invalid\`.
18480
+
18481
+ When \`create_page\` says the org has no design system yet, ship the page as it
18482
+ is and ask the requester once, in the same reply that hands over the page:
18483
+ "Want every page in your brand? Send a site URL, a preset name or a CSS
18484
+ variable block." Then:
18485
+
18486
+ 1. Run the \`design-system-seed\` script with one of \`url\`, \`preset\` or \`css\`
18487
+ (plus \`logo\` and \`mode\` if they gave them). It publishes a preview page and
18488
+ saves nothing.
18489
+ 2. Send the preview link. Save only after the requester says yes: run the
18490
+ script again with \`save: true\`, or call \`design-system-set\` with its
18491
+ \`saveInput\`.
18492
+ 3. If they say no, call \`design-system-set\` with \`status: "declined"\`. Nobody
18493
+ asks again.
18494
+
18495
+ Never set the design system without the requester's yes, and never ask when
18496
+ the status is \`declined\` or \`active\`. The \`design-system\` KV namespace is
18497
+ reserved: write it only through \`design-system-set\` or \`PUT /api/design-system\`.
18305
18498
 
18306
18499
  ### \`theme\`: a preset id
18307
18500
 
@@ -18399,8 +18592,8 @@ To use another font, load it from Google Fonts in your page \`<head>\`. Then set
18399
18592
 
18400
18593
  ## Dark mode
18401
18594
 
18402
- Inside the dashboard, a designVersion 2 page follows the viewer's mode. In dark
18403
- mode, the injected head adds the \`dark\` class to \`<html>\`, and the tokens
18595
+ Inside the dashboard, a designVersion 2 page follows the viewer's mode, unless
18596
+ the org design system locks \`mode\` to \`light\` or \`dark\`. In dark mode, the injected head adds the \`dark\` class to \`<html>\`, and the tokens
18404
18597
  switch to their dark values. A page built on tokens needs no extra dark-mode
18405
18598
  code.
18406
18599
 
@@ -20676,12 +20869,15 @@ Fetch the page as markdown: \`curl -fsSL https://docs.agent-swarm.dev/llms.mdx/d
20676
20869
  - [Customer commitment tracking](https://docs.agent-swarm.dev/docs/guides/customer-commitment-tracking). Reference.
20677
20870
  - [Reviewing a potential customer service-level breach with AI agents](https://docs.agent-swarm.dev/docs/guides/service-level-breach-review). Reference.
20678
20871
  - [Reviewing supplier invoice and purchase order discrepancies with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-invoice-discrepancy-review). Reference.
20872
+ - [Reviewing purchase order and supplier confirmation differences with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-order-confirmation-review). Reference.
20679
20873
  - [Reviewing marketplace partner payout discrepancies with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-payout-exception-review). Reference.
20680
20874
  - [Preparing marketplace moderation appeals for human review with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-moderation-appeals). Reference.
20681
20875
  - [Reviewing customer billing disputes with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-billing-dispute-review). Reference.
20876
+ - [Preparing unmatched bank transactions for finance review with AI agents](https://docs.agent-swarm.dev/docs/guides/agent-assisted-bank-reconciliation-review). Reference.
20682
20877
  - [Reviewing a proposed customer pricing change with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-pricing-change-review). Reference.
20683
20878
  - [Escalating a customer support issue to engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-support-escalation-handoff). Reference.
20684
20879
  - [Reviewing inconsistent product listings across sales channels with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-catalog-discrepancy-review). Reference.
20880
+ - [Investigating a stale partner data feed with AI agents](https://docs.agent-swarm.dev/docs/guides/partner-data-feed-freshness-review). Reference.
20685
20881
  - [Reviewing marketplace partner launch readiness with AI agents](https://docs.agent-swarm.dev/docs/guides/partner-onboarding-readiness). Reference.
20686
20882
  - [Preparing a digital asset license review for a human rights owner with AI agents](https://docs.agent-swarm.dev/docs/guides/digital-content-license-rights-review). Reference.
20687
20883
  - [Handing off inventory discrepancies from operations to purchasing with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-inventory-exception-handoff). Reference.
@@ -20689,9 +20885,11 @@ Fetch the page as markdown: \`curl -fsSL https://docs.agent-swarm.dev/llms.mdx/d
20689
20885
  - [Preparing a disputed product return for a human decision with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-returns-exception-handoff). Reference.
20690
20886
  - [Reviewing a supplier's security evidence before onboarding with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-security-evidence-review). Reference.
20691
20887
  - [Coordinating a customer data access request across support, privacy and engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/privacy-data-request-handoff). Reference.
20888
+ - [Coordinating a guest accessibility request between guest support and property operations with AI agents](https://docs.agent-swarm.dev/docs/guides/guest-accessibility-request-handoff). Reference.
20692
20889
  - [Reviewing supplier performance across delivery, quality and service records with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-performance-review). Reference.
20693
20890
  - [Reviewing a supplier ingredient specification change with AI agents](https://docs.agent-swarm.dev/docs/guides/food-supplier-ingredient-change-review). Reference.
20694
20891
  - [Preparing a bid or no-bid review for an incoming RFP with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-rfp-bid-qualification). Reference.
20892
+ - [Preparing contractor credential expiry checks for human review with AI agents](https://docs.agent-swarm.dev/docs/guides/contractor-license-expiry-review). Reference.
20695
20893
  - [Coordinating a departing employee's access review across HR and IT with AI agents](https://docs.agent-swarm.dev/docs/guides/employee-offboarding-access-review). Reference.
20696
20894
  - [Briefing sales and leadership on competitor changes with AI agents](https://docs.agent-swarm.dev/docs/guides/competitor-change-brief). Reference.
20697
20895
  - [Deployment Guide](https://docs.agent-swarm.dev/docs/guides/deployment). When: Someone wants to run Agent Swarm on their own server with Docker Compose.
@@ -22421,7 +22619,7 @@ Afterwards, a \`warnings\` entry on \`create-workflow\` or a patch tool means th
22421
22619
  }
22422
22620
  \`\`\`
22423
22621
 
22424
- - \`provider\` is optional. Set it when the requester explicitly selects a provider, using the same literal verified by the ping. Omit it only when inheriting configuration to follow \`SYSTEM_ONE_DEFAULT_PROVIDER\` at run time (global config row, then environment, then \`typesafe\`). An explicit provider is \`typesafe\`, \`openrouter\`, \`laya\`, \`openai\`, or \`cloudflare\`, and must be a literal, not a \`{{token}}\`. \`model\` is that provider's own id (\`jev-1.13.0\` on \`typesafe\`, \`typesafe/jev-1.13\` on \`openrouter\`, a checkpoint name such as \`multilingual\` on \`laya\`); \`gpt-6-luna\` on \`openai\`, \`clef\` (default) or \`clef-flash\` on \`cloudflare\`, which accepts no other id; leave it unset for the provider's default. \`laya\` has no default and sends no \`model\`, because it silently ignores one it does not know: leave it unset unless you mean a specific checkpoint. Every provider returns the same output; \`openai\` gets a translated request, and an OpenAI refusal of any question fails the step. \`cloudflare\` takes at most 64 questions. There is no fallback between them. Never use OpenRouter's \`typesafe/jev-router\`, which is a chat router that hands the request to another model.
22622
+ - \`provider\` is optional. Set it when the requester explicitly selects a provider, using the same literal verified by the ping. Omit it only when inheriting configuration to follow \`SYSTEM_ONE_DEFAULT_PROVIDER\` at run time (global config row, then environment, then \`typesafe\`). An explicit provider is \`typesafe\`, \`openrouter\`, \`laya\`, \`openai\`, or \`cloudflare\`, and must be a literal, not a \`{{token}}\`. \`model\` is that provider's own id (\`jev-1.13.0\` on \`typesafe\`, \`typesafe/jev-1.13\` on \`openrouter\`, a checkpoint name such as \`multilingual\` on \`laya\`; another maker's decision model on \`openrouter\`, such as \`~perplexity/pplx-decider-latest\` or \`google/gemini-decision-1\`); \`gpt-6-luna\` on \`openai\`, \`clef\` (default) or \`clef-flash\` on \`cloudflare\`, which accepts no other id; leave it unset for the provider's default. \`laya\` has no default and sends no \`model\`, because it silently ignores one it does not know: leave it unset unless you mean a specific checkpoint. Every provider returns the same output; \`openai\` gets a translated request, and an OpenAI refusal of any question fails the step. \`cloudflare\` takes at most 64 questions. There is no fallback between them. Never use OpenRouter's \`typesafe/jev-router\`, which is a chat router that hands the request to another model.
22425
22623
  - \`state\` is required: text, a string array, or a JSON object. An exact \`{{token}}\` keeps the upstream JSON type. Every question in one call shares the state and cannot see the other answers, so a dependent judgment needs its own node.
22426
22624
  - Each question is \`noul\` (probability that a claim is true; optional \`criteria: { true, false }\`), \`choice\` (2 to 255 options; \`criteria: { option: description }\`), or \`score\` (2 to 10 ordered levels; \`criteria: [level, ...]\`).
22427
22625
  - \`returns\` repeats every question id and its type. A mismatch is rejected when the workflow is saved.
@@ -0,0 +1,39 @@
1
+ import"./cli-ns59dc6r.js";
2
+ import {
3
+ parseHeartbeatIntervalMs2,
4
+ startHeartbeat2,
5
+ stopHeartbeat2
6
+ } from "./cli-944w9wb4.js";
7
+ import"./cli-ea7nz50q.js";
8
+ import"./cli-p436yrzp.js";
9
+ import"./cli-904wk98s.js";
10
+ import"./cli-4fpa0zns.js";
11
+ import"./cli-93n305hm.js";
12
+ import"./cli-gse7bp3z.js";
13
+ import"./cli-jyhbvdga.js";
14
+ import"./cli-tr19nyn9.js";
15
+ import"./cli-zhwjdhjr.js";
16
+ import"./cli-y260hgep.js";
17
+ import"./cli-gtj12v95.js";
18
+ import"./cli-9ah37a8a.js";
19
+ import"./cli-0p76my9q.js";
20
+ import"./cli-d5pc8ep0.js";
21
+ import"./cli-404am6f3.js";
22
+ import"./cli-29h5239w.js";
23
+ import"./cli-rmgvwcmy.js";
24
+ import"./cli-qzz6tz8s.js";
25
+ import"./cli-7gbff32z.js";
26
+ import"./cli-r8ddn0hf.js";
27
+ import"./cli-b0m3bg0f.js";
28
+ import"./cli-vr4eyq6p.js";
29
+ import"./cli-pz1dp12c.js";
30
+ import"./cli-ybte1fqc.js";
31
+ import"./cli-ysv0k1we.js";
32
+ import"./cli-x2cem5vy.js";
33
+ import"./cli-kj84fqxz.js";
34
+ import"./cli-ts5yv7dn.js";
35
+ export {
36
+ parseHeartbeatIntervalMs2 as parseHeartbeatIntervalMs,
37
+ startHeartbeat2 as startHeartbeat,
38
+ stopHeartbeat2 as stopHeartbeat
39
+ };
@@ -21,7 +21,7 @@ import {
21
21
  require_scala,
22
22
  require_swift,
23
23
  require_typescript
24
- } from "./cli-55fqpd9q.js";
24
+ } from "./cli-jzerrzgc.js";
25
25
  import {
26
26
  __commonJS
27
27
  } from "./cli-242037k3.js";
@@ -0,0 +1,44 @@
1
+ import {
2
+ getExecutorRegistry2,
3
+ initWorkflows2,
4
+ init_workflows
5
+ } from "./cli-904wk98s.js";
6
+ import"./cli-4fpa0zns.js";
7
+ import"./cli-93n305hm.js";
8
+ import"./cli-gse7bp3z.js";
9
+ import"./cli-jyhbvdga.js";
10
+ import"./cli-tr19nyn9.js";
11
+ import"./cli-zhwjdhjr.js";
12
+ import"./cli-y260hgep.js";
13
+ import"./cli-gtj12v95.js";
14
+ import {
15
+ retryFailedRun2,
16
+ cancelWorkflowRun2
17
+ } from "./cli-9ah37a8a.js";
18
+ import {
19
+ startWorkflowExecution2
20
+ } from "./cli-0p76my9q.js";
21
+ import"./cli-d5pc8ep0.js";
22
+ import"./cli-404am6f3.js";
23
+ import"./cli-29h5239w.js";
24
+ import"./cli-rmgvwcmy.js";
25
+ import"./cli-qzz6tz8s.js";
26
+ import"./cli-7gbff32z.js";
27
+ import"./cli-r8ddn0hf.js";
28
+ import"./cli-b0m3bg0f.js";
29
+ import"./cli-vr4eyq6p.js";
30
+ import"./cli-pz1dp12c.js";
31
+ import"./cli-ybte1fqc.js";
32
+ import"./cli-ysv0k1we.js";
33
+ import"./cli-x2cem5vy.js";
34
+ import"./cli-kj84fqxz.js";
35
+ import"./cli-ts5yv7dn.js";
36
+ init_workflows();
37
+
38
+ export {
39
+ cancelWorkflowRun2 as cancelWorkflowRun,
40
+ getExecutorRegistry2 as getExecutorRegistry,
41
+ initWorkflows2 as initWorkflows,
42
+ retryFailedRun2 as retryFailedRun,
43
+ startWorkflowExecution2 as startWorkflowExecution
44
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  redactWithEnv,
3
3
  init_env2
4
- } from "./cli-d2epqm0y.js";
4
+ } from "./cli-kezzteka.js";
5
5
  import {
6
6
  WORKSPACE_MOUNT_PATH,
7
7
  RUNTIME_LABELS,
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  scrubSecrets,
13
13
  init_secret_scrubber
14
- } from "./cli-fp65jdp2.js";
14
+ } from "./cli-1kvcsd2f.js";
15
15
  import {
16
16
  __esm
17
17
  } from "./cli-242037k3.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  listKeepAliveAuthorizations,
3
3
  init_oauth
4
- } from "./cli-e4gx499y.js";
4
+ } from "./cli-ts5yv7dn.js";
5
5
  import {
6
6
  ensureAuthorizationTokenOrThrow,
7
7
  init_ensure_token
8
- } from "./cli-8sayvj48.js";
9
- import"./cli-gkjw33x5.js";
8
+ } from "./cli-jyhbvdga.js";
9
+ import"./cli-ysv0k1we.js";
10
10
  import {
11
11
  scrubSecrets,
12
12
  init_secret_scrubber
13
- } from "./cli-fp65jdp2.js";
13
+ } from "./cli-1kvcsd2f.js";
14
14
 
15
15
  // src/oauth/keepalive.ts
16
16
  init_oauth();
@@ -60,7 +60,7 @@ async function notifySlack(text) {
60
60
  return;
61
61
  }
62
62
  try {
63
- const { getSlackApp } = await import("./app-b267ggx1.js");
63
+ const { getSlackApp } = await import("./app-tmwa442h.js");
64
64
  const app = getSlackApp();
65
65
  if (!app) {
66
66
  console.warn("[OAuth Keepalive] Slack not available, cannot send notification");