@desplega.ai/agent-swarm 2.7.6 → 2.7.8

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 (361) hide show
  1. package/dist/{acp-adapter-bp91d37f.js → acp-adapter-vg5hqkvj.js} +6 -5
  2. package/dist/{actions-yj0eeaqh.js → actions-4m1ct4nh.js} +18 -18
  3. package/dist/{amp-adapter-4pg9h34q.js → amp-adapter-txqh7eqj.js} +2 -2
  4. package/dist/{anthropic-messages-x4q6rfq5.js → anthropic-messages-xey2skwx.js} +7 -7
  5. package/dist/{app-909e97cr.js → app-e00m45gn.js} +3 -3
  6. package/dist/{assistant-qdyb5fyy.js → assistant-gd08kr9e.js} +20 -20
  7. package/dist/{azure-openai-responses-s1w5n70z.js → azure-openai-responses-26t7j9ra.js} +5 -5
  8. package/dist/boot-args-schema-tjrkpbvm.js +89 -0
  9. package/dist/{boot-reembed-fk0s9z18.js → boot-reembed-21hbck22.js} +1 -1
  10. package/dist/{boot-reembed-gs1rzrnh.js → boot-reembed-mdxd3wgp.js} +1 -1
  11. package/dist/{boot-scrub-sweep-4qfd4kfx.js → boot-scrub-sweep-qy0zr9t2.js} +3 -3
  12. package/dist/{boot-seeds-yr00k13d.js → boot-seeds-n46eaxdv.js} +4 -4
  13. package/dist/{boxd-vdmfssd9.js → boxd-nv507va8.js} +1 -1
  14. package/dist/{claude-adapter-qta1f1xn.js → claude-adapter-j37w2eds.js} +6 -5
  15. package/dist/{claude-managed-adapter-dvs2xw5n.js → claude-managed-adapter-8jvcma9a.js} +3 -3
  16. package/dist/{claude-managed-setup-sc6j4dm0.js → claude-managed-setup-rzkjmgc1.js} +3 -3
  17. package/dist/{claude-sdk-session-zgrz6yvc.js → claude-sdk-session-4k7w73t0.js} +8290 -8226
  18. package/dist/{cli-w6dt9ged.js → cli-0ykgn1h5.js} +1 -1
  19. package/dist/{cli-89knwags.js → cli-1cxrbkk6.js} +2 -2
  20. package/dist/{cli-drr5v6av.js → cli-269q28a1.js} +4 -2
  21. package/dist/{cli-es6va8jk.js → cli-32m9eda8.js} +60 -53
  22. package/dist/{cli-q0k1w5zd.js → cli-3e4snnzf.js} +1 -1
  23. package/dist/{cli-dxae2yg7.js → cli-4t50yq3j.js} +2 -2
  24. package/dist/{cli-nhrvpaj7.js → cli-5j0m12ns.js} +520 -7
  25. package/dist/{cli-dhar9qay.js → cli-5ja3b75e.js} +2 -2
  26. package/dist/{cli-gdhpcbhf.js → cli-66ww7fer.js} +1 -1
  27. package/dist/{cli-bsn8nhrq.js → cli-6vcp76qk.js} +3 -3
  28. package/dist/{cli-8bc1w0tw.js → cli-7axf41jq.js} +29 -16
  29. package/dist/cli-82j36f2m.js +45 -0
  30. package/dist/{cli-svj5090z.js → cli-84rj785g.js} +5 -5
  31. package/dist/{cli-pd7vagab.js → cli-85gzce7b.js} +5 -5
  32. package/dist/{cli-xnrwazav.js → cli-8h0ayw8c.js} +1 -1
  33. package/dist/cli-8rpcng8j.js +67 -0
  34. package/dist/{cli-shpbx5ee.js → cli-8sdejs1f.js} +1728 -72
  35. package/dist/{cli-yx4kfngt.js → cli-9m8hdawy.js} +30 -17
  36. package/dist/{cli-436532ck.js → cli-ae0dnfee.js} +166 -154
  37. package/dist/{cli-bqt1mptt.js → cli-az48n0nr.js} +4 -4
  38. package/dist/{cli-386tyxxg.js → cli-bb0mmdk8.js} +2 -2
  39. package/dist/{cli-yy3rhsdw.js → cli-bbw9wj9m.js} +8 -8
  40. package/dist/{cli-xds5f77d.js → cli-bshb7jas.js} +2 -2
  41. package/dist/{cli-wp9sp1qb.js → cli-btfsp3mv.js} +3 -3
  42. package/dist/{cli-4zsenjhy.js → cli-c0kqky8y.js} +16 -3
  43. package/dist/{cli-a7v854rf.js → cli-dq8x79v8.js} +264 -13
  44. package/dist/{cli-ftyxyspd.js → cli-eqtfgfr6.js} +1 -1
  45. package/dist/{cli-yn4kxs06.js → cli-eyg1pa00.js} +4 -4
  46. package/dist/{cli-71ptav7x.js → cli-ferkkrg9.js} +1 -1
  47. package/dist/{cli-vpf89f34.js → cli-fmjd0t1y.js} +3 -3
  48. package/dist/{cli-4necwtsv.js → cli-fyhr5h4s.js} +38 -16
  49. package/dist/{cli-xnqgpshy.js → cli-fzachfnf.js} +1 -1
  50. package/dist/{cli-ehq736cn.js → cli-g7s47cc5.js} +4 -4
  51. package/dist/{cli-0qatpy8q.js → cli-ga786dzg.js} +34 -11
  52. package/dist/{cli-bjb3z51z.js → cli-gazw7kpa.js} +2 -2
  53. package/dist/{cli-54t00gt8.js → cli-gvx71kqv.js} +2 -2
  54. package/dist/{cli-c60vetmm.js → cli-jdv6ypxs.js} +1 -1
  55. package/dist/{cli-611a1294.js → cli-k0wwfqbg.js} +18 -1
  56. package/dist/{cli-cm5yqn35.js → cli-kf3pxxdg.js} +1 -0
  57. package/dist/{cli-0at8w34w.js → cli-kyr67fgx.js} +8 -8
  58. package/dist/{cli-vvpx3gsx.js → cli-m0hmeqma.js} +2 -2
  59. package/dist/{cli-he9wchme.js → cli-mkk9rnzz.js} +4 -4
  60. package/dist/{cli-e3r2neck.js → cli-msg9m2ny.js} +7 -5
  61. package/dist/{cli-m48g6p95.js → cli-nbsf8yvn.js} +15 -3
  62. package/dist/{cli-tfyyvzx6.js → cli-njwac61j.js} +5 -0
  63. package/dist/{cli-faxe6thg.js → cli-nn3ysbqk.js} +186 -54
  64. package/dist/{cli-decfb6v8.js → cli-p3vsj0d3.js} +24 -10
  65. package/dist/{cli-ekwks2vs.js → cli-ppjxh6ah.js} +3 -3
  66. package/dist/{cli-aa6yxc7m.js → cli-pz4rk021.js} +1 -1
  67. package/dist/{cli-nwj0ee2w.js → cli-q4ebh7h7.js} +4 -4
  68. package/dist/{cli-75gkpjvw.js → cli-qd57hhhh.js} +2 -2
  69. package/dist/{cli-zbbwez0r.js → cli-rjknb2ae.js} +4 -4
  70. package/dist/{cli-hgaazk69.js → cli-s4ss5g59.js} +5 -5
  71. package/dist/{cli-1h3wcpbw.js → cli-snpj5zbj.js} +2 -2
  72. package/dist/{cli-3ypk9vk1.js → cli-sq4n7af4.js} +1 -1
  73. package/dist/{cli-vfym7wmz.js → cli-ssnjfg5p.js} +5 -5
  74. package/dist/{cli-8snvgs5r.js → cli-t60ajbbp.js} +10 -10
  75. package/dist/{cli-hr2e2fft.js → cli-tpksw2nr.js} +22 -18
  76. package/dist/{cli-k2gzwsj2.js → cli-w4xnbm46.js} +300 -74
  77. package/dist/{cli-p5gp8pcx.js → cli-wemma3jd.js} +8 -7
  78. package/dist/{cli-70r77n04.js → cli-xae4g51r.js} +1 -1
  79. package/dist/{cli-waqbxg08.js → cli-xq9r2wtt.js} +50 -26
  80. package/dist/{cli-zm72anhg.js → cli-xr8908my.js} +11 -11
  81. package/dist/{cli-73jzwksr.js → cli-ycscb2ar.js} +4 -1
  82. package/dist/{cli-kqdg1bsb.js → cli-yndmfxb3.js} +2 -2
  83. package/dist/{cli-0yv5z2pg.js → cli-yqefz277.js} +1 -1
  84. package/dist/{cli-rmmmrjkd.js → cli-z1srzaf6.js} +11 -3
  85. package/dist/{cli-xbbndvjy.js → cli-z75yxkjh.js} +3 -3
  86. package/dist/{cli-jm2vfpfd.js → cli-zkky4t5g.js} +1 -1
  87. package/dist/cli.js +24 -22
  88. package/dist/{cloudflare-workers-ai-system-one-bm60fjm0.js → cloudflare-workers-ai-system-one-ef2a980q.js} +2 -2
  89. package/dist/{codex-adapter-ayd1fb6h.js → codex-adapter-88z6psm4.js} +5 -4
  90. package/dist/{codex-hook-9efm2x1m.js → codex-hook-fac6175r.js} +2 -2
  91. package/dist/{codex-login-y0pmff1c.js → codex-login-74wa4hmq.js} +1 -1
  92. package/dist/{codex-session-runner-jesa32xc.js → codex-session-runner-zwbcwzvx.js} +5 -4
  93. package/dist/{commands-hanewgf2.js → commands-7amxs716.js} +3 -3
  94. package/dist/{controller-dt1n3c1q.js → controller-5rkkc37m.js} +3 -3
  95. package/dist/{controllers-connect-xx8x64n5.js → controllers-connect-m7d4vxxb.js} +19 -19
  96. package/dist/{cursor-adapter-9s4dwwdw.js → cursor-adapter-x1q18693.js} +1 -1
  97. package/dist/{db-9dv0g1ab.js → db-athc68zt.js} +6 -2
  98. package/dist/{db-3vttcbv4.js → db-h2fsfve3.js} +3 -3
  99. package/dist/{dispatcher-tx9hd1sv.js → dispatcher-b1yz2bnn.js} +17 -17
  100. package/dist/{dsh-adapter-007y4ejs.js → dsh-adapter-e33bkxq9.js} +1 -1
  101. package/dist/{e2b-we6hs6q5.js → e2b-fr12yccx.js} +1 -1
  102. package/dist/{e2b-a19d28rz.js → e2b-x6ywzak3.js} +1 -1
  103. package/dist/{easter-egg-3d-rgbrqb8s.js → easter-egg-3d-pv5qnzc8.js} +1 -1
  104. package/dist/{embedding-space-ny1e2940.js → embedding-space-b4txbwrk.js} +6 -6
  105. package/dist/{embeddings-2t386t13.js → embeddings-m6zn6tad.js} +1 -1
  106. package/dist/{execute-pksh0ceh.js → execute-68nwny8m.js} +1 -1
  107. package/dist/{external-channel-phgmhmd7.js → external-channel-gkckmhzh.js} +2 -2
  108. package/dist/{fx-adapter-fy8rr921.js → fx-adapter-m5jbgd5q.js} +7 -6
  109. package/dist/{google-generative-ai-8y3m3k4b.js → google-generative-ai-v94hr7h0.js} +5 -5
  110. package/dist/{google-vertex-w3v98n7b.js → google-vertex-g7vr6cf8.js} +5 -5
  111. package/dist/{grok-adapter-q0abvpaj.js → grok-adapter-csvv7sac.js} +7 -6
  112. package/dist/handlers-8x5gfbzx.js +32 -0
  113. package/dist/{heartbeat-kadyek8p.js → heartbeat-6c2y3267.js} +20 -20
  114. package/dist/{hook-5zs3msf6.js → hook-q5fv0jy2.js} +25 -10
  115. package/dist/{hook-9k551xnj.js → hook-w0q2wcrv.js} +5 -4
  116. package/dist/{http-mhz9vw1f.js → http-bxat8dg3.js} +1242 -250
  117. package/dist/{index-rvr00sg7.js → index-bxrexmfy.js} +1020 -577
  118. package/dist/{index-vdygbq10.js → index-cqhqpgrv.js} +1 -1
  119. package/dist/{index-q361cg2f.js → index-fm0czesf.js} +1 -1
  120. package/dist/index-hpfte8jd.js +33 -0
  121. package/dist/index-ncf7yb5s.js +30 -0
  122. package/dist/index-vte6dyeh.js +37 -0
  123. package/dist/{keepalive-w56f32cg.js → keepalive-qnt21cv0.js} +3 -3
  124. package/dist/lead-4bvftzm6.js +71 -0
  125. package/dist/{maintenance-7mdgxcea.js → maintenance-btdr68y4.js} +1 -1
  126. package/dist/{mistral-conversations-4pmwj1c0.js → mistral-conversations-3gjpdb4b.js} +4 -4
  127. package/dist/{oauth-refresh-sweep-29txy9vk.js → oauth-refresh-sweep-vczabeh4.js} +2 -2
  128. package/dist/{onboard-kpsrkarj.js → onboard-k33ezyq8.js} +3 -3
  129. package/dist/{openai-codex-responses-44j573nm.js → openai-codex-responses-8pbxq9h5.js} +5 -5
  130. package/dist/{openai-completions-a4gee2a8.js → openai-completions-rm00s912.js} +4 -4
  131. package/dist/{openai-decisions-w4qkrcar.js → openai-decisions-8v957r2r.js} +1 -1
  132. package/dist/{openai-responses-rbp6h5kr.js → openai-responses-agxpf96k.js} +5 -5
  133. package/dist/{opencode-adapter-j25vm3rr.js → opencode-adapter-3dst2ka7.js} +5 -4
  134. package/dist/{otel-impl-6kkct7a8.js → otel-impl-13am7a65.js} +4 -4
  135. package/dist/{pi-mono-adapter-exhkzhn2.js → pi-mono-adapter-c53de1gd.js} +16 -9
  136. package/dist/{pricing-refresh-n2x7jh6k.js → pricing-refresh-9fcbnq3f.js} +3 -3
  137. package/dist/{rbac-roles-b5htkjby.js → rbac-roles-66j5h4y5.js} +5 -3
  138. package/dist/{rbac-roles-81ypx6es.js → rbac-roles-gw0p9h3j.js} +2 -2
  139. package/dist/{render-v2-qn6jmpk4.js → render-v2-fg8bmdn4.js} +3 -3
  140. package/dist/{resume-wd30wx23.js → resume-1c8kr3nh.js} +6 -6
  141. package/dist/{runtime-4hsg7h60.js → runtime-tzf9j7tc.js} +1 -1
  142. package/dist/{session-access-5qvfevhk.js → session-access-d0atq10j.js} +7 -5
  143. package/dist/{session-source-backfill-n1czavbr.js → session-source-backfill-0vscqmsa.js} +2 -2
  144. package/dist/{setup-dnb56qy5.js → setup-tvfa7rwe.js} +1 -1
  145. package/dist/{typesafe-system-one-5mavm259.js → typesafe-system-one-0bmqcxfg.js} +2 -2
  146. package/dist/{virtual-modules-76xxv9fs.js → virtual-modules-efxcp740.js} +5 -5
  147. package/dist/{work-objects-4n21tfkm.js → work-objects-ks71xqeb.js} +20 -20
  148. package/dist/worker-e7v2bvm9.js +71 -0
  149. package/dist/{worker-follow-up-77hvzxww.js → worker-follow-up-bfx0h9hg.js} +17 -17
  150. package/openapi.json +300 -27
  151. package/package.json +7 -5
  152. package/src/apps/definition.ts +6 -5
  153. package/src/be/db/model-profiles.ts +1 -1
  154. package/src/be/db/page-theme-tokens.ts +12 -0
  155. package/src/be/db/session-tree.ts +9 -5
  156. package/src/be/db/session-visibility.ts +25 -9
  157. package/src/be/db/tasks/read.ts +20 -7
  158. package/src/be/db/tasks/write.ts +96 -7
  159. package/src/be/db-client.ts +107 -7
  160. package/src/be/db-queries/tracker.ts +4 -2
  161. package/src/be/db.ts +83 -19
  162. package/src/be/migrations/269_pages_design_system.sql +23 -0
  163. package/src/be/migrations/271_subscription_usage_model.sql +30 -0
  164. package/src/be/model-validation.ts +19 -1
  165. package/src/be/rbac-roles.ts +21 -0
  166. package/src/be/runtime-pools/routing.ts +1 -1
  167. package/src/be/scripts/boot-args-schema.ts +95 -0
  168. package/src/be/scripts/extract-schema.ts +15 -10
  169. package/src/be/seed/schedules-seeder.ts +0 -10
  170. package/src/be/seed-scripts/catalog/boot-triage.inline.ts +1 -1
  171. package/src/be/seed-scripts/catalog/boot-triage.ts +1 -1
  172. package/src/be/seed-scripts/catalog/catalog-report.inline.ts +2 -0
  173. package/src/be/seed-scripts/catalog/catalog-report.ts +2 -0
  174. package/src/be/seed-scripts/catalog/get-child-outputs.ts +1 -1
  175. package/src/be/seed-scripts/catalog/memory-eval.ts +2 -0
  176. package/src/be/seed-scripts/catalog/swarm-update-check.ts +150 -0
  177. package/src/be/seed-scripts/catalog/wait-for-task.ts +1 -1
  178. package/src/be/seed-scripts/index.ts +9 -0
  179. package/src/be/seed-skills/bundled-files.generated.json +3 -3
  180. package/src/be/swarm-config-guard.ts +39 -0
  181. package/src/be/task-auto-title-listener.ts +127 -0
  182. package/src/be/users.ts +6 -4
  183. package/src/commands/claude-managed-setup.ts +1 -1
  184. package/src/commands/onboard/agent-fs-version.ts +1 -1
  185. package/src/commands/profile-sync.ts +151 -16
  186. package/src/commands/runner.ts +41 -16
  187. package/src/extensions/contract-types.generated.ts +1 -1
  188. package/src/hooks/hook.ts +20 -9
  189. package/src/http/agents.ts +7 -1
  190. package/src/http/approval-requests.ts +30 -6
  191. package/src/http/codex-oauth-device.ts +2 -2
  192. package/src/http/index.ts +11 -0
  193. package/src/http/mcp-oauth.ts +6 -0
  194. package/src/http/mcp-servers.ts +8 -0
  195. package/src/http/models-catalog.ts +1 -1
  196. package/src/http/pages-public.ts +131 -130
  197. package/src/http/pages.ts +94 -21
  198. package/src/http/poll.ts +3 -4
  199. package/src/http/prompt-templates.ts +1 -1
  200. package/src/http/schedules.ts +4 -0
  201. package/src/http/script-runs.ts +6 -1
  202. package/src/http/session-access.ts +61 -6
  203. package/src/http/sessions.ts +23 -7
  204. package/src/http/tasks.ts +53 -9
  205. package/src/http/users.ts +30 -1
  206. package/src/http/utils.ts +2 -1
  207. package/src/http/workflows.ts +11 -7
  208. package/src/pages/browser-sdk.ts +48 -21
  209. package/src/pages/color-literals.ts +115 -0
  210. package/src/pages/page-head.ts +766 -0
  211. package/src/pages/version.ts +3 -0
  212. package/src/prompts/session-templates.ts +1 -0
  213. package/src/providers/acp-targets.ts +1 -1
  214. package/src/providers/amp-adapter.ts +1 -1
  215. package/src/providers/codex-adapter.ts +10 -2
  216. package/src/providers/codex-app-server.ts +27 -1
  217. package/src/providers/codex-oauth/device.ts +49 -15
  218. package/src/providers/codex-oauth/flow.ts +2 -1
  219. package/src/providers/pi-mono-adapter.ts +8 -0
  220. package/src/providers/pi-mono-extension.ts +30 -15
  221. package/src/providers/pricing-sources.md +16 -1
  222. package/src/providers/swarm-events-shared.ts +15 -2
  223. package/src/rbac/legacy-policy.ts +1 -0
  224. package/src/rbac/permissions.ts +5 -0
  225. package/src/scheduler/deferred-task-waits.ts +9 -4
  226. package/src/scripts-runtime/extract-args-schema.ts +3 -1
  227. package/src/scripts-runtime/swarm-sdk.ts +1 -1
  228. package/src/scripts-runtime/types/swarm-extension.d.ts +29 -28
  229. package/src/server-user.ts +1 -1
  230. package/src/slack/ack.ts +48 -12
  231. package/src/slack/blocks.ts +1 -0
  232. package/src/slack/reaction-shortcode.ts +8 -2
  233. package/src/slack/render-v2.ts +30 -3
  234. package/src/slack/task-output.ts +4 -1
  235. package/src/slack/thread-buffer.ts +2 -2
  236. package/src/tasks/follow-up-gate.ts +318 -0
  237. package/src/tasks/task-skip.ts +28 -0
  238. package/src/tasks/terminal-result-guard.ts +3 -2
  239. package/src/tasks/worker-follow-up.ts +21 -1
  240. package/src/telemetry.ts +28 -1
  241. package/src/tests/agentmail-inbox-mapping.test.ts +73 -0
  242. package/src/tests/approval-requests.test.ts +58 -0
  243. package/src/tests/claude-managed-setup.test.ts +36 -0
  244. package/src/tests/codex-adapter.test.ts +2 -2
  245. package/src/tests/codex-app-server.test.ts +59 -0
  246. package/src/tests/codex-gateway-route.test.ts +50 -1
  247. package/src/tests/codex-oauth-device.test.ts +60 -0
  248. package/src/tests/codex-swarm-events.test.ts +43 -1
  249. package/src/tests/context-window.test.ts +14 -0
  250. package/src/tests/create-page-tool.test.ts +501 -0
  251. package/src/tests/db-client-busy-retry.test.ts +81 -0
  252. package/src/tests/db-queries-tracker.test.ts +2 -1
  253. package/src/tests/db-task-read-contract.test.ts +2 -0
  254. package/src/tests/db-task-write-contract.test.ts +4 -0
  255. package/src/tests/db-tasks-read.test.ts +21 -0
  256. package/src/tests/deferred-task-wake.test.ts +7 -2
  257. package/src/tests/e2e-coverage-contract.test.ts +235 -0
  258. package/src/tests/empty-output-schema.test.ts +160 -0
  259. package/src/tests/env-flag.test.ts +1 -0
  260. package/src/tests/explicit-model-validation.test.ts +14 -0
  261. package/src/tests/fixtures/pages/head-v1.html +56 -0
  262. package/src/tests/follow-up-gate-shadow.test.ts +513 -0
  263. package/src/tests/http-api-integration.test.ts +2 -2
  264. package/src/tests/http-users.test.ts +63 -0
  265. package/src/tests/identity-field-budget.test.ts +1 -1
  266. package/src/tests/internal-ai/credentials.test.ts +62 -0
  267. package/src/tests/internal-ai/task-title.test.ts +283 -0
  268. package/src/tests/mcp-input-caps.test.ts +4 -3
  269. package/src/tests/merge-gate-detect-changes.test.ts +167 -0
  270. package/src/tests/page-proxy.test.ts +1 -1
  271. package/src/tests/page-session-dev-cookie.test.ts +188 -0
  272. package/src/tests/pages-authed-mode.test.ts +13 -2
  273. package/src/tests/pages-frame-ancestors.test.ts +28 -1
  274. package/src/tests/pages-head-v2.test.ts +534 -0
  275. package/src/tests/pages-http.test.ts +330 -0
  276. package/src/tests/pages-public-html.test.ts +43 -0
  277. package/src/tests/pages-storage.test.ts +182 -0
  278. package/src/tests/pages-versioning.test.ts +72 -0
  279. package/src/tests/pi-mono-adapter.test.ts +39 -4
  280. package/src/tests/profile-sync-stale-writeback.test.ts +334 -0
  281. package/src/tests/profile-sync.test.ts +11 -15
  282. package/src/tests/rbac-engine.test.ts +1 -0
  283. package/src/tests/runner-context-usage.test.ts +119 -0
  284. package/src/tests/scheduled-task-required-params-migration.test.ts +3 -1
  285. package/src/tests/script-connections.test.ts +4 -0
  286. package/src/tests/script-executor-quickjs.test.ts +2 -0
  287. package/src/tests/script-runs-http.test.ts +57 -0
  288. package/src/tests/scripts-boot-args-schema.test.ts +181 -0
  289. package/src/tests/scripts-runtime.test.ts +24 -0
  290. package/src/tests/sdk-store-progress-skipped.test.ts +155 -0
  291. package/src/tests/seed-registry.test.ts +28 -6
  292. package/src/tests/seed-schedules.test.ts +61 -8
  293. package/src/tests/seed-scripts.test.ts +142 -2
  294. package/src/tests/session-costs-model-key-normalize.test.ts +59 -0
  295. package/src/tests/session-sharing.test.ts +212 -2
  296. package/src/tests/slack-reaction-config.test.ts +1 -0
  297. package/src/tests/slack-render-v2.test.ts +73 -0
  298. package/src/tests/slack-skip-reaction.test.ts +203 -0
  299. package/src/tests/store-progress-skipped.test.ts +159 -0
  300. package/src/tests/subscription-usage-migration.test.ts +57 -0
  301. package/src/tests/swarm-config-reserved-keys.test.ts +3 -0
  302. package/src/tests/swarm-diff.test.ts +121 -2
  303. package/src/tests/task-auto-title-config-guard.test.ts +37 -0
  304. package/src/tests/task-auto-title-listener.test.ts +165 -0
  305. package/src/tests/telemetry-endpoint-override.test.ts +27 -0
  306. package/src/tests/theme-import.test.ts +758 -0
  307. package/src/tests/themes-page-theme.test.ts +155 -0
  308. package/src/tests/themes-presets.test.ts +172 -0
  309. package/src/tests/trigger-claiming.test.ts +2 -0
  310. package/src/tests/workflow-script-principal.test.ts +2 -1
  311. package/src/tests/workflow-system-one-extraction.test.ts +29 -0
  312. package/src/themes/classics.ts +949 -0
  313. package/src/themes/import.ts +420 -0
  314. package/src/themes/page-fields.ts +40 -0
  315. package/src/themes/page-theme.ts +102 -0
  316. package/src/themes/presets.ts +561 -0
  317. package/src/themes/tokens.ts +218 -0
  318. package/src/tools/app-upsert.ts +1 -1
  319. package/src/tools/create-channel.ts +1 -1
  320. package/src/tools/create-page.ts +118 -12
  321. package/src/tools/defer-task.ts +1 -1
  322. package/src/tools/register-agentmail-inbox.ts +5 -0
  323. package/src/tools/repos/update-repo.ts +1 -1
  324. package/src/tools/request-human-input.ts +1 -1
  325. package/src/tools/send-task.ts +1 -1
  326. package/src/tools/store-progress.ts +39 -8
  327. package/src/tools/tracker/tracker-unlink.ts +2 -1
  328. package/src/tools/utils.ts +33 -0
  329. package/src/tools/workflows/retry-workflow-run.ts +3 -0
  330. package/src/types.ts +56 -5
  331. package/src/utils/constants.ts +19 -0
  332. package/src/utils/context-window.ts +6 -1
  333. package/src/utils/follow-up-gate-schedule-ids.ts +13 -0
  334. package/src/utils/internal-ai/credentials.ts +146 -93
  335. package/src/utils/internal-ai/index.ts +10 -0
  336. package/src/utils/internal-ai/models.ts +18 -0
  337. package/src/utils/internal-ai/task-title.ts +282 -0
  338. package/src/utils/output-schema.ts +23 -0
  339. package/src/utils/page-session.ts +37 -0
  340. package/src/workflows/executors/system-one-providers.ts +25 -6
  341. package/src/workflows/recovery.ts +8 -4
  342. package/src/workflows/resume.ts +19 -0
  343. package/templates/schedules/daily-status-report/content.md +88 -2
  344. package/templates/schedules/daily-swarm-update-check/content.md +16 -40
  345. package/templates/skills/apps/SKILL.md +1 -1
  346. package/templates/skills/apps/content.md +1 -1
  347. package/templates/skills/heartbeat-runbook/content.md +1 -1
  348. package/templates/skills/pages/config.json +1 -1
  349. package/templates/skills/pages/content.md +539 -86
  350. package/templates/skills/pages/files/examples/annotated-pr.html +21 -12
  351. package/templates/skills/pages/files/examples/multiplayer-board.html +41 -41
  352. package/templates/skills/pages/files/examples/report-page.html +125 -124
  353. package/dist/cli-2pnswgh8.js +0 -189
  354. package/dist/handlers-by3sfxyx.js +0 -32
  355. package/dist/index-4f2pvxae.js +0 -37
  356. package/dist/index-98gz7tmp.js +0 -30
  357. package/dist/index-k08z2cak.js +0 -33
  358. package/dist/lead-enq35nqp.js +0 -70
  359. package/dist/worker-gg1576j3.js +0 -70
  360. package/templates/schedules/daily-workflow-health-audit/config.json +0 -19
  361. package/templates/schedules/daily-workflow-health-audit/content.md +0 -191
