@alook/app 0.0.134 → 0.0.136

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 (172) hide show
  1. package/bundled/email-worker/index.js +14 -23
  2. package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
  3. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  4. package/bundled/web/.open-next/assets/_next/static/chunks/05mvqqr0d48pd.css +1 -0
  5. package/bundled/web/.open-next/assets/_next/static/chunks/0exhnlyrat_-7.js +11 -0
  6. package/bundled/web/.open-next/assets/_next/static/chunks/{0e5m6elbfa-zc.js → 0l8qs3uu8t4dc.js} +4 -4
  7. package/bundled/web/.open-next/assets/_next/static/chunks/0njval22g1rht.js +64 -0
  8. package/bundled/web/.open-next/assets/_next/static/chunks/0rmmmmqzr5q8u.js +1 -0
  9. package/bundled/web/.open-next/assets/_next/static/chunks/{1pjkmc-97x3k7.js → 0zgj-5k527bub.js} +1 -1
  10. package/bundled/web/.open-next/assets/_next/static/chunks/11jejnuxkw5-s.js +1 -0
  11. package/bundled/web/.open-next/assets/_next/static/chunks/{0z1ni4q9mhqpe.js → 1n2ogp1w_pw5c.js} +1 -1
  12. package/bundled/web/.open-next/assets/_next/static/chunks/{29vahszwp_yzk.js → 1uj4q_n378l_e.js} +3 -3
  13. package/bundled/web/.open-next/assets/_next/static/chunks/{2vvce1uli_yf3.js → 29j2dlmefldk5.js} +1 -1
  14. package/bundled/web/.open-next/assets/_next/static/chunks/{3g9-r7m865tot.js → 2n2-erdcjib3l.js} +3 -3
  15. package/bundled/web/.open-next/assets/_next/static/chunks/{2evdmhjrm4fp4.js → 2n83te3i54x0y.js} +1 -1
  16. package/bundled/web/.open-next/assets/_next/static/chunks/3a4lcn1k6my37.js +1 -0
  17. package/bundled/web/.open-next/assets/_next/static/chunks/3pmxar-ugtky1.js +1 -0
  18. package/bundled/web/.open-next/assets/_next/static/chunks/{3l4-pv_2z86tp.js → 412d684t3r9n2.js} +2 -2
  19. package/bundled/web/.open-next/assets/_next/static/chunks/41vj2zu1l6l7w.js +3 -0
  20. package/bundled/web/.open-next/cache/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/_global-error.cache +1 -1
  21. package/bundled/web/.open-next/cache/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/_not-found.cache +1 -1
  22. package/bundled/web/.open-next/cache/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/device.cache +1 -1
  23. package/bundled/web/.open-next/cache/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/privacy.cache +1 -1
  24. package/bundled/web/.open-next/cache/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/sitemap.xml.cache +1 -1
  25. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  26. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  27. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  28. package/bundled/web/.open-next/middleware/handler.mjs +10 -10
  29. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  30. package/bundled/web/.open-next/server-functions/default/src/web/.next/app-path-routes-manifest.json +1 -1
  31. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  32. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
  33. package/bundled/web/.open-next/server-functions/default/src/web/.next/required-server-files.json +1 -1
  34. package/bundled/web/.open-next/server-functions/default/src/web/.next/routes-manifest.json +8 -6
  35. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page.js +1 -1
  36. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
  37. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page.js +1 -1
  38. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
  39. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page.js +1 -1
  40. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
  41. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page.js +1 -1
  42. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
  43. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page.js +1 -1
  44. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
  45. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page.js +1 -1
  46. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
  47. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page.js +1 -1
  48. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
  49. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page.js +1 -1
  50. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
  51. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page.js +1 -1
  52. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
  53. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page.js +1 -1
  54. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
  55. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page.js +1 -1
  56. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
  57. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page.js +1 -1
  58. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
  59. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page.js +1 -1
  60. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
  61. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page.js +1 -1
  62. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
  63. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page.js +1 -1
  64. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
  65. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page.js +1 -1
  66. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
  67. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/page.js +1 -1
  68. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/page_client-reference-manifest.js +1 -1
  69. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page.js +1 -1
  70. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
  71. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page.js +1 -1
  72. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
  73. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/[traceId]/page.js +1 -1
  74. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/[traceId]/page_client-reference-manifest.js +1 -1
  75. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/page.js +1 -1
  76. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/page_client-reference-manifest.js +1 -1
  77. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page.js +1 -1
  78. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
  79. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page.js +2 -2
  80. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
  81. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page.js +1 -1
  82. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
  83. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  84. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/machine-tokens/activate/route.js +2 -2
  85. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/{machine-tokens/bind-workspace → workspaces/[id]/onboarded}/route.js +6 -6
  86. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/workspaces/[id]/onboarded/route_client-reference-manifest.js +3 -0
  87. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/workspaces/route.js +5 -5
  88. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/device/page_client-reference-manifest.js +1 -1
  89. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page/react-loadable-manifest.json +1 -1
  90. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page.js +1 -1
  91. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
  92. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  93. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page.js +1 -1
  94. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
  95. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page.js +1 -1
  96. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
  97. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app-paths-manifest.json +1 -1
  98. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/0_kl__next-internal_server_app_api_workspaces_[id]_onboarded_route_actions_1vi64wi.js +3 -0
  99. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0akupj1._.js +1 -1
  100. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0bye0tx._.js +1 -1
  101. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0dnslqa._.js +1 -1
  102. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0gm1sdi._.js +1 -1
  103. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0j4ezcj._.js +1 -1
  104. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0pn6awg._.js +1 -1
  105. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0uctf0v._.js +1 -1
  106. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1-ug-mf._.js +1 -1
  107. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__11-5cy7._.js +1 -1
  108. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1ag75po._.js +3 -0
  109. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1d7nnl5._.js +1 -1
  110. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1e9t6i6._.js +1 -1
  111. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1ertv1z._.js +1 -1
  112. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1g-mlb0._.js +3 -0
  113. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1lcw_r4._.js +1 -1
  114. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +13 -12
  115. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0guhu0i._.js +3 -0
  116. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0v95a0y._.js +15 -15
  117. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_139j3zh._.js +15 -15
  118. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_1nfaney._.js +15 -15
  119. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/src_1j5rtq8._.js +1 -1
  120. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__1-ckpz1._.js → [root-of-the-server]__02a8jxi._.js} +2 -2
  121. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1062lx9._.js +3 -0
  122. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1nnp8st._.js +1 -1
  123. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1xs4cby._.js +3 -0
  124. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +13 -12
  125. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_04ht2b1._.js +1 -1
  126. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0p54okk._.js → _09v4-yk._.js} +15 -15
  127. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0aittsu._.js +1 -1
  128. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0qgcnj5._.js +1 -1
  129. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_19l4x1_._.js +3 -0
  130. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1vq6255._.js +3 -0
  131. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_1k359vx._.js +3 -0
  132. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_0-s5b_y._.js +1 -1
  133. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_1kzi5ju._.js +64 -0
  134. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_home_page_tsx_0-vs82-._.js +1 -1
  135. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_1pjxad3._.js +1 -1
  136. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_lib_api_ts_1ffelwp._.js +1 -1
  137. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  138. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  139. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  140. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  141. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +115 -115
  142. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +284 -266
  143. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +6 -6
  144. package/bundled/web/migrations/0041_workspace_onboarded.sql +4 -0
  145. package/bundled/web/wrangler.toml +1 -1
  146. package/bundled/ws-do/index.js +13 -22
  147. package/dist/cli/index.js +702 -757
  148. package/dist/cli/session-runner.js +4 -10
  149. package/dist/index.js +3 -6
  150. package/package.json +1 -1
  151. package/bundled/web/.open-next/assets/_next/static/chunks/0vq-9me5zdpwe.js +0 -1
  152. package/bundled/web/.open-next/assets/_next/static/chunks/1i3-07qkxqf69.js +0 -1
  153. package/bundled/web/.open-next/assets/_next/static/chunks/1we2uvram7g8m.js +0 -11
  154. package/bundled/web/.open-next/assets/_next/static/chunks/25mf0rxvnm36s.js +0 -1
  155. package/bundled/web/.open-next/assets/_next/static/chunks/27b6m6derdf5b.js +0 -64
  156. package/bundled/web/.open-next/assets/_next/static/chunks/2z5ztdz1g7p07.js +0 -3
  157. package/bundled/web/.open-next/assets/_next/static/chunks/3_v9le57qytk4.css +0 -1
  158. package/bundled/web/.open-next/assets/_next/static/chunks/3cqwxwej5gtcc.js +0 -1
  159. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/machine-tokens/bind-workspace/route_client-reference-manifest.js +0 -3
  160. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/09k-_server_app_api_machine-tokens_bind-workspace_route_actions_1hwzeb2.js +0 -3
  161. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__0gz2js-._.js +0 -3
  162. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__1k4p862._.js +0 -3
  163. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_1dw3pkf._.js +0 -3
  164. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0h_is3c._.js +0 -3
  165. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1d52fv2._.js +0 -3
  166. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0h0_aut._.js +0 -3
  167. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1n93_m_._.js +0 -64
  168. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_1jq1kez._.js +0 -3
  169. /package/bundled/web/.open-next/assets/_next/static/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/_buildManifest.js +0 -0
  170. /package/bundled/web/.open-next/assets/_next/static/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/_clientMiddlewareManifest.js +0 -0
  171. /package/bundled/web/.open-next/assets/_next/static/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/_ssgManifest.js +0 -0
  172. /package/bundled/web/.open-next/cache/{VmFOnIGsnimmwjDQLrNlX → BF9psRzRPCmyYVYovM5Wd}/robots.txt.cache +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[542168,a=>{"use strict";a.i(846208);var b=a.i(892409),c=a.i(346125),d=a.i(963481),e=a.i(274960),f=a.i(397016),g=a.i(679289),h=a.i(549196),i=a.i(88948),j=a.i(17177),k=a.i(6018),l=a.i(700555),m=a.i(178957),n=a.i(364625),o=a.i(147861),p=a.i(61337),q=a.i(732231),r=a.i(309425),s=a.i(379351),t=a.i(307659),u=a.i(527029),v=a.i(935186),w=a.i(27502),x=a.i(781590),y=a.i(120717),z=a.i(924946),A=a.i(986306),B=a.i(130496),C=a.i(922382),D=a.i(975036),E=a.i(328039),F=a.i(855312),G=a.i(79908);a.s(["agent",0,e,"agentAccess",0,t,"agentLink",0,C,"agentPin",0,u,"agentSidebarOrder",0,v,"agentSkill",0,A,"artifact",0,q,"calendarEvent",0,p,"channel",0,y,"conversation",0,g,"conversationMap",0,B,"email",0,n,"emailAccount",0,r,"inbox",0,D,"issue",0,E,"issueComment",0,F,"machine",0,k,"machineToken",0,l,"meetingSession",0,x,"member",0,d,"message",0,h,"messageFlag",0,G,"overview",0,w,"runtime",0,f,"session",0,o,"task",0,i,"taskMessage",0,j,"user",0,b,"whitelist",0,m,"workspace",0,c,"workspaceFileRequest",0,z,"workspaceInvite",0,s],395780);var H=a.i(395780);a.s(["queries",0,H],542168)},696826,a=>{"use strict";a.i(250195);var b=a.i(544979);a.s(["getDb",0,function(a){let c=a.withSession("first-unconstrained");return(0,b.createDb)(c)}])},885135,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","useWorkspace")},27504,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","useWorkspace")},452149,a=>{"use strict";a.i(885135);var b=a.i(27504);a.n(b)},584236,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d,"useAgentContextSafe",()=>e]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","useAgentContext"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContextSafe() from the server but useAgentContextSafe is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","useAgentContextSafe")},861849,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d,"useAgentContextSafe",()=>e]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","useAgentContext"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContextSafe() from the server but useAgentContextSafe is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","useAgentContextSafe")},498915,a=>{"use strict";a.i(584236);var b=a.i(861849);a.n(b)},991013,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","useChannel")},906430,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","useChannel")},150409,a=>{"use strict";a.i(991013);var b=a.i(906430);a.n(b)},632146,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","useInboxCount")},269150,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","useInboxCount")},143131,a=>{"use strict";a.i(632146);var b=a.i(269150);a.n(b)},778759,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","useFlagCount")},292542,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","useFlagCount")},97859,a=>{"use strict";a.i(778759);var b=a.i(292542);a.n(b)},578647,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","useSidebarTrigger")},383843,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","useSidebarTrigger")},877617,a=>{"use strict";a.i(578647);var b=a.i(383843);a.n(b)},678399,a=>a.a(async(b,c)=>{try{var d=a.i(722148),e=a.i(811953);a.i(52707);var f=a.i(594497),g=a.i(301786);a.i(250195);var h=a.i(542168),i=a.i(696826),j=a.i(678327),k=a.i(452149),l=a.i(498915),m=a.i(150409),n=a.i(143131),o=a.i(97859),p=a.i(877617),q=b([j]);async function r({children:a,params:b}){let c=await (0,j.getSession)();c||(0,f.redirect)("/sign-in");let{slug:q}=await b,{env:s}=await (0,g.getCloudflareContext)({async:!0}),t=(0,i.getDb)(s.DB),u=await h.queries.workspace.getWorkspaceBySlug(t,q);u||(0,f.redirect)("/workspaces"),await h.queries.member.getMemberByUserAndWorkspace(t,c.user.id,u.id)||(0,f.redirect)("/workspaces");let v=await h.queries.agent.listAgents(t,u.id);if(0===v.length){let a=(await (0,e.headers)()).get("cookie")||"",b=Object.fromEntries(a.split(";").map(a=>{let[b,...c]=a.trim().split("=");return[b,c.join("=")]}));b.skip_init&&b.skip_init===u.id||(0,f.redirect)(`/studio/new?workspace_id=${u.id}`)}return(0,d.jsx)(k.WorkspaceProvider,{workspaceId:u.id,slug:q,children:(0,d.jsx)(l.AgentProvider,{workspaceId:u.id,children:(0,d.jsx)(n.InboxCountProvider,{children:(0,d.jsx)(o.FlagCountProvider,{children:(0,d.jsx)(m.ChannelProvider,{workspaceId:u.id,children:(0,d.jsx)(p.WorkspaceShell,{children:a})})})})})})}[j]=q.then?(await q)():q,a.s(["default",0,r]),c()}catch(a){c(a)}},!1),234278,a=>{a.n(a.i(678399))}];
