madarx 2.18.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1274) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +708 -680
  3. package/.next/standalone/.next/app-path-routes-manifest.json +84 -80
  4. package/.next/standalone/.next/build-manifest.json +5 -5
  5. package/.next/standalone/.next/prerender-manifest.json +3 -3
  6. package/.next/standalone/.next/react-loadable-manifest.json +2 -2
  7. package/.next/standalone/.next/routes-manifest.json +6 -0
  8. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/.next/server/app/_not-found.html +2 -2
  10. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  11. package/.next/standalone/.next/server/app/activity/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/admin/page.js +2 -2
  13. package/.next/standalone/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/agents/[id]/page.js +5 -5
  15. package/.next/standalone/.next/server/app/agents/[id]/page.js.nft.json +1 -1
  16. package/.next/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/agents/page.js +1 -1
  18. package/.next/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/api/activity/route_client-reference-manifest.js +1 -1
  20. package/.next/standalone/.next/server/app/api/admin/audit-export/route_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/api/admin/share-links/route_client-reference-manifest.js +1 -1
  22. package/.next/standalone/.next/server/app/api/agent-memory/route_client-reference-manifest.js +1 -1
  23. package/.next/standalone/.next/server/app/api/agent-runs/[id]/cancel/route_client-reference-manifest.js +1 -1
  24. package/.next/standalone/.next/server/app/api/agent-runs/[id]/events/route_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/api/agent-runs/[id]/log/route_client-reference-manifest.js +1 -1
  26. package/.next/standalone/.next/server/app/api/agent-runs/[id]/route_client-reference-manifest.js +1 -1
  27. package/.next/standalone/.next/server/app/api/agent-runs/route_client-reference-manifest.js +1 -1
  28. package/.next/standalone/.next/server/app/api/agents/[id]/active-run/route_client-reference-manifest.js +1 -1
  29. package/.next/standalone/.next/server/app/api/agents/[id]/chain/route_client-reference-manifest.js +1 -1
  30. package/.next/standalone/.next/server/app/api/agents/[id]/memory/route_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/api/agents/[id]/reports/route_client-reference-manifest.js +1 -1
  32. package/.next/standalone/.next/server/app/api/agents/[id]/run/route_client-reference-manifest.js +1 -1
  33. package/.next/standalone/.next/server/app/api/agents/[id]/skills/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/agents/[id]/skills/route_client-reference-manifest.js +1 -1
  35. package/.next/standalone/.next/server/app/api/agents/create/route_client-reference-manifest.js +1 -1
  36. package/.next/standalone/.next/server/app/api/agents/ops/route_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/api/agents/resume-approval/route.js +1 -0
  38. package/.next/standalone/.next/server/app/api/agents/resume-approval/route.js.nft.json +1 -0
  39. package/.next/standalone/.next/server/app/api/agents/resume-approval/route_client-reference-manifest.js +1 -0
  40. package/.next/standalone/.next/server/app/api/approvals/[id]/route_client-reference-manifest.js +1 -1
  41. package/.next/standalone/.next/server/app/api/approvals/route_client-reference-manifest.js +1 -1
  42. package/.next/standalone/.next/server/app/api/artifacts/[id]/acl/route_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/api/artifacts/[id]/protect/route_client-reference-manifest.js +1 -1
  44. package/.next/standalone/.next/server/app/api/artifacts/[id]/raw/route_client-reference-manifest.js +1 -1
  45. package/.next/standalone/.next/server/app/api/artifacts/[id]/route_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app/api/artifacts/[id]/share-link/[linkId]/route_client-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/app/api/artifacts/[id]/share-link/route_client-reference-manifest.js +1 -1
  48. package/.next/standalone/.next/server/app/api/artifacts/upload/route_client-reference-manifest.js +1 -1
  49. package/.next/standalone/.next/server/app/api/audit/list/route_client-reference-manifest.js +1 -1
  50. package/.next/standalone/.next/server/app/api/audit/search/route_client-reference-manifest.js +1 -1
  51. package/.next/standalone/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
  52. package/.next/standalone/.next/server/app/api/auth/config/route.js +1 -1
  53. package/.next/standalone/.next/server/app/api/auth/config/route_client-reference-manifest.js +1 -1
  54. package/.next/standalone/.next/server/app/api/auth/join-bootstrap/route_client-reference-manifest.js +1 -1
  55. package/.next/standalone/.next/server/app/api/auth/session/route_client-reference-manifest.js +1 -1
  56. package/.next/standalone/.next/server/app/api/brand/route_client-reference-manifest.js +1 -1
  57. package/.next/standalone/.next/server/app/api/brand/share/route_client-reference-manifest.js +1 -1
  58. package/.next/standalone/.next/server/app/api/chat/sessions/[id]/route_client-reference-manifest.js +1 -1
  59. package/.next/standalone/.next/server/app/api/chat/sessions/route_client-reference-manifest.js +1 -1
  60. package/.next/standalone/.next/server/app/api/cloud/schema/route.js +1 -0
  61. package/.next/standalone/.next/server/app/api/cloud/schema/route.js.nft.json +1 -0
  62. package/.next/standalone/.next/server/app/api/cloud/schema/route_client-reference-manifest.js +1 -0
  63. package/.next/standalone/.next/server/app/api/config/env/route_client-reference-manifest.js +1 -1
  64. package/.next/standalone/.next/server/app/api/config/route_client-reference-manifest.js +1 -1
  65. package/.next/standalone/.next/server/app/api/connections/[service]/route_client-reference-manifest.js +1 -1
  66. package/.next/standalone/.next/server/app/api/connections/[service]/verify/route.js +2 -2
  67. package/.next/standalone/.next/server/app/api/connections/[service]/verify/route_client-reference-manifest.js +1 -1
  68. package/.next/standalone/.next/server/app/api/connections/route_client-reference-manifest.js +1 -1
  69. package/.next/standalone/.next/server/app/api/cron/tick/route_client-reference-manifest.js +1 -1
  70. package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/move/route_client-reference-manifest.js +1 -1
  71. package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/route_client-reference-manifest.js +1 -1
  72. package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/share-link/[linkId]/route_client-reference-manifest.js +1 -1
  73. package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/share-link/route_client-reference-manifest.js +1 -1
  74. package/.next/standalone/.next/server/app/api/dashboard/spaces/import/route_client-reference-manifest.js +1 -1
  75. package/.next/standalone/.next/server/app/api/dashboard/spaces/route_client-reference-manifest.js +1 -1
  76. package/.next/standalone/.next/server/app/api/disk/files/[id]/blob/route_client-reference-manifest.js +1 -1
  77. package/.next/standalone/.next/server/app/api/disk/files/[id]/route_client-reference-manifest.js +1 -1
  78. package/.next/standalone/.next/server/app/api/disk/files/[id]/transcribe/route_client-reference-manifest.js +1 -1
  79. package/.next/standalone/.next/server/app/api/disk/files/route_client-reference-manifest.js +1 -1
  80. package/.next/standalone/.next/server/app/api/disk/folders/route_client-reference-manifest.js +1 -1
  81. package/.next/standalone/.next/server/app/api/events/since/[cursor]/route_client-reference-manifest.js +1 -1
  82. package/.next/standalone/.next/server/app/api/events/stream/route_client-reference-manifest.js +1 -1
  83. package/.next/standalone/.next/server/app/api/fs/create-folder/route_client-reference-manifest.js +1 -1
  84. package/.next/standalone/.next/server/app/api/fs/pick-folder/route_client-reference-manifest.js +1 -1
  85. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/blueprint/route_client-reference-manifest.js +1 -1
  86. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/diagnostic/route_client-reference-manifest.js +1 -1
  87. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/governance/route_client-reference-manifest.js +1 -1
  88. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/interview/route_client-reference-manifest.js +1 -1
  89. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/pilot/route_client-reference-manifest.js +1 -1
  90. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/quarterly/route_client-reference-manifest.js +1 -1
  91. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/route_client-reference-manifest.js +1 -1
  92. package/.next/standalone/.next/server/app/api/hail/engagements/[id]/setup-package/route_client-reference-manifest.js +1 -1
  93. package/.next/standalone/.next/server/app/api/hail/engagements/route_client-reference-manifest.js +1 -1
  94. package/.next/standalone/.next/server/app/api/hail/interviews/[id]/responses/route_client-reference-manifest.js +1 -1
  95. package/.next/standalone/.next/server/app/api/hail/interviews/[id]/route_client-reference-manifest.js +1 -1
  96. package/.next/standalone/.next/server/app/api/hail/setup-packages/[id]/apply/route_client-reference-manifest.js +1 -1
  97. package/.next/standalone/.next/server/app/api/hail/setup-packages/validate/route_client-reference-manifest.js +1 -1
  98. package/.next/standalone/.next/server/app/api/heartbeat/tick/route_client-reference-manifest.js +1 -1
  99. package/.next/standalone/.next/server/app/api/heartbeat/worker/route_client-reference-manifest.js +1 -1
  100. package/.next/standalone/.next/server/app/api/help/route_client-reference-manifest.js +1 -1
  101. package/.next/standalone/.next/server/app/api/hermes/jobs/[id]/events/route_client-reference-manifest.js +1 -1
  102. package/.next/standalone/.next/server/app/api/hermes/jobs/[id]/route_client-reference-manifest.js +1 -1
  103. package/.next/standalone/.next/server/app/api/hermes/jobs/route_client-reference-manifest.js +1 -1
  104. package/.next/standalone/.next/server/app/api/integrations/google/callback/route_client-reference-manifest.js +1 -1
  105. package/.next/standalone/.next/server/app/api/integrations/google/oauth/route_client-reference-manifest.js +1 -1
  106. package/.next/standalone/.next/server/app/api/marketplace/[id]/route_client-reference-manifest.js +1 -1
  107. package/.next/standalone/.next/server/app/api/marketplace/open-design/route_client-reference-manifest.js +1 -1
  108. package/.next/standalone/.next/server/app/api/marketplace/route_client-reference-manifest.js +1 -1
  109. package/.next/standalone/.next/server/app/api/mines/import-roots/route_client-reference-manifest.js +1 -1
  110. package/.next/standalone/.next/server/app/api/mines/portfolio/route_client-reference-manifest.js +1 -1
  111. package/.next/standalone/.next/server/app/api/mines/projects/[id]/chunks/route_client-reference-manifest.js +1 -1
  112. package/.next/standalone/.next/server/app/api/mines/projects/[id]/diligence/route_client-reference-manifest.js +1 -1
  113. package/.next/standalone/.next/server/app/api/mines/projects/[id]/import/route_client-reference-manifest.js +1 -1
  114. package/.next/standalone/.next/server/app/api/mines/projects/[id]/publish/route_client-reference-manifest.js +1 -1
  115. package/.next/standalone/.next/server/app/api/mines/projects/route_client-reference-manifest.js +1 -1
  116. package/.next/standalone/.next/server/app/api/missions/route_client-reference-manifest.js +1 -1
  117. package/.next/standalone/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  118. package/.next/standalone/.next/server/app/api/onboarding/blueprint/route.js.nft.json +1 -1
  119. package/.next/standalone/.next/server/app/api/onboarding/blueprint/route_client-reference-manifest.js +1 -1
  120. package/.next/standalone/.next/server/app/api/onboarding/launch/route.js.nft.json +1 -1
  121. package/.next/standalone/.next/server/app/api/onboarding/launch/route_client-reference-manifest.js +1 -1
  122. package/.next/standalone/.next/server/app/api/orchestrator/command/route_client-reference-manifest.js +1 -1
  123. package/.next/standalone/.next/server/app/api/orchestrator/stream/attach/route.js +4 -0
  124. package/.next/standalone/.next/server/app/api/orchestrator/stream/attach/route.js.nft.json +1 -0
  125. package/.next/standalone/.next/server/app/api/orchestrator/stream/attach/route_client-reference-manifest.js +1 -0
  126. package/.next/standalone/.next/server/app/api/orchestrator/stream/route.js +41 -63
  127. package/.next/standalone/.next/server/app/api/orchestrator/stream/route_client-reference-manifest.js +1 -1
  128. package/.next/standalone/.next/server/app/api/orchestrator/upload/route_client-reference-manifest.js +1 -1
  129. package/.next/standalone/.next/server/app/api/org/route_client-reference-manifest.js +1 -1
  130. package/.next/standalone/.next/server/app/api/orgs/[id]/invites/[inviteId]/route_client-reference-manifest.js +1 -1
  131. package/.next/standalone/.next/server/app/api/orgs/[id]/invites/route.js +1 -1
  132. package/.next/standalone/.next/server/app/api/orgs/[id]/invites/route.js.nft.json +1 -1
  133. package/.next/standalone/.next/server/app/api/orgs/[id]/invites/route_client-reference-manifest.js +1 -1
  134. package/.next/standalone/.next/server/app/api/orgs/[id]/members/[userId]/role/route_client-reference-manifest.js +1 -1
  135. package/.next/standalone/.next/server/app/api/orgs/[id]/members/[userId]/route_client-reference-manifest.js +1 -1
  136. package/.next/standalone/.next/server/app/api/orgs/[id]/members/route_client-reference-manifest.js +1 -1
  137. package/.next/standalone/.next/server/app/api/orgs/[id]/route_client-reference-manifest.js +1 -1
  138. package/.next/standalone/.next/server/app/api/orgs/invites/pending/route_client-reference-manifest.js +1 -1
  139. package/.next/standalone/.next/server/app/api/orgs/join/route_client-reference-manifest.js +1 -1
  140. package/.next/standalone/.next/server/app/api/orgs/join-complete/route_client-reference-manifest.js +1 -1
  141. package/.next/standalone/.next/server/app/api/orgs/route_client-reference-manifest.js +1 -1
  142. package/.next/standalone/.next/server/app/api/printing-press/clis/route_client-reference-manifest.js +1 -1
  143. package/.next/standalone/.next/server/app/api/printing-press/install/route_client-reference-manifest.js +1 -1
  144. package/.next/standalone/.next/server/app/api/printing-press/security-mode/route_client-reference-manifest.js +1 -1
  145. package/.next/standalone/.next/server/app/api/privacy/config/route_client-reference-manifest.js +1 -1
  146. package/.next/standalone/.next/server/app/api/privacy/verify/route_client-reference-manifest.js +1 -1
  147. package/.next/standalone/.next/server/app/api/processes/[id]/route_client-reference-manifest.js +1 -1
  148. package/.next/standalone/.next/server/app/api/processes/[id]/share-link/route_client-reference-manifest.js +1 -1
  149. package/.next/standalone/.next/server/app/api/processes/[id]/stages/[stageId]/override/route_client-reference-manifest.js +1 -1
  150. package/.next/standalone/.next/server/app/api/processes/[id]/stages/[stageId]/retry/route_client-reference-manifest.js +1 -1
  151. package/.next/standalone/.next/server/app/api/processes/[id]/stages/[stageId]/submit/route_client-reference-manifest.js +1 -1
  152. package/.next/standalone/.next/server/app/api/processes/definitions/[slug]/route_client-reference-manifest.js +1 -1
  153. package/.next/standalone/.next/server/app/api/processes/definitions/[slug]/settings/route_client-reference-manifest.js +1 -1
  154. package/.next/standalone/.next/server/app/api/processes/definitions/route_client-reference-manifest.js +1 -1
  155. package/.next/standalone/.next/server/app/api/processes/definitions/validate/route_client-reference-manifest.js +1 -1
  156. package/.next/standalone/.next/server/app/api/processes/route_client-reference-manifest.js +1 -1
  157. package/.next/standalone/.next/server/app/api/processes/start-and-route/route_client-reference-manifest.js +1 -1
  158. package/.next/standalone/.next/server/app/api/projects/[slug]/library/route_client-reference-manifest.js +1 -1
  159. package/.next/standalone/.next/server/app/api/projects/[slug]/route_client-reference-manifest.js +1 -1
  160. package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  161. package/.next/standalone/.next/server/app/api/runs/approve-claude-run/route_client-reference-manifest.js +1 -1
  162. package/.next/standalone/.next/server/app/api/runs/claude-code-dry-run/route_client-reference-manifest.js +1 -1
  163. package/.next/standalone/.next/server/app/api/runs/competitor-report/route_client-reference-manifest.js +1 -1
  164. package/.next/standalone/.next/server/app/api/runs/engine-ping/route_client-reference-manifest.js +1 -1
  165. package/.next/standalone/.next/server/app/api/runs/marketing-plan/route_client-reference-manifest.js +1 -1
  166. package/.next/standalone/.next/server/app/api/schedules/upsert/route_client-reference-manifest.js +1 -1
  167. package/.next/standalone/.next/server/app/api/secrets/[name]/route_client-reference-manifest.js +1 -1
  168. package/.next/standalone/.next/server/app/api/secrets/route_client-reference-manifest.js +1 -1
  169. package/.next/standalone/.next/server/app/api/settings/trust-mode/route_client-reference-manifest.js +1 -1
  170. package/.next/standalone/.next/server/app/api/share/[token]/otp/route_client-reference-manifest.js +1 -1
  171. package/.next/standalone/.next/server/app/api/share/[token]/route_client-reference-manifest.js +1 -1
  172. package/.next/standalone/.next/server/app/api/share/[token]/verify/route_client-reference-manifest.js +1 -1
  173. package/.next/standalone/.next/server/app/api/share/space/[token]/otp/route_client-reference-manifest.js +1 -1
  174. package/.next/standalone/.next/server/app/api/share/space/[token]/route_client-reference-manifest.js +1 -1
  175. package/.next/standalone/.next/server/app/api/share/space/[token]/verify/route_client-reference-manifest.js +1 -1
  176. package/.next/standalone/.next/server/app/api/shared/spaces/[id]/acl/route_client-reference-manifest.js +1 -1
  177. package/.next/standalone/.next/server/app/api/shared/spaces/publish/route_client-reference-manifest.js +1 -1
  178. package/.next/standalone/.next/server/app/api/shared/spaces/route_client-reference-manifest.js +1 -1
  179. package/.next/standalone/.next/server/app/api/shared/spaces/status/route_client-reference-manifest.js +1 -1
  180. package/.next/standalone/.next/server/app/api/shared/spaces/unpublish/route_client-reference-manifest.js +1 -1
  181. package/.next/standalone/.next/server/app/api/state/route_client-reference-manifest.js +1 -1
  182. package/.next/standalone/.next/server/app/api/system/update/route_client-reference-manifest.js +1 -1
  183. package/.next/standalone/.next/server/app/api/tasks/[id]/active-run/route_client-reference-manifest.js +1 -1
  184. package/.next/standalone/.next/server/app/api/tasks/[id]/attachments/route_client-reference-manifest.js +1 -1
  185. package/.next/standalone/.next/server/app/api/tasks/[id]/checklist/[itemId]/route_client-reference-manifest.js +1 -1
  186. package/.next/standalone/.next/server/app/api/tasks/[id]/checklist/route_client-reference-manifest.js +1 -1
  187. package/.next/standalone/.next/server/app/api/tasks/[id]/checkout/route_client-reference-manifest.js +1 -1
  188. package/.next/standalone/.next/server/app/api/tasks/[id]/children/route_client-reference-manifest.js +1 -1
  189. package/.next/standalone/.next/server/app/api/tasks/[id]/comments/route_client-reference-manifest.js +1 -1
  190. package/.next/standalone/.next/server/app/api/tasks/[id]/events/route_client-reference-manifest.js +1 -1
  191. package/.next/standalone/.next/server/app/api/tasks/[id]/live-runs/route_client-reference-manifest.js +1 -1
  192. package/.next/standalone/.next/server/app/api/tasks/[id]/release/route_client-reference-manifest.js +1 -1
  193. package/.next/standalone/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +1 -1
  194. package/.next/standalone/.next/server/app/api/tasks/route_client-reference-manifest.js +1 -1
  195. package/.next/standalone/.next/server/app/api/tool-allowlists/[id]/route_client-reference-manifest.js +1 -1
  196. package/.next/standalone/.next/server/app/api/tool-allowlists/route_client-reference-manifest.js +1 -1
  197. package/.next/standalone/.next/server/app/api/tool-egress/route_client-reference-manifest.js +1 -1
  198. package/.next/standalone/.next/server/app/api/tools/[name]/approve/route_client-reference-manifest.js +1 -1
  199. package/.next/standalone/.next/server/app/api/tools/[name]/route_client-reference-manifest.js +1 -1
  200. package/.next/standalone/.next/server/app/api/tools/route_client-reference-manifest.js +1 -1
  201. package/.next/standalone/.next/server/app/api/transcripts/route_client-reference-manifest.js +1 -1
  202. package/.next/standalone/.next/server/app/api/voice/providers/route_client-reference-manifest.js +1 -1
  203. package/.next/standalone/.next/server/app/api/voice/realtime/context/route_client-reference-manifest.js +1 -1
  204. package/.next/standalone/.next/server/app/api/voice/realtime/session/route_client-reference-manifest.js +1 -1
  205. package/.next/standalone/.next/server/app/api/voice/realtime/tool-result/route_client-reference-manifest.js +1 -1
  206. package/.next/standalone/.next/server/app/api/voice/realtime/tools/route_client-reference-manifest.js +1 -1
  207. package/.next/standalone/.next/server/app/api/voice/tts/route_client-reference-manifest.js +1 -1
  208. package/.next/standalone/.next/server/app/api/whatsapp/allowlist/route_client-reference-manifest.js +1 -1
  209. package/.next/standalone/.next/server/app/api/whatsapp/disconnect/route_client-reference-manifest.js +1 -1
  210. package/.next/standalone/.next/server/app/api/whatsapp/messages/route_client-reference-manifest.js +1 -1
  211. package/.next/standalone/.next/server/app/api/whatsapp/qr/route_client-reference-manifest.js +1 -1
  212. package/.next/standalone/.next/server/app/api/whatsapp/send/route_client-reference-manifest.js +1 -1
  213. package/.next/standalone/.next/server/app/api/whatsapp/status/route_client-reference-manifest.js +1 -1
  214. package/.next/standalone/.next/server/app/approvals/page.js +2 -2
  215. package/.next/standalone/.next/server/app/approvals/page_client-reference-manifest.js +1 -1
  216. package/.next/standalone/.next/server/app/architecture/page_client-reference-manifest.js +1 -1
  217. package/.next/standalone/.next/server/app/architecture.html +2 -2
  218. package/.next/standalone/.next/server/app/architecture.rsc +2 -2
  219. package/.next/standalone/.next/server/app/audit/live/page_client-reference-manifest.js +1 -1
  220. package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  221. package/.next/standalone/.next/server/app/brand/page_client-reference-manifest.js +1 -1
  222. package/.next/standalone/.next/server/app/brand.html +2 -2
  223. package/.next/standalone/.next/server/app/brand.rsc +2 -2
  224. package/.next/standalone/.next/server/app/disk/page_client-reference-manifest.js +1 -1
  225. package/.next/standalone/.next/server/app/federated-ai/page_client-reference-manifest.js +1 -1
  226. package/.next/standalone/.next/server/app/federated-ai.html +2 -2
  227. package/.next/standalone/.next/server/app/federated-ai.rsc +2 -2
  228. package/.next/standalone/.next/server/app/hail/[id]/governance/page_client-reference-manifest.js +1 -1
  229. package/.next/standalone/.next/server/app/hail/[id]/interview/page.js +1 -1
  230. package/.next/standalone/.next/server/app/hail/[id]/interview/page_client-reference-manifest.js +1 -1
  231. package/.next/standalone/.next/server/app/hail/[id]/page.js +1 -1
  232. package/.next/standalone/.next/server/app/hail/[id]/page_client-reference-manifest.js +1 -1
  233. package/.next/standalone/.next/server/app/hail/[id]/setup/page.js +2 -2
  234. package/.next/standalone/.next/server/app/hail/[id]/setup/page_client-reference-manifest.js +1 -1
  235. package/.next/standalone/.next/server/app/hail/page.js +2 -2
  236. package/.next/standalone/.next/server/app/hail/page_client-reference-manifest.js +1 -1
  237. package/.next/standalone/.next/server/app/help/[slug]/page_client-reference-manifest.js +1 -1
  238. package/.next/standalone/.next/server/app/help/page_client-reference-manifest.js +1 -1
  239. package/.next/standalone/.next/server/app/index.html +2 -2
  240. package/.next/standalone/.next/server/app/index.rsc +3 -3
  241. package/.next/standalone/.next/server/app/join/page_client-reference-manifest.js +1 -1
  242. package/.next/standalone/.next/server/app/join.html +1 -1
  243. package/.next/standalone/.next/server/app/join.rsc +2 -2
  244. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  245. package/.next/standalone/.next/server/app/marketplace/page.js +3 -3
  246. package/.next/standalone/.next/server/app/marketplace/page_client-reference-manifest.js +1 -1
  247. package/.next/standalone/.next/server/app/mines/[projectId]/page_client-reference-manifest.js +1 -1
  248. package/.next/standalone/.next/server/app/mines/[projectId]/results/page_client-reference-manifest.js +1 -1
  249. package/.next/standalone/.next/server/app/mines/page_client-reference-manifest.js +1 -1
  250. package/.next/standalone/.next/server/app/missions/page.js +2 -2
  251. package/.next/standalone/.next/server/app/missions/page_client-reference-manifest.js +1 -1
  252. package/.next/standalone/.next/server/app/onboarding/org/page_client-reference-manifest.js +1 -1
  253. package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  254. package/.next/standalone/.next/server/app/onboarding/team/page.js +2 -0
  255. package/.next/standalone/.next/server/app/onboarding/team/page.js.nft.json +1 -0
  256. package/.next/standalone/.next/server/app/onboarding/team/page_client-reference-manifest.js +1 -0
  257. package/.next/standalone/.next/server/app/onboarding.html +2 -2
  258. package/.next/standalone/.next/server/app/onboarding.rsc +2 -2
  259. package/.next/standalone/.next/server/app/org/page.js +1 -1
  260. package/.next/standalone/.next/server/app/org/page.js.nft.json +1 -1
  261. package/.next/standalone/.next/server/app/org/page_client-reference-manifest.js +1 -1
  262. package/.next/standalone/.next/server/app/page.js +5 -5
  263. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  264. package/.next/standalone/.next/server/app/projects/[slug]/log/page_client-reference-manifest.js +1 -1
  265. package/.next/standalone/.next/server/app/projects/[slug]/page.js +1 -1
  266. package/.next/standalone/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
  267. package/.next/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
  268. package/.next/standalone/.next/server/app/projects/new/page.js +2 -2
  269. package/.next/standalone/.next/server/app/projects/new/page_client-reference-manifest.js +1 -1
  270. package/.next/standalone/.next/server/app/projects/new.html +2 -2
  271. package/.next/standalone/.next/server/app/projects/new.rsc +3 -3
  272. package/.next/standalone/.next/server/app/projects/page.js +31 -26
  273. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  274. package/.next/standalone/.next/server/app/reports/[file]/route_client-reference-manifest.js +1 -1
  275. package/.next/standalone/.next/server/app/reports/page_client-reference-manifest.js +1 -1
  276. package/.next/standalone/.next/server/app/runtime/page_client-reference-manifest.js +1 -1
  277. package/.next/standalone/.next/server/app/schedules/page.js +2 -2
  278. package/.next/standalone/.next/server/app/schedules/page_client-reference-manifest.js +1 -1
  279. package/.next/standalone/.next/server/app/settings/account/page_client-reference-manifest.js +1 -1
  280. package/.next/standalone/.next/server/app/settings/advanced/page_client-reference-manifest.js +1 -1
  281. package/.next/standalone/.next/server/app/settings/appearance/page_client-reference-manifest.js +1 -1
  282. package/.next/standalone/.next/server/app/settings/brand/page_client-reference-manifest.js +1 -1
  283. package/.next/standalone/.next/server/app/settings/brand.html +2 -2
  284. package/.next/standalone/.next/server/app/settings/brand.rsc +2 -2
  285. package/.next/standalone/.next/server/app/settings/connectors/page_client-reference-manifest.js +1 -1
  286. package/.next/standalone/.next/server/app/settings/engines/page_client-reference-manifest.js +1 -1
  287. package/.next/standalone/.next/server/app/settings/onboarding/page_client-reference-manifest.js +1 -1
  288. package/.next/standalone/.next/server/app/settings/onboarding.html +2 -2
  289. package/.next/standalone/.next/server/app/settings/onboarding.rsc +2 -2
  290. package/.next/standalone/.next/server/app/settings/organization/page.js +1 -1
  291. package/.next/standalone/.next/server/app/settings/organization/page.js.nft.json +1 -1
  292. package/.next/standalone/.next/server/app/settings/organization/page_client-reference-manifest.js +1 -1
  293. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  294. package/.next/standalone/.next/server/app/settings/runtime/page_client-reference-manifest.js +1 -1
  295. package/.next/standalone/.next/server/app/settings/team/page.js +2 -2
  296. package/.next/standalone/.next/server/app/settings/team/page.js.nft.json +1 -1
  297. package/.next/standalone/.next/server/app/settings/team/page_client-reference-manifest.js +1 -1
  298. package/.next/standalone/.next/server/app/settings/tools/page_client-reference-manifest.js +1 -1
  299. package/.next/standalone/.next/server/app/settings.html +2 -2
  300. package/.next/standalone/.next/server/app/settings.rsc +2 -2
  301. package/.next/standalone/.next/server/app/share/[token]/page_client-reference-manifest.js +1 -1
  302. package/.next/standalone/.next/server/app/share/space/[token]/page_client-reference-manifest.js +1 -1
  303. package/.next/standalone/.next/server/app/tasks/[id]/page.js +2 -2
  304. package/.next/standalone/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  305. package/.next/standalone/.next/server/app/tasks/page.js +2 -2
  306. package/.next/standalone/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  307. package/.next/standalone/.next/server/app/team/[agentId]/page_client-reference-manifest.js +1 -1
  308. package/.next/standalone/.next/server/app/team/page_client-reference-manifest.js +1 -1
  309. package/.next/standalone/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  310. package/.next/standalone/.next/server/app/whatsapp/page_client-reference-manifest.js +1 -1
  311. package/.next/standalone/.next/server/app/whatsapp.html +2 -2
  312. package/.next/standalone/.next/server/app/whatsapp.rsc +2 -2
  313. package/.next/standalone/.next/server/app/workflows/[caseId]/page_client-reference-manifest.js +1 -1
  314. package/.next/standalone/.next/server/app/workflows/new/[caseId]/page_client-reference-manifest.js +1 -1
  315. package/.next/standalone/.next/server/app/workflows/new/definition/page_client-reference-manifest.js +1 -1
  316. package/.next/standalone/.next/server/app/workflows/page_client-reference-manifest.js +1 -1
  317. package/.next/standalone/.next/server/app/workflows/share/[caseId]/page_client-reference-manifest.js +1 -1
  318. package/.next/standalone/.next/server/app-paths-manifest.json +84 -80
  319. package/.next/standalone/.next/server/chunks/1699.js +228 -53
  320. package/.next/standalone/.next/server/chunks/2402.js +1 -0
  321. package/.next/standalone/.next/server/chunks/3230.js +11 -11
  322. package/.next/standalone/.next/server/chunks/396.js +1 -0
  323. package/.next/standalone/.next/server/chunks/511.js +7 -7
  324. package/.next/standalone/.next/server/chunks/5858.js +2 -2
  325. package/.next/standalone/.next/server/chunks/6910.js +2 -2
  326. package/.next/standalone/.next/server/chunks/8352.js +1 -0
  327. package/.next/standalone/.next/server/chunks/8421.js +1 -0
  328. package/.next/standalone/.next/server/functions-config-manifest.json +53 -49
  329. package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
  330. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  331. package/.next/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  332. package/.next/standalone/.next/server/middleware.js +3 -3
  333. package/.next/standalone/.next/server/pages/404.html +2 -2
  334. package/.next/standalone/.next/server/pages/500.html +1 -1
  335. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  336. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  337. package/.next/standalone/.next/static/chunks/3168.502cd8077da5f8b6.js +1 -0
  338. package/.next/standalone/.next/static/chunks/8217.739e4ce0447348b9.js +1 -0
  339. package/.next/standalone/.next/static/chunks/app/activity/loading-fc50c67f9bcca1d8.js +1 -0
  340. package/.next/standalone/.next/static/chunks/app/agents/[id]/loading-fc50c67f9bcca1d8.js +1 -0
  341. package/.next/standalone/.next/static/chunks/app/agents/[id]/page-721c43e75cb2dd59.js +1 -0
  342. package/.next/standalone/.next/static/chunks/app/agents/loading-fc50c67f9bcca1d8.js +1 -0
  343. package/.next/standalone/.next/static/chunks/app/agents/page-b1bcb39a46a254aa.js +1 -0
  344. package/.next/standalone/.next/static/chunks/app/api/activity/route-fc50c67f9bcca1d8.js +1 -0
  345. package/.next/standalone/.next/static/chunks/app/api/admin/audit-export/route-fc50c67f9bcca1d8.js +1 -0
  346. package/.next/standalone/.next/static/chunks/app/api/admin/share-links/route-fc50c67f9bcca1d8.js +1 -0
  347. package/.next/standalone/.next/static/chunks/app/api/agent-memory/route-fc50c67f9bcca1d8.js +1 -0
  348. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-fc50c67f9bcca1d8.js +1 -0
  349. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/events/route-fc50c67f9bcca1d8.js +1 -0
  350. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/log/route-fc50c67f9bcca1d8.js +1 -0
  351. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/route-fc50c67f9bcca1d8.js +1 -0
  352. package/.next/standalone/.next/static/chunks/app/api/agent-runs/route-fc50c67f9bcca1d8.js +1 -0
  353. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/active-run/route-fc50c67f9bcca1d8.js +1 -0
  354. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/chain/route-fc50c67f9bcca1d8.js +1 -0
  355. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/memory/route-fc50c67f9bcca1d8.js +1 -0
  356. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/reports/route-fc50c67f9bcca1d8.js +1 -0
  357. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/run/route-fc50c67f9bcca1d8.js +1 -0
  358. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/skills/route-fc50c67f9bcca1d8.js +1 -0
  359. package/.next/standalone/.next/static/chunks/app/api/agents/create/route-fc50c67f9bcca1d8.js +1 -0
  360. package/.next/standalone/.next/static/chunks/app/api/agents/ops/route-fc50c67f9bcca1d8.js +1 -0
  361. package/.next/standalone/.next/static/chunks/app/api/agents/resume-approval/route-fc50c67f9bcca1d8.js +1 -0
  362. package/.next/standalone/.next/static/chunks/app/api/approvals/[id]/route-fc50c67f9bcca1d8.js +1 -0
  363. package/.next/standalone/.next/static/chunks/app/api/approvals/route-fc50c67f9bcca1d8.js +1 -0
  364. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/acl/route-fc50c67f9bcca1d8.js +1 -0
  365. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/protect/route-fc50c67f9bcca1d8.js +1 -0
  366. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/raw/route-fc50c67f9bcca1d8.js +1 -0
  367. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/route-fc50c67f9bcca1d8.js +1 -0
  368. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-fc50c67f9bcca1d8.js +1 -0
  369. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/route-fc50c67f9bcca1d8.js +1 -0
  370. package/.next/standalone/.next/static/chunks/app/api/artifacts/upload/route-fc50c67f9bcca1d8.js +1 -0
  371. package/.next/standalone/.next/static/chunks/app/api/audit/list/route-fc50c67f9bcca1d8.js +1 -0
  372. package/.next/standalone/.next/static/chunks/app/api/audit/search/route-fc50c67f9bcca1d8.js +1 -0
  373. package/.next/standalone/.next/static/chunks/app/api/auth/callback/route-fc50c67f9bcca1d8.js +1 -0
  374. package/.next/standalone/.next/static/chunks/app/api/auth/config/route-fc50c67f9bcca1d8.js +1 -0
  375. package/.next/standalone/.next/static/chunks/app/api/auth/join-bootstrap/route-fc50c67f9bcca1d8.js +1 -0
  376. package/.next/standalone/.next/static/chunks/app/api/auth/session/route-fc50c67f9bcca1d8.js +1 -0
  377. package/.next/standalone/.next/static/chunks/app/api/brand/route-fc50c67f9bcca1d8.js +1 -0
  378. package/.next/standalone/.next/static/chunks/app/api/brand/share/route-fc50c67f9bcca1d8.js +1 -0
  379. package/.next/standalone/.next/static/chunks/app/api/chat/sessions/[id]/route-fc50c67f9bcca1d8.js +1 -0
  380. package/.next/standalone/.next/static/chunks/app/api/chat/sessions/route-fc50c67f9bcca1d8.js +1 -0
  381. package/.next/standalone/.next/static/chunks/app/api/cloud/schema/route-fc50c67f9bcca1d8.js +1 -0
  382. package/.next/standalone/.next/static/chunks/app/api/config/env/route-fc50c67f9bcca1d8.js +1 -0
  383. package/.next/standalone/.next/static/chunks/app/api/config/route-fc50c67f9bcca1d8.js +1 -0
  384. package/.next/standalone/.next/static/chunks/app/api/connections/[service]/route-fc50c67f9bcca1d8.js +1 -0
  385. package/.next/standalone/.next/static/chunks/app/api/connections/[service]/verify/route-fc50c67f9bcca1d8.js +1 -0
  386. package/.next/standalone/.next/static/chunks/app/api/connections/route-fc50c67f9bcca1d8.js +1 -0
  387. package/.next/standalone/.next/static/chunks/app/api/cron/tick/route-fc50c67f9bcca1d8.js +1 -0
  388. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-fc50c67f9bcca1d8.js +1 -0
  389. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/route-fc50c67f9bcca1d8.js +1 -0
  390. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-fc50c67f9bcca1d8.js +1 -0
  391. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-fc50c67f9bcca1d8.js +1 -0
  392. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/import/route-fc50c67f9bcca1d8.js +1 -0
  393. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/route-fc50c67f9bcca1d8.js +1 -0
  394. package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/blob/route-fc50c67f9bcca1d8.js +1 -0
  395. package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/route-fc50c67f9bcca1d8.js +1 -0
  396. package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-fc50c67f9bcca1d8.js +1 -0
  397. package/.next/standalone/.next/static/chunks/app/api/disk/files/route-fc50c67f9bcca1d8.js +1 -0
  398. package/.next/standalone/.next/static/chunks/app/api/disk/folders/route-fc50c67f9bcca1d8.js +1 -0
  399. package/.next/standalone/.next/static/chunks/app/api/events/since/[cursor]/route-fc50c67f9bcca1d8.js +1 -0
  400. package/.next/standalone/.next/static/chunks/app/api/events/stream/route-fc50c67f9bcca1d8.js +1 -0
  401. package/.next/standalone/.next/static/chunks/app/api/fs/create-folder/route-fc50c67f9bcca1d8.js +1 -0
  402. package/.next/standalone/.next/static/chunks/app/api/fs/pick-folder/route-fc50c67f9bcca1d8.js +1 -0
  403. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-fc50c67f9bcca1d8.js +1 -0
  404. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-fc50c67f9bcca1d8.js +1 -0
  405. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-fc50c67f9bcca1d8.js +1 -0
  406. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-fc50c67f9bcca1d8.js +1 -0
  407. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-fc50c67f9bcca1d8.js +1 -0
  408. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-fc50c67f9bcca1d8.js +1 -0
  409. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/route-fc50c67f9bcca1d8.js +1 -0
  410. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-fc50c67f9bcca1d8.js +1 -0
  411. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/route-fc50c67f9bcca1d8.js +1 -0
  412. package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-fc50c67f9bcca1d8.js +1 -0
  413. package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/route-fc50c67f9bcca1d8.js +1 -0
  414. package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-fc50c67f9bcca1d8.js +1 -0
  415. package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/validate/route-fc50c67f9bcca1d8.js +1 -0
  416. package/.next/standalone/.next/static/chunks/app/api/heartbeat/tick/route-fc50c67f9bcca1d8.js +1 -0
  417. package/.next/standalone/.next/static/chunks/app/api/heartbeat/worker/route-fc50c67f9bcca1d8.js +1 -0
  418. package/.next/standalone/.next/static/chunks/app/api/help/route-fc50c67f9bcca1d8.js +1 -0
  419. package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-fc50c67f9bcca1d8.js +1 -0
  420. package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/route-fc50c67f9bcca1d8.js +1 -0
  421. package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/route-fc50c67f9bcca1d8.js +1 -0
  422. package/.next/standalone/.next/static/chunks/app/api/integrations/google/callback/route-fc50c67f9bcca1d8.js +1 -0
  423. package/.next/standalone/.next/static/chunks/app/api/integrations/google/oauth/route-fc50c67f9bcca1d8.js +1 -0
  424. package/.next/standalone/.next/static/chunks/app/api/marketplace/[id]/route-fc50c67f9bcca1d8.js +1 -0
  425. package/.next/standalone/.next/static/chunks/app/api/marketplace/open-design/route-fc50c67f9bcca1d8.js +1 -0
  426. package/.next/standalone/.next/static/chunks/app/api/marketplace/route-fc50c67f9bcca1d8.js +1 -0
  427. package/.next/standalone/.next/static/chunks/app/api/mines/import-roots/route-fc50c67f9bcca1d8.js +1 -0
  428. package/.next/standalone/.next/static/chunks/app/api/mines/portfolio/route-fc50c67f9bcca1d8.js +1 -0
  429. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-fc50c67f9bcca1d8.js +1 -0
  430. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-fc50c67f9bcca1d8.js +1 -0
  431. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/import/route-fc50c67f9bcca1d8.js +1 -0
  432. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/publish/route-fc50c67f9bcca1d8.js +1 -0
  433. package/.next/standalone/.next/static/chunks/app/api/mines/projects/route-fc50c67f9bcca1d8.js +1 -0
  434. package/.next/standalone/.next/static/chunks/app/api/missions/route-fc50c67f9bcca1d8.js +1 -0
  435. package/.next/standalone/.next/static/chunks/app/api/models/route-fc50c67f9bcca1d8.js +1 -0
  436. package/.next/standalone/.next/static/chunks/app/api/onboarding/blueprint/route-fc50c67f9bcca1d8.js +1 -0
  437. package/.next/standalone/.next/static/chunks/app/api/onboarding/launch/route-fc50c67f9bcca1d8.js +1 -0
  438. package/.next/standalone/.next/static/chunks/app/api/orchestrator/command/route-fc50c67f9bcca1d8.js +1 -0
  439. package/.next/standalone/.next/static/chunks/app/api/orchestrator/stream/attach/route-fc50c67f9bcca1d8.js +1 -0
  440. package/.next/standalone/.next/static/chunks/app/api/orchestrator/stream/route-fc50c67f9bcca1d8.js +1 -0
  441. package/.next/standalone/.next/static/chunks/app/api/orchestrator/upload/route-fc50c67f9bcca1d8.js +1 -0
  442. package/.next/standalone/.next/static/chunks/app/api/org/route-fc50c67f9bcca1d8.js +1 -0
  443. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-fc50c67f9bcca1d8.js +1 -0
  444. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/route-fc50c67f9bcca1d8.js +1 -0
  445. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-fc50c67f9bcca1d8.js +1 -0
  446. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-fc50c67f9bcca1d8.js +1 -0
  447. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/route-fc50c67f9bcca1d8.js +1 -0
  448. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/route-fc50c67f9bcca1d8.js +1 -0
  449. package/.next/standalone/.next/static/chunks/app/api/orgs/invites/pending/route-fc50c67f9bcca1d8.js +1 -0
  450. package/.next/standalone/.next/static/chunks/app/api/orgs/join/route-fc50c67f9bcca1d8.js +1 -0
  451. package/.next/standalone/.next/static/chunks/app/api/orgs/join-complete/route-fc50c67f9bcca1d8.js +1 -0
  452. package/.next/standalone/.next/static/chunks/app/api/orgs/route-fc50c67f9bcca1d8.js +1 -0
  453. package/.next/standalone/.next/static/chunks/app/api/printing-press/clis/route-fc50c67f9bcca1d8.js +1 -0
  454. package/.next/standalone/.next/static/chunks/app/api/printing-press/install/route-fc50c67f9bcca1d8.js +1 -0
  455. package/.next/standalone/.next/static/chunks/app/api/printing-press/security-mode/route-fc50c67f9bcca1d8.js +1 -0
  456. package/.next/standalone/.next/static/chunks/app/api/privacy/config/route-fc50c67f9bcca1d8.js +1 -0
  457. package/.next/standalone/.next/static/chunks/app/api/privacy/verify/route-fc50c67f9bcca1d8.js +1 -0
  458. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/route-fc50c67f9bcca1d8.js +1 -0
  459. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/share-link/route-fc50c67f9bcca1d8.js +1 -0
  460. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-fc50c67f9bcca1d8.js +1 -0
  461. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-fc50c67f9bcca1d8.js +1 -0
  462. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-fc50c67f9bcca1d8.js +1 -0
  463. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/route-fc50c67f9bcca1d8.js +1 -0
  464. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-fc50c67f9bcca1d8.js +1 -0
  465. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/route-fc50c67f9bcca1d8.js +1 -0
  466. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/validate/route-fc50c67f9bcca1d8.js +1 -0
  467. package/.next/standalone/.next/static/chunks/app/api/processes/route-fc50c67f9bcca1d8.js +1 -0
  468. package/.next/standalone/.next/static/chunks/app/api/processes/start-and-route/route-fc50c67f9bcca1d8.js +1 -0
  469. package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/library/route-fc50c67f9bcca1d8.js +1 -0
  470. package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/route-fc50c67f9bcca1d8.js +1 -0
  471. package/.next/standalone/.next/static/chunks/app/api/projects/route-fc50c67f9bcca1d8.js +1 -0
  472. package/.next/standalone/.next/static/chunks/app/api/runs/approve-claude-run/route-fc50c67f9bcca1d8.js +1 -0
  473. package/.next/standalone/.next/static/chunks/app/api/runs/claude-code-dry-run/route-fc50c67f9bcca1d8.js +1 -0
  474. package/.next/standalone/.next/static/chunks/app/api/runs/competitor-report/route-fc50c67f9bcca1d8.js +1 -0
  475. package/.next/standalone/.next/static/chunks/app/api/runs/engine-ping/route-fc50c67f9bcca1d8.js +1 -0
  476. package/.next/standalone/.next/static/chunks/app/api/runs/marketing-plan/route-fc50c67f9bcca1d8.js +1 -0
  477. package/.next/standalone/.next/static/chunks/app/api/schedules/upsert/route-fc50c67f9bcca1d8.js +1 -0
  478. package/.next/standalone/.next/static/chunks/app/api/secrets/[name]/route-fc50c67f9bcca1d8.js +1 -0
  479. package/.next/standalone/.next/static/chunks/app/api/secrets/route-fc50c67f9bcca1d8.js +1 -0
  480. package/.next/standalone/.next/static/chunks/app/api/settings/trust-mode/route-fc50c67f9bcca1d8.js +1 -0
  481. package/.next/standalone/.next/static/chunks/app/api/share/[token]/otp/route-fc50c67f9bcca1d8.js +1 -0
  482. package/.next/standalone/.next/static/chunks/app/api/share/[token]/route-fc50c67f9bcca1d8.js +1 -0
  483. package/.next/standalone/.next/static/chunks/app/api/share/[token]/verify/route-fc50c67f9bcca1d8.js +1 -0
  484. package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/otp/route-fc50c67f9bcca1d8.js +1 -0
  485. package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/route-fc50c67f9bcca1d8.js +1 -0
  486. package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/verify/route-fc50c67f9bcca1d8.js +1 -0
  487. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-fc50c67f9bcca1d8.js +1 -0
  488. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/publish/route-fc50c67f9bcca1d8.js +1 -0
  489. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/route-fc50c67f9bcca1d8.js +1 -0
  490. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/status/route-fc50c67f9bcca1d8.js +1 -0
  491. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/unpublish/route-fc50c67f9bcca1d8.js +1 -0
  492. package/.next/standalone/.next/static/chunks/app/api/state/route-fc50c67f9bcca1d8.js +1 -0
  493. package/.next/standalone/.next/static/chunks/app/api/system/update/route-fc50c67f9bcca1d8.js +1 -0
  494. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/active-run/route-fc50c67f9bcca1d8.js +1 -0
  495. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/attachments/route-fc50c67f9bcca1d8.js +1 -0
  496. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-fc50c67f9bcca1d8.js +1 -0
  497. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/route-fc50c67f9bcca1d8.js +1 -0
  498. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checkout/route-fc50c67f9bcca1d8.js +1 -0
  499. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/children/route-fc50c67f9bcca1d8.js +1 -0
  500. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/comments/route-fc50c67f9bcca1d8.js +1 -0
  501. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/events/route-fc50c67f9bcca1d8.js +1 -0
  502. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/live-runs/route-fc50c67f9bcca1d8.js +1 -0
  503. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/release/route-fc50c67f9bcca1d8.js +1 -0
  504. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/route-fc50c67f9bcca1d8.js +1 -0
  505. package/.next/standalone/.next/static/chunks/app/api/tasks/route-fc50c67f9bcca1d8.js +1 -0
  506. package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/[id]/route-fc50c67f9bcca1d8.js +1 -0
  507. package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/route-fc50c67f9bcca1d8.js +1 -0
  508. package/.next/standalone/.next/static/chunks/app/api/tool-egress/route-fc50c67f9bcca1d8.js +1 -0
  509. package/.next/standalone/.next/static/chunks/app/api/tools/[name]/approve/route-fc50c67f9bcca1d8.js +1 -0
  510. package/.next/standalone/.next/static/chunks/app/api/tools/[name]/route-fc50c67f9bcca1d8.js +1 -0
  511. package/.next/standalone/.next/static/chunks/app/api/tools/route-fc50c67f9bcca1d8.js +1 -0
  512. package/.next/standalone/.next/static/chunks/app/api/transcripts/route-fc50c67f9bcca1d8.js +1 -0
  513. package/.next/standalone/.next/static/chunks/app/api/voice/providers/route-fc50c67f9bcca1d8.js +1 -0
  514. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/context/route-fc50c67f9bcca1d8.js +1 -0
  515. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/session/route-fc50c67f9bcca1d8.js +1 -0
  516. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tool-result/route-fc50c67f9bcca1d8.js +1 -0
  517. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tools/route-fc50c67f9bcca1d8.js +1 -0
  518. package/.next/standalone/.next/static/chunks/app/api/voice/tts/route-fc50c67f9bcca1d8.js +1 -0
  519. package/.next/standalone/.next/static/chunks/app/api/whatsapp/allowlist/route-fc50c67f9bcca1d8.js +1 -0
  520. package/.next/standalone/.next/static/chunks/app/api/whatsapp/disconnect/route-fc50c67f9bcca1d8.js +1 -0
  521. package/.next/standalone/.next/static/chunks/app/api/whatsapp/messages/route-fc50c67f9bcca1d8.js +1 -0
  522. package/.next/standalone/.next/static/chunks/app/api/whatsapp/qr/route-fc50c67f9bcca1d8.js +1 -0
  523. package/.next/standalone/.next/static/chunks/app/api/whatsapp/send/route-fc50c67f9bcca1d8.js +1 -0
  524. package/.next/standalone/.next/static/chunks/app/api/whatsapp/status/route-fc50c67f9bcca1d8.js +1 -0
  525. package/.next/standalone/.next/static/chunks/app/approvals/loading-fc50c67f9bcca1d8.js +1 -0
  526. package/.next/standalone/.next/static/chunks/app/architecture/loading-fc50c67f9bcca1d8.js +1 -0
  527. package/.next/standalone/.next/static/chunks/app/audit/loading-fc50c67f9bcca1d8.js +1 -0
  528. package/.next/standalone/.next/static/chunks/app/brand/loading-fc50c67f9bcca1d8.js +1 -0
  529. package/.next/standalone/.next/static/chunks/app/disk/loading-fc50c67f9bcca1d8.js +1 -0
  530. package/.next/standalone/.next/static/chunks/app/federated-ai/loading-fc50c67f9bcca1d8.js +1 -0
  531. package/.next/standalone/.next/static/chunks/app/help/loading-fc50c67f9bcca1d8.js +1 -0
  532. package/.next/standalone/.next/static/chunks/app/loading-fc50c67f9bcca1d8.js +1 -0
  533. package/.next/standalone/.next/static/chunks/app/marketplace/loading-fc50c67f9bcca1d8.js +1 -0
  534. package/.next/standalone/.next/static/chunks/app/missions/loading-fc50c67f9bcca1d8.js +1 -0
  535. package/.next/standalone/.next/static/chunks/app/onboarding/loading-fc50c67f9bcca1d8.js +1 -0
  536. package/.next/standalone/.next/static/chunks/app/onboarding/team/page-9adf3bc729fd1762.js +1 -0
  537. package/.next/standalone/.next/static/chunks/app/org/loading-fc50c67f9bcca1d8.js +1 -0
  538. package/.next/standalone/.next/static/chunks/app/page-aa1d178b557f45b7.js +1 -0
  539. package/.next/standalone/.next/static/chunks/app/projects/[slug]/loading-fc50c67f9bcca1d8.js +1 -0
  540. package/.next/standalone/.next/static/chunks/app/projects/loading-fc50c67f9bcca1d8.js +1 -0
  541. package/.next/standalone/.next/static/chunks/app/projects/page-61f935c0aaf292ef.js +1 -0
  542. package/.next/standalone/.next/static/chunks/app/reports/[file]/route-fc50c67f9bcca1d8.js +1 -0
  543. package/.next/standalone/.next/static/chunks/app/reports/loading-fc50c67f9bcca1d8.js +1 -0
  544. package/.next/standalone/.next/static/chunks/app/runtime/loading-fc50c67f9bcca1d8.js +1 -0
  545. package/.next/standalone/.next/static/chunks/app/schedules/loading-fc50c67f9bcca1d8.js +1 -0
  546. package/.next/standalone/.next/static/chunks/app/settings/loading-fc50c67f9bcca1d8.js +1 -0
  547. package/.next/standalone/.next/static/chunks/app/settings/page-fc50c67f9bcca1d8.js +1 -0
  548. package/.next/standalone/.next/static/chunks/app/settings/team/page-c66a988a66a77b5e.js +1 -0
  549. package/.next/standalone/.next/static/chunks/app/tasks/[id]/loading-fc50c67f9bcca1d8.js +1 -0
  550. package/.next/standalone/.next/static/chunks/app/tasks/loading-fc50c67f9bcca1d8.js +1 -0
  551. package/.next/standalone/.next/static/chunks/app/tools/loading-fc50c67f9bcca1d8.js +1 -0
  552. package/.next/standalone/.next/static/chunks/app/tools/page-fc50c67f9bcca1d8.js +1 -0
  553. package/.next/standalone/.next/static/chunks/app/whatsapp/loading-fc50c67f9bcca1d8.js +1 -0
  554. package/.next/standalone/.next/static/chunks/app/workflows/share/[caseId]/page-fc50c67f9bcca1d8.js +1 -0
  555. package/.next/standalone/.next/static/chunks/webpack-0613e32ff96b6e16.js +1 -0
  556. package/.next/standalone/.next/static/css/577b1c48f4c7ee58.css +1 -0
  557. package/.next/standalone/.next/static/mu47BRCkKEvvz6S5ipLGz/_buildManifest.js +1 -0
  558. package/.next/standalone/CHANGELOG.md +25 -0
  559. package/.next/standalone/package.json +3 -1
  560. package/.next/static/chunks/3168.502cd8077da5f8b6.js +1 -0
  561. package/.next/static/chunks/8217.739e4ce0447348b9.js +1 -0
  562. package/.next/static/chunks/app/activity/loading-fc50c67f9bcca1d8.js +1 -0
  563. package/.next/static/chunks/app/agents/[id]/loading-fc50c67f9bcca1d8.js +1 -0
  564. package/.next/static/chunks/app/agents/[id]/page-721c43e75cb2dd59.js +1 -0
  565. package/.next/static/chunks/app/agents/loading-fc50c67f9bcca1d8.js +1 -0
  566. package/.next/static/chunks/app/agents/page-b1bcb39a46a254aa.js +1 -0
  567. package/.next/static/chunks/app/api/activity/route-fc50c67f9bcca1d8.js +1 -0
  568. package/.next/static/chunks/app/api/admin/audit-export/route-fc50c67f9bcca1d8.js +1 -0
  569. package/.next/static/chunks/app/api/admin/share-links/route-fc50c67f9bcca1d8.js +1 -0
  570. package/.next/static/chunks/app/api/agent-memory/route-fc50c67f9bcca1d8.js +1 -0
  571. package/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-fc50c67f9bcca1d8.js +1 -0
  572. package/.next/static/chunks/app/api/agent-runs/[id]/events/route-fc50c67f9bcca1d8.js +1 -0
  573. package/.next/static/chunks/app/api/agent-runs/[id]/log/route-fc50c67f9bcca1d8.js +1 -0
  574. package/.next/static/chunks/app/api/agent-runs/[id]/route-fc50c67f9bcca1d8.js +1 -0
  575. package/.next/static/chunks/app/api/agent-runs/route-fc50c67f9bcca1d8.js +1 -0
  576. package/.next/static/chunks/app/api/agents/[id]/active-run/route-fc50c67f9bcca1d8.js +1 -0
  577. package/.next/static/chunks/app/api/agents/[id]/chain/route-fc50c67f9bcca1d8.js +1 -0
  578. package/.next/static/chunks/app/api/agents/[id]/memory/route-fc50c67f9bcca1d8.js +1 -0
  579. package/.next/static/chunks/app/api/agents/[id]/reports/route-fc50c67f9bcca1d8.js +1 -0
  580. package/.next/static/chunks/app/api/agents/[id]/run/route-fc50c67f9bcca1d8.js +1 -0
  581. package/.next/static/chunks/app/api/agents/[id]/skills/route-fc50c67f9bcca1d8.js +1 -0
  582. package/.next/static/chunks/app/api/agents/create/route-fc50c67f9bcca1d8.js +1 -0
  583. package/.next/static/chunks/app/api/agents/ops/route-fc50c67f9bcca1d8.js +1 -0
  584. package/.next/static/chunks/app/api/agents/resume-approval/route-fc50c67f9bcca1d8.js +1 -0
  585. package/.next/static/chunks/app/api/approvals/[id]/route-fc50c67f9bcca1d8.js +1 -0
  586. package/.next/static/chunks/app/api/approvals/route-fc50c67f9bcca1d8.js +1 -0
  587. package/.next/static/chunks/app/api/artifacts/[id]/acl/route-fc50c67f9bcca1d8.js +1 -0
  588. package/.next/static/chunks/app/api/artifacts/[id]/protect/route-fc50c67f9bcca1d8.js +1 -0
  589. package/.next/static/chunks/app/api/artifacts/[id]/raw/route-fc50c67f9bcca1d8.js +1 -0
  590. package/.next/static/chunks/app/api/artifacts/[id]/route-fc50c67f9bcca1d8.js +1 -0
  591. package/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-fc50c67f9bcca1d8.js +1 -0
  592. package/.next/static/chunks/app/api/artifacts/[id]/share-link/route-fc50c67f9bcca1d8.js +1 -0
  593. package/.next/static/chunks/app/api/artifacts/upload/route-fc50c67f9bcca1d8.js +1 -0
  594. package/.next/static/chunks/app/api/audit/list/route-fc50c67f9bcca1d8.js +1 -0
  595. package/.next/static/chunks/app/api/audit/search/route-fc50c67f9bcca1d8.js +1 -0
  596. package/.next/static/chunks/app/api/auth/callback/route-fc50c67f9bcca1d8.js +1 -0
  597. package/.next/static/chunks/app/api/auth/config/route-fc50c67f9bcca1d8.js +1 -0
  598. package/.next/static/chunks/app/api/auth/join-bootstrap/route-fc50c67f9bcca1d8.js +1 -0
  599. package/.next/static/chunks/app/api/auth/session/route-fc50c67f9bcca1d8.js +1 -0
  600. package/.next/static/chunks/app/api/brand/route-fc50c67f9bcca1d8.js +1 -0
  601. package/.next/static/chunks/app/api/brand/share/route-fc50c67f9bcca1d8.js +1 -0
  602. package/.next/static/chunks/app/api/chat/sessions/[id]/route-fc50c67f9bcca1d8.js +1 -0
  603. package/.next/static/chunks/app/api/chat/sessions/route-fc50c67f9bcca1d8.js +1 -0
  604. package/.next/static/chunks/app/api/cloud/schema/route-fc50c67f9bcca1d8.js +1 -0
  605. package/.next/static/chunks/app/api/config/env/route-fc50c67f9bcca1d8.js +1 -0
  606. package/.next/static/chunks/app/api/config/route-fc50c67f9bcca1d8.js +1 -0
  607. package/.next/static/chunks/app/api/connections/[service]/route-fc50c67f9bcca1d8.js +1 -0
  608. package/.next/static/chunks/app/api/connections/[service]/verify/route-fc50c67f9bcca1d8.js +1 -0
  609. package/.next/static/chunks/app/api/connections/route-fc50c67f9bcca1d8.js +1 -0
  610. package/.next/static/chunks/app/api/cron/tick/route-fc50c67f9bcca1d8.js +1 -0
  611. package/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-fc50c67f9bcca1d8.js +1 -0
  612. package/.next/static/chunks/app/api/dashboard/spaces/[id]/route-fc50c67f9bcca1d8.js +1 -0
  613. package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-fc50c67f9bcca1d8.js +1 -0
  614. package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-fc50c67f9bcca1d8.js +1 -0
  615. package/.next/static/chunks/app/api/dashboard/spaces/import/route-fc50c67f9bcca1d8.js +1 -0
  616. package/.next/static/chunks/app/api/dashboard/spaces/route-fc50c67f9bcca1d8.js +1 -0
  617. package/.next/static/chunks/app/api/disk/files/[id]/blob/route-fc50c67f9bcca1d8.js +1 -0
  618. package/.next/static/chunks/app/api/disk/files/[id]/route-fc50c67f9bcca1d8.js +1 -0
  619. package/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-fc50c67f9bcca1d8.js +1 -0
  620. package/.next/static/chunks/app/api/disk/files/route-fc50c67f9bcca1d8.js +1 -0
  621. package/.next/static/chunks/app/api/disk/folders/route-fc50c67f9bcca1d8.js +1 -0
  622. package/.next/static/chunks/app/api/events/since/[cursor]/route-fc50c67f9bcca1d8.js +1 -0
  623. package/.next/static/chunks/app/api/events/stream/route-fc50c67f9bcca1d8.js +1 -0
  624. package/.next/static/chunks/app/api/fs/create-folder/route-fc50c67f9bcca1d8.js +1 -0
  625. package/.next/static/chunks/app/api/fs/pick-folder/route-fc50c67f9bcca1d8.js +1 -0
  626. package/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-fc50c67f9bcca1d8.js +1 -0
  627. package/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-fc50c67f9bcca1d8.js +1 -0
  628. package/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-fc50c67f9bcca1d8.js +1 -0
  629. package/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-fc50c67f9bcca1d8.js +1 -0
  630. package/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-fc50c67f9bcca1d8.js +1 -0
  631. package/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-fc50c67f9bcca1d8.js +1 -0
  632. package/.next/static/chunks/app/api/hail/engagements/[id]/route-fc50c67f9bcca1d8.js +1 -0
  633. package/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-fc50c67f9bcca1d8.js +1 -0
  634. package/.next/static/chunks/app/api/hail/engagements/route-fc50c67f9bcca1d8.js +1 -0
  635. package/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-fc50c67f9bcca1d8.js +1 -0
  636. package/.next/static/chunks/app/api/hail/interviews/[id]/route-fc50c67f9bcca1d8.js +1 -0
  637. package/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-fc50c67f9bcca1d8.js +1 -0
  638. package/.next/static/chunks/app/api/hail/setup-packages/validate/route-fc50c67f9bcca1d8.js +1 -0
  639. package/.next/static/chunks/app/api/heartbeat/tick/route-fc50c67f9bcca1d8.js +1 -0
  640. package/.next/static/chunks/app/api/heartbeat/worker/route-fc50c67f9bcca1d8.js +1 -0
  641. package/.next/static/chunks/app/api/help/route-fc50c67f9bcca1d8.js +1 -0
  642. package/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-fc50c67f9bcca1d8.js +1 -0
  643. package/.next/static/chunks/app/api/hermes/jobs/[id]/route-fc50c67f9bcca1d8.js +1 -0
  644. package/.next/static/chunks/app/api/hermes/jobs/route-fc50c67f9bcca1d8.js +1 -0
  645. package/.next/static/chunks/app/api/integrations/google/callback/route-fc50c67f9bcca1d8.js +1 -0
  646. package/.next/static/chunks/app/api/integrations/google/oauth/route-fc50c67f9bcca1d8.js +1 -0
  647. package/.next/static/chunks/app/api/marketplace/[id]/route-fc50c67f9bcca1d8.js +1 -0
  648. package/.next/static/chunks/app/api/marketplace/open-design/route-fc50c67f9bcca1d8.js +1 -0
  649. package/.next/static/chunks/app/api/marketplace/route-fc50c67f9bcca1d8.js +1 -0
  650. package/.next/static/chunks/app/api/mines/import-roots/route-fc50c67f9bcca1d8.js +1 -0
  651. package/.next/static/chunks/app/api/mines/portfolio/route-fc50c67f9bcca1d8.js +1 -0
  652. package/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-fc50c67f9bcca1d8.js +1 -0
  653. package/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-fc50c67f9bcca1d8.js +1 -0
  654. package/.next/static/chunks/app/api/mines/projects/[id]/import/route-fc50c67f9bcca1d8.js +1 -0
  655. package/.next/static/chunks/app/api/mines/projects/[id]/publish/route-fc50c67f9bcca1d8.js +1 -0
  656. package/.next/static/chunks/app/api/mines/projects/route-fc50c67f9bcca1d8.js +1 -0
  657. package/.next/static/chunks/app/api/missions/route-fc50c67f9bcca1d8.js +1 -0
  658. package/.next/static/chunks/app/api/models/route-fc50c67f9bcca1d8.js +1 -0
  659. package/.next/static/chunks/app/api/onboarding/blueprint/route-fc50c67f9bcca1d8.js +1 -0
  660. package/.next/static/chunks/app/api/onboarding/launch/route-fc50c67f9bcca1d8.js +1 -0
  661. package/.next/static/chunks/app/api/orchestrator/command/route-fc50c67f9bcca1d8.js +1 -0
  662. package/.next/static/chunks/app/api/orchestrator/stream/attach/route-fc50c67f9bcca1d8.js +1 -0
  663. package/.next/static/chunks/app/api/orchestrator/stream/route-fc50c67f9bcca1d8.js +1 -0
  664. package/.next/static/chunks/app/api/orchestrator/upload/route-fc50c67f9bcca1d8.js +1 -0
  665. package/.next/static/chunks/app/api/org/route-fc50c67f9bcca1d8.js +1 -0
  666. package/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-fc50c67f9bcca1d8.js +1 -0
  667. package/.next/static/chunks/app/api/orgs/[id]/invites/route-fc50c67f9bcca1d8.js +1 -0
  668. package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-fc50c67f9bcca1d8.js +1 -0
  669. package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-fc50c67f9bcca1d8.js +1 -0
  670. package/.next/static/chunks/app/api/orgs/[id]/members/route-fc50c67f9bcca1d8.js +1 -0
  671. package/.next/static/chunks/app/api/orgs/[id]/route-fc50c67f9bcca1d8.js +1 -0
  672. package/.next/static/chunks/app/api/orgs/invites/pending/route-fc50c67f9bcca1d8.js +1 -0
  673. package/.next/static/chunks/app/api/orgs/join/route-fc50c67f9bcca1d8.js +1 -0
  674. package/.next/static/chunks/app/api/orgs/join-complete/route-fc50c67f9bcca1d8.js +1 -0
  675. package/.next/static/chunks/app/api/orgs/route-fc50c67f9bcca1d8.js +1 -0
  676. package/.next/static/chunks/app/api/printing-press/clis/route-fc50c67f9bcca1d8.js +1 -0
  677. package/.next/static/chunks/app/api/printing-press/install/route-fc50c67f9bcca1d8.js +1 -0
  678. package/.next/static/chunks/app/api/printing-press/security-mode/route-fc50c67f9bcca1d8.js +1 -0
  679. package/.next/static/chunks/app/api/privacy/config/route-fc50c67f9bcca1d8.js +1 -0
  680. package/.next/static/chunks/app/api/privacy/verify/route-fc50c67f9bcca1d8.js +1 -0
  681. package/.next/static/chunks/app/api/processes/[id]/route-fc50c67f9bcca1d8.js +1 -0
  682. package/.next/static/chunks/app/api/processes/[id]/share-link/route-fc50c67f9bcca1d8.js +1 -0
  683. package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-fc50c67f9bcca1d8.js +1 -0
  684. package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-fc50c67f9bcca1d8.js +1 -0
  685. package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-fc50c67f9bcca1d8.js +1 -0
  686. package/.next/static/chunks/app/api/processes/definitions/[slug]/route-fc50c67f9bcca1d8.js +1 -0
  687. package/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-fc50c67f9bcca1d8.js +1 -0
  688. package/.next/static/chunks/app/api/processes/definitions/route-fc50c67f9bcca1d8.js +1 -0
  689. package/.next/static/chunks/app/api/processes/definitions/validate/route-fc50c67f9bcca1d8.js +1 -0
  690. package/.next/static/chunks/app/api/processes/route-fc50c67f9bcca1d8.js +1 -0
  691. package/.next/static/chunks/app/api/processes/start-and-route/route-fc50c67f9bcca1d8.js +1 -0
  692. package/.next/static/chunks/app/api/projects/[slug]/library/route-fc50c67f9bcca1d8.js +1 -0
  693. package/.next/static/chunks/app/api/projects/[slug]/route-fc50c67f9bcca1d8.js +1 -0
  694. package/.next/static/chunks/app/api/projects/route-fc50c67f9bcca1d8.js +1 -0
  695. package/.next/static/chunks/app/api/runs/approve-claude-run/route-fc50c67f9bcca1d8.js +1 -0
  696. package/.next/static/chunks/app/api/runs/claude-code-dry-run/route-fc50c67f9bcca1d8.js +1 -0
  697. package/.next/static/chunks/app/api/runs/competitor-report/route-fc50c67f9bcca1d8.js +1 -0
  698. package/.next/static/chunks/app/api/runs/engine-ping/route-fc50c67f9bcca1d8.js +1 -0
  699. package/.next/static/chunks/app/api/runs/marketing-plan/route-fc50c67f9bcca1d8.js +1 -0
  700. package/.next/static/chunks/app/api/schedules/upsert/route-fc50c67f9bcca1d8.js +1 -0
  701. package/.next/static/chunks/app/api/secrets/[name]/route-fc50c67f9bcca1d8.js +1 -0
  702. package/.next/static/chunks/app/api/secrets/route-fc50c67f9bcca1d8.js +1 -0
  703. package/.next/static/chunks/app/api/settings/trust-mode/route-fc50c67f9bcca1d8.js +1 -0
  704. package/.next/static/chunks/app/api/share/[token]/otp/route-fc50c67f9bcca1d8.js +1 -0
  705. package/.next/static/chunks/app/api/share/[token]/route-fc50c67f9bcca1d8.js +1 -0
  706. package/.next/static/chunks/app/api/share/[token]/verify/route-fc50c67f9bcca1d8.js +1 -0
  707. package/.next/static/chunks/app/api/share/space/[token]/otp/route-fc50c67f9bcca1d8.js +1 -0
  708. package/.next/static/chunks/app/api/share/space/[token]/route-fc50c67f9bcca1d8.js +1 -0
  709. package/.next/static/chunks/app/api/share/space/[token]/verify/route-fc50c67f9bcca1d8.js +1 -0
  710. package/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-fc50c67f9bcca1d8.js +1 -0
  711. package/.next/static/chunks/app/api/shared/spaces/publish/route-fc50c67f9bcca1d8.js +1 -0
  712. package/.next/static/chunks/app/api/shared/spaces/route-fc50c67f9bcca1d8.js +1 -0
  713. package/.next/static/chunks/app/api/shared/spaces/status/route-fc50c67f9bcca1d8.js +1 -0
  714. package/.next/static/chunks/app/api/shared/spaces/unpublish/route-fc50c67f9bcca1d8.js +1 -0
  715. package/.next/static/chunks/app/api/state/route-fc50c67f9bcca1d8.js +1 -0
  716. package/.next/static/chunks/app/api/system/update/route-fc50c67f9bcca1d8.js +1 -0
  717. package/.next/static/chunks/app/api/tasks/[id]/active-run/route-fc50c67f9bcca1d8.js +1 -0
  718. package/.next/static/chunks/app/api/tasks/[id]/attachments/route-fc50c67f9bcca1d8.js +1 -0
  719. package/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-fc50c67f9bcca1d8.js +1 -0
  720. package/.next/static/chunks/app/api/tasks/[id]/checklist/route-fc50c67f9bcca1d8.js +1 -0
  721. package/.next/static/chunks/app/api/tasks/[id]/checkout/route-fc50c67f9bcca1d8.js +1 -0
  722. package/.next/static/chunks/app/api/tasks/[id]/children/route-fc50c67f9bcca1d8.js +1 -0
  723. package/.next/static/chunks/app/api/tasks/[id]/comments/route-fc50c67f9bcca1d8.js +1 -0
  724. package/.next/static/chunks/app/api/tasks/[id]/events/route-fc50c67f9bcca1d8.js +1 -0
  725. package/.next/static/chunks/app/api/tasks/[id]/live-runs/route-fc50c67f9bcca1d8.js +1 -0
  726. package/.next/static/chunks/app/api/tasks/[id]/release/route-fc50c67f9bcca1d8.js +1 -0
  727. package/.next/static/chunks/app/api/tasks/[id]/route-fc50c67f9bcca1d8.js +1 -0
  728. package/.next/static/chunks/app/api/tasks/route-fc50c67f9bcca1d8.js +1 -0
  729. package/.next/static/chunks/app/api/tool-allowlists/[id]/route-fc50c67f9bcca1d8.js +1 -0
  730. package/.next/static/chunks/app/api/tool-allowlists/route-fc50c67f9bcca1d8.js +1 -0
  731. package/.next/static/chunks/app/api/tool-egress/route-fc50c67f9bcca1d8.js +1 -0
  732. package/.next/static/chunks/app/api/tools/[name]/approve/route-fc50c67f9bcca1d8.js +1 -0
  733. package/.next/static/chunks/app/api/tools/[name]/route-fc50c67f9bcca1d8.js +1 -0
  734. package/.next/static/chunks/app/api/tools/route-fc50c67f9bcca1d8.js +1 -0
  735. package/.next/static/chunks/app/api/transcripts/route-fc50c67f9bcca1d8.js +1 -0
  736. package/.next/static/chunks/app/api/voice/providers/route-fc50c67f9bcca1d8.js +1 -0
  737. package/.next/static/chunks/app/api/voice/realtime/context/route-fc50c67f9bcca1d8.js +1 -0
  738. package/.next/static/chunks/app/api/voice/realtime/session/route-fc50c67f9bcca1d8.js +1 -0
  739. package/.next/static/chunks/app/api/voice/realtime/tool-result/route-fc50c67f9bcca1d8.js +1 -0
  740. package/.next/static/chunks/app/api/voice/realtime/tools/route-fc50c67f9bcca1d8.js +1 -0
  741. package/.next/static/chunks/app/api/voice/tts/route-fc50c67f9bcca1d8.js +1 -0
  742. package/.next/static/chunks/app/api/whatsapp/allowlist/route-fc50c67f9bcca1d8.js +1 -0
  743. package/.next/static/chunks/app/api/whatsapp/disconnect/route-fc50c67f9bcca1d8.js +1 -0
  744. package/.next/static/chunks/app/api/whatsapp/messages/route-fc50c67f9bcca1d8.js +1 -0
  745. package/.next/static/chunks/app/api/whatsapp/qr/route-fc50c67f9bcca1d8.js +1 -0
  746. package/.next/static/chunks/app/api/whatsapp/send/route-fc50c67f9bcca1d8.js +1 -0
  747. package/.next/static/chunks/app/api/whatsapp/status/route-fc50c67f9bcca1d8.js +1 -0
  748. package/.next/static/chunks/app/approvals/loading-fc50c67f9bcca1d8.js +1 -0
  749. package/.next/static/chunks/app/architecture/loading-fc50c67f9bcca1d8.js +1 -0
  750. package/.next/static/chunks/app/audit/loading-fc50c67f9bcca1d8.js +1 -0
  751. package/.next/static/chunks/app/brand/loading-fc50c67f9bcca1d8.js +1 -0
  752. package/.next/static/chunks/app/disk/loading-fc50c67f9bcca1d8.js +1 -0
  753. package/.next/static/chunks/app/federated-ai/loading-fc50c67f9bcca1d8.js +1 -0
  754. package/.next/static/chunks/app/help/loading-fc50c67f9bcca1d8.js +1 -0
  755. package/.next/static/chunks/app/loading-fc50c67f9bcca1d8.js +1 -0
  756. package/.next/static/chunks/app/marketplace/loading-fc50c67f9bcca1d8.js +1 -0
  757. package/.next/static/chunks/app/missions/loading-fc50c67f9bcca1d8.js +1 -0
  758. package/.next/static/chunks/app/onboarding/loading-fc50c67f9bcca1d8.js +1 -0
  759. package/.next/static/chunks/app/onboarding/team/page-9adf3bc729fd1762.js +1 -0
  760. package/.next/static/chunks/app/org/loading-fc50c67f9bcca1d8.js +1 -0
  761. package/.next/static/chunks/app/page-aa1d178b557f45b7.js +1 -0
  762. package/.next/static/chunks/app/projects/[slug]/loading-fc50c67f9bcca1d8.js +1 -0
  763. package/.next/static/chunks/app/projects/loading-fc50c67f9bcca1d8.js +1 -0
  764. package/.next/static/chunks/app/projects/page-61f935c0aaf292ef.js +1 -0
  765. package/.next/static/chunks/app/reports/[file]/route-fc50c67f9bcca1d8.js +1 -0
  766. package/.next/static/chunks/app/reports/loading-fc50c67f9bcca1d8.js +1 -0
  767. package/.next/static/chunks/app/runtime/loading-fc50c67f9bcca1d8.js +1 -0
  768. package/.next/static/chunks/app/schedules/loading-fc50c67f9bcca1d8.js +1 -0
  769. package/.next/static/chunks/app/settings/loading-fc50c67f9bcca1d8.js +1 -0
  770. package/.next/static/chunks/app/settings/page-fc50c67f9bcca1d8.js +1 -0
  771. package/.next/static/chunks/app/settings/team/page-c66a988a66a77b5e.js +1 -0
  772. package/.next/static/chunks/app/tasks/[id]/loading-fc50c67f9bcca1d8.js +1 -0
  773. package/.next/static/chunks/app/tasks/loading-fc50c67f9bcca1d8.js +1 -0
  774. package/.next/static/chunks/app/tools/loading-fc50c67f9bcca1d8.js +1 -0
  775. package/.next/static/chunks/app/tools/page-fc50c67f9bcca1d8.js +1 -0
  776. package/.next/static/chunks/app/whatsapp/loading-fc50c67f9bcca1d8.js +1 -0
  777. package/.next/static/chunks/app/workflows/share/[caseId]/page-fc50c67f9bcca1d8.js +1 -0
  778. package/.next/static/chunks/webpack-0613e32ff96b6e16.js +1 -0
  779. package/.next/static/css/577b1c48f4c7ee58.css +1 -0
  780. package/.next/static/mu47BRCkKEvvz6S5ipLGz/_buildManifest.js +1 -0
  781. package/CHANGELOG.md +25 -0
  782. package/app/api/agents/resume-approval/route.js +102 -0
  783. package/app/api/auth/config/route.js +8 -1
  784. package/app/api/cloud/schema/route.js +109 -0
  785. package/app/api/connections/[service]/verify/route.js +83 -0
  786. package/app/api/orchestrator/stream/attach/route.js +101 -0
  787. package/app/api/orchestrator/stream/route.js +99 -50
  788. package/app/api/orgs/[id]/invites/route.js +7 -1
  789. package/app/components/dashboard/apply-stream-event.js +151 -0
  790. package/app/components/dashboard/artifact-board.jsx +7 -3
  791. package/app/components/dashboard/artifact-order.js +22 -0
  792. package/app/components/dashboard/chat-panel.jsx +77 -1
  793. package/app/components/dashboard/chat-session-view.js +26 -0
  794. package/app/components/dashboard/use-artifact-layout.js +48 -14
  795. package/app/components/dashboard/use-chat-continuity.js +113 -0
  796. package/app/components/dashboard/use-dashboard-sessions.js +24 -17
  797. package/app/components/dashboard/use-dashboard-state.js +72 -1
  798. package/app/components/dashboard/use-main-agent-stream.js +2 -0
  799. package/app/components/dashboard/use-stream-command.js +166 -108
  800. package/app/globals.css +91 -2
  801. package/app/onboarding/team/page.js +82 -0
  802. package/app/onboarding/team/team-setup-client.jsx +557 -0
  803. package/app/settings/account/auth-config-form.jsx +14 -0
  804. package/app/settings/team/page.js +51 -1
  805. package/app/settings/team/team-invites.jsx +3 -1
  806. package/lib/agent-config.js +20 -15
  807. package/lib/agent-routing.js +142 -0
  808. package/lib/agent-runner.js +192 -7
  809. package/lib/agent-templates.js +1 -0
  810. package/lib/auth-config.js +18 -4
  811. package/lib/auth-env-fastpath.js +34 -0
  812. package/lib/cli/dispatch.js +2 -2
  813. package/lib/cli/doctor-deep.js +170 -0
  814. package/lib/cli/doctor.js +56 -5
  815. package/lib/cloud-schema.generated.js +18 -0
  816. package/lib/cloud-schema.js +144 -0
  817. package/lib/connection-seeds.js +44 -0
  818. package/lib/db.js +4 -0
  819. package/lib/delegation-contracts.js +1 -0
  820. package/lib/higgsfield-media-card.js +221 -0
  821. package/lib/marketplace-seeds.js +85 -0
  822. package/lib/marketplace.js +57 -5
  823. package/lib/orchestrator-broadcast.js +126 -0
  824. package/lib/orchestrator-tools.js +62 -5
  825. package/lib/public-url.js +89 -0
  826. package/lib/role-capability-map.js +89 -0
  827. package/lib/runtime.js +38 -0
  828. package/lib/schema.js +6 -1
  829. package/lib/seeds.js +24 -0
  830. package/lib/share-url.js +9 -17
  831. package/lib/tools/adapters/higgsfield.js +329 -0
  832. package/lib/tools/registry.js +87 -0
  833. package/middleware.js +6 -9
  834. package/package.json +3 -1
  835. package/scripts/build-cloud-schema.mjs +118 -0
  836. package/scripts/inspect-cloud-orgs.mjs +30 -0
  837. package/.next/standalone/.next/server/chunks/3379.js +0 -1
  838. package/.next/standalone/.next/server/chunks/802.js +0 -1
  839. package/.next/standalone/.next/static/-FRz43s1H_LZFhx24FvnL/_buildManifest.js +0 -1
  840. package/.next/standalone/.next/static/chunks/3168.ed91d2d25b4aca3f.js +0 -1
  841. package/.next/standalone/.next/static/chunks/8217.9459315d921fdd61.js +0 -1
  842. package/.next/standalone/.next/static/chunks/app/activity/loading-17ae3509caaa1354.js +0 -1
  843. package/.next/standalone/.next/static/chunks/app/agents/[id]/loading-17ae3509caaa1354.js +0 -1
  844. package/.next/standalone/.next/static/chunks/app/agents/[id]/page-fd263522f6c29653.js +0 -1
  845. package/.next/standalone/.next/static/chunks/app/agents/loading-17ae3509caaa1354.js +0 -1
  846. package/.next/standalone/.next/static/chunks/app/agents/page-5860869c305cc54b.js +0 -1
  847. package/.next/standalone/.next/static/chunks/app/api/activity/route-17ae3509caaa1354.js +0 -1
  848. package/.next/standalone/.next/static/chunks/app/api/admin/audit-export/route-17ae3509caaa1354.js +0 -1
  849. package/.next/standalone/.next/static/chunks/app/api/admin/share-links/route-17ae3509caaa1354.js +0 -1
  850. package/.next/standalone/.next/static/chunks/app/api/agent-memory/route-17ae3509caaa1354.js +0 -1
  851. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-17ae3509caaa1354.js +0 -1
  852. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/events/route-17ae3509caaa1354.js +0 -1
  853. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/log/route-17ae3509caaa1354.js +0 -1
  854. package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/route-17ae3509caaa1354.js +0 -1
  855. package/.next/standalone/.next/static/chunks/app/api/agent-runs/route-17ae3509caaa1354.js +0 -1
  856. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/active-run/route-17ae3509caaa1354.js +0 -1
  857. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/chain/route-17ae3509caaa1354.js +0 -1
  858. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/memory/route-17ae3509caaa1354.js +0 -1
  859. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/reports/route-17ae3509caaa1354.js +0 -1
  860. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/run/route-17ae3509caaa1354.js +0 -1
  861. package/.next/standalone/.next/static/chunks/app/api/agents/[id]/skills/route-17ae3509caaa1354.js +0 -1
  862. package/.next/standalone/.next/static/chunks/app/api/agents/create/route-17ae3509caaa1354.js +0 -1
  863. package/.next/standalone/.next/static/chunks/app/api/agents/ops/route-17ae3509caaa1354.js +0 -1
  864. package/.next/standalone/.next/static/chunks/app/api/approvals/[id]/route-17ae3509caaa1354.js +0 -1
  865. package/.next/standalone/.next/static/chunks/app/api/approvals/route-17ae3509caaa1354.js +0 -1
  866. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/acl/route-17ae3509caaa1354.js +0 -1
  867. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/protect/route-17ae3509caaa1354.js +0 -1
  868. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/raw/route-17ae3509caaa1354.js +0 -1
  869. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/route-17ae3509caaa1354.js +0 -1
  870. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-17ae3509caaa1354.js +0 -1
  871. package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/route-17ae3509caaa1354.js +0 -1
  872. package/.next/standalone/.next/static/chunks/app/api/artifacts/upload/route-17ae3509caaa1354.js +0 -1
  873. package/.next/standalone/.next/static/chunks/app/api/audit/list/route-17ae3509caaa1354.js +0 -1
  874. package/.next/standalone/.next/static/chunks/app/api/audit/search/route-17ae3509caaa1354.js +0 -1
  875. package/.next/standalone/.next/static/chunks/app/api/auth/callback/route-17ae3509caaa1354.js +0 -1
  876. package/.next/standalone/.next/static/chunks/app/api/auth/config/route-17ae3509caaa1354.js +0 -1
  877. package/.next/standalone/.next/static/chunks/app/api/auth/join-bootstrap/route-17ae3509caaa1354.js +0 -1
  878. package/.next/standalone/.next/static/chunks/app/api/auth/session/route-17ae3509caaa1354.js +0 -1
  879. package/.next/standalone/.next/static/chunks/app/api/brand/route-17ae3509caaa1354.js +0 -1
  880. package/.next/standalone/.next/static/chunks/app/api/brand/share/route-17ae3509caaa1354.js +0 -1
  881. package/.next/standalone/.next/static/chunks/app/api/chat/sessions/[id]/route-17ae3509caaa1354.js +0 -1
  882. package/.next/standalone/.next/static/chunks/app/api/chat/sessions/route-17ae3509caaa1354.js +0 -1
  883. package/.next/standalone/.next/static/chunks/app/api/config/env/route-17ae3509caaa1354.js +0 -1
  884. package/.next/standalone/.next/static/chunks/app/api/config/route-17ae3509caaa1354.js +0 -1
  885. package/.next/standalone/.next/static/chunks/app/api/connections/[service]/route-17ae3509caaa1354.js +0 -1
  886. package/.next/standalone/.next/static/chunks/app/api/connections/[service]/verify/route-17ae3509caaa1354.js +0 -1
  887. package/.next/standalone/.next/static/chunks/app/api/connections/route-17ae3509caaa1354.js +0 -1
  888. package/.next/standalone/.next/static/chunks/app/api/cron/tick/route-17ae3509caaa1354.js +0 -1
  889. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-17ae3509caaa1354.js +0 -1
  890. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/route-17ae3509caaa1354.js +0 -1
  891. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-17ae3509caaa1354.js +0 -1
  892. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-17ae3509caaa1354.js +0 -1
  893. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/import/route-17ae3509caaa1354.js +0 -1
  894. package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/route-17ae3509caaa1354.js +0 -1
  895. package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/blob/route-17ae3509caaa1354.js +0 -1
  896. package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/route-17ae3509caaa1354.js +0 -1
  897. package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-17ae3509caaa1354.js +0 -1
  898. package/.next/standalone/.next/static/chunks/app/api/disk/files/route-17ae3509caaa1354.js +0 -1
  899. package/.next/standalone/.next/static/chunks/app/api/disk/folders/route-17ae3509caaa1354.js +0 -1
  900. package/.next/standalone/.next/static/chunks/app/api/events/since/[cursor]/route-17ae3509caaa1354.js +0 -1
  901. package/.next/standalone/.next/static/chunks/app/api/events/stream/route-17ae3509caaa1354.js +0 -1
  902. package/.next/standalone/.next/static/chunks/app/api/fs/create-folder/route-17ae3509caaa1354.js +0 -1
  903. package/.next/standalone/.next/static/chunks/app/api/fs/pick-folder/route-17ae3509caaa1354.js +0 -1
  904. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-17ae3509caaa1354.js +0 -1
  905. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-17ae3509caaa1354.js +0 -1
  906. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-17ae3509caaa1354.js +0 -1
  907. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-17ae3509caaa1354.js +0 -1
  908. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-17ae3509caaa1354.js +0 -1
  909. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-17ae3509caaa1354.js +0 -1
  910. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/route-17ae3509caaa1354.js +0 -1
  911. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-17ae3509caaa1354.js +0 -1
  912. package/.next/standalone/.next/static/chunks/app/api/hail/engagements/route-17ae3509caaa1354.js +0 -1
  913. package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-17ae3509caaa1354.js +0 -1
  914. package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/route-17ae3509caaa1354.js +0 -1
  915. package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-17ae3509caaa1354.js +0 -1
  916. package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/validate/route-17ae3509caaa1354.js +0 -1
  917. package/.next/standalone/.next/static/chunks/app/api/heartbeat/tick/route-17ae3509caaa1354.js +0 -1
  918. package/.next/standalone/.next/static/chunks/app/api/heartbeat/worker/route-17ae3509caaa1354.js +0 -1
  919. package/.next/standalone/.next/static/chunks/app/api/help/route-17ae3509caaa1354.js +0 -1
  920. package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-17ae3509caaa1354.js +0 -1
  921. package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/route-17ae3509caaa1354.js +0 -1
  922. package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/route-17ae3509caaa1354.js +0 -1
  923. package/.next/standalone/.next/static/chunks/app/api/integrations/google/callback/route-17ae3509caaa1354.js +0 -1
  924. package/.next/standalone/.next/static/chunks/app/api/integrations/google/oauth/route-17ae3509caaa1354.js +0 -1
  925. package/.next/standalone/.next/static/chunks/app/api/marketplace/[id]/route-17ae3509caaa1354.js +0 -1
  926. package/.next/standalone/.next/static/chunks/app/api/marketplace/open-design/route-17ae3509caaa1354.js +0 -1
  927. package/.next/standalone/.next/static/chunks/app/api/marketplace/route-17ae3509caaa1354.js +0 -1
  928. package/.next/standalone/.next/static/chunks/app/api/mines/import-roots/route-17ae3509caaa1354.js +0 -1
  929. package/.next/standalone/.next/static/chunks/app/api/mines/portfolio/route-17ae3509caaa1354.js +0 -1
  930. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-17ae3509caaa1354.js +0 -1
  931. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-17ae3509caaa1354.js +0 -1
  932. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/import/route-17ae3509caaa1354.js +0 -1
  933. package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/publish/route-17ae3509caaa1354.js +0 -1
  934. package/.next/standalone/.next/static/chunks/app/api/mines/projects/route-17ae3509caaa1354.js +0 -1
  935. package/.next/standalone/.next/static/chunks/app/api/missions/route-17ae3509caaa1354.js +0 -1
  936. package/.next/standalone/.next/static/chunks/app/api/models/route-17ae3509caaa1354.js +0 -1
  937. package/.next/standalone/.next/static/chunks/app/api/onboarding/blueprint/route-17ae3509caaa1354.js +0 -1
  938. package/.next/standalone/.next/static/chunks/app/api/onboarding/launch/route-17ae3509caaa1354.js +0 -1
  939. package/.next/standalone/.next/static/chunks/app/api/orchestrator/command/route-17ae3509caaa1354.js +0 -1
  940. package/.next/standalone/.next/static/chunks/app/api/orchestrator/stream/route-17ae3509caaa1354.js +0 -1
  941. package/.next/standalone/.next/static/chunks/app/api/orchestrator/upload/route-17ae3509caaa1354.js +0 -1
  942. package/.next/standalone/.next/static/chunks/app/api/org/route-17ae3509caaa1354.js +0 -1
  943. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-17ae3509caaa1354.js +0 -1
  944. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/route-17ae3509caaa1354.js +0 -1
  945. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-17ae3509caaa1354.js +0 -1
  946. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-17ae3509caaa1354.js +0 -1
  947. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/route-17ae3509caaa1354.js +0 -1
  948. package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/route-17ae3509caaa1354.js +0 -1
  949. package/.next/standalone/.next/static/chunks/app/api/orgs/invites/pending/route-17ae3509caaa1354.js +0 -1
  950. package/.next/standalone/.next/static/chunks/app/api/orgs/join/route-17ae3509caaa1354.js +0 -1
  951. package/.next/standalone/.next/static/chunks/app/api/orgs/join-complete/route-17ae3509caaa1354.js +0 -1
  952. package/.next/standalone/.next/static/chunks/app/api/orgs/route-17ae3509caaa1354.js +0 -1
  953. package/.next/standalone/.next/static/chunks/app/api/printing-press/clis/route-17ae3509caaa1354.js +0 -1
  954. package/.next/standalone/.next/static/chunks/app/api/printing-press/install/route-17ae3509caaa1354.js +0 -1
  955. package/.next/standalone/.next/static/chunks/app/api/printing-press/security-mode/route-17ae3509caaa1354.js +0 -1
  956. package/.next/standalone/.next/static/chunks/app/api/privacy/config/route-17ae3509caaa1354.js +0 -1
  957. package/.next/standalone/.next/static/chunks/app/api/privacy/verify/route-17ae3509caaa1354.js +0 -1
  958. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/route-17ae3509caaa1354.js +0 -1
  959. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/share-link/route-17ae3509caaa1354.js +0 -1
  960. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-17ae3509caaa1354.js +0 -1
  961. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-17ae3509caaa1354.js +0 -1
  962. package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-17ae3509caaa1354.js +0 -1
  963. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/route-17ae3509caaa1354.js +0 -1
  964. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-17ae3509caaa1354.js +0 -1
  965. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/route-17ae3509caaa1354.js +0 -1
  966. package/.next/standalone/.next/static/chunks/app/api/processes/definitions/validate/route-17ae3509caaa1354.js +0 -1
  967. package/.next/standalone/.next/static/chunks/app/api/processes/route-17ae3509caaa1354.js +0 -1
  968. package/.next/standalone/.next/static/chunks/app/api/processes/start-and-route/route-17ae3509caaa1354.js +0 -1
  969. package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/library/route-17ae3509caaa1354.js +0 -1
  970. package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/route-17ae3509caaa1354.js +0 -1
  971. package/.next/standalone/.next/static/chunks/app/api/projects/route-17ae3509caaa1354.js +0 -1
  972. package/.next/standalone/.next/static/chunks/app/api/runs/approve-claude-run/route-17ae3509caaa1354.js +0 -1
  973. package/.next/standalone/.next/static/chunks/app/api/runs/claude-code-dry-run/route-17ae3509caaa1354.js +0 -1
  974. package/.next/standalone/.next/static/chunks/app/api/runs/competitor-report/route-17ae3509caaa1354.js +0 -1
  975. package/.next/standalone/.next/static/chunks/app/api/runs/engine-ping/route-17ae3509caaa1354.js +0 -1
  976. package/.next/standalone/.next/static/chunks/app/api/runs/marketing-plan/route-17ae3509caaa1354.js +0 -1
  977. package/.next/standalone/.next/static/chunks/app/api/schedules/upsert/route-17ae3509caaa1354.js +0 -1
  978. package/.next/standalone/.next/static/chunks/app/api/secrets/[name]/route-17ae3509caaa1354.js +0 -1
  979. package/.next/standalone/.next/static/chunks/app/api/secrets/route-17ae3509caaa1354.js +0 -1
  980. package/.next/standalone/.next/static/chunks/app/api/settings/trust-mode/route-17ae3509caaa1354.js +0 -1
  981. package/.next/standalone/.next/static/chunks/app/api/share/[token]/otp/route-17ae3509caaa1354.js +0 -1
  982. package/.next/standalone/.next/static/chunks/app/api/share/[token]/route-17ae3509caaa1354.js +0 -1
  983. package/.next/standalone/.next/static/chunks/app/api/share/[token]/verify/route-17ae3509caaa1354.js +0 -1
  984. package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/otp/route-17ae3509caaa1354.js +0 -1
  985. package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/route-17ae3509caaa1354.js +0 -1
  986. package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/verify/route-17ae3509caaa1354.js +0 -1
  987. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-17ae3509caaa1354.js +0 -1
  988. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/publish/route-17ae3509caaa1354.js +0 -1
  989. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/route-17ae3509caaa1354.js +0 -1
  990. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/status/route-17ae3509caaa1354.js +0 -1
  991. package/.next/standalone/.next/static/chunks/app/api/shared/spaces/unpublish/route-17ae3509caaa1354.js +0 -1
  992. package/.next/standalone/.next/static/chunks/app/api/state/route-17ae3509caaa1354.js +0 -1
  993. package/.next/standalone/.next/static/chunks/app/api/system/update/route-17ae3509caaa1354.js +0 -1
  994. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/active-run/route-17ae3509caaa1354.js +0 -1
  995. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/attachments/route-17ae3509caaa1354.js +0 -1
  996. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-17ae3509caaa1354.js +0 -1
  997. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/route-17ae3509caaa1354.js +0 -1
  998. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checkout/route-17ae3509caaa1354.js +0 -1
  999. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/children/route-17ae3509caaa1354.js +0 -1
  1000. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/comments/route-17ae3509caaa1354.js +0 -1
  1001. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/events/route-17ae3509caaa1354.js +0 -1
  1002. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/live-runs/route-17ae3509caaa1354.js +0 -1
  1003. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/release/route-17ae3509caaa1354.js +0 -1
  1004. package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/route-17ae3509caaa1354.js +0 -1
  1005. package/.next/standalone/.next/static/chunks/app/api/tasks/route-17ae3509caaa1354.js +0 -1
  1006. package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/[id]/route-17ae3509caaa1354.js +0 -1
  1007. package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/route-17ae3509caaa1354.js +0 -1
  1008. package/.next/standalone/.next/static/chunks/app/api/tool-egress/route-17ae3509caaa1354.js +0 -1
  1009. package/.next/standalone/.next/static/chunks/app/api/tools/[name]/approve/route-17ae3509caaa1354.js +0 -1
  1010. package/.next/standalone/.next/static/chunks/app/api/tools/[name]/route-17ae3509caaa1354.js +0 -1
  1011. package/.next/standalone/.next/static/chunks/app/api/tools/route-17ae3509caaa1354.js +0 -1
  1012. package/.next/standalone/.next/static/chunks/app/api/transcripts/route-17ae3509caaa1354.js +0 -1
  1013. package/.next/standalone/.next/static/chunks/app/api/voice/providers/route-17ae3509caaa1354.js +0 -1
  1014. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/context/route-17ae3509caaa1354.js +0 -1
  1015. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/session/route-17ae3509caaa1354.js +0 -1
  1016. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tool-result/route-17ae3509caaa1354.js +0 -1
  1017. package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tools/route-17ae3509caaa1354.js +0 -1
  1018. package/.next/standalone/.next/static/chunks/app/api/voice/tts/route-17ae3509caaa1354.js +0 -1
  1019. package/.next/standalone/.next/static/chunks/app/api/whatsapp/allowlist/route-17ae3509caaa1354.js +0 -1
  1020. package/.next/standalone/.next/static/chunks/app/api/whatsapp/disconnect/route-17ae3509caaa1354.js +0 -1
  1021. package/.next/standalone/.next/static/chunks/app/api/whatsapp/messages/route-17ae3509caaa1354.js +0 -1
  1022. package/.next/standalone/.next/static/chunks/app/api/whatsapp/qr/route-17ae3509caaa1354.js +0 -1
  1023. package/.next/standalone/.next/static/chunks/app/api/whatsapp/send/route-17ae3509caaa1354.js +0 -1
  1024. package/.next/standalone/.next/static/chunks/app/api/whatsapp/status/route-17ae3509caaa1354.js +0 -1
  1025. package/.next/standalone/.next/static/chunks/app/approvals/loading-17ae3509caaa1354.js +0 -1
  1026. package/.next/standalone/.next/static/chunks/app/architecture/loading-17ae3509caaa1354.js +0 -1
  1027. package/.next/standalone/.next/static/chunks/app/audit/loading-17ae3509caaa1354.js +0 -1
  1028. package/.next/standalone/.next/static/chunks/app/brand/loading-17ae3509caaa1354.js +0 -1
  1029. package/.next/standalone/.next/static/chunks/app/disk/loading-17ae3509caaa1354.js +0 -1
  1030. package/.next/standalone/.next/static/chunks/app/federated-ai/loading-17ae3509caaa1354.js +0 -1
  1031. package/.next/standalone/.next/static/chunks/app/help/loading-17ae3509caaa1354.js +0 -1
  1032. package/.next/standalone/.next/static/chunks/app/loading-17ae3509caaa1354.js +0 -1
  1033. package/.next/standalone/.next/static/chunks/app/marketplace/loading-17ae3509caaa1354.js +0 -1
  1034. package/.next/standalone/.next/static/chunks/app/missions/loading-17ae3509caaa1354.js +0 -1
  1035. package/.next/standalone/.next/static/chunks/app/onboarding/loading-17ae3509caaa1354.js +0 -1
  1036. package/.next/standalone/.next/static/chunks/app/org/loading-17ae3509caaa1354.js +0 -1
  1037. package/.next/standalone/.next/static/chunks/app/page-9a013fdb2983cbf4.js +0 -1
  1038. package/.next/standalone/.next/static/chunks/app/projects/[slug]/loading-17ae3509caaa1354.js +0 -1
  1039. package/.next/standalone/.next/static/chunks/app/projects/loading-17ae3509caaa1354.js +0 -1
  1040. package/.next/standalone/.next/static/chunks/app/projects/page-3d7140091264933a.js +0 -1
  1041. package/.next/standalone/.next/static/chunks/app/reports/[file]/route-17ae3509caaa1354.js +0 -1
  1042. package/.next/standalone/.next/static/chunks/app/reports/loading-17ae3509caaa1354.js +0 -1
  1043. package/.next/standalone/.next/static/chunks/app/runtime/loading-17ae3509caaa1354.js +0 -1
  1044. package/.next/standalone/.next/static/chunks/app/schedules/loading-17ae3509caaa1354.js +0 -1
  1045. package/.next/standalone/.next/static/chunks/app/settings/loading-17ae3509caaa1354.js +0 -1
  1046. package/.next/standalone/.next/static/chunks/app/settings/page-17ae3509caaa1354.js +0 -1
  1047. package/.next/standalone/.next/static/chunks/app/settings/team/page-9a2e675124de6aac.js +0 -1
  1048. package/.next/standalone/.next/static/chunks/app/tasks/[id]/loading-17ae3509caaa1354.js +0 -1
  1049. package/.next/standalone/.next/static/chunks/app/tasks/loading-17ae3509caaa1354.js +0 -1
  1050. package/.next/standalone/.next/static/chunks/app/tools/loading-17ae3509caaa1354.js +0 -1
  1051. package/.next/standalone/.next/static/chunks/app/tools/page-17ae3509caaa1354.js +0 -1
  1052. package/.next/standalone/.next/static/chunks/app/whatsapp/loading-17ae3509caaa1354.js +0 -1
  1053. package/.next/standalone/.next/static/chunks/app/workflows/share/[caseId]/page-17ae3509caaa1354.js +0 -1
  1054. package/.next/standalone/.next/static/chunks/webpack-e4f2cfb4ad98f256.js +0 -1
  1055. package/.next/standalone/.next/static/css/31fb2fdadf8f1c6b.css +0 -1
  1056. package/.next/static/-FRz43s1H_LZFhx24FvnL/_buildManifest.js +0 -1
  1057. package/.next/static/chunks/3168.ed91d2d25b4aca3f.js +0 -1
  1058. package/.next/static/chunks/8217.9459315d921fdd61.js +0 -1
  1059. package/.next/static/chunks/app/activity/loading-17ae3509caaa1354.js +0 -1
  1060. package/.next/static/chunks/app/agents/[id]/loading-17ae3509caaa1354.js +0 -1
  1061. package/.next/static/chunks/app/agents/[id]/page-fd263522f6c29653.js +0 -1
  1062. package/.next/static/chunks/app/agents/loading-17ae3509caaa1354.js +0 -1
  1063. package/.next/static/chunks/app/agents/page-5860869c305cc54b.js +0 -1
  1064. package/.next/static/chunks/app/api/activity/route-17ae3509caaa1354.js +0 -1
  1065. package/.next/static/chunks/app/api/admin/audit-export/route-17ae3509caaa1354.js +0 -1
  1066. package/.next/static/chunks/app/api/admin/share-links/route-17ae3509caaa1354.js +0 -1
  1067. package/.next/static/chunks/app/api/agent-memory/route-17ae3509caaa1354.js +0 -1
  1068. package/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-17ae3509caaa1354.js +0 -1
  1069. package/.next/static/chunks/app/api/agent-runs/[id]/events/route-17ae3509caaa1354.js +0 -1
  1070. package/.next/static/chunks/app/api/agent-runs/[id]/log/route-17ae3509caaa1354.js +0 -1
  1071. package/.next/static/chunks/app/api/agent-runs/[id]/route-17ae3509caaa1354.js +0 -1
  1072. package/.next/static/chunks/app/api/agent-runs/route-17ae3509caaa1354.js +0 -1
  1073. package/.next/static/chunks/app/api/agents/[id]/active-run/route-17ae3509caaa1354.js +0 -1
  1074. package/.next/static/chunks/app/api/agents/[id]/chain/route-17ae3509caaa1354.js +0 -1
  1075. package/.next/static/chunks/app/api/agents/[id]/memory/route-17ae3509caaa1354.js +0 -1
  1076. package/.next/static/chunks/app/api/agents/[id]/reports/route-17ae3509caaa1354.js +0 -1
  1077. package/.next/static/chunks/app/api/agents/[id]/run/route-17ae3509caaa1354.js +0 -1
  1078. package/.next/static/chunks/app/api/agents/[id]/skills/route-17ae3509caaa1354.js +0 -1
  1079. package/.next/static/chunks/app/api/agents/create/route-17ae3509caaa1354.js +0 -1
  1080. package/.next/static/chunks/app/api/agents/ops/route-17ae3509caaa1354.js +0 -1
  1081. package/.next/static/chunks/app/api/approvals/[id]/route-17ae3509caaa1354.js +0 -1
  1082. package/.next/static/chunks/app/api/approvals/route-17ae3509caaa1354.js +0 -1
  1083. package/.next/static/chunks/app/api/artifacts/[id]/acl/route-17ae3509caaa1354.js +0 -1
  1084. package/.next/static/chunks/app/api/artifacts/[id]/protect/route-17ae3509caaa1354.js +0 -1
  1085. package/.next/static/chunks/app/api/artifacts/[id]/raw/route-17ae3509caaa1354.js +0 -1
  1086. package/.next/static/chunks/app/api/artifacts/[id]/route-17ae3509caaa1354.js +0 -1
  1087. package/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-17ae3509caaa1354.js +0 -1
  1088. package/.next/static/chunks/app/api/artifacts/[id]/share-link/route-17ae3509caaa1354.js +0 -1
  1089. package/.next/static/chunks/app/api/artifacts/upload/route-17ae3509caaa1354.js +0 -1
  1090. package/.next/static/chunks/app/api/audit/list/route-17ae3509caaa1354.js +0 -1
  1091. package/.next/static/chunks/app/api/audit/search/route-17ae3509caaa1354.js +0 -1
  1092. package/.next/static/chunks/app/api/auth/callback/route-17ae3509caaa1354.js +0 -1
  1093. package/.next/static/chunks/app/api/auth/config/route-17ae3509caaa1354.js +0 -1
  1094. package/.next/static/chunks/app/api/auth/join-bootstrap/route-17ae3509caaa1354.js +0 -1
  1095. package/.next/static/chunks/app/api/auth/session/route-17ae3509caaa1354.js +0 -1
  1096. package/.next/static/chunks/app/api/brand/route-17ae3509caaa1354.js +0 -1
  1097. package/.next/static/chunks/app/api/brand/share/route-17ae3509caaa1354.js +0 -1
  1098. package/.next/static/chunks/app/api/chat/sessions/[id]/route-17ae3509caaa1354.js +0 -1
  1099. package/.next/static/chunks/app/api/chat/sessions/route-17ae3509caaa1354.js +0 -1
  1100. package/.next/static/chunks/app/api/config/env/route-17ae3509caaa1354.js +0 -1
  1101. package/.next/static/chunks/app/api/config/route-17ae3509caaa1354.js +0 -1
  1102. package/.next/static/chunks/app/api/connections/[service]/route-17ae3509caaa1354.js +0 -1
  1103. package/.next/static/chunks/app/api/connections/[service]/verify/route-17ae3509caaa1354.js +0 -1
  1104. package/.next/static/chunks/app/api/connections/route-17ae3509caaa1354.js +0 -1
  1105. package/.next/static/chunks/app/api/cron/tick/route-17ae3509caaa1354.js +0 -1
  1106. package/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-17ae3509caaa1354.js +0 -1
  1107. package/.next/static/chunks/app/api/dashboard/spaces/[id]/route-17ae3509caaa1354.js +0 -1
  1108. package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-17ae3509caaa1354.js +0 -1
  1109. package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-17ae3509caaa1354.js +0 -1
  1110. package/.next/static/chunks/app/api/dashboard/spaces/import/route-17ae3509caaa1354.js +0 -1
  1111. package/.next/static/chunks/app/api/dashboard/spaces/route-17ae3509caaa1354.js +0 -1
  1112. package/.next/static/chunks/app/api/disk/files/[id]/blob/route-17ae3509caaa1354.js +0 -1
  1113. package/.next/static/chunks/app/api/disk/files/[id]/route-17ae3509caaa1354.js +0 -1
  1114. package/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-17ae3509caaa1354.js +0 -1
  1115. package/.next/static/chunks/app/api/disk/files/route-17ae3509caaa1354.js +0 -1
  1116. package/.next/static/chunks/app/api/disk/folders/route-17ae3509caaa1354.js +0 -1
  1117. package/.next/static/chunks/app/api/events/since/[cursor]/route-17ae3509caaa1354.js +0 -1
  1118. package/.next/static/chunks/app/api/events/stream/route-17ae3509caaa1354.js +0 -1
  1119. package/.next/static/chunks/app/api/fs/create-folder/route-17ae3509caaa1354.js +0 -1
  1120. package/.next/static/chunks/app/api/fs/pick-folder/route-17ae3509caaa1354.js +0 -1
  1121. package/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-17ae3509caaa1354.js +0 -1
  1122. package/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-17ae3509caaa1354.js +0 -1
  1123. package/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-17ae3509caaa1354.js +0 -1
  1124. package/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-17ae3509caaa1354.js +0 -1
  1125. package/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-17ae3509caaa1354.js +0 -1
  1126. package/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-17ae3509caaa1354.js +0 -1
  1127. package/.next/static/chunks/app/api/hail/engagements/[id]/route-17ae3509caaa1354.js +0 -1
  1128. package/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-17ae3509caaa1354.js +0 -1
  1129. package/.next/static/chunks/app/api/hail/engagements/route-17ae3509caaa1354.js +0 -1
  1130. package/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-17ae3509caaa1354.js +0 -1
  1131. package/.next/static/chunks/app/api/hail/interviews/[id]/route-17ae3509caaa1354.js +0 -1
  1132. package/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-17ae3509caaa1354.js +0 -1
  1133. package/.next/static/chunks/app/api/hail/setup-packages/validate/route-17ae3509caaa1354.js +0 -1
  1134. package/.next/static/chunks/app/api/heartbeat/tick/route-17ae3509caaa1354.js +0 -1
  1135. package/.next/static/chunks/app/api/heartbeat/worker/route-17ae3509caaa1354.js +0 -1
  1136. package/.next/static/chunks/app/api/help/route-17ae3509caaa1354.js +0 -1
  1137. package/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-17ae3509caaa1354.js +0 -1
  1138. package/.next/static/chunks/app/api/hermes/jobs/[id]/route-17ae3509caaa1354.js +0 -1
  1139. package/.next/static/chunks/app/api/hermes/jobs/route-17ae3509caaa1354.js +0 -1
  1140. package/.next/static/chunks/app/api/integrations/google/callback/route-17ae3509caaa1354.js +0 -1
  1141. package/.next/static/chunks/app/api/integrations/google/oauth/route-17ae3509caaa1354.js +0 -1
  1142. package/.next/static/chunks/app/api/marketplace/[id]/route-17ae3509caaa1354.js +0 -1
  1143. package/.next/static/chunks/app/api/marketplace/open-design/route-17ae3509caaa1354.js +0 -1
  1144. package/.next/static/chunks/app/api/marketplace/route-17ae3509caaa1354.js +0 -1
  1145. package/.next/static/chunks/app/api/mines/import-roots/route-17ae3509caaa1354.js +0 -1
  1146. package/.next/static/chunks/app/api/mines/portfolio/route-17ae3509caaa1354.js +0 -1
  1147. package/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-17ae3509caaa1354.js +0 -1
  1148. package/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-17ae3509caaa1354.js +0 -1
  1149. package/.next/static/chunks/app/api/mines/projects/[id]/import/route-17ae3509caaa1354.js +0 -1
  1150. package/.next/static/chunks/app/api/mines/projects/[id]/publish/route-17ae3509caaa1354.js +0 -1
  1151. package/.next/static/chunks/app/api/mines/projects/route-17ae3509caaa1354.js +0 -1
  1152. package/.next/static/chunks/app/api/missions/route-17ae3509caaa1354.js +0 -1
  1153. package/.next/static/chunks/app/api/models/route-17ae3509caaa1354.js +0 -1
  1154. package/.next/static/chunks/app/api/onboarding/blueprint/route-17ae3509caaa1354.js +0 -1
  1155. package/.next/static/chunks/app/api/onboarding/launch/route-17ae3509caaa1354.js +0 -1
  1156. package/.next/static/chunks/app/api/orchestrator/command/route-17ae3509caaa1354.js +0 -1
  1157. package/.next/static/chunks/app/api/orchestrator/stream/route-17ae3509caaa1354.js +0 -1
  1158. package/.next/static/chunks/app/api/orchestrator/upload/route-17ae3509caaa1354.js +0 -1
  1159. package/.next/static/chunks/app/api/org/route-17ae3509caaa1354.js +0 -1
  1160. package/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-17ae3509caaa1354.js +0 -1
  1161. package/.next/static/chunks/app/api/orgs/[id]/invites/route-17ae3509caaa1354.js +0 -1
  1162. package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-17ae3509caaa1354.js +0 -1
  1163. package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-17ae3509caaa1354.js +0 -1
  1164. package/.next/static/chunks/app/api/orgs/[id]/members/route-17ae3509caaa1354.js +0 -1
  1165. package/.next/static/chunks/app/api/orgs/[id]/route-17ae3509caaa1354.js +0 -1
  1166. package/.next/static/chunks/app/api/orgs/invites/pending/route-17ae3509caaa1354.js +0 -1
  1167. package/.next/static/chunks/app/api/orgs/join/route-17ae3509caaa1354.js +0 -1
  1168. package/.next/static/chunks/app/api/orgs/join-complete/route-17ae3509caaa1354.js +0 -1
  1169. package/.next/static/chunks/app/api/orgs/route-17ae3509caaa1354.js +0 -1
  1170. package/.next/static/chunks/app/api/printing-press/clis/route-17ae3509caaa1354.js +0 -1
  1171. package/.next/static/chunks/app/api/printing-press/install/route-17ae3509caaa1354.js +0 -1
  1172. package/.next/static/chunks/app/api/printing-press/security-mode/route-17ae3509caaa1354.js +0 -1
  1173. package/.next/static/chunks/app/api/privacy/config/route-17ae3509caaa1354.js +0 -1
  1174. package/.next/static/chunks/app/api/privacy/verify/route-17ae3509caaa1354.js +0 -1
  1175. package/.next/static/chunks/app/api/processes/[id]/route-17ae3509caaa1354.js +0 -1
  1176. package/.next/static/chunks/app/api/processes/[id]/share-link/route-17ae3509caaa1354.js +0 -1
  1177. package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-17ae3509caaa1354.js +0 -1
  1178. package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-17ae3509caaa1354.js +0 -1
  1179. package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-17ae3509caaa1354.js +0 -1
  1180. package/.next/static/chunks/app/api/processes/definitions/[slug]/route-17ae3509caaa1354.js +0 -1
  1181. package/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-17ae3509caaa1354.js +0 -1
  1182. package/.next/static/chunks/app/api/processes/definitions/route-17ae3509caaa1354.js +0 -1
  1183. package/.next/static/chunks/app/api/processes/definitions/validate/route-17ae3509caaa1354.js +0 -1
  1184. package/.next/static/chunks/app/api/processes/route-17ae3509caaa1354.js +0 -1
  1185. package/.next/static/chunks/app/api/processes/start-and-route/route-17ae3509caaa1354.js +0 -1
  1186. package/.next/static/chunks/app/api/projects/[slug]/library/route-17ae3509caaa1354.js +0 -1
  1187. package/.next/static/chunks/app/api/projects/[slug]/route-17ae3509caaa1354.js +0 -1
  1188. package/.next/static/chunks/app/api/projects/route-17ae3509caaa1354.js +0 -1
  1189. package/.next/static/chunks/app/api/runs/approve-claude-run/route-17ae3509caaa1354.js +0 -1
  1190. package/.next/static/chunks/app/api/runs/claude-code-dry-run/route-17ae3509caaa1354.js +0 -1
  1191. package/.next/static/chunks/app/api/runs/competitor-report/route-17ae3509caaa1354.js +0 -1
  1192. package/.next/static/chunks/app/api/runs/engine-ping/route-17ae3509caaa1354.js +0 -1
  1193. package/.next/static/chunks/app/api/runs/marketing-plan/route-17ae3509caaa1354.js +0 -1
  1194. package/.next/static/chunks/app/api/schedules/upsert/route-17ae3509caaa1354.js +0 -1
  1195. package/.next/static/chunks/app/api/secrets/[name]/route-17ae3509caaa1354.js +0 -1
  1196. package/.next/static/chunks/app/api/secrets/route-17ae3509caaa1354.js +0 -1
  1197. package/.next/static/chunks/app/api/settings/trust-mode/route-17ae3509caaa1354.js +0 -1
  1198. package/.next/static/chunks/app/api/share/[token]/otp/route-17ae3509caaa1354.js +0 -1
  1199. package/.next/static/chunks/app/api/share/[token]/route-17ae3509caaa1354.js +0 -1
  1200. package/.next/static/chunks/app/api/share/[token]/verify/route-17ae3509caaa1354.js +0 -1
  1201. package/.next/static/chunks/app/api/share/space/[token]/otp/route-17ae3509caaa1354.js +0 -1
  1202. package/.next/static/chunks/app/api/share/space/[token]/route-17ae3509caaa1354.js +0 -1
  1203. package/.next/static/chunks/app/api/share/space/[token]/verify/route-17ae3509caaa1354.js +0 -1
  1204. package/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-17ae3509caaa1354.js +0 -1
  1205. package/.next/static/chunks/app/api/shared/spaces/publish/route-17ae3509caaa1354.js +0 -1
  1206. package/.next/static/chunks/app/api/shared/spaces/route-17ae3509caaa1354.js +0 -1
  1207. package/.next/static/chunks/app/api/shared/spaces/status/route-17ae3509caaa1354.js +0 -1
  1208. package/.next/static/chunks/app/api/shared/spaces/unpublish/route-17ae3509caaa1354.js +0 -1
  1209. package/.next/static/chunks/app/api/state/route-17ae3509caaa1354.js +0 -1
  1210. package/.next/static/chunks/app/api/system/update/route-17ae3509caaa1354.js +0 -1
  1211. package/.next/static/chunks/app/api/tasks/[id]/active-run/route-17ae3509caaa1354.js +0 -1
  1212. package/.next/static/chunks/app/api/tasks/[id]/attachments/route-17ae3509caaa1354.js +0 -1
  1213. package/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-17ae3509caaa1354.js +0 -1
  1214. package/.next/static/chunks/app/api/tasks/[id]/checklist/route-17ae3509caaa1354.js +0 -1
  1215. package/.next/static/chunks/app/api/tasks/[id]/checkout/route-17ae3509caaa1354.js +0 -1
  1216. package/.next/static/chunks/app/api/tasks/[id]/children/route-17ae3509caaa1354.js +0 -1
  1217. package/.next/static/chunks/app/api/tasks/[id]/comments/route-17ae3509caaa1354.js +0 -1
  1218. package/.next/static/chunks/app/api/tasks/[id]/events/route-17ae3509caaa1354.js +0 -1
  1219. package/.next/static/chunks/app/api/tasks/[id]/live-runs/route-17ae3509caaa1354.js +0 -1
  1220. package/.next/static/chunks/app/api/tasks/[id]/release/route-17ae3509caaa1354.js +0 -1
  1221. package/.next/static/chunks/app/api/tasks/[id]/route-17ae3509caaa1354.js +0 -1
  1222. package/.next/static/chunks/app/api/tasks/route-17ae3509caaa1354.js +0 -1
  1223. package/.next/static/chunks/app/api/tool-allowlists/[id]/route-17ae3509caaa1354.js +0 -1
  1224. package/.next/static/chunks/app/api/tool-allowlists/route-17ae3509caaa1354.js +0 -1
  1225. package/.next/static/chunks/app/api/tool-egress/route-17ae3509caaa1354.js +0 -1
  1226. package/.next/static/chunks/app/api/tools/[name]/approve/route-17ae3509caaa1354.js +0 -1
  1227. package/.next/static/chunks/app/api/tools/[name]/route-17ae3509caaa1354.js +0 -1
  1228. package/.next/static/chunks/app/api/tools/route-17ae3509caaa1354.js +0 -1
  1229. package/.next/static/chunks/app/api/transcripts/route-17ae3509caaa1354.js +0 -1
  1230. package/.next/static/chunks/app/api/voice/providers/route-17ae3509caaa1354.js +0 -1
  1231. package/.next/static/chunks/app/api/voice/realtime/context/route-17ae3509caaa1354.js +0 -1
  1232. package/.next/static/chunks/app/api/voice/realtime/session/route-17ae3509caaa1354.js +0 -1
  1233. package/.next/static/chunks/app/api/voice/realtime/tool-result/route-17ae3509caaa1354.js +0 -1
  1234. package/.next/static/chunks/app/api/voice/realtime/tools/route-17ae3509caaa1354.js +0 -1
  1235. package/.next/static/chunks/app/api/voice/tts/route-17ae3509caaa1354.js +0 -1
  1236. package/.next/static/chunks/app/api/whatsapp/allowlist/route-17ae3509caaa1354.js +0 -1
  1237. package/.next/static/chunks/app/api/whatsapp/disconnect/route-17ae3509caaa1354.js +0 -1
  1238. package/.next/static/chunks/app/api/whatsapp/messages/route-17ae3509caaa1354.js +0 -1
  1239. package/.next/static/chunks/app/api/whatsapp/qr/route-17ae3509caaa1354.js +0 -1
  1240. package/.next/static/chunks/app/api/whatsapp/send/route-17ae3509caaa1354.js +0 -1
  1241. package/.next/static/chunks/app/api/whatsapp/status/route-17ae3509caaa1354.js +0 -1
  1242. package/.next/static/chunks/app/approvals/loading-17ae3509caaa1354.js +0 -1
  1243. package/.next/static/chunks/app/architecture/loading-17ae3509caaa1354.js +0 -1
  1244. package/.next/static/chunks/app/audit/loading-17ae3509caaa1354.js +0 -1
  1245. package/.next/static/chunks/app/brand/loading-17ae3509caaa1354.js +0 -1
  1246. package/.next/static/chunks/app/disk/loading-17ae3509caaa1354.js +0 -1
  1247. package/.next/static/chunks/app/federated-ai/loading-17ae3509caaa1354.js +0 -1
  1248. package/.next/static/chunks/app/help/loading-17ae3509caaa1354.js +0 -1
  1249. package/.next/static/chunks/app/loading-17ae3509caaa1354.js +0 -1
  1250. package/.next/static/chunks/app/marketplace/loading-17ae3509caaa1354.js +0 -1
  1251. package/.next/static/chunks/app/missions/loading-17ae3509caaa1354.js +0 -1
  1252. package/.next/static/chunks/app/onboarding/loading-17ae3509caaa1354.js +0 -1
  1253. package/.next/static/chunks/app/org/loading-17ae3509caaa1354.js +0 -1
  1254. package/.next/static/chunks/app/page-9a013fdb2983cbf4.js +0 -1
  1255. package/.next/static/chunks/app/projects/[slug]/loading-17ae3509caaa1354.js +0 -1
  1256. package/.next/static/chunks/app/projects/loading-17ae3509caaa1354.js +0 -1
  1257. package/.next/static/chunks/app/projects/page-3d7140091264933a.js +0 -1
  1258. package/.next/static/chunks/app/reports/[file]/route-17ae3509caaa1354.js +0 -1
  1259. package/.next/static/chunks/app/reports/loading-17ae3509caaa1354.js +0 -1
  1260. package/.next/static/chunks/app/runtime/loading-17ae3509caaa1354.js +0 -1
  1261. package/.next/static/chunks/app/schedules/loading-17ae3509caaa1354.js +0 -1
  1262. package/.next/static/chunks/app/settings/loading-17ae3509caaa1354.js +0 -1
  1263. package/.next/static/chunks/app/settings/page-17ae3509caaa1354.js +0 -1
  1264. package/.next/static/chunks/app/settings/team/page-9a2e675124de6aac.js +0 -1
  1265. package/.next/static/chunks/app/tasks/[id]/loading-17ae3509caaa1354.js +0 -1
  1266. package/.next/static/chunks/app/tasks/loading-17ae3509caaa1354.js +0 -1
  1267. package/.next/static/chunks/app/tools/loading-17ae3509caaa1354.js +0 -1
  1268. package/.next/static/chunks/app/tools/page-17ae3509caaa1354.js +0 -1
  1269. package/.next/static/chunks/app/whatsapp/loading-17ae3509caaa1354.js +0 -1
  1270. package/.next/static/chunks/app/workflows/share/[caseId]/page-17ae3509caaa1354.js +0 -1
  1271. package/.next/static/chunks/webpack-e4f2cfb4ad98f256.js +0 -1
  1272. package/.next/static/css/31fb2fdadf8f1c6b.css +0 -1
  1273. /package/.next/standalone/.next/static/{-FRz43s1H_LZFhx24FvnL → mu47BRCkKEvvz6S5ipLGz}/_ssgManifest.js +0 -0
  1274. /package/.next/static/{-FRz43s1H_LZFhx24FvnL → mu47BRCkKEvvz6S5ipLGz}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[802],{45:(e,a,t)=>{"use strict";t.d(a,{default:()=>r});var s=t(12115),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},i=t(64250);let l=(0,s.createContext)({}),r=(0,s.forwardRef)((e,a)=>{var t,r,c;let{color:o,size:d,strokeWidth:h,absoluteStrokeWidth:u,className:m="",children:p,iconNode:x,...y}=e,{size:j=24,strokeWidth:b=2,absoluteStrokeWidth:g=!1,color:v="currentColor",className:f=""}=null!=(t=(0,s.useContext)(l))?t:{},k=(null!=u?u:g)?24*Number(null!=h?h:b)/Number(null!=d?d:j):null!=h?h:b;return(0,s.createElement)("svg",{ref:a,...n,width:null!=(r=null!=d?d:j)?r:n.width,height:null!=(c=null!=d?d:j)?c:n.height,stroke:null!=o?o:v,strokeWidth:k,className:(0,i.z)("lucide",f,m),...!p&&!(e=>{for(let a in e)if(a.startsWith("aria-")||"role"===a||"title"===a)return!0;return!1})(y)&&{"aria-hidden":"true"},...y},[...x.map(e=>{let[a,t]=e;return(0,s.createElement)(a,t)}),...Array.isArray(p)?p:[p]])})},6710:(e,a,t)=>{Promise.resolve().then(t.bind(t,10677)),Promise.resolve().then(t.bind(t,31062))},10677:(e,a,t)=>{"use strict";t.d(a,{default:()=>i});var s=t(95155),n=t(12115);function i(){let[e,a]=(0,n.useState)([]),[t,i]=(0,n.useState)("");return(0,n.useEffect)(()=>{i(localStorage.getItem("madarx.activeProjectId")||""),fetch("/api/projects").then(e=>e.json()).then(e=>a(e.projects||[])).catch(()=>{})},[]),(0,s.jsx)("div",{className:"project-switcher","data-project-switcher":!0,children:(0,s.jsxs)("select",{value:t,onChange:e=>{var a;i(a=e.target.value),a?localStorage.setItem("madarx.activeProjectId",a):localStorage.removeItem("madarx.activeProjectId"),window.dispatchEvent(new CustomEvent("madarx:project-change",{detail:{project_id:a||null}}))},"aria-label":"Active project",children:[(0,s.jsx)("option",{value:"",children:"All projects"}),e.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})})}},13185:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(12115),n=t(64250);let i=e=>{let a=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,a,t)=>t?t.toUpperCase():a.toLowerCase());return a.charAt(0).toUpperCase()+a.slice(1)};var l=t(45);let r=(e,a)=>{let t=(0,s.forwardRef)((t,r)=>{let{className:c,...o}=t;return(0,s.createElement)(l.default,{ref:r,iconNode:a,className:(0,n.z)("lucide-".concat(i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),c),...o})});return t.displayName=i(e),t}},25352:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(13185).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},31062:(e,a,t)=>{"use strict";t.d(a,{default:()=>v});var s=t(95155),n=t(12115),i=t(13185);let l=(0,i.A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),r=(0,i.A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);var c=t(34227);let o=(0,i.A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);var d=t(25352);let h=(0,i.A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),u=(0,i.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var m=t(84107),p=t(67081);let x=(0,i.A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);var y=t(44626);let j=[{key:"connect",label:"Connect Supabase",hint:"Project + keys",Icon:l},{key:"tables",label:"Build the tables",hint:"Shared-layer schema",Icon:r},{key:"org",label:"Create organization",hint:"Name your team",Icon:c.A},{key:"invite",label:"Invite teammates",hint:"Share one link",Icon:o}];function b(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60)||"org"}function g(e){let{banner:a}=e;if(!a)return null;let t={ok:{bg:"rgba(34,139,84,.10)",fg:"#1d7a47",bd:"rgba(34,139,84,.25)"},err:{bg:"rgba(194,69,42,.08)",fg:"#a8331c",bd:"rgba(194,69,42,.22)"},info:{bg:"rgba(20,22,26,.05)",fg:"#3a3f47",bd:"rgba(20,22,26,.12)"}},n=t[a.tone]||t.info;return(0,s.jsx)("div",{style:{background:n.bg,color:n.fg,border:"1px solid ".concat(n.bd),padding:"0.6rem 0.8rem",borderRadius:10,fontSize:"0.85em"},children:a.text})}function v(e){var a,t,i,l;let{initial:r}=e,[c,o]=(0,n.useState)(()=>r.cloudReady?r.existingOrg?3:1:0),[v,f]=(0,n.useState)(r.url||""),[k,w]=(0,n.useState)(r.anonKey||""),[z,N]=(0,n.useState)(""),[S,C]=(0,n.useState)(!!r.serviceKeySet),[A,M]=(0,n.useState)(r.publicBaseUrl||""),[T,F]=(0,n.useState)(!!r.cloudReady),[O,E]=(0,n.useState)(!1),[L,_]=(0,n.useState)(!1),[R,U]=(0,n.useState)(null),[I,W]=(0,n.useState)(null),[q,P]=(0,n.useState)(!1),[V,K]=(0,n.useState)(!1),[Q,B]=(0,n.useState)(!1),[H,Y]=(0,n.useState)(""),[G,D]=(0,n.useState)(!1),[J,X]=(0,n.useState)(null),[Z,$]=(0,n.useState)((null==(a=r.existingOrg)?void 0:a.name)||"MadarX"),[ee,ea]=(0,n.useState)(!1),[et,es]=(0,n.useState)(r.existingOrg||null),[en,ei]=(0,n.useState)(null),[el,er]=(0,n.useState)(!1),[ec,eo]=(0,n.useState)(""),[ed,eh]=(0,n.useState)(!1),[eu,em]=(0,n.useState)(null),[ep,ex]=(0,n.useState)(!1),ey={connect:T,tables:!!(null==I?void 0:I.ready),org:!!et,invite:!!ec};async function ej(e,a){let t=await fetch(e,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(a)}),s=await t.json().catch(()=>({}));return{status:t.status,data:s}}let eb=(0,n.useCallback)(async()=>{P(!0);try{let e=await fetch("/api/cloud/schema"),a=await e.json().catch(()=>({}));a.ok&&W(a)}catch(e){}finally{P(!1)}},[]);async function eg(){U(null),E(!0);try{var e;let{data:a}=await ej("/api/auth/config",{action:"test",url:v,anonKey:k});U(a.ok?{tone:"ok",text:"Reachable — Supabase project responded."}:{tone:"err",text:"Connection failed: ".concat((null==(e=a.test)?void 0:e.error)||a.error||"unreachable",".")})}catch(e){U({tone:"err",text:"Could not reach the server to run the test."})}finally{E(!1)}}async function ev(){U(null),_(!0);try{let e={action:"save"};v&&(e.url=v),k&&(e.anonKey=k),z&&(e.serviceKey=z),e.publicBaseUrl=A.trim();let{status:a,data:t}=await ej("/api/auth/config",e);if(!t.ok)return void U({tone:"err",text:403===a?"Not allowed — owner/admin only.":"Save failed: ".concat(t.error||"unknown error",".")});z&&C(!0);let s=!!((v||r.url)&&(k||r.anonKey)&&(z||S));F(s),U({tone:"ok",text:s?"Connected. Standing up the tables next…":"Saved. Add a service-role key to enable cloud sync."}),s&&(W(null),setTimeout(()=>o(1),500))}catch(e){U({tone:"err",text:"Could not reach the server to save."})}finally{_(!1)}}async function ef(){X(null),P(!0);try{let{data:s}=await ej("/api/cloud/schema",{action:"verify"});if(s.ok){var e,a,t;W(e=>({...e,...s})),X(s.ready?{tone:"ok",text:"All tables present. You’re ready to create the org."}:{tone:"info",text:"".concat(null!=(a=null==(e=s.present)?void 0:e.length)?a:0," of ").concat(null!=(t=s.total)?t:"?"," tables present. Run the SQL, then verify again.")})}}catch(e){X({tone:"err",text:"Verify failed — try again."})}finally{P(!1)}}async function ek(){try{await navigator.clipboard.writeText((null==I?void 0:I.schemaSql)||""),K(!0),setTimeout(()=>K(!1),1800)}catch(e){X({tone:"err",text:"Clipboard blocked — select the SQL manually below."})}}async function ew(){X(null),D(!0);try{let{status:e,data:a}=await ej("/api/cloud/schema",{action:"apply",accessToken:H});a.ok?(W(e=>({...e,...a})),Y(""),X({tone:"ok",text:a.ready?"Applied — all tables created.":"Applied. Verifying…"})):X({tone:"err",text:{unauthorized_token:"That access token was rejected. Generate one at supabase.com/dashboard/account/tokens.",no_project_ref:"Could not determine the project ref from the saved URL.",invalid_access_token:"Enter a valid Supabase personal access token."}[a.error]||"Apply failed (".concat(e,").")})}catch(e){X({tone:"err",text:"Could not reach the server to apply."})}finally{D(!1)}}async function ez(){ei(null),ea(!0);try{let e=b(Z),{status:a,data:t}=await ej("/api/orgs",{name:Z.trim(),slug:e});201===a&&t.org?(es({id:t.org.id,name:t.org.name,slug:t.org.slug}),ei({tone:"ok",text:"“".concat(t.org.name,"” created. Invite your team next.")}),setTimeout(()=>o(3),500)):409===a?ei({tone:"err",text:"An org with that name already exists — pick another."}):ei({tone:"err",text:t.error||"Could not create the organization."})}catch(e){ei({tone:"err",text:"Could not reach the server."})}finally{ea(!1)}}async function eN(){if(et){em(null),er(!0);try{let{status:e,data:a}=await ej("/api/orgs/".concat(et.id,"/invites"),{role:"member"});if(201===e&&(a.joinUrl||a.joinPath||a.token)){let e=a.joinUrl?a.joinUrl:a.joinPath?"".concat(window.location.origin).concat(a.joinPath):a.token;eo(e)}else em({tone:"err",text:a.message||a.error||"Could not create an invite."})}catch(e){em({tone:"err",text:"Could not reach the server."})}finally{er(!1)}}}async function eS(){try{await navigator.clipboard.writeText(ec),eh(!0),setTimeout(()=>eh(!1),1800)}catch(e){}}async function eC(){em(null),ex(!0);try{let{status:a,data:t}=await ej("/api/auth/config",{action:"save",mode:"supabase",url:v,anonKey:k});if(422===a){var e;em({tone:"err",text:"Cannot enable sign-in — connection test failed: ".concat((null==(e=t.test)?void 0:e.error)||"unreachable",".")});return}if(!t.ok)return void em({tone:"err",text:t.error||"Could not enable team sign-in."});em({tone:"info",text:"Team sign-in enabled — redirecting you to sign in…"}),setTimeout(()=>window.location.assign("/login"),900)}catch(e){em({tone:"err",text:"Could not reach the server."})}finally{ex(!1)}}return(0,n.useEffect)(()=>{1!==c||!T||I||q||eb()},[c,T,I,q,eb]),(0,s.jsxs)("div",{className:"wiz",children:[(0,s.jsx)("ol",{className:"wiz-rail",children:j.map((e,a)=>{let t=ey[e.key]?"done":c===a?"active":"idle",{Icon:n}=e;return(0,s.jsxs)("li",{children:[(0,s.jsxs)("button",{type:"button",className:"wiz-step is-".concat(t),onClick:()=>o(a),children:[(0,s.jsx)("span",{className:"wiz-step-dot",children:ey[e.key]?(0,s.jsx)(d.A,{size:15,strokeWidth:2.5}):(0,s.jsx)(n,{size:15,strokeWidth:2})}),(0,s.jsxs)("span",{className:"wiz-step-text",children:[(0,s.jsx)("b",{children:e.label}),(0,s.jsx)("small",{children:e.hint})]})]}),a<j.length-1?(0,s.jsx)("span",{className:"wiz-conn ".concat(ey[e.key]?"is-done":"")}):null]},e.key)})}),(0,s.jsxs)("div",{className:"wiz-panel admin-panel",children:[0===c?(0,s.jsxs)("section",{className:"wiz-body",children:[(0,s.jsxs)("header",{className:"wiz-head",children:[(0,s.jsx)("h3",{children:"Connect your Supabase project"}),(0,s.jsx)("p",{children:"Paste your project URL (or just the project ref) and keys. They’re stored encrypted in the local vault and never returned to the browser."})]}),(0,s.jsxs)("div",{className:"wiz-fields",children:[(0,s.jsxs)("label",{className:"admin-field",children:[(0,s.jsx)("span",{children:"Supabase project URL or ref"}),(0,s.jsx)("input",{className:"admin-input",type:"text",placeholder:"https://YOUR-REF.supabase.co \xb7 or just YOUR-REF",value:v,onChange:e=>f(e.target.value),autoComplete:"off"})]}),(0,s.jsxs)("label",{className:"admin-field",children:[(0,s.jsx)("span",{children:"Anon (public) key"}),(0,s.jsx)("input",{className:"admin-input",type:"text",placeholder:"eyJhbGciOi…",value:k,onChange:e=>w(e.target.value),autoComplete:"off"})]}),(0,s.jsxs)("label",{className:"admin-field",children:[(0,s.jsxs)("span",{children:["Service-role key ",S?(0,s.jsx)("em",{style:{color:"#1d7a47",fontStyle:"normal"},children:"\xb7 set"}):null]}),(0,s.jsx)("input",{className:"admin-input",type:"password",placeholder:S?"•••••••• (leave blank to keep)":"eyJhbGciOi… (powers cloud sync)",value:z,onChange:e=>N(e.target.value),autoComplete:"off"})]}),(0,s.jsxs)("label",{className:"admin-field",children:[(0,s.jsxs)("span",{children:["Public app URL ",(0,s.jsx)("em",{style:{color:"#9aa1ac",fontStyle:"normal",fontWeight:600},children:"\xb7 for invite & share links"})]}),(0,s.jsx)("input",{className:"admin-input",type:"url",placeholder:"https://madarx.io (leave blank to use this address)",value:A,onChange:e=>M(e.target.value),autoComplete:"off"})]}),(0,s.jsxs)("p",{className:"admin-muted",style:{fontSize:".78em",margin:0},children:["Where teammates reach this app. Invite and share links use it, so a recipient on another machine doesn’t get a ",(0,s.jsx)("code",{children:"localhost"})," link."]})]}),(0,s.jsx)(g,{banner:R}),(0,s.jsxs)("div",{className:"wiz-actions",children:[(0,s.jsx)("button",{type:"button",className:"admin-btn-sm",onClick:eg,disabled:O||L||!v||!k,children:O?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:14,className:"wiz-spin"})," Testing…"]}):"Test connection"}),(0,s.jsx)("button",{type:"button",className:"admin-btn-primary",onClick:ev,disabled:L||O||!v&&!r.url||!k&&!r.anonKey,children:L?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:14,className:"wiz-spin"})," Saving…"]}):(0,s.jsxs)(s.Fragment,{children:["Save & continue ",(0,s.jsx)(u,{size:15})]})})]})]}):null,1===c?(0,s.jsxs)("section",{className:"wiz-body",children:[(0,s.jsxs)("header",{className:"wiz-head",children:[(0,s.jsx)("h3",{children:"Build the shared-layer tables"}),(0,s.jsx)("p",{children:"These tables hold orgs, members, invites, and shared metadata. Creating tables needs database privileges the app keys don’t have — so run the SQL once in your project, or apply it automatically."})]}),T?q&&!I?(0,s.jsxs)("div",{className:"wiz-loading",children:[(0,s.jsx)(h,{size:16,className:"wiz-spin"})," Checking your project…"]}):(null==I?void 0:I.configured)===!1?(0,s.jsx)(g,{banner:{tone:"err",text:"Service-role key missing — go back to step 1 and add it so we can read your schema."}}):I?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"wiz-schema-status ".concat(I.ready?"is-ready":"is-partial"),children:[(0,s.jsx)("span",{className:"wiz-schema-icon",children:I.ready?(0,s.jsx)(d.A,{size:16,strokeWidth:2.5}):(0,s.jsx)(m.A,{size:16,strokeWidth:2})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("b",{children:I.ready?"All tables present":"".concat(null!=(l=null==(t=I.present)?void 0:t.length)?l:0," of ").concat(I.total," tables present")}),(0,s.jsx)("small",{children:I.ready?"Your shared layer is ready.":"Missing: ".concat((I.missing||[]).join(", "))})]})]}),I.ready?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"wiz-apply",children:[(0,s.jsxs)("div",{className:"wiz-apply-head",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"1."})," Open your SQL editor and run the schema"]}),(0,s.jsxs)("div",{className:"wiz-apply-btns",children:[(0,s.jsx)("button",{type:"button",className:"admin-btn-sm",onClick:ek,children:V?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{size:14})," Copied"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{size:14})," Copy SQL"]})}),I.sqlEditorUrl?(0,s.jsxs)("a",{className:"admin-btn-sm",href:I.sqlEditorUrl,target:"_blank",rel:"noreferrer",children:[(0,s.jsx)(x,{size:14})," Open SQL editor"]}):null]})]}),(0,s.jsxs)("details",{className:"wiz-sql",children:[(0,s.jsxs)("summary",{children:["Preview SQL (",Math.round(((null==(i=I.schemaSql)?void 0:i.length)||0)/1024)," KB \xb7 idempotent)"]}),(0,s.jsx)("pre",{className:"wiz-sql-pre",children:I.schemaSql})]})]}),(0,s.jsx)("div",{className:"wiz-apply",children:(0,s.jsxs)("div",{className:"wiz-apply-head",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"2."})," Then verify"]}),(0,s.jsx)("button",{type:"button",className:"admin-btn-primary",onClick:ef,disabled:q,children:q?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:14,className:"wiz-spin"})," Verifying…"]}):"Verify tables"})]})}),(0,s.jsx)("button",{type:"button",className:"wiz-link",onClick:()=>B(e=>!e),children:Q?"− Hide one-click apply":"+ Apply automatically (advanced)"}),Q?(0,s.jsxs)("div",{className:"wiz-apply wiz-advanced",children:[(0,s.jsxs)("p",{className:"admin-muted",style:{margin:"0 0 .5rem",fontSize:".82em"},children:["Paste a Supabase ",(0,s.jsx)("a",{href:"https://supabase.com/dashboard/account/tokens",target:"_blank",rel:"noreferrer",children:"personal access token"}),". We use it for this one request and never store it."]}),(0,s.jsxs)("div",{className:"wiz-actions",style:{marginTop:0},children:[(0,s.jsx)("input",{className:"admin-input",type:"password",placeholder:"sbp_…",value:H,onChange:e=>Y(e.target.value),autoComplete:"off",style:{flex:1,minWidth:180}}),(0,s.jsx)("button",{type:"button",className:"admin-btn-sm",onClick:ew,disabled:G||H.trim().length<20,children:G?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:14,className:"wiz-spin"})," Applying…"]}):"Apply now"})]})]}):null]}),(0,s.jsx)(g,{banner:J}),I.ready?(0,s.jsx)("div",{className:"wiz-actions",children:(0,s.jsxs)("button",{type:"button",className:"admin-btn-primary",onClick:()=>o(2),children:["Continue ",(0,s.jsx)(u,{size:15})]})}):null]}):(0,s.jsx)("div",{className:"wiz-actions",children:(0,s.jsx)("button",{type:"button",className:"admin-btn-sm",onClick:eb,children:"Check project"})}):(0,s.jsx)(g,{banner:{tone:"info",text:"Connect Supabase first (step 1) so we can check your project."}})]}):null,2===c?(0,s.jsxs)("section",{className:"wiz-body",children:[(0,s.jsxs)("header",{className:"wiz-head",children:[(0,s.jsx)("h3",{children:"Create your organization"}),(0,s.jsx)("p",{children:"This is the shared space your teammates join. You’ll be the owner."})]}),et?(0,s.jsxs)("div",{className:"wiz-schema-status is-ready",children:[(0,s.jsx)("span",{className:"wiz-schema-icon",children:(0,s.jsx)(d.A,{size:16,strokeWidth:2.5})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("b",{children:et.name}),(0,s.jsxs)("small",{children:["Org ID ",(0,s.jsx)("code",{className:"mono",children:et.id})," \xb7 slug ",(0,s.jsx)("code",{className:"mono",children:et.slug})]})]})]}):(0,s.jsxs)("div",{className:"wiz-fields",children:[(0,s.jsxs)("label",{className:"admin-field",children:[(0,s.jsx)("span",{children:"Organization name"}),(0,s.jsx)("input",{className:"admin-input",type:"text",placeholder:"MadarX",value:Z,onChange:e=>$(e.target.value)})]}),(0,s.jsxs)("p",{className:"admin-muted",style:{fontSize:".8em",margin:0},children:["Slug: ",(0,s.jsx)("code",{className:"mono",children:b(Z)})]})]}),(0,s.jsx)(g,{banner:en}),(0,s.jsx)("div",{className:"wiz-actions",children:et?(0,s.jsxs)("button",{type:"button",className:"admin-btn-primary",onClick:()=>o(3),children:["Continue ",(0,s.jsx)(u,{size:15})]}):(0,s.jsx)("button",{type:"button",className:"admin-btn-primary",onClick:ez,disabled:ee||!Z.trim(),children:ee?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:14,className:"wiz-spin"})," Creating…"]}):(0,s.jsxs)(s.Fragment,{children:["Create organization ",(0,s.jsx)(u,{size:15})]})})})]}):null,3===c?(0,s.jsxs)("section",{className:"wiz-body",children:[(0,s.jsxs)("header",{className:"wiz-head",children:[(0,s.jsx)("h3",{children:"Invite your teammates"}),(0,s.jsxs)("p",{children:["Share one link. They sign in and join ",et?"“".concat(et.name,"”"):"your org"," automatically — no codes to copy."]})]}),et?(0,s.jsxs)(s.Fragment,{children:[ec?(0,s.jsxs)("div",{className:"wiz-invite",children:[(0,s.jsx)("input",{className:"admin-input mono",readOnly:!0,value:ec,onFocus:e=>e.target.select()}),(0,s.jsx)("button",{type:"button",className:"admin-btn-sm",onClick:eS,children:ed?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{size:14})," Copied"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{size:14})," Copy link"]})})]}):(0,s.jsx)("div",{className:"wiz-actions",style:{marginTop:0},children:(0,s.jsx)("button",{type:"button",className:"admin-btn-primary",onClick:eN,disabled:el,children:el?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:14,className:"wiz-spin"})," Generating…"]}):(0,s.jsx)(s.Fragment,{children:"Generate invite link"})})}),(0,s.jsx)(g,{banner:eu}),(0,s.jsxs)("div",{className:"wiz-finish",children:[(0,s.jsxs)("div",{className:"wiz-finish-row",children:[(0,s.jsx)(y.A,{size:18,strokeWidth:1.75}),(0,s.jsxs)("div",{children:[(0,s.jsx)("b",{children:"Turn on team sign-in"}),(0,s.jsx)("small",{children:"supabase"===r.authMode?"Already enabled — teammates can sign in now.":"Switch auth to Supabase so teammates sign in with their own accounts. You’ll be redirected to sign in."})]}),"supabase"===r.authMode?(0,s.jsx)("span",{className:"wiz-pill is-ready",children:"On"}):(0,s.jsx)("button",{type:"button",className:"admin-btn-sm",onClick:eC,disabled:ep||r.envLocked||!v||!k,children:ep?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:14,className:"wiz-spin"})," Enabling…"]}):"Enable"})]}),r.envLocked?(0,s.jsxs)("p",{className:"admin-muted",style:{fontSize:".78em",margin:".5rem 0 0"},children:["Auth mode is locked by ",(0,s.jsx)("code",{children:"MADARX_AUTH_MODE"}),"; unset it to switch here."]}):null]}),(0,s.jsx)("div",{className:"wiz-actions",children:(0,s.jsxs)("a",{className:"admin-btn-sm",href:"/settings/team",children:["Manage team in Settings ",(0,s.jsx)(u,{size:14})]})})]}):(0,s.jsx)(g,{banner:{tone:"info",text:"Create your organization first (step 3)."}})]}):null]})]})}},34227:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(13185).A)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]])},44626:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(13185).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},64250:(e,a,t)=>{"use strict";t.d(a,{z:()=>s});let s=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return a.filter((e,a,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===a).join(" ").trim()}},67081:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(13185).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},84107:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(13185).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=6710)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{41088:(e,t,n)=>{"use strict";n.d(t,{q:()=>j,M:()=>y});var a=n(95155),s=n(12115);async function i(e,t){let n=await fetch(e,t);if(!n.ok)throw Error(await n.text());return n.json()}let r={width:900,height:620};function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=Math.max(1,e.length),a=Math.max(320,t.width||900),s=Math.max(360,t.height||620),i=a<640?10:16,l=a<640?10:14,{cols:o,rows:c}=a<640?{cols:1,rows:n}:n<=1?{cols:1,rows:1}:n<=3?{cols:n,rows:1}:n<=4?{cols:2,rows:2}:n<=6?{cols:3,rows:2}:n<=8?{cols:4,rows:2}:{cols:Math.ceil(n/2),rows:2},d=Math.max(280*o,a-2*i-l*(o-1)),u=Math.max(180*c,s-2*i-l*(c-1)),h=Math.floor(d/o),p=Math.floor(u/c),m=d-h*o,f=u-p*c;return e.map((e,t)=>{let n=t%o,a=Math.floor(t/o);return{x:i+n*(h+l),y:i+a*(p+l),width:Math.max(280,h+(n===o-1?m:0)),height:Math.max(180,p+(a===c-1?f:0))}})}var o=n(58219);let c="madarx:spaces-v1",d={id:"default",name:"main",is_active:!0},u="madarx:last-chat-session-id:v1";function h(e){try{e?window.localStorage.setItem(u,e):window.localStorage.removeItem(u)}catch(e){}}function p(){try{return window.localStorage.getItem(u)}catch(e){return null}}var m=n(93247);function f(e,t,n){var a,s,i,r,l,o,c;let{textRef:d,setChat:u,setLiveText:h,setAgentPhase:p,setLiveTool:m,setLiveSteps:f,setUsage:g,setSessionId:v,setSessionArtifactId:x,sessionIdRef:j,pendingApprovalsRef:y,bringToFront:b,refresh:w,onSession:k}=n;if("session"===e&&t.id)null==k||k(t.id),t.id!==j.current&&v(t.id);else if("cli_stream"===e&&(t.text||t.building))p(e=>"thinking"===e?"responding":e),u(e=>{let n=[...e];return n[n.length-1]={role:"agent",text:t.text||"",streaming:!0,building:!!t.building},n});else if("cli_thinking"===e&&"string"==typeof t.text)null==(s=n.setLiveThinking)||s.call(n,t.text),p(e=>"responding"===e||"tool"===e?e:"thinking");else if("cli_status"===e)null==(i=n.setLiveStatus)||i.call(n,t&&t.phase?t:null),(null==t?void 0:t.phase)==="thinking"&&p(e=>"responding"===e||"tool"===e?e:"thinking");else if("text"===e&&t.delta)d.current+=t.delta,p(e=>"thinking"===e?"responding":e),h(e=>e+t.delta),u(e=>{let t=[...e];return t[t.length-1]={role:"agent",text:d.current},t});else if("tool_start"===e)m(t.name),p("tool"),f(e=>[...e,{id:"".concat(t.name,"-").concat(e.length),name:t.name,input:t.input,status:"running"}]);else if("tool_result"===e){m(null),p("synthesis");let e=(null==(r=t.output)?void 0:r.status)==="approval_required"&&"string"==typeof(null==(l=t.output)?void 0:l.approval_request_id);f(n=>{let a=[...n];for(let n=a.length-1;n>=0;n--)if(a[n].name===t.name&&"running"===a[n].status){var s,i,r;a[n]={...a[n],status:e?"awaiting_approval":t.isError?"error":"done",durationMs:"number"==typeof t.durationMs?t.durationMs:a[n].durationMs,preview:(null==(s=t.output)?void 0:s.preview)||a[n].preview||null,outLines:null!=(r=null==(i=t.output)?void 0:i.lines)?r:a[n].outLines,approval_id:e?t.output.approval_request_id:a[n].approval_id||null,approval_reason:e&&t.output.reason||null};break}return a}),("create_artifact"===t.name||"generate_ui"===t.name||"send_to_hermes"===t.name||"start_hermes_job"===t.name)&&(null==(o=t.output)?void 0:o.artifact_id)&&b(t.output.artifact_id)}else if("artifacts"===e&&(null==(a=t.created)?void 0:a.length)){for(let e of t.created)e.artifact_id&&b(e.artifact_id);w()}else if("agent_created"===e&&t.agent)w();else if("session_artifact"===e&&t.artifact_id)x(t.artifact_id);else if("artifact_updated"===e&&t.artifact_id)x(t.artifact_id),b(t.artifact_id),w();else if("usage"===e)g(t);else if("agent_approval"===e&&(null==t?void 0:t.approval_id))null==(c=n.setAgentApprovals)||c.call(n,e=>e.some(e=>e.approval_id===t.approval_id)?e:[...e,{approval_id:t.approval_id,tool_name:t.tool_name||null,agent_id:t.agent_id||null,agent_name:t.agent_name||"Agent",summary:t.summary||"",status:"pending"}]);else if("pending_approvals"===e&&Array.isArray(null==t?void 0:t.approvals))for(let e of t.approvals)(null==e?void 0:e.approval_id)&&(null==e?void 0:e.tool_name)&&y.current.push({approval_id:e.approval_id,tool_name:e.tool_name});else"error"===e&&(d.current+="\nError: ".concat(t.message),u(e=>{let t=[...e];return t[t.length-1]={role:"agent",text:d.current},t}))}let g=[{key:"claude-code",label:"Local CLI"},{key:"codex",label:"Local CLI"},{key:"ollama",label:"Ollama"},{key:"anthropic",label:"Anthropic"}],v=["claude-code","codex","ollama","anthropic"],x=(0,s.createContext)(null);function j(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)(null),[n,a]=(0,s.useState)([{role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. No demo agents, cron jobs, reports, or old runtime data are loaded. Tell me what to create first."}]),[u,x]=(0,s.useState)({model:"",input:0,output:0,cache_read:0,cache_creation:0,context:0}),[j,y]=(0,s.useState)(null),[b,w]=(0,s.useState)(null),[k,N]=(0,s.useState)(!1),[S,_]=(0,s.useState)(!1),[C,E]=(0,s.useState)(()=>{try{return localStorage.getItem("madarx:selected-project")||"personal"}catch(e){return"personal"}}),L=(0,s.useCallback)(e=>{E(e);try{e?localStorage.setItem("madarx:selected-project",e):localStorage.removeItem("madarx:selected-project")}catch(e){}},[]),[M,A]=(0,s.useState)(!1),D=function(){let[e,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)("instructions"),[r,l]=(0,s.useState)(""),[o,c]=(0,s.useState)([]),[d,u]=(0,s.useState)([]),[h,p]=(0,s.useState)({}),[m,f]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),[x,j]=(0,s.useState)(!1),[y,b]=(0,s.useState)([]),[w,k]=(0,s.useState)(!1),[N,S]=(0,s.useState)({}),[_,C]=(0,s.useState)(!1),[E,L]=(0,s.useState)("balanced");async function M(){try{let e=await i("/api/secrets");b(e.secrets||[])}catch(e){}}async function A(){try{let e=await i("/api/tool-allowlists");S(e.allowlists||{})}catch(e){}}async function D(){var e;t(!0),k(!0),C(!0);let[n,a,s,r]=await Promise.all([i("/api/config"),i("/api/config/env"),i("/api/secrets").catch(()=>({secrets:[]})),i("/api/tool-allowlists").catch(()=>({allowlists:{}}))]);l(n.instructions),c(n.tools||[]),u(a.env||[]),p({}),v(!1),L(null!=(e=n.designStyle)?e:"balanced"),b(s.secrets||[]),k(!1),S(r.allowlists||{}),C(!1)}async function I(e,t){c(n=>n.map(n=>n.name===e.name?{...n,enabled:t}:n));try{let n=await fetch("/api/tools/".concat(encodeURIComponent(e.name)),{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:t})});if(!n.ok)throw Error(await n.text());let a=await n.json();c(t=>t.map(t=>t.name===e.name?a.tool:t))}catch(t){c(t=>t.map(t=>t.name===e.name?{...t,enabled:e.enabled}:t))}}async function T(){let e=Object.fromEntries(Object.entries(h).filter(e=>{let[,t]=e;return String(t||"").trim()}));if(Object.keys(e).length){f(!0),v(!1);try{let t=await fetch("/api/config/env",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({values:e})});if(!t.ok)throw Error(await t.text());let n=await t.json();u(n.env||[]),p({}),v(!0);let a=await i("/api/config");c(a.tools||[])}finally{f(!1)}}}async function R(){j(!0);try{await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({instructions:r})})}finally{j(!1)}}async function O(e){L(e),await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({designStyle:e})})}return{configOpen:e,setConfigOpen:t,configTab:n,setConfigTab:a,configInstructions:r,setConfigInstructions:l,configTools:o,setConfigTools:c,configEnv:d,setConfigEnv:u,configEnvValues:h,setConfigEnvValues:p,configEnvSaving:m,configEnvSaved:g,setConfigEnvSaved:v,configSaving:x,secrets:y,secretsLoading:w,allowlists:N,allowlistsLoading:_,designStyle:E,setDesignStyle:L,openConfig:D,saveInstructions:R,saveDesignStyle:O,saveEnvValues:T,toggleTool:I,handleAddSecret:async function(e){let{name:t,value:n,scope:a}=e,s=await fetch("/api/secrets",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:t,value:n,scope:a})});if(!s.ok)throw Error(await s.text()||"Failed to save secret");await M()},handleRotateSecret:async function(e,t,n){let a=await fetch("/api/secrets/".concat(encodeURIComponent(e)),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({value:t,scope:n})});if(!a.ok)throw Error(await a.text()||"Failed to rotate secret");await M()},handleDeleteSecret:async function(e,t){let n="/api/secrets/".concat(encodeURIComponent(e),"?scope=").concat(encodeURIComponent(t||"global")),a=await fetch(n,{method:"DELETE"});if(!a.ok)throw Error(await a.text()||"Failed to delete secret");await M()},handleAddAllowlistEntry:async function(e){let{tool_name:t,scope_key:n,scope_value:a,label:s}=e,i=await fetch("/api/tool-allowlists",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({tool_name:t,scope_key:n,scope_value:a,label:s})});if(!i.ok)throw Error(await i.text()||"Failed to add allowlist entry");await A()},handleRemoveAllowlistEntry:async function(e){let t=await fetch("/api/tool-allowlists/".concat(encodeURIComponent(e)),{method:"DELETE"});if(!t.ok)throw Error(await t.text()||"Failed to remove allowlist entry");await A()}}}(),I=function(){let[e,t]=(0,s.useState)("approval_required"),[n,a]=(0,s.useState)(!1),[i,r]=(0,s.useState)(!1);async function l(e){a(!0);try{let n=await fetch("/api/settings/trust-mode",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({mode:e,confirm:"auto"===e})});if(!n.ok)throw Error(await n.text());let a=await n.json();t(a.mode||e)}catch(e){}finally{a(!1)}}async function o(){await l("auto"),r(!1)}return{trustMode:e,setTrustMode:t,trustModeBusy:n,trustModePromptOpen:i,applyTrustMode:l,toggleTrustMode:function(){let t="auto"===e?"approval_required":"auto";if("auto"===t)return void r(!0);l(t)},confirmEnableTrustMode:o,cancelEnableTrustMode:function(){r(!1)}}}(),T=function(){let[e,t]=(0,s.useState)(""),[n,a]=(0,s.useState)([]),[i,r]=(0,s.useState)(!1),l=(0,s.useMemo)(()=>v.reduce((e,t)=>{var a,s;let i=n.filter(e=>e.engine===t);return i.length&&e.push({engine:t,label:null!=(s=null==(a=g.find(e=>e.key===t))?void 0:a.label)?s:t,items:i}),e},[]),[n]),o=(0,s.useCallback)(async e=>{t(e),r(!1),await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({model:e})})},[t,r]);return{selectedModel:e,setSelectedModel:t,models:n,setModels:a,modelOpen:i,setModelOpen:r,grouped:l,pickModel:o}}(),{selectedModel:R,setSelectedModel:O}=T,P=(null==R?void 0:R.startsWith("claude-"))?2e5:32768,z=Math.min(100,Math.round((u.context||0)/P*100));async function W(e){t(await i(C?"/api/state?project_id=".concat(encodeURIComponent(C)):"/api/state",e?{signal:e}:void 0))}let U=function(){let{onArtifactMoved:e,refresh:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,a]=(0,s.useState)([d]),[i,r]=(0,s.useState)(d.id),[l,o]=(0,s.useState)(!1),[u,h]=(0,s.useState)(!1),p=(0,s.useRef)(null),m=(0,s.useRef)(e),f=(0,s.useRef)(t);m.current=e,f.current=t,(0,s.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]),(0,s.useEffect)(()=>{let e=!1;return async function(){try{var t,n,s;let i=await fetch("/api/dashboard/spaces",{cache:"no-store"}).then(e=>e.json()).catch(()=>null),l=i&&Array.isArray(i.spaces)&&1===i.spaces.length&&(null==(t=i.spaces[0])?void 0:t.id)==="default"&&0===((null==(s=i.spaces[0])||null==(n=s.artifact_ids)?void 0:n.length)||0)?function(){try{let e=localStorage.getItem(c);if(!e)return null;let t=JSON.parse(e);if(!t||!Array.isArray(t.spaces)||0===t.spaces.length)return null;let n=t.spaces.filter(e=>e&&"string"==typeof e.id).map(e=>({id:String(e.id),name:String(e.name||"Space"),artifactIds:Array.isArray(e.artifactIds)?e.artifactIds.map(String):[]}));if(0===n.length)return null;let a=n.some(e=>e.id===t.activeSpaceId)?t.activeSpaceId:n[0].id;return{spaces:n,activeSpaceId:a}}catch(e){return null}}():null,o=i;if(l){let e=await fetch("/api/dashboard/spaces/import",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({spaces:l.spaces,active_space_id:l.activeSpaceId})}).then(e=>e.json()).catch(()=>null);if(e&&e.imported){o=e;try{localStorage.removeItem(c)}catch(e){}}}if(e)return;let u=function(e){if(!e||!Array.isArray(e.spaces)||0===e.spaces.length)return{spaces:[d],activeSpaceId:d.id};let t=e.spaces.map(e=>({id:String(e.id),name:String(e.name||"Space"),is_active:!!e.is_active})),n=e.active_space_id&&t.some(t=>t.id===e.active_space_id)?String(e.active_space_id):t[0].id;return{spaces:t,activeSpaceId:n}}(o);a(u.spaces),r(u.activeSpaceId)}catch(t){if(e)return;a([d]),r(d.id)}finally{e||h(!0)}}(),()=>{e=!0}},[]);let g=(0,s.useCallback)(e=>{r(e),fetch("/api/dashboard/spaces/".concat(encodeURIComponent(e)),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({is_active:!0})}).catch(()=>{})},[]),v=(0,s.useCallback)(e=>{e!==i&&n.some(t=>t.id===e)&&(p.current&&(clearTimeout(p.current),p.current=null),o(!0),p.current=setTimeout(()=>{g(e),p.current=setTimeout(()=>{o(!1),p.current=null},20)},Math.floor(110)))},[i,n,g]),x=(0,s.useCallback)(async()=>{let e="Space ".concat(n.length+1);try{let t=await fetch("/api/dashboard/spaces",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:e})}),n=await t.json().catch(()=>({}));if(!t.ok||!(null==n?void 0:n.space))return null;let s={id:String(n.space.id),name:n.space.name,is_active:!1};return a(e=>[...e,s]),p.current&&(clearTimeout(p.current),p.current=null),o(!0),p.current=setTimeout(()=>{g(s.id),p.current=setTimeout(()=>{o(!1),p.current=null},20)},Math.floor(110)),s.id}catch(e){return null}},[n.length,g]),j=(0,s.useCallback)((e,t)=>{let n=String(t||"").trim().slice(0,32);n&&(a(t=>t.map(t=>t.id===e?{...t,name:n}:t)),fetch("/api/dashboard/spaces/".concat(encodeURIComponent(e)),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:n})}).catch(()=>{}))},[]),y=(0,s.useCallback)(e=>{let t=null;a(n=>{var a;if(n.length<=1)return n;let s=n.filter(t=>t.id!==e);return s.length===n.length?n:(t=(null==(a=s[0])?void 0:a.id)||null,s)}),fetch("/api/dashboard/spaces/".concat(encodeURIComponent(e)),{method:"DELETE"}).then(()=>{var e;return null==(e=f.current)?void 0:e.call(f)}).catch(()=>{}),i===e&&t&&v(t)},[i,v]),b=(0,s.useCallback)((e,t)=>{var a;n.some(e=>e.id===t)&&(null==(a=m.current)||a.call(m,e,t),fetch("/api/dashboard/spaces/".concat(encodeURIComponent(t),"/move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({artifact_id:e})}).then(()=>{var e;return null==(e=f.current)?void 0:e.call(f)}).catch(()=>{}))},[n]),w=n.find(e=>e.id===i)||n[0];return{spaces:n,activeSpaceId:i,activeSpace:w,isSwitching:l,ready:u,setActiveSpaceId:v,createSpace:x,renameSpace:j,deleteSpace:y,moveArtifactToSpace:b}}({onArtifactMoved:(0,s.useCallback)((e,n)=>{t(t=>{if(!t||!Array.isArray(t.artifacts))return t;let a=!1,s=t.artifacts.map(t=>t.id!==e||t.space_id===n?t:(a=!0,{...t,space_id:n}));return a?{...t,artifacts:s}:t})},[]),refresh:W}),B=(0,s.useMemo)(()=>((null==e?void 0:e.artifacts)||[]).filter(e=>e.content).filter(e=>(e.space_id||"default")===U.activeSpaceId).map(e=>e.id),[null==e?void 0:e.artifacts,U.activeSpaceId]),F=function(e){let{state:t,refresh:n,spaceArtifactIds:a,activeSpaceId:i,moveArtifactToSpace:c}=e,[d,u]=(0,s.useState)(null),[h,p]=(0,s.useState)({}),[m,f]=(0,s.useState)(null),[g,v]=(0,s.useState)(null),[x,j]=(0,s.useState)(null),[y,b]=(0,s.useState)({}),[w,k]=(0,s.useState)({}),[N,S]=(0,s.useState)({}),[_,C]=(0,s.useState)(null),[E,L]=(0,s.useState)(null),[M,A]=(0,s.useState)(null),[D,I]=(0,s.useState)("auto"),[T,R]=(0,s.useState)(null),[O,P]=(0,s.useState)({width:0,height:0}),z=(0,s.useRef)(20),W=(0,s.useRef)(!1);function U(){let e=a?new Set(a):null;return((null==t?void 0:t.artifacts)||[]).filter(t=>t&&t.content&&!h[t.id]&&(!e||e.has(t.id)))}function B(e){z.current+=1;let t=z.current;u(e),S(n=>n[e]===t?n:{...n,[e]:t})}async function F(e){let t=await fetch("/api/artifacts/".concat(encodeURIComponent(e)),{method:"DELETE"});if(!t.ok&&404!==t.status)throw Error(await t.text());p(t=>{let n={...t};return delete n[e],n}),b(t=>{let n={...t};return delete n[e],n}),k(t=>{let n={...t};return delete n[e],n}),S(t=>{let n={...t};return delete n[e],n}),j(null),await n()}return(0,s.useEffect)(()=>{if(!T)return;let e=()=>P({width:T.clientWidth,height:T.clientHeight});e();let t=new ResizeObserver(e);return t.observe(T),()=>t.disconnect()},[T]),(0,s.useEffect)(()=>{W.current&&O.width&&O.height&&(b(e=>{let t=!1,n={...e},a=Math.max(280,O.width-16),s=Math.max(180,O.height-16);for(let i in e){let r=e[i],l=Math.max(280,Math.min(a,r.width)),o=Math.max(180,Math.min(s,r.height));(l!==r.width||o!==r.height)&&(n[i]={width:l,height:o},t=!0)}return t?n:e}),k(e=>{let t=!1,n={...e};for(let i in e){var a,s;let r=e[i],l=(null==(a=y[i])?void 0:a.width)||520,o=(null==(s=y[i])?void 0:s.height)||380,c=Math.max(8,O.width-l-8),d=Math.max(8,O.height-o-8),u=Math.max(8,Math.min(c,r.x)),h=Math.max(8,Math.min(d,r.y));(u!==r.x||h!==r.y)&&(n[i]={x:u,y:h},t=!0)}return t?n:e}))},[O,a]),(0,s.useEffect)(()=>(document.body.classList.toggle("is-dragging",!!_),document.body.classList.toggle("is-resizing",!!E),()=>{document.body.classList.remove("is-dragging"),document.body.classList.remove("is-resizing")}),[_,E]),(0,s.useEffect)(()=>{try{let e=localStorage.getItem("madarx:artifact-layout-v2");if(e){let t=JSON.parse(e);t.positions&&k(t.positions),t.sizes&&b(t.sizes),t.z&&S(t.z),t.minimized&&p(t.minimized),("manual"===t.layoutMode||"auto"===t.layoutMode)&&I(t.layoutMode),"number"==typeof t.nextZ&&(z.current=t.nextZ)}}catch(e){}W.current=!0},[]),(0,s.useEffect)(()=>{if(!t)return;let e=U();if("auto"===D){let t=l(e,O),n={},a={};e.forEach((e,s)=>{let i=t[s];n[e.id]={x:i.x,y:i.y},a[e.id]={width:i.width,height:i.height}}),k(n),b(a);return}let n=[];k(t=>{if(0===(n=e.filter(e=>!t[e.id]).map(e=>e.id)).length)return t;let s={...t},i=a?new Set(a):null,r=Object.entries(t).filter(e=>{let[t]=e;return!i||i.has(t)}).map(e=>{let[,t]=e;return t}),l=r.length?Math.max(...r.map(e=>e.x)):24,o=r.length?Math.max(...r.map(e=>e.y)):24,c=Math.max(320,(O.width||900)-320),d=Math.max(180,(O.height||620)-200);return n.forEach((e,t)=>{let n=(t+1)*32;s[e]={x:Math.max(16,Math.min(c,l+n)),y:Math.max(16,Math.min(d,o+n))}}),s}),0!==n.length&&(b(e=>{let t={...e};return n.forEach(e=>{t[e]||(t[e]={width:520,height:380})}),t}),S(e=>{let t={...e};return n.forEach(e=>{z.current+=1,t[e]=z.current}),t}),u(n[n.length-1]))},[t,O,D,h,a]),(0,s.useEffect)(()=>{if(!W.current)return;let e=setTimeout(()=>{try{localStorage.setItem("madarx:artifact-layout-v2",JSON.stringify({positions:w,sizes:y,z:N,minimized:h,layoutMode:D,nextZ:z.current}))}catch(e){}},200);return()=>clearTimeout(e)},[w,y,N,h,D]),{selectedArtifactId:d,minimizedIds:h,cardZ:N,hoveredDockId:m,setHoveredDockId:f,fullscreenId:g,setFullscreenId:v,confirmDeleteId:x,setConfirmDeleteId:j,draggingId:_,resizingId:E,pointerDropSpaceId:M,layoutMode:D,setBoardEl:R,toggleMinimize:function(e){p(t=>({...t,[e]:!t[e]}))},getLayout:function(e,t){var n,a,s,i;let o=w[e],c=y[e],d=U().length,u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return l(Array.from({length:t},(e,t)=>({id:String(t)})),n)[e]||{x:16,y:16,width:520,height:380}}(Math.max(0,Math.min(t,Math.max(0,d-1))),Math.max(1,d),O);return{x:null!=(n=null==o?void 0:o.x)?n:u.x,y:null!=(a=null==o?void 0:o.y)?a:u.y,width:null!=(s=null==c?void 0:c.width)?s:u.width,height:null!=(i=null==c?void 0:c.height)?i:u.height}},bringToFront:B,resetArtifactLayout:function(){z.current=20,I("auto"),S({})},deleteArtifactById:F,downloadArtifact:function(e){let t=(0,o.o0)(e.kind),n=new Blob([t?e.content||"":e.source_md||e.content||""],{type:t?"text/html":"text/markdown"}),a=URL.createObjectURL(n),s=document.createElement("a");s.href=a,s.download=(e.title||"artifact").toLowerCase().replace(/\s+/g,"-")+(t?".html":".md"),s.click(),URL.revokeObjectURL(a)},startDrag:function(e,t){var n,a;if(e.target.closest("button, .winbar i, .winbar-dl, .artifact-kind-badge, .confirm-label"))return;e.preventDefault();let s=e.currentTarget.closest(".artifact-window-wrap"),r=null==s?void 0:s.closest(".canvas-board");if(!s)return;null==(n=(a=e.currentTarget).setPointerCapture)||n.call(a,e.pointerId),I("manual"),C(t),B(t);let l=null==r?void 0:r.getBoundingClientRect(),o=s.getBoundingClientRect(),d=l?o.left-l.left+r.scrollLeft:0,u=l?o.top-l.top+r.scrollTop:0,h=l?e.clientX-l.left+r.scrollLeft-d:0,p=l?e.clientY-l.top+r.scrollTop-u:0,m=e.currentTarget;document.body.style.userSelect="none";let f=null,g=!1;function v(e){e.preventDefault();let n=null==r?void 0:r.getBoundingClientRect(),a=n?Math.max(0,e.clientX-n.left+r.scrollLeft-h):d,s=n?Math.max(0,e.clientY-n.top+r.scrollTop-p):u;k(e=>({...e,[t]:{x:a,y:s}}));let l=function(e,t){let n=document.elementFromPoint(e,t);if(!n)return null;let a=n.closest(".space-chip");if(!a)return null;let s=a.getAttribute("data-space-id");return!s||i&&s===i?null:s}(e.clientX,e.clientY);l!==f&&(f=l,A(l)),l&&(g=!0)}function x(e){var n;m.removeEventListener("pointermove",v),m.removeEventListener("pointerup",x),m.removeEventListener("pointercancel",x),null==(n=m.releasePointerCapture)||n.call(m,e.pointerId),document.body.style.userSelect="",C(null),A(null),g&&f&&"function"==typeof c&&(c(t,f),k(e=>{if(!(t in e))return e;let n={...e};return n[t]={x:d,y:u},n}))}m.addEventListener("pointermove",v),m.addEventListener("pointerup",x),m.addEventListener("pointercancel",x)},startResize:function(e,t,n){var a,s;e.preventDefault(),e.stopPropagation();let i=e.currentTarget.closest(".artifact-window-wrap"),r=i.closest(".canvas-board");null==(a=(s=e.currentTarget).setPointerCapture)||a.call(s,e.pointerId),I("manual"),B(t);let l=e.clientX,o=e.clientY,c=null==r?void 0:r.getBoundingClientRect(),d=i.getBoundingClientRect(),u=d.width,h=d.height,p=c?d.left-c.left+r.scrollLeft:0,m=c?d.top-c.top+r.scrollTop:0,f=r?r.clientWidth:1/0,g=r?r.clientHeight:1/0,v={n:"ns-resize",s:"ns-resize",e:"ew-resize",w:"ew-resize",ne:"nesw-resize",sw:"nesw-resize",nw:"nwse-resize",se:"nwse-resize"}[n]||"nwse-resize",x=e.currentTarget;function j(e){e.preventDefault();let a=e.clientX-l,s=e.clientY-o,i=p,r=m,c=u,d=h;n.includes("w")&&(u-a<280&&(a=u-280),p+a<8&&(a=8-p),i=p+a,c=u-a),n.includes("e")&&(u+a<280&&(a=280-u),p+u+a>f-8&&(a=f-8-p-u),c=u+a),n.includes("n")&&(h-s<180&&(s=h-180),m+s<8&&(s=8-m),r=m+s,d=h-s),n.includes("s")&&(h+s<180&&(s=180-h),m+h+s>g-8&&(s=g-8-m-h),d=h+s),b(e=>({...e,[t]:{width:c,height:d}})),(n.includes("w")||n.includes("n"))&&k(e=>({...e,[t]:{x:i,y:r}}))}function y(e){var t;x.removeEventListener("pointermove",j),x.removeEventListener("pointerup",y),x.removeEventListener("pointercancel",y),null==(t=x.releasePointerCapture)||t.call(x,e.pointerId),document.body.style.userSelect="",document.body.style.cursor="",L(null)}L(t),document.body.style.userSelect="none",document.body.style.cursor=v,x.addEventListener("pointermove",j),x.addEventListener("pointerup",y),x.addEventListener("pointercancel",y)}}}({state:e,refresh:W,spaceArtifactIds:B,activeSpaceId:U.activeSpaceId,moveArtifactToSpace:U.moveArtifactToSpace}),{setFullscreenId:H,fullscreenId:J}=F,q=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!e)return;let t=(e.artifacts||[]).filter(e=>e.content),n=new Set(t.map(e=>e.id)),a=q.current;if(null===a){q.current=n;return}let s=t.filter(e=>!a.has(e.id)&&(e.space_id||"default")===U.activeSpaceId);q.current=n,1===s.length&&(J||H(s[0].id))},[e,U.activeSpaceId,J,H]);let V=function(e){let{sessionId:t,setSessionId:n,setChat:a,setUsage:r,setSelectedModel:l,setSessionArtifactId:o}=e,[c,d]=(0,s.useState)([]),[u,m]=(0,s.useState)(!1);async function f(){try{let e=await i("/api/chat/sessions");d(e.sessions||[])}catch(e){}}async function g(e){if(!e)return null;try{let t=(await i("/api/chat/sessions/".concat(encodeURIComponent(e)))).session;if(!t)return null;return a(function(e){let t=((null==e?void 0:e.messages)||[]).filter(e=>("user"===e.role||"assistant"===e.role)&&(e.content||Array.isArray(e.tool_calls)&&e.tool_calls.length)).map(e=>{let t={role:"assistant"===e.role?"agent":"user",text:e.content||""};return"assistant"===e.role&&Array.isArray(e.tool_calls)&&e.tool_calls.length&&(t.tools=e.tool_calls.filter(e=>e&&e.name).map(e=>({name:e.name,status:"done"}))),t});return t.length||t.push({role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. Tell me what to create first."}),t}(t)),r(e=>({...e,model:t.model||e.model,input:t.total_input_tokens||0,output:t.total_output_tokens||0,cache_read:t.total_cache_read_tokens||0,cache_creation:t.total_cache_creation_tokens||0,context:t.last_context_tokens||0})),t}catch(e){return null}}async function v(e){if(m(!1),e===t)return;o(null);let a=await g(e);a&&(n(a.id),h(a.id),a.model&&l(a.model))}function x(){m(!1),n(null),h(null),o(null),a([{role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. Tell me what to create first."}]),r(e=>({...e,input:0,output:0,cache_read:0,cache_creation:0,context:0}))}async function j(e){try{await fetch("/api/chat/sessions/".concat(encodeURIComponent(e)),{method:"DELETE"})}catch(e){}if(e===t)x();else try{p()===e&&h(null)}catch(e){}await f()}return{sessions:c,setSessions:d,sessionsOpen:u,setSessionsOpen:m,refreshSessions:f,openSession:v,reloadSession:g,newSession:x,deleteSession:j}}({sessionId:j,setSessionId:y,setChat:a,setUsage:x,setSelectedModel:O,setSessionArtifactId:w}),X=function(e){let{bgAgentList:t,hasBgActivity:n}=function(e){let{refresh:t,runs:n}=e,[a,i]=(0,s.useState)({}),r=(0,s.useRef)(t);(0,s.useEffect)(()=>{r.current=t},[t]),(0,s.useEffect)(()=>{if(!window.EventSource)return;let e=new EventSource("/api/events/stream");return e.addEventListener("agent_tool_start",e=>{try{var t=JSON.parse(e.data);let n=t.agent_id;n&&i(e=>{let a=e[n]||{agent_id:n,agent_name:t.agent_name||n,status:"running",started_at:Date.now(),steps:[]};return{...e,[n]:{...a,agent_name:t.agent_name||a.agent_name,status:"running",current_tool:t.tool,current_input_summary:t.input_summary,steps:[...a.steps,{tool:t.tool,input_summary:t.input_summary,status:"running",ts:t.ts||Date.now()}].slice(-12)}}})}catch(e){}}),e.addEventListener("agent_tool_result",e=>{try{var t=JSON.parse(e.data);let n=t.agent_id;n&&i(e=>{let a=e[n]||{agent_id:n,agent_name:t.agent_name||n,status:"running",started_at:Date.now(),steps:[]},s=[...a.steps],i=!1;for(let e=s.length-1;e>=0;e--)if(s[e].tool===t.tool&&"running"===s[e].status){s[e]={...s[e],status:t.isError?"error":"done"},i=!0;break}return!i&&(s.push({tool:t.tool,status:t.isError?"error":"done",ts:Date.now()}),s.length>12&&s.shift()),{...e,[n]:{...a,current_tool:null,steps:s}}})}catch(e){}}),e.addEventListener("agent_run_start",e=>{try{var t=JSON.parse(e.data);let n=t.agent_id;n&&i(e=>{var a,s,i;return{...e,[n]:{agent_id:n,agent_name:t.agent_name||n,triggered_by:t.triggered_by,status:"running",started_at:Date.now(),steps:null!=(i=null==(s=e[n])||null==(a=s.steps)?void 0:a.slice(-6))?i:[]}}})}catch(e){}}),e.addEventListener("agent_run_complete",e=>{try{var t;!function(e){let t=e.agent_id;if(!t)return;let n=Date.now();i(a=>{let s=a[t];return s?{...a,[t]:{...s,status:e.isError?"failed":"complete",finished_at:n,current_tool:null}}:a}),setTimeout(()=>{i(e=>{let a=e[t];if(!a||"running"===a.status||a.finished_at!==n)return e;let s={...e};return delete s[t],s})},3e4)}(JSON.parse(e.data)),null==(t=r.current)||t.call(r)}catch(e){}}),e.addEventListener("agent_created",()=>{var e;null==(e=r.current)||e.call(r)}),e.onerror=()=>{},()=>{e.close()}},[]),(0,s.useEffect)(()=>{Array.isArray(n)&&0!==n.length&&i(e=>{let t=Object.keys(e);if(0===t.length)return e;let a=!1,s={...e};for(let r of t){let t=e[r];if(!t||"running"!==t.status)continue;let l=n.find(e=>e&&e.agent_id===r&&("complete"===e.status||"failed"===e.status)&&e.at&&new Date(e.at).getTime()>=(t.started_at||0)-1e3);if(l){s[r]={...t,status:l.status,finished_at:Date.now(),current_tool:null},a=!0;let e=s[r].finished_at;setTimeout(()=>{i(t=>{let n=t[r];if(!n||"running"===n.status||n.finished_at!==e)return t;let a={...t};return delete a[r],a})},3e4)}}return a?s:e})},[n]),(0,s.useEffect)(()=>{let e=window.setInterval(()=>{let e=Date.now()-12e4;i(t=>{let n=Object.keys(t);if(0===n.length)return t;let a=!1,s={...t};for(let r of n){var i;let n=t[r];if(!n||"running"!==n.status)continue;let l=(null==(i=n.steps)?void 0:i.length)?n.steps[n.steps.length-1].ts:0,o=Math.max(n.started_at||0,l||0);o>0&&o<e&&(delete s[r],a=!0)}return a?s:t})},15e3);return()=>window.clearInterval(e)},[]);let l=Object.values(a),o=l.some(e=>"running"===e.status);return{bgAgents:a,bgAgentList:l,hasBgActivity:o}}({refresh:e.refresh,runs:e.runs}),a=function(e){let{chat:t,setChat:n,selectedModel:a,sessionId:i,setSessionId:r,sessionArtifactId:l,setSessionArtifactId:o,setUsage:c,refresh:d,refreshSessions:u,reloadSession:p,bringToFront:g,projectId:v}=e,[x,j]=(0,s.useState)(!1),[y,b]=(0,s.useState)(!1),w=(0,s.useRef)(null),[k,N]=(0,s.useState)(""),[S,_]=(0,s.useState)(null),[C,E]=(0,s.useState)(!1),[L,M]=(0,s.useState)([]),[A,D]=(0,s.useState)(null),[I,T]=(0,s.useState)("idle"),[R,O]=(0,s.useState)(""),[P,z]=(0,s.useState)(null),W=(0,s.useRef)([]),[U,B]=(0,s.useState)([]),F=(0,s.useRef)(null),H=(0,s.useRef)(!1),J=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=J.current;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight<200;(x||t)&&(e.scrollTop=e.scrollHeight)},[t,k,x]);let q=(0,s.useRef)(null),V=(0,s.useRef)(null);async function X(e,t,a){var s,i;if(e){try{let a=await fetch("/api/approvals/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:t})});if(!a.ok){let e=await a.text().catch(()=>"");n(t=>[...t,{role:"agent",text:"Approval failed: ".concat(e||a.status)}]);return}}catch(e){n(t=>[...t,{role:"agent",text:"Approval error: ".concat(e.message)}]);return}M(n=>n.map(n=>n.approval_id===e?{...n,status:"approved"===t?"approved":"denied"}:n)),"approved"===t&&a?(W.current.push({approval_id:e,tool_name:a}),null==(s=q.current)||s.call(q,"Approved — please continue.")):"denied"===t&&(null==(i=q.current)||i.call(q,"Denied — try a different approach."))}}async function Y(e,t){if(e){if("denied"===t){B(t=>t.map(t=>t.approval_id===e?{...t,status:"denied"}:t));try{await fetch("/api/approvals/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:"denied"})})}catch(e){}return}B(t=>t.map(t=>t.approval_id===e?{...t,status:"resuming"}:t));try{var a;let t=await fetch("/api/agents/resume-approval",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({approval_id:e})}),s=await t.json().catch(()=>({}));if(!t.ok||!s.ok){B(n=>n.map(n=>n.approval_id===e?{...n,status:"error",error:s.error||t.status}:n)),n(e=>[...e,{role:"agent",text:"Could not continue: ".concat(s.error||t.status)}]);return}if("awaiting_approval"===s.status&&(null==(a=s.pending_approval)?void 0:a.approval_id))return void B(t=>[...t.map(t=>t.approval_id===e?{...t,status:"approved"}:t),{approval_id:s.pending_approval.approval_id,tool_name:s.pending_approval.tool_name,agent_id:s.pending_approval.agent_id||null,agent_name:s.pending_approval.agent_name||s.agent_name||"Agent",summary:s.pending_approval.summary||"",status:"pending"}]);B(t=>t.map(t=>t.approval_id===e?{...t,status:"done",artifact_id:s.artifact_id||null}:t)),s.artifact_id&&(o(s.artifact_id),g(s.artifact_id)),await d(),n(e=>[...e,{role:"agent",text:"".concat(s.agent_name||"Agent"," finished").concat(s.title?' — "'.concat(s.title,'"'):"",".")}])}catch(t){B(n=>n.map(n=>n.approval_id===e?{...n,status:"error",error:t.message}:n))}}}q.current=async function e(e,s){if(x)return;if(w.current){try{w.current.close()}catch(e){}w.current=null,b(!1)}let p=(null!=e?e:"").trim(),y=Array.isArray(s)?s:[];if(!p&&!y.length)return;n(e=>[...e,{role:"user",text:p,attachments:y}]),(0,m.q)(),M([]),O(""),z(null),T("thinking"),D(Date.now()),j(!0);let k=t.filter(e=>"user"===e.role||"agent"===e.role).map(e=>({role:"agent"===e.role?"assistant":"user",content:e.text}));for(;k.length&&"assistant"===k[0].role;)k.shift();k.push({role:"user",content:p,attachments:y});let S=new AbortController;F.current=S,H.current=!1;try{let e=W.current.slice();W.current=[];let t=await fetch("/api/orchestrator/stream",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({messages:k,model:a,session_id:i,session_artifact_id:l,project_id:v||"personal",pending_approvals:e}),signal:S.signal});if(!t.ok||!t.body){let e=await t.text();n(t=>[...t,{role:"agent",text:"Stream error: ".concat(e)}]);return}let s=t.body.getReader(),p=new TextDecoder,m="",x={current:""},j={current:i},y={textRef:x,sessionIdRef:j,setChat:n,setLiveText:N,setAgentPhase:T,setLiveTool:_,setLiveSteps:M,setUsage:c,setSessionId:r,setSessionArtifactId:o,setLiveThinking:O,setLiveStatus:z,pendingApprovalsRef:W,setAgentApprovals:B,bringToFront:g,refresh:d,onSession:e=>{h(e),j.current=e}};for(n(e=>[...e,{role:"agent",text:""}]);;){let{done:e,value:t}=await s.read();if(e)break;let n=(m+=p.decode(t,{stream:!0})).split("\n");m=n.pop();let a="";for(let e of n)if(e.startsWith("event:"))a=e.slice(6).trim();else if(e.startsWith("data:")){let t=e.slice(5).trim();try{f(a,JSON.parse(t),y)}catch(e){}a=""}}x.current||n(e=>{let t=[...e];return t[t.length-1]={role:"agent",text:"Done."},t}),await d(),await u()}catch(e){H.current||(null==e?void 0:e.name)==="AbortError"?n(e=>{let t=[...e],n=t[t.length-1];if(n&&"agent"===n.role){let e=(n.text||"").trim();t[t.length-1]={role:"agent",text:e?"".concat(e,"\n\n_(stopped by user)_"):"_(stopped by user)_"}}else t.push({role:"agent",text:"_(stopped by user)_"});return t}):n(t=>[...t,{role:"agent",text:"Action failed: ".concat(e.message)}])}finally{F.current=null,H.current=!1,j(!1),D(null),T("idle"),N(""),_(null),z(null),setTimeout(()=>O(""),4e3),setTimeout(()=>{M(e=>e.some(e=>"awaiting_approval"===e.status)?e:[])},1200),E(!1)}},V.current=function(){if(x){H.current=!0;try{var e;null==(e=F.current)||e.abort()}catch(e){}}};let K=(0,s.useRef)(null);K.current=X;let G=(0,s.useRef)(null);G.current=Y;let Z=(0,s.useRef)(null);Z.current=function(e){let t;if(!e||x||w.current)return;try{t=new EventSource("/api/orchestrator/stream/attach?session_id=".concat(encodeURIComponent(e),"&from_seq=0"))}catch(e){return}w.current=t,b(!0),M([]),O(""),z(null);let a={textRef:{current:""},sessionIdRef:{current:e},setChat:n,setLiveText:N,setAgentPhase:T,setLiveTool:_,setLiveSteps:M,setUsage:c,setSessionId:r,setSessionArtifactId:o,setLiveThinking:O,setLiveStatus:z,pendingApprovalsRef:W,bringToFront:g,refresh:d,onSession:()=>{}},s=!1;function i(n){if(w.current===t){try{t.close()}catch(e){}if(w.current=null,b(!1),T("idle"),N(""),_(null),n)try{null==p||p(e)}catch(e){}}}for(let e of["session","text","cli_stream","cli_thinking","cli_status","tool_start","tool_result","artifacts","agent_created","session_artifact","artifact_updated","usage","pending_approvals","agent_approval","error","done"])t.addEventListener(e,t=>{let r;try{r=JSON.parse(t.data)}catch(e){return}if("done"===e)return void i(!0);("text"===e||"cli_stream"===e||"error"===e)&&(s||(s=!0,n(e=>[...e,{role:"agent",text:""}]))),f(e,r,a)});t.addEventListener("error",()=>i(!1))};let $=(0,s.useCallback)((e,t)=>q.current(e,t),[]),Q=(0,s.useCallback)(()=>V.current(),[]),ee=(0,s.useCallback)((e,t,n)=>K.current(e,t,n),[]),et=(0,s.useCallback)((e,t)=>G.current(e,t),[]),en=(0,s.useCallback)(e=>Z.current(e),[]);return(0,s.useEffect)(()=>()=>{if(w.current)try{w.current.close()}catch(e){}},[]),{busy:x,resuming:y,attach:en,liveText:k,liveTool:S,liveExpanded:C,setLiveExpanded:E,liveSteps:L,busyStartTime:A,agentPhase:I,liveThinking:R,liveStatus:P,feedRef:J,command:$,stop:Q,decideApproval:ee,agentApprovals:U,resumeAgentApproval:et}}(e);return{busy:a.busy,resuming:a.resuming,attach:a.attach,liveText:a.liveText,liveTool:a.liveTool,liveExpanded:a.liveExpanded,setLiveExpanded:a.setLiveExpanded,liveSteps:a.liveSteps,busyStartTime:a.busyStartTime,agentPhase:a.agentPhase,liveThinking:a.liveThinking,liveStatus:a.liveStatus,bgAgentList:t,hasBgActivity:n,feedRef:a.feedRef,command:a.command,stop:a.stop,decideApproval:a.decideApproval}}({chat:n,setChat:a,selectedModel:R,sessionId:j,setSessionId:y,sessionArtifactId:b,setSessionArtifactId:w,setUsage:x,refresh:W,refreshSessions:V.refreshSessions,reloadSession:V.reloadSession,bringToFront:F.bringToFront,projectId:C,runs:(null==e?void 0:e.runs)||null}),Y=function(e){let{refresh:t,setChat:n}=e,[a,i]=(0,s.useState)(null),[r,l]=(0,s.useState)(!1),[o,c]=(0,s.useState)(null);async function d(e){if(!e||a)return;i(e);let s="Approved Claude Code run. Starting local execution...\n";n(e=>[...e,{role:"agent",text:s}]);try{let a=await fetch("/api/runs/approve-claude-run",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({run_id:e})});if(!a.ok||!a.body){let e=await a.text();try{e=JSON.parse(e).error||e}catch(e){}n(t=>{let n=[...t];return n[n.length-1]={role:"agent",text:"".concat(s,"\n").concat(e)},n}),await t();return}let i=a.body.getReader(),r=new TextDecoder,l="";for(;;){let{done:e,value:t}=await i.read();if(e)break;let a=(l+=r.decode(t,{stream:!0})).split("\n");l=a.pop();let o="";for(let e of a)if(e.startsWith("event:"))o=e.slice(6).trim();else if(e.startsWith("data:")){try{let t=JSON.parse(e.slice(5).trim());"stdout"===o&&t.line?s+="".concat(t.line,"\n"):"stderr"===o&&t.line?s+="stderr: ".concat(t.line,"\n"):"done"===o?s+="\nClaude run ".concat(t.status,"."):"error"===o&&(s+="\nError: ".concat(t.message)),n(e=>{let t=[...e];return t[t.length-1]={role:"agent",text:s},t})}catch(e){}o=""}}await t()}catch(e){n(t=>{let n=[...t];return n[n.length-1]={role:"agent",text:"".concat(s,"\nAction failed: ").concat(e.message)},n})}finally{i(null)}}async function u(e,s){if(e&&!a){i(e);try{let n=await fetch("/api/approvals/".concat(encodeURIComponent(e)),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:s})});if(!n.ok)throw Error(await n.text());await t()}catch(e){n(t=>[...t,{role:"agent",text:"Approval update failed: ".concat(e.message)}])}finally{i(null)}}}return{approvalBusyId:a,runtimeOpen:r,setRuntimeOpen:l,runtimeActionBusy:o,approveClaudeRun:d,decideGenericApproval:u,ensureOpsAgentAction:async function(){c("ops");try{let e=await fetch("/api/agents/ops",{method:"POST"});if(!e.ok)throw Error(await e.text());n(e=>[...e,{role:"agent",text:"Caretaker is ready: daily 08:00 schedule, scoped tools, and approval gates configured."}]),await t()}catch(e){n(t=>[...t,{role:"agent",text:"Caretaker setup failed: ".concat(e.message)}])}finally{c(null)}},processHeartbeatOnceAction:async function(){c("worker");try{let e=await fetch("/api/heartbeat/worker",{method:"POST",headers:{"content-type":"application/json"},body:"{}"});if(!e.ok)throw Error(await e.text());let a=await e.json();n(e=>[...e,{role:"agent",text:"Heartbeat worker processed once: ".concat(a.worked?a.status||"worked":"no queued task",".")}]),await t()}catch(e){n(t=>[...t,{role:"agent",text:"Heartbeat worker failed: ".concat(e.message)}])}finally{c(null)}}}}({refresh:W,setChat:a}),K=function(e){let{sessionId:t,localBusy:n,reloadSession:a,attach:i,resuming:r}=e,[l,o]=(0,s.useState)(!1),c=(0,s.useRef)(n);c.current=n;let d=(0,s.useRef)(r);d.current=r;let u=(0,s.useRef)(a);u.current=a;let h=(0,s.useRef)(i);h.current=i;let p=(0,s.useRef)(t);return p.current=t,(0,s.useEffect)(()=>{if(!t)return void o(!1);let e=!1,n=null,a=null,s=null;function i(){s||(s=setTimeout(async()=>{var t;s=null,e||c.current||d.current||await (null==(t=u.current)?void 0:t.call(u,p.current))},300))}function r(){a&&(clearInterval(a),a=null)}function l(){e||c.current||(o(!0),h.current&&!d.current?h.current(p.current):(i(),a||(a=setInterval(async()=>{var t;if(e||c.current||d.current)return;let n=await (null==(t=u.current)?void 0:t.call(u,p.current));e||n&&!n.agent_working&&(o(!1),r())},1500))))}(async()=>{var t;if(c.current)return;let n=await (null==(t=u.current)?void 0:t.call(u,p.current));!e&&!c.current&&(null==n?void 0:n.agent_working)&&l()})();try{(n=new EventSource("/api/events/stream")).addEventListener("chat_turn",function(e){let t;try{t=JSON.parse(e.data)}catch(e){return}t&&t.session_id===p.current&&!c.current&&("done"===t.phase?(o(!1),r(),d.current||i()):l())})}catch(e){n=null}return()=>{if(e=!0,n)try{n.close()}catch(e){}r(),s&&clearTimeout(s)}},[t]),{remoteWorking:l&&!n}}({sessionId:j,localBusy:X.busy,reloadSession:V.reloadSession,attach:X.attach,resuming:X.resuming}),G=(0,s.useRef)(C),Z=(0,s.useRef)(X),$=(0,s.useRef)(V),Q=(0,s.useRef)(null),ee=(0,s.useRef)(D),et=(0,s.useRef)(I),en=(0,s.useRef)(T);G.current=C,Z.current=X,$.current=V,Q.current=D.openConfig,ee.current=D,et.current=I,en.current=T;let ea=(0,s.useRef)(null);null===ea.current&&(ea.current=new WeakSet);let es=(0,s.useCallback)(e=>{e&&ea.current.add(e)},[]);(0,s.useEffect)(()=>{let t=null==e?void 0:e.projects;if(!Array.isArray(t)||0===t.length||C&&t.some(e=>(null==e?void 0:e.id)===C))return;let n=C?t.find(e=>(null==e?void 0:e.slug)===C):null,a=t.find(e=>(null==e?void 0:e.slug)==="personal"||(null==e?void 0:e.id)==="personal"),s=t.find(e=>(null==e?void 0:e.status)==="active"),i=n||a||s||t[0];(null==i?void 0:i.id)&&L(i.id)},[null==e?void 0:e.projects,C,L]),(0,s.useEffect)(()=>{let e=!1,n=null,a=null,s=null,r=null,l=null,o=["agents","runs","artifacts","heartbeat","approvals","connectors","schedules","sessions","local_actions","local_processes","hermes_jobs","projects"];async function c(){if("hidden"===document.visibilityState||n)return;let l=new AbortController;n=l;try{let n=await i(function(){let e=G.current;return e?"/api/state?project_id=".concat(encodeURIComponent(e)):"/api/state"}(),{signal:l.signal});!e&&(t(n),(null==n?void 0:n.main_agent_trust_mode)&&et.current.setTrustMode(n.main_agent_trust_mode),(null==n?void 0:n.live_deltas_enabled)&&!r&&(function(){try{for(let e of(r=new EventSource("/api/events/stream"),o))r.addEventListener("state.".concat(e,".changed"),d);r.addEventListener("error",()=>{})}catch(e){r=null}s=setInterval(c,6e4)}(),a&&(clearInterval(a),a=null)))}catch(e){}finally{n===l&&(n=null)}}function d(){l||(l=setTimeout(()=>{l=null,c()},250))}function u(e){if(e.origin!==window.location.origin||!e.source||!ea.current.has(e.source))return;let t=null==e?void 0:e.data;if(!t||"object"!=typeof t||"madarx:prompt"!==t.type)return;let n="string"==typeof t.text?t.text.trim():"";if(!n)return;let a=Z.current;a&&!a.busy&&a.command(n)}function h(){"visible"===document.visibilityState&&c()}return c().then(()=>{e||a||s||r||(a=setInterval(c,5e3))}),window.addEventListener("message",u),document.addEventListener("visibilitychange",h),i("/api/config").then(e=>{var t;ee.current.setDesignStyle(null!=(t=e.designStyle)?t:"balanced"),ee.current.setConfigTools(e.tools||[]),e.model&&(en.current.setSelectedModel(e.model),x(t=>({...t,model:e.model})))}).catch(()=>{}),i("/api/models").then(e=>en.current.setModels(e.models||[])).catch(()=>{}),i("/api/config/env").then(e=>ee.current.setConfigEnv(e.env||[])).catch(()=>{}),i("/api/settings/trust-mode").then(e=>et.current.setTrustMode(e.mode||"approval_required")).catch(()=>{}),i("/api/chat/sessions").then(async e=>{let t=e.sessions||[],n=$.current;if(n.setSessions(t),t.length){let e=p(),a=t.find(t=>t.id===e)||t[0];await n.openSession(a.id)}}).catch(()=>{}).finally(()=>{e||_(!0)}),()=>{if(e=!0,n&&n.abort(),a&&clearInterval(a),s&&clearInterval(s),l&&(clearTimeout(l),l=null),r)try{r.close()}catch(e){}window.removeEventListener("message",u),document.removeEventListener("visibilitychange",h)}},[]),(0,s.useEffect)(()=>{function e(){var e;null==(e=Q.current)||e.call(Q)}return window.addEventListener("madarx:open-config",e),()=>window.removeEventListener("madarx:open-config",e)},[]);let ei=null===e||!S,er=e||{agents:[],runs:[],schedules:[],connectors:[],artifacts:[],hermes_jobs:[]},el=(0,s.useMemo)(()=>(er.runs||[]).find(e=>"claude-code-dry-run"===e.kind&&"approval-needed"===e.status),[er.runs]),eo=(0,s.useMemo)(()=>(er.hermes_jobs||[]).filter(e=>"queued"===e.status||"running"===e.status),[er.hermes_jobs]),ec=er.pending_approvals||[],ed=er.heartbeat_tasks||[],eu=er.local_tool_audit||[],eh=er.local_processes||[],ep=ec.length+ed.length+eu.length+eh.length,em=(0,s.useMemo)(()=>(er.artifacts||[]).filter(e=>e.content),[er.artifacts]),ef=(0,s.useMemo)(()=>{var e,t;return e=U.activeSpaceId,t=F.minimizedIds,Array.isArray(em)?em.filter(n=>n&&n.content&&(n.space_id||"default")===e&&!(null==t?void 0:t[n.id])):[]},[em,U.activeSpaceId,F.minimizedIds]),eg=(0,s.useMemo)(()=>em.filter(e=>(e.space_id||"default")===U.activeSpaceId&&F.minimizedIds[e.id]),[em,U.activeSpaceId,F.minimizedIds]),ev=(0,s.useCallback)(e=>{var t,n;let a=em.findIndex(t=>t.id===e.id);return null!=(n=null==(t=F.cardZ)?void 0:t[e.id])?n:10+Math.max(0,a)},[em,F.cardZ]),ex=(0,s.useMemo)(()=>ef.reduce((e,t)=>{if(!e)return t.id;let n=ef.find(t=>t.id===e);return ev(t)>=ev(n)?t.id:e},null),[ef,ev]);return{state:e,chat:n,chatHydrated:S,chatHidden:k,setChatHidden:N,usage:u,setUsage:x,sessionId:j,sessionArtifactId:b,selectedProjectId:C,setSelectedProjectId:L,voiceOpen:M,setVoiceOpen:A,initializing:ei,counts:er,approvalRun:el,activeHermesJobs:eo,pendingApprovals:ec,heartbeatTasks:ed,localActions:eu,localProcesses:eh,runtimeSignalCount:ep,artifacts:em,visibleArtifacts:ef,dockedArtifacts:eg,zForArtifact:ev,frontArtifactId:ex,ctxLimit:P,ctxPct:z,...D,...I,...T,spaces:U,artifactLayout:F,sessions:V,mainAgent:X,runtimeActions:Y,agentWorkingRemote:K.remoteWorking||X.resuming,registerArtifactFrame:es}}();return(0,a.jsx)(x.Provider,{value:n,children:t})}function y(){let e=(0,s.useContext)(x);if(null===e)throw Error("useDashboard must be used inside <DashboardProvider>");return e}},42930:(e,t,n)=>{Promise.resolve().then(n.bind(n,49864))},49864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var a=n(95155),s=n(67909),i=n(41088),r=n(12115),l=n(6504),o=n(5459),c=n(97167),d=n(59077);let u={starting:"Starting engine…",working:"Working…",generating:"Composing…",thinking:"Thinking…",done:"Finishing…"};function h(e){let{thinking:t,status:n,busy:s}=e,[i,l]=(0,r.useState)(!1),o=(0,r.useRef)(null),c=!!(t&&t.trim());if((0,r.useEffect)(()=>{i&&o.current&&(o.current.scrollTop=o.current.scrollHeight)},[t,i]),!c&&!s)return null;let d=u[null==n?void 0:n.phase]||(c?"Thinking":"Working…"),h=(null==n?void 0:n.elapsedMs)?"".concat(Math.round(n.elapsedMs/1e3),"s"):null;return(0,a.jsxs)("div",{className:"thinking-disclosure"+(i?" open":""),children:[(0,a.jsxs)("button",{type:"button",className:"thinking-toggle",onClick:()=>c&&l(e=>!e),"aria-expanded":i,disabled:!c,title:c?"Show reasoning":void 0,children:[(0,a.jsx)("span",{className:"thinking-dot"+(s?" pulsing":""),"aria-hidden":"true"}),(0,a.jsx)("span",{className:"thinking-label",children:d}),h&&(0,a.jsx)("span",{className:"thinking-elapsed",children:h}),c&&(0,a.jsx)("svg",{className:"thinking-caret"+(i?" open":""),width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),i&&c&&(0,a.jsx)("div",{className:"thinking-body",ref:o,children:t})]})}var p=n(93247);let m="madarx:composerHeight";function f(e){return Math.min(Math.max(160,Math.round(.72*window.innerHeight)),Math.max(72,Math.round(e)))}let g=(0,r.memo)(function(){var e,t,n;let{initializing:s,models:u,selectedModel:g,modelOpen:v,setModelOpen:x,usage:j,ctxLimit:y,ctxPct:b,grouped:w,pickModel:k,sessions:N,sessionId:S,openConfig:_,chat:C,mainAgent:E,agentWorkingRemote:L,setChatHidden:M,setVoiceOpen:A}=(0,i.M)(),{prompt:D,setPrompt:I}=(0,p.r)(),T=N.sessionsOpen,R=N.setSessionsOpen,O=N.newSession,P=N.openSession,z=N.deleteSession,W=N.sessions||[],U=E.feedRef,B=E.liveSteps,F=E.busyStartTime,H=E.agentPhase,J=E.liveThinking,q=E.liveStatus,V=E.busy,X=E.command,Y=E.stop,K=E.decideApproval,G=E.agentApprovals||[],Z=E.resumeAgentApproval,$=(0,r.useCallback)(()=>M(!0),[M]),Q=(0,r.useCallback)(()=>A(!0),[A]),ee=(0,r.useRef)(null),et=(0,r.useRef)(null),en=(0,r.useRef)(0),[ea,es]=(0,r.useState)([]),[ei,er]=(0,r.useState)(!1),[el,eo]=(0,r.useState)(null),[ec,ed]=(0,r.useState)(!1),[eu,eh]=(0,r.useState)(!1),[ep,em]=(0,r.useState)(120),[ef,eg]=(0,r.useState)(!1),ev=(0,r.useCallback)(async e=>{let t=Array.from(e||[]).filter(Boolean);t.length&&(eo(null),es(e=>{let n=8-e.length;if(n<=0)return eo("Max ".concat(8," files")),e;let a=t.slice(0,n),s=new FormData;return a.forEach(e=>s.append("files",e)),er(!0),fetch("/api/orchestrator/upload",{method:"POST",body:s}).then(async e=>{let t=await e.json().catch(()=>({}));if(!e.ok)return void eo(t.error||"Upload failed");let n=(t.attachments||[]).map((e,t)=>({...e,previewUrl:"image"===e.kind&&a[t]?URL.createObjectURL(a[t]):null}));es(e=>[...e,...n])}).catch(e=>eo(e.message||"Upload failed")).finally(()=>er(!1)),e}))},[]),ex=(0,r.useCallback)(e=>{es(t=>{let n=t.find(t=>t.id===e);return(null==n?void 0:n.previewUrl)&&URL.revokeObjectURL(n.previewUrl),t.filter(t=>t.id!==e)})},[]),ej=(0,r.useCallback)(()=>{var e,t;if(V||ei)return;let n=null!=(t=null==(e=ee.current)?void 0:e.value)?t:"";(n.trim()||0!==ea.length)&&(I(""),X(n,ea.map(e=>{let{id:t,name:n,mime:a,size:s,kind:i}=e;return{id:t,name:n,mime:a,size:s,kind:i}})),ea.forEach(e=>{e.previewUrl&&URL.revokeObjectURL(e.previewUrl)}),es([]),eo(null))},[V,ei,ea,I,X]),ey=(0,r.useCallback)(e=>{var t;let n=null==(t=e.clipboardData)?void 0:t.items;if(!n)return;let a=[];for(let e of n)if("file"===e.kind){let t=e.getAsFile();t&&a.push(t)}a.length&&(e.preventDefault(),ev(a))},[ev]),eb=(0,r.useCallback)(e=>{var t,n;(null==(n=e.dataTransfer)||null==(t=n.types)?void 0:t.includes("Files"))&&(e.preventDefault(),en.current+=1,ed(!0))},[]),ew=(0,r.useCallback)(e=>{var t,n;(null==(n=e.dataTransfer)||null==(t=n.types)?void 0:t.includes("Files"))&&e.preventDefault()},[]),ek=(0,r.useCallback)(()=>{en.current=Math.max(0,en.current-1),0===en.current&&ed(!1)},[]),eN=(0,r.useCallback)(e=>{var t,n;(null==(n=e.dataTransfer)||null==(t=n.files)?void 0:t.length)&&(e.preventDefault(),en.current=0,ed(!1),ev(e.dataTransfer.files))},[ev]);(0,r.useEffect)(()=>{if(eu)return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&eh(!1)}},[eu]),(0,r.useEffect)(()=>{try{let e=Number(localStorage.getItem(m));e>=72&&em(f(e))}catch(e){}},[]),(0,r.useEffect)(()=>{try{localStorage.setItem(m,String(ep))}catch(e){}},[ep]);let eS=(0,r.useCallback)(e=>{e.preventDefault();let t=e.clientY;eg(!0);let n=e=>em(f(ep+(t-e.clientY))),a=()=>{eg(!1),window.removeEventListener("pointermove",n),window.removeEventListener("pointerup",a)};window.addEventListener("pointermove",n),window.addEventListener("pointerup",a)},[ep]),e_=(0,r.useCallback)(e=>{"ArrowUp"===e.key?(e.preventDefault(),em(e=>f(e+24))):"ArrowDown"===e.key&&(e.preventDefault(),em(e=>f(e-24)))},[]),eC=(0,r.useCallback)(()=>em(120),[]);return(0,r.useEffect)(()=>{function e(){var e,t;null==(e=ee.current)||e.focus(),null==(t=ee.current)||t.scrollIntoView({block:"center",behavior:"smooth"})}function t(){O(),window.setTimeout(e,0)}return window.addEventListener("madarx:focus-composer",e),window.addEventListener("madarx:new-chat",t),()=>{window.removeEventListener("madarx:focus-composer",e),window.removeEventListener("madarx:new-chat",t)}},[O]),(0,a.jsxs)("div",{className:"chat-column"+(ec?" chat-column--dragover":"")+(eu?" chat-column--fullscreen":"")+(ef?" chat-column--resizing":""),onDragEnter:eb,onDragOver:ew,onDragLeave:ek,onDrop:eN,children:[ec&&(0,a.jsx)("div",{className:"chat-dropzone","aria-hidden":"true",children:(0,a.jsxs)("div",{className:"chat-dropzone-inner",children:[(0,a.jsxs)("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M12 16V4M12 4L7 9M12 4l5 5"}),(0,a.jsx)("path",{d:"M4 16v2.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V16"})]}),(0,a.jsx)("span",{children:"Drop files to attach"})]})}),(0,a.jsxs)("section",{className:"chat",children:[(0,a.jsxs)("div",{className:"chat-top",children:[(0,a.jsxs)("div",{className:"model-pill-wrap",children:[(0,a.jsxs)("button",{className:"model-pill",onClick:()=>x(e=>!e),"aria-haspopup":"listbox","aria-expanded":v,title:j.context>0?"Context: ".concat((j.context/1e3).toFixed(1),"K / ").concat((y/1e3).toFixed(0),"K (").concat(b,"%) \xb7 cache read ").concat(j.cache_read||0):"Pick model",children:[(0,a.jsx)("span",{className:"model-name",children:null!=(n=null!=(t=null==(e=u.find(e=>e.id===g))?void 0:e.label)?t:g)?n:"Pick model"}),j.context>0?(0,a.jsxs)("span",{className:"ctx-tokens",children:[(j.context/1e3).toFixed(1),"K \xb7 ",b,"%"]}):j.input+j.output>0?(0,a.jsxs)("span",{className:"ctx-tokens",children:[((j.input+j.output)/1e3).toFixed(1),"K ctx"]}):null,(0,a.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,a.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),v&&(0,a.jsx)("ul",{className:"model-dropdown",role:"listbox",children:w.map(e=>(0,a.jsxs)("li",{className:"model-group",children:[(0,a.jsx)("span",{className:"model-group-label",children:e.label}),(0,a.jsx)("ul",{children:e.items.map(e=>(0,a.jsx)("li",{role:"option","aria-selected":e.id===g,className:"model-option"+(e.id===g?" selected":""),onClick:()=>k(e.id),children:"ollama"===e.engine?e.id:e.label},e.id))})]},e.engine))})]}),(0,a.jsxs)("div",{className:"chat-actions",children:[(0,a.jsxs)("div",{className:"chat-session-menu",children:[(0,a.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:()=>R(e=>!e),title:"Conversations","aria-label":"Conversations","aria-haspopup":"listbox","aria-expanded":T,children:(0,a.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("rect",{x:"3",y:"7",width:"14",height:"14",rx:"3"}),(0,a.jsx)("path",{d:"M7 7V5.5A2.5 2.5 0 0 1 9.5 3H18.5A2.5 2.5 0 0 1 21 5.5V14.5A2.5 2.5 0 0 1 18.5 17H17"})]})}),T&&(0,a.jsxs)("ul",{className:"model-dropdown sessions-dropdown",role:"listbox",children:[(0,a.jsxs)("li",{className:"model-option session-new-option",onClick:O,children:[(0,a.jsx)("span",{children:"+"})," New chat"]}),0===W.length&&(0,a.jsx)("li",{className:"model-option session-empty-option",children:"No saved sessions"}),W.map(e=>{let t=e.total_input_tokens+e.total_output_tokens>0?"".concat((((e.total_input_tokens||0)+(e.total_output_tokens||0))/1e3).toFixed(1),"K"):"0";return(0,a.jsxs)("li",{role:"option","aria-selected":e.id===S,className:"model-option session-option"+(e.id===S?" selected":""),onClick:()=>P(e.id),children:[(0,a.jsx)("span",{className:"session-title",children:e.title||"Untitled chat"}),(0,a.jsx)("span",{className:"session-tokens",children:t}),(0,a.jsx)("button",{onClick:t=>{t.stopPropagation(),z(e.id)},title:"Delete session","aria-label":"Delete session",className:"session-delete-btn",children:"x"})]},e.id)})]})]}),Q?(0,a.jsx)("button",{className:"config-btn voice-launch",style:{marginLeft:0},onClick:Q,title:"Open voice console","aria-label":"Open voice console",children:(0,a.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"9",y:"3",width:"6",height:"12",rx:"3"}),(0,a.jsx)("path",{d:"M5 11a7 7 0 0 0 14 0"}),(0,a.jsx)("line",{x1:"12",y1:"18",x2:"12",y2:"21"}),(0,a.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"})]})}):null,(0,a.jsx)("button",{className:"config-btn"+(eu?" on":""),style:{marginLeft:0},onClick:()=>eh(e=>!e),title:eu?"Exit full screen":"Full screen","aria-label":eu?"Exit full screen":"Full screen","aria-pressed":eu,children:eu?(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5"})}):(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"})})}),$?(0,a.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:$,title:"Minimize","aria-label":"Minimize chat",children:(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M5 12h14"})})}):null,(0,a.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:_,title:"Settings","aria-label":"Agent settings",children:(0,a.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),(0,a.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,a.jsx)("line",{x1:"4",y1:"17",x2:"20",y2:"17"}),(0,a.jsx)("circle",{cx:"15",cy:"7",r:"2",fill:"currentColor",stroke:"none"}),(0,a.jsx)("circle",{cx:"9",cy:"12",r:"2",fill:"currentColor",stroke:"none"}),(0,a.jsx)("circle",{cx:"17",cy:"17",r:"2",fill:"currentColor",stroke:"none"})]})})]})]}),(0,a.jsxs)("div",{className:"feed",ref:U,children:[s?(0,a.jsxs)("div",{className:"feed-skeleton","aria-hidden":"true",children:[(0,a.jsxs)("div",{className:"msg agent msg--skel",children:[(0,a.jsx)("div",{className:"skel sk-line sk-line--w90"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w70"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w55"})]}),(0,a.jsxs)("div",{className:"msg user msg--skel",children:[(0,a.jsx)("div",{className:"skel sk-line sk-line--w65"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w40"})]}),(0,a.jsxs)("div",{className:"msg agent msg--skel",children:[(0,a.jsx)("div",{className:"skel sk-line sk-line--w85"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w50"})]})]}):C.map((e,t)=>{var n,s;let i="agent"===e.role,r=i&&e.streaming?(n=e.text)?n.replace(/```madarx-action[\s\S]*?```/gi,"").replace(/```madarx-action[\s\S]*$/i,"").replace(/```html[\s\S]*?```/gi,"").replace(/```html[\s\S]*$/i,"").replace(/<!doctype html[\s\S]*$/i,"").replace(/<html[\s>][\s\S]*$/i,"").trim():"":e.text,u=i&&(e.building||e.streaming&&!r&&(s=e.text,/```html|<!doctype html|<html[\s>]/i.test(s||""))),h=i&&Array.isArray(e.tools)&&e.tools.length>0;return!i||r||u||h?(0,a.jsxs)("div",{className:"msg "+e.role+(e.streaming?" msg--streaming":"")+(u?" msg--building":""),children:[u?(0,a.jsxs)("div",{className:"artifact-building","aria-live":"polite",children:[(0,a.jsx)("span",{className:"artifact-building-orb","aria-hidden":"true"}),(0,a.jsxs)("span",{className:"artifact-building-label",children:["Designing the page",(0,a.jsxs)("span",{className:"artifact-building-dots",children:[(0,a.jsx)("i",{children:"."}),(0,a.jsx)("i",{children:"."}),(0,a.jsx)("i",{children:"."})]})]})]}):(0,a.jsx)(l.oz,{remarkPlugins:[o.A],children:r}),Array.isArray(e.attachments)&&e.attachments.length>0&&(0,a.jsx)("div",{className:"msg-attachments",children:e.attachments.map(e=>(0,a.jsxs)("span",{className:"msg-attach-chip",title:e.name,children:[(0,a.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),(0,a.jsx)("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"})]}),e.name]},e.id))}),i&&Array.isArray(e.tools)&&e.tools.length>0&&(0,a.jsx)("div",{className:"tool-steps tool-steps--restored",children:e.tools.map((e,t)=>(0,a.jsxs)("div",{className:"tool-step tool-step--done",children:[(0,a.jsx)("span",{className:"tool-step-icon","aria-hidden":"true",children:(0,a.jsx)(c.Sr,{})}),(0,a.jsx)("code",{className:"tool-step-name",children:(0,d.U_)(e.name)})]},t))})]},t):null}),(V||J&&J.trim())&&(0,a.jsx)(h,{thinking:J,status:q,busy:V}),B.length>0&&(0,a.jsxs)("div",{className:"tool-steps",children:[B.map(e=>{let t="claude_code_cli"===e.name||"codex_cli"===e.name,n=(0,d.bX)(e.name,e.input),s="awaiting_approval"===e.status,i="number"==typeof e.durationMs&&e.durationMs>0?(0,d.wb)(e.durationMs):null,r=e.preview?String(e.preview).split("\n").find(e=>e.trim()):null;return(0,a.jsxs)("div",{className:"tool-step tool-step--".concat(e.status)+(t?" tool-step--cli":""),children:[(0,a.jsxs)("span",{className:"tool-step-icon","aria-hidden":"true",children:["running"===e.status&&(0,a.jsx)(c.Nl,{}),"done"===e.status&&(0,a.jsx)(c.Sr,{}),"approved"===e.status&&(0,a.jsx)(c.Sr,{}),("error"===e.status||"denied"===e.status)&&(0,a.jsx)(c.wx,{}),s&&(0,a.jsx)("span",{style:{display:"inline-block",width:8,height:8,borderRadius:4,background:"#c2452a"}})]}),!t&&(0,a.jsx)("code",{className:"tool-step-name",children:(0,d.U_)(e.name)}),n&&(0,a.jsx)("span",{className:"tool-step-sub",children:n}),r&&"done"===e.status&&(0,a.jsx)("span",{className:"tool-step-preview",title:e.preview,children:r.slice(0,64)}),i&&!s&&(0,a.jsx)("span",{className:"tool-step-dur",children:i}),s&&e.approval_id?(0,a.jsxs)("span",{className:"tool-step-approve",style:{marginLeft:"auto",display:"inline-flex",gap:6},children:[(0,a.jsx)("button",{type:"button",onClick:()=>K(e.approval_id,"approved",e.name),style:{appearance:"none",border:0,background:"#c2452a",color:"#fff",padding:"4px 10px",borderRadius:999,font:"600 11.5px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Approve"}),(0,a.jsx)("button",{type:"button",onClick:()=>K(e.approval_id,"denied",e.name),style:{appearance:"none",border:"1px solid rgba(17,19,24,.16)",background:"#fff",color:"#313740",padding:"4px 10px",borderRadius:999,font:"600 11.5px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Deny"})]}):null]},e.id)}),V&&F&&("synthesis"===H||"tool"===H)&&(0,a.jsx)("div",{className:"tool-step-elapsed",children:(0,a.jsx)(c.YE,{startTime:F})})]}),G.length>0&&(0,a.jsx)("div",{className:"agent-approvals",children:G.map(e=>{let t="pending"===e.status,n="resuming"===e.status,s="done"===e.status||"approved"===e.status,i="denied"===e.status,r="error"===e.status;return(0,a.jsxs)("div",{className:"agent-approval-card",style:{margin:"8px 0",padding:"12px 14px",borderRadius:12,border:"1px solid rgba(17,19,24,.12)",background:"#fff",display:"flex",flexDirection:"column",gap:8},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,a.jsx)("span",{style:{display:"inline-block",width:8,height:8,borderRadius:4,background:t?"#c2452a":s?"#2f9e44":"#9a968d"}}),(0,a.jsxs)("strong",{style:{font:"600 13px/1.3 ui-sans-serif,system-ui"},children:[e.agent_name," needs your approval"]})]}),(0,a.jsx)("div",{style:{font:"400 12.5px/1.45 ui-sans-serif,system-ui",color:"#5b606b"},children:e.summary||"Approve to run ".concat(e.tool_name,".")}),t&&(0,a.jsxs)("div",{style:{display:"inline-flex",gap:6},children:[(0,a.jsx)("button",{type:"button",onClick:()=>Z(e.approval_id,"approved"),style:{appearance:"none",border:0,background:"#c2452a",color:"#fff",padding:"6px 14px",borderRadius:999,font:"600 12px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Approve & continue"}),(0,a.jsx)("button",{type:"button",onClick:()=>Z(e.approval_id,"denied"),style:{appearance:"none",border:"1px solid rgba(17,19,24,.16)",background:"#fff",color:"#313740",padding:"6px 14px",borderRadius:999,font:"600 12px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Deny"})]}),n&&(0,a.jsx)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#c2452a"},children:"Running…"}),s&&(0,a.jsx)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#2f9e44"},children:"Approved — done."}),i&&(0,a.jsx)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#9a968d"},children:"Denied."}),r&&(0,a.jsxs)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#c2452a"},children:["Couldn’t continue: ",String(e.error||"error")]})]},e.approval_id)})}),V&&0===B.length&&!q&&!(J&&J.trim())&&(0,a.jsxs)("div",{className:"typing-indicator",children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}),!V&&L&&(0,a.jsxs)("div",{className:"agent-resume-banner","aria-live":"polite",children:[(0,a.jsx)("span",{className:"agent-resume-orb","aria-hidden":"true"}),(0,a.jsxs)("span",{className:"agent-resume-label",children:["Agent still working",(0,a.jsxs)("span",{className:"artifact-building-dots",children:[(0,a.jsx)("i",{children:"."}),(0,a.jsx)("i",{children:"."}),(0,a.jsx)("i",{children:"."})]})]}),(0,a.jsx)("span",{className:"agent-resume-sub",children:"picking up where you left off"})]})]})]}),(0,a.jsx)("div",{className:"composer-resizer",role:"separator","aria-orientation":"horizontal","aria-label":"Resize the message input","aria-valuenow":ep,tabIndex:0,onPointerDown:eS,onKeyDown:e_,onDoubleClick:eC,title:"Drag to resize \xb7 double-click to reset",children:(0,a.jsx)("span",{className:"composer-resizer-grip","aria-hidden":"true"})}),(0,a.jsx)("section",{className:"composer-panel",style:{height:ep},"aria-label":"Message input",children:(0,a.jsxs)("form",{className:"composer",onSubmit:e=>{e.preventDefault(),ej()},children:[(0,a.jsx)("input",{ref:et,type:"file",multiple:!0,hidden:!0,accept:"image/png,image/jpeg,image/gif,image/webp,application/pdf,text/*,.md,.markdown,.csv,.tsv,.json,.jsonl,.log,.yaml,.yml,.xml,.html,.css,.js,.jsx,.ts,.tsx,.mjs,.cjs,.py,.rb,.go,.rs,.java,.c,.h,.cpp,.cs,.php,.sh,.sql,.toml,.ini",onChange:e=>{ev(e.target.files),e.target.value=""}}),(0,a.jsxs)("div",{className:"composer-field",children:[(ea.length>0||ei||el)&&(0,a.jsxs)("div",{className:"composer-attachments",children:[ea.map(e=>{var t;return(0,a.jsxs)("span",{className:"attach-chip",title:"".concat(e.name," \xb7 ").concat((t=e.size)||0===t?t<1024?"".concat(t," B"):t<1048576?"".concat((t/1024).toFixed(0)," KB"):"".concat((t/1024/1024).toFixed(1)," MB"):""),children:[e.previewUrl?(0,a.jsx)("img",{className:"attach-chip-thumb",src:e.previewUrl,alt:""}):(0,a.jsxs)("svg",{className:"attach-chip-icon",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),(0,a.jsx)("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"})]}),(0,a.jsx)("span",{className:"attach-chip-name",children:e.name}),(0,a.jsx)("button",{type:"button",className:"attach-chip-x",onClick:()=>ex(e.id),"aria-label":"Remove ".concat(e.name),children:(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:(0,a.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]},e.id)}),ei&&(0,a.jsx)("span",{className:"attach-uploading",children:"Uploading…"}),el&&(0,a.jsx)("span",{className:"attach-error",children:el})]}),(0,a.jsx)("textarea",{ref:ee,"data-madarx-composer":"true",value:D,onChange:e=>I(e.target.value),onPaste:ey,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),ej())},placeholder:"Start fresh: ask the main agent to create the first agent, report, schedule, or UI task…",rows:3})]}),(0,a.jsxs)("div",{className:"composer-actions",children:[(0,a.jsx)("button",{type:"button",className:"attach-btn",onClick:()=>{var e;return null==(e=et.current)?void 0:e.click()},disabled:V,title:"Attach files","aria-label":"Attach files",children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M21.4 11.05 12.25 20.2a5.5 5.5 0 0 1-7.78-7.78l9.2-9.2a3.67 3.67 0 0 1 5.18 5.18l-9.2 9.19a1.83 1.83 0 0 1-2.59-2.59l8.49-8.48"})})}),V?(0,a.jsx)("button",{type:"button",className:"send-btn send-btn--stop",onClick:e=>{e.preventDefault(),Y&&Y()},"aria-label":"Stop main agent",title:"Stop main agent",children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",children:(0,a.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1.5",fill:"currentColor"})})}):(0,a.jsx)("button",{className:"send-btn",disabled:!D.trim()&&0===ea.length||ei,"aria-label":"Send",children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",children:(0,a.jsx)("path",{d:"M9 14V4M9 4L4.5 8.5M9 4L13.5 8.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})})]})});var v=n(47650),x=n(58219);function j(){return(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,a.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),(0,a.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})}function y(e){var t;let{spaceId:n,spaceName:s,onClose:i}=e,[l,o]=(0,r.useState)([]),[c,d]=(0,r.useState)(!0),[u,h]=(0,r.useState)(!1),[p,m]=(0,r.useState)(""),[f,g]=(0,r.useState)(null),[x,y]=(0,r.useState)(7),[b,w]=(0,r.useState)(50),[k,N]=(0,r.useState)(!1),[S,_]=(0,r.useState)(!1),[C,E]=(0,r.useState)(null),[L,M]=(0,r.useState)("org"),[A,D]=(0,r.useState)(!1),[I,T]=(0,r.useState)(!1);(0,r.useEffect)(()=>{T(!0)},[]),(0,r.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]);let R=window.location.origin,O=(0,r.useCallback)(e=>"".concat(R,"/share/space/").concat(e),[R]),P=(0,r.useCallback)(async()=>{d(!0);try{let[e,t]=await Promise.all([fetch("/api/dashboard/spaces/".concat(n,"/share-link"),{cache:"no-store"}),fetch("/api/shared/spaces/status?local_space_id=".concat(encodeURIComponent(n),"&space_type=dashboard_space"),{cache:"no-store"})]),a=await e.json().catch(()=>({}));e.ok&&o(a.data||[]);let s=await t.json().catch(()=>({}));t.ok&&(_(!!s.cloud_ready),E(s.status||null))}catch(e){m("Failed to load share state.")}finally{d(!1)}},[n]);async function z(e){e.preventDefault(),h(!0),m("");try{let e=await fetch("/api/dashboard/spaces/".concat(n,"/share-link"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({expires_in_days:Number(x)||null,max_views:Number(b)||null,require_email_otp:k})}),t=await e.json().catch(()=>({}));if(!e.ok)return void m(t.error||"Failed to create link.");await P()}catch(e){m("Failed to create link.")}finally{h(!1)}}async function W(e){try{(await fetch("/api/dashboard/spaces/".concat(n,"/share-link/").concat(e),{method:"DELETE"})).ok&&o(t=>t.filter(t=>t.id!==e))}catch(e){}}async function U(e,t){try{await navigator.clipboard.writeText(O(e)),g(t),setTimeout(()=>g(null),1500)}catch(e){}}async function B(){D(!0),m("");try{let e=await fetch("/api/shared/spaces/publish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({space_type:"dashboard_space",space_id:n,visibility:L})}),t=await e.json().catch(()=>({}));if(!e.ok)return void m("shared_cloud_not_configured"===t.error?"Supabase cloud is not configured.":t.error||"Publish failed.");E(t.status||null)}catch(e){m("Publish failed.")}finally{D(!1)}}async function F(){D(!0),m("");try{let e=await fetch("/api/shared/spaces/unpublish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({local_space_id:n,space_type:"dashboard_space"})}),t=await e.json().catch(()=>({}));if(!e.ok)return void m(t.error||"Unpublish failed.");E(t.status||null)}catch(e){m("Unpublish failed.")}finally{D(!1)}}(0,r.useEffect)(()=>{n&&P()},[n,P]);let H=(null==C?void 0:C.shared)||(null==C?void 0:C.status)==="published";return I?(0,v.createPortal)((0,a.jsx)("div",{className:"space-share-overlay",onClick:i,children:(0,a.jsxs)("div",{className:"space-share-modal",onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Share ".concat(s),children:[(0,a.jsxs)("div",{className:"ssm-head",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"ssm-eyebrow",children:"Share space"}),(0,a.jsx)("h2",{className:"ssm-title",children:s})]}),(0,a.jsx)("button",{type:"button",className:"ssm-close",onClick:i,"aria-label":"Close",children:(0,a.jsx)(j,{})})]}),p?(0,a.jsx)("div",{className:"ssm-error",children:p}):null,(0,a.jsxs)("section",{className:"ssm-section",children:[(0,a.jsx)("h3",{className:"ssm-section-title",children:"Public link"}),(0,a.jsx)("p",{className:"ssm-note",children:"Anyone with the link can view every artifact in this space. New and moved-in artifacts are included automatically."}),(0,a.jsxs)("form",{className:"ssm-form",onSubmit:z,children:[(0,a.jsxs)("label",{className:"ssm-field",children:[(0,a.jsx)("span",{children:"Expires in (days)"}),(0,a.jsx)("input",{type:"number",min:"0",max:"90",value:x,onChange:e=>y(e.target.value)})]}),(0,a.jsxs)("label",{className:"ssm-field",children:[(0,a.jsx)("span",{children:"Max views"}),(0,a.jsx)("input",{type:"number",min:"0",value:b,onChange:e=>w(e.target.value)})]}),(0,a.jsxs)("label",{className:"ssm-check",children:[(0,a.jsx)("input",{type:"checkbox",checked:k,onChange:e=>N(e.target.checked)}),(0,a.jsx)("span",{children:"Require email verification"})]}),(0,a.jsx)("button",{type:"submit",className:"ssm-btn ssm-btn-primary",disabled:u,children:u?"Creating…":"Create link"})]}),(0,a.jsxs)("div",{className:"ssm-links",children:[c?(0,a.jsx)("div",{className:"ssm-muted",children:"Loading…"}):null,c||0!==l.length?null:(0,a.jsx)("div",{className:"ssm-muted",children:"No active links."}),l.map(e=>(0,a.jsxs)("div",{className:"ssm-link",children:[(0,a.jsxs)("div",{className:"ssm-link-main",children:[(0,a.jsx)("input",{className:"ssm-link-url",readOnly:!0,value:O(e.token),onFocus:e=>e.target.select()}),(0,a.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm",onClick:()=>U(e.token,e.id),children:f===e.id?"Copied":"Copy"}),(0,a.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm ssm-btn-danger",onClick:()=>W(e.id),children:"Revoke"})]}),(0,a.jsxs)("div",{className:"ssm-link-meta",children:["Expires ",function(e){if(!e)return"never";try{return new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}catch(t){return e}}(e.expires_at)," \xb7 ",e.access_count,null!=e.max_views?"/".concat(e.max_views):""," views",e.require_email_otp?" \xb7 email-gated":""]})]},e.id))]})]}),S?(0,a.jsxs)("section",{className:"ssm-section",children:[(0,a.jsx)("h3",{className:"ssm-section-title",children:"Org workspace"}),(0,a.jsx)("p",{className:"ssm-note",children:"Publish this space to your organization. Only signed-in teammates can see it."}),H?(0,a.jsxs)("div",{className:"ssm-cloud-status",children:[(0,a.jsx)("span",{className:"ssm-badge ssm-badge-on",children:"Published"}),(0,a.jsxs)("span",{className:"ssm-muted",children:[(null==C?void 0:C.visibility)||"org"," \xb7 ",null!=(t=null==C?void 0:C.resource_count)?t:0," artifacts indexed"]}),(0,a.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm ssm-btn-danger",onClick:F,disabled:A,children:A?"…":"Unpublish"})]}):(0,a.jsxs)("div",{className:"ssm-form",children:[(0,a.jsxs)("label",{className:"ssm-field",children:[(0,a.jsx)("span",{children:"Visibility"}),(0,a.jsxs)("select",{value:L,onChange:e=>M(e.target.value),children:[(0,a.jsx)("option",{value:"org",children:"Whole organization"}),(0,a.jsx)("option",{value:"team",children:"Team"}),(0,a.jsx)("option",{value:"private",children:"Private"})]})]}),(0,a.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-primary",onClick:B,disabled:A,children:A?"Publishing…":"Publish to org"})]})]}):null]})}),document.body):null}function b(e){let{space:t,active:n,count:s,onActivate:i,onRename:l,onDelete:o,onShare:c,isEmpty:d,canDelete:u,onMoveArtifactHere:h,dragOverSpaceId:p,setDragOverSpaceId:m,pointerDropSpaceId:f}=e,[g,v]=(0,r.useState)(!1),[x,j]=(0,r.useState)(t.name),[y,b]=(0,r.useState)(!1),w=(0,r.useRef)(null),k=(0,r.useRef)(null);function N(){v(!1);let e=x.trim();e&&e!==t.name?l(t.id,e):j(t.name)}return(0,r.useEffect)(()=>{j(t.name)},[t.name]),(0,r.useEffect)(()=>{if(y)return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e);function e(e){var t;(null==(t=w.current)?void 0:t.contains(e.target))||b(!1)}},[y]),(0,r.useEffect)(()=>{if(g){var e,t;null==(e=k.current)||e.focus(),null==(t=k.current)||t.select()}},[g]),(0,a.jsxs)("div",{"data-space-id":t.id,className:"space-chip"+(n?" is-active":"")+(p===t.id||f===t.id?" is-drop-target":""),onClick:()=>{g||i(t.id)},onDoubleClick:e=>{e.stopPropagation(),v(!0)},onContextMenu:e=>{e.preventDefault(),b(!0)},onDragOver:e=>{e.preventDefault(),m(t.id)},onDragLeave:()=>m(e=>e===t.id?null:e),onDrop:e=>{e.preventDefault();let n=e.dataTransfer.getData("text/x-artifact-id");n&&h(n,t.id),m(null)},title:g?"":"Click to switch \xb7 Double-click to rename \xb7 Right-click for more",children:[g?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{ref:k,className:"space-chip-input",value:x,onChange:e=>j(e.target.value),onBlur:N,onKeyDown:e=>{"Enter"===e.key?N():"Escape"===e.key&&(v(!1),j(t.name))},maxLength:32}),d&&u&&(0,a.jsx)("button",{type:"button",className:"space-chip-action space-chip-action--delete",onMouseDown:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),o(t.id)},"aria-label":"Delete ".concat(t.name),title:"Delete empty space",tabIndex:-1,children:(0,a.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",children:[(0,a.jsx)("line",{x1:"3.5",y1:"3.5",x2:"12.5",y2:"12.5"}),(0,a.jsx)("line",{x1:"12.5",y1:"3.5",x2:"3.5",y2:"12.5"})]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"space-chip-name",children:t.name}),s>0&&(0,a.jsx)("span",{className:"space-chip-count",children:s})]}),y&&(0,a.jsxs)("div",{className:"space-chip-menu",ref:w,onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{type:"button",onClick:()=>{b(!1),v(!0)},children:"Rename"}),(0,a.jsx)("button",{type:"button",onClick:()=>{b(!1),c(t.id)},children:"Share"}),(0,a.jsxs)("button",{type:"button",disabled:!u||!d,onClick:()=>{b(!1),u&&d&&o(t.id)},title:d?u?"Delete this empty space":"Cannot delete the last space":"Move or delete its artifacts first",children:["Delete",d?"":" (not empty)"]})]})]})}function w(e){let{artifact:t,spaces:n,activeSpaceId:s,hoveredDockId:i,setHoveredDockId:c,onRestore:d,onMove:u}=e,h=(0,x.o0)(t.kind),[p,m]=(0,r.useState)(!1),f=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(p)return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e);function e(e){var t;(null==(t=f.current)?void 0:t.contains(e.target))||m(!1)}},[p]);let g=n.filter(e=>e.id!==s);return(0,a.jsxs)("div",{className:"dock-item",onMouseEnter:()=>c(t.id),onMouseLeave:()=>c(e=>e===t.id?null:e),onContextMenu:e=>{e.preventDefault(),m(!0)},draggable:!0,onDragStart:e=>{e.dataTransfer.setData("text/x-artifact-id",t.id),e.dataTransfer.effectAllowed="move"},children:[(0,a.jsx)("button",{type:"button",className:"dock-card",onClick:()=>d(t.id),"aria-label":"Restore: ".concat(t.title),title:t.title||"Artifact",children:(0,a.jsx)("div",{className:"dock-thumb",children:t.content?h?(0,a.jsx)("iframe",{srcDoc:(0,x.sV)(t.content),sandbox:"allow-same-origin",title:"Thumbnail: ".concat(t.title),tabIndex:-1,"aria-hidden":"true",loading:"lazy"}):(0,a.jsx)("div",{className:"win-md",children:(0,a.jsx)(l.oz,{remarkPlugins:[o.A],children:t.content})}):(0,a.jsx)("div",{className:"dock-thumb-empty",children:t.kind||"doc"})})}),i===t.id&&!p&&(0,a.jsxs)("div",{className:"dock-preview",role:"tooltip",children:[(0,a.jsxs)("div",{className:"dock-preview-title",children:[(0,a.jsx)("span",{className:"artifact-kind-badge "+(t.kind||"text"),children:t.kind}),(0,a.jsx)("b",{children:t.title||"Artifact"})]}),(0,a.jsx)("div",{className:"dock-preview-body"+(h?" is-html":" is-md"),children:h?(0,a.jsx)("iframe",{srcDoc:(0,x.sV)(t.content),sandbox:"allow-scripts allow-same-origin",title:"Preview: ".concat(t.title),tabIndex:-1,"aria-hidden":"true"}):(0,a.jsx)("div",{className:"win-md",children:(0,a.jsx)(l.oz,{remarkPlugins:[o.A],children:t.content||""})})})]}),p&&(0,a.jsxs)("div",{className:"dock-item-menu",ref:f,onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("div",{className:"dock-item-menu-label",children:"Move to space"}),0===g.length?(0,a.jsx)("div",{className:"dock-item-menu-empty",children:"No other spaces"}):g.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{u(t.id,e.id),m(!1)},children:e.name},e.id)),(0,a.jsx)("div",{className:"dock-item-menu-divider"}),(0,a.jsx)("button",{type:"button",onClick:()=>{d(t.id),m(!1)},children:"Restore"})]})]})}function k(e){let{spaces:t,activeSpaceId:n,setActiveSpaceId:s,createSpace:i,renameSpace:l,deleteSpace:o,moveArtifactToSpace:c,artifacts:d,dockedArtifacts:u,minimizedIds:h,hoveredDockId:p,setHoveredDockId:m,toggleMinimize:f,pointerDropSpaceId:g}=e,[v,x]=(0,r.useState)(null),[j,k]=(0,r.useState)(null),N=(0,r.useMemo)(()=>{let e=new Map;for(let n of t)e.set(n.id,[]);for(let t of d||[]){let n=t.space_id||"default";e.has(n)&&e.get(n).push(t.id)}return e},[t,d]);function S(e,t){c(e,t)}return(0,a.jsxs)("div",{className:"artifact-dock",role:"toolbar","aria-label":"Spaces and minimized artifacts",children:[(0,a.jsxs)("div",{className:"dock-spaces",children:[t.map(e=>(0,a.jsx)(b,{space:e,active:e.id===n,count:(N.get(e.id)||[]).filter(e=>!h[e]).length,isEmpty:0===(N.get(e.id)||[]).length,onActivate:s,onRename:l,onDelete:o,onShare:k,canDelete:t.length>1,onMoveArtifactHere:S,dragOverSpaceId:v,setDragOverSpaceId:x,pointerDropSpaceId:g},e.id)),(0,a.jsx)("button",{type:"button",className:"space-add",onClick:()=>i(),"aria-label":"Create new space",title:"New space",children:(0,a.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[(0,a.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,a.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}),u.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"dock-divider","aria-hidden":"true"}),(0,a.jsx)("div",{className:"dock-items",children:u.map(e=>(0,a.jsx)(w,{artifact:e,spaces:t,activeSpaceId:n,hoveredDockId:p,setHoveredDockId:m,onRestore:f,onMove:S},e.id))})]}),j?(0,a.jsx)(y,{spaceId:j,spaceName:(t.find(e=>e.id===j)||{}).name||"Space",onClose:()=>k(null)}):null]})}function N(e){let{onActivate:t}=e,n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=n.current;if(!e)return;let t=e=>(0,x.x2)(e);return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[]),(0,a.jsx)("div",{ref:n,className:"iframe-focus-shield","aria-hidden":"true",onPointerDown:e=>{e.preventDefault(),e.stopPropagation(),t()}})}function S(e){let{confirmDeleteId:t,setConfirmDeleteId:n,deleteArtifactById:s,setMoveMenu:r}=e,{visibleArtifacts:c,frontArtifactId:d,zForArtifact:u,artifactLayout:h,registerArtifactFrame:p}=(0,i.M)(),m=h.setBoardEl,f=h.getLayout,g=h.draggingId,v=h.resizingId,j=h.selectedArtifactId,y=h.toggleMinimize,b=h.setFullscreenId,w=h.downloadArtifact,k=h.startDrag,S=h.startResize,_=h.bringToFront;return(0,a.jsx)("div",{ref:m,className:"canvas-board canvas-board--docked",children:c.map((e,i)=>{let c=f(e.id,i),h=u(e),m=(0,x.o0)(e.kind),C=e.id===d;return(0,a.jsxs)("div",{className:"artifact-window-wrap"+(g===e.id?" is-dragging":""),"data-dragging":g===e.id?"true":"false","data-resizing":v===e.id?"true":"false",style:{transform:"translate3d(".concat(c.x,"px, ").concat(c.y,"px, 0)"),width:c.width,height:c.height,zIndex:h},onPointerDown:()=>_(e.id),children:[(0,a.jsxs)("div",{className:"window artifact-window"+(e.id===j?" artifact-window--new":""),children:[(0,a.jsx)("div",{className:"winbar",onPointerDown:t=>k(t,e.id),onDoubleClick:t=>{t.target.closest("button, i, .confirm-label")||b(e.id)},onContextMenu:t=>{t.target.closest("button, i, .confirm-label")||(t.preventDefault(),r({artifactId:e.id,x:t.clientX,y:t.clientY}))},title:"Drag onto a space chip to move \xb7 Right-click for more \xb7 Double-click to expand",children:t===e.id?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"confirm-label",children:"Delete permanently?"}),(0,a.jsx)("button",{className:"confirm-cancel",onClick:()=>n(null),children:"Cancel"}),(0,a.jsx)("button",{className:"confirm-delete",onClick:()=>s(e.id),children:"Delete"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("i",{className:"dot-close",onClick:()=>n(e.id),title:"Delete"}),(0,a.jsx)("i",{className:"dot-minimize",onClick:()=>y(e.id),title:"Minimize"}),(0,a.jsx)("i",{className:"dot-zoom",onClick:()=>b(e.id),title:"Expand"}),(0,a.jsx)("b",{children:e.title||"Artifact"}),(0,a.jsx)("span",{className:"artifact-kind-badge "+(e.kind||"text"),children:e.kind}),(0,a.jsx)("button",{className:"winbar-dl",onClick:()=>w(e),title:(0,x.o0)(e.kind)?"Download .html":"Download .md",children:(0,a.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M8 2v9M4 7l4 4 4-4"}),(0,a.jsx)("line",{x1:"2",y1:"14",x2:"14",y2:"14"})]})})]})}),(0,a.jsxs)("div",{className:"win-content",onWheelCapture:x.qE,children:[g===e.id&&(0,a.jsx)("div",{className:"drag-blocker"}),v===e.id&&(0,a.jsx)("div",{className:"resize-blocker"}),m?(0,a.jsxs)(a.Fragment,{children:[!C&&(0,a.jsx)(N,{onActivate:()=>_(e.id)}),(0,a.jsx)("iframe",{ref:(0,x.Jw)(p),srcDoc:(0,x.sV)(e.content),sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",title:e.title,onLoad:x.MZ})]}):(0,a.jsx)("div",{className:"win-md",children:(0,a.jsx)(l.oz,{remarkPlugins:[o.A],children:e.content||""})})]})]}),["nw","n","ne","e","se","s","sw","w"].map(t=>(0,a.jsx)("div",{className:"resize-edge resize-"+t,onPointerDown:n=>S(n,e.id,t)},t))]},e.id)})})}function _(e){let{artifact:t,docked:n,onClose:s,confirmDeleteId:i,setConfirmDeleteId:c,deleteArtifactById:d,toggleMinimize:u,downloadArtifact:h,registerArtifactFrame:p}=e,[m,f]=(0,r.useState)("enter"),g=(0,r.useRef)(!1);function v(e){g.current||(g.current=!0,f("exit"),setTimeout(()=>{"function"==typeof e&&e(),s()},260))}return(0,r.useEffect)(()=>{let e={first:0,second:0};return e.first=requestAnimationFrame(()=>{e.second=requestAnimationFrame(()=>f("open"))}),()=>{e.first&&cancelAnimationFrame(e.first),e.second&&cancelAnimationFrame(e.second)}},[]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&v()}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,a.jsxs)("div",{className:"artifact-fs"+(n?" artifact-fs--docked":""),"data-phase":m,children:[(0,a.jsx)("div",{className:"winbar artifact-fs-bar",onDoubleClick:e=>{e.target.closest("button, i, .confirm-label")||v()},title:"Double-click to exit fullscreen",children:i===t.id?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"confirm-label",children:"Delete permanently?"}),(0,a.jsx)("button",{className:"confirm-cancel",onClick:()=>c(null),children:"Cancel"}),(0,a.jsx)("button",{className:"confirm-delete",onClick:()=>v(()=>d(t.id)),children:"Delete"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("i",{className:"dot-close",onClick:()=>c(t.id),title:"Delete"}),(0,a.jsx)("i",{className:"dot-minimize",onClick:()=>v(()=>u(t.id)),title:"Minimize"}),(0,a.jsx)("i",{className:"dot-zoom",onClick:()=>v(),title:"Exit fullscreen"}),(0,a.jsx)("b",{children:t.title||"Artifact"}),(0,a.jsx)("span",{className:"artifact-kind-badge "+(t.kind||"text"),children:t.kind}),(0,a.jsx)("button",{className:"winbar-dl",onClick:()=>h(t),title:(0,x.o0)(t.kind)?"Download .html":"Download .md",children:(0,a.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M8 2v9M4 7l4 4 4-4"}),(0,a.jsx)("line",{x1:"2",y1:"14",x2:"14",y2:"14"})]})})]})}),(0,a.jsx)("div",{className:"artifact-fs-content",children:(0,x.o0)(t.kind)?(0,a.jsx)("iframe",{ref:(0,x.Jw)(p),srcDoc:(0,x.sV)(t.content),sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",title:t.title,onLoad:x.MZ}):(0,a.jsx)("div",{className:"win-md",children:(0,a.jsx)(l.oz,{remarkPlugins:[o.A],children:t.content||""})})})]})}function C(){let{mainAgent:e,runtimeActions:t,runtimeSignalCount:n,pendingApprovals:s,heartbeatTasks:r,localProcesses:l,localActions:o}=(0,i.M)(),u=t.runtimeOpen,h=t.setRuntimeOpen,p=e.busy,m=e.hasBgActivity,f=e.bgAgentList,g=e.busyStartTime,v=e.agentPhase,x=e.liveSteps,j=t.decideGenericApproval,y=t.approvalBusyId,b=t.ensureOpsAgentAction,w=t.processHeartbeatOnceAction,k=t.runtimeActionBusy;return(0,a.jsxs)("div",{className:"runtime-menu-wrap",children:[(0,a.jsxs)("button",{className:"runtime-menu-btn"+(u?" on":"")+(p||m?" runtime-menu-btn--busy":""),onClick:()=>h(e=>!e),title:p?"Main agent is working — click to see live activity":m?"".concat(f.filter(e=>"running"===e.status).length," background agent(s) working"):"Runtime activity","aria-label":"Runtime activity","aria-expanded":u,children:[(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M4 12h4l2-7 4 14 2-7h4"})}),(p||m)&&(0,a.jsx)("span",{className:"runtime-busy-dot","aria-hidden":"true"}),!p&&!m&&n>0&&(0,a.jsx)("span",{children:n})]}),u&&(0,a.jsxs)("div",{className:"runtime-popover",children:[(0,a.jsxs)("div",{className:"runtime-popover-head",children:[(0,a.jsx)("b",{children:"Operator Command Center"}),(0,a.jsx)("small",{children:"Approvals, running work, failed runs, and task queues"}),(0,a.jsxs)("div",{className:"runtime-quick-links","aria-label":"Operator quick links",children:[(0,a.jsx)("a",{href:"/approvals",children:"Approvals"}),(0,a.jsx)("a",{href:"/tasks",children:"Tasks"}),(0,a.jsx)("a",{href:"/activity",children:"Activity"}),(0,a.jsx)("a",{href:"/runtime",children:"Runtime"})]})]}),p&&(0,a.jsxs)("div",{className:"runtime-live-section",children:[(0,a.jsxs)("div",{className:"runtime-live-header",children:[(0,a.jsxs)("div",{className:"runtime-live-title-row",children:[(0,a.jsx)("span",{className:"runtime-section-title",children:"Main Agent"}),(0,a.jsxs)("span",{className:"runtime-live-phase",children:["thinking"===v&&"thinking","responding"===v&&"responding","tool"===v&&"using tools","synthesis"===v&&"synthesizing"]})]}),(0,a.jsxs)("div",{className:"runtime-live-meta",children:[g&&(0,a.jsx)("span",{className:"runtime-live-elapsed",children:(0,a.jsx)(c.YE,{startTime:g})}),(0,a.jsxs)("span",{className:"runtime-live-badge",children:[(0,a.jsx)("span",{className:"runtime-live-badge-dot","aria-hidden":"true"}),"Live"]})]})]}),x.length>0?(0,a.jsx)("div",{className:"runtime-live-steps",children:x.map(e=>(0,a.jsxs)("div",{className:"runtime-live-step runtime-live-step--".concat(e.status),children:[(0,a.jsxs)("span",{className:"runtime-live-step-icon","aria-hidden":"true",children:["running"===e.status&&(0,a.jsx)(c.Nl,{}),"done"===e.status&&(0,a.jsx)(c.Sr,{}),"error"===e.status&&(0,a.jsx)(c.wx,{})]}),(0,a.jsx)("code",{className:"runtime-live-step-name",children:e.name.replace(/_/g," ")}),(0,d.bX)(e.name,e.input)&&(0,a.jsx)("span",{className:"runtime-live-step-sub",children:(0,d.bX)(e.name,e.input)})]},e.id))}):(0,a.jsxs)("div",{className:"runtime-live-thinking",children:[(0,a.jsx)("span",{className:"runtime-live-thinking-icon",children:(0,a.jsx)(c.Nl,{})}),(0,a.jsxs)("span",{children:["thinking"===v&&"Waiting for first response…","responding"===v&&"Streaming response…","synthesis"===v&&"Synthesizing results…","idle"===v&&"Processing…"]})]})]}),f.length>0&&(0,a.jsxs)("div",{className:"runtime-section",children:[(0,a.jsxs)("span",{className:"runtime-section-title",children:["Background agents",m&&(0,a.jsxs)("span",{className:"runtime-live-badge",style:{marginLeft:8},children:[(0,a.jsx)("span",{className:"runtime-live-badge-dot","aria-hidden":"true"}),"Live"]})]}),(0,a.jsx)("div",{className:"runtime-live-steps",children:f.map(e=>(0,a.jsxs)("div",{className:"runtime-live-step runtime-live-step--".concat("running"===e.status?"running":"failed"===e.status?"error":"done"),children:[(0,a.jsxs)("span",{className:"runtime-live-step-icon","aria-hidden":"true",children:["running"===e.status&&(0,a.jsx)(c.Nl,{}),"complete"===e.status&&(0,a.jsx)(c.Sr,{}),"failed"===e.status&&(0,a.jsx)(c.wx,{})]}),(0,a.jsx)("code",{className:"runtime-live-step-name",children:e.agent_name}),(0,a.jsx)("span",{className:"runtime-live-step-sub",children:e.current_tool?"".concat(e.current_tool.replace(/_/g," ")).concat((0,d.bX)(e.current_tool,e.current_input)?" ".concat((0,d.bX)(e.current_tool,e.current_input)):""):"running"===e.status?e.triggered_by?"".concat(e.triggered_by," tick"):"starting…":"complete"===e.status?"done":"failed"})]},e.agent_id))})]}),(0,a.jsx)("div",{className:"runtime-compact-stats",children:[["Approvals",s.length],["Heartbeat",r.length],["Processes",l.length],["Audit",o.length]].map(e=>{let[t,n]=e;return(0,a.jsxs)("div",{className:"runtime-compact-stat"+(n>0?" has-value":""),children:[(0,a.jsx)("b",{children:n}),(0,a.jsx)("span",{children:t})]},t)})}),s.length>0&&(0,a.jsxs)("div",{className:"runtime-section",children:[(0,a.jsx)("span",{className:"runtime-section-title",children:"Pending approvals"}),s.slice(0,3).map(e=>(0,a.jsxs)("div",{className:"runtime-approval",children:[(0,a.jsx)("span",{children:e.summary}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{onClick:()=>j(e.id,"approved"),disabled:y===e.id,children:"Approve"}),(0,a.jsx)("button",{className:"secondary",onClick:()=>j(e.id,"denied"),disabled:y===e.id,children:"Deny"})]})]},e.id))]}),(r.length>0||l.length>0||o.length>0)&&(0,a.jsxs)("div",{className:"runtime-section",children:[(0,a.jsx)("span",{className:"runtime-section-title",children:"Recent activity"}),r.slice(0,2).map(e=>(0,a.jsxs)("div",{className:"runtime-row",children:[(0,a.jsx)("span",{children:e.type}),(0,a.jsx)("b",{children:e.status})]},e.id)),l.slice(0,2).map(e=>(0,a.jsxs)("div",{className:"runtime-row",children:[(0,a.jsx)("span",{children:e.command}),(0,a.jsx)("b",{children:e.status})]},e.id)),o.slice(0,3).map(e=>(0,a.jsxs)("div",{className:"runtime-row",children:[(0,a.jsx)("span",{children:e.summary||e.type}),(0,a.jsx)("b",{children:e.status})]},e.id))]}),!p&&0===n&&0===f.length&&(0,a.jsx)("div",{className:"runtime-empty",children:"No active tasks right now."}),(0,a.jsxs)("div",{className:"runtime-dev-tools",children:[(0,a.jsx)("span",{className:"runtime-section-title",children:"System tools"}),(0,a.jsxs)("div",{className:"runtime-dev-row",children:[(0,a.jsx)("button",{onClick:b,disabled:"ops"===k,className:"runtime-dev-btn",children:"ops"===k?"Creating…":"Caretaker"}),(0,a.jsx)("button",{onClick:w,disabled:"worker"===k,className:"runtime-dev-btn",children:"worker"===k?"Processing…":"Heartbeat once"})]})]})]})]})}function E(e){let{x:t,y:n,spaces:s,activeSpaceId:i,onMove:l,onClose:o}=e,c=(0,r.useRef)(null),[d,u]=(0,r.useState)({left:t,top:n});(0,r.useEffect)(()=>{function e(e){var t;(null==(t=c.current)?void 0:t.contains(e.target))||o()}function t(e){"Escape"===e.key&&o()}return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[o]),(0,r.useEffect)(()=>{let e=c.current;if(!e)return;let a=e.getBoundingClientRect(),s=t,i=n;s+a.width+8>window.innerWidth&&(s=Math.max(8,window.innerWidth-a.width-8)),i+a.height+8>window.innerHeight&&(i=Math.max(8,window.innerHeight-a.height-8)),u({left:s,top:i})},[t,n]);let h=s.filter(e=>e.id!==i);return"undefined"==typeof document?null:(0,v.createPortal)((0,a.jsxs)("div",{className:"winbar-move-menu",ref:c,style:{left:d.left,top:d.top},onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("div",{className:"winbar-move-menu-label",children:"Move to space"}),0===h.length?(0,a.jsx)("div",{className:"winbar-move-menu-empty",children:"No other spaces"}):h.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{l(e.id),o()},children:e.name},e.id))]}),document.body)}let L=(0,r.memo)(function(){let{initializing:e,activeHermesJobs:t,runtimeActions:n,mainAgent:s,approvalRun:l,counts:o,artifacts:c,visibleArtifacts:d,dockedArtifacts:u,artifactLayout:h,spaces:p,registerArtifactFrame:m,designStyle:f}=(0,i.M)(),g=n.approveClaudeRun,x=n.approvalBusyId,j=h.resetArtifactLayout,y=h.layoutMode,b=h.fullscreenId,w=h.setFullscreenId,N=h.confirmDeleteId,L=h.setConfirmDeleteId,M=h.deleteArtifactById,A=h.toggleMinimize,D=h.downloadArtifact,I=h.minimizedIds,T=h.hoveredDockId,R=h.setHoveredDockId,O=h.pointerDropSpaceId,P=s.busy,z=s.liveTool,W=s.liveText,U=s.command,B=p.spaces,F=p.activeSpaceId,H=p.setActiveSpaceId,J=p.createSpace,q=p.renameSpace,V=p.deleteSpace,X=p.moveArtifactToSpace,Y=p.isSwitching,[K,G]=(0,r.useState)(null),[Z,$]=(0,r.useState)(null);(0,r.useEffect)(()=>{$(document.getElementById("app-topbar-slot"))},[]);let Q=((null==o?void 0:o.agents)||[]).some(e=>"hermes"===(e.engine||"")),ee=(0,a.jsxs)("div",{className:"app-topbar-actions",children:[l&&(0,a.jsx)("button",{className:"admin-button",onClick:()=>g(l.id),disabled:x===l.id,style:{height:28,padding:"0 12px",fontSize:12},children:x===l.id?"Running Claude...":"Approve & Run"}),Q&&(0,a.jsxs)("div",{className:"hermes-wrap",children:[(0,a.jsxs)("span",{className:"tb-icon-btn"+(t.length>0?" on":""),role:"status","aria-label":t.length>0?"Hermes ".concat(t.length," running"):"Hermes idle",children:[(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),t.length>0&&(0,a.jsx)("span",{children:t.length})]}),(0,a.jsxs)("div",{className:"hermes-tooltip",role:"tooltip",children:[(0,a.jsx)("b",{children:"Hermes"}),(0,a.jsx)("small",{children:t.length>0?"".concat(t.length," running"):"idle"}),t.length>0&&(0,a.jsx)("ul",{children:t.map(e=>(0,a.jsx)("li",{children:e.title||(e.prompt?e.prompt.slice(0,60):"Untitled job")},e.id))})]})]}),(0,a.jsx)(C,{}),c.length>0&&(0,a.jsx)("button",{className:"tb-icon-btn",onClick:j,title:"manual"===y?"Reset to auto layout":"Auto layout active","aria-label":"manual"===y?"Reset to auto layout":"Auto layout active",children:(0,a.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,a.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,a.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"}),(0,a.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"})]})})]});return(0,a.jsxs)("section",{className:"canvas fresh-canvas"+(Y?" is-space-switching":""),children:[Z?(0,v.createPortal)(ee,Z):null,e?(0,a.jsx)("div",{className:"canvas-board canvas-board--skel","aria-hidden":"true",children:(0,a.jsx)("div",{className:"artifact-window-wrap artifact-skel-wrap artifact-skel-wrap--solo",children:(0,a.jsxs)("div",{className:"window artifact-window",children:[(0,a.jsxs)("div",{className:"winbar",children:[(0,a.jsx)("i",{className:"dot-close"}),(0,a.jsx)("i",{className:"dot-minimize"}),(0,a.jsx)("i",{className:"dot-zoom"}),(0,a.jsx)("div",{className:"skel sk-winbar-title"}),(0,a.jsx)("div",{className:"skel sk-kind-badge"})]}),(0,a.jsxs)("div",{className:"win-content artifact-skel-content",children:[(0,a.jsx)("div",{className:"skel sk-art-hero"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w90"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w80"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w65"}),(0,a.jsx)("div",{className:"skel sk-art-block"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w75"}),(0,a.jsx)("div",{className:"skel sk-line sk-line--w55"})]})]})})}):P&&0===d.length&&0===u.length?(0,a.jsx)("div",{className:"building-card-wrap",children:(0,a.jsxs)("div",{className:"building-card",children:[(0,a.jsxs)("div",{className:"building-winbar",children:[(0,a.jsxs)("div",{className:"building-dots",children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}),(0,a.jsx)("span",{className:"building-winbar-title",children:"generate_ui"===z?"Designing ".concat(f," UI…"):"create_artifact"===z?"Building artifact…":z?"Running ".concat(z.replace(/_/g," "),"…"):"Agent composing…"}),(0,a.jsxs)("div",{className:"building-pill",children:[(0,a.jsx)("div",{className:"building-pill-dot"}),"Live"]})]}),(0,a.jsxs)("div",{className:"building-body",children:[(0,a.jsxs)("div",{className:"building-illustration",children:[(0,a.jsx)("div",{className:"building-mesh"}),(0,a.jsxs)("div",{className:"building-skeleton",children:[(0,a.jsx)("div",{className:"skel hd"}),(0,a.jsx)("div",{className:"skel la"}),(0,a.jsx)("div",{className:"skel lb"}),(0,a.jsx)("div",{className:"skel lc"}),(0,a.jsx)("div",{className:"skel ld"})]})]}),(0,a.jsxs)("div",{className:"building-footer",children:[(0,a.jsx)("div",{className:"building-footer-label",children:z?"Active tool":"Status"}),(0,a.jsx)("div",{className:"building-footer-tool",children:"generate_ui"===z?"".concat(f," design rules active"):z?z.replace(/_/g," "):"Agent is thinking…"}),W&&(0,a.jsx)("div",{className:"building-stream-text",children:W.slice(-320)})]})]})]})}):(0,a.jsxs)(a.Fragment,{children:[d.length>0?(0,a.jsx)(S,{confirmDeleteId:N,setConfirmDeleteId:L,deleteArtifactById:M,setMoveMenu:G}):0===u.length&&0===c.length?(0,a.jsx)("div",{className:"fresh-workspace",children:(0,a.jsxs)("div",{className:"fresh-hero full-width",children:[(0,a.jsx)("small",{children:"Clean workspace"}),(0,a.jsx)("h1",{children:"Start from zero."}),(0,a.jsx)("p",{children:"Your local-first agent workspace. Create agents that research competitors, generate reports, run scheduled tasks, and prepare actions for your approval — all running on your machine, backed by SQLite, with no cloud dependencies."}),(0,a.jsxs)("div",{className:"fresh-actions",children:[(0,a.jsx)("button",{onClick:()=>U("Create the first Client Workspace competitor research agent with browser scraper and report writer daily at 07:30"),children:"Create first agent"}),(0,a.jsx)("button",{className:"secondary",onClick:()=>U("Look for all Client Workspace competitors and provide the daily report"),children:"Test report flow"})]})]})}):null,(0,a.jsx)(k,{spaces:B,activeSpaceId:F,setActiveSpaceId:H,createSpace:J,renameSpace:q,deleteSpace:V,moveArtifactToSpace:X,artifacts:c,dockedArtifacts:u,minimizedIds:I,hoveredDockId:T,setHoveredDockId:R,toggleMinimize:A,pointerDropSpaceId:O})]}),b&&(()=>{let e=c.find(e=>e.id===b);return e?(0,a.jsx)(_,{artifact:e,docked:!0,onClose:()=>w(null),confirmDeleteId:N,setConfirmDeleteId:L,deleteArtifactById:M,toggleMinimize:A,downloadArtifact:D,registerArtifactFrame:m},e.id):null})(),K&&(0,a.jsx)(E,{x:K.x,y:K.y,spaces:B,activeSpaceId:F,onMove:e=>X(K.artifactId,e),onClose:()=>G(null)})]})}),M=(0,s.default)(()=>Promise.all([n.e(2769),n.e(4119),n.e(3168)]).then(n.bind(n,53168)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./components/dashboard/config-panel")]},ssr:!1}),A=(0,s.default)(()=>n.e(8217).then(n.bind(n,98217)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./components/dashboard/voice-panel")]},ssr:!1}),D=(0,s.default)(()=>n.e(5938).then(n.bind(n,95938)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./components/dashboard/trust-mode-confirm-modal")]},ssr:!1}),I=(0,s.default)(()=>n.e(7130).then(n.bind(n,67130)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./components/update-banner")]},ssr:!1});function T(){let{chatHidden:e,setChatHidden:t,configOpen:n,trustModePromptOpen:s,trustModeBusy:r,confirmEnableTrustMode:l,cancelEnableTrustMode:o,voiceOpen:c}=(0,i.M)();return(0,a.jsxs)("main",{className:"visual-frame fresh-frame"+(e?" frame-chat-hidden":""),"aria-label":"madarX OS product",children:[(0,a.jsx)(I,{}),(0,a.jsx)(g,{}),(0,a.jsx)(L,{}),e?(0,a.jsx)("button",{type:"button",className:"chat-restore-bubble",onClick:()=>t(!1),title:"Show chat panel","aria-label":"Show chat panel",children:(0,a.jsx)("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}):null,n?(0,a.jsx)(M,{}):null,s?(0,a.jsx)(D,{open:s,busy:r,onConfirm:l,onCancel:o}):null,c?(0,a.jsx)(A,{}):null]})}function R(){return(0,a.jsx)(i.q,{children:(0,a.jsx)(T,{})})}},59077:(e,t,n)=>{"use strict";n.d(t,{U_:()=>l,bX:()=>o,wb:()=>r});let a={Bash:"run command",WebSearch:"web search",WebFetch:"fetch",Read:"read",Write:"write",Edit:"edit",MultiEdit:"edit",NotebookEdit:"edit notebook",Glob:"find files",Grep:"search files",LS:"list",TodoWrite:"plan",Task:"subagent",Skill:"skill",SlashCommand:"command",ExitPlanMode:"exit plan",AskUserQuestion:"ask"};function s(e){if(!e)return"";let t=String(e);return t.split("/").filter(Boolean).pop()||t}function i(e){try{return new URL(String(e)).hostname}catch(t){return String(e).slice(0,52)}}function r(e){if(!e||e<0)return null;if(e<1e3)return"".concat(Math.round(e),"ms");if(e<6e4)return"".concat((e/1e3).toFixed(1),"s");let t=Math.round(e/1e3);return"".concat(Math.floor(t/60),"m ").concat(t%60,"s")}function l(e){if(!e)return"";if(a[e])return a[e];if("string"==typeof e&&e.startsWith("mcp__")){let t=e.split("__");return t[t.length-1].replace(/_/g," ")}return e.replace(/_/g," ")}function o(e,t){return t?"web_search"===e&&t.query?'"'.concat(String(t.query).slice(0,52),'"'):"web_fetch"===e&&t.url?i(t.url):"browser_harness_run"===e&&t.script?"browser script":"create_artifact"===e&&t.title?'"'.concat(String(t.title).slice(0,40),'"'):"create_agent"===e&&t.name?'"'.concat(String(t.name).slice(0,40),'"'):("file_read"===e||"file_write"===e)&&t.path?s(t.path).slice(0,40):"Bash"===e&&t.command?String(t.command).slice(0,80):"WebSearch"===e&&t.query?'"'.concat(String(t.query).slice(0,52),'"'):"WebFetch"===e&&t.url?i(t.url):("Read"===e||"Write"===e||"Edit"===e||"MultiEdit"===e||"NotebookEdit"===e)&&t.file_path?s(t.file_path).slice(0,40):("Glob"===e||"Grep"===e)&&(t.pattern||t.path)?String(t.pattern||t.path).slice(0,52):"LS"===e&&t.path?s(t.path).slice(0,40)||"/":"TodoWrite"===e&&Array.isArray(t.todos)?"".concat(t.todos.length," item").concat(1===t.todos.length?"":"s"):"Task"===e&&t.description?'"'.concat(String(t.description).slice(0,52),'"'):"Skill"===e&&t.skill?"/".concat(t.skill):"SlashCommand"===e&&t.command?String(t.command).slice(0,52):null:null}},93247:(e,t,n)=>{"use strict";n.d(t,{q:()=>r,r:()=>l});var a=n(12115);let s="madarx:main-agent-draft:v1";function i(e){try{let t=String(e||"");t.trim()?window.localStorage.setItem(s,t):window.localStorage.removeItem(s)}catch(e){}}function r(){try{window.localStorage.removeItem(s)}catch(e){}}function l(){let[e,t]=(0,a.useState)("");return(0,a.useEffect)(()=>{let e=function(){try{return window.localStorage.getItem(s)||""}catch(e){return""}}();e&&t(t=>t||e)},[]),(0,a.useEffect)(()=>{let t=window.setTimeout(()=>i(e),250);return()=>window.clearTimeout(t)},[e]),(0,a.useEffect)(()=>{let t=()=>i(e);return window.addEventListener("pagehide",t),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("pagehide",t),document.removeEventListener("visibilitychange",t)}},[e]),{prompt:e,setPrompt:t}}},97167:(e,t,n)=>{"use strict";n.d(t,{Nl:()=>i,Sr:()=>r,YE:()=>o,wx:()=>l});var a=n(95155),s=n(12115);function i(){return(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",children:(0,a.jsx)("circle",{cx:"5.5",cy:"5.5",r:"4",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"6 4",strokeLinecap:"round",children:(0,a.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 5.5 5.5",to:"360 5.5 5.5",dur:"0.75s",repeatCount:"indefinite"})})})}function r(){return(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",children:(0,a.jsx)("path",{d:"M2 5.5L4.5 8L9 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function l(){return(0,a.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",children:(0,a.jsx)("path",{d:"M2.5 2.5L8.5 8.5M8.5 2.5L2.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function o(e){let{startTime:t}=e,[n,i]=(0,s.useState)(0);return((0,s.useEffect)(()=>{i(Math.floor((Date.now()-t)/1e3));let e=setInterval(()=>i(e=>e+1),1e3);return()=>clearInterval(e)},[t]),n<60)?(0,a.jsxs)(a.Fragment,{children:[n,"s"]}):(0,a.jsxs)(a.Fragment,{children:[Math.floor(n/60),"m ",n%60,"s"]})}}},e=>{e.O(0,[930,1231,8441,1255,7358],()=>e(e.s=42930)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,72,167,178,229,232,332,489,497,552,658,723,767,769,796,870,888,899,939,972,1053,1115,1177,1426,1523,1557,1562,1581,1672,1851,1990,2008,2139,2153,2162,2164,2175,2254,2334,2343,2433,2635,2640,2711,2726,2748,2837,2873,2889,2943,3033,3076,3159,3190,3203,3395,3437,3465,3492,3499,3554,3558,3577,3629,3630,3641,3659,3745,3756,3802,3839,3870,3886,3904,3905,3942,3975,3976,4094,4095,4104,4115,4190,4204,4209,4218,4229,4231,4269,4373,4410,4431,4475,4507,4519,4530,4537,4562,4662,4721,4819,4890,4999,5049,5085,5092,5098,5118,5120,5130,5169,5180,5207,5223,5289,5324,5331,5441,5520,5551,5588,5610,5689,5707,5722,5743,5794,5810,5850,5875,5887,5903,5906,6002,6079,6106,6113,6147,6186,6234,6278,6279,6341,6365,6403,6456,6496,6591,6595,6621,6667,6701,6725,6779,6799,6816,6862,7020,7026,7060,7070,7092,7113,7237,7276,7324,7361,7440,7750,7765,7795,7823,7903,7920,7986,8059,8093,8100,8159,8227,8252,8273,8298,8312,8397,8401,8405,8578,8591,8665,8679,8732,8765,8828,8887,8907,8994,9e3,9037,9040,9154,9160,9183,9413,9442,9504,9554,9628,9873,9953],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);