@@ -45,6 +45,8 @@ import {
45
45
  getDb2,
46
46
  getDbClient2,
47
47
  init_runtime2,
48
+ isEffectiveOutputSchema,
49
+ init_output_schema,
48
50
  isRuntimePoolsEnabled,
49
51
  init_runtime_pools_flag,
50
52
  normalizeDateRequired,
@@ -115,6 +117,9 @@ import {
115
117
  init_api_drain2,
116
118
  parseEnabledTools,
117
119
  init_enabled_tools,
120
+ parseFollowUpGateScheduleIds,
121
+ isFollowUpGateScheduleId,
122
+ init_follow_up_gate_schedule_ids,
118
123
  tierConfigKey,
119
124
  init_model_tier_keys,
120
125
  isInternalConfigKey,
@@ -189,6 +194,7 @@ import {
189
194
  failTask2,
190
195
  overwriteTerminalTaskResultText2,
191
196
  cancelTask2,
197
+ skipTask2,
192
198
  getRecentlyCancelledTasksForAgent2,
193
199
  updateTaskProgress2,
194
200
  IdempotencyKeyTakenError,
@@ -351,17 +357,17 @@ import {
351
357
  recordInlineScriptRun2,
352
358
  exports_db,
353
359
  init_db4
354
- } from "./cli-k2gzwsj2.js";
360
+ } from "./cli-w4xnbm46.js";
355
361
  import {
356
362
  getUserGrant2,
357
363
  init_rbac_roles
358
- } from "./cli-rmmmrjkd.js";
364
+ } from "./cli-z1srzaf6.js";
359
365
  import {
360
366
  ensurePricingSeeded2,
361
367
  ensureRbacSeeded2,
362
368
  ensureModelProfilesSeeded2,
363
369
  init_boot_seeds
364
- } from "./cli-zbbwez0r.js";
370
+ } from "./cli-rjknb2ae.js";
365
371
  import {
366
372
  buildCatalogEntries,
367
373
  listModelCatalog,
@@ -373,7 +379,7 @@ import {
373
379
  requestModelCatalogRefresh2,
374
380
  startPricingRefreshLoop2,
375
381
  init_pricing_refresh
376
- } from "./cli-89knwags.js";
382
+ } from "./cli-1cxrbkk6.js";
377
383
  import {
378
384
  workflowEventBus2,
379
385
  init_event_bus
@@ -386,7 +392,7 @@ import {
386
392
  externalChannelToolError2,
387
393
  getChannelBlockReason2,
388
394
  init_external_channel
389
- } from "./cli-w6dt9ged.js";
395
+ } from "./cli-0ykgn1h5.js";
390
396
  import {
391
397
  noteSlackInboundSideEffect,
392
398
  init_inbound_dispatch,
@@ -394,6 +400,8 @@ import {
394
400
  init_reaction_events,
395
401
  withSpan2,
396
402
  init_otel,
403
+ finalizeTerminalSlackReactions,
404
+ init_ack,
397
405
  getTaskLink,
398
406
  getTaskUrl,
399
407
  markdownToSlack,
@@ -421,7 +429,7 @@ import {
421
429
  startSlackApp2,
422
430
  stopSlackApp2,
423
431
  init_app3
424
- } from "./cli-waqbxg08.js";
432
+ } from "./cli-xq9r2wtt.js";
425
433
  import {
426
434
  shapeApprovalResolution,
427
435
  init_approval_resolution,
@@ -445,7 +453,7 @@ import {
445
453
  resumeFromChildRun2,
446
454
  initWaitBusSubscriptions2,
447
455
  init_resume
448
- } from "./cli-m48g6p95.js";
456
+ } from "./cli-nbsf8yvn.js";
449
457
  import {
450
458
  FilesError,
451
459
  providerPath,
@@ -459,7 +467,7 @@ import {
459
467
  import {
460
468
  getRuntimePool2,
461
469
  init_db2
462
- } from "./cli-yn4kxs06.js";
470
+ } from "./cli-eyg1pa00.js";
463
471
  import {
464
472
  duplicateGuardedQueryKey,
465
473
  parseQueryParams,
@@ -492,7 +500,7 @@ import {
492
500
  findRoute,
493
501
  route,
494
502
  init_route_def
495
- } from "./cli-4necwtsv.js";
503
+ } from "./cli-fyhr5h4s.js";
496
504
  import {
497
505
  COMPOSIO_HTTP_METHODS,
498
506
  executeComposioRequest,
@@ -504,7 +512,7 @@ import {
504
512
  ampPinCatalogError,
505
513
  ampModelError,
506
514
  init_amp_models
507
- } from "./cli-q0k1w5zd.js";
515
+ } from "./cli-3e4snnzf.js";
508
516
  import {
509
517
  object,
510
518
  init_v4_mini
@@ -525,7 +533,7 @@ import {
525
533
  import {
526
534
  loadModelsDevCache,
527
535
  init_modelsdev_cache
528
- } from "./cli-c60vetmm.js";
536
+ } from "./cli-jdv6ypxs.js";
529
537
  import {
530
538
  require_dist2,
531
539
  ConnectionAuthInputSchema,
@@ -604,7 +612,7 @@ import {
604
612
  init_typecheck,
605
613
  parseSkillContent,
606
614
  init_skill_parser
607
- } from "./cli-hr2e2fft.js";
615
+ } from "./cli-tpksw2nr.js";
608
616
  import {
609
617
  detachedProcessGroup,
610
618
  registerProcessGroup,
@@ -619,7 +627,7 @@ import {
619
627
  ensureToken,
620
628
  ensureTokenOrThrow,
621
629
  init_ensure_token
622
- } from "./cli-xnqgpshy.js";
630
+ } from "./cli-fzachfnf.js";
623
631
  import {
624
632
  require_fast_deep_equal
625
633
  } from "./cli-bhp11egn.js";
@@ -714,7 +722,7 @@ import {
714
722
  validateDefinition,
715
723
  applyDefinitionPatch,
716
724
  init_definition2
717
- } from "./cli-8bc1w0tw.js";
725
+ } from "./cli-7axf41jq.js";
718
726
  import {
719
727
  isMultiRuntimeEnabled,
720
728
  init_multi_runtime2
@@ -735,15 +743,15 @@ import {
735
743
  isSlackLeaveThreadDisabled,
736
744
  leaveSlackThread,
737
745
  init_left_threads
738
- } from "./cli-gdhpcbhf.js";
746
+ } from "./cli-66ww7fer.js";
739
747
  import {
740
748
  publicEndpointSsrfOptions,
741
749
  init_mcp_wrapper
742
- } from "./cli-hgaazk69.js";
750
+ } from "./cli-s4ss5g59.js";
743
751
  import {
744
752
  canProvisionKind,
745
753
  init_runtime_providers
746
- } from "./cli-kqdg1bsb.js";
754
+ } from "./cli-yndmfxb3.js";
747
755
  import {
748
756
  findUserById,
749
757
  findUserByExternalId,
@@ -758,7 +766,7 @@ import {
758
766
  resolveSessionToken,
759
767
  fingerprintApiKey,
760
768
  init_users
761
- } from "./cli-drr5v6av.js";
769
+ } from "./cli-269q28a1.js";
762
770
  import {
763
771
  isRbacEnabled,
764
772
  decideAdmission,
@@ -767,7 +775,7 @@ import {
767
775
  init_elevated_agents,
768
776
  can,
769
777
  init_rbac
770
- } from "./cli-tfyyvzx6.js";
778
+ } from "./cli-njwac61j.js";
771
779
  import {
772
780
  normalizeAssetKey,
773
781
  sessionGroupKey,
@@ -776,6 +784,11 @@ import {
776
784
  init_key,
777
785
  isSafeBundlePath,
778
786
  init_bundle_path,
787
+ PAGE_THEME_COLOR_TOKENS,
788
+ init_tokens2,
789
+ ThemeImportError,
790
+ importThemeTokens,
791
+ init_import,
779
792
  $OpenAPIRegistry,
780
793
  $OpenApiGeneratorV31,
781
794
  init_dist6,
@@ -816,6 +829,7 @@ import {
816
829
  InputValueSchema,
817
830
  PageContentTypeSchema,
818
831
  PageAuthModeSchema,
832
+ PageThemeTokensInputSchema,
819
833
  MetricDefinitionSchema,
820
834
  WorkflowRunStatusSchema,
821
835
  ScriptRunStatusSchema,
@@ -829,7 +843,7 @@ import {
829
843
  KvNamespaceSchema,
830
844
  KvKeySchema,
831
845
  init_types4
832
- } from "./cli-nhrvpaj7.js";
846
+ } from "./cli-5j0m12ns.js";
833
847
  import {
834
848
  generateDefaultClaudeMd2,
835
849
  generateDefaultSoulMd2,
@@ -840,7 +854,7 @@ import {
840
854
  init_task_attachment_links,
841
855
  contentSha256,
842
856
  init_profile_sync
843
- } from "./cli-a7v854rf.js";
857
+ } from "./cli-dq8x79v8.js";
844
858
  import {
845
859
  getSlackConfiguration,
846
860
  init_config4
@@ -862,7 +876,7 @@ import {
862
876
  init_registry3,
863
877
  resolveTemplate,
864
878
  init_resolver
865
- } from "./cli-cm5yqn35.js";
879
+ } from "./cli-kf3pxxdg.js";
866
880
  import {
867
881
  init_zod
868
882
  } from "./cli-k5671be5.js";
@@ -894,14 +908,10 @@ import {
894
908
  datetime,
895
909
  number3
896
910
  } from "./cli-agfm16v9.js";
897
- import {
898
- getNodeEnv,
899
- init_node_env
900
- } from "./cli-rgeadyvq.js";
901
911
  import {
902
912
  init_package,
903
913
  package_default
904
- } from "./cli-e3r2neck.js";
914
+ } from "./cli-msg9m2ny.js";
905
915
  import {
906
916
  realtimeBus,
907
917
  init_bus
@@ -918,12 +928,17 @@ import {
918
928
  getCombState,
919
929
  isAgentFsProxyEnabled,
920
930
  init_constants3
921
- } from "./cli-611a1294.js";
931
+ } from "./cli-k0wwfqbg.js";
922
932
  import {
923
933
  parseEnvFlag,
924
934
  isEnvFlagEnabled,
925
935
  init_env_flag
926
936
  } from "./cli-cebvbc9t.js";
937
+ import {
938
+ getNodeEnv,
939
+ isDevOrTestNodeEnv,
940
+ init_node_env
941
+ } from "./cli-rgeadyvq.js";
927
942
  import {
928
943
  getApiKey,
929
944
  init_api_key
@@ -20340,6 +20355,12 @@ function isKnownCatalogModel(model, catalog) {
20340
20355
  const anthropic = catalog.anthropic?.models;
20341
20356
  return Object.hasOwn(buildClaudeShortnameMap(anthropic), id);
20342
20357
  }
20358
+ function claudeShortnameToCatalogId(model, catalog) {
20359
+ const anthropic = catalog.anthropic?.models;
20360
+ const shortnames = buildClaudeShortnameMap(anthropic);
20361
+ const bare = model.replace(CONTEXT_SUFFIX_RE, "");
20362
+ return Object.hasOwn(shortnames, bare) ? shortnames[bare] : model;
20363
+ }
20343
20364
  async function harnessModelErrorFor(model, harness) {
20344
20365
  const { providers } = await loadModelsCatalog();
20345
20366
  return harnessModelMismatch(model, harness, providers, {});
@@ -20371,7 +20392,8 @@ async function explicitModelError(check) {
20371
20392
  const { providers } = await loadModelsCatalog();
20372
20393
  const catalog = providers;
20373
20394
  if (check.harnessProvider) {
20374
- const mismatch = harnessModelMismatch(model, check.harnessProvider, catalog, { agentId: check.agentId, agentName: check.agentName });
20395
+ const harnessModel = harnessCatalogSection(check.harnessProvider) === "anthropic" ? model : claudeShortnameToCatalogId(model, catalog);
20396
+ const mismatch = harnessModelMismatch(harnessModel, check.harnessProvider, catalog, { agentId: check.agentId, agentName: check.agentName });
20375
20397
  if (mismatch)
20376
20398
  return mismatch;
20377
20399
  }
@@ -20613,6 +20635,13 @@ async function completeIfSettled(runId, ctx) {
20613
20635
  return true;
20614
20636
  });
20615
20637
  }
20638
+ function recoveredTaskReason(taskStatus) {
20639
+ if (taskStatus === "failed")
20640
+ return "Task failed (recovered)";
20641
+ if (taskStatus === "skipped")
20642
+ return "Task skipped (recovered)";
20643
+ return "Task cancelled (recovered)";
20644
+ }
20616
20645
  async function recoverWaitingRuns(registry) {
20617
20646
  const stuckRuns = await getStuckWorkflowRuns2();
20618
20647
  let recovered = 0;
@@ -20634,7 +20663,7 @@ async function recoverWaitingRuns(registry) {
20634
20663
  continue;
20635
20664
  }
20636
20665
  if (!taskCompleted && stepFailureMode(workflow.definition, stuck.nodeId) === "fail") {
20637
- const reason = stuck.taskStatus === "failed" ? "Task failed (recovered)" : "Task cancelled (recovered)";
20666
+ const reason = recoveredTaskReason(stuck.taskStatus);
20638
20667
  const failed = await failStepAndRunIfWaiting(workflow.definition, stuck.stepId, stuck.runId, reason, stuck.taskId, { registry });
20639
20668
  if (!failed.claimed)
20640
20669
  continue;
@@ -20642,7 +20671,7 @@ async function recoverWaitingRuns(registry) {
20642
20671
  continue;
20643
20672
  }
20644
20673
  const ctx = run.context ?? {};
20645
- const reason = stuck.taskStatus === "failed" ? "Task failed (recovered)" : "Task cancelled (recovered)";
20674
+ const reason = recoveredTaskReason(stuck.taskStatus);
20646
20675
  const stepOutput = {
20647
20676
  taskId: stuck.taskId,
20648
20677
  taskOutput: taskCompleted ? parseRecoveredTaskOutput(stuck.taskOutput) : `${FAILED_TASK_OUTPUT_PREFIX} ${reason}] This node failed or was cancelled.`
@@ -20879,7 +20908,7 @@ function startRetryPoller(registry, intervalMs = 5000) {
20879
20908
  if (!waiting)
20880
20909
  continue;
20881
20910
  if (result.waitFor === "workflow.child.finished") {
20882
- const { resumeFromChildRun } = await import("./resume-wd30wx23.js");
20911
+ const { resumeFromChildRun } = await import("./resume-1c8kr3nh.js");
20883
20912
  await resumeFromChildRun(step.id, registry);
20884
20913
  }
20885
20914
  } else {
@@ -21592,7 +21621,7 @@ var init_notify = __esm(() => {
21592
21621
  }
21593
21622
  }
21594
21623
  case "slack": {
21595
- const { getSlackApp } = await import("./app-909e97cr.js");
21624
+ const { getSlackApp } = await import("./app-e00m45gn.js");
21596
21625
  const app = getSlackApp();
21597
21626
  if (!app) {
21598
21627
  return {
@@ -22602,7 +22631,7 @@ async function resolveWaitCause(scheduleId, reason) {
22602
22631
  ) AS deferred
22603
22632
  FROM deferred_task_wait_members m LEFT JOIN agent_tasks t ON t.id = m.taskId
22604
22633
  WHERE m.scheduleId = ?`, [scheduleId]);
22605
- const matched = members.filter((member) => !member.deferred && (member.taskStatus === "completed" || member.taskStatus === "failed" || member.taskStatus === "cancelled") && (wait.eventName === "settled" || wait.eventName === `task.${member.taskStatus}`));
22634
+ const matched = members.filter((member) => !member.deferred && (member.taskStatus === "completed" || member.taskStatus === "failed" || member.taskStatus === "cancelled" || member.taskStatus === "skipped") && (wait.eventName === "settled" || wait.eventName === `task.${member.taskStatus}`));
22606
22635
  if (!matched.length || wait.mode === "all" && matched.length !== members.length)
22607
22636
  return;
22608
22637
  const cause = members.length === 1 ? `task.${matched[0].taskStatus} for task ${matched[0].taskId}` : `${wait.mode} tasks matched ${wait.eventName}: ${matched.map((member) => `${member.taskId} (${member.taskStatus})`).join(", ")}`;
@@ -22717,7 +22746,7 @@ async function reconcileDeferredTaskWaits(taskId) {
22717
22746
  JOIN deferred_task_wait_members m ON m.scheduleId = w.scheduleId
22718
22747
  JOIN agent_tasks t ON t.id = m.taskId
22719
22748
  JOIN scheduled_tasks s ON s.id = w.scheduleId
22720
- WHERE w.status = 'pending' AND s.enabled = 1 AND t.status IN ('completed', 'failed', 'cancelled')
22749
+ WHERE w.status = 'pending' AND s.enabled = 1 AND t.status IN ('completed', 'failed', 'cancelled', 'skipped')
22721
22750
  AND NOT EXISTS (
22722
22751
  SELECT 1 FROM scheduled_tasks d
22723
22752
  WHERE d.parentTaskId = t.id AND d.taskType = 'deferred' AND d.enabled = 1
@@ -22755,6 +22784,7 @@ async function initDeferredTaskWaits() {
22755
22784
  workflowEventBus2.on("task.completed", onTaskEvent);
22756
22785
  workflowEventBus2.on("task.failed", onTaskEvent);
22757
22786
  workflowEventBus2.on("task.cancelled", onTaskEvent);
22787
+ workflowEventBus2.on("task.skipped", onTaskEvent);
22758
22788
  workflowEventBus2.on("task.superseded", onTaskEvent);
22759
22789
  workflowEventBus2.on("task.created", onTaskEvent);
22760
22790
  await reconcileDeferredTaskWaits();
@@ -22763,6 +22793,7 @@ function stopDeferredTaskWaits() {
22763
22793
  workflowEventBus2.off("task.completed", onTaskEvent);
22764
22794
  workflowEventBus2.off("task.failed", onTaskEvent);
22765
22795
  workflowEventBus2.off("task.cancelled", onTaskEvent);
22796
+ workflowEventBus2.off("task.skipped", onTaskEvent);
22766
22797
  workflowEventBus2.off("task.superseded", onTaskEvent);
22767
22798
  workflowEventBus2.off("task.created", onTaskEvent);
22768
22799
  }
@@ -24595,6 +24626,75 @@ function summarizeKvShape(root, maxEntries = 8, maxPathBytes = KV_SHAPE_PATH_BUD
24595
24626
  var KV_PATH_MAX_CHARS = 1024, KV_SHAPE_PATH_BUDGET_BYTES = 2048;
24596
24627
  var init_kv_view = () => {};
24597
24628
 
24629
+ // src/pages/color-literals.ts
24630
+ function attributeValues(html, attribute) {
24631
+ return Array.from(html.matchAll(attribute), (match) => match[1] ?? match[2] ?? "");
24632
+ }
24633
+ function classAttributeValues(html) {
24634
+ return attributeValues(html, CLASS_ATTRIBUTE);
24635
+ }
24636
+ function countMatches(regions, pattern) {
24637
+ return regions.reduce((total, region) => total + (region.match(pattern)?.length ?? 0), 0);
24638
+ }
24639
+ function countColorLiterals(html) {
24640
+ const styles = [
24641
+ ...Array.from(html.matchAll(STYLE_BLOCK), (match) => match[1] ?? ""),
24642
+ ...attributeValues(html, STYLE_ATTRIBUTE)
24643
+ ];
24644
+ return countMatches(styles, COLOR_LITERAL) + countMatches(styles, NAMED_COLOR) + countMatches(classAttributeValues(html), COLOR_CLASS);
24645
+ }
24646
+ var COLOR_LITERAL_THRESHOLD = 8, STYLE_BLOCK, STYLE_ATTRIBUTE, CLASS_ATTRIBUTE, COLOR_LITERAL, NAMED_COLOR, PALETTE_UTILITIES, TAILWIND_PALETTE, COLOR_CLASS;
24647
+ var init_color_literals = __esm(() => {
24648
+ STYLE_BLOCK = /<style\b[^>]{0,200}>([\s\S]*?)(?:<\/style\s*>|$)/gi;
24649
+ STYLE_ATTRIBUTE = /\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;
24650
+ CLASS_ATTRIBUTE = /\sclass\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;
24651
+ COLOR_LITERAL = /#(?:[0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3,4})\b|\b(?:rgba?|hsla?|oklch)\(/gi;
24652
+ NAMED_COLOR = /(?<![\w.#-])(?:white|black)(?![\w-])/g;
24653
+ PALETTE_UTILITIES = [
24654
+ "bg",
24655
+ "text",
24656
+ "border",
24657
+ "ring",
24658
+ "outline",
24659
+ "divide",
24660
+ "fill",
24661
+ "stroke",
24662
+ "from",
24663
+ "via",
24664
+ "to",
24665
+ "decoration",
24666
+ "accent",
24667
+ "caret",
24668
+ "placeholder",
24669
+ "shadow"
24670
+ ];
24671
+ TAILWIND_PALETTE = [
24672
+ "slate",
24673
+ "gray",
24674
+ "zinc",
24675
+ "neutral",
24676
+ "stone",
24677
+ "red",
24678
+ "orange",
24679
+ "amber",
24680
+ "yellow",
24681
+ "lime",
24682
+ "green",
24683
+ "emerald",
24684
+ "teal",
24685
+ "cyan",
24686
+ "sky",
24687
+ "blue",
24688
+ "indigo",
24689
+ "violet",
24690
+ "purple",
24691
+ "fuchsia",
24692
+ "pink",
24693
+ "rose"
24694
+ ];
24695
+ COLOR_CLASS = new RegExp(`(?<![\\w-])(?:(?:${PALETTE_UTILITIES.join("|")})-(?:${TAILWIND_PALETTE.join("|")})-\\d+|(?:bg|text)-(?:white|black))(?![\\w-])|-\\[(?:#|rgb|hsl|oklch)`, "g");
24696
+ });
24697
+
24598
24698
  // src/tools/utils.ts
24599
24699
  function markScriptSdkRequestOrigin(meta) {
24600
24700
  scriptSdkRequestOrigins.add(meta);
@@ -24916,7 +25016,7 @@ function setPreloadedTools(server, names) {
24916
25016
  async function applyPreToolCall(name, args, requestInfo, inputSchema) {
24917
25017
  if (requestInfo.callOrigin !== "mcp")
24918
25018
  return { args };
24919
- const dispatcher = await import("./dispatcher-tx9hd1sv.js");
25019
+ const dispatcher = await import("./dispatcher-b1yz2bnn.js");
24920
25020
  const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
24921
25021
  validateModify: async (data) => {
24922
25022
  const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
@@ -25020,6 +25120,17 @@ var scriptSdkRequestOrigins, extensionRequestOrigins, getRequestInfo = (req) =>
25020
25120
  return;
25021
25121
  const hint = r.data?.longScriptTimeoutHint;
25022
25122
  return hint ? WORKFLOW_LONG_SCRIPT_TIMEOUT_NUDGE : undefined;
25123
+ }, createPageNudge = (r) => {
25124
+ if (!r.ok)
25125
+ return;
25126
+ const data = r.data;
25127
+ const count = data?.colorLiteralCount;
25128
+ const sentences = [
25129
+ data?.designVersion === 1 && data.usesDesignSystem === true ? "This page is on designVersion 1 (the original look), so design system classes, tokens and themes have no effect. Pass designVersion: 2." : undefined,
25130
+ data?.lightOnlyColors === true ? "Your themeTokens set colors for light mode only. Dark mode keeps the preset's dark colors; add a dark map (or a .dark block) to restyle it too." : undefined,
25131
+ typeof count === "number" && count >= COLOR_LITERAL_THRESHOLD ? `This page hardcodes ${count} color values. Use theme tokens (var(--color-primary), bg-primary, text-muted-foreground) so theme and dark-mode switches restyle it. Until then the page stays light in a dark dashboard.` : undefined
25132
+ ].filter((sentence) => sentence !== undefined);
25133
+ return sentences.length > 0 ? sentences.join(" ") : undefined;
25023
25134
  }, NUDGES, MCP_RESULT_WIRE_LIMIT_BYTES = 1e4, MCP_OVERFLOW_TTL_MS, MCP_PROSE_PREVIEW_FLOOR_CHARS = 1200, scrubMiddleware = (result) => result.allowSecretEgress ? result : scrubObject(result), nudgeMiddleware = (result, ctx) => {
25024
25135
  if (result.nudge)
25025
25136
  return result;
@@ -25141,6 +25252,7 @@ var init_utils = __esm(() => {
25141
25252
  init_kv_overflow();
25142
25253
  init_kv_view();
25143
25254
  init_otel();
25255
+ init_color_literals();
25144
25256
  init_types3();
25145
25257
  init_secret_scrubber();
25146
25258
  scriptSdkRequestOrigins = new WeakSet;
@@ -25178,6 +25290,7 @@ var init_utils = __esm(() => {
25178
25290
  "patch-workflow-node": workflowLongScriptTimeoutNudge,
25179
25291
  "slack-download-file": slackDownloadFileNudge,
25180
25292
  "slack-read": slackReadNudge,
25293
+ create_page: createPageNudge,
25181
25294
  "script-search": (r) => {
25182
25295
  if (!r.ok)
25183
25296
  return;
@@ -25540,7 +25653,7 @@ function bridgeRequestFor(name, args) {
25540
25653
  const taskId = typeof body.taskId === "string" ? body.taskId : undefined;
25541
25654
  if (!taskId)
25542
25655
  throw new Error("task_storeProgress requires string `taskId`");
25543
- if (body.status === "completed" || body.status === "failed") {
25656
+ if (body.status === "completed" || body.status === "failed" || body.status === "skipped") {
25544
25657
  return {
25545
25658
  method: "POST",
25546
25659
  path: `/api/tasks/${encodeURIComponent(taskId)}/finish`,
@@ -28278,7 +28391,8 @@ async function updateTrackerSync(id, data) {
28278
28391
  await getDbClient2().run(`UPDATE tracker_sync SET ${sets.join(", ")} WHERE id = ?`, values);
28279
28392
  }
28280
28393
  async function deleteTrackerSync(id) {
28281
- await getDbClient2().run("DELETE FROM tracker_sync WHERE id = ?", [id]);
28394
+ const result = await getDbClient2().run("DELETE FROM tracker_sync WHERE id = ?", [id]);
28395
+ return result.changes > 0;
28282
28396
  }
28283
28397
  async function hasTrackerDelivery(provider, deliveryId) {
28284
28398
  if (!deliveryId)
@@ -35881,7 +35995,7 @@ async function notifySlack(text) {
35881
35995
  return;
35882
35996
  }
35883
35997
  try {
35884
- const { getSlackApp } = await import("./app-909e97cr.js");
35998
+ const { getSlackApp } = await import("./app-e00m45gn.js");
35885
35999
  const app = getSlackApp();
35886
36000
  if (!app) {
35887
36001
  console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
@@ -35952,7 +36066,7 @@ async function deleteJiraWebhook(webhookId) {
35952
36066
  console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
35953
36067
  }
35954
36068
  async function overwriteWebhookIds(next) {
35955
- const { getDbClient } = await import("./db-9dv0g1ab.js");
36069
+ const { getDbClient } = await import("./db-athc68zt.js");
35956
36070
  await getDbClient().transaction(async (tx) => {
35957
36071
  const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
35958
36072
  if (!row) {
@@ -109147,6 +109261,25 @@ async function extractLegacyPageSession(req) {
109147
109261
  async function extractAndVerifyCookie(req, pageId) {
109148
109262
  return (await extractPageSession(req, pageId))?.payload ?? null;
109149
109263
  }
109264
+ function isLocalHttpUrl(value) {
109265
+ try {
109266
+ const url = new URL(value);
109267
+ return url.protocol === "http:" && LOCAL_DEV_HOSTNAMES.has(url.hostname);
109268
+ } catch {
109269
+ return false;
109270
+ }
109271
+ }
109272
+ function isLocalDevPageRequest(req) {
109273
+ if (!isDevOrTestNodeEnv())
109274
+ return false;
109275
+ const origin = req.headers.origin ?? "";
109276
+ if (origin !== "")
109277
+ return isLocalHttpUrl(origin);
109278
+ const host = req.headers.host;
109279
+ if (!host)
109280
+ return true;
109281
+ return isLocalHttpUrl(`http://${host}`);
109282
+ }
109150
109283
  async function issuePageSessionCookie(pageId, opts) {
109151
109284
  const exp = Math.floor(Date.now() / 1000) + PAGE_SESSION_TTL_SECONDS;
109152
109285
  const token = await signPageSession({
@@ -109190,9 +109323,11 @@ async function pageSessionSetCookies(req, pageId, opts) {
109190
109323
  evict.add(name);
109191
109324
  return [issued, ...[...evict].map((name) => buildCookie(name, "", 0, opts.dev))];
109192
109325
  }
109193
- var ENV_SECRET = "PAGE_SESSION_SECRET", ENV_SECRET_FILE = "PAGE_SESSION_SECRET_FILE", SECRET_FILENAME = ".page-session-secret", GENERATED_SECRET_BYTES = 32, LEGACY_PAGE_SESSION_COOKIE = "page_session", COOKIE_SAFE_PAGE_ID, PAGE_SESSION_TTL_SECONDS = 3600, MAX_PAGE_SESSION_COOKIES = 20, PAGE_SESSION_COOKIE_RE;
109326
+ var ENV_SECRET = "PAGE_SESSION_SECRET", ENV_SECRET_FILE = "PAGE_SESSION_SECRET_FILE", SECRET_FILENAME = ".page-session-secret", GENERATED_SECRET_BYTES = 32, LEGACY_PAGE_SESSION_COOKIE = "page_session", COOKIE_SAFE_PAGE_ID, PAGE_SESSION_TTL_SECONDS = 3600, LOCAL_DEV_HOSTNAMES, MAX_PAGE_SESSION_COOKIES = 20, PAGE_SESSION_COOKIE_RE;
109194
109327
  var init_page_session = __esm(() => {
109328
+ init_node_env();
109195
109329
  COOKIE_SAFE_PAGE_ID = /^[A-Za-z0-9_-]{1,64}$/;
109330
+ LOCAL_DEV_HOSTNAMES = new Set(["localhost", "127.0.0.1"]);
109196
109331
  PAGE_SESSION_COOKIE_RE = new RegExp(`(?:^|;\\s*)(${LEGACY_PAGE_SESSION_COOKIE}_[A-Za-z0-9_-]{1,64})=([^;]*)`, "g");
109197
109332
  });
109198
109333
 
@@ -109425,7 +109560,7 @@ async function reloadGlobalConfigsAndIntegrations() {
109425
109560
  return runWithoutRequestAuth(() => reloadGlobalConfigsAndIntegrationsInner());
109426
109561
  }
109427
109562
  async function reloadGlobalConfigsAndIntegrationsInner() {
109428
- const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-vdygbq10.js");
109563
+ const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-cqhqpgrv.js");
109429
109564
  const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
109430
109565
  const updated = await loadGlobalConfigsIntoEnv(true);
109431
109566
  await syncTelemetryEnabled("settings").catch((err) => {
@@ -109441,7 +109576,7 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
109441
109576
  integrations.push("embeddings");
109442
109577
  }
109443
109578
  if (isEmbeddingsConfigured) {
109444
- import("./embedding-space-ny1e2940.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
109579
+ import("./embedding-space-b4txbwrk.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
109445
109580
  console.error("[config-reload] embedding maintenance failed (non-fatal):", err);
109446
109581
  });
109447
109582
  }
@@ -114448,7 +114583,7 @@ var init_app_sync = __esm(() => {
114448
114583
  var registerAppUpsertTool = (server) => {
114449
114584
  createToolRegistrar(server)("app-upsert", {
114450
114585
  title: "Create or update an app",
114451
- description: "Stores a schema-backed app definition with models, queries/actions, pages, reusable elements, optional userConfig fields, and an optional top-level theme (a dashboard preset slug for the app's canvas — hive (stock; omit to inherit the viewer's theme), meadow, iris, rose, cobalt, ember, carbon, plus the classic presets github, vscode, material, solarized, tokyo, monokai, gruvbox, catppuccin; viewers can override it per-user; unknown slugs degrade to the viewer's dashboard theme), then returns its dashboard URL. userConfig is versioned schema only; each user's values are stored separately, survive rollback, and schema changes are always compatible. Pages may bind a declared field read-only at exactly /user/<field>; pure and bound reusable elements must receive that value through a prop. Elements are private by default: pure elements read declared props, allow $item/$index inside repeats, may expose one leaf ElementSlot, and cannot invoke actions; bound elements may use the defining app's queries/actions, while exported bound elements cannot navigate. Prop kinds include enum with a required non-empty enum values array. Pages or elements reuse them with literal ElementRef targets, and cross-app refs require export: true. Zero-model pure-UI apps are valid. Pass appId to update; breaking a referenced export is blocked by the compatibility gate unless forceElementBreak explicitly names it.",
114586
+ description: "Stores a schema-backed app definition with models, queries/actions, pages, reusable elements, optional userConfig fields, and an optional top-level theme (a dashboard preset slug for the app's canvas: hive (stock; omit to inherit the viewer's theme), meadow, iris, rose, cobalt, ember, carbon, paper (the warm editorial paper look), plus the classic presets github, vscode, material, solarized, tokyo, monokai, gruvbox, catppuccin; viewers can override it per-user; unknown slugs degrade to the viewer's dashboard theme), then returns its dashboard URL. userConfig is versioned schema only; each user's values are stored separately, survive rollback, and schema changes are always compatible. Pages may bind a declared field read-only at exactly /user/<field>; pure and bound reusable elements must receive that value through a prop. Elements are private by default: pure elements read declared props, allow $item/$index inside repeats, may expose one leaf ElementSlot, and cannot invoke actions; bound elements may use the defining app's queries/actions, while exported bound elements cannot navigate. Prop kinds include enum with a required non-empty enum values array. Pages or elements reuse them with literal ElementRef targets, and cross-app refs require export: true. Zero-model pure-UI apps are valid. Pass appId to update; breaking a referenced export is blocked by the compatibility gate unless forceElementBreak explicitly names it.",
114452
114587
  annotations: { destructiveHint: false },
114453
114588
  inputSchema: object2({
114454
114589
  name: string2().min(1).describe("Human-readable app name."),
@@ -115477,7 +115612,7 @@ var ChannelOutputSchema, registerCreateChannelTool = (server) => {
115477
115612
  });
115478
115613
  }
115479
115614
  try {
115480
- const channel = createChannel2(name, {
115615
+ const channel = await createChannel2(name, {
115481
115616
  description,
115482
115617
  type: type ?? "public",
115483
115618
  createdBy: requestInfo.agentId,
@@ -116116,7 +116251,10 @@ async function snapshotPage(pageId, changedByAgentId) {
116116
116251
  authMode: page.authMode,
116117
116252
  passwordHash: page.passwordHash,
116118
116253
  body: page.body,
116119
- needsCredentials: page.needsCredentials
116254
+ needsCredentials: page.needsCredentials,
116255
+ theme: page.theme,
116256
+ themeTokens: page.themeTokens,
116257
+ designVersion: page.designVersion
116120
116258
  };
116121
116259
  return createPageVersion2({
116122
116260
  pageId,
@@ -116130,6 +116268,1245 @@ var init_version3 = __esm(() => {
116130
116268
  init_page_versions();
116131
116269
  });
116132
116270
 
116271
+ // src/themes/classics.ts
116272
+ var CLASSIC_THEME_PRESETS;
116273
+ var init_classics = __esm(() => {
116274
+ CLASSIC_THEME_PRESETS = [
116275
+ {
116276
+ id: "github",
116277
+ name: "GitHub",
116278
+ description: "Primer light / dark. Statuses from Primer's semantic fg colors.",
116279
+ accent: { light: "oklch(0.54 0.191 257.5)", dark: "oklch(0.663 0.169 255.9)" },
116280
+ field: { light: "oklch(1 0 0)", dark: "oklch(0.176 0.014 258.4)" },
116281
+ vars: {
116282
+ light: {
116283
+ "--color-background": "oklch(1 0 0)",
116284
+ "--color-foreground": "oklch(0.254 0.011 254)",
116285
+ "--color-card": "oklch(1 0 0)",
116286
+ "--color-card-foreground": "oklch(0.254 0.011 254)",
116287
+ "--color-surface": "oklch(0.978 0.003 247.9)",
116288
+ "--color-popover": "oklch(1 0 0)",
116289
+ "--color-popover-foreground": "oklch(0.254 0.011 254)",
116290
+ "--color-primary": "oklch(0.54 0.191 257.5)",
116291
+ "--color-primary-foreground": "oklch(1 0 0)",
116292
+ "--color-secondary": "oklch(0.978 0.003 247.9)",
116293
+ "--color-secondary-foreground": "oklch(0.254 0.011 254)",
116294
+ "--color-muted": "oklch(0.978 0.003 247.9)",
116295
+ "--color-muted-foreground": "oklch(0.495 0.022 250.8)",
116296
+ "--color-accent": "oklch(0.947 0.007 247.9)",
116297
+ "--color-accent-foreground": "oklch(0.254 0.011 254)",
116298
+ "--color-border": "oklch(0.876 0.012 248)",
116299
+ "--color-border-subtle": "oklch(0.898 0.01 247.9)",
116300
+ "--color-input": "oklch(0.876 0.012 248)",
116301
+ "--color-ring": "oklch(0.54 0.191 257.5)",
116302
+ "--color-chart-1": "oklch(0.54 0.191 257.5)",
116303
+ "--color-sidebar": "oklch(0.978 0.003 247.9)",
116304
+ "--color-sidebar-foreground": "oklch(0.254 0.011 254)",
116305
+ "--color-sidebar-primary": "oklch(0.54 0.191 257.5)",
116306
+ "--color-sidebar-primary-foreground": "oklch(1 0 0)",
116307
+ "--color-sidebar-accent": "oklch(0.947 0.007 247.9)",
116308
+ "--color-sidebar-accent-foreground": "oklch(0.254 0.011 254)",
116309
+ "--color-sidebar-border": "oklch(0.898 0.01 247.9)",
116310
+ "--color-sidebar-ring": "oklch(0.54 0.191 257.5)",
116311
+ "--color-status-success": "oklch(0.524 0.14 148)",
116312
+ "--color-status-success-strong": "oklch(0.524 0.14 148)",
116313
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
116314
+ "--color-status-active": "oklch(0.662 0.137 79.3)",
116315
+ "--color-status-active-strong": "oklch(0.662 0.137 79.3)",
116316
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
116317
+ "--color-status-error": "oklch(0.552 0.205 24.5)",
116318
+ "--color-status-error-strong": "oklch(0.552 0.205 24.5)",
116319
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116320
+ "--color-status-info": "oklch(0.54 0.191 257.5)",
116321
+ "--color-status-info-strong": "oklch(0.54 0.191 257.5)",
116322
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116323
+ "--color-status-pending": "oklch(0.554 0.117 75)",
116324
+ "--color-status-pending-strong": "oklch(0.554 0.117 75)",
116325
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
116326
+ "--color-status-warning": "oklch(0.557 0.16 44.7)",
116327
+ "--color-status-warning-strong": "oklch(0.557 0.16 44.7)",
116328
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116329
+ "--color-status-paused": "oklch(0.563 0.207 295)",
116330
+ "--color-status-paused-strong": "oklch(0.563 0.207 295)",
116331
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116332
+ "--color-status-neutral": "oklch(0.495 0.022 250.8)",
116333
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116334
+ },
116335
+ dark: {
116336
+ "--color-background": "oklch(0.176 0.014 258.4)",
116337
+ "--color-foreground": "oklch(0.97 0.01 247.9)",
116338
+ "--color-card": "oklch(0.22 0.018 255.7)",
116339
+ "--color-card-foreground": "oklch(0.97 0.01 247.9)",
116340
+ "--color-surface": "oklch(0.104 0.019 248.3)",
116341
+ "--color-popover": "oklch(0.22 0.018 255.7)",
116342
+ "--color-popover-foreground": "oklch(0.97 0.01 247.9)",
116343
+ "--color-primary": "oklch(0.663 0.169 255.9)",
116344
+ "--color-primary-foreground": "oklch(0.176 0.014 258.4)",
116345
+ "--color-secondary": "oklch(0.274 0.018 251.9)",
116346
+ "--color-secondary-foreground": "oklch(0.97 0.01 247.9)",
116347
+ "--color-muted": "oklch(0.274 0.018 251.9)",
116348
+ "--color-muted-foreground": "oklch(0.677 0.016 254.6)",
116349
+ "--color-accent": "oklch(0.292 0.02 260.6)",
116350
+ "--color-accent-foreground": "oklch(0.97 0.01 247.9)",
116351
+ "--color-border": "oklch(0.384 0.018 254.7)",
116352
+ "--color-border-subtle": "oklch(0.326 0.016 255.6)",
116353
+ "--color-input": "oklch(0.384 0.018 254.7)",
116354
+ "--color-ring": "oklch(0.663 0.169 255.9)",
116355
+ "--color-chart-1": "oklch(0.663 0.169 255.9)",
116356
+ "--color-sidebar": "oklch(0.104 0.019 248.3)",
116357
+ "--color-sidebar-foreground": "oklch(0.97 0.01 247.9)",
116358
+ "--color-sidebar-primary": "oklch(0.663 0.169 255.9)",
116359
+ "--color-sidebar-primary-foreground": "oklch(0.176 0.014 258.4)",
116360
+ "--color-sidebar-accent": "oklch(0.292 0.02 260.6)",
116361
+ "--color-sidebar-accent-foreground": "oklch(0.97 0.01 247.9)",
116362
+ "--color-sidebar-border": "oklch(0.326 0.016 255.6)",
116363
+ "--color-sidebar-ring": "oklch(0.663 0.169 255.9)",
116364
+ "--color-status-success": "oklch(0.695 0.181 145.6)",
116365
+ "--color-status-success-strong": "oklch(0.695 0.181 145.6)",
116366
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
116367
+ "--color-status-active": "oklch(0.72 0.14 79.9)",
116368
+ "--color-status-active-strong": "oklch(0.72 0.14 79.9)",
116369
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
116370
+ "--color-status-error": "oklch(0.665 0.205 27)",
116371
+ "--color-status-error-strong": "oklch(0.665 0.205 27)",
116372
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116373
+ "--color-status-info": "oklch(0.663 0.169 255.9)",
116374
+ "--color-status-info-strong": "oklch(0.663 0.169 255.9)",
116375
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116376
+ "--color-status-pending": "oklch(0.79 0.139 85.2)",
116377
+ "--color-status-pending-strong": "oklch(0.79 0.139 85.2)",
116378
+ "--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
116379
+ "--color-status-warning": "oklch(0.654 0.158 48.4)",
116380
+ "--color-status-warning-strong": "oklch(0.654 0.158 48.4)",
116381
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116382
+ "--color-status-paused": "oklch(0.688 0.178 298.9)",
116383
+ "--color-status-paused-strong": "oklch(0.688 0.178 298.9)",
116384
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116385
+ "--color-status-neutral": "oklch(0.677 0.016 254.6)",
116386
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116387
+ }
116388
+ }
116389
+ },
116390
+ {
116391
+ id: "vscode",
116392
+ name: "VS Code",
116393
+ description: "Light+ / Dark+ chrome; statuses from editor/git decoration colors.",
116394
+ accent: { light: "oklch(0.491 0.16 254.6)", dark: "oklch(0.568 0.167 251.3)" },
116395
+ field: { light: "oklch(1 0 0)", dark: "oklch(0.235 0 0)" },
116396
+ vars: {
116397
+ light: {
116398
+ "--color-background": "oklch(1 0 0)",
116399
+ "--color-foreground": "oklch(0.352 0 0)",
116400
+ "--color-card": "oklch(1 0 0)",
116401
+ "--color-card-foreground": "oklch(0.352 0 0)",
116402
+ "--color-surface": "oklch(0.964 0 0)",
116403
+ "--color-popover": "oklch(1 0 0)",
116404
+ "--color-popover-foreground": "oklch(0.352 0 0)",
116405
+ "--color-primary": "oklch(0.491 0.16 254.6)",
116406
+ "--color-primary-foreground": "oklch(1 0 0)",
116407
+ "--color-secondary": "oklch(0.964 0 0)",
116408
+ "--color-secondary-foreground": "oklch(0.352 0 0)",
116409
+ "--color-muted": "oklch(0.964 0 0)",
116410
+ "--color-muted-foreground": "oklch(0.493 0 0)",
116411
+ "--color-accent": "oklch(0.931 0 0)",
116412
+ "--color-accent-foreground": "oklch(0.352 0 0)",
116413
+ "--color-border": "oklch(0.922 0 0)",
116414
+ "--color-border-subtle": "oklch(0.949 0 0)",
116415
+ "--color-input": "oklch(0.922 0 0)",
116416
+ "--color-ring": "oklch(0.491 0.16 254.6)",
116417
+ "--color-chart-1": "oklch(0.491 0.16 254.6)",
116418
+ "--color-sidebar": "oklch(0.964 0 0)",
116419
+ "--color-sidebar-foreground": "oklch(0.352 0 0)",
116420
+ "--color-sidebar-primary": "oklch(0.491 0.16 254.6)",
116421
+ "--color-sidebar-primary-foreground": "oklch(1 0 0)",
116422
+ "--color-sidebar-accent": "oklch(0.931 0 0)",
116423
+ "--color-sidebar-accent-foreground": "oklch(0.352 0 0)",
116424
+ "--color-sidebar-border": "oklch(0.949 0 0)",
116425
+ "--color-sidebar-ring": "oklch(0.491 0.16 254.6)",
116426
+ "--color-status-success": "oklch(0.51 0.165 142.7)",
116427
+ "--color-status-success-strong": "oklch(0.51 0.165 142.7)",
116428
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
116429
+ "--color-status-active": "oklch(0.497 0.107 68.9)",
116430
+ "--color-status-active-strong": "oklch(0.497 0.107 68.9)",
116431
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
116432
+ "--color-status-error": "oklch(0.559 0.193 26.1)",
116433
+ "--color-status-error-strong": "oklch(0.559 0.193 26.1)",
116434
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116435
+ "--color-status-info": "oklch(0.491 0.16 254.6)",
116436
+ "--color-status-info-strong": "oklch(0.491 0.16 254.6)",
116437
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116438
+ "--color-status-pending": "oklch(0.589 0.119 80.7)",
116439
+ "--color-status-pending-strong": "oklch(0.589 0.119 80.7)",
116440
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
116441
+ "--color-status-warning": "oklch(0.664 0.137 79.8)",
116442
+ "--color-status-warning-strong": "oklch(0.664 0.137 79.8)",
116443
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116444
+ "--color-status-paused": "oklch(0.424 0.158 306.8)",
116445
+ "--color-status-paused-strong": "oklch(0.424 0.158 306.8)",
116446
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116447
+ "--color-status-neutral": "oklch(0.493 0 0)",
116448
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116449
+ },
116450
+ dark: {
116451
+ "--color-background": "oklch(0.235 0 0)",
116452
+ "--color-foreground": "oklch(0.845 0 0)",
116453
+ "--color-card": "oklch(0.265 0.002 286.3)",
116454
+ "--color-card-foreground": "oklch(0.845 0 0)",
116455
+ "--color-surface": "oklch(0.265 0.002 286.3)",
116456
+ "--color-popover": "oklch(0.265 0.002 286.3)",
116457
+ "--color-popover-foreground": "oklch(0.845 0 0)",
116458
+ "--color-primary": "oklch(0.568 0.167 251.3)",
116459
+ "--color-primary-foreground": "oklch(1 0 0)",
116460
+ "--color-secondary": "oklch(0.297 0 0)",
116461
+ "--color-secondary-foreground": "oklch(0.845 0 0)",
116462
+ "--color-muted": "oklch(0.297 0 0)",
116463
+ "--color-muted-foreground": "oklch(0.696 0 0)",
116464
+ "--color-accent": "oklch(0.339 0.01 285.8)",
116465
+ "--color-accent-foreground": "oklch(0.845 0 0)",
116466
+ "--color-border": "oklch(0.375 0 0)",
116467
+ "--color-border-subtle": "oklch(0.321 0 0)",
116468
+ "--color-input": "oklch(0.375 0 0)",
116469
+ "--color-ring": "oklch(0.568 0.167 251.3)",
116470
+ "--color-chart-1": "oklch(0.568 0.167 251.3)",
116471
+ "--color-sidebar": "oklch(0.265 0.002 286.3)",
116472
+ "--color-sidebar-foreground": "oklch(0.845 0 0)",
116473
+ "--color-sidebar-primary": "oklch(0.568 0.167 251.3)",
116474
+ "--color-sidebar-primary-foreground": "oklch(1 0 0)",
116475
+ "--color-sidebar-accent": "oklch(0.339 0.01 285.8)",
116476
+ "--color-sidebar-accent-foreground": "oklch(0.845 0 0)",
116477
+ "--color-sidebar-border": "oklch(0.321 0 0)",
116478
+ "--color-sidebar-ring": "oklch(0.568 0.167 251.3)",
116479
+ "--color-status-success": "oklch(0.794 0.128 143.1)",
116480
+ "--color-status-success-strong": "oklch(0.794 0.128 143.1)",
116481
+ "--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
116482
+ "--color-status-active": "oklch(0.8 0.086 85.1)",
116483
+ "--color-status-active-strong": "oklch(0.8 0.086 85.1)",
116484
+ "--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
116485
+ "--color-status-error": "oklch(0.738 0.138 32.5)",
116486
+ "--color-status-error-strong": "oklch(0.738 0.138 32.5)",
116487
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116488
+ "--color-status-info": "oklch(0.666 0.181 254.6)",
116489
+ "--color-status-info-strong": "oklch(0.666 0.181 254.6)",
116490
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116491
+ "--color-status-pending": "oklch(0.825 0.077 77.5)",
116492
+ "--color-status-pending-strong": "oklch(0.825 0.077 77.5)",
116493
+ "--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
116494
+ "--color-status-warning": "oklch(0.74 0.152 92.8)",
116495
+ "--color-status-warning-strong": "oklch(0.74 0.152 92.8)",
116496
+ "--color-status-warning-foreground": "oklch(0.21 0.006 285.885)",
116497
+ "--color-status-paused": "oklch(0.681 0.134 309.1)",
116498
+ "--color-status-paused-strong": "oklch(0.681 0.134 309.1)",
116499
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116500
+ "--color-status-neutral": "oklch(0.64 0 0)",
116501
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116502
+ }
116503
+ }
116504
+ },
116505
+ {
116506
+ id: "material",
116507
+ name: "Material",
116508
+ description: "Material Theme palenight-adjacent default; statuses from its accent set.",
116509
+ accent: { light: "oklch(0.604 0.091 260)", dark: "oklch(0.744 0.131 264.3)" },
116510
+ field: { light: "oklch(0.985 0 0)", dark: "oklch(0.309 0.019 229.8)" },
116511
+ vars: {
116512
+ light: {
116513
+ "--color-background": "oklch(0.985 0 0)",
116514
+ "--color-foreground": "oklch(0.387 0.025 229.8)",
116515
+ "--color-card": "oklch(1 0 0)",
116516
+ "--color-card-foreground": "oklch(0.387 0.025 229.8)",
116517
+ "--color-surface": "oklch(0.97 0 0)",
116518
+ "--color-popover": "oklch(1 0 0)",
116519
+ "--color-popover-foreground": "oklch(0.387 0.025 229.8)",
116520
+ "--color-primary": "oklch(0.604 0.091 260)",
116521
+ "--color-primary-foreground": "oklch(1 0 0)",
116522
+ "--color-secondary": "oklch(0.949 0 0)",
116523
+ "--color-secondary-foreground": "oklch(0.387 0.025 229.8)",
116524
+ "--color-muted": "oklch(0.949 0 0)",
116525
+ "--color-muted-foreground": "oklch(0.706 0.027 229.3)",
116526
+ "--color-accent": "oklch(0.928 0.001 286.4)",
116527
+ "--color-accent-foreground": "oklch(0.387 0.025 229.8)",
116528
+ "--color-border": "oklch(0.907 0 0)",
116529
+ "--color-border-subtle": "oklch(0.94 0 0)",
116530
+ "--color-input": "oklch(0.907 0 0)",
116531
+ "--color-ring": "oklch(0.604 0.091 260)",
116532
+ "--color-chart-1": "oklch(0.604 0.091 260)",
116533
+ "--color-sidebar": "oklch(0.97 0 0)",
116534
+ "--color-sidebar-foreground": "oklch(0.387 0.025 229.8)",
116535
+ "--color-sidebar-primary": "oklch(0.604 0.091 260)",
116536
+ "--color-sidebar-primary-foreground": "oklch(1 0 0)",
116537
+ "--color-sidebar-accent": "oklch(0.928 0.001 286.4)",
116538
+ "--color-sidebar-accent-foreground": "oklch(0.387 0.025 229.8)",
116539
+ "--color-sidebar-border": "oklch(0.94 0 0)",
116540
+ "--color-sidebar-ring": "oklch(0.604 0.091 260)",
116541
+ "--color-status-success": "oklch(0.733 0.131 127.8)",
116542
+ "--color-status-success-strong": "oklch(0.733 0.131 127.8)",
116543
+ "--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
116544
+ "--color-status-active": "oklch(0.825 0.161 77.4)",
116545
+ "--color-status-active-strong": "oklch(0.825 0.161 77.4)",
116546
+ "--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
116547
+ "--color-status-error": "oklch(0.608 0.209 27)",
116548
+ "--color-status-error-strong": "oklch(0.608 0.209 27)",
116549
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116550
+ "--color-status-info": "oklch(0.604 0.091 260)",
116551
+ "--color-status-info-strong": "oklch(0.604 0.091 260)",
116552
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116553
+ "--color-status-pending": "oklch(0.762 0.135 76.6)",
116554
+ "--color-status-pending-strong": "oklch(0.762 0.135 76.6)",
116555
+ "--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
116556
+ "--color-status-warning": "oklch(0.697 0.178 36.3)",
116557
+ "--color-status-warning-strong": "oklch(0.697 0.178 36.3)",
116558
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116559
+ "--color-status-paused": "oklch(0.579 0.247 288.2)",
116560
+ "--color-status-paused-strong": "oklch(0.579 0.247 288.2)",
116561
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116562
+ "--color-status-neutral": "oklch(0.706 0.027 229.3)",
116563
+ "--color-status-neutral-foreground": "oklch(0.21 0.006 285.885)"
116564
+ },
116565
+ dark: {
116566
+ "--color-background": "oklch(0.309 0.019 229.8)",
116567
+ "--color-foreground": "oklch(0.988 0.018 196.9)",
116568
+ "--color-card": "oklch(0.375 0.026 211.3)",
116569
+ "--color-card-foreground": "oklch(0.988 0.018 196.9)",
116570
+ "--color-surface": "oklch(0.347 0.022 229.8)",
116571
+ "--color-popover": "oklch(0.375 0.026 211.3)",
116572
+ "--color-popover-foreground": "oklch(0.988 0.018 196.9)",
116573
+ "--color-primary": "oklch(0.744 0.131 264.3)",
116574
+ "--color-primary-foreground": "oklch(0.309 0.019 229.8)",
116575
+ "--color-secondary": "oklch(0.387 0.025 229.8)",
116576
+ "--color-secondary-foreground": "oklch(0.988 0.018 196.9)",
116577
+ "--color-muted": "oklch(0.387 0.025 229.8)",
116578
+ "--color-muted-foreground": "oklch(0.793 0.018 229.1)",
116579
+ "--color-accent": "oklch(0.418 0.02 225.7)",
116580
+ "--color-accent-foreground": "oklch(0.988 0.018 196.9)",
116581
+ "--color-border": "oklch(0.387 0.025 229.8)",
116582
+ "--color-border-subtle": "oklch(0.375 0.026 211.3)",
116583
+ "--color-input": "oklch(0.387 0.025 229.8)",
116584
+ "--color-ring": "oklch(0.744 0.131 264.3)",
116585
+ "--color-chart-1": "oklch(0.744 0.131 264.3)",
116586
+ "--color-sidebar": "oklch(0.347 0.022 229.8)",
116587
+ "--color-sidebar-foreground": "oklch(0.988 0.018 196.9)",
116588
+ "--color-sidebar-primary": "oklch(0.744 0.131 264.3)",
116589
+ "--color-sidebar-primary-foreground": "oklch(0.309 0.019 229.8)",
116590
+ "--color-sidebar-accent": "oklch(0.418 0.02 225.7)",
116591
+ "--color-sidebar-accent-foreground": "oklch(0.988 0.018 196.9)",
116592
+ "--color-sidebar-border": "oklch(0.375 0.026 211.3)",
116593
+ "--color-sidebar-ring": "oklch(0.744 0.131 264.3)",
116594
+ "--color-status-success": "oklch(0.884 0.124 126.8)",
116595
+ "--color-status-success-strong": "oklch(0.884 0.124 126.8)",
116596
+ "--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
116597
+ "--color-status-active": "oklch(0.869 0.128 81.1)",
116598
+ "--color-status-active-strong": "oklch(0.869 0.128 81.1)",
116599
+ "--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
116600
+ "--color-status-error": "oklch(0.701 0.157 18.6)",
116601
+ "--color-status-error-strong": "oklch(0.701 0.157 18.6)",
116602
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116603
+ "--color-status-info": "oklch(0.744 0.131 264.3)",
116604
+ "--color-status-info-strong": "oklch(0.744 0.131 264.3)",
116605
+ "--color-status-info-foreground": "oklch(0.21 0.006 285.885)",
116606
+ "--color-status-pending": "oklch(0.797 0.126 81.2)",
116607
+ "--color-status-pending-strong": "oklch(0.797 0.126 81.2)",
116608
+ "--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
116609
+ "--color-status-warning": "oklch(0.749 0.138 37.5)",
116610
+ "--color-status-warning-strong": "oklch(0.749 0.138 37.5)",
116611
+ "--color-status-warning-foreground": "oklch(0.21 0.006 285.885)",
116612
+ "--color-status-paused": "oklch(0.743 0.135 311.1)",
116613
+ "--color-status-paused-strong": "oklch(0.743 0.135 311.1)",
116614
+ "--color-status-paused-foreground": "oklch(0.21 0.006 285.885)",
116615
+ "--color-status-neutral": "oklch(0.793 0.018 229.1)",
116616
+ "--color-status-neutral-foreground": "oklch(0.21 0.006 285.885)"
116617
+ }
116618
+ }
116619
+ },
116620
+ {
116621
+ id: "solarized",
116622
+ name: "Solarized",
116623
+ description: "Ethan Schoonover's palette; accents are mode-invariant by design (narrow palette: active/pending/warning share stops).",
116624
+ accent: { light: "oklch(0.615 0.139 244.9)", dark: "oklch(0.615 0.139 244.9)" },
116625
+ field: { light: "oklch(0.974 0.026 90.1)", dark: "oklch(0.267 0.049 219.8)" },
116626
+ vars: {
116627
+ light: {
116628
+ "--color-background": "oklch(0.974 0.026 90.1)",
116629
+ "--color-foreground": "oklch(0.523 0.028 219.1)",
116630
+ "--color-card": "oklch(0.974 0.026 90.1)",
116631
+ "--color-card-foreground": "oklch(0.523 0.028 219.1)",
116632
+ "--color-surface": "oklch(0.931 0.026 92.4)",
116633
+ "--color-popover": "oklch(0.974 0.026 90.1)",
116634
+ "--color-popover-foreground": "oklch(0.523 0.028 219.1)",
116635
+ "--color-primary": "oklch(0.615 0.139 244.9)",
116636
+ "--color-primary-foreground": "oklch(0.974 0.026 90.1)",
116637
+ "--color-secondary": "oklch(0.931 0.026 92.4)",
116638
+ "--color-secondary-foreground": "oklch(0.523 0.028 219.1)",
116639
+ "--color-muted": "oklch(0.931 0.026 92.4)",
116640
+ "--color-muted-foreground": "oklch(0.698 0.016 196.8)",
116641
+ "--color-accent": "oklch(0.91 0.029 91.7)",
116642
+ "--color-accent-foreground": "oklch(0.523 0.028 219.1)",
116643
+ "--color-border": "oklch(0.863 0.031 92.3)",
116644
+ "--color-border-subtle": "oklch(0.901 0.028 90.9)",
116645
+ "--color-input": "oklch(0.863 0.031 92.3)",
116646
+ "--color-ring": "oklch(0.615 0.139 244.9)",
116647
+ "--color-chart-1": "oklch(0.615 0.139 244.9)",
116648
+ "--color-sidebar": "oklch(0.931 0.026 92.4)",
116649
+ "--color-sidebar-foreground": "oklch(0.523 0.028 219.1)",
116650
+ "--color-sidebar-primary": "oklch(0.615 0.139 244.9)",
116651
+ "--color-sidebar-primary-foreground": "oklch(0.974 0.026 90.1)",
116652
+ "--color-sidebar-accent": "oklch(0.91 0.029 91.7)",
116653
+ "--color-sidebar-accent-foreground": "oklch(0.523 0.028 219.1)",
116654
+ "--color-sidebar-border": "oklch(0.901 0.028 90.9)",
116655
+ "--color-sidebar-ring": "oklch(0.615 0.139 244.9)",
116656
+ "--color-status-success": "oklch(0.644 0.151 118.6)",
116657
+ "--color-status-success-strong": "oklch(0.644 0.151 118.6)",
116658
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
116659
+ "--color-status-active": "oklch(0.654 0.134 85.7)",
116660
+ "--color-status-active-strong": "oklch(0.654 0.134 85.7)",
116661
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
116662
+ "--color-status-error": "oklch(0.586 0.206 27.1)",
116663
+ "--color-status-error-strong": "oklch(0.586 0.206 27.1)",
116664
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116665
+ "--color-status-info": "oklch(0.615 0.139 244.9)",
116666
+ "--color-status-info-strong": "oklch(0.615 0.139 244.9)",
116667
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116668
+ "--color-status-pending": "oklch(0.654 0.134 85.7)",
116669
+ "--color-status-pending-strong": "oklch(0.654 0.134 85.7)",
116670
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
116671
+ "--color-status-warning": "oklch(0.581 0.173 39.5)",
116672
+ "--color-status-warning-strong": "oklch(0.581 0.173 39.5)",
116673
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116674
+ "--color-status-paused": "oklch(0.582 0.126 279.1)",
116675
+ "--color-status-paused-strong": "oklch(0.582 0.126 279.1)",
116676
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116677
+ "--color-status-neutral": "oklch(0.698 0.016 196.8)",
116678
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116679
+ },
116680
+ dark: {
116681
+ "--color-background": "oklch(0.267 0.049 219.8)",
116682
+ "--color-foreground": "oklch(0.698 0.016 196.8)",
116683
+ "--color-card": "oklch(0.309 0.052 219.7)",
116684
+ "--color-card-foreground": "oklch(0.698 0.016 196.8)",
116685
+ "--color-surface": "oklch(0.309 0.052 219.7)",
116686
+ "--color-popover": "oklch(0.309 0.052 219.7)",
116687
+ "--color-popover-foreground": "oklch(0.698 0.016 196.8)",
116688
+ "--color-primary": "oklch(0.615 0.139 244.9)",
116689
+ "--color-primary-foreground": "oklch(0.974 0.026 90.1)",
116690
+ "--color-secondary": "oklch(0.36 0.06 220.8)",
116691
+ "--color-secondary-foreground": "oklch(0.698 0.016 196.8)",
116692
+ "--color-muted": "oklch(0.36 0.06 220.8)",
116693
+ "--color-muted-foreground": "oklch(0.568 0.029 221.9)",
116694
+ "--color-accent": "oklch(0.409 0.066 220.7)",
116695
+ "--color-accent-foreground": "oklch(0.698 0.016 196.8)",
116696
+ "--color-border": "oklch(0.435 0.065 215.8)",
116697
+ "--color-border-subtle": "oklch(0.366 0.057 216.3)",
116698
+ "--color-input": "oklch(0.435 0.065 215.8)",
116699
+ "--color-ring": "oklch(0.615 0.139 244.9)",
116700
+ "--color-chart-1": "oklch(0.615 0.139 244.9)",
116701
+ "--color-sidebar": "oklch(0.309 0.052 219.7)",
116702
+ "--color-sidebar-foreground": "oklch(0.698 0.016 196.8)",
116703
+ "--color-sidebar-primary": "oklch(0.615 0.139 244.9)",
116704
+ "--color-sidebar-primary-foreground": "oklch(0.974 0.026 90.1)",
116705
+ "--color-sidebar-accent": "oklch(0.409 0.066 220.7)",
116706
+ "--color-sidebar-accent-foreground": "oklch(0.698 0.016 196.8)",
116707
+ "--color-sidebar-border": "oklch(0.366 0.057 216.3)",
116708
+ "--color-sidebar-ring": "oklch(0.615 0.139 244.9)",
116709
+ "--color-status-success": "oklch(0.644 0.151 118.6)",
116710
+ "--color-status-success-strong": "oklch(0.644 0.151 118.6)",
116711
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
116712
+ "--color-status-active": "oklch(0.654 0.134 85.7)",
116713
+ "--color-status-active-strong": "oklch(0.654 0.134 85.7)",
116714
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
116715
+ "--color-status-error": "oklch(0.586 0.206 27.1)",
116716
+ "--color-status-error-strong": "oklch(0.586 0.206 27.1)",
116717
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116718
+ "--color-status-info": "oklch(0.615 0.139 244.9)",
116719
+ "--color-status-info-strong": "oklch(0.615 0.139 244.9)",
116720
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116721
+ "--color-status-pending": "oklch(0.654 0.134 85.7)",
116722
+ "--color-status-pending-strong": "oklch(0.654 0.134 85.7)",
116723
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
116724
+ "--color-status-warning": "oklch(0.581 0.173 39.5)",
116725
+ "--color-status-warning-strong": "oklch(0.581 0.173 39.5)",
116726
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116727
+ "--color-status-paused": "oklch(0.582 0.126 279.1)",
116728
+ "--color-status-paused-strong": "oklch(0.582 0.126 279.1)",
116729
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116730
+ "--color-status-neutral": "oklch(0.523 0.028 219.1)",
116731
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116732
+ }
116733
+ }
116734
+ },
116735
+ {
116736
+ id: "tokyo",
116737
+ name: "Tokyo Night",
116738
+ description: "Storm/Night dark + Day light; statuses from the terminal accent set.",
116739
+ accent: { light: "oklch(0.6 0.18 257.5)", dark: "oklch(0.719 0.132 264.2)" },
116740
+ field: { light: "oklch(0.913 0.007 277.2)", dark: "oklch(0.226 0.021 280.5)" },
116741
+ vars: {
116742
+ light: {
116743
+ "--color-background": "oklch(0.913 0.007 277.2)",
116744
+ "--color-foreground": "oklch(0.359 0.051 273.2)",
116745
+ "--color-card": "oklch(0.935 0.004 286.3)",
116746
+ "--color-card-foreground": "oklch(0.359 0.051 273.2)",
116747
+ "--color-surface": "oklch(0.877 0.007 277.2)",
116748
+ "--color-popover": "oklch(0.935 0.004 286.3)",
116749
+ "--color-popover-foreground": "oklch(0.359 0.051 273.2)",
116750
+ "--color-primary": "oklch(0.6 0.18 257.5)",
116751
+ "--color-primary-foreground": "oklch(0.913 0.007 277.2)",
116752
+ "--color-secondary": "oklch(0.877 0.007 277.2)",
116753
+ "--color-secondary-foreground": "oklch(0.359 0.051 273.2)",
116754
+ "--color-muted": "oklch(0.877 0.007 277.2)",
116755
+ "--color-muted-foreground": "oklch(0.555 0.066 275.7)",
116756
+ "--color-accent": "oklch(0.84 0.013 276.1)",
116757
+ "--color-accent-foreground": "oklch(0.359 0.051 273.2)",
116758
+ "--color-border": "oklch(0.828 0.014 277)",
116759
+ "--color-border-subtle": "oklch(0.865 0.011 274.9)",
116760
+ "--color-input": "oklch(0.828 0.014 277)",
116761
+ "--color-ring": "oklch(0.6 0.18 257.5)",
116762
+ "--color-chart-1": "oklch(0.6 0.18 257.5)",
116763
+ "--color-sidebar": "oklch(0.877 0.007 277.2)",
116764
+ "--color-sidebar-foreground": "oklch(0.359 0.051 273.2)",
116765
+ "--color-sidebar-primary": "oklch(0.6 0.18 257.5)",
116766
+ "--color-sidebar-primary-foreground": "oklch(0.913 0.007 277.2)",
116767
+ "--color-sidebar-accent": "oklch(0.84 0.013 276.1)",
116768
+ "--color-sidebar-accent-foreground": "oklch(0.359 0.051 273.2)",
116769
+ "--color-sidebar-border": "oklch(0.865 0.011 274.9)",
116770
+ "--color-sidebar-ring": "oklch(0.6 0.18 257.5)",
116771
+ "--color-status-success": "oklch(0.525 0.093 130.3)",
116772
+ "--color-status-success-strong": "oklch(0.525 0.093 130.3)",
116773
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
116774
+ "--color-status-active": "oklch(0.553 0.075 75.2)",
116775
+ "--color-status-active-strong": "oklch(0.553 0.075 75.2)",
116776
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
116777
+ "--color-status-error": "oklch(0.634 0.233 11.6)",
116778
+ "--color-status-error-strong": "oklch(0.634 0.233 11.6)",
116779
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116780
+ "--color-status-info": "oklch(0.6 0.18 257.5)",
116781
+ "--color-status-info-strong": "oklch(0.6 0.18 257.5)",
116782
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116783
+ "--color-status-pending": "oklch(0.553 0.075 75.2)",
116784
+ "--color-status-pending-strong": "oklch(0.553 0.075 75.2)",
116785
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
116786
+ "--color-status-warning": "oklch(0.565 0.138 56.1)",
116787
+ "--color-status-warning-strong": "oklch(0.565 0.138 56.1)",
116788
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116789
+ "--color-status-paused": "oklch(0.515 0.178 299.2)",
116790
+ "--color-status-paused-strong": "oklch(0.515 0.178 299.2)",
116791
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116792
+ "--color-status-neutral": "oklch(0.555 0.066 275.7)",
116793
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116794
+ },
116795
+ dark: {
116796
+ "--color-background": "oklch(0.226 0.021 280.5)",
116797
+ "--color-foreground": "oklch(0.846 0.061 274.8)",
116798
+ "--color-card": "oklch(0.261 0.034 274.2)",
116799
+ "--color-card-foreground": "oklch(0.846 0.061 274.8)",
116800
+ "--color-surface": "oklch(0.204 0.016 284.9)",
116801
+ "--color-popover": "oklch(0.261 0.034 274.2)",
116802
+ "--color-popover-foreground": "oklch(0.846 0.061 274.8)",
116803
+ "--color-primary": "oklch(0.719 0.132 264.2)",
116804
+ "--color-primary-foreground": "oklch(0.226 0.021 280.5)",
116805
+ "--color-secondary": "oklch(0.306 0.037 273.2)",
116806
+ "--color-secondary-foreground": "oklch(0.846 0.061 274.8)",
116807
+ "--color-muted": "oklch(0.306 0.037 273.2)",
116808
+ "--color-muted-foreground": "oklch(0.593 0.044 278.8)",
116809
+ "--color-accent": "oklch(0.332 0.045 275)",
116810
+ "--color-accent-foreground": "oklch(0.846 0.061 274.8)",
116811
+ "--color-border": "oklch(0.387 0.054 273.9)",
116812
+ "--color-border-subtle": "oklch(0.309 0.033 272.3)",
116813
+ "--color-input": "oklch(0.387 0.054 273.9)",
116814
+ "--color-ring": "oklch(0.719 0.132 264.2)",
116815
+ "--color-chart-1": "oklch(0.719 0.132 264.2)",
116816
+ "--color-sidebar": "oklch(0.204 0.016 284.9)",
116817
+ "--color-sidebar-foreground": "oklch(0.846 0.061 274.8)",
116818
+ "--color-sidebar-primary": "oklch(0.719 0.132 264.2)",
116819
+ "--color-sidebar-primary-foreground": "oklch(0.226 0.021 280.5)",
116820
+ "--color-sidebar-accent": "oklch(0.332 0.045 275)",
116821
+ "--color-sidebar-accent-foreground": "oklch(0.846 0.061 274.8)",
116822
+ "--color-sidebar-border": "oklch(0.309 0.033 272.3)",
116823
+ "--color-sidebar-ring": "oklch(0.719 0.132 264.2)",
116824
+ "--color-status-success": "oklch(0.795 0.139 130.1)",
116825
+ "--color-status-success-strong": "oklch(0.795 0.139 130.1)",
116826
+ "--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
116827
+ "--color-status-active": "oklch(0.784 0.106 75.4)",
116828
+ "--color-status-active-strong": "oklch(0.784 0.106 75.4)",
116829
+ "--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
116830
+ "--color-status-error": "oklch(0.723 0.159 10.3)",
116831
+ "--color-status-error-strong": "oklch(0.723 0.159 10.3)",
116832
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116833
+ "--color-status-info": "oklch(0.82 0.105 235.7)",
116834
+ "--color-status-info-strong": "oklch(0.82 0.105 235.7)",
116835
+ "--color-status-info-foreground": "oklch(0.21 0.006 285.885)",
116836
+ "--color-status-pending": "oklch(0.783 0.1 81.4)",
116837
+ "--color-status-pending-strong": "oklch(0.783 0.1 81.4)",
116838
+ "--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
116839
+ "--color-status-warning": "oklch(0.787 0.137 50.6)",
116840
+ "--color-status-warning-strong": "oklch(0.787 0.137 50.6)",
116841
+ "--color-status-warning-foreground": "oklch(0.21 0.006 285.885)",
116842
+ "--color-status-paused": "oklch(0.751 0.134 299.5)",
116843
+ "--color-status-paused-strong": "oklch(0.751 0.134 299.5)",
116844
+ "--color-status-paused-foreground": "oklch(0.21 0.006 285.885)",
116845
+ "--color-status-neutral": "oklch(0.593 0.044 278.8)",
116846
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116847
+ }
116848
+ }
116849
+ },
116850
+ {
116851
+ id: "monokai",
116852
+ name: "Monokai",
116853
+ description: "Classic dark; light is an adapted sketch (no canonical light exists). Primary = the iconic pink.",
116854
+ accent: { light: "oklch(0.574 0.218 7.8)", dark: "oklch(0.642 0.24 7.5)" },
116855
+ field: { light: "oklch(0.985 0 0)", dark: "oklch(0.274 0.011 114.8)" },
116856
+ vars: {
116857
+ light: {
116858
+ "--color-background": "oklch(0.985 0 0)",
116859
+ "--color-foreground": "oklch(0.274 0.011 114.8)",
116860
+ "--color-card": "oklch(1 0 0)",
116861
+ "--color-card-foreground": "oklch(0.274 0.011 114.8)",
116862
+ "--color-surface": "oklch(0.961 0.003 106.4)",
116863
+ "--color-popover": "oklch(1 0 0)",
116864
+ "--color-popover-foreground": "oklch(0.274 0.011 114.8)",
116865
+ "--color-primary": "oklch(0.574 0.218 7.8)",
116866
+ "--color-primary-foreground": "oklch(1 0 0)",
116867
+ "--color-secondary": "oklch(0.943 0.003 106.5)",
116868
+ "--color-secondary-foreground": "oklch(0.274 0.011 114.8)",
116869
+ "--color-muted": "oklch(0.943 0.003 106.5)",
116870
+ "--color-muted-foreground": "oklch(0.547 0.029 97.4)",
116871
+ "--color-accent": "oklch(0.915 0.005 106.5)",
116872
+ "--color-accent-foreground": "oklch(0.274 0.011 114.8)",
116873
+ "--color-border": "oklch(0.893 0.007 106.5)",
116874
+ "--color-border-subtle": "oklch(0.93 0.005 106.5)",
116875
+ "--color-input": "oklch(0.893 0.007 106.5)",
116876
+ "--color-ring": "oklch(0.574 0.218 7.8)",
116877
+ "--color-chart-1": "oklch(0.574 0.218 7.8)",
116878
+ "--color-sidebar": "oklch(0.961 0.003 106.4)",
116879
+ "--color-sidebar-foreground": "oklch(0.274 0.011 114.8)",
116880
+ "--color-sidebar-primary": "oklch(0.574 0.218 7.8)",
116881
+ "--color-sidebar-primary-foreground": "oklch(1 0 0)",
116882
+ "--color-sidebar-accent": "oklch(0.915 0.005 106.5)",
116883
+ "--color-sidebar-accent-foreground": "oklch(0.274 0.011 114.8)",
116884
+ "--color-sidebar-border": "oklch(0.93 0.005 106.5)",
116885
+ "--color-sidebar-ring": "oklch(0.574 0.218 7.8)",
116886
+ "--color-status-success": "oklch(0.611 0.159 127.7)",
116887
+ "--color-status-success-strong": "oklch(0.611 0.159 127.7)",
116888
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
116889
+ "--color-status-active": "oklch(0.651 0.133 89.1)",
116890
+ "--color-status-active-strong": "oklch(0.651 0.133 89.1)",
116891
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
116892
+ "--color-status-error": "oklch(0.574 0.218 7.8)",
116893
+ "--color-status-error-strong": "oklch(0.574 0.218 7.8)",
116894
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116895
+ "--color-status-info": "oklch(0.626 0.111 219)",
116896
+ "--color-status-info-strong": "oklch(0.626 0.111 219)",
116897
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
116898
+ "--color-status-pending": "oklch(0.651 0.133 89.1)",
116899
+ "--color-status-pending-strong": "oklch(0.651 0.133 89.1)",
116900
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
116901
+ "--color-status-warning": "oklch(0.654 0.147 65)",
116902
+ "--color-status-warning-strong": "oklch(0.654 0.147 65)",
116903
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
116904
+ "--color-status-paused": "oklch(0.554 0.15 296.1)",
116905
+ "--color-status-paused-strong": "oklch(0.554 0.15 296.1)",
116906
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116907
+ "--color-status-neutral": "oklch(0.547 0.029 97.4)",
116908
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116909
+ },
116910
+ dark: {
116911
+ "--color-background": "oklch(0.274 0.011 114.8)",
116912
+ "--color-foreground": "oklch(0.977 0.008 106.5)",
116913
+ "--color-card": "oklch(0.298 0.011 114.7)",
116914
+ "--color-card-foreground": "oklch(0.977 0.008 106.5)",
116915
+ "--color-surface": "oklch(0.237 0.006 121.9)",
116916
+ "--color-popover": "oklch(0.298 0.011 114.7)",
116917
+ "--color-popover-foreground": "oklch(0.977 0.008 106.5)",
116918
+ "--color-primary": "oklch(0.642 0.24 7.5)",
116919
+ "--color-primary-foreground": "oklch(0.274 0.011 114.8)",
116920
+ "--color-secondary": "oklch(0.325 0.014 113)",
116921
+ "--color-secondary-foreground": "oklch(0.977 0.008 106.5)",
116922
+ "--color-muted": "oklch(0.325 0.014 113)",
116923
+ "--color-muted-foreground": "oklch(0.654 0.009 114.3)",
116924
+ "--color-accent": "oklch(0.364 0.015 112.3)",
116925
+ "--color-accent-foreground": "oklch(0.977 0.008 106.5)",
116926
+ "--color-border": "oklch(0.401 0.018 111.4)",
116927
+ "--color-border-subtle": "oklch(0.349 0.014 112.9)",
116928
+ "--color-input": "oklch(0.401 0.018 111.4)",
116929
+ "--color-ring": "oklch(0.642 0.24 7.5)",
116930
+ "--color-chart-1": "oklch(0.642 0.24 7.5)",
116931
+ "--color-sidebar": "oklch(0.237 0.006 121.9)",
116932
+ "--color-sidebar-foreground": "oklch(0.977 0.008 106.5)",
116933
+ "--color-sidebar-primary": "oklch(0.642 0.24 7.5)",
116934
+ "--color-sidebar-primary-foreground": "oklch(0.274 0.011 114.8)",
116935
+ "--color-sidebar-accent": "oklch(0.364 0.015 112.3)",
116936
+ "--color-sidebar-accent-foreground": "oklch(0.977 0.008 106.5)",
116937
+ "--color-sidebar-border": "oklch(0.349 0.014 112.9)",
116938
+ "--color-sidebar-ring": "oklch(0.642 0.24 7.5)",
116939
+ "--color-status-success": "oklch(0.841 0.204 127.3)",
116940
+ "--color-status-success-strong": "oklch(0.841 0.204 127.3)",
116941
+ "--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
116942
+ "--color-status-active": "oklch(0.879 0.125 103.2)",
116943
+ "--color-status-active-strong": "oklch(0.879 0.125 103.2)",
116944
+ "--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
116945
+ "--color-status-error": "oklch(0.642 0.24 7.5)",
116946
+ "--color-status-error-strong": "oklch(0.642 0.24 7.5)",
116947
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
116948
+ "--color-status-info": "oklch(0.827 0.108 212)",
116949
+ "--color-status-info-strong": "oklch(0.827 0.108 212)",
116950
+ "--color-status-info-foreground": "oklch(0.21 0.006 285.885)",
116951
+ "--color-status-pending": "oklch(0.879 0.125 103.2)",
116952
+ "--color-status-pending-strong": "oklch(0.879 0.125 103.2)",
116953
+ "--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
116954
+ "--color-status-warning": "oklch(0.767 0.168 62.4)",
116955
+ "--color-status-warning-strong": "oklch(0.767 0.168 62.4)",
116956
+ "--color-status-warning-foreground": "oklch(0.21 0.006 285.885)",
116957
+ "--color-status-paused": "oklch(0.701 0.181 298.1)",
116958
+ "--color-status-paused-strong": "oklch(0.701 0.181 298.1)",
116959
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
116960
+ "--color-status-neutral": "oklch(0.654 0.009 114.3)",
116961
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
116962
+ }
116963
+ }
116964
+ },
116965
+ {
116966
+ id: "gruvbox",
116967
+ name: "Gruvbox",
116968
+ description: "Dark uses the bright accent set, light the faded set. Primary = gruvbox orange.",
116969
+ accent: { light: "oklch(0.513 0.162 39.3)", dark: "oklch(0.731 0.182 51.7)" },
116970
+ field: { light: "oklch(0.956 0.055 96.2)", dark: "oklch(0.277 0 0)" },
116971
+ vars: {
116972
+ light: {
116973
+ "--color-background": "oklch(0.956 0.055 96.2)",
116974
+ "--color-foreground": "oklch(0.344 0.007 48.5)",
116975
+ "--color-card": "oklch(0.965 0.039 100.9)",
116976
+ "--color-card-foreground": "oklch(0.344 0.007 48.5)",
116977
+ "--color-surface": "oklch(0.922 0.055 92.5)",
116978
+ "--color-popover": "oklch(0.965 0.039 100.9)",
116979
+ "--color-popover-foreground": "oklch(0.344 0.007 48.5)",
116980
+ "--color-primary": "oklch(0.513 0.162 39.3)",
116981
+ "--color-primary-foreground": "oklch(0.956 0.055 96.2)",
116982
+ "--color-secondary": "oklch(0.894 0.057 89.2)",
116983
+ "--color-secondary-foreground": "oklch(0.344 0.007 48.5)",
116984
+ "--color-muted": "oklch(0.894 0.057 89.2)",
116985
+ "--color-muted-foreground": "oklch(0.55 0.023 62.6)",
116986
+ "--color-accent": "oklch(0.859 0.054 86.7)",
116987
+ "--color-accent-foreground": "oklch(0.344 0.007 48.5)",
116988
+ "--color-border": "oklch(0.825 0.051 85.1)",
116989
+ "--color-border-subtle": "oklch(0.88 0.051 86.9)",
116990
+ "--color-input": "oklch(0.825 0.051 85.1)",
116991
+ "--color-ring": "oklch(0.513 0.162 39.3)",
116992
+ "--color-chart-1": "oklch(0.513 0.162 39.3)",
116993
+ "--color-sidebar": "oklch(0.922 0.055 92.5)",
116994
+ "--color-sidebar-foreground": "oklch(0.344 0.007 48.5)",
116995
+ "--color-sidebar-primary": "oklch(0.513 0.162 39.3)",
116996
+ "--color-sidebar-primary-foreground": "oklch(0.956 0.055 96.2)",
116997
+ "--color-sidebar-accent": "oklch(0.859 0.054 86.7)",
116998
+ "--color-sidebar-accent-foreground": "oklch(0.344 0.007 48.5)",
116999
+ "--color-sidebar-border": "oklch(0.88 0.051 86.9)",
117000
+ "--color-sidebar-ring": "oklch(0.513 0.162 39.3)",
117001
+ "--color-status-success": "oklch(0.546 0.112 106.5)",
117002
+ "--color-status-success-strong": "oklch(0.546 0.112 106.5)",
117003
+ "--color-status-success-foreground": "oklch(0.985 0 0)",
117004
+ "--color-status-active": "oklch(0.618 0.128 70.7)",
117005
+ "--color-status-active-strong": "oklch(0.618 0.128 70.7)",
117006
+ "--color-status-active-foreground": "oklch(0.985 0 0)",
117007
+ "--color-status-error": "oklch(0.437 0.179 28.3)",
117008
+ "--color-status-error-strong": "oklch(0.437 0.179 28.3)",
117009
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
117010
+ "--color-status-info": "oklch(0.471 0.082 215.8)",
117011
+ "--color-status-info-strong": "oklch(0.471 0.082 215.8)",
117012
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
117013
+ "--color-status-pending": "oklch(0.618 0.128 70.7)",
117014
+ "--color-status-pending-strong": "oklch(0.618 0.128 70.7)",
117015
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
117016
+ "--color-status-warning": "oklch(0.513 0.162 39.3)",
117017
+ "--color-status-warning-strong": "oklch(0.513 0.162 39.3)",
117018
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
117019
+ "--color-status-paused": "oklch(0.489 0.124 344.3)",
117020
+ "--color-status-paused-strong": "oklch(0.489 0.124 344.3)",
117021
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
117022
+ "--color-status-neutral": "oklch(0.55 0.023 62.6)",
117023
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
117024
+ },
117025
+ dark: {
117026
+ "--color-background": "oklch(0.277 0 0)",
117027
+ "--color-foreground": "oklch(0.894 0.057 89.2)",
117028
+ "--color-card": "oklch(0.311 0.003 48.6)",
117029
+ "--color-card-foreground": "oklch(0.894 0.057 89.2)",
117030
+ "--color-surface": "oklch(0.241 0.005 219.7)",
117031
+ "--color-popover": "oklch(0.311 0.003 48.6)",
117032
+ "--color-popover-foreground": "oklch(0.894 0.057 89.2)",
117033
+ "--color-primary": "oklch(0.731 0.182 51.7)",
117034
+ "--color-primary-foreground": "oklch(0.277 0 0)",
117035
+ "--color-secondary": "oklch(0.344 0.007 48.5)",
117036
+ "--color-secondary-foreground": "oklch(0.894 0.057 89.2)",
117037
+ "--color-muted": "oklch(0.344 0.007 48.5)",
117038
+ "--color-muted-foreground": "oklch(0.69 0.035 76.3)",
117039
+ "--color-accent": "oklch(0.375 0.009 53.2)",
117040
+ "--color-accent-foreground": "oklch(0.894 0.057 89.2)",
117041
+ "--color-border": "oklch(0.411 0.012 51.9)",
117042
+ "--color-border-subtle": "oklch(0.344 0.007 48.5)",
117043
+ "--color-input": "oklch(0.411 0.012 51.9)",
117044
+ "--color-ring": "oklch(0.731 0.182 51.7)",
117045
+ "--color-chart-1": "oklch(0.731 0.182 51.7)",
117046
+ "--color-sidebar": "oklch(0.241 0.005 219.7)",
117047
+ "--color-sidebar-foreground": "oklch(0.894 0.057 89.2)",
117048
+ "--color-sidebar-primary": "oklch(0.731 0.182 51.7)",
117049
+ "--color-sidebar-primary-foreground": "oklch(0.277 0 0)",
117050
+ "--color-sidebar-accent": "oklch(0.375 0.009 53.2)",
117051
+ "--color-sidebar-accent-foreground": "oklch(0.894 0.057 89.2)",
117052
+ "--color-sidebar-border": "oklch(0.344 0.007 48.5)",
117053
+ "--color-sidebar-ring": "oklch(0.731 0.182 51.7)",
117054
+ "--color-status-success": "oklch(0.765 0.158 110.8)",
117055
+ "--color-status-success-strong": "oklch(0.765 0.158 110.8)",
117056
+ "--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
117057
+ "--color-status-active": "oklch(0.832 0.159 83)",
117058
+ "--color-status-active-strong": "oklch(0.832 0.159 83)",
117059
+ "--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
117060
+ "--color-status-error": "oklch(0.66 0.218 30.4)",
117061
+ "--color-status-error-strong": "oklch(0.66 0.218 30.4)",
117062
+ "--color-status-error-foreground": "oklch(0.985 0 0)",
117063
+ "--color-status-info": "oklch(0.693 0.042 169.8)",
117064
+ "--color-status-info-strong": "oklch(0.693 0.042 169.8)",
117065
+ "--color-status-info-foreground": "oklch(0.985 0 0)",
117066
+ "--color-status-pending": "oklch(0.725 0.143 77.7)",
117067
+ "--color-status-pending-strong": "oklch(0.725 0.143 77.7)",
117068
+ "--color-status-pending-foreground": "oklch(0.985 0 0)",
117069
+ "--color-status-warning": "oklch(0.731 0.182 51.7)",
117070
+ "--color-status-warning-strong": "oklch(0.731 0.182 51.7)",
117071
+ "--color-status-warning-foreground": "oklch(0.985 0 0)",
117072
+ "--color-status-paused": "oklch(0.705 0.098 2.2)",
117073
+ "--color-status-paused-strong": "oklch(0.705 0.098 2.2)",
117074
+ "--color-status-paused-foreground": "oklch(0.985 0 0)",
117075
+ "--color-status-neutral": "oklch(0.69 0.035 76.3)",
117076
+ "--color-status-neutral-foreground": "oklch(0.985 0 0)"
117077
+ }
117078
+ }
117079
+ },
117080
+ {
117081
+ id: "catppuccin",
117082
+ name: "Catppuccin",
117083
+ description: "Latte light / Mocha dark. Primary = catppuccin mauve.",
117084
+ accent: { light: "oklch(0.555 0.25 297)", dark: "oklch(0.787 0.119 304.8)" },
117085
+ field: { light: "oklch(0.958 0.006 264.5)", dark: "oklch(0.243 0.03 283.9)" },
117086
+ vars: {
117087
+ light: {
117088
+ "--color-background": "oklch(0.958 0.006 264.5)",
117089
+ "--color-foreground": "oklch(0.435 0.043 279.3)",
117090
+ "--color-card": "oklch(0.958 0.006 264.5)",
117091
+ "--color-card-foreground": "oklch(0.435 0.043 279.3)",
117092
+ "--color-surface": "oklch(0.933 0.009 264.5)",
117093
+ "--color-popover": "oklch(0.958 0.006 264.5)",
117094
+ "--color-popover-foreground": "oklch(0.435 0.043 279.3)",
117095
+ "--color-primary": "oklch(0.555 0.25 297)",
117096
+ "--color-primary-foreground": "oklch(0.958 0.006 264.5)",
117097
+ "--color-secondary": "oklch(0.906 0.012 264.5)",
117098
+ "--color-secondary-foreground": "oklch(0.435 0.043 279.3)",
117099
+ "--color-muted": "oklch(0.906 0.012 264.5)",
117100
+ "--color-muted-foreground": "oklch(0.492 0.038 279.3)",
117101
+ "--color-accent": "oklch(0.857 0.014 268.5)",
117102
+ "--color-accent-foreground": "oklch(0.435 0.043 279.3)",
117103
+ "--color-border": "oklch(0.857 0.014 268.5)",
117104
+ "--color-border-subtle": "oklch(0.906 0.012 264.5)",
117105
+ "--color-input": "oklch(0.857 0.014 268.5)",
117106
+ "--color-ring": "oklch(0.555 0.25 297)",
117107
+ "--color-chart-1": "oklch(0.555 0.25 297)",
117108
+ "--color-sidebar": "oklch(0.933 0.009 264.5)",
117109
+ "--color-sidebar-foreground": "oklch(0.435 0.043 279.3)",
117110
+ "--color-sidebar-primary": "oklch(0.555 0.25 297)",
117111
+ "--color-sidebar-primary-foreground": "oklch(0.958 0.006 264.5)",
117112
+ "--color-sidebar-accent": "oklch(0.857 0.014 268.5)",
117113
+ "--color-sidebar-accent-foreground": "oklch(0.435 0.043 279.3)",
117114
+ "--color-sidebar-border": "oklch(0.906 0.012 264.5)",
117115
+ "--color-sidebar-ring": "oklch(0.555 0.25 297)",
117116
+ "--color-status-success": "oklch(0.625 0.177 140.4)",
117117
+ "--color-status-success-strong": "oklch(0.52 0.177 140.4)",
117118
+ "--color-status-success-foreground": "oklch(0.183 0.02 284.2)",
117119
+ "--color-status-active": "oklch(0.714 0.149 67.8)",
117120
+ "--color-status-active-strong": "oklch(0.544 0.149 67.8)",
117121
+ "--color-status-active-foreground": "oklch(0.183 0.02 284.2)",
117122
+ "--color-status-error": "oklch(0.55 0.216 19.8)",
117123
+ "--color-status-error-strong": "oklch(0.55 0.216 19.8)",
117124
+ "--color-status-error-foreground": "oklch(0.958 0.006 264.5)",
117125
+ "--color-status-info": "oklch(0.648 0.107 212.9)",
117126
+ "--color-status-info-strong": "oklch(0.523 0.107 212.9)",
117127
+ "--color-status-info-foreground": "oklch(0.183 0.02 284.2)",
117128
+ "--color-status-pending": "oklch(0.714 0.149 67.8)",
117129
+ "--color-status-pending-strong": "oklch(0.544 0.149 67.8)",
117130
+ "--color-status-pending-foreground": "oklch(0.183 0.02 284.2)",
117131
+ "--color-status-warning": "oklch(0.692 0.204 42.4)",
117132
+ "--color-status-warning-strong": "oklch(0.557 0.204 42.4)",
117133
+ "--color-status-warning-foreground": "oklch(0.183 0.02 284.2)",
117134
+ "--color-status-paused": "oklch(0.664 0.175 273.1)",
117135
+ "--color-status-paused-strong": "oklch(0.549 0.175 273.1)",
117136
+ "--color-status-paused-foreground": "oklch(0.183 0.02 284.2)",
117137
+ "--color-status-neutral": "oklch(0.492 0.038 279.3)",
117138
+ "--color-status-neutral-strong": "oklch(0.492 0.038 279.3)",
117139
+ "--color-status-neutral-foreground": "oklch(0.958 0.006 264.5)"
117140
+ },
117141
+ dark: {
117142
+ "--color-background": "oklch(0.243 0.03 283.9)",
117143
+ "--color-foreground": "oklch(0.879 0.043 272.3)",
117144
+ "--color-card": "oklch(0.324 0.032 282)",
117145
+ "--color-card-foreground": "oklch(0.879 0.043 272.3)",
117146
+ "--color-surface": "oklch(0.216 0.025 284.1)",
117147
+ "--color-popover": "oklch(0.324 0.032 282)",
117148
+ "--color-popover-foreground": "oklch(0.879 0.043 272.3)",
117149
+ "--color-primary": "oklch(0.787 0.119 304.8)",
117150
+ "--color-primary-foreground": "oklch(0.243 0.03 283.9)",
117151
+ "--color-secondary": "oklch(0.404 0.032 280.2)",
117152
+ "--color-secondary-foreground": "oklch(0.879 0.043 272.3)",
117153
+ "--color-muted": "oklch(0.404 0.032 280.2)",
117154
+ "--color-muted-foreground": "oklch(0.817 0.04 272.9)",
117155
+ "--color-accent": "oklch(0.404 0.032 280.2)",
117156
+ "--color-accent-foreground": "oklch(0.879 0.043 272.3)",
117157
+ "--color-border": "oklch(0.879 0.043 272.3 / 12%)",
117158
+ "--color-border-subtle": "oklch(0.879 0.043 272.3 / 8%)",
117159
+ "--color-input": "oklch(0.879 0.043 272.3 / 15%)",
117160
+ "--color-ring": "oklch(0.787 0.119 304.8)",
117161
+ "--color-chart-1": "oklch(0.787 0.119 304.8)",
117162
+ "--color-sidebar": "oklch(0.216 0.025 284.1)",
117163
+ "--color-sidebar-foreground": "oklch(0.879 0.043 272.3)",
117164
+ "--color-sidebar-primary": "oklch(0.787 0.119 304.8)",
117165
+ "--color-sidebar-primary-foreground": "oklch(0.243 0.03 283.9)",
117166
+ "--color-sidebar-accent": "oklch(0.324 0.032 282)",
117167
+ "--color-sidebar-accent-foreground": "oklch(0.879 0.043 272.3)",
117168
+ "--color-sidebar-border": "oklch(0.879 0.043 272.3 / 8%)",
117169
+ "--color-sidebar-ring": "oklch(0.787 0.119 304.8)",
117170
+ "--color-status-success": "oklch(0.858 0.109 142.7)",
117171
+ "--color-status-success-strong": "oklch(0.858 0.109 142.7)",
117172
+ "--color-status-success-foreground": "oklch(0.183 0.02 284.2)",
117173
+ "--color-status-active": "oklch(0.919 0.07 86.5)",
117174
+ "--color-status-active-strong": "oklch(0.919 0.07 86.5)",
117175
+ "--color-status-active-foreground": "oklch(0.183 0.02 284.2)",
117176
+ "--color-status-error": "oklch(0.756 0.13 2.8)",
117177
+ "--color-status-error-strong": "oklch(0.756 0.13 2.8)",
117178
+ "--color-status-error-foreground": "oklch(0.183 0.02 284.2)",
117179
+ "--color-status-info": "oklch(0.791 0.096 228.7)",
117180
+ "--color-status-info-strong": "oklch(0.791 0.096 228.7)",
117181
+ "--color-status-info-foreground": "oklch(0.183 0.02 284.2)",
117182
+ "--color-status-pending": "oklch(0.919 0.07 86.5)",
117183
+ "--color-status-pending-strong": "oklch(0.919 0.07 86.5)",
117184
+ "--color-status-pending-foreground": "oklch(0.183 0.02 284.2)",
117185
+ "--color-status-warning": "oklch(0.824 0.101 52.6)",
117186
+ "--color-status-warning-strong": "oklch(0.824 0.101 52.6)",
117187
+ "--color-status-warning-foreground": "oklch(0.183 0.02 284.2)",
117188
+ "--color-status-paused": "oklch(0.817 0.091 277.3)",
117189
+ "--color-status-paused-strong": "oklch(0.817 0.091 277.3)",
117190
+ "--color-status-paused-foreground": "oklch(0.183 0.02 284.2)",
117191
+ "--color-status-neutral": "oklch(0.751 0.04 273.9)",
117192
+ "--color-status-neutral-strong": "oklch(0.751 0.04 273.9)",
117193
+ "--color-status-neutral-foreground": "oklch(0.183 0.02 284.2)"
117194
+ }
117195
+ }
117196
+ }
117197
+ ];
117198
+ });
117199
+
117200
+ // src/themes/presets.ts
117201
+ function accentPreset(id, name, description, light, dark) {
117202
+ return {
117203
+ id,
117204
+ name,
117205
+ description,
117206
+ accent: { light: light.primary, dark: dark.primary },
117207
+ field: { light: "oklch(1 0 0)", dark: "oklch(0.141 0.005 285.823)" },
117208
+ vars: {
117209
+ light: {
117210
+ "--color-primary": light.primary,
117211
+ "--color-primary-foreground": light.primaryForeground,
117212
+ "--color-ring": light.primary,
117213
+ "--color-sidebar-primary": light.primary,
117214
+ "--color-sidebar-primary-foreground": light.primaryForeground,
117215
+ "--color-sidebar-ring": light.primary,
117216
+ "--color-chart-1": light.primary
117217
+ },
117218
+ dark: {
117219
+ "--color-primary": dark.primary,
117220
+ "--color-primary-foreground": dark.primaryForeground,
117221
+ "--color-ring": dark.primary,
117222
+ "--color-sidebar-primary": dark.primary,
117223
+ "--color-sidebar-primary-foreground": dark.primaryForeground,
117224
+ "--color-sidebar-ring": dark.primary,
117225
+ "--color-chart-1": dark.primary
117226
+ }
117227
+ }
117228
+ };
117229
+ }
117230
+ function getThemePreset(id) {
117231
+ if (!id)
117232
+ return null;
117233
+ return PRESETS_BY_ID.get(id) ?? null;
117234
+ }
117235
+ function isThemePresetId(id) {
117236
+ return PRESETS_BY_ID.has(id);
117237
+ }
117238
+ var DEFAULT_THEME_ID = "hive", NEAR_WHITE = "oklch(0.985 0 0)", ZINC_900 = "oklch(0.21 0.006 285.885)", THEME_PRESETS, PRESETS_BY_ID, THEME_PRESET_IDS;
117239
+ var init_presets = __esm(() => {
117240
+ init_classics();
117241
+ THEME_PRESETS = [
117242
+ {
117243
+ id: DEFAULT_THEME_ID,
117244
+ name: "Hive",
117245
+ description: "The stock Mission Control look: zinc field, one amber voice.",
117246
+ accent: { light: "oklch(0.555 0.163 48.998)", dark: "oklch(0.769 0.188 70.08)" },
117247
+ field: { light: "oklch(1 0 0)", dark: "oklch(0.141 0.005 285.823)" },
117248
+ vars: { light: {}, dark: {} }
117249
+ },
117250
+ accentPreset("meadow", "Meadow", "Zinc field with an emerald voice.", { primary: "oklch(0.596 0.145 163.225)", primaryForeground: NEAR_WHITE }, { primary: "oklch(0.765 0.177 163.223)", primaryForeground: ZINC_900 }),
117251
+ accentPreset("iris", "Iris", "Zinc field with a violet voice.", { primary: "oklch(0.541 0.281 293.009)", primaryForeground: NEAR_WHITE }, { primary: "oklch(0.702 0.183 293.541)", primaryForeground: ZINC_900 }),
117252
+ accentPreset("rose", "Rose", "Zinc field with a deep rose voice.", { primary: "oklch(0.586 0.253 17.585)", primaryForeground: NEAR_WHITE }, { primary: "oklch(0.712 0.194 13.428)", primaryForeground: ZINC_900 }),
117253
+ {
117254
+ id: "cobalt",
117255
+ name: "Cobalt",
117256
+ description: "Cool slate field with a saturated blue voice.",
117257
+ accent: { light: "oklch(0.546 0.245 262.881)", dark: "oklch(0.707 0.165 254.624)" },
117258
+ field: { light: "oklch(1 0 0)", dark: "oklch(0.129 0.042 264.695)" },
117259
+ vars: {
117260
+ light: {
117261
+ "--color-foreground": "oklch(0.129 0.042 264.695)",
117262
+ "--color-card-foreground": "oklch(0.129 0.042 264.695)",
117263
+ "--color-popover-foreground": "oklch(0.129 0.042 264.695)",
117264
+ "--color-surface": "oklch(0.984 0.003 247.858)",
117265
+ "--color-primary": "oklch(0.546 0.245 262.881)",
117266
+ "--color-primary-foreground": NEAR_WHITE,
117267
+ "--color-secondary": "oklch(0.968 0.007 247.896)",
117268
+ "--color-secondary-foreground": "oklch(0.208 0.042 265.755)",
117269
+ "--color-muted": "oklch(0.968 0.007 247.896)",
117270
+ "--color-muted-foreground": "oklch(0.554 0.046 257.417)",
117271
+ "--color-accent": "oklch(0.945 0.01 251.7)",
117272
+ "--color-accent-foreground": "oklch(0.208 0.042 265.755)",
117273
+ "--color-border": "oklch(0.929 0.013 255.508)",
117274
+ "--color-border-subtle": "oklch(0.948 0.01 252)",
117275
+ "--color-input": "oklch(0.929 0.013 255.508)",
117276
+ "--color-ring": "oklch(0.546 0.245 262.881)",
117277
+ "--color-chart-1": "oklch(0.546 0.245 262.881)",
117278
+ "--color-sidebar": "oklch(0.984 0.003 247.858)",
117279
+ "--color-sidebar-foreground": "oklch(0.129 0.042 264.695)",
117280
+ "--color-sidebar-primary": "oklch(0.546 0.245 262.881)",
117281
+ "--color-sidebar-primary-foreground": NEAR_WHITE,
117282
+ "--color-sidebar-accent": "oklch(0.945 0.01 251.7)",
117283
+ "--color-sidebar-accent-foreground": "oklch(0.208 0.042 265.755)",
117284
+ "--color-sidebar-border": "oklch(0.948 0.01 252)",
117285
+ "--color-sidebar-ring": "oklch(0.546 0.245 262.881)"
117286
+ },
117287
+ dark: {
117288
+ "--color-background": "oklch(0.129 0.042 264.695)",
117289
+ "--color-foreground": NEAR_WHITE,
117290
+ "--color-card": "oklch(0.208 0.042 265.755)",
117291
+ "--color-card-foreground": NEAR_WHITE,
117292
+ "--color-surface": "oklch(0.17 0.042 265)",
117293
+ "--color-popover": "oklch(0.208 0.042 265.755)",
117294
+ "--color-popover-foreground": NEAR_WHITE,
117295
+ "--color-primary": "oklch(0.707 0.165 254.624)",
117296
+ "--color-primary-foreground": "oklch(0.129 0.042 264.695)",
117297
+ "--color-secondary": "oklch(0.279 0.041 260.031)",
117298
+ "--color-secondary-foreground": NEAR_WHITE,
117299
+ "--color-muted": "oklch(0.279 0.041 260.031)",
117300
+ "--color-muted-foreground": "oklch(0.704 0.04 256.788)",
117301
+ "--color-accent": "oklch(0.279 0.041 260.031)",
117302
+ "--color-accent-foreground": NEAR_WHITE,
117303
+ "--color-border": "oklch(1 0 0 / 10%)",
117304
+ "--color-border-subtle": "oklch(1 0 0 / 8%)",
117305
+ "--color-input": "oklch(1 0 0 / 15%)",
117306
+ "--color-ring": "oklch(0.707 0.165 254.624)",
117307
+ "--color-chart-1": "oklch(0.707 0.165 254.624)",
117308
+ "--color-sidebar": "oklch(0.208 0.042 265.755)",
117309
+ "--color-sidebar-foreground": NEAR_WHITE,
117310
+ "--color-sidebar-primary": "oklch(0.707 0.165 254.624)",
117311
+ "--color-sidebar-primary-foreground": NEAR_WHITE,
117312
+ "--color-sidebar-accent": "oklch(0.279 0.041 260.031)",
117313
+ "--color-sidebar-accent-foreground": NEAR_WHITE,
117314
+ "--color-sidebar-border": "oklch(1 0 0 / 8%)",
117315
+ "--color-sidebar-ring": "oklch(0.707 0.165 254.624)"
117316
+ }
117317
+ }
117318
+ },
117319
+ {
117320
+ id: "ember",
117321
+ name: "Ember",
117322
+ description: "Warm stone field with a burnt orange voice.",
117323
+ accent: { light: "oklch(0.646 0.222 41.116)", dark: "oklch(0.75 0.183 55.934)" },
117324
+ field: { light: "oklch(0.985 0.001 106.423)", dark: "oklch(0.147 0.004 49.25)" },
117325
+ vars: {
117326
+ light: {
117327
+ "--color-background": "oklch(0.985 0.001 106.423)",
117328
+ "--color-foreground": "oklch(0.147 0.004 49.25)",
117329
+ "--color-card": "oklch(1 0 0)",
117330
+ "--color-card-foreground": "oklch(0.147 0.004 49.25)",
117331
+ "--color-surface": "oklch(0.97 0.001 106.424)",
117332
+ "--color-popover": "oklch(1 0 0)",
117333
+ "--color-popover-foreground": "oklch(0.147 0.004 49.25)",
117334
+ "--color-primary": "oklch(0.646 0.222 41.116)",
117335
+ "--color-primary-foreground": NEAR_WHITE,
117336
+ "--color-secondary": "oklch(0.97 0.001 106.424)",
117337
+ "--color-secondary-foreground": "oklch(0.216 0.006 56.043)",
117338
+ "--color-muted": "oklch(0.97 0.001 106.424)",
117339
+ "--color-muted-foreground": "oklch(0.553 0.013 58.071)",
117340
+ "--color-accent": "oklch(0.946 0.002 48.7)",
117341
+ "--color-accent-foreground": "oklch(0.216 0.006 56.043)",
117342
+ "--color-border": "oklch(0.923 0.003 48.717)",
117343
+ "--color-border-subtle": "oklch(0.947 0.002 48.717)",
117344
+ "--color-input": "oklch(0.923 0.003 48.717)",
117345
+ "--color-ring": "oklch(0.646 0.222 41.116)",
117346
+ "--color-chart-1": "oklch(0.646 0.222 41.116)",
117347
+ "--color-sidebar": "oklch(0.97 0.001 106.424)",
117348
+ "--color-sidebar-foreground": "oklch(0.147 0.004 49.25)",
117349
+ "--color-sidebar-primary": "oklch(0.646 0.222 41.116)",
117350
+ "--color-sidebar-primary-foreground": NEAR_WHITE,
117351
+ "--color-sidebar-accent": "oklch(0.923 0.003 48.717)",
117352
+ "--color-sidebar-accent-foreground": "oklch(0.216 0.006 56.043)",
117353
+ "--color-sidebar-border": "oklch(0.947 0.002 48.717)",
117354
+ "--color-sidebar-ring": "oklch(0.646 0.222 41.116)"
117355
+ },
117356
+ dark: {
117357
+ "--color-background": "oklch(0.147 0.004 49.25)",
117358
+ "--color-foreground": NEAR_WHITE,
117359
+ "--color-card": "oklch(0.216 0.006 56.043)",
117360
+ "--color-card-foreground": NEAR_WHITE,
117361
+ "--color-surface": "oklch(0.185 0.005 49)",
117362
+ "--color-popover": "oklch(0.216 0.006 56.043)",
117363
+ "--color-popover-foreground": NEAR_WHITE,
117364
+ "--color-primary": "oklch(0.75 0.183 55.934)",
117365
+ "--color-primary-foreground": "oklch(0.147 0.004 49.25)",
117366
+ "--color-secondary": "oklch(0.268 0.007 34.298)",
117367
+ "--color-secondary-foreground": NEAR_WHITE,
117368
+ "--color-muted": "oklch(0.268 0.007 34.298)",
117369
+ "--color-muted-foreground": "oklch(0.709 0.01 56.259)",
117370
+ "--color-accent": "oklch(0.268 0.007 34.298)",
117371
+ "--color-accent-foreground": NEAR_WHITE,
117372
+ "--color-border": "oklch(1 0 0 / 10%)",
117373
+ "--color-border-subtle": "oklch(1 0 0 / 8%)",
117374
+ "--color-input": "oklch(1 0 0 / 15%)",
117375
+ "--color-ring": "oklch(0.75 0.183 55.934)",
117376
+ "--color-chart-1": "oklch(0.75 0.183 55.934)",
117377
+ "--color-sidebar": "oklch(0.216 0.006 56.043)",
117378
+ "--color-sidebar-foreground": NEAR_WHITE,
117379
+ "--color-sidebar-primary": "oklch(0.75 0.183 55.934)",
117380
+ "--color-sidebar-primary-foreground": NEAR_WHITE,
117381
+ "--color-sidebar-accent": "oklch(0.268 0.007 34.298)",
117382
+ "--color-sidebar-accent-foreground": NEAR_WHITE,
117383
+ "--color-sidebar-border": "oklch(1 0 0 / 8%)",
117384
+ "--color-sidebar-ring": "oklch(0.75 0.183 55.934)"
117385
+ }
117386
+ }
117387
+ },
117388
+ {
117389
+ id: "carbon",
117390
+ name: "Carbon",
117391
+ description: "Pure monochrome. The interface recedes, the data speaks.",
117392
+ accent: { light: ZINC_900, dark: NEAR_WHITE },
117393
+ field: { light: "oklch(1 0 0)", dark: "oklch(0.141 0.005 285.823)" },
117394
+ vars: {
117395
+ light: {
117396
+ "--color-primary": ZINC_900,
117397
+ "--color-primary-foreground": NEAR_WHITE,
117398
+ "--color-ring": "oklch(0.552 0.016 285.938)",
117399
+ "--color-sidebar-primary": ZINC_900,
117400
+ "--color-sidebar-primary-foreground": NEAR_WHITE,
117401
+ "--color-sidebar-ring": "oklch(0.552 0.016 285.938)"
117402
+ },
117403
+ dark: {
117404
+ "--color-primary": NEAR_WHITE,
117405
+ "--color-primary-foreground": ZINC_900,
117406
+ "--color-ring": "oklch(0.705 0.015 286.067)",
117407
+ "--color-sidebar-primary": NEAR_WHITE,
117408
+ "--color-sidebar-primary-foreground": ZINC_900,
117409
+ "--color-sidebar-ring": "oklch(0.705 0.015 286.067)"
117410
+ }
117411
+ }
117412
+ },
117413
+ {
117414
+ id: "paper",
117415
+ name: "Paper",
117416
+ description: "Warm editorial paper: off-white field, white cards, one blue voice.",
117417
+ accent: { light: "oklch(0.546 0.215 262.881)", dark: "oklch(0.714 0.143 254.624)" },
117418
+ field: { light: "oklch(0.973 0.004 91.446)", dark: "oklch(0.21 0.005 91.5)" },
117419
+ vars: {
117420
+ light: {
117421
+ "--color-background": "oklch(0.973 0.004 91.446)",
117422
+ "--color-foreground": ZINC_900,
117423
+ "--color-card": "oklch(1 0 0)",
117424
+ "--color-card-foreground": ZINC_900,
117425
+ "--color-surface": "oklch(0.988 0.001 106.423)",
117426
+ "--color-popover": "oklch(1 0 0)",
117427
+ "--color-popover-foreground": ZINC_900,
117428
+ "--color-primary": "oklch(0.546 0.215 262.881)",
117429
+ "--color-primary-foreground": NEAR_WHITE,
117430
+ "--color-secondary": "oklch(0.951 0.006 91.5)",
117431
+ "--color-secondary-foreground": ZINC_900,
117432
+ "--color-muted": "oklch(0.951 0.006 91.5)",
117433
+ "--color-muted-foreground": "oklch(0.504 0.01 271.22)",
117434
+ "--color-accent": "oklch(0.932 0.008 91.5)",
117435
+ "--color-accent-foreground": ZINC_900,
117436
+ "--color-border": "oklch(0.891 0.013 91.529)",
117437
+ "--color-border-subtle": "oklch(0.925 0.009 91.5)",
117438
+ "--color-input": "oklch(0.891 0.013 91.529)",
117439
+ "--color-ring": "oklch(0.546 0.215 262.881)",
117440
+ "--color-chart-1": "oklch(0.546 0.215 262.881)",
117441
+ "--color-sidebar": "oklch(0.951 0.006 91.5)",
117442
+ "--color-sidebar-foreground": ZINC_900,
117443
+ "--color-sidebar-primary": "oklch(0.546 0.215 262.881)",
117444
+ "--color-sidebar-primary-foreground": NEAR_WHITE,
117445
+ "--color-sidebar-accent": "oklch(0.915 0.01 91.5)",
117446
+ "--color-sidebar-accent-foreground": ZINC_900,
117447
+ "--color-sidebar-border": "oklch(0.925 0.009 91.5)",
117448
+ "--color-sidebar-ring": "oklch(0.546 0.215 262.881)"
117449
+ },
117450
+ dark: {
117451
+ "--color-background": "oklch(0.21 0.005 91.5)",
117452
+ "--color-foreground": "oklch(0.94 0.008 91.5)",
117453
+ "--color-card": "oklch(0.25 0.006 91.5)",
117454
+ "--color-card-foreground": "oklch(0.94 0.008 91.5)",
117455
+ "--color-surface": "oklch(0.23 0.0055 91.5)",
117456
+ "--color-popover": "oklch(0.25 0.006 91.5)",
117457
+ "--color-popover-foreground": "oklch(0.94 0.008 91.5)",
117458
+ "--color-primary": "oklch(0.714 0.143 254.624)",
117459
+ "--color-primary-foreground": "oklch(0.21 0.005 91.5)",
117460
+ "--color-secondary": "oklch(0.3 0.007 91.5)",
117461
+ "--color-secondary-foreground": "oklch(0.94 0.008 91.5)",
117462
+ "--color-muted": "oklch(0.3 0.007 91.5)",
117463
+ "--color-muted-foreground": "oklch(0.72 0.012 91.5)",
117464
+ "--color-accent": "oklch(0.3 0.007 91.5)",
117465
+ "--color-accent-foreground": "oklch(0.94 0.008 91.5)",
117466
+ "--color-border": "oklch(0.95 0.02 91.5 / 12%)",
117467
+ "--color-border-subtle": "oklch(0.95 0.02 91.5 / 8%)",
117468
+ "--color-input": "oklch(0.95 0.02 91.5 / 16%)",
117469
+ "--color-ring": "oklch(0.714 0.143 254.624)",
117470
+ "--color-chart-1": "oklch(0.714 0.143 254.624)",
117471
+ "--color-sidebar": "oklch(0.25 0.006 91.5)",
117472
+ "--color-sidebar-foreground": "oklch(0.94 0.008 91.5)",
117473
+ "--color-sidebar-primary": "oklch(0.714 0.143 254.624)",
117474
+ "--color-sidebar-primary-foreground": NEAR_WHITE,
117475
+ "--color-sidebar-accent": "oklch(0.3 0.007 91.5)",
117476
+ "--color-sidebar-accent-foreground": "oklch(0.94 0.008 91.5)",
117477
+ "--color-sidebar-border": "oklch(0.95 0.02 91.5 / 8%)",
117478
+ "--color-sidebar-ring": "oklch(0.714 0.143 254.624)"
117479
+ }
117480
+ }
117481
+ },
117482
+ ...CLASSIC_THEME_PRESETS
117483
+ ];
117484
+ PRESETS_BY_ID = new Map(THEME_PRESETS.map((preset) => [preset.id, preset]));
117485
+ THEME_PRESET_IDS = THEME_PRESETS.map((preset) => preset.id);
117486
+ });
117487
+
117488
+ // src/themes/page-fields.ts
117489
+ function readThemeFields(input) {
117490
+ if (typeof input.theme === "string" && !isThemePresetId(input.theme)) {
117491
+ return { error: `Unknown theme "${input.theme}". Use one of: ${THEME_PRESET_IDS.join(", ")}` };
117492
+ }
117493
+ if (!input.themeTokens) {
117494
+ return { theme: input.theme, themeTokens: input.themeTokens, ignored: [] };
117495
+ }
117496
+ try {
117497
+ const { tokens, ignored } = importThemeTokens(input.themeTokens);
117498
+ return { theme: input.theme, themeTokens: tokens, ignored };
117499
+ } catch (err) {
117500
+ if (err instanceof ThemeImportError)
117501
+ return { error: `Invalid themeTokens: ${err.message}` };
117502
+ throw err;
117503
+ }
117504
+ }
117505
+ var init_page_fields = __esm(() => {
117506
+ init_import();
117507
+ init_presets();
117508
+ });
117509
+
116133
117510
  // src/tools/create-page.ts
116134
117511
  function slugify3(input) {
116135
117512
  const slug = input.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
@@ -116141,10 +117518,19 @@ function getApiBaseUrl() {
116141
117518
  function getAppBaseUrl2() {
116142
117519
  return getAppUrl();
116143
117520
  }
116144
- var registerCreatePageTool = (server) => {
117521
+ function bodyUsesDesignSystem(html) {
117522
+ return COLOR_TOKEN_REFERENCE.test(html) || classAttributeValues(html).some((value) => SWARM_CLASS.test(value));
117523
+ }
117524
+ function hasLightOnlyColors(tokens) {
117525
+ if (!tokens)
117526
+ return false;
117527
+ const isColor = (name) => PAGE_COLOR_TOKENS.has(name);
117528
+ return Object.keys(tokens.light).some(isColor) && !Object.keys(tokens.dark).some(isColor);
117529
+ }
117530
+ var SWARM_CLASS, COLOR_TOKEN_REFERENCE, PAGE_COLOR_TOKENS, registerCreatePageTool = (server) => {
116145
117531
  createToolRegistrar(server)("create_page", {
116146
117532
  title: "Create or update a page",
116147
- description: "Stores an HTML or JSON page in the swarm and returns shareable URLs. " + "Calls are upsert-by-(agent, slug): if you previously created a page " + "with the same slug, its prior state is snapshotted and the row is " + "updated. Use this for static reports, dashboards, or JSON action " + "specs that don't need a long-lived process.",
117533
+ description: "Stores an HTML or JSON page in the swarm and returns shareable URLs. " + "Calls are upsert-by-(agent, slug): if you previously created a page " + "with the same slug, its prior state is snapshotted and the row is " + "updated. Use this for static reports, dashboards, or JSON action " + "specs that don't need a long-lived process. " + "HTML pages use the swarm design system (designVersion 2): theme " + "tokens such as var(--color-primary), the swarm-* primitives, and " + "Tailwind v4 utilities such as bg-card and text-muted-foreground. " + "Set `theme` to a preset id or pass `themeTokens` (a token map, or a " + 'CSS variable block with format "css") to restyle the whole page. ' + "Do not hardcode colors: inside the dashboard the page follows the " + "viewer's theme and dark mode. Pages created before designVersion 2 " + "keep the old look; pass designVersion: 2 when you rewrite one.",
116148
117534
  annotations: { destructiveHint: false },
116149
117535
  inputSchema: object2({
116150
117536
  key: AssetKeySchema.optional().describe("Logical namespace. Defaults to a shared/page:<id>/ resource key."),
@@ -116155,7 +117541,10 @@ var registerCreatePageTool = (server) => {
116155
117541
  authMode: PageAuthModeSchema.default("authed").describe("'authed' — requires page-session cookie (default); 'public' — no gate and must be explicit; 'password' — requires key."),
116156
117542
  password: string2().min(1).optional().describe("Plaintext password, hashed before storage. Only meaningful for authMode='password'."),
116157
117543
  description: string2().optional().describe("Optional short description, used in listings + OG-tag unfurl."),
116158
- needsCredentials: array2(object2({ name: string2(), description: string2() })).optional().describe("Declared credential needs for JSON pages (renderer ignores for v1 — reserved for follow-up).")
117544
+ needsCredentials: array2(object2({ name: string2(), description: string2() })).optional().describe("Declared credential needs for JSON pages (renderer ignores for v1 — reserved for follow-up)."),
117545
+ theme: string2().nullable().optional().describe("Theme preset id that restyles the whole page, for example paper, github or hive. An unknown id returns an error that lists every preset. Omit to follow the viewer's theme (on update, to keep the stored one). Pass null to clear it."),
117546
+ themeTokens: PageThemeTokensInputSchema.nullable().optional().describe('Per-page token overrides, applied on top of the preset. Send { light, dark } maps of token name to CSS value (for example { light: { "--color-primary": "oklch(0.55 0.2 260)" } }), or { format: "css", css } with a CSS variable block (:root, .dark, @theme) as shadcn, tweakcn and Tailwind v4 export it. Stored normalized. Names outside the token contract, and values that reference a variable outside it, are ignored and reported in the result. Replaces the stored overrides. Omit to keep them on update. Pass null to clear them.'),
117547
+ designVersion: number2().int().min(1).max(2).optional().describe("Design system version. 2 is the swarm design system and the default for new pages. 1 is the original look that older pages keep. Omit on update to keep the stored value.")
116159
117548
  }),
116160
117549
  outputSchema: swarmToolOutputSchema({
116161
117550
  yourAgentId: string2().optional(),
@@ -116163,13 +117552,21 @@ var registerCreatePageTool = (server) => {
116163
117552
  key: AssetKeySchema.optional(),
116164
117553
  version: number2().optional(),
116165
117554
  app_url: string2().optional(),
116166
- api_url: string2().optional()
117555
+ api_url: string2().optional(),
117556
+ designVersion: number2().optional(),
117557
+ ignoredTokens: array2(string2()).optional(),
117558
+ colorLiteralCount: number2().optional(),
117559
+ usesDesignSystem: boolean().optional(),
117560
+ lightOnlyColors: boolean().optional()
116167
117561
  })
116168
117562
  }, async (input, requestInfo, _meta) => {
116169
117563
  if (!requestInfo.agentId) {
116170
117564
  const msg = "Agent ID required. Set the X-Agent-ID header on the MCP request.";
116171
117565
  return toolErr(msg);
116172
117566
  }
117567
+ const themeFields = readThemeFields(input);
117568
+ if ("error" in themeFields)
117569
+ return toolErr(themeFields.error);
116173
117570
  const slug = input.slug ?? slugify3(input.title);
116174
117571
  const finalSlug = slug || "page";
116175
117572
  let passwordHash;
@@ -116203,7 +117600,10 @@ var registerCreatePageTool = (server) => {
116203
117600
  authMode: input.authMode,
116204
117601
  passwordHash: passwordHash ?? null,
116205
117602
  body: input.body,
116206
- needsCredentials: needsCredentialsNames ?? null
117603
+ needsCredentials: needsCredentialsNames ?? null,
117604
+ theme: themeFields.theme,
117605
+ themeTokens: themeFields.themeTokens,
117606
+ designVersion: input.designVersion
116207
117607
  });
116208
117608
  if (!updated) {
116209
117609
  const msg = `Failed to update existing page ${existing.id}.`;
@@ -116224,7 +117624,10 @@ var registerCreatePageTool = (server) => {
116224
117624
  authMode: input.authMode,
116225
117625
  passwordHash,
116226
117626
  body: input.body,
116227
- needsCredentials: needsCredentialsNames
117627
+ needsCredentials: needsCredentialsNames,
117628
+ theme: themeFields.theme,
117629
+ themeTokens: themeFields.themeTokens,
117630
+ designVersion: input.designVersion
116228
117631
  });
116229
117632
  id = created.id;
116230
117633
  } catch (err) {
@@ -116241,16 +117644,26 @@ var registerCreatePageTool = (server) => {
116241
117644
  const apiUrl = `${getApiBaseUrl()}/p/${id}`;
116242
117645
  const appUrl = `${getAppBaseUrl2()}/pages/${id}`;
116243
117646
  const version = await getPageEditCounter(id);
116244
- return toolOk(`Page "${input.title}" saved (slug=${finalSlug}, version=${version}).`, {
117647
+ const designFlags = fresh.contentType === "text/html" ? {
117648
+ usesDesignSystem: typeof input.theme === "string" || Boolean(input.themeTokens) || bodyUsesDesignSystem(fresh.body),
117649
+ lightOnlyColors: hasLightOnlyColors(fresh.themeTokens),
117650
+ ...fresh.designVersion >= 2 ? { colorLiteralCount: countColorLiterals(fresh.body) } : {}
117651
+ } : {};
117652
+ const { ignored } = themeFields;
117653
+ return toolOk(`Page "${input.title}" saved (slug=${finalSlug}, version=${version}, designVersion=${fresh.designVersion}).` + (ignored.length > 0 ? " Some theme tokens were ignored (outside the page token contract or referencing a variable outside it)." : ""), {
116245
117654
  details: `API: ${apiUrl}
116246
- App: ${appUrl}`,
117655
+ App: ${appUrl}` + (ignored.length > 0 ? `
117656
+ Ignored theme tokens: ${ignored.join(", ")}` : ""),
116247
117657
  data: {
116248
117658
  yourAgentId: requestInfo.agentId,
116249
117659
  id,
116250
117660
  key: fresh.key,
116251
117661
  version,
116252
117662
  app_url: appUrl,
116253
- api_url: apiUrl
117663
+ api_url: apiUrl,
117664
+ designVersion: fresh.designVersion,
117665
+ ...ignored.length > 0 ? { ignoredTokens: ignored } : {},
117666
+ ...designFlags
116254
117667
  }
116255
117668
  });
116256
117669
  });
@@ -116261,10 +117674,16 @@ var init_create_page = __esm(() => {
116261
117674
  init_audit_user();
116262
117675
  init_db4();
116263
117676
  init_page_versions();
117677
+ init_color_literals();
116264
117678
  init_version3();
117679
+ init_page_fields();
117680
+ init_tokens2();
116265
117681
  init_utils();
116266
117682
  init_types4();
116267
117683
  init_constants3();
117684
+ SWARM_CLASS = /(?:^|\s)swarm-/;
117685
+ COLOR_TOKEN_REFERENCE = /var\(\s*--color-/i;
117686
+ PAGE_COLOR_TOKENS = new Set(PAGE_THEME_COLOR_TOKENS);
116268
117687
  });
116269
117688
 
116270
117689
  // src/oauth/app-validation.ts
@@ -116317,7 +117736,7 @@ function hydrateOAuthAppFromPreset(preset, overrides = {}) {
116317
117736
  };
116318
117737
  }
116319
117738
  var OAUTH_PRESETS;
116320
- var init_presets = __esm(() => {
117739
+ var init_presets2 = __esm(() => {
116321
117740
  OAUTH_PRESETS = [
116322
117741
  {
116323
117742
  id: "google",
@@ -116748,7 +118167,7 @@ var init_tool = __esm(() => {
116748
118167
  init_oauth_credential_bindings();
116749
118168
  init_script_connections();
116750
118169
  init_app_validation();
116751
- init_presets();
118170
+ init_presets2();
116752
118171
  init_wrapper();
116753
118172
  init_rbac();
116754
118173
  init_credential_broker();
@@ -117783,6 +119202,187 @@ var init_automatic_task_gate = __esm(() => {
117783
119202
  shouldPersistTaskCompletionMemory = shouldPersistAutomaticTaskMemory;
117784
119203
  });
117785
119204
 
119205
+ // src/tasks/follow-up-gate.ts
119206
+ function readFollowUpGateConfig(env = process.env) {
119207
+ const mode = env.FOLLOW_UP_GATE_MODE?.trim().toLowerCase() === "shadow" ? "shadow" : "off";
119208
+ const scheduleIds = new Set(parseFollowUpGateScheduleIds(env.FOLLOW_UP_GATE_SCHEDULE_IDS).filter(isFollowUpGateScheduleId).map((id) => id.toLowerCase()));
119209
+ return { mode, scheduleIds, verifierScript: env.FOLLOW_UP_GATE_VERIFIER_SCRIPT?.trim() ?? "" };
119210
+ }
119211
+ function classifyFollowUpGate(input) {
119212
+ const { task, status, config } = input;
119213
+ if (config.mode === "off")
119214
+ return { eligible: false, reason: "mode_off" };
119215
+ if (!task.scheduleId)
119216
+ return { eligible: false, reason: "not_scheduled" };
119217
+ if (!config.scheduleIds.has(task.scheduleId.toLowerCase())) {
119218
+ return { eligible: false, reason: "schedule_not_gated" };
119219
+ }
119220
+ if (status === "failed")
119221
+ return { eligible: false, reason: "status_failed" };
119222
+ if (task.followUpConfig?.onCompleted?.trim() || task.followUpConfig?.onFailed?.trim()) {
119223
+ return { eligible: false, reason: "follow_up_instructions" };
119224
+ }
119225
+ return { eligible: true };
119226
+ }
119227
+ function scheduleFollowUpGateShadow(args) {
119228
+ const config = readFollowUpGateConfig();
119229
+ const verdict = classifyFollowUpGate({ task: args.task, status: args.status, config });
119230
+ if (!verdict.eligible && (verdict.reason === "mode_off" || verdict.reason === "not_scheduled" || verdict.reason === "schedule_not_gated")) {
119231
+ return;
119232
+ }
119233
+ const deps = depsForTests ?? defaultDeps;
119234
+ getDbClient2().afterCommit(() => {
119235
+ const run = verdict.eligible ? runShadow(args, config, deps) : writeRecord(args, { decision: "ineligible", reason: verdict.reason });
119236
+ pending.add(run);
119237
+ const settle = () => {
119238
+ pending.delete(run);
119239
+ };
119240
+ run.then(settle, settle);
119241
+ });
119242
+ }
119243
+ async function runShadow(args, config, deps) {
119244
+ if (inFlight4 >= FOLLOW_UP_GATE_MAX_IN_FLIGHT) {
119245
+ await writeRecord(args, { decision: "error", reason: "concurrency_cap" });
119246
+ return;
119247
+ }
119248
+ inFlight4++;
119249
+ try {
119250
+ await writeRecord(args, await verify(args, config, deps));
119251
+ } finally {
119252
+ inFlight4--;
119253
+ }
119254
+ }
119255
+ async function verify(args, config, deps) {
119256
+ if (!config.verifierScript)
119257
+ return { decision: "error", reason: "no_verifier" };
119258
+ const started = performance.now();
119259
+ const latency = () => Math.round(performance.now() - started);
119260
+ const controller = new AbortController;
119261
+ const deadlineMs = timeoutMs;
119262
+ let timer;
119263
+ let script = null;
119264
+ let timedOut = false;
119265
+ try {
119266
+ const run = (async () => {
119267
+ script = await deps.getVerifier(config.verifierScript);
119268
+ if (!script)
119269
+ return null;
119270
+ return {
119271
+ result: await deps.runVerifier(script, { taskId: args.task.id }, args.leadAgentId, controller.signal)
119272
+ };
119273
+ })();
119274
+ run.catch(() => {});
119275
+ const deadline = new Promise((_, reject) => {
119276
+ timer = setTimeout(() => {
119277
+ timedOut = true;
119278
+ controller.abort();
119279
+ reject(new Error(`verifier timed out after ${deadlineMs}ms`));
119280
+ }, deadlineMs);
119281
+ });
119282
+ const outcome = await Promise.race([run, deadline]);
119283
+ const verifier = verifierInfo(script);
119284
+ if (!outcome) {
119285
+ return { decision: "error", reason: "no_verifier", verifier, latencyMs: latency() };
119286
+ }
119287
+ const result = outcome.result;
119288
+ if (!result || typeof result !== "object") {
119289
+ return {
119290
+ decision: "error",
119291
+ reason: "verifier_error",
119292
+ verifier,
119293
+ latencyMs: latency(),
119294
+ error: "verifier result is not an object"
119295
+ };
119296
+ }
119297
+ return { ...mapVerdict(result), verifier, latencyMs: latency() };
119298
+ } catch (err) {
119299
+ const message = err instanceof Error ? err.message : String(err);
119300
+ return {
119301
+ decision: "error",
119302
+ reason: timedOut ? "timeout" : "verifier_error",
119303
+ verifier: verifierInfo(script),
119304
+ latencyMs: latency(),
119305
+ error: clip(message)
119306
+ };
119307
+ } finally {
119308
+ clearTimeout(timer);
119309
+ }
119310
+ }
119311
+ function verifierInfo(script) {
119312
+ return script ? { name: script.name, version: script.version, contentHash: script.contentHash } : null;
119313
+ }
119314
+ function mapVerdict(result) {
119315
+ const ok = typeof result.ok === "boolean" ? result.ok : null;
119316
+ const controls = result.controls;
119317
+ const controlsOk = controls?.ok === true;
119318
+ const unverified = Array.isArray(result.unverified) ? result.unverified.filter((name) => typeof name === "string").slice(0, MAX_UNVERIFIED).map((name) => name.slice(0, 100)) : [];
119319
+ return {
119320
+ decision: ok === true && controlsOk ? "would_skip" : "would_keep",
119321
+ reason: null,
119322
+ verdict: {
119323
+ ok,
119324
+ check: typeof result.check === "string" ? result.check.slice(0, 100) : null,
119325
+ detail: typeof result.detail === "string" ? clip(result.detail) : "",
119326
+ controlsOk
119327
+ },
119328
+ unverified
119329
+ };
119330
+ }
119331
+ function clip(text) {
119332
+ return scrubSecrets(text).slice(0, TEXT_LIMIT);
119333
+ }
119334
+ async function writeRecord(args, record) {
119335
+ try {
119336
+ await createLogEntry2({
119337
+ eventType: FOLLOW_UP_GATE_SHADOW_EVENT,
119338
+ taskId: args.task.id,
119339
+ agentId: args.leadAgentId,
119340
+ metadata: {
119341
+ v: 1,
119342
+ mode: "shadow",
119343
+ followUpTaskId: args.followUpTaskId,
119344
+ scheduleId: args.task.scheduleId ?? null,
119345
+ status: args.status,
119346
+ decision: record.decision,
119347
+ reason: record.reason,
119348
+ verdict: record.verdict ?? null,
119349
+ unverified: record.unverified ?? [],
119350
+ verifier: record.verifier ?? null,
119351
+ latencyMs: record.latencyMs ?? null,
119352
+ ...record.error ? { error: record.error } : {}
119353
+ }
119354
+ });
119355
+ } catch (err) {
119356
+ console.warn(`[follow-up-gate] Could not record shadow decision for task ${args.task.id.slice(0, 8)}:`, scrubSecrets(err instanceof Error ? err.message : String(err)));
119357
+ }
119358
+ }
119359
+ var FOLLOW_UP_GATE_SHADOW_EVENT = "task_follow_up_gate_shadow", FOLLOW_UP_GATE_TIMEOUT_MS = 60000, FOLLOW_UP_GATE_MAX_IN_FLIGHT = 2, TEXT_LIMIT = 300, MAX_UNVERIFIED = 20, defaultDeps, timeoutMs, depsForTests = null, inFlight4 = 0, pending;
119360
+ var init_follow_up_gate = __esm(() => {
119361
+ init_db4();
119362
+ init_db3();
119363
+ init_run_saved();
119364
+ init_follow_up_gate_schedule_ids();
119365
+ init_secret_scrubber();
119366
+ defaultDeps = {
119367
+ getVerifier: (name) => getScript({ name, scope: "global" }),
119368
+ runVerifier: async (script, input, agentId, signal) => {
119369
+ const output = await runSavedScriptAsAgent({
119370
+ script,
119371
+ input,
119372
+ agentId,
119373
+ timeoutMs,
119374
+ signal
119375
+ });
119376
+ if (output.exitCode !== 0 || output.error || output.runtimeError) {
119377
+ throw new Error(output.runtimeError?.message ?? output.error ?? `script exited with code ${output.exitCode}`);
119378
+ }
119379
+ return output.result;
119380
+ }
119381
+ };
119382
+ timeoutMs = FOLLOW_UP_GATE_TIMEOUT_MS;
119383
+ pending = new Set;
119384
+ });
119385
+
117786
119386
  // src/tasks/worker-follow-up.ts
117787
119387
  function isCrashResumePinEnabled() {
117788
119388
  return isEnvFlagEnabled("HEARTBEAT_PIN_CRASH_RESUME", true);
@@ -117963,7 +119563,7 @@ ${depLines.join(`
117963
119563
  console.log(`[worker-follow-up] Skipped follow-up for ${status} task ${task.id.slice(0, 8)}: woke deferred waiter ${wake.waiterTaskId?.slice(0, 8) ?? "?"} (wake-up task ${wake.wakeTaskId.slice(0, 8)})`);
117964
119564
  return null;
117965
119565
  }
117966
- return await createTaskWithSiblingAwareness(changes.description ?? followUpDescription, {
119566
+ const followUp = await createTaskWithSiblingAwareness(changes.description ?? followUpDescription, {
117967
119567
  agentId: followUpAgentId,
117968
119568
  routingReason: followUpAgentId ? "skill" : undefined,
117969
119569
  routingSource: followUpAgentId ? "engine_default" : undefined,
@@ -117978,6 +119578,19 @@ ${depLines.join(`
117978
119578
  followUpConfig: changes.followUpConfig,
117979
119579
  inheritParentOutputSchema: false
117980
119580
  }, { origin: "followUp" });
119581
+ if (followUp) {
119582
+ try {
119583
+ scheduleFollowUpGateShadow({
119584
+ task,
119585
+ status,
119586
+ followUpTaskId: followUp.id,
119587
+ leadAgentId: leadAgent.id
119588
+ });
119589
+ } catch (err) {
119590
+ console.warn(`[worker-follow-up] Follow-up gate shadow failed for task ${task.id.slice(0, 8)}:`, err instanceof Error ? err.message : String(err));
119591
+ }
119592
+ }
119593
+ return followUp;
117981
119594
  }
117982
119595
  async function deferredWorkChatContextKey(task) {
117983
119596
  if (chatThreadOfContextKey(task.contextKey))
@@ -118188,6 +119801,7 @@ var init_worker_follow_up = __esm(() => {
118188
119801
  init_env_flag();
118189
119802
  init_task_attachment_links();
118190
119803
  init_context_key();
119804
+ init_follow_up_gate();
118191
119805
  init_model_pin();
118192
119806
  init_sibling_awareness();
118193
119807
  init_templates3();
@@ -118302,7 +119916,7 @@ var init_task_terminal_effects = __esm(() => {
118302
119916
 
118303
119917
  // src/tasks/terminal-result-guard.ts
118304
119918
  function getTaskOutputValidationError(outputSchema, output) {
118305
- if (!outputSchema || typeof outputSchema !== "object")
119919
+ if (!isEffectiveOutputSchema(outputSchema))
118306
119920
  return;
118307
119921
  const schema = outputSchema;
118308
119922
  if (!output) {
@@ -118388,6 +120002,7 @@ async function guardTerminalTaskResultWrite(task, write) {
118388
120002
  var init_terminal_result_guard = __esm(() => {
118389
120003
  init_db4();
118390
120004
  init_types4();
120005
+ init_output_schema();
118391
120006
  init_secret_scrubber();
118392
120007
  init_json_schema_validator();
118393
120008
  });
@@ -118489,7 +120104,7 @@ var DeferAbortedError, registerDeferTaskTool = (server) => {
118489
120104
  message: "Provide exactly one of wakeOn.taskId or wakeOn.taskIds."
118490
120105
  }).refine((wake) => !wake.taskIds || new Set(wake.taskIds).size === wake.taskIds.length, {
118491
120106
  message: "wakeOn.taskIds must not contain duplicates."
118492
- }).optional().describe("Wake early on a task event. Provide taskId or nonempty, unique taskIds. mode defaults to all (every member must match); any wakes on the first match. settled covers completed, failed, or cancelled. Deferred and superseded members follow their continuations; a superseded member without a resume child holds to the ceiling. Any already-terminal member rejects the request; one delayMs/runAt ceiling is still required for the whole set. The member whose settlement wakes you creates no separate lead follow-up for your agent unless its followUpConfig sets onCompleted/onFailed; an all-mode member that settles while others are pending still does."),
120107
+ }).optional().describe("Wake early on a task event. Provide taskId or nonempty, unique taskIds. mode defaults to all (every member must match); any wakes on the first match. settled covers completed, failed, cancelled, or skipped. Deferred and superseded members follow their continuations; a superseded member without a resume child holds to the ceiling. Any already-terminal member rejects the request; one delayMs/runAt ceiling is still required for the whole set. The member whose settlement wakes you creates no separate lead follow-up for your agent unless its followUpConfig sets onCompleted/onFailed; an all-mode member that settles while others are pending still does."),
118493
120108
  summary: string2().min(1).max(4000).describe("What you did so far and where things stand. Stored in the task log for tasks with an outputSchema; otherwise becomes the task's output."),
118494
120109
  output: string2().optional().describe("Required when the task has an outputSchema: a JSON string matching that schema, stored verbatim as terminal output. Ignored for tasks without an outputSchema."),
118495
120110
  note: string2().min(1).max(2000).describe("What is pending, and what to check on wake-up."),
@@ -123067,6 +124682,11 @@ ${mappings.map((m) => ` - ${m.inboxId} (${m.inboxEmail ?? "no email"})`).join(`
123067
124682
  }
123068
124683
  if (action === "register") {
123069
124684
  const mapping = await createAgentMailInboxMapping2(inboxId, requestInfo.agentId, inboxEmail);
124685
+ if (!mapping) {
124686
+ return toolErr(`Inbox ${inboxId} is owned by another agent`, {
124687
+ data: { yourAgentId: requestInfo.agentId }
124688
+ });
124689
+ }
123070
124690
  const text = `Registered inbox ${inboxId} → agent ${agent.name} (${requestInfo.agentId})`;
123071
124691
  return toolOk(text, {
123072
124692
  data: { yourAgentId: requestInfo.agentId, mappings: [mapping] }
@@ -123649,7 +125269,7 @@ var swarmRepoOutputShape2, registerUpdateRepoTool = (server) => {
123649
125269
  clonePath: string2().optional().describe("New clone path."),
123650
125270
  defaultBranch: string2().optional().describe("New default branch."),
123651
125271
  autoClone: boolean().optional().describe("Whether to auto-clone."),
123652
- hooks: RepoHooksSchema.nullable().optional().describe("Repository hook install config. Set { enabled: true } to opt into best-effort worker hook installation, or null to disable."),
125272
+ hooks: RepoHooksSchema.nullable().optional().describe("Repository hook install config. Best-effort worker hook installation is enabled by default for new repos. Disable it with { enabled: false } (or null), or turn it back on with { enabled: true }."),
123653
125273
  guidelines: RepoGuidelinesInputSchema.nullable().optional().describe("Repository guidelines: prChecks (commands before PR), mergeChecks (conditions before merge), allowMerge (default false), review (guidance for reviewers). Pass null to clear.")
123654
125274
  }),
123655
125275
  outputSchema: swarmToolOutputSchema({
@@ -123778,7 +125398,7 @@ var init_request_human_input = __esm(() => {
123778
125398
  id: string2().describe("Unique ID for the question (used as key in responses)"),
123779
125399
  type: _enum2(["approval", "text", "single-select", "multi-select", "boolean", "config"]).describe("Question type"),
123780
125400
  label: string2().optional().describe("The question text displayed to the user (required except for config, which defaults to the key)"),
123781
- required: boolean().optional().describe("Whether this question is required (default: true)"),
125401
+ required: boolean().default(true).describe("Whether this question is required (default: true)"),
123782
125402
  description: string2().optional().describe("Optional help text, rendered as markdown (code fences, images)"),
123783
125403
  placeholder: string2().optional().describe("Placeholder text (for text type)"),
123784
125404
  multiline: boolean().optional().describe("Use textarea instead of input (for text type)"),
@@ -133256,7 +134876,7 @@ var init_send_task = __esm(() => {
133256
134876
  overrideSlackContext: boolean().default(false).describe("Explicitly route this task's Slack updates to a different channel/thread than its parent/contextKey. Requires slackChannelId AND slackThreadTs. Use only for deliberate cross-channel dispatch (e.g. escalation to another human's DM); logged for audit. Without this flag, a slackChannelId/slackThreadTs that disagrees with the parent task or inherited contextKey is rejected — omit the three Slack fields to inherit them from the parent as a unit instead."),
133257
134877
  requestedByUserId: string2().regex(/^[a-f0-9]{32}$/, "Expected a registry user ID (32 lowercase hexadecimal characters).").optional().describe("Registered requester ID (32 lowercase hexadecimal characters). When omitted, inherited from the caller's current task so the attribution flows through multi-hop delegation automatically. Only lead agents can name a user other than the requester of their current task."),
133258
134878
  followUpConfig: FollowUpConfigSchema.optional().describe("Control the lead follow-up created when this task finishes. When to use `followUpConfig`: set `disabled: true` when you'll wait for this task to complete inline and no follow-up is needed; set `onCompleted` / `onFailed` with specific instructions when you need to follow up effectively on a particular outcome of a long-running flow; for normal one-shot tasks, leave it unset because defaults are fine. It is most valuable for long-running / complex flows."),
133259
- outputSchema: record2(string2(), unknown()).optional().describe("Optional JSON Schema the assignee's final output must satisfy. store-progress rejects a completion that does not match. Supported keywords: type, required, properties, enum, const, items.")
134879
+ outputSchema: record2(string2(), unknown()).optional().describe("Optional JSON Schema the assignee's final output must satisfy. store-progress rejects a completion that does not match. Supported keywords: type, required, properties, enum, const, items. When omitted, the child inherits the schema of its parent task (your current task by default). An empty object {} means no schema: the child stores none and inherits none.")
133260
134880
  }).superRefine((data, ctx) => {
133261
134881
  const hasChannel = !!data.slackChannelId;
133262
134882
  const hasThread = !!data.slackThreadTs;
@@ -136503,6 +138123,20 @@ var init_task_learning = __esm(() => {
136503
138123
  DUPLICATE_SEARCH_PREFIXES = [`${LEARNINGS_ROOT}/`, "/longterm/workstreams/"];
136504
138124
  });
136505
138125
 
138126
+ // src/tasks/task-skip.ts
138127
+ function skipReasonFrom(failureReason, output) {
138128
+ return (failureReason ?? output)?.replace(/\s+/g, " ").trim() || undefined;
138129
+ }
138130
+ function finalizeSkippedTaskReaction(task, caller) {
138131
+ if (!task.slackChannelId)
138132
+ return;
138133
+ finalizeTerminalSlackReactions([task]).catch((error) => console.error(`[${caller}] skip reaction failed:`, scrubSecrets(error instanceof Error ? error.message : String(error))));
138134
+ }
138135
+ var init_task_skip = __esm(() => {
138136
+ init_ack();
138137
+ init_secret_scrubber();
138138
+ });
138139
+
136506
138140
  // src/tools/store-progress.ts
136507
138141
  async function foreignTaskWriteError(caller, task, sourceTaskId) {
136508
138142
  const decision = can({
@@ -136531,14 +138165,14 @@ function learningSentence(result) {
136531
138165
  var BLOCKED_WAITING_PATTERN, BLOCKED_WAITING_MIN_ELAPSED_MS, storeProgressOutputSchema, registerStoreProgressTool = (server) => {
136532
138166
  createToolRegistrar(server)("store-progress", {
136533
138167
  title: "Store task progress",
136534
- description: "Stores the progress of a specific task. Can also mark task as completed or failed, which will set the agent back to idle.",
138168
+ description: "Stores the progress of a specific task. Can also mark task as completed, failed, or skipped, which will set the agent back to idle. Use skipped only when the work is not yours to handle, such as a Slack thread message addressed to someone else; never skip an explicit @mention of you or work assigned to you.",
136535
138169
  annotations: { idempotentHint: true },
136536
138170
  inputSchema: object2({
136537
138171
  taskId: uuid().optional().describe("Full task UUID. Defaults to the caller-owned task in X-Source-Task-Id; required outside task context."),
136538
138172
  progress: string2().optional().describe("The progress update to store."),
136539
- status: _enum2(["completed", "failed", "in_progress", "pending"]).optional().describe("Set to 'completed' or 'failed' to finish the task. 'in_progress' and 'pending' store progress only and do not change task status."),
138173
+ status: _enum2(["completed", "failed", "skipped", "in_progress", "pending"]).optional().describe("Set to 'completed' or 'failed' to finish the task. Set 'skipped' to end a task that is not yours to handle (a Slack thread message addressed to someone else, or one you have nothing to add to); it posts nothing to the thread, creates no follow-up, and needs a one-line reason in failureReason. Never skip an explicit @mention of you or work assigned to you. 'in_progress' and 'pending' store progress only and do not change task status."),
136540
138174
  output: string2().optional().describe("The task result (used when completing). For Slack-originated tasks, this is published verbatim in the thread's outcome card. Keep free-text output under 120 words by default. Name the result and every artifact link, plus any IDs the human needs. Link documents instead of inlining them; omit process narration, transcripts, and restatements of the brief. Exceed the target only when requested depth, enumerated results, essential evidence, caveats, or instructions require it, or when the task's outputSchema requires longer output. When the task carries an outputSchema, output must be JSON matching it."),
136541
- failureReason: string2().optional().describe("The reason for failure (used when failing)."),
138175
+ failureReason: string2().optional().describe("The reason for failure (used when failing), or the one-line reason for a skip (required with status 'skipped')."),
136542
138176
  attachments: array2(AttachmentInputSchema).max(20).optional().describe("Pointer-based artifacts produced by this step — agent-fs path, URL, shared-fs path, or swarm Page. No inline file data; upload to agent-fs first and attach by path. Agent-fs pointers are verified before task state changes, using the explicit org/drive pair or the registering agent's configured defaults. May be sent on any call (progress or completion) and accumulates across calls; duplicates are de-duped by sha256 (when present) or by (kind, pointer, name)."),
136543
138177
  citations: array2(CitationInputSchema).max(MAX_TASK_CITATIONS).catch([]).optional().describe('Claim sources, upserted by index across calls. Use only for factual claims the reader cannot already see in the thread or task tree, 1-2 sources; none on delegation, routing, acks, or status replies. Reference each one in output with [citation:N], or set general: true for a source that backs the whole answer (it renders under "General sources"). ref per kind: task = task UUID; memory = memory UUID (optional quote must appear verbatim in it); github = owner/repo#N, owner/repo@<sha>, or a github.com pull, issues, or commit URL; slack = permalink or channel/ts; agent-fs = file path; page = page id; script-run = script run id; url = http(s) URL. The first completing call is refused, and the task stays in progress, if a marker has no entry, a citation fails validation, or a non-general citation is unreferenced; the response lists each problem. After one refusal, completion proceeds and those markers and sources are dropped from rendered output. At most 50 citations per call/task, refs up to 2048 characters, labels up to 200. Invalid or oversized batches are ignored; existing indices can still be updated at capacity.'),
136544
138178
  learning: union2([
@@ -136578,7 +138212,13 @@ var BLOCKED_WAITING_PATTERN, BLOCKED_WAITING_MIN_ELAPSED_MS, storeProgressOutput
136578
138212
  return toolErr("Omitted taskId requires a source task assigned to the calling agent.");
136579
138213
  }
136580
138214
  }
136581
- const status = requestedStatus === "completed" || requestedStatus === "failed" ? requestedStatus : undefined;
138215
+ const status = requestedStatus === "completed" || requestedStatus === "failed" || requestedStatus === "skipped" ? requestedStatus : undefined;
138216
+ const skipReason = status === "skipped" ? skipReasonFrom(failureReason, output) : undefined;
138217
+ if (status === "skipped") {
138218
+ if (!skipReason) {
138219
+ return toolErr('Status "skipped" needs a one-line reason in failureReason. The task was not changed.');
138220
+ }
138221
+ }
136582
138222
  const leakedParameter = output?.match(/(?:<\/(?:output|parameter)>\s*)?<parameter name="([a-zA-Z_]+)">\s*([\s\S]*)$/);
136583
138223
  if (leakedParameter) {
136584
138224
  output = output?.slice(0, leakedParameter.index);
@@ -136739,8 +138379,7 @@ var BLOCKED_WAITING_PATTERN, BLOCKED_WAITING_MIN_ELAPSED_MS, storeProgressOutput
136739
138379
  }
136740
138380
  const terminalResultGuard = await guardTerminalTaskResultWrite(existingTask, {
136741
138381
  status,
136742
- output,
136743
- failureReason,
138382
+ ...status === "skipped" ? { failureReason: skipReason } : { output, failureReason },
136744
138383
  force
136745
138384
  });
136746
138385
  if (terminalResultGuard.handled) {
@@ -136836,6 +138475,14 @@ This check refuses once per task; the next completion is accepted and unfixed ci
136836
138475
  await updateAgentStatusFromCapacity2(existingTask.agentId);
136837
138476
  }
136838
138477
  }
138478
+ } else if (status === "skipped") {
138479
+ const result = await skipTask2(taskId, skipReason);
138480
+ if (result) {
138481
+ updatedTask = result;
138482
+ if (existingTask.agentId) {
138483
+ await updateAgentStatusFromCapacity2(existingTask.agentId);
138484
+ }
138485
+ }
136839
138486
  } else {
136840
138487
  if (existingTask.agentId) {
136841
138488
  await updateAgentStatusFromCapacity2(existingTask.agentId);
@@ -136849,7 +138496,7 @@ This check refuses once per task; the next completion is accepted and unfixed ci
136849
138496
  };
136850
138497
  });
136851
138498
  const shouldRunTerminalSideEffects = (status === "completed" || status === "failed") && result.success && result.task && !(("wasNoOp" in result) && result.wasNoOp) && !(("wasForcedOverwrite" in result) && result.wasForcedOverwrite);
136852
- if (shouldRunTerminalSideEffects && status) {
138499
+ if (shouldRunTerminalSideEffects && (status === "completed" || status === "failed")) {
136853
138500
  await runTaskTerminalEffects({
136854
138501
  task: result.task,
136855
138502
  status,
@@ -136859,6 +138506,9 @@ This check refuses once per task; the next completion is accepted and unfixed ci
136859
138506
  persistMemory
136860
138507
  });
136861
138508
  }
138509
+ const skipWasFresh = status === "skipped" && result.success && result.task?.status === "skipped" && !(("wasNoOp" in result) && result.wasNoOp) && !(("wasForcedOverwrite" in result) && result.wasForcedOverwrite);
138510
+ if (skipWasFresh && result.task)
138511
+ finalizeSkippedTaskReaction(result.task, "store-progress");
136862
138512
  const learningResult = await learningWrite;
136863
138513
  const { success } = result;
136864
138514
  const message = learningResult ? `${result.message} ${learningSentence(learningResult)}` : result.message;
@@ -136887,6 +138537,7 @@ var init_store_progress = __esm(() => {
136887
138537
  init_task_citations2();
136888
138538
  init_agent_fs_provider();
136889
138539
  init_rbac();
138540
+ init_task_skip();
136890
138541
  init_task_terminal_effects();
136891
138542
  init_terminal_result_guard();
136892
138543
  init_utils();
@@ -138254,7 +139905,9 @@ var registerTrackerUnlinkTool = (server) => {
138254
139905
  outputSchema: swarmToolOutputSchema()
138255
139906
  }, async (args, _requestInfo, _meta) => {
138256
139907
  try {
138257
- await deleteTrackerSync(args.syncId);
139908
+ const removed = await deleteTrackerSync(args.syncId);
139909
+ if (!removed)
139910
+ return toolErr(`No tracker mapping ${args.syncId}`);
138258
139911
  return toolOk(`Removed tracker sync mapping ${args.syncId}.`);
138259
139912
  } catch (error) {
138260
139913
  const message = error instanceof Error ? error.message : "Unknown error";
@@ -139246,6 +140899,8 @@ var registerRetryWorkflowRunTool = (server) => {
139246
140899
  outputSchema: swarmToolOutputSchema()
139247
140900
  }, async ({ runId }) => {
139248
140901
  try {
140902
+ if (!await getWorkflowRunSummary(runId))
140903
+ return toolErr(`Workflow run not found: ${runId}`);
139249
140904
  await retryFailedRun2(runId, getExecutorRegistry2());
139250
140905
  return toolOk(`Retrying workflow run ${runId}.`);
139251
140906
  } catch (err) {
@@ -139255,6 +140910,7 @@ var registerRetryWorkflowRunTool = (server) => {
139255
140910
  };
139256
140911
  var init_retry_workflow_run = __esm(() => {
139257
140912
  init_zod();
140913
+ init_workflow_runs();
139258
140914
  init_utils();
139259
140915
  init_workflows();
139260
140916
  });
@@ -140072,4 +141728,4 @@ var init_server = __esm(() => {
140072
141728
  loggedToolAllowlistWarnings = new Set;
140073
141729
  });
140074
141730
 
140075
- export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, init_types, McpServer, init_mcp, repointTrackerSyncBySwarmId, init_tracker, isRuntimePoolWakeable, isAgentReachable, init_reachability, referencedBundlePaths, skillDirs, init_manifest_format, TaskCreationBlockedError, init_errors2, resolveIdentity, renderIdentity, init_identity, recordUnmappedIdentity, init_unmapped_identities, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, taskModelPin, resumedTaskModelSelection, init_model_pin, listHarnessModelSupport, recordHarnessModelSupport, agentRanModel, getAgentHarnessCliVersion, setAgentHarnessCliVersion, init_harness_model_support, sanitizeModelTierOverrides, parseModelTierOverridesHeader, setAgentModelTierOverrides, previewModelTiers, recordClaimModelResolution, init_model_tier_resolution, harnessModelErrorFor, poolTaskRunsOnHarness, explicitModelError, explicitModelErrorForAgent, init_model_validation, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, init_inbound_files, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app2, init_linear, init_slack, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, init_core, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, handleApps, init_apps, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, executeReadOnlyQuery, assertSelectOnlyQuery, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesAllowMerge, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, init_validate, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation2, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };
141731
+ export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, init_types, McpServer, init_mcp, repointTrackerSyncBySwarmId, init_tracker, isRuntimePoolWakeable, isAgentReachable, init_reachability, referencedBundlePaths, skillDirs, init_manifest_format, TaskCreationBlockedError, init_errors2, resolveIdentity, renderIdentity, init_identity, recordUnmappedIdentity, init_unmapped_identities, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, taskModelPin, resumedTaskModelSelection, init_model_pin, listHarnessModelSupport, recordHarnessModelSupport, agentRanModel, getAgentHarnessCliVersion, setAgentHarnessCliVersion, init_harness_model_support, sanitizeModelTierOverrides, parseModelTierOverridesHeader, setAgentModelTierOverrides, previewModelTiers, recordClaimModelResolution, init_model_tier_resolution, harnessModelErrorFor, poolTaskRunsOnHarness, explicitModelError, explicitModelErrorForAgent, init_model_validation, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, init_inbound_files, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, COLOR_LITERAL_THRESHOLD, countColorLiterals, init_color_literals, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app2, init_linear, init_slack, verifyPageSession, LEGACY_PAGE_SESSION_COOKIE, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, isLocalDevPageRequest, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, init_core, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, handleApps, init_apps, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, executeReadOnlyQuery, assertSelectOnlyQuery, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, DEFAULT_THEME_ID, THEME_PRESET_IDS, getThemePreset, init_presets, readThemeFields, init_page_fields, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets2, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesAllowMerge, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, init_validate, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, skipReasonFrom, finalizeSkippedTaskReaction, init_task_skip, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation2, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };