@agent-spaces/server 0.3.63 → 0.3.64

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 (242) hide show
  1. package/dist/adapters/claude-code-runtime/message-format.js +1 -1
  2. package/dist/adapters/git.js +161 -57
  3. package/dist/agents/agent-designer.js +66 -12
  4. package/dist/agents/issue-task-controller.js +1 -1
  5. package/dist/app.js +50 -1
  6. package/dist/package.json +1 -1
  7. package/dist/routes/agent-commands.js +72 -0
  8. package/dist/routes/agent-sse.js +6 -0
  9. package/dist/routes/agent.js +15 -1
  10. package/dist/routes/database.js +345 -0
  11. package/dist/routes/git.js +52 -1
  12. package/dist/routes/kanban.js +39 -0
  13. package/dist/services/agent-commands.js +168 -0
  14. package/dist/services/builtin-tools/command-tools.js +117 -0
  15. package/dist/services/builtin-tools/database-tools.js +578 -0
  16. package/dist/services/builtin-tools/index.js +5 -0
  17. package/dist/services/builtin-tools/input-helpers.js +26 -0
  18. package/dist/services/builtin-tools/issue-tools.js +209 -0
  19. package/dist/services/builtin-tools/kanban-tools.js +277 -0
  20. package/dist/services/database-vector.js +244 -0
  21. package/dist/services/kanban.js +50 -0
  22. package/dist/storage/database-store.js +365 -0
  23. package/dist/storage/kanban-store.js +142 -0
  24. package/dist/web/404.html +1 -1
  25. package/dist/web/__next.__PAGE__.txt +4 -4
  26. package/dist/web/__next._full.txt +24 -29
  27. package/dist/web/__next._head.txt +4 -4
  28. package/dist/web/__next._index.txt +14 -14
  29. package/dist/web/__next._tree.txt +3 -8
  30. package/dist/web/_next/static/chunks/0-9194nbxy_6d.js +1 -0
  31. package/dist/web/_next/static/chunks/{13~y-b.b9rrw4.js → 01~quun6sefgl.js} +1 -1
  32. package/dist/web/_next/static/chunks/04a4vsq2wknm4.js +1 -0
  33. package/dist/web/_next/static/chunks/04dg4l4hv11q2.js +3 -0
  34. package/dist/web/_next/static/chunks/04fxddw-y20~-.js +7 -0
  35. package/dist/web/_next/static/chunks/04w7~5ooz_pwm.js +1 -0
  36. package/dist/web/_next/static/chunks/05oc21sj24wtq.js +1 -0
  37. package/dist/web/_next/static/chunks/{0-oog4zg4_m~m.css → 062f9zqctzg.b.css} +0 -3
  38. package/dist/web/_next/static/chunks/{014x2qbuiszni.js → 08ckpwmmwlors.js} +3 -3
  39. package/dist/web/_next/static/chunks/08k~meqbd8d6v.js +1 -0
  40. package/dist/web/_next/static/chunks/099h96wjsdb25.js +2 -0
  41. package/dist/web/_next/static/chunks/09h23logvq65m.js +1 -0
  42. package/dist/web/_next/static/chunks/0_mvduwjsm35w.js +1 -0
  43. package/dist/web/_next/static/chunks/0a5y-vhf4i5id.js +3 -0
  44. package/dist/web/_next/static/chunks/0ake2f3x2uan4.js +24 -0
  45. package/dist/web/_next/static/chunks/0ck8dw_9-1cdx.js +1 -0
  46. package/dist/web/_next/static/chunks/0f7cb9li~3jra.js +67 -0
  47. package/dist/web/_next/static/chunks/0fttswpzu69qx.js +1 -0
  48. package/dist/web/_next/static/chunks/0ghs9on7wodrm.js +1 -0
  49. package/dist/web/_next/static/chunks/0ghx3j_.-gdyd.js +1 -0
  50. package/dist/web/_next/static/chunks/0h9cu-k6z5o08.js +1 -0
  51. package/dist/web/_next/static/chunks/{02c22g~xd-y30.js → 0iuf30t0rjsjv.js} +2 -2
  52. package/dist/web/_next/static/chunks/{046me66nilkff.js → 0jb4~3qqkw2ps.js} +1 -1
  53. package/dist/web/_next/static/chunks/0k4zdm72k_bfy.js +1 -0
  54. package/dist/web/_next/static/chunks/{0kof5qdg8c2-k.js → 0n6_4so_afuwk.js} +37 -37
  55. package/dist/web/_next/static/chunks/0nb8.iteznuvx.js +1 -0
  56. package/dist/web/_next/static/chunks/0os58q93stt7j.js +3 -0
  57. package/dist/web/_next/static/chunks/0s9lmk8iauou3.js +1 -0
  58. package/dist/web/_next/static/chunks/0sp_zbx~w0am7.js +1 -0
  59. package/dist/web/_next/static/chunks/0tel~zsv4z8l_.js +1 -0
  60. package/dist/web/_next/static/chunks/0twamv4wr_dbv.js +1 -0
  61. package/dist/web/_next/static/chunks/{0_udc.6.tueey.js → 0uhol5wafdbl~.js} +1 -1
  62. package/dist/web/_next/static/chunks/0v3a_x4vt42kx.js +5 -0
  63. package/dist/web/_next/static/chunks/{002-dxhags4dj.js → 0v6hte2z-32ca.js} +2 -2
  64. package/dist/web/_next/static/chunks/0v7q4mys.mnm..css +1 -0
  65. package/dist/web/_next/static/chunks/{0ogpc3f3keopc.js → 0vbqaynjq8ga..js} +2 -2
  66. package/dist/web/_next/static/chunks/0xbaakj0dfc0..js +1 -0
  67. package/dist/web/_next/static/chunks/0z~vqzbm_q371.js +1 -0
  68. package/dist/web/_next/static/chunks/0~3xm80~j9ddg.js +1 -0
  69. package/dist/web/_next/static/chunks/{0y09i51u6ixq5.js → 10l-9myrdo3x9.js} +1 -1
  70. package/dist/web/_next/static/chunks/12jm4gwmvq-0q.js +90 -0
  71. package/dist/web/_next/static/chunks/{0aa6bcdmtpekn.js → 1442stwa0gbxe.js} +1 -1
  72. package/dist/web/_next/static/chunks/14s37n6h0_q3x.js +16 -0
  73. package/dist/web/_next/static/chunks/161ik5kfyuwtd.js +1 -0
  74. package/dist/web/_next/static/chunks/17k~zbv0_4rep.js +1 -0
  75. package/dist/web/_not-found/__next._full.txt +23 -23
  76. package/dist/web/_not-found/__next._head.txt +4 -4
  77. package/dist/web/_not-found/__next._index.txt +14 -14
  78. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
  79. package/dist/web/_not-found/__next._not-found.txt +3 -3
  80. package/dist/web/_not-found/__next._tree.txt +3 -3
  81. package/dist/web/_not-found.html +1 -1
  82. package/dist/web/_not-found.txt +23 -23
  83. package/dist/web/index.html +1 -1
  84. package/dist/web/index.txt +24 -29
  85. package/dist/web/login/__next._full.txt +32 -36
  86. package/dist/web/login/__next._head.txt +4 -4
  87. package/dist/web/login/__next._index.txt +14 -14
  88. package/dist/web/login/__next._tree.txt +3 -8
  89. package/dist/web/login/__next.login.__PAGE__.txt +4 -4
  90. package/dist/web/login/__next.login.txt +3 -3
  91. package/dist/web/login.html +1 -1
  92. package/dist/web/login.txt +32 -36
  93. package/dist/web/settings/__next._full.txt +26 -31
  94. package/dist/web/settings/__next._head.txt +4 -4
  95. package/dist/web/settings/__next._index.txt +14 -14
  96. package/dist/web/settings/__next._tree.txt +3 -8
  97. package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
  98. package/dist/web/settings/__next.settings.txt +5 -5
  99. package/dist/web/settings/agents/__next._full.txt +26 -31
  100. package/dist/web/settings/agents/__next._head.txt +4 -4
  101. package/dist/web/settings/agents/__next._index.txt +14 -14
  102. package/dist/web/settings/agents/__next._tree.txt +3 -8
  103. package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
  104. package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
  105. package/dist/web/settings/agents/__next.settings.txt +5 -5
  106. package/dist/web/settings/agents.html +1 -1
  107. package/dist/web/settings/agents.txt +26 -31
  108. package/dist/web/settings/mcps/__next._full.txt +26 -31
  109. package/dist/web/settings/mcps/__next._head.txt +4 -4
  110. package/dist/web/settings/mcps/__next._index.txt +14 -14
  111. package/dist/web/settings/mcps/__next._tree.txt +3 -8
  112. package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
  113. package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
  114. package/dist/web/settings/mcps/__next.settings.txt +5 -5
  115. package/dist/web/settings/mcps.html +1 -1
  116. package/dist/web/settings/mcps.txt +26 -31
  117. package/dist/web/settings/models/__next._full.txt +26 -31
  118. package/dist/web/settings/models/__next._head.txt +4 -4
  119. package/dist/web/settings/models/__next._index.txt +14 -14
  120. package/dist/web/settings/models/__next._tree.txt +3 -8
  121. package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
  122. package/dist/web/settings/models/__next.settings.models.txt +3 -3
  123. package/dist/web/settings/models/__next.settings.txt +5 -5
  124. package/dist/web/settings/models.html +1 -1
  125. package/dist/web/settings/models.txt +26 -31
  126. package/dist/web/settings/output-styles/__next._full.txt +26 -31
  127. package/dist/web/settings/output-styles/__next._head.txt +4 -4
  128. package/dist/web/settings/output-styles/__next._index.txt +14 -14
  129. package/dist/web/settings/output-styles/__next._tree.txt +3 -8
  130. package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +4 -4
  131. package/dist/web/settings/output-styles/__next.settings.output-styles.txt +3 -3
  132. package/dist/web/settings/output-styles/__next.settings.txt +5 -5
  133. package/dist/web/settings/output-styles.html +1 -1
  134. package/dist/web/settings/output-styles.txt +26 -31
  135. package/dist/web/settings/prompts/__next._full.txt +26 -31
  136. package/dist/web/settings/prompts/__next._head.txt +4 -4
  137. package/dist/web/settings/prompts/__next._index.txt +14 -14
  138. package/dist/web/settings/prompts/__next._tree.txt +3 -8
  139. package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +4 -4
  140. package/dist/web/settings/prompts/__next.settings.prompts.txt +3 -3
  141. package/dist/web/settings/prompts/__next.settings.txt +5 -5
  142. package/dist/web/settings/prompts.html +1 -1
  143. package/dist/web/settings/prompts.txt +26 -31
  144. package/dist/web/settings/providers/__next._full.txt +26 -31
  145. package/dist/web/settings/providers/__next._head.txt +4 -4
  146. package/dist/web/settings/providers/__next._index.txt +14 -14
  147. package/dist/web/settings/providers/__next._tree.txt +3 -8
  148. package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
  149. package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
  150. package/dist/web/settings/providers/__next.settings.txt +5 -5
  151. package/dist/web/settings/providers.html +1 -1
  152. package/dist/web/settings/providers.txt +26 -31
  153. package/dist/web/settings/skills/__next._full.txt +26 -31
  154. package/dist/web/settings/skills/__next._head.txt +4 -4
  155. package/dist/web/settings/skills/__next._index.txt +14 -14
  156. package/dist/web/settings/skills/__next._tree.txt +3 -8
  157. package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
  158. package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
  159. package/dist/web/settings/skills/__next.settings.txt +5 -5
  160. package/dist/web/settings/skills.html +1 -1
  161. package/dist/web/settings/skills.txt +26 -31
  162. package/dist/web/settings/tools/__next._full.txt +38 -0
  163. package/dist/web/settings/tools/__next._head.txt +6 -0
  164. package/dist/web/settings/tools/__next._index.txt +15 -0
  165. package/dist/web/settings/tools/__next._tree.txt +3 -0
  166. package/dist/web/settings/tools/__next.settings.tools.__PAGE__.txt +9 -0
  167. package/dist/web/settings/tools/__next.settings.tools.txt +5 -0
  168. package/dist/web/settings/tools/__next.settings.txt +7 -0
  169. package/dist/web/settings/tools.html +1 -0
  170. package/dist/web/settings/tools.txt +38 -0
  171. package/dist/web/settings.html +1 -1
  172. package/dist/web/settings.txt +26 -31
  173. package/dist/web/workflows/__next._full.txt +34 -38
  174. package/dist/web/workflows/__next._head.txt +4 -4
  175. package/dist/web/workflows/__next._index.txt +14 -14
  176. package/dist/web/workflows/__next._tree.txt +3 -8
  177. package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
  178. package/dist/web/workflows/__next.workflows.txt +3 -3
  179. package/dist/web/workflows.html +1 -1
  180. package/dist/web/workflows.txt +34 -38
  181. package/dist/web/workspace/_/__next._full.txt +25 -29
  182. package/dist/web/workspace/_/__next._head.txt +4 -4
  183. package/dist/web/workspace/_/__next._index.txt +14 -14
  184. package/dist/web/workspace/_/__next._tree.txt +4 -8
  185. package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -3
  186. package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
  187. package/dist/web/workspace/_/__next.workspace.txt +3 -3
  188. package/dist/web/workspace/_.html +1 -1
  189. package/dist/web/workspace/_.txt +25 -29
  190. package/dist/web/workspaces/__next._full.txt +24 -29
  191. package/dist/web/workspaces/__next._head.txt +4 -4
  192. package/dist/web/workspaces/__next._index.txt +14 -14
  193. package/dist/web/workspaces/__next._tree.txt +3 -8
  194. package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
  195. package/dist/web/workspaces/__next.workspaces.txt +3 -3
  196. package/dist/web/workspaces.html +1 -1
  197. package/dist/web/workspaces.txt +24 -29
  198. package/dist/ws/agent-prompt.js +45 -8
  199. package/dist/ws/agent-runner.js +6 -4
  200. package/package.json +11 -10
  201. package/dist/web/_next/static/chunks/0-1bfvfwifh-m.js +0 -1
  202. package/dist/web/_next/static/chunks/04v-pqqs-2lvp.css +0 -1
  203. package/dist/web/_next/static/chunks/06w~.izyfylap.js +0 -1
  204. package/dist/web/_next/static/chunks/09t62a89~jesc.js +0 -3
  205. package/dist/web/_next/static/chunks/09y_3krccdd~u.js +0 -1
  206. package/dist/web/_next/static/chunks/0_e~hmntdfop9.js +0 -1
  207. package/dist/web/_next/static/chunks/0cke33d38fnby.js +0 -90
  208. package/dist/web/_next/static/chunks/0cyq~8xb~r5fc.js +0 -1
  209. package/dist/web/_next/static/chunks/0fxa1edqr7dve.js +0 -1
  210. package/dist/web/_next/static/chunks/0hra80eyuu37u.js +0 -1
  211. package/dist/web/_next/static/chunks/0ie7y4k2ncvnn.js +0 -1
  212. package/dist/web/_next/static/chunks/0igc~uli58ncw.js +0 -2
  213. package/dist/web/_next/static/chunks/0msb2mi3hiu5_.js +0 -67
  214. package/dist/web/_next/static/chunks/0p1n8bvfnpl41.js +0 -1
  215. package/dist/web/_next/static/chunks/0s_dva~eh2yhi.js +0 -3
  216. package/dist/web/_next/static/chunks/0typj55ox8d5i.js +0 -1
  217. package/dist/web/_next/static/chunks/0w2p4ldi2aymp.js +0 -1
  218. package/dist/web/_next/static/chunks/0zc0xgp5ourcn.js +0 -1
  219. package/dist/web/_next/static/chunks/0zmhdridea1s5.js +0 -90
  220. package/dist/web/_next/static/chunks/10.alq.6stmld.js +0 -1
  221. package/dist/web/_next/static/chunks/11b3zgk1etlkw.js +0 -7
  222. package/dist/web/_next/static/chunks/11qp8r5dotf7d.js +0 -1
  223. package/dist/web/_next/static/chunks/12mxlicp247c8.js +0 -1
  224. package/dist/web/_next/static/chunks/135w27dd8c19s.js +0 -5
  225. package/dist/web/_next/static/chunks/176dc-dtokxxi.js +0 -16
  226. package/dist/web/_next/static/chunks/17g-0pqre.anw.js +0 -1
  227. package/dist/web/_next/static/media/0a7740363b4d4863-s.1110aazvokzp..woff2 +0 -0
  228. package/dist/web/_next/static/media/0da9c7f357bd9d4d-s.0ek5sshv8wk3m.woff2 +0 -0
  229. package/dist/web/_next/static/media/1b99372b3eaef0c8-s.p.0gx2haw2tmll8.woff2 +0 -0
  230. package/dist/web/_next/static/media/41e95f694c5c4549-s.0r1jrq7neqdsq.woff2 +0 -0
  231. package/dist/web/_next/static/media/5c285b27cdda1fe8-s.p.0yo6-5yoeeudq.woff2 +0 -0
  232. package/dist/web/_next/static/media/5f9d24ebef5d5292-s.0esuu2f5si~v8.woff2 +0 -0
  233. package/dist/web/_next/static/media/6c55a692938ebbbc-s.0g6rbszwfgn9y.woff2 +0 -0
  234. package/dist/web/_next/static/media/8e6fa89aa22d24ec-s.p.0uvzar8hswo3p.woff2 +0 -0
  235. package/dist/web/_next/static/media/a218039a3287bcfd-s.p.17-1enzs_j91b.woff2 +0 -0
  236. package/dist/web/_next/static/media/b2ea385cb5ae8625-s.0kjod.kaq1k69.woff2 +0 -0
  237. package/dist/web/_next/static/media/bdc7e24a509eb931-s.0apt5mko2.qn3.woff2 +0 -0
  238. package/dist/web/_next/static/media/c3cb240f9c892514-s.163v2i5cux7-c.woff2 +0 -0
  239. package/dist/web/_next/static/media/e2334d715941921e-s.p.12skym0rqknxy.woff2 +0 -0
  240. /package/dist/web/_next/static/{OoXAsPtrUWjC1l898FSvI → e8w3vd9Eov_LDYWj_0zsE}/_buildManifest.js +0 -0
  241. /package/dist/web/_next/static/{OoXAsPtrUWjC1l898FSvI → e8w3vd9Eov_LDYWj_0zsE}/_clientMiddlewareManifest.js +0 -0
  242. /package/dist/web/_next/static/{OoXAsPtrUWjC1l898FSvI → e8w3vd9Eov_LDYWj_0zsE}/_ssgManifest.js +0 -0
@@ -0,0 +1,16 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,600304,759309,e=>{"use strict";let t=(0,e.i(433721).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["default",0,t],759309),e.s(["Send",0,t],600304)},583705,e=>{"use strict";let t=(0,e.i(433721).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],583705)},244996,444741,e=>{"use strict";let t=(0,e.i(433721).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t],444741),e.s(["CheckCircle2",0,t],244996)},294543,e=>{"use strict";let t=(0,e.i(433721).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},896841,e=>{"use strict";var t=e.i(344180),s=e.i(764556),a=e.i(244073),i=e.i(191118),n=e.i(31807),r=e.i(327964),o=e.i(355819),c=e.i(361031),l=e.i(588591),d=e.i(62669),m=e.i(515104),p=e.i(226624),u=e.i(817854),h=e.i(451534),x=e.i(227634),f=e.i(191441);function g({icon:e,label:s,value:a}){return(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0",children:s}),(0,t.jsx)("span",{className:"truncate text-foreground ml-auto",title:a,children:a})]})}function j({workspace:e,channelCount:i,issueCount:n}){let r=(0,a.useTranslations)("projectSettings"),[o,c]=(0,s.useState)(!1!==e.autoProcessIssues),[l,m]=(0,s.useState)(!1!==e.hooksEnabled),[v,w]=(0,s.useState)(!1),N=async t=>{if(!v){w(!0);try{let s=await fetch(`/api/workspaces/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({autoProcessIssues:t})}),a=await s.json();c(!1!==a.autoProcessIssues)}finally{w(!1)}}},y=async t=>{if(!v){w(!0);try{let s=await fetch(`/api/workspaces/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({hooksEnabled:t})}),a=await s.json();m(!1!==a.hooksEnabled)}finally{w(!1)}}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:r("info.title")}),(0,t.jsx)(g,{icon:(0,t.jsx)(h.FolderOpen,{size:14}),label:r("info.path"),value:e.boundDirs[0]??"-"}),(0,t.jsx)(g,{icon:(0,t.jsx)(x.Hash,{size:14}),label:r("info.channels"),value:String(i)}),(0,t.jsx)(g,{icon:(0,t.jsx)(f.ListChecks,{size:14}),label:r("info.issues"),value:String(n)})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:r("automation.title")}),(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(u.Label,{htmlFor:"auto-process",className:"text-sm font-medium",children:r("automation.autoProcess")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:r("automation.autoProcessDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[v&&(0,t.jsx)(d.Loader2,{className:"h-3 w-3 animate-spin text-muted-foreground"}),(0,t.jsx)(p.Switch,{id:"auto-process",checked:o,onCheckedChange:N,disabled:v})]})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Hooks"}),(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(u.Label,{htmlFor:"hooks-enabled",className:"text-sm font-medium",children:"Enable Hooks"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Enable per-tool-call hooks for this workspace"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[v&&(0,t.jsx)(d.Loader2,{className:"h-3 w-3 animate-spin text-muted-foreground"}),(0,t.jsx)(p.Switch,{id:"hooks-enabled",checked:l,onCheckedChange:y,disabled:v})]})]})]})]})}var v=e.i(260218),w=e.i(681622),N=e.i(812057),y=e.i(209988),k=e.i(36539),k=k,b=e.i(325443),S=e.i(244996),C=e.i(294543),C=C,T=e.i(92457);let I=(0,e.i(433721).default)("qr-code",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);var P=e.i(601039),F=e.i(600304),E=e.i(360112);let O=[{value:"issue_started",labelKey:"events.issueStarted"},{value:"issue_completed",labelKey:"events.issueCompleted"},{value:"issue_task_completed",labelKey:"events.taskCompleted"},{value:"channel_agent_completed",labelKey:"events.channelAgentCompleted"}];function D(){return{enabled:!1,provider:"lark",events:["issue_started","issue_completed","issue_task_completed"],lark:{},wechat:{}}}let L=`{
2
+ "scopes": {
3
+ "tenant": [
4
+ "contact:contact.base:readonly",
5
+ "im:chat:readonly",
6
+ "im:chat.members:read",
7
+ "im:message",
8
+ "im:message.group_at_msg:readonly",
9
+ "im:message.group_msg",
10
+ "im:message.p2p_msg:readonly",
11
+ "im:message:send_as_bot",
12
+ "im:resource"
13
+ ],
14
+ "user": []
15
+ }
16
+ }`;function z(){let[e,a]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(v.Button,{type:"button",size:"sm",variant:"outline",onClick:()=>{navigator.clipboard.writeText(L).then(()=>{a(!0),setTimeout(()=>a(!1),2e3)})},children:[e?(0,t.jsx)(S.CheckCircle2,{className:"mr-1.5 h-3.5 w-3.5 text-emerald-600"}):null,e?"已复制":"复制批量权限配置"]}),(0,t.jsxs)("details",{className:"group",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-xs text-muted-foreground hover:text-foreground",children:"展开查看权限详情"}),(0,t.jsx)("pre",{className:"mt-1.5 overflow-x-auto rounded-md bg-muted p-2 text-xs",children:L})]})]})}function _({workspaceId:e,workspace:i,notificationDraft:n,setNotificationDraft:r,setWorkspace:o,botAgents:l,agentDialogOpen:h,setAgentDialogOpen:x}){var f;let g=(0,a.useTranslations)("projectSettings"),j=(0,a.useTranslations)("common"),[L,q]=(0,s.useState)(!1),[A,R]=(0,s.useState)(!1),[B,$]=(0,s.useState)(!1),[M,U]=(0,s.useState)(!1),[W,G]=(0,s.useState)({status:"idle"}),K=(0,s.useRef)(!1),[J,Q]=(0,s.useState)("default"),[H,V]=(0,s.useState)(!1),[X,Y]=(0,s.useState)(!1),Z=!!(n.wechat?.token&&n.wechat?.accountId),ee=(0,c.useWorkspaceStore)(e=>e.upsertWorkspace);(0,s.useEffect)(()=>{if(!n.enabled||"wechat"!==n.provider||!["wait","scaned"].includes(W.status))return;let t=window.setInterval(()=>{K.current||(K.current=!0,fetch(`/api/workspaces/${e}/notifications/wechat/qr?poll=1`,{method:"POST"}).then(async e=>{let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error||"Failed to poll WeChat QR status");G({status:t.status??"wait",qrcodeImgContent:t.qrcodeImgContent??W.qrcodeImgContent,accountId:t.accountId,baseUrl:t.baseUrl}),t.workspace&&(o(t.workspace),r(t.workspace.notificationSettings??D()),E.toast.success(g("wechat.connectedToast")))}).catch(e=>{E.toast.error(g("wechat.pollFailed"),{description:e instanceof Error?e.message:void 0})}).finally(()=>{K.current=!1}))},2e3);return()=>window.clearInterval(t)},[n.enabled,n.provider,r,o,g,W.qrcodeImgContent,W.status,e]),(0,s.useEffect)(()=>{V((0,m.isNativeAndroidEnvironment)()),(0,m.getNotificationPermission)().then(Q)},[]);let et=async t=>{if(!i||L)return null;q(!0);try{let s=await fetch(`/api/workspaces/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({notificationSettings:t})});if(!s.ok){let e=await s.json().catch(()=>null);throw Error(e?.error||"Failed to save notification settings")}let a=await s.json();return o(a),ee(a),r(a.notificationSettings??D()),a}catch(e){return E.toast.error(g("notifications.saveFailed"),{description:e instanceof Error?e.message:void 0}),null}finally{q(!1)}},es=e=>{let t={...n,...e,lark:{...n.lark,...e.lark},wechat:{...n.wechat,...e.wechat},native:{...n.native,...e.native}};r(t),et(t)},ea=async()=>{if(!A){R(!0);try{if(!await et(n))throw Error("Failed to save notification settings");let t=await fetch(`/api/workspaces/${e}/notifications/start`,{method:"POST"});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Failed to start notification service")}let s=await t.json();s.workspace?(o(s.workspace),r(s.workspace.notificationSettings??D())):r({...n,serviceRunning:!0}),E.toast.success(g("notifications.startSuccess"))}catch(e){E.toast.error(g("notifications.startFailed"),{description:e instanceof Error?e.message:void 0})}finally{R(!1)}}},ei=async()=>{if(!A){R(!0);try{let t=await fetch(`/api/workspaces/${e}/notifications/stop`,{method:"POST"});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Failed to stop notification service")}let s=await t.json();s.workspace?(o(s.workspace),r(s.workspace.notificationSettings??D())):r({...n,serviceRunning:!1}),E.toast.success(g("notifications.stopSuccess"))}catch(e){E.toast.error(g("notifications.stopFailed"),{description:e instanceof Error?e.message:void 0})}finally{R(!1)}}},en=async()=>{if(!B){$(!0);try{let t=await fetch(`/api/workspaces/${e}/notifications/test`,{method:"POST"}),s=await t.json().catch(()=>null);if(!t.ok)throw Error(s?.reason||s?.error||"Failed to send test notification");E.toast.success(g("notifications.testSuccess"))}catch(e){E.toast.error(g("notifications.testFailed"),{description:e instanceof Error?e.message:void 0})}finally{$(!1)}}},er=async()=>{if(!M){U(!0);try{if(!await et({...n,provider:"wechat"}))throw Error("Failed to save notification settings");let t=await fetch(`/api/workspaces/${e}/notifications/wechat/qr${Z?"?refresh=1":""}`,{method:"POST"}),s=await t.json().catch(()=>null);if(!t.ok)throw Error(s?.error||"Failed to get WeChat QR code");G({status:s.status??"wait",qrcodeImgContent:s.qrcodeImgContent,accountId:s.accountId,baseUrl:s.baseUrl}),s.workspace&&(o(s.workspace),r(s.workspace.notificationSettings??D()))}catch(e){E.toast.error(g("wechat.getQrFailed"),{description:e instanceof Error?e.message:void 0})}finally{U(!1)}}};return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:g("notifications.title")}),(0,t.jsxs)("div",{className:"space-y-4 rounded-md border px-3 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(u.Label,{htmlFor:"message-notifications",className:"text-sm font-medium",children:g("notifications.messageNotifications")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:g("notifications.messageNotificationsDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[L&&(0,t.jsx)(d.Loader2,{className:"h-3 w-3 animate-spin text-muted-foreground"}),(0,t.jsx)(p.Switch,{id:"message-notifications",checked:n.enabled,onCheckedChange:e=>es({enabled:e}),disabled:L})]})]}),n.enabled&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)(N.Tabs,{value:n.provider,onValueChange:e=>es({provider:e}),className:"flex flex-col",children:[(0,t.jsxs)(N.TabsList,{className:"grid w-full grid-cols-3",children:[(0,t.jsx)(N.TabsTrigger,{value:"lark",children:g("notifications.lark")}),(0,t.jsx)(N.TabsTrigger,{value:"wechat",children:g("notifications.wechat")}),(0,t.jsx)(N.TabsTrigger,{value:"native",children:g("notifications.native")})]}),(0,t.jsxs)(N.TabsContent,{value:"lark",className:"space-y-3 pt-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"飞书 Bot 配置"}),(0,t.jsxs)(v.Button,{type:"button",variant:"ghost",size:"sm",className:"h-6 gap-1 px-2 text-xs text-muted-foreground hover:text-foreground",onClick:()=>Y(!0),children:[(0,t.jsx)(C.default,{className:"h-3.5 w-3.5"}),"部署教程"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(u.Label,{htmlFor:"lark-app-id",className:"text-xs text-muted-foreground",children:g("notifications.appId")}),(0,t.jsx)(w.Input,{id:"lark-app-id",value:n.lark?.appId??"",onChange:e=>r({...n,lark:{...n.lark,appId:e.target.value}}),placeholder:"cli_xxx",disabled:A})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(u.Label,{htmlFor:"lark-app-secret",className:"text-xs text-muted-foreground",children:g("notifications.appSecret")}),(0,t.jsx)(w.Input,{id:"lark-app-secret",type:"password",value:n.lark?.appSecret??"",onChange:e=>r({...n,lark:{...n.lark,appSecret:e.target.value}}),placeholder:"app secret",disabled:A})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(v.Button,{type:"button",size:"sm",variant:n.serviceRunning?"outline":"default",onClick:n.serviceRunning?ei:ea,disabled:A||L||!n.lark?.appId||!n.lark?.appSecret,children:[A?(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(F.Send,{className:"mr-2 h-3.5 w-3.5"}),n.serviceRunning?g("notifications.stopService"):g("notifications.startService")]}),(0,t.jsxs)(v.Button,{type:"button",size:"sm",variant:"outline",onClick:en,disabled:B||L||!n.serviceRunning,children:[B&&(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}),g("notifications.testSend")]})]})]}),(0,t.jsxs)(N.TabsContent,{value:"wechat",className:"space-y-3 pt-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[Z?(0,t.jsx)(S.CheckCircle2,{className:"h-4 w-4 text-emerald-600"}):(0,t.jsx)(I,{className:"h-4 w-4"}),g("wechat.robot")]}),(0,t.jsx)("p",{className:"mt-1 truncate text-xs text-muted-foreground",children:Z?g("wechat.connected",{accountId:n.wechat?.accountId??""}):"scaned"===W.status?g("wechat.scanned"):"expired"===W.status?g("wechat.expired"):g("wechat.scanQr")})]}),(0,t.jsxs)(v.Button,{type:"button",size:"sm",variant:"outline",onClick:er,disabled:M||L||A,children:[M?(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(P.RefreshCw,{className:"mr-2 h-3.5 w-3.5"}),Z?g("wechat.refreshLogin"):g("wechat.getQr")]})]}),W.qrcodeImgContent&&!Z&&(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-dashed px-3 py-3",children:[(0,t.jsx)("img",{src:(f=W.qrcodeImgContent,`https://api.qrserver.com/v1/create-qr-code/?size=180x180&margin=8&data=${encodeURIComponent(f)}`),alt:"WeChat robot login QR code",className:"h-36 w-36 shrink-0 rounded border bg-white p-2"}),(0,t.jsxs)("div",{className:"min-w-0 space-y-1 text-xs text-muted-foreground",children:[(0,t.jsx)("p",{children:g("wechat.status",{status:"scaned"===W.status?"scanned":W.status})}),(0,t.jsx)("p",{className:"break-all",children:g("wechat.loginUrl",{url:W.qrcodeImgContent})})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(v.Button,{type:"button",size:"sm",variant:n.serviceRunning?"outline":"default",onClick:n.serviceRunning?ei:ea,disabled:A||L||!Z,children:[A?(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(F.Send,{className:"mr-2 h-3.5 w-3.5"}),n.serviceRunning?g("notifications.stopService"):g("notifications.startService")]}),(0,t.jsxs)(v.Button,{type:"button",size:"sm",variant:"outline",onClick:en,disabled:B||L||!n.serviceRunning,children:[B&&(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}),g("notifications.testSend")]})]})]}),(0,t.jsxs)(N.TabsContent,{value:"native",className:"space-y-3 pt-2",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:g("notifications.nativeDescription")}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(T.Monitor,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsxs)("span",{className:"font-medium",children:["granted"===J&&(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(S.CheckCircle2,{className:"h-4 w-4 text-emerald-600"}),g("notifications.nativePermissionGranted")]}),"denied"===J&&g("notifications.nativePermissionDenied"),"default"===J&&g("notifications.nativePermissionDefault"),"unsupported"===J&&g("notifications.nativePermissionUnsupported")]})]}),"unsupported"!==J&&"granted"!==J&&(0,t.jsx)(v.Button,{type:"button",size:"sm",variant:"outline",onClick:async()=>{let e=await (0,m.requestNotificationPermission)();Q(e),"granted"===e?(es({native:{permissionGranted:!0}}),E.toast.success(g("notifications.nativePermissionGrantedToast"))):"denied"===e&&E.toast.error(g("notifications.nativePermissionDeniedToast"))},disabled:"denied"===J,children:g("notifications.nativeRequestPermission")})]}),H&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(u.Label,{htmlFor:"android-ongoing-task-notification",className:"text-sm font-medium",children:g("notifications.androidOngoingTaskNotification")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:g("notifications.androidOngoingTaskNotificationDescription")})]}),(0,t.jsx)(p.Switch,{id:"android-ongoing-task-notification",checked:n.native?.androidOngoingTaskNotification??!1,onCheckedChange:e=>es({native:{permissionGranted:n.native?.permissionGranted,androidOngoingTaskNotification:e}}),disabled:L||"granted"!==J})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,t.jsx)(v.Button,{type:"button",size:"sm",variant:"outline",onClick:async()=>{try{await (0,m.sendNativeNotification)("Agent Spaces",g("notifications.nativeTestSuccess")),E.toast.success(g("notifications.nativeTestSent"),{duration:5e3})}catch(e){E.toast.error(`${g("notifications.nativeTestFailed")}: ${e instanceof Error?e.message:e}`,{duration:5e3})}},disabled:"granted"!==J,children:g("notifications.testSend")})})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground",children:[(0,t.jsx)(b.Bot,{className:"h-3.5 w-3.5"}),g("botAgent.title")]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("select",{value:n.botAgentId??"",onChange:e=>{es({botAgentId:e.target.value||void 0})},disabled:L,className:"h-8 min-w-0 flex-1 rounded-lg border border-input bg-transparent px-2.5 text-sm outline-none focus-visible:border-ring dark:bg-input/30",children:[(0,t.jsx)("option",{value:"",children:g("botAgent.selectAgent")}),l.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsx)(v.Button,{type:"button",size:"sm",variant:"outline",onClick:()=>x(!0),children:j("manage")})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground",children:[(0,t.jsx)(k.default,{className:"h-3.5 w-3.5"}),g("events.title")]}),(0,t.jsx)("div",{className:"grid gap-2",children:O.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-md border px-3 py-2 text-sm",children:[(0,t.jsx)("input",{type:"checkbox",className:"h-4 w-4 accent-primary",checked:n.events.includes(e.value),onChange:t=>{var s,a;let i;return s=e.value,a=t.target.checked,i=new Set(n.events),void(a?i.add(s):i.delete(s),es({events:Array.from(i)}))},disabled:L}),(0,t.jsx)("span",{children:g(e.labelKey)})]},e.value))})]})]})]}),(0,t.jsx)(y.Dialog,{open:X,onOpenChange:Y,children:(0,t.jsxs)(y.DialogContent,{className:"sm:max-w-lg",children:[(0,t.jsxs)(y.DialogHeader,{children:[(0,t.jsx)(y.DialogTitle,{children:"创建飞书 Bot"}),(0,t.jsx)(y.DialogDescription,{children:"首次使用?按以下步骤在飞书开放平台创建机器人应用"})]}),(0,t.jsxs)("div",{className:"space-y-4 text-sm",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"1. 创建自建应用"}),(0,t.jsxs)("p",{className:"text-muted-foreground",children:["前往"," ",(0,t.jsx)("a",{href:"https://open.feishu.cn/app",target:"_blank",rel:"noreferrer",className:"underline underline-offset-3 hover:text-foreground",children:"飞书开放平台"})," ","(海外版:"," ",(0,t.jsx)("a",{href:"https://open.larksuite.com/app",target:"_blank",rel:"noreferrer",className:"underline underline-offset-3 hover:text-foreground",children:"Lark 开放平台"}),"),点击「创建自建应用」并填写名称描述。"]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"2. 获取凭证"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入详情页,在「凭证与基础信息」中找到 App ID 和 App Secret,复制到上方的配置表单。"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"3. 启用机器人能力"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「添加应用能力」页面,启用「机器人」能力。这样应用才能接收和发送飞书消息。"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"4. 配置权限"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「权限管理」页面,点击下方按钮复制权限配置 JSON,然后在飞书开放平台通过「批量开通」粘贴即可一键添加所有权限:"}),(0,t.jsx)(z,{})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"5. 配置事件订阅(关键步骤)"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「事件与回调」页面:"}),(0,t.jsxs)("ul",{className:"list-disc space-y-1 pl-4 text-muted-foreground",children:[(0,t.jsx)("li",{children:"事件订阅方式选择「使用长连接接收事件」(而非 Webhook,无需公网 IP)"}),(0,t.jsxs)("li",{children:["添加事件 ",(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"im.message.receive_v1"}),"(接收消息)"]})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"6. 发布应用"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「版本管理与发布」→ 创建版本 → 提交审核。需要企业管理员在管理后台审核通过后,机器人才能正常使用。"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"版本审核通过并发布后,在飞书中搜索机器人名称添加到聊天,即可通过飞书向 Proma Agent 发送指令。"})]})]})]})})]})}var q=e.i(788010),A=e.i(583705),R=e.i(638322);function B({workspaceId:e,initialPrompt:i}){let n=(0,a.useTranslations)("projectSettings"),[r,o]=(0,s.useState)(i),[c,l]=(0,s.useState)(i),[m,p]=(0,s.useState)(!1),h=r!==c,x=async()=>{if(!m){p(!0);try{let t=await fetch(`/api/workspaces/${e}/prompt`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:r})});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Failed to save workspace prompt")}let s=await t.json();o(s.prompt),l(s.prompt),E.toast.success(n("prompt.saveSuccess"))}catch(e){E.toast.error(n("prompt.saveFailed"),{description:e instanceof Error?e.message:void 0})}finally{p(!1)}}};return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:n("prompt.title")}),(0,t.jsxs)("div",{className:"space-y-3 rounded-md border px-3 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(u.Label,{htmlFor:"workspace-prompt",className:"text-sm font-medium",children:n("prompt.workspacePrompt")}),(0,t.jsx)(R.TooltipProvider,{delay:200,children:(0,t.jsxs)(R.Tooltip,{children:[(0,t.jsx)(R.TooltipTrigger,{className:"inline-flex",children:(0,t.jsx)(A.Info,{className:"h-3.5 w-3.5 text-muted-foreground cursor-help"})}),(0,t.jsx)(R.TooltipContent,{side:"top",className:"max-w-xs",children:(0,t.jsx)("p",{children:n("prompt.description")})})]})})]}),(0,t.jsx)(q.Textarea,{id:"workspace-prompt",value:r,onChange:e=>o(e.target.value),className:"min-h-36 resize-y text-sm"}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(v.Button,{type:"button",size:"sm",onClick:x,disabled:m||!h,children:[m&&(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}),n("prompt.savePrompt")]})})]})]})}e.s(["ProjectSettingsPanel",0,function({workspaceId:e}){let p=(0,a.useTranslations)("projectSettings"),[u,h]=(0,s.useState)(null),[x,f]=(0,s.useState)(""),[g,v]=(0,s.useState)(!0),[w,N]=(0,s.useState)(!1),[y,k]=(0,s.useState)(D()),b=(0,n.useChannelStore)(e=>e.channels),S=(0,r.useIssueStore)(e=>e.issues),C=(0,o.useAgentStore)(e=>e.agents).filter(e=>"bot"===e.role&&!1!==e.enabled),T=(0,c.useWorkspaceStore)(e=>e.upsertWorkspace);return((0,s.useEffect)(()=>{Promise.all([fetch(`/api/workspaces/${e}`).then(e=>e.json()),fetch(`/api/workspaces/${e}/prompt`).then(e=>e.json())]).then(([t,s])=>{h(t),T(t),f(s.prompt??"");let a=t.notificationSettings??D();k(a),v(!1),(0,m.getNotificationPermission)().then(t=>{if("granted"===t&&"native"===a.provider&&!a.native?.permissionGranted){let t={...a,native:{...a.native,permissionGranted:!0}};k(t),fetch(`/api/workspaces/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({notificationSettings:t})}).then(e=>e.json()).then(e=>{h(e),T(e)})}})}).catch(()=>v(!1))},[e,T]),g)?(0,t.jsxs)("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:[(0,t.jsx)(d.Loader2,{className:"h-4 w-4 animate-spin mr-2"}),p("loading")]}):u?(0,t.jsxs)(i.ScrollArea,{className:"h-full",children:[(0,t.jsx)("div",{className:"flex items-center px-2 py-1.5 border-b text-xs font-medium text-muted-foreground",children:(0,t.jsx)("span",{children:p("title")})}),(0,t.jsxs)("div",{className:"p-4 space-y-6",children:[(0,t.jsx)(j,{workspace:u,channelCount:b.length,issueCount:S.length}),(0,t.jsx)(_,{workspaceId:e,workspace:u,notificationDraft:y,setNotificationDraft:k,setWorkspace:h,botAgents:C,agentDialogOpen:w,setAgentDialogOpen:N}),(0,t.jsx)(B,{workspaceId:e,initialPrompt:x})]}),(0,t.jsx)(l.AgentDialog,{open:w,onOpenChange:N,roleFilter:"bot"})]}):(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:p("workspaceNotFound")})}],896841)},985646,e=>{e.n(e.i(896841))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,625873,e=>{"use strict";var t=e.i(344180),s=e.i(764556),n=e.i(244073),a=e.i(209988),i=e.i(260218),l=e.i(191118),r=e.i(513501),o=e.i(989484),c=e.i(193251),d=e.i(973370),m=e.i(887354),p=e.i(681622),h=e.i(917955),u=e.i(611176),x=e.i(255742),f=e.i(973767),g=e.i(129981),j=e.i(601039),y=e.i(977694),v=e.i(137340),N=e.i(401058),k=e.i(451534);let w=(0,e.i(433721).default)("file-archive",[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]]);var b=e.i(327962),C=e.i(62669),S=e.i(465458),z=e.i(256186),T=e.i(650654),D=e.i(992764);function I({items:e,onItemsChange:a,onConfirm:r,onCancel:o,defaultGroup:c}){let d=(0,n.useTranslations)("skills"),[m,h]=(0,s.useState)(""),[u,x]=(0,s.useState)(new Set),f=(t,s)=>{a(e.map(e=>e.id===t?{...e,...s}:e))},g=e.filter(e=>e.selected).length;return(0,t.jsxs)("div",{className:"flex flex-col flex-1 min-h-0 pt-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:d("importPreviewTitle")}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(i.Button,{variant:"ghost",size:"sm",onClick:()=>{a(e.map(e=>({...e,selected:!0})))},children:d("importPreviewSelectAll")}),(0,t.jsx)(i.Button,{variant:"ghost",size:"sm",onClick:()=>{a(e.map(e=>({...e,selected:!1})))},children:d("importPreviewDeselectAll")})]}),(0,t.jsx)(p.Input,{value:m,onChange:e=>h(e.target.value),placeholder:c||d("importPreviewGroupPlaceholder"),className:"h-7 text-sm w-32"})]}),0===e.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-8 text-muted-foreground text-sm",children:d("importPreviewEmpty")}):(0,t.jsx)(l.ScrollArea,{className:"flex-1 min-h-0",children:(0,t.jsx)("div",{className:"space-y-2 pr-2",children:e.map(s=>{let n=u.has(s.id);return(0,t.jsxs)("div",{className:"rounded-lg border border-border bg-background p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",checked:s.selected,onChange:()=>{var t;f(t=s.id,{selected:!e.find(e=>e.id===t).selected})},className:"mt-0.5 size-3.5 accent-primary shrink-0"}),(0,t.jsx)(p.Input,{value:s.name,onChange:e=>f(s.id,{name:e.target.value}),placeholder:d("importPreviewNamePlaceholder"),className:"h-7 text-sm flex-1"}),(0,t.jsx)(p.Input,{value:s.group,onChange:e=>f(s.id,{group:e.target.value}),placeholder:d("importPreviewGroupPlaceholder"),className:"h-7 text-sm w-32"}),(0,t.jsx)("button",{type:"button",onClick:()=>{var e;return e=s.id,void x(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},className:"p-1 rounded hover:bg-accent shrink-0 cursor-pointer",children:n?(0,t.jsx)(T.ChevronDown,{className:"size-3.5 text-muted-foreground"}):(0,t.jsx)(D.ChevronRight,{className:"size-3.5 text-muted-foreground"})})]}),(0,t.jsx)(z.Collapsible,{open:n,children:(0,t.jsx)(z.CollapsibleContent,{children:(0,t.jsxs)("pre",{className:"mt-2 p-2 bg-muted rounded text-xs overflow-auto max-h-48 whitespace-pre-wrap",children:[s.content.slice(0,2e3),s.content.length>2e3?"\n...":""]})})})]},s.id)})})}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-2 mt-2 border-t",children:[(0,t.jsx)(i.Button,{variant:"outline",size:"sm",onClick:o,children:d("importPreviewCancel")}),(0,t.jsx)(i.Button,{size:"sm",onClick:()=>{let t=e.filter(e=>e.selected).map(e=>({...e,group:e.group||m}));0!==t.length&&r(t)},disabled:0===g,children:d("importPreviewConfirm",{selected:g,total:e.length})})]})]})}function A({skills:r,agents:c,loading:z,syncLoading:T,onToggleFavorite:D,onDelete:$,onEdit:F,onBind:B,onImportBatch:P,onImportFromGit:L,onSyncCheck:M,onBindAll:O}){let U=(0,n.useTranslations)("skills"),R=(0,n.useTranslations)("common"),[_,E]=(0,s.useState)(""),[G,J]=(0,s.useState)("all"),[H,K]=(0,s.useState)(""),[W,q]=(0,s.useState)(""),V=(0,s.useRef)(null),Z=(0,s.useRef)(null),Q=(0,s.useRef)(null),[X,Y]=(0,s.useState)([]),[ee,et]=(0,s.useState)(!1),[es,en]=(0,s.useState)(""),[ea,ei]=(0,s.useState)(""),[el,er]=(0,s.useState)(!1),[eo,ec]=(0,s.useState)(!1),ed=Array.from(new Set(r.map(e=>e.group).filter(Boolean))),em=r.filter(e=>{if(_){let t=_.toLowerCase();if(!e.name.toLowerCase().includes(t)&&!e.content.toLowerCase().includes(t))return!1}if("favorites"===G&&!e.favorited||"agent"===G&&H&&!e.boundAgents.some(e=>e.id===H))return!1;if(W){if("__none__"===W){if(e.group)return!1}else if(e.group!==W)return!1}return!0}),ep=async e=>{let t=e.target.files;if(!t||0===t.length)return;let s=[];for(let e of Array.from(t)){let t=await e.text(),n=e.name.replace(/\.md$/i,"");s.push({id:`md-${n}-${Math.random().toString(36).slice(2,8)}`,name:n,group:"",content:t,selected:!0,sourceName:e.name})}Y(s),en(""),et(!0),e.target.value=""},eh=async e=>{let t=e.target.files;if(!t||0===t.length)return;let s=new Map;for(let e of Array.from(t)){let t=e.webkitRelativePath.split("/")[0];s.has(t)||s.set(t,[]),s.get(t).push(e)}let n=[];for(let[e,t]of s){let s=t.find(e=>"SKILL.md"===e.name);if(s||(s=t.find(e=>e.name.endsWith(".md"))),!s)continue;let a=await s.text();n.push({id:`folder-${e}-${Math.random().toString(36).slice(2,8)}`,name:e,group:"",content:a,selected:!0,sourceName:e})}Y(n),en(""),et(!0),e.target.value=""},eu=async t=>{let s=t.target.files?.[0];if(s){try{let t=(await e.A(980476)).default,n=await t.loadAsync(s),a=s.name.replace(/\.zip$/i,""),i=new Map;n.forEach((e,t)=>{if(t.dir)return;let s=e.split("/").pop()||"",n=e.substring(0,e.lastIndexOf("/"));if(!n){if(s.endsWith(".md")&&"SKILL.md"!==s){let t=s.replace(/\.md$/i,"");i.has(t)||i.set(t,[]),i.get(t).push({file:s,path:e})}return}let a=n.split("/")[0];i.has(a)||i.set(a,[]),i.get(a).push({file:s,path:e})});let l=[];for(let[e,t]of i){let s=t.find(e=>"SKILL.md"===e.file);if(s||(s=t.find(e=>e.file.endsWith(".md"))),!s)continue;let a=await n.file(s.path).async("string");l.push({id:`zip-${e}-${Math.random().toString(36).slice(2,8)}`,name:e,group:"",content:a,selected:!0,sourceName:e})}Y(l),en(a),et(!0)}catch(e){console.error("Failed to extract ZIP:",e)}t.target.value=""}},ex=async()=>{let e=ea.trim();if(!e)return;er(!0);let t=await L(e);if(er(!1),t&&t.length>0){let s=e.split("/").pop()?.replace(/\.git$/i,"")||"";Y(t),en(s),et(!0),ec(!1)}ei("")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{ref:V,type:"file",accept:".md",multiple:!0,className:"hidden",onChange:ep}),(0,t.jsx)("input",{ref:Z,type:"file",className:"hidden",onChange:eh,webkitdirectory:"",directory:""}),(0,t.jsx)("input",{ref:Q,type:"file",accept:".zip",className:"hidden",onChange:eu}),(0,t.jsxs)("div",{className:"flex items-center gap-2 ml-auto shrink-0 pt-2",children:[(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",onClick:M,disabled:T,children:[(0,t.jsx)(j.RefreshCw,{className:(0,S.cn)("size-3.5 mr-1",T&&"animate-spin")}),U("syncToAgents")]}),(0,t.jsxs)(h.DropdownMenu,{children:[(0,t.jsx)(h.DropdownMenuTrigger,{render:(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",children:[(0,t.jsx)(g.Upload,{className:"size-3.5 mr-1"}),U("import")]})}),(0,t.jsxs)(h.DropdownMenuContent,{align:"end",children:[(0,t.jsxs)(h.DropdownMenuItem,{onClick:()=>V.current?.click(),children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),U("importFromMd")]}),(0,t.jsxs)(h.DropdownMenuItem,{onClick:()=>Z.current?.click(),children:[(0,t.jsx)(k.FolderOpen,{className:"size-3.5 mr-1.5"}),U("importFromFolder")]}),(0,t.jsxs)(h.DropdownMenuItem,{onClick:()=>Q.current?.click(),children:[(0,t.jsx)(w,{className:"size-3.5 mr-1.5"}),U("importFromZip")]}),(0,t.jsxs)(h.DropdownMenuItem,{onClick:()=>ec(!0),disabled:el,children:[(0,t.jsx)(b.GitBranch,{className:"size-3.5 mr-1.5"}),U("importFromGit")]})]})]})]}),ee?(0,t.jsx)(I,{items:X,onItemsChange:Y,onConfirm:e=>{P(e),et(!1),Y([])},onCancel:()=>{et(!1),Y([])},defaultGroup:es}):(0,t.jsxs)("div",{className:"flex flex-1 min-h-0 gap-4 pt-2",children:[(0,t.jsx)(l.ScrollArea,{className:"hidden md:block w-44 shrink-0",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 pr-2",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)(i.Button,{variant:"all"!==G||W?"ghost":"secondary",size:"sm",className:"w-full justify-start",onClick:()=>{J("all"),K(""),q("")},children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),U("filterAll")]}),(0,t.jsxs)(i.Button,{variant:"favorites"===G?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{J("favorites"),K(""),q("")},children:[(0,t.jsx)(x.Star,{className:"size-3.5 mr-1.5"}),U("filterFavorites")]})]}),c.length>0&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground px-2",children:U("filterByAgent")}),c.map(e=>(0,t.jsxs)(i.Button,{variant:"agent"===G&&H===e.id?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{J("agent"),K(e.id),q("")},children:[(0,t.jsx)(u.AgentIcon,{agentId:e.id,name:e.name,avatarUrl:e.avatarUrl,className:"size-4 mr-1.5 rounded-full"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]},e.id))]}),ed.length>0&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground px-2",children:U("filterGroups")}),ed.map(e=>(0,t.jsxs)(i.Button,{variant:W===e?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{q(W===e?"":e),J("all"),K("")},children:[(0,t.jsx)(d.Folder,{className:"size-3.5 mr-1.5"}),(0,t.jsx)("span",{className:"truncate",children:e})]},e)),r.some(e=>!e.group)&&(0,t.jsxs)(i.Button,{variant:"__none__"===W?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{q("__none__"===W?"":"__none__"),J("all"),K("")},children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),U("filterNoGroup")]})]})]})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-3 min-h-0",children:[(0,t.jsxs)("div",{className:"flex md:hidden flex-col gap-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(m.Search,{className:"size-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(p.Input,{value:_,onChange:e=>E(e.target.value),placeholder:U("search"),className:"pl-8"})]}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)("div",{className:"flex rounded-lg border border-input p-0.5",children:[(0,t.jsx)("button",{type:"button",className:(0,S.cn)("px-2.5 py-1 rounded-md text-xs font-medium transition-colors","all"!==G||W?"text-muted-foreground hover:text-foreground":"bg-muted"),onClick:()=>{J("all"),K(""),q("")},children:U("filterAll")}),(0,t.jsxs)("button",{type:"button",className:(0,S.cn)("px-2.5 py-1 rounded-md text-xs font-medium transition-colors","favorites"===G?"bg-muted":"text-muted-foreground hover:text-foreground"),onClick:()=>{J("favorites"),K(""),q("")},children:[(0,t.jsx)(x.Star,{className:"size-3 inline-block mr-0.5 -mt-px"}),U("filterFavorites")]})]})})]}),(0,t.jsxs)("div",{className:"hidden md:block relative",children:[(0,t.jsx)(m.Search,{className:"size-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(p.Input,{value:_,onChange:e=>E(e.target.value),placeholder:U("search"),className:"pl-8"})]}),(0,t.jsx)(l.ScrollArea,{className:"flex-1 min-h-0",children:z?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:R("loading")}):0===em.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:U("empty")}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 pr-2",children:em.map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4 hover:bg-accent/30 transition-colors cursor-pointer",onClick:()=>F(e),children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"font-medium text-sm",children:e.name}),e.group&&(0,t.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium",children:e.group}),(0,t.jsx)("button",{type:"button",className:"flex items-center justify-center size-5 rounded hover:bg-accent cursor-pointer",onClick:t=>{t.stopPropagation(),D(e)},children:e.favorited?(0,t.jsx)(x.Star,{className:"size-3.5 text-yellow-500 fill-yellow-500"}):(0,t.jsx)(f.StarOff,{className:"size-3.5 text-muted-foreground"})})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description||e.content.slice(0,120).replace(/^#\s+/,"")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",onClick:()=>B(e),children:[(0,t.jsx)(y.Rocket,{className:"size-3.5 mr-1"}),U("apply")]}),(0,t.jsxs)(h.DropdownMenu,{children:[(0,t.jsx)(h.DropdownMenuTrigger,{render:(0,t.jsx)(i.Button,{variant:"ghost",size:"icon",className:"size-7"}),children:(0,t.jsx)(N.MoreVertical,{className:"size-3.5"})}),(0,t.jsxs)(h.DropdownMenuContent,{align:"end",children:[(0,t.jsxs)(h.DropdownMenuItem,{onClick:()=>fetch(`/api/skills/${encodeURIComponent(e.name)}/reveal`,{method:"POST"}),children:[(0,t.jsx)(k.FolderOpen,{className:"size-3.5 mr-1.5"}),U("revealFolder")]}),(0,t.jsxs)(h.DropdownMenuItem,{className:"text-destructive focus:text-destructive",onClick:()=>$(e),children:[(0,t.jsx)(v.Trash2,{className:"size-3.5 mr-1.5"}),U("delete")]})]})]})]})]}),e.boundAgents.length>0&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-2.5 pt-2.5 border-t border-border/50",children:[e.boundAgents.map(e=>(0,t.jsx)(u.AgentIcon,{agentId:e.id,name:e.name,avatarUrl:e.avatarUrl,className:"size-5 rounded-full"},e.id)),(0,t.jsx)("span",{className:"text-xs text-muted-foreground ml-1",children:e.boundAgents.length})]})]},e.name))})}),(0,t.jsx)("div",{className:"hidden md:flex items-center justify-end gap-3 pt-2 border-t shrink-0",children:(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",onClick:O,disabled:0===em.length,children:[(0,t.jsx)(y.Rocket,{className:"size-3.5 mr-1"}),U("applyAllToAgent")]})})]})]}),(0,t.jsx)(a.Dialog,{open:eo,onOpenChange:ec,children:(0,t.jsxs)(a.DialogContent,{className:"sm:max-w-md",children:[(0,t.jsxs)(a.DialogHeader,{children:[(0,t.jsx)(a.DialogTitle,{children:U("importFromGit")}),(0,t.jsx)(a.DialogDescription,{children:U("importFromGitDesc")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Input,{value:ea,onChange:e=>ei(e.target.value),placeholder:"https://github.com/user/skills-repo.git",onKeyDown:e=>{"Enter"===e.key&&ex()},disabled:el,autoFocus:!0}),(0,t.jsx)(i.Button,{onClick:ex,disabled:el||!ea.trim(),children:el?(0,t.jsx)(C.Loader2,{className:"size-4 animate-spin"}):U("import")})]})]})})]})}var $=e.i(887836),F=e.i(984178),B=e.i(383171),P=e.i(415955),L=e.i(932031),M=e.i(111343),O=e.i(564822);e.i(462506);let U=(0,$.default)(()=>e.A(863812).then(e=>e.default),{loadableGenerated:{modules:[158480]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:"Loading editor..."})});function R({node:e,depth:s,selectedPath:n,onSelect:a,expandedPaths:i,toggleExpand:l}){let r=i.has(e.path),o=n===e.path;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,S.cn)("flex items-center gap-1 rounded px-2 py-1 cursor-pointer hover:bg-muted/50 text-sm",o&&"bg-muted"),style:{paddingLeft:`${12*s+8}px`},onClick:()=>{e.isDirectory?l(e.path):a(e)},children:[e.isDirectory&&(0,t.jsx)(L.ChevronRightIcon,{className:(0,S.cn)("size-3.5 shrink-0 text-muted-foreground transition-transform",r&&"rotate-90")}),!e.isDirectory&&(0,t.jsx)("span",{className:"size-3.5 shrink-0"}),e.isDirectory?r?(0,t.jsx)(P.FolderOpenIcon,{className:"size-4 text-blue-500 shrink-0"}):(0,t.jsx)(B.FolderIcon,{className:"size-4 text-blue-500 shrink-0"}):(0,t.jsx)(F.FileIcon,{className:"size-4 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]}),e.isDirectory&&r&&e.children.map(e=>(0,t.jsx)(R,{node:e,depth:s+1,selectedPath:n,onSelect:a,expandedPaths:i,toggleExpand:l},e.path))]})}function _({skill:e,content:l,onContentChange:r,onClose:o,onSave:c}){let d=(0,n.useTranslations)("skills"),m=(0,n.useTranslations)("common"),p=(0,O.useIsMobile)(),[h,u]=(0,s.useState)([]),[x,f]=(0,s.useState)(null),[g,j]=(0,s.useState)({}),[y,v]=(0,s.useState)(new Set),[N,k]=(0,s.useState)(!1),[w,b]=(0,s.useState)(new Set),z=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{if(!e)return;f(null),j({}),b(new Set),v(new Set),u([]),z.current=new Set,k(!0);let t=e.name;fetch(`/api/skills/${encodeURIComponent(t)}/files`).then(e=>e.ok?e.json():[]).then(e=>{u(e),v(new Set(e.filter(e=>e.isDirectory&&!e.path.includes("/")).map(e=>e.path)));let s=e.find(e=>"SKILL.md"===e.path&&!e.isDirectory)||e.find(e=>!e.isDirectory);if(!s)return void k(!1);f(s.path);let n=s.path.split("/").map(encodeURIComponent).join("/");fetch(`/api/skills/${encodeURIComponent(t)}/files/${n}`).then(e=>e.ok?e.json():null).then(e=>{e&&(j({[s.path]:e.content}),z.current.add(s.path))}).catch(()=>{}).finally(()=>k(!1))}).catch(()=>{u([]),k(!1)})},[e]);let T=(0,s.useCallback)((e,t)=>{if(z.current.has(t))return;z.current.add(t),k(!0);let s=t.split("/").map(encodeURIComponent).join("/");fetch(`/api/skills/${encodeURIComponent(e)}/files/${s}`).then(e=>e.ok?e.json():null).then(e=>{e&&j(s=>({...s,[t]:e.content}))}).catch(()=>{}).finally(()=>k(!1))},[]),D=(0,s.useMemo)(()=>(function(e){let t=[],s=new Map;for(let n of e){let e=n.path.split("/"),a=t;for(let t=0;t<e.length;t++){let i=e.slice(0,t+1).join("/"),l=t<e.length-1||n.isDirectory,r=a.find(s=>s.name===e[t]);if(r)a=r.children;else{let n={name:e[t],path:i,isDirectory:l,children:[]};a.push(n),l&&s.set(i,n),a=n.children}}}return t})(h),[h]),I=t=>{!t.isDirectory&&(f(t.path),e&&T(e.name,t.path))},A=e=>{v(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},$=x?g[x]??"":"",F=x?({md:"markdown",markdown:"markdown",json:"json",js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml",xml:"xml",html:"html",css:"css",sql:"sql"})[x.split(".").pop()?.toLowerCase()||""]||"plaintext":"markdown",B=e=>{if(!x)return;let t=e||"";j(e=>({...e,[x]:t})),b(e=>new Set(e).add(x)),r(t)},P=async()=>{if(!e||!x)return;let t=g[x];if(void 0===t)return;let s=x.split("/").map(encodeURIComponent).join("/");(await fetch(`/api/skills/${encodeURIComponent(e.name)}/files/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})})).ok&&(b(e=>{let t=new Set(e);return t.delete(x),t}),c())},L=(0,s.useMemo)(()=>h.filter(e=>!e.isDirectory),[h]);return(0,t.jsx)(a.Dialog,{open:!!e,onOpenChange:e=>{e||o()},children:(0,t.jsxs)(a.DialogContent,{className:"!w-[85vw] !max-w-[85vw] !h-[85vh] flex flex-col",children:[(0,t.jsx)(a.DialogHeader,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between pr-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(a.DialogTitle,{children:d("editTitle",{name:e?.name||""})}),(0,t.jsx)(a.DialogDescription,{children:d("editDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[w.size>0&&(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[w.size," unsaved"]}),(0,t.jsxs)(i.Button,{size:"sm",onClick:P,disabled:!x||!w.has(x??""),children:[(0,t.jsx)(M.Save,{className:"size-3.5 mr-1"}),m("save")]})]})]})}),p?(0,t.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col pt-2",children:[(0,t.jsx)("div",{className:"flex overflow-x-auto border-b gap-0.5 px-1 shrink-0",children:L.map(e=>(0,t.jsx)("button",{className:(0,S.cn)("shrink-0 px-3 py-1.5 text-xs rounded-t transition-colors whitespace-nowrap",x===e.path?"bg-muted font-medium":"text-muted-foreground hover:text-foreground",w.has(e.path)&&'after:content-[""] after:inline-block after:size-1.5 after:bg-orange-500 after:rounded-full after:ml-1'),onClick:()=>I({name:e.name,path:e.path,isDirectory:!1,children:[]}),children:e.name},e.path))}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:N?(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)(C.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):(0,t.jsx)(U,{height:"100%",language:F,value:$,onChange:B,theme:"vs-dark",options:{fontSize:13,minimap:{enabled:!1},scrollBeyondLastLine:!1,padding:{top:8},renderLineHighlight:"gutter",wordWrap:"on"}})})]}):(0,t.jsxs)("div",{className:"flex-1 min-h-0 flex gap-0 pt-2 border rounded-md overflow-hidden",children:[(0,t.jsxs)("div",{className:"w-48 shrink-0 border-r bg-muted/20 overflow-y-auto py-1",children:[D.map(e=>(0,t.jsx)(R,{node:e,depth:0,selectedPath:x??"",onSelect:I,expandedPaths:y,toggleExpand:A},e.path)),0===h.length&&(0,t.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"No files"})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:N?(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)(C.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):(0,t.jsx)(U,{height:"100%",language:F,value:$,onChange:B,theme:"vs-dark",options:{fontSize:13,minimap:{enabled:!1},scrollBeyondLastLine:!1,padding:{top:8},renderLineHighlight:"gutter",wordWrap:"on"}})})]})]})})}var E=e.i(239340);function G({skill:e,titleOverride:s,descriptionOverride:a,agents:i,selected:l,onToggle:r,onClose:o,onConfirm:c}){let d=(0,n.useTranslations)("skills"),m=(0,n.useTranslations)("common");return(0,t.jsx)(E.AgentPickerDialog,{open:!!e,onClose:o,onConfirm:c,title:s||d("bindTitle",{name:e?.name||""}),description:a||d("bindDescription"),agents:i,selected:l,onToggle:r,cancelText:m("cancel"),confirmText:m("confirm")})}function J({open:e,onOpenChange:s,items:r,selected:o,onToggle:c,onConfirm:d}){let m=(0,n.useTranslations)("skills"),p=(0,n.useTranslations)("common");return(0,t.jsx)(a.Dialog,{open:e,onOpenChange:s,children:(0,t.jsxs)(a.DialogContent,{className:"sm:max-w-lg",children:[(0,t.jsxs)(a.DialogHeader,{children:[(0,t.jsx)(a.DialogTitle,{children:m("syncTitle")}),(0,t.jsx)(a.DialogDescription,{children:m("syncDescription")})]}),(0,t.jsxs)("div",{className:"space-y-3 pt-2",children:[0===r.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-8 text-muted-foreground text-sm",children:m("syncEmpty")}):(0,t.jsx)(l.ScrollArea,{className:"max-h-72",children:(0,t.jsx)("div",{className:"space-y-1",children:r.map(e=>{let s=`${e.agentId}::${e.skillName}`;return(0,t.jsxs)("button",{type:"button",onClick:()=>c(e.agentId,e.skillName),className:"flex items-center gap-3 w-full px-2 py-1.5 rounded-md hover:bg-muted text-left text-sm transition-colors",children:[(0,t.jsx)("div",{className:(0,S.cn)("flex items-center justify-center size-4 rounded border shrink-0",o.has(s)?"bg-primary border-primary text-primary-foreground":"border-input")}),(0,t.jsx)(u.AgentIcon,{agentId:e.agentId,name:e.agentName,className:"size-5 rounded-full"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.agentName}),(0,t.jsxs)("span",{className:"text-muted-foreground text-xs shrink-0",children:[e.skillName,".md"]})]},s)})})}),r.length>0&&(0,t.jsxs)("div",{className:"flex justify-end gap-2 pt-1",children:[(0,t.jsx)(i.Button,{variant:"outline",onClick:()=>s(!1),children:p("cancel")}),(0,t.jsx)(i.Button,{onClick:d,disabled:0===o.size,children:m("syncConfirm")})]})]})]})})}e.s(["SkillsDialog",0,function({open:e,onOpenChange:h,standalone:u}){let x=(0,n.useTranslations)("skills"),f=(0,n.useTranslations)("common"),[g,j]=(0,s.useState)("local"),{skills:y,setSkills:v,agents:N,loading:k,fetchSkills:w,storeSkills:b,storeLoading:C,importingPaths:S,importFromStore:z}=function(e,t){let[n,a]=(0,s.useState)([]),[i,l]=(0,s.useState)([]),[r,o]=(0,s.useState)(!1),[c,d]=(0,s.useState)([]),[m,p]=(0,s.useState)(!1),[h,u]=(0,s.useState)(new Set),x=(0,s.useCallback)(async()=>{o(!0);try{let e=await fetch("/api/skills");e.ok&&a(await e.json())}catch{}o(!1)},[]),f=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/agents/presets");if(e.ok){let t=await e.json();l(t.map(e=>({id:e.id,name:e.name,avatarUrl:e.avatarUrl,description:e.description})))}}catch{}},[]),g=(0,s.useCallback)(async()=>{p(!0);try{let e=await fetch("/public/skills/index.json");e.ok&&d(await e.json())}catch{}p(!1)},[]);(0,s.useEffect)(()=>{(e||t)&&(x(),f(),g())},[e,t,x,f,g]);let j=new Set(n.map(e=>e.name)),y=async e=>{if(j.has(e.id)||h.has(e.path))return!1;u(t=>new Set(t).add(e.path));try{if((await fetch("/api/skills/import-store",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e.path,group:e.group})})).ok)return await x(),!0}catch{}return u(t=>{let s=new Set(t);return s.delete(e.path),s}),!1};return{skills:n,setSkills:a,agents:i,loading:r,fetchSkills:x,storeSkills:c,storeLoading:m,importingPaths:h,importFromStore:y}}(e,u),T={toggleFavorite:async e=>{try{let t=await fetch(`/api/skills/${encodeURIComponent(e.name)}/favorite`,{method:"POST"});if(t.ok){let{favorited:s}=await t.json();v(t=>t.map(t=>t.name===e.name?{...t,favorited:s}:t))}}catch{}},deleteSkill:async e=>{try{(await fetch(`/api/skills/${encodeURIComponent(e.name)}`,{method:"DELETE"})).ok&&v(t=>t.filter(t=>t.name!==e.name))}catch{}},saveEdit:async(e,t)=>{try{if((await fetch(`/api/skills/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})})).ok)return v(s=>s.map(s=>s.name===e?{...s,content:t}:s)),!0}catch{}return!1},importBatch:async e=>{let t=e.map(e=>({name:e.name,content:e.content,group:e.group}));try{(await fetch("/api/skills/import-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:t})})).ok&&w()}catch{}},importFromGit:async e=>{try{let t=await fetch("/api/skills/import-git",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})});if(!t.ok)return null;return(await t.json()).map(e=>({id:`git-${e.name}-${Math.random().toString(36).slice(2,8)}`,name:e.name,group:"",content:e.content,selected:!0,sourceName:e.name}))}catch{}return null},bindConfirm:async(e,t,s)=>{for(let n of s){let s=e.boundAgents.some(e=>e.id===n.id),a=t.includes(n.id);if(s&&!a){let t=await fetch(`/api/agents/presets/${n.id}`);if(!t.ok)continue;let s=await t.json(),a=(s.skills||[]).filter(t=>t.replace(/\.md$/i,"")!==e.name);await fetch(`/api/agents/presets/${n.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,skills:a})})}else if(!s&&a){let t=await fetch(`/api/agents/presets/${n.id}`);if(!t.ok)continue;let s=await t.json();if(!(s.skills||[]).map(e=>e.replace(/\.md$/i,"")).includes(e.name)){let t=[...s.skills||[],e.name];await fetch(`/api/agents/presets/${n.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,skills:t})})}}}w()},applyAllToAgent:async(e,t)=>{try{let s=await fetch(`/api/agents/presets/${e}`);if(!s.ok)return;let n=await s.json(),a=new Set((n.skills||[]).map(e=>e.replace(/\.md$/i,""))),i=[...n.skills||[]];for(let e of t)a.has(e)||i.push(e);await fetch(`/api/agents/presets/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,skills:i})}),w()}catch{}},syncCheck:async()=>{let e=await fetch("/api/skills/sync-check");return e.ok?e.json():[]},syncConfirm:async e=>{let t=await fetch("/api/skills/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:e.map(e=>({agentId:e.agentId,skillName:e.skillName}))})});return t.ok&&w(),t.ok}},[D,I]=(0,s.useState)(null),[$,F]=(0,s.useState)(""),[B,P]=(0,s.useState)(null),[L,M]=(0,s.useState)([]),[O,U]=(0,s.useState)([]),[R,E]=(0,s.useState)(new Set),[H,K]=(0,s.useState)(!1),[W,q]=(0,s.useState)(!1),[V,Z]=(0,s.useState)(""),[Q,X]=(0,s.useState)(""),Y="__bind_all__",ee=B?.name===Y,et=async()=>{!D||await T.saveEdit(D.name,$)&&I(null)},es=async()=>{if(B){if(ee){let e=y.map(e=>e.name);for(let t of L)await T.applyAllToAgent(t,e)}else await T.bindConfirm(B,L,N);P(null)}},en=async()=>{q(!0);let e=await T.syncCheck();e.length>0&&(U(e),E(new Set(e.map(e=>`${e.agentId}::${e.skillName}`))),K(!0)),q(!1)},ea=async()=>{let e=O.filter(e=>R.has(`${e.agentId}::${e.skillName}`));0===e.length||await T.syncConfirm(e)&&K(!1)},ei=(u||e)&&!B&&!D,el=Array.from(new Set(b.map(e=>e.group).filter(Boolean))),er=new Set(y.map(e=>e.name)),eo=b.filter(e=>{if(V&&e.group!==V)return!1;if(Q){let t=Q.toLowerCase();if(!e.name.toLowerCase().includes(t)&&!e.id.toLowerCase().includes(t)&&!e.group.toLowerCase().includes(t))return!1}return!0}),ec=async e=>{await z(e)},ed=(0,t.jsx)("div",{className:"flex items-center gap-1 border-b border-border px-1",children:[["local",o.FileText,x("tabLocal")],["store",r.Store,x("tabStore")]].map(([e,s,n])=>(0,t.jsxs)("button",{onClick:()=>j(e),className:`flex items-center gap-1.5 px-3 py-2 text-sm font-medium border-b-2 transition-colors ${g===e?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[(0,t.jsx)(s,{className:"size-3.5"}),n]},e))}),em=(0,t.jsxs)("div",{className:"flex flex-1 min-h-0 gap-4 pt-2",children:[el.length>0&&(0,t.jsx)(l.ScrollArea,{className:"hidden md:block w-44 shrink-0",children:(0,t.jsxs)("div",{className:"flex flex-col gap-1 pr-2",children:[(0,t.jsxs)(i.Button,{variant:V?"ghost":"secondary",size:"sm",className:"w-full justify-start",onClick:()=>Z(""),children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),x("filterAll")]}),el.map(e=>(0,t.jsxs)(i.Button,{variant:V===e?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>Z(V===e?"":e),children:[(0,t.jsx)(d.Folder,{className:"size-3.5 mr-1.5"}),(0,t.jsx)("span",{className:"truncate",children:e})]},e))]})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col min-h-0",children:[(0,t.jsxs)("div",{className:"relative mb-3",children:[(0,t.jsx)(m.Search,{className:"size-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(p.Input,{value:Q,onChange:e=>X(e.target.value),placeholder:x("search"),className:"pl-8"})]}),(0,t.jsx)(l.ScrollArea,{className:"flex-1",children:C?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:f("loading")}):0===eo.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:x("storeEmpty")}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 pr-2",children:eo.map(e=>{let s=er.has(e.id),n=S.has(e.path);return(0,t.jsx)("div",{className:"rounded-xl border border-border bg-background p-4 hover:bg-accent/30 transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(r.Store,{className:"size-3.5 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"font-medium text-sm",children:e.name}),(0,t.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium",children:e.group})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.id})]}),(0,t.jsx)(i.Button,{variant:s?"ghost":"outline",size:"sm",className:"shrink-0",disabled:s||n,onClick:()=>ec(e),children:s?x("imported"):n?x("importing"):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Download,{className:"size-3.5 mr-1"}),x("importTo")]})})]})},e.path)})})})]})]}),ep=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.DialogHeader,{children:(0,t.jsxs)("div",{className:"hidden md:block",children:[u?(0,t.jsx)("h2",{className:"text-base font-semibold",children:x("title")}):(0,t.jsx)(a.DialogTitle,{children:x("title")}),u?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:x("description")}):(0,t.jsx)(a.DialogDescription,{children:x("description")})]})}),ed,(0,t.jsx)("div",{className:"flex flex-1 min-h-0 flex-col",children:"local"===g?(0,t.jsx)(A,{skills:y,agents:N,loading:k,syncLoading:W,onToggleFavorite:T.toggleFavorite,onDelete:T.deleteSkill,onEdit:e=>{I(e),F(e.content)},onBind:e=>{P(e),M(e.boundAgents.map(e=>e.id))},onImportBatch:T.importBatch,onImportFromGit:T.importFromGit,onSyncCheck:en,onBindAll:()=>{P({name:Y,description:"",filename:"",content:"",favorited:!1,group:"",boundAgents:[]}),M([])}}):em})]});return(0,t.jsxs)(t.Fragment,{children:[u&&ei&&(0,t.jsx)("div",{className:"h-full flex flex-col",children:ep}),!u&&(0,t.jsx)(a.Dialog,{open:ei,onOpenChange:h,children:(0,t.jsx)(a.DialogContent,{className:"!w-[80vw] !max-w-[80vw] !h-[80vh] flex flex-col overflow-hidden",children:ep})}),(0,t.jsx)(_,{skill:D,content:$,onContentChange:F,onClose:()=>I(null),onSave:et}),(0,t.jsx)(G,{skill:B,titleOverride:ee?x("applyAllToAgent"):void 0,descriptionOverride:ee?x("applyAllToAgentDescription"):void 0,agents:N,selected:L,onToggle:e=>M(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),onClose:()=>P(null),onConfirm:es}),(0,t.jsx)(J,{open:H,onOpenChange:K,items:O,selected:R,onToggle:(e,t)=>{let s=`${e}::${t}`;E(e=>{let t=new Set(e);return t.has(s)?t.delete(s):t.add(s),t})},onConfirm:ea})]})}],625873)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,386041,e=>{"use strict";let t=(0,e.i(433721).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],386041)},194228,e=>{"use strict";let t=(0,e.i(433721).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);e.s(["GitCommitHorizontal",0,t],194228)},363156,e=>{"use strict";var t=e.i(816709);let r=/not a git repository/i;function i(e){return e instanceof Error&&r.test(e.message)}let s=(0,t.create)(e=>({status:null,diffs:[],selectedFile:null,log:[],branches:[],loading:!1,error:null,notGitRepo:!1,commitMsg:"",loadStatus:async t=>{try{let r=await fetch(`/api/workspaces/${t}/git/status`);if(!r.ok)throw Error(await r.text());let i=await r.json();e({status:i,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),notGitRepo:i(t)})}},loadDiffs:async(t,r)=>{e({loading:!0});try{let i=r?`/api/workspaces/${t}/git/diff?path=${encodeURIComponent(r)}`:`/api/workspaces/${t}/git/diff`,s=await fetch(i);if(!s.ok)throw Error(await s.text());let a=await s.json();e({diffs:a,loading:!1,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),loading:!1,notGitRepo:i(t)})}},loadLog:async t=>{try{let r=await fetch(`/api/workspaces/${t}/git/log`);if(!r.ok)throw Error(await r.text());let i=await r.json();e({log:i,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),notGitRepo:i(t)})}},loadBranches:async t=>{try{let r=await fetch(`/api/workspaces/${t}/git/branches`);if(!r.ok)throw Error(await r.text());let i=await r.json();e({branches:i,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),notGitRepo:i(t)})}},initRepo:async t=>{try{let r=await fetch(`/api/workspaces/${t}/git/init`,{method:"POST"});if(!r.ok)throw Error(await r.text());e({error:null,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t)})}},commit:async(t,r)=>{try{let e=await fetch(`/api/workspaces/${t}/git/commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:r})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},discard:async(t,r)=>{try{let e=await fetch(`/api/workspaces/${t}/git/discard`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:r})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},discardAll:async t=>{try{let e=await fetch(`/api/workspaces/${t}/git/discard-all`,{method:"POST"});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},stage:async(t,r)=>{try{let e=await fetch(`/api/workspaces/${t}/git/stage`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:r})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},unstage:async(t,r)=>{try{let e=await fetch(`/api/workspaces/${t}/git/unstage`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:r})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},resolveFile:async(e,t,r,i=!0)=>{let s=await fetch(`/api/workspaces/${e}/git/resolve-file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t,content:r,stage:i})});if(!s.ok)throw Error(await s.text())},checkout:async(t,r)=>{try{let e=await fetch(`/api/workspaces/${t}/git/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({branch:r})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},push:async e=>{let t=await fetch(`/api/workspaces/${e}/git/push`,{method:"POST"});if(!t.ok)throw Error((await t.json().catch(()=>({error:"Push failed"}))).error)},pull:async e=>{let t=await fetch(`/api/workspaces/${e}/git/pull`,{method:"POST"});if(!t.ok)throw Error((await t.json().catch(()=>({error:"Pull failed"}))).error)},fetchRemote:async e=>{let t=await fetch(`/api/workspaces/${e}/git/fetch`,{method:"POST"});if(!t.ok)throw Error((await t.json().catch(()=>({error:"Fetch failed"}))).error)},getRemotes:async e=>{let t=await fetch(`/api/workspaces/${e}/git/remotes`);if(!t.ok)throw Error(await t.text());return t.json()},addRemote:async(e,t,r)=>{let i=await fetch(`/api/workspaces/${e}/git/remotes`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,url:r})});if(!i.ok)throw Error((await i.json().catch(()=>({error:"Failed to add remote"}))).error)},selectFile:t=>e({selectedFile:t}),setCommitMsg:t=>e({commitMsg:t}),checkoutDetached:async(e,t)=>{let r=await fetch(`/api/workspaces/${e}/git/checkout-detached`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({commitHash:t})});if(!r.ok)throw Error((await r.json().catch(()=>({}))).error)},cherryPick:async(e,t)=>{let r=await fetch(`/api/workspaces/${e}/git/cherry-pick`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({commitHash:t})});if(!r.ok)throw Error((await r.json().catch(()=>({}))).error)},createBranch:async(e,t,r)=>{let i=await fetch(`/api/workspaces/${e}/git/create-branch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,startPoint:r})});if(!i.ok)throw Error((await i.json().catch(()=>({}))).error)},deleteBranch:async(e,t,r)=>{let i=await fetch(`/api/workspaces/${e}/git/delete-branch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,force:r})});if(!i.ok)throw Error((await i.json().catch(()=>({}))).error)},createTag:async(e,t,r)=>{let i=await fetch(`/api/workspaces/${e}/git/create-tag`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,commitHash:r})});if(!i.ok)throw Error((await i.json().catch(()=>({}))).error)},getCommitDiff:async(e,t)=>{let r=await fetch(`/api/workspaces/${e}/git/commit-diff?hash=${encodeURIComponent(t)}`);if(!r.ok)throw Error((await r.json().catch(()=>({}))).error);return r.json()},getRemoteUrl:async e=>{let t=await fetch(`/api/workspaces/${e}/git/remote-url`);if(!t.ok)throw Error((await t.json().catch(()=>({}))).error);return(await t.json()).url},getMergeBase:async e=>{let t=await fetch(`/api/workspaces/${e}/git/merge-base`);if(!t.ok)throw Error((await t.json().catch(()=>({}))).error);return(await t.json()).hash}}));e.s(["useGitStore",0,s])},253307,e=>{"use strict";let t=(0,e.i(433721).default)("file-diff",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);e.s(["FileDiff",0,t],253307)},524360,e=>{"use strict";var t=e.i(816709),r=e.i(360112);let i=new Map,s=(0,t.create)((e,t)=>({sessions:[],activeId:null,ws:null,workspaceId:null,_initialized:!1,_restored:!1,init:(s,a)=>{let o=t();if(o._initialized&&o.ws===s)return;let n=o.workspaceId!==s.workspaceId;n&&i.clear(),e({ws:s,workspaceId:s.workspaceId,sessions:n?[]:o.sessions,activeId:n?null:o.activeId,_initialized:!0,_restored:!1}),s.on("terminal.created",t=>{let{sessionId:r,cwd:i,shell:s}=t;e(e=>e.sessions.some(e=>e.id===r)?e:{sessions:[...e.sessions,{id:r,cwd:i,shell:s}],activeId:r})}),s.on("terminal.error",e=>{let{error:t}=e;r.toast.error(t)}),s.on("terminal.closed",t=>{let{sessionId:r}=t;e(e=>{let t=e.sessions.filter(e=>e.id!==r),i=e.activeId===r?t[0]?.id??null:e.activeId;return{sessions:t,activeId:i}})}),s.on("terminal.sessions",t=>{let{sessions:r}=t;e(e=>{let t=new Map(e.sessions.map(e=>[e.id,e])),s=r.map(e=>{let r=t.get(e.sessionId);return e.buffer&&i.set(e.sessionId,e.buffer),{...r,id:e.sessionId,cwd:e.cwd,shell:e.shell??r?.shell}}),a=!!e.activeId&&s.some(t=>t.id===e.activeId);for(let e of r)e.buffer||i.delete(e.sessionId);return{sessions:s,activeId:a?e.activeId:s[0]?.id??null,_restored:!0}}),a?.()})},createSession:(e,r)=>{let{ws:i}=t();i?.send("terminal.create",{sessionId:crypto.randomUUID?.()??crypto.getRandomValues(new Uint8Array(16)).reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),shell:e,cwd:r})},setActive:t=>e({activeId:t}),setSessionName:(t,r)=>e(e=>({sessions:e.sessions.map(e=>e.id===t?{...e,name:r}:e)})),removeSession:r=>{let{ws:i,sessions:s,activeId:a}=t();i?.send("terminal.close",{sessionId:r});let o=s.filter(e=>e.id!==r),n=a===r?o[0]?.id??null:a;e({sessions:o,activeId:n})},sendInput:(e,r)=>{t().ws?.send("terminal.input",{sessionId:e,data:r})},resize:(e,r,i)=>{t().ws?.send("terminal.resize",{sessionId:e,cols:r,rows:i})}}));e.s(["consumeSessionBuffer",0,function(e){let t=i.get(e);return i.delete(e),t},"useTerminalStore",0,s])},191441,e=>{"use strict";let t=(0,e.i(433721).default)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]);e.s(["ListChecks",0,t],191441)},404175,e=>{"use strict";var t=e.i(344180),r=e.i(227634),i=e.i(191441),s=e.i(451534),a=e.i(386041),o=e.i(426022),n=e.i(989484),c=e.i(433721);let l=(0,c.default)("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);var d=e.i(253307),h=e.i(194228),p=e.i(210),f=e.i(255742),g=e.i(943997);let u=(0,c.default)("kanban",[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]]),m=[{id:"channel-list",icon:r.Hash,group:"channel"},{id:"chat",icon:o.MessageSquare,group:"channel"},{id:"issue-list",icon:i.ListChecks,group:"issue"},{id:"issue-detail",icon:d.FileDiff,group:"issue"},{id:"workfolder",icon:s.FolderOpen,group:"workfolder"},{id:"code-editor",icon:a.Code2,group:"workfolder"},{id:"terminal",icon:l,group:"tools"},{id:"git-commits",icon:h.GitCommitHorizontal,group:"git"},{id:"project-settings",icon:p.Settings2,group:"settings"},{id:"code-favorites",icon:f.Star,group:"workfolder"},{id:"database",icon:g.Database,group:"workfolder"},{id:"kanban",icon:u,group:"workfolder"}],w={"channel-list":(0,t.jsx)(r.Hash,{size:16}),"issue-list":(0,t.jsx)(i.ListChecks,{size:16}),workfolder:(0,t.jsx)(s.FolderOpen,{size:16}),"code-editor":(0,t.jsx)(a.Code2,{size:16}),chat:(0,t.jsx)(o.MessageSquare,{size:16}),"issue-detail":(0,t.jsx)(n.FileText,{size:16}),terminal:(0,t.jsx)(l,{size:16}),"git-commits":(0,t.jsx)(h.GitCommitHorizontal,{size:16}),"project-settings":(0,t.jsx)(p.Settings2,{size:16}),"code-favorites":(0,t.jsx)(f.Star,{size:16}),database:(0,t.jsx)(g.Database,{size:16}),kanban:(0,t.jsx)(u,{size:16}),...{}};function y(e,r,i,s,a){if("git-commits"===e&&r&&!r.clean){let e=r.insertions>0||r.deletions>0,i=(0,t.jsx)("span",{className:"ml-1 text-[10px] font-medium leading-none flex items-center gap-0.5",children:e?(0,t.jsxs)(t.Fragment,{children:[r.insertions>0&&(0,t.jsxs)("span",{className:"text-green-600",children:["+",r.insertions]}),r.deletions>0&&(0,t.jsxs)("span",{className:"text-red-500",children:["-",r.deletions]})]}):(0,t.jsx)("span",{className:"text-orange-500",children:r.files.length})}),s=r.files.length;return{trailing:i,badge:s>0?(0,t.jsx)("span",{className:"absolute -top-1 -right-1.5 min-w-[14px] h-[14px] rounded-full bg-blue-500 text-white text-[9px] font-medium leading-none flex items-center justify-center px-0.5",children:s}):null}}if("terminal"===e&&i.length>0)return{trailing:null,badge:(0,t.jsx)("span",{className:"absolute -top-1 -right-1.5 min-w-[14px] h-[14px] rounded-full bg-green-500 text-white text-[9px] font-medium leading-none flex items-center justify-center px-0.5",children:i.length})};let o=(0,t.jsxs)("span",{className:"absolute -top-1 -right-1 flex h-2 w-2",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]});return"channel-list"===e&&Object.values(s).some(e=>e.some(e=>"streaming"===e.status||"pending"===e.status))||"issue-detail"===e&&a.some(e=>"pending"===e.status||"running"===e.status||"retrying"===e.status||"waiting_review"===e.status)?{trailing:null,badge:o}:{trailing:null,badge:null}}e.s(["RIGHT_TO_LEFT_TAB_MAP",0,{"code-editor":"workfolder",chat:"channel-list","issue-detail":"issue-list",database:"workfolder"},"TAB_ITEMS",0,m,"getTabBadge",0,y,"renderTabIcon",0,function(e,r,i,s,a,o){let n=w[e];if(!n)return null;let{trailing:c,badge:l}=y(e,i,s,a,o);return(0,t.jsxs)("span",{title:r,className:"flex items-center justify-center",children:[(0,t.jsxs)("span",{className:"relative",children:[n,l]}),c]})}],404175)},217061,e=>{"use strict";var t=e.i(344180),r=e.i(250226),i=e.i(363156),s=e.i(524360),a=e.i(31807),o=e.i(873111),n=e.i(465458),c=e.i(404175);e.s(["MobileTabBar",0,function(){let{activePanel:e,setActivePanel:l}=(0,r.useMobilePanelStore)(),d=(0,i.useGitStore)(e=>e.status),h=(0,s.useTerminalStore)(e=>e.sessions),p=(0,a.useChannelStore)(e=>e.messages),f=(0,o.useTaskStore)(e=>e.tasks);return(0,t.jsx)("div",{className:"relative shrink-0 bg-background",children:(0,t.jsx)("div",{className:"flex items-center h-10 border-b px-1 gap-2 shrink-0 overflow-x-auto overflow-y-visible md:hidden",children:c.TAB_ITEMS.map((r,i)=>{let s=r.icon,a=i>0?c.TAB_ITEMS[i-1].group:null,o=null!==a&&a!==r.group,{trailing:g,badge:u}=(0,c.getTabBadge)(r.id,d,h,p,f);return(0,t.jsxs)("div",{className:"flex items-center shrink-0 overflow-visible",children:[o&&(0,t.jsx)("div",{className:"w-px h-4 bg-border mx-0.5"}),(0,t.jsxs)("button",{onClick:()=>{var e;l(e=r.id),c.RIGHT_TO_LEFT_TAB_MAP[e]},className:(0,n.cn)("relative flex items-center justify-center h-8 min-w-8 px-1 rounded-md transition-colors",e===r.id?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50"),children:[(0,t.jsxs)("span",{className:"relative",children:[(0,t.jsx)(s,{size:16}),u]}),g]})]},r.id)})})})}])},404069,e=>{e.n(e.i(217061))}]);
@@ -1,31 +1,31 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[701341,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ZoomWrapper"]
3
- 3:I[950396,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ThemeProvider"]
4
- 4:I[556106,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"LocaleProvider"]
5
- 5:I[694819,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ViewportInsets"]
6
- 6:I[177053,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"AuthGuard"]
7
- 7:I[994876,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"AppShell"]
8
- 8:I[242864,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"default"]
9
- 9:I[46907,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"default"]
10
- a:I[698679,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"CommandPalette"]
11
- b:I[360112,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"Toaster"]
12
- c:I[984642,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ConsolePanel"]
13
- 11:I[785502,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"default",1]
14
- :HL["/_next/static/chunks/0-oog4zg4_m~m.css","style"]
15
- :HL["/_next/static/chunks/04v-pqqs-2lvp.css","style"]
16
- 0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0-oog4zg4_m~m.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/04v-pqqs-2lvp.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0ppr271hz0xoq.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0ie7y4k2ncvnn.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0~u.5r3-t7179.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/002-dxhags4dj.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/0fxa1edqr7dve.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/0hra80eyuu37u.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/_next/static/chunks/0_vi1a~g4wx46.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/_next/static/chunks/0w2p4ldi2aymp.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/_next/static/chunks/0.n~yfwf4~6w-.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/_next/static/chunks/002_j970b9gdx.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/_next/static/chunks/11k-.49r~1mfm.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/_next/static/chunks/0-1bfvfwifh-m.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/_next/static/chunks/09y_3krccdd~u.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/_next/static/chunks/1250wo~-5dgyx.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/_next/static/chunks/0igc~uli58ncw.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/_next/static/chunks/135w27dd8c19s.js","async":true,"nonce":"$undefined"}],["$","script","script-16",{"src":"/_next/static/chunks/046me66nilkff.js","async":true,"nonce":"$undefined"}],["$","script","script-17",{"src":"/_next/static/chunks/06w~.izyfylap.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"","className":"dm_sans_81a33cc5-module___RQdfW__variable outfit_8334a424-module__TwcMYa__variable poppins_37c4598a-module__JRG3Wq__variable h-[var(--app-content-height)] overflow-hidden antialiased","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-[var(--app-content-height)] overflow-hidden font-sans","children":["$","$L2",null,{"children":["$","$L3",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":[["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$La",null,{}],["$","$Lb",null,{"richColors":true,"position":"bottom-right"}]]}],["$","$Lc",null,{}]]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:style","children":"$Ld"}]],null,"$Le"]}],{},null,false,null]},null,false,"$@f"]},null,false,null],"$L10",false]],"m":"$undefined","G":["$11",["$L12","$L13"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"OoXAsPtrUWjC1l898FSvI"}
17
- 14:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"OutletBoundary"]
2
+ 2:I[701341,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"ZoomWrapper"]
3
+ 3:I[950396,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"ThemeProvider"]
4
+ 4:I[556106,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"LocaleProvider"]
5
+ 5:I[694819,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"ViewportInsets"]
6
+ 6:I[177053,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"AuthGuard"]
7
+ 7:I[994876,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"AppShell"]
8
+ 8:I[242864,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"default"]
9
+ 9:I[46907,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"default"]
10
+ a:I[698679,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"CommandPalette"]
11
+ b:I[360112,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"Toaster"]
12
+ c:I[984642,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"ConsolePanel"]
13
+ 11:I[785502,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"default",1]
14
+ :HL["/_next/static/chunks/062f9zqctzg.b.css","style"]
15
+ :HL["/_next/static/chunks/0v7q4mys.mnm..css","style"]
16
+ 0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/062f9zqctzg.b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0v7q4mys.mnm..css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0s9lmk8iauou3.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0ppr271hz0xoq.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/099h96wjsdb25.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/0~u.5r3-t7179.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/0jb4~3qqkw2ps.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/0z~vqzbm_q371.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/_next/static/chunks/0_vi1a~g4wx46.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/_next/static/chunks/161ik5kfyuwtd.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/_next/static/chunks/0v6hte2z-32ca.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/_next/static/chunks/08k~meqbd8d6v.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/_next/static/chunks/0.n~yfwf4~6w-.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/_next/static/chunks/1250wo~-5dgyx.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/_next/static/chunks/0sp_zbx~w0am7.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/_next/static/chunks/11k-.49r~1mfm.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/_next/static/chunks/0twamv4wr_dbv.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/_next/static/chunks/0fttswpzu69qx.js","async":true,"nonce":"$undefined"}],["$","script","script-16",{"src":"/_next/static/chunks/0ghs9on7wodrm.js","async":true,"nonce":"$undefined"}],["$","script","script-17",{"src":"/_next/static/chunks/0v3a_x4vt42kx.js","async":true,"nonce":"$undefined"}],["$","script","script-18",{"src":"/_next/static/chunks/0~3xm80~j9ddg.js","async":true,"nonce":"$undefined"}],["$","script","script-19",{"src":"/_next/static/chunks/002_j970b9gdx.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"","className":"h-[var(--app-content-height)] overflow-hidden antialiased","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-[var(--app-content-height)] overflow-hidden font-sans","children":["$","$L2",null,{"children":["$","$L3",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":[["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$La",null,{}],["$","$Lb",null,{"richColors":true,"position":"bottom-right"}]]}],["$","$Lc",null,{}]]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],"$Ld"],null,"$Le"]}],{},null,false,null]},null,false,"$@f"]},null,false,null],"$L10",false]],"m":"$undefined","G":["$11",["$L12","$L13"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"e8w3vd9Eov_LDYWj_0zsE"}
17
+ 14:I[990774,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"OutletBoundary"]
18
18
  15:"$Sreact.suspense"
19
- 18:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ViewportBoundary"]
20
- 1a:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"MetadataBoundary"]
21
- d:["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]
19
+ 18:I[990774,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"ViewportBoundary"]
20
+ 1a:I[990774,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"MetadataBoundary"]
21
+ d:["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]
22
22
  e:["$","$L14",null,{"children":["$","$15",null,{"name":"Next.MetadataOutlet","children":"$@16"}]}]
23
23
  17:[]
24
24
  f:"$W17"
25
- 10:["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L18",null,{"children":"$L19"}],["$","div",null,{"hidden":true,"children":["$","$L1a",null,{"children":["$","$15",null,{"name":"Next.Metadata","children":"$L1b"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
26
- 12:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0-oog4zg4_m~m.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
27
- 13:["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/04v-pqqs-2lvp.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
25
+ 10:["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L18",null,{"children":"$L19"}],["$","div",null,{"hidden":true,"children":["$","$L1a",null,{"children":["$","$15",null,{"name":"Next.Metadata","children":"$L1b"}]}]}],null]}]
26
+ 12:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/062f9zqctzg.b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
27
+ 13:["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0v7q4mys.mnm..css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
28
28
  19:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"}]]
29
- 1c:I[946513,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"IconMark"]
29
+ 1c:I[946513,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"IconMark"]
30
30
  16:null
31
31
  1b:[["$","title","0",{"children":"Agent Spaces"}],["$","meta","1",{"name":"description","content":"Multi-agent collaborative coding workspace"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~ekuj.zhggpa.ico","sizes":"32x32","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"apple-touch-icon","href":"/apple-touch-icon.png"}],["$","$L1c","5",{}]]
@@ -1,6 +1,6 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ViewportBoundary"]
3
- 3:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"MetadataBoundary"]
2
+ 2:I[990774,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"ViewportBoundary"]
3
+ 3:I[990774,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"MetadataBoundary"]
4
4
  4:"$Sreact.suspense"
5
- 5:I[946513,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"IconMark"]
6
- 0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Agent Spaces"}],["$","meta","1",{"name":"description","content":"Multi-agent collaborative coding workspace"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~ekuj.zhggpa.ico","sizes":"32x32","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"apple-touch-icon","href":"/apple-touch-icon.png"}],["$","$L5","5",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"OoXAsPtrUWjC1l898FSvI"}
5
+ 5:I[946513,["/_next/static/chunks/0s9lmk8iauou3.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/099h96wjsdb25.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0jb4~3qqkw2ps.js","/_next/static/chunks/0z~vqzbm_q371.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/161ik5kfyuwtd.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/08k~meqbd8d6v.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sp_zbx~w0am7.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0twamv4wr_dbv.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/0ghs9on7wodrm.js","/_next/static/chunks/0v3a_x4vt42kx.js","/_next/static/chunks/0~3xm80~j9ddg.js","/_next/static/chunks/002_j970b9gdx.js"],"IconMark"]
6
+ 0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Agent Spaces"}],["$","meta","1",{"name":"description","content":"Multi-agent collaborative coding workspace"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~ekuj.zhggpa.ico","sizes":"32x32","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"apple-touch-icon","href":"/apple-touch-icon.png"}],["$","$L5","5",{}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"e8w3vd9Eov_LDYWj_0zsE"}