1
+ module.exports=[542168,a=>{"use strict";a.i(846208);var b=a.i(892409),c=a.i(346125),d=a.i(963481),e=a.i(274960),f=a.i(397016),g=a.i(679289),h=a.i(549196),i=a.i(88948),j=a.i(17177),k=a.i(6018),l=a.i(700555),m=a.i(178957),n=a.i(364625),o=a.i(147861),p=a.i(61337),q=a.i(732231),r=a.i(309425),s=a.i(379351),t=a.i(307659),u=a.i(527029),v=a.i(935186),w=a.i(27502),x=a.i(781590),y=a.i(120717),z=a.i(924946),A=a.i(986306),B=a.i(130496),C=a.i(922382),D=a.i(975036),E=a.i(328039),F=a.i(855312),G=a.i(79908);a.s(["agent",0,e,"agentAccess",0,t,"agentLink",0,C,"agentPin",0,u,"agentSidebarOrder",0,v,"agentSkill",0,A,"artifact",0,q,"calendarEvent",0,p,"channel",0,y,"conversation",0,g,"conversationMap",0,B,"email",0,n,"emailAccount",0,r,"inbox",0,D,"issue",0,E,"issueComment",0,F,"machine",0,k,"machineToken",0,l,"meetingSession",0,x,"member",0,d,"message",0,h,"messageFlag",0,G,"overview",0,w,"runtime",0,f,"session",0,o,"task",0,i,"taskMessage",0,j,"user",0,b,"whitelist",0,m,"workspace",0,c,"workspaceFileRequest",0,z,"workspaceInvite",0,s],395780);var H=a.i(395780);a.s(["queries",0,H],542168)},696826,a=>{"use strict";a.i(250195);var b=a.i(544979);a.s(["getDb",0,function(a){let c=a.withSession("first-unconstrained");return(0,b.createDb)(c)}])},885135,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx <module evaluation>","useWorkspace")},27504,a=>{"use strict";a.s(["WorkspaceProvider",()=>c,"useWorkspace",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceProvider() from the server but WorkspaceProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","WorkspaceProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useWorkspace() from the server but useWorkspace is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/workspace-context.tsx","useWorkspace")},452149,a=>{"use strict";a.i(885135);var b=a.i(27504);a.n(b)},584236,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d,"useAgentContextSafe",()=>e]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","useAgentContext"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContextSafe() from the server but useAgentContextSafe is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx <module evaluation>","useAgentContextSafe")},861849,a=>{"use strict";a.s(["AgentProvider",()=>c,"useAgentContext",()=>d,"useAgentContextSafe",()=>e]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AgentProvider() from the server but AgentProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","AgentProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContext() from the server but useAgentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","useAgentContext"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAgentContextSafe() from the server but useAgentContextSafe is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/agent-context.tsx","useAgentContextSafe")},498915,a=>{"use strict";a.i(584236);var b=a.i(861849);a.n(b)},991013,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx <module evaluation>","useChannel")},906430,a=>{"use strict";a.s(["ChannelProvider",()=>c,"useChannel",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ChannelProvider() from the server but ChannelProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","ChannelProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useChannel() from the server but useChannel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/channel-context.tsx","useChannel")},150409,a=>{"use strict";a.i(991013);var b=a.i(906430);a.n(b)},632146,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx <module evaluation>","useInboxCount")},269150,a=>{"use strict";a.s(["InboxCountProvider",()=>c,"useInboxCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call InboxCountProvider() from the server but InboxCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","InboxCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useInboxCount() from the server but useInboxCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/inbox-count-context.tsx","useInboxCount")},143131,a=>{"use strict";a.i(632146);var b=a.i(269150);a.n(b)},778759,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx <module evaluation>","useFlagCount")},292542,a=>{"use strict";a.s(["FlagCountProvider",()=>c,"useFlagCount",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FlagCountProvider() from the server but FlagCountProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","FlagCountProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFlagCount() from the server but useFlagCount is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/contexts/flag-count-context.tsx","useFlagCount")},97859,a=>{"use strict";a.i(778759);var b=a.i(292542);a.n(b)},578647,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx <module evaluation>","useSidebarTrigger")},383843,a=>{"use strict";a.s(["WorkspaceShell",()=>c,"useSidebarTrigger",()=>d]);var b=a.i(957557);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call WorkspaceShell() from the server but WorkspaceShell is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","WorkspaceShell"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebarTrigger() from the server but useSidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/web/src/components/workspace-shell.tsx","useSidebarTrigger")},877617,a=>{"use strict";a.i(578647);var b=a.i(383843);a.n(b)},678399,a=>a.a(async(b,c)=>{try{var d=a.i(722148);a.i(52707);var e=a.i(594497),f=a.i(301786);a.i(250195);var g=a.i(542168),h=a.i(696826),i=a.i(678327),j=a.i(452149),k=a.i(498915),l=a.i(150409),m=a.i(143131),n=a.i(97859),o=a.i(877617),p=b([i]);async function q({children:a,params:b}){let c=await (0,i.getSession)();c||(0,e.redirect)("/sign-in");let{slug:p}=await b,{env:r}=await (0,f.getCloudflareContext)({async:!0}),s=(0,h.getDb)(r.DB),t=await g.queries.workspace.getWorkspaceBySlug(s,p);return t||(0,e.redirect)("/workspaces"),await g.queries.member.getMemberByUserAndWorkspace(s,c.user.id,t.id)||(0,e.redirect)("/workspaces"),t.onboarded||(0,e.redirect)(`/studio/new?workspace_id=${t.id}`),(0,d.jsx)(j.WorkspaceProvider,{workspaceId:t.id,slug:p,children:(0,d.jsx)(k.AgentProvider,{workspaceId:t.id,children:(0,d.jsx)(m.InboxCountProvider,{children:(0,d.jsx)(n.FlagCountProvider,{children:(0,d.jsx)(l.ChannelProvider,{workspaceId:t.id,children:(0,d.jsx)(o.WorkspaceShell,{children:a})})})})})})}[i]=p.then?(await p)():p,a.s(["default",0,q]),c()}catch(a){c(a)}},!1),234278,a=>{a.n(a.i(678399))}];
2
2
 
3
3
  //# sourceMappingURL=src_0-s5b_y._.js.map
@@ -0,0 +1,64 @@
1
+ module.exports=[762276,a=>{"use strict";var b=a.i(854445);a.i(735132);var c=a.i(325848);let d=`You are the lead coordinator. You receive tasks from the user and decide how to handle them.
2
+
3
+ ## Principles
4
+ - You are the user's single point of contact. Delegate to specialists when their expertise adds value; handle simple tasks yourself for speed.
5
+ - Every delegation must be self-contained: clear goal, full context, and acceptance criteria so the specialist can succeed without back-and-forth.
6
+ - When specialists report back, verify key claims on high-stakes outputs before passing to the user.
7
+ - Synthesize specialist work into clear, concise responses. Credit teammates naturally.
8
+ - If a delegation fails or a specialist is blocked, report back to the user with what happened and your next step.
9
+ - Be warm but concise. Never ask "should I continue?" — if you have what you need, keep moving.`,e=`You are a personal AI assistant. You work solo — no team to delegate to.
10
+
11
+ ## Principles
12
+ - Handle tasks directly: emails, research, scheduling, writing, analysis — whatever comes your way.
13
+ - Be fast, accurate, and proactive. Suggest next steps when you see opportunities.
14
+ - Lead with the answer or deliverable, then context if needed.
15
+ - For complex tasks, break into steps and work through them methodically.
16
+ - Match the user's tone. Be concise — they want results, not status reports.
17
+ - If genuinely ambiguous, ask one focused question. Otherwise, keep moving.`,f=`You are the technical research specialist. You read codebases, explore APIs, review documentation, and gather context for engineering decisions.
18
+
19
+ ## Principles
20
+ - Find technical truth: read code, trace execution paths, compare options with real trade-offs.
21
+ - Lead with the recommendation, then supporting evidence. Cite sources: file paths, docs, code lines.
22
+ - Be explicit about confidence — distinguish "verified in source" from "docs claim X."
23
+ - If a request is ambiguous, ask one focused clarification before starting.
24
+ - Density over volume. Engineers want answers, not essays.`,g=`You are the content research specialist. You find information, verify facts, compare sources, and organize references for accurate content production.
25
+
26
+ ## Principles
27
+ - Cross-reference claims from multiple sources. Never trust a single source for important facts.
28
+ - Lead with key findings the writer needs, then supporting detail.
29
+ - Cite everything: URLs, publication dates, author credentials. Note source freshness.
30
+ - If sources conflict, explain the disagreement and which to trust.
31
+ - If something can't be verified, say so clearly. Separate facts from opinions.`,h=`You are the sales research specialist. You find prospects, research companies, and gather actionable intelligence for outreach.
32
+
33
+ ## Principles
34
+ - Every finding should be actionable — not academic. Focus on: who to contact, what they care about, how to position.
35
+ - For prospects, prioritize buying-intent signals: recent funding, tech stack changes, hiring patterns, pain points.
36
+ - Lead with the most actionable finding. Cite sources with dates and reliability indicators.
37
+ - Synthesize into intelligence, not data dumps. Sales moves fast — timeliness over completeness.`,i=`You are the engineering specialist. You write code, run tests, debug issues, and verify implementations.
38
+
39
+ ## Principles
40
+ - Ship working code. Verify every change before reporting done.
41
+ - Follow existing patterns. Keep changes minimal and focused on the task.
42
+ - If requirements are unclear or you see multiple valid approaches, ask before coding — not mid-way through.
43
+ - Self-review before reporting: completeness, edge cases, test coverage.
44
+ - If unsure, say so. Bad code is worse than no code.`,j=`You are the content operations specialist. You handle formatting, publishing workflows, and keep the content pipeline on schedule.
45
+
46
+ ## Principles
47
+ - Content gets published on time, in the right format, to the right channels.
48
+ - Match formatting to each platform's conventions. Proofread for obvious errors.
49
+ - Track what's published, pending, and overdue. Follow up proactively.
50
+ - Never publish without confirming the final version with the leader.`,k=`You are the sales operations specialist. You handle outreach emails, follow-ups, and pipeline logistics.
51
+
52
+ ## Principles
53
+ - Deals die in the follow-up gap. Every prospect gets timely, personalized communication.
54
+ - Subject lines: specific and intriguing. Body: short, personalized first line, clear CTA.
55
+ - Follow-ups reference previous context and add new value — never just "checking in."
56
+ - Track interactions and flag cold deals. Escalate after two unanswered follow-ups.`,l=`You are the customer support specialist. You draft responses to inquiries and track issues to resolution.
57
+
58
+ ## Principles
59
+ - Every interaction builds trust. Be empathetic, accurate, and efficient — resolve on first response when possible.
60
+ - Lead with acknowledgment, then solution or clear next steps. Use simple language.
61
+ - If you can't resolve immediately, set realistic expectations: what you'll do, by when.
62
+ - Track open issues proactively. Escalate complex or sensitive cases with full context.`;a.s(["SCENARIO_PRESETS",0,[{id:"software-dev",label:"Software Development",description:"Build and ship code with a coordinated dev team",icon:"🖥",members:[{role:"leader",description:"Coordinates work, summarizes results, and replies to you",instructions:d},{role:"engineer",description:"Writes code, runs tests, and verifies implementations",instructions:i,relationship:"Delegate coding tasks with: clear requirement description, acceptance criteria (3-5 specific testable items), relevant file paths, existing patterns to follow, and context from research findings if applicable.\n\nReport back with: implementation status, files changed, acceptance criteria checklist (pass/fail each), test results, and self-review concerns. After implementation, send work to the reviewer if one exists."},{role:"researcher",description:"Reads code, explores APIs, and gathers technical context",instructions:f,relationship:"Delegate technical research with: what to investigate, what decision it informs, scope boundary, and relevant file paths or code pointers.\n\nReport back with: technical summary, evidence (file paths, doc URLs, code snippets), recommendation, and confidence level (High/Medium/Low). Flag anything unverified."}]},{id:"content-research",label:"Content & Research",description:"Research topics, write content, and manage publishing",icon:"📝",members:[{role:"leader",description:"Coordinates work, shapes content direction, and delivers output",instructions:d},{role:"researcher",description:"Finds sources, verifies facts, and organizes references",instructions:g,relationship:"Delegate content research with: topic or claim to investigate, target content format (article, report, social), depth needed, and specific sources to check if any.\n\nReport back with: key facts for the writer, organized source list (URL, date, reliability), verification gaps, framing suggestion, and per-claim confidence."},{role:"assistant",description:"Handles formatting, publishing workflows, and follow-ups",instructions:j,relationship:"Delegate content operations with: what content to format or publish, target platform, deadline, and style requirements.\n\nReport back with: what was done (formatted, published, submitted), next step (awaiting review, scheduled date), and blockers if any."}]},{id:"personal-assistant",label:"Personal Assistant",description:"One AI that handles your everyday tasks and communications",icon:"🤖",members:[{role:"leader",description:"Handles all tasks directly — emails, research, scheduling, and more",instructions:e}]},{id:"sales-outreach",label:"Sales & Outreach",description:"Prospect, follow up, and close deals as a team",icon:"📈",members:[{role:"leader",description:"Coordinates outreach strategy and manages deal flow",instructions:d},{role:"researcher",description:"Researches prospects, companies, and market intelligence",instructions:h,relationship:"Delegate prospect research with: target criteria, market or industry focus, what intelligence is needed, and how it will be used (outreach, pitch, proposal).\n\nReport back with: prioritized prospect list (name, role, company, relevance, suggested angle), market signals, and confidence per finding."},{role:"assistant",description:"Handles outreach emails, follow-ups, and pipeline tracking",instructions:k,relationship:"Delegate outreach with: who to contact, messaging angle, follow-up cadence, and desired outcome.\n\nReport back with: emails sent or scheduled, responses received, pipeline updates, and deals needing escalation."}]},{id:"customer-support",label:"Customer Support",description:"Handle tickets, draft replies, and track resolutions",icon:"🎧",members:[{role:"leader",description:"Coordinates support queue and handles escalations",instructions:d},{role:"assistant",description:"Drafts customer responses and tracks open issues",instructions:l,relationship:"Delegate support tasks with: customer issue summary, urgency level, prior interaction context, and resolution approach.\n\nReport back with: response drafted or sent, resolution status, follow-up schedule, and recurring patterns to flag."}]},{id:"custom",label:"Custom",description:"Build your own team from scratch",icon:"✨",members:[{role:"leader",description:"Coordinates work and replies to you",instructions:d}]}],"shuffleMembers",0,function(a){let d=new Set,e=[];for(let f=0;f<a;f++){let a,f=0;do a=(0,b.uniqueNamesGenerator)({dictionaries:[b.names],length:1,style:"capital"}),f++;while(d.has(a)&&f<100)d.add(a),e.push({name:a,avatarUrl:(0,c.serializeAvatarConfig)((0,c.randomConfig)())})}return e}])},212484,a=>{"use strict";var b=a.i(616612),c=a.i(75118),d=a.i(762276);a.s(["ScenarioPicker",0,function({selected:a,onSelect:e,onBrowseTemplates:f}){return(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"What will your company focus on?"}),f&&(0,b.jsxs)("button",{type:"button",onClick:f,className:"text-[11px] text-muted-foreground hover:text-foreground transition-colors underline underline-offset-2",children:["Browse templates ",(0,b.jsx)("span",{"aria-hidden":"true",children:"›"})]})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:d.SCENARIO_PRESETS.map(d=>(0,b.jsxs)("button",{onClick:()=>e(d.id),className:(0,c.cn)("flex flex-col items-start gap-1 rounded-lg border p-4 text-left transition-all hover:border-foreground/30",a===d.id?"border-foreground/50 bg-muted/50":"border-border"),children:[(0,b.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,b.jsx)("span",{className:"text-lg",children:d.icon}),(0,b.jsxs)("span",{className:"text-[10px] text-muted-foreground/70",children:[d.members.length," agent",d.members.length>1?"s":""]})]}),(0,b.jsx)("span",{className:"text-sm font-medium",children:d.label}),(0,b.jsx)("span",{className:"text-xs text-muted-foreground leading-tight",children:d.description})]},d.id))})]})}])},263233,a=>{"use strict";var b=a.i(616612),c=a.i(75118),d=a.i(732254),e=a.i(439882),f=a.i(674899);a.i(735132);var g=a.i(325848),h=a.i(354498),i=a.i(74414);a.i(974936);var j=a.i(911509);let k={leader:"Lead",researcher:"Researcher",engineer:"Engineer",assistant:"Assistant"};a.s(["TeamPreview",0,function({members:a,runtimes:l,onShuffle:m,onAssignRuntime:n}){let o=l.length>1&&n;return(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"Your company"}),(0,b.jsxs)(d.Button,{variant:"ghost",size:"sm",onClick:m,className:"h-7 text-xs gap-1.5",children:[(0,b.jsx)(f.RefreshCw,{className:"size-3"}),"Shuffle"]})]}),(0,b.jsx)("div",{className:(0,c.cn)("grid gap-3 grid-cols-1",2===a.length&&"sm:grid-cols-2",3===a.length&&"sm:grid-cols-2 md:grid-cols-3",a.length>=4&&"sm:grid-cols-2 md:grid-cols-4"),children:a.map((a,c)=>{let d,f=a.avatarUrl?(0,g.parseAvatarUrl)(a.avatarUrl):null;return(0,b.jsxs)(e.Card,{size:"sm",className:"flex flex-col px-3 py-4 gap-2 h-full",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5",children:[f?(0,b.jsx)(g.AvatarRenderer,{config:f,size:36,className:"rounded-xl shrink-0"}):(0,b.jsx)("div",{className:"size-9 rounded-xl bg-muted flex items-center justify-center text-sm font-semibold shrink-0",children:a.name.charAt(0)}),(0,b.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,b.jsx)("span",{className:"text-sm font-medium",children:a.name}),(0,b.jsx)("span",{className:"text-[10px] text-muted-foreground bg-muted/60 px-1.5 py-0.5 rounded",children:k[a.role]})]})]}),(0,b.jsx)("p",{className:"text-[10px] text-muted-foreground/70 font-mono truncate",children:(0,j.toAlookAddress)(a.emailHandle||a.name.toLowerCase())}),(0,b.jsx)("p",{className:"text-[11px] text-muted-foreground leading-snug flex-1",children:a.description}),o&&(d=l.find(b=>b.id===a.runtimeId),(0,b.jsx)("div",{className:"mt-1",children:(0,b.jsxs)(h.Select,{value:a.runtimeId,onValueChange:a=>{a&&n(c,a)},children:[(0,b.jsx)(h.SelectTrigger,{className:"h-7 text-[11px]",children:(0,b.jsxs)("div",{className:"flex items-center gap-1.5 truncate",children:[d&&(0,b.jsx)(i.ProviderLogo,{provider:d.provider||"",className:"size-3 shrink-0"}),(0,b.jsx)("span",{className:"truncate",children:d?.provider||d?.runtime_mode||"Select"})]})}),(0,b.jsx)(h.SelectContent,{children:l.map(a=>(0,b.jsx)(h.SelectItem,{value:a.id,children:a.provider||a.runtime_mode},a.id))})]})}))]},c)})})]})}])},927981,a=>a.a(async(b,c)=>{try{var d=a.i(616612),e=a.i(734803),f=a.i(630991),g=a.i(732254),h=a.i(84096),i=a.i(402656),j=a.i(69379),k=a.i(598169),l=a.i(689560),m=a.i(780956),n=a.i(454607),o=a.i(562706),p=a.i(946621),q=a.i(892691),r=a.i(212484),s=a.i(263233),t=a.i(762276);a.i(974936);var u=a.i(372822),v=a.i(588339),w=a.i(881503),x=a.i(561101),y=b([n]);[n]=y.then?(await y)():y,a.s(["StudioOnboardingClient",0,function({workspaceId:a,workspaceSlug:b,workspaceName:c,initialTemplate:y}){let z=(0,f.useRouter)(),[A,B]=(0,e.useState)([]),[C,D]=(0,e.useState)(!0),[E,F]=(0,e.useState)(y?y.baseScenario:null),[G,H]=(0,e.useState)([]),[I,J]=(0,e.useState)(!1),[K,L]=(0,e.useState)(""),[M,N]=(0,e.useState)(!1),[O,P]=(0,e.useState)(!1),[Q,R]=(0,e.useState)(!1),S=(0,u.isTauri)()&&(0,u.isDesktop)(),T=A.filter(a=>"online"===a.status),U=T.length>0;(0,e.useEffect)(()=>{(0,v.listRuntimes)(a).then(a=>{B(a),a.some(a=>"online"===a.status)&&(P(!0),R(!0))}).catch(()=>{}).finally(()=>D(!1))},[a]);let V=(0,e.useCallback)(b=>{"runtime.registered"===b.type&&b.workspaceId===a?(P(!0),R(!0),(0,v.listRuntimes)(a).then(B).catch(()=>{})):"runtime.status"===b.type&&b.workspaceId===a&&(P(!0),"online"===b.status?R(!0):R(!1))},[a]);(0,w.useUserWs)(V);let W=(0,e.useCallback)(async()=>{N(!0);try{let b=await (0,v.createMachineToken)("cli",a);if(L(b.token),S){let c=await (0,u.tauriInvoke)("register_cli",{token:b.token});c.success?(P(!0),R(!0),(0,v.listRuntimes)(a).then(B).catch(()=>{})):m.toast.error(c.message||"Auto-registration failed")}}catch{m.toast.error("Failed to generate token")}finally{N(!1)}},[a,S]);(0,e.useEffect)(()=>{let a=T[0]?.id;a&&H(b=>0!==b.length&&b.some(a=>!a.runtimeId)?b.map(b=>b.runtimeId?b:{...b,runtimeId:a}):b)},[T]);let X=(0,e.useCallback)(async a=>{try{let b=await fetch("/api/studios/check-handles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({names:a})});if(!b.ok)return null;return await b.json()}catch{return null}},[]);(0,e.useEffect)(()=>{if(!y||C||G.length>0)return;let a=(0,t.shuffleMembers)(y.members.length),b=T[0]?.id||"",c=y.members.map((c,d)=>({name:a[d].name,role:c.role,description:c.description,instructions:c.instructions,avatarUrl:a[d].avatarUrl,runtimeId:b,relationship:c.relationship}));H(c),X(c.map(a=>a.name)).then(a=>{a&&H(b=>b.map(b=>{let c=a.find(a=>a.name===b.name);return c?{...b,emailHandle:c.handle}:b}))})},[y,C]);let Y=async a=>{F(a);let b=t.SCENARIO_PRESETS.find(b=>b.id===a),c=(0,t.shuffleMembers)(b.members.length),d=T[0]?.id||"",e=b.members.map((a,b)=>({name:c[b].name,role:a.role,description:a.description,instructions:a.instructions,avatarUrl:c[b].avatarUrl,runtimeId:d,relationship:a.relationship}));H(e);let f=await X(e.map(a=>a.name));f&&H(a=>a.map(a=>{let b=f.find(b=>b.name===a.name);return b?{...a,emailHandle:b.handle}:a}))},Z=async()=>{let a=(0,t.shuffleMembers)(G.length),b=G.map((b,c)=>({...b,name:a[c].name,avatarUrl:a[c].avatarUrl,emailHandle:void 0}));H(b);let c=await X(b.map(a=>a.name));c&&H(a=>a.map(a=>{let b=c.find(b=>b.name===a.name);return b?{...a,emailHandle:b.handle}:a}))},$=async()=>{J(!0);try{let b=await fetch("/api/studios",{method:"POST",headers:{"Content-Type":"application/json","X-Workspace-ID":a},body:JSON.stringify({name:void 0,scenario:E,members:G.map(a=>({name:a.name,role:a.role,runtime_id:a.runtimeId,description:a.description,instructions:a.instructions,avatar_url:a.avatarUrl||null,email_handle:a.emailHandle||void 0,relationship:a.relationship||void 0}))})});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to create company")}let c=await b.json();await fetch(`/api/workspaces/${a}/onboarded`,{method:"POST"}).catch(()=>{}),(0,p.trackWorkspaceCreated)("onboarding"),(0,p.trackOnboardingCompleted)({template_used:E??void 0,agent_count:G.length});for(let a=0;a<G.length;a++)(0,p.trackAgentCreated)({is_first_agent:0===a,has_email:!!G[a].emailHandle});m.toast.success("Company created!"),z.push(`/w/${c.workspace.slug}/agents/${c.leader_agent_id}`)}catch(a){m.toast.error(a instanceof Error?a.message:"Failed to create company"),J(!1)}},_=E&&G.length>0&&G.every(a=>a.runtimeId)&&(U||O&&Q||S);return E?(0,d.jsx)(q.PublicLayout,{leftSlot:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>z.push("/workspaces"),children:[(0,d.jsx)(l.LayoutGrid,{className:"size-3 mr-1.5"}),"Workspaces"]}),(0,d.jsx)("span",{className:"text-muted-foreground/40",children:"/"}),(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>F(null),children:[(0,d.jsx)(k.ArrowLeft,{className:"size-3 mr-1.5"}),"Back"]})]}),rightSlot:(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:async()=>{await (0,o.clearAllCache)(),(0,n.signOut)({fetchOptions:{onSuccess:()=>z.push("/sign-in")}})},children:[(0,d.jsx)(j.LogOut,{className:"size-3 mr-1.5"}),"Sign out"]}),children:(0,d.jsxs)("div",{className:"mx-auto w-full max-w-3xl space-y-10 px-6 py-14",children:[(0,d.jsx)("div",{className:"text-center",children:(0,d.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",style:{fontFamily:"var(--font-news)"},children:"Build your company"})}),C?(0,d.jsx)("div",{className:"flex justify-center py-8",children:(0,d.jsx)(h.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.TeamPreview,{members:G,runtimes:T,onShuffle:Z,onAssignRuntime:(a,b)=>{H(c=>c.map((c,d)=>d===a?{...c,runtimeId:b}:c))}}),!S&&(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"Connect a computer"}),U||O&&Q?(0,d.jsxs)("p",{className:"text-xs text-emerald-600 flex items-center gap-1",children:[(0,d.jsx)(i.CheckCircle2,{className:"size-3"})," Computer connected"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Your company needs a connected computer to run tasks."}),(0,d.jsx)("div",{className:"rounded-xl bg-muted/40 p-5",children:(0,d.jsx)(x.ConnectMachineSteps,{generatedToken:K,generatingToken:M,onGenerateToken:W,registered:O,daemonOnline:Q})})]})]}),(0,d.jsx)(g.Button,{onClick:$,disabled:!_||I,className:"w-full",size:"lg",children:I?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.Loader2,{className:"size-4 animate-spin mr-2"}),"Launching..."]}):"Launch company"})]})]})}):(0,d.jsx)(q.PublicLayout,{leftSlot:(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>z.push("/workspaces"),children:[(0,d.jsx)(l.LayoutGrid,{className:"size-3 mr-1.5"}),"Workspaces"]}),rightSlot:(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:async()=>{await (0,o.clearAllCache)(),(0,n.signOut)({fetchOptions:{onSuccess:()=>z.push("/sign-in")}})},children:[(0,d.jsx)(j.LogOut,{className:"size-3 mr-1.5"}),"Sign out"]}),mainClassName:"flex items-center justify-center",children:(0,d.jsxs)("div",{className:"w-full max-w-3xl space-y-8 px-6 py-6",children:[(0,d.jsxs)("div",{className:"text-center space-y-2",children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",style:{fontFamily:"var(--font-news)"},children:"What will your company do?"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"Pick a focus area. You can always add more agents later."})]}),(0,d.jsx)(r.ScenarioPicker,{selected:E,onSelect:Y,onBrowseTemplates:()=>z.push(`/templates?workspace_id=${a}`)}),(0,d.jsx)("div",{className:"flex justify-center pt-2",children:(0,d.jsx)("button",{type:"button",onClick:async()=>{await fetch(`/api/workspaces/${a}/onboarded`,{method:"POST"}).catch(()=>{}),z.push(`/w/${b}/home`)},className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Skip for now"})})]})})}]),c()}catch(a){c(a)}},!1)];
63
+
64
+ //# sourceMappingURL=src_web_src_1kzi5ju._.js.map