tower-studio 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/cache/.previewinfo +1 -1
  4. package/.next/cache/.rscinfo +1 -1
  5. package/.next/cache/.tsbuildinfo +1 -1
  6. package/.next/diagnostics/route-bundle-stats.json +47 -47
  7. package/.next/fallback-build-manifest.json +3 -3
  8. package/.next/prerender-manifest.json +3 -3
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -1
  17. package/.next/server/app/_not-found/page/server-reference-manifest.json +25 -25
  18. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/.next/server/app/_not-found.html +1 -1
  21. package/.next/server/app/_not-found.rsc +13 -13
  22. package/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
  23. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  24. package/.next/server/app/_not-found.segments/_index.segment.rsc +8 -8
  25. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  26. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  27. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  28. package/.next/server/app/index.html +1 -1
  29. package/.next/server/app/index.rsc +13 -13
  30. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/index.segments/_full.segment.rsc +13 -13
  32. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  33. package/.next/server/app/index.segments/_index.segment.rsc +8 -8
  34. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  35. package/.next/server/app/missions/page/react-loadable-manifest.json +1 -1
  36. package/.next/server/app/missions/page/server-reference-manifest.json +57 -57
  37. package/.next/server/app/missions/page.js.nft.json +1 -1
  38. package/.next/server/app/missions/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/onboarding/page/react-loadable-manifest.json +1 -1
  40. package/.next/server/app/onboarding/page/server-reference-manifest.json +25 -25
  41. package/.next/server/app/onboarding/page.js.nft.json +1 -1
  42. package/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  43. package/.next/server/app/onboarding.html +1 -1
  44. package/.next/server/app/onboarding.rsc +15 -15
  45. package/.next/server/app/onboarding.segments/_full.segment.rsc +15 -15
  46. package/.next/server/app/onboarding.segments/_head.segment.rsc +4 -4
  47. package/.next/server/app/onboarding.segments/_index.segment.rsc +8 -8
  48. package/.next/server/app/onboarding.segments/_tree.segment.rsc +1 -1
  49. package/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  50. package/.next/server/app/onboarding.segments/onboarding.segment.rsc +3 -3
  51. package/.next/server/app/page/react-loadable-manifest.json +1 -1
  52. package/.next/server/app/page/server-reference-manifest.json +25 -25
  53. package/.next/server/app/page.js.nft.json +1 -1
  54. package/.next/server/app/page_client-reference-manifest.js +1 -1
  55. package/.next/server/app/settings/page/react-loadable-manifest.json +1 -1
  56. package/.next/server/app/settings/page/server-reference-manifest.json +32 -32
  57. package/.next/server/app/settings/page.js.nft.json +1 -1
  58. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  59. package/.next/server/app/settings.html +1 -1
  60. package/.next/server/app/settings.rsc +15 -15
  61. package/.next/server/app/settings.segments/_full.segment.rsc +15 -15
  62. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  63. package/.next/server/app/settings.segments/_index.segment.rsc +8 -8
  64. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  65. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  66. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  67. package/.next/server/app/workspaces/[workspaceId]/archive/page/react-loadable-manifest.json +1 -1
  68. package/.next/server/app/workspaces/[workspaceId]/archive/page/server-reference-manifest.json +81 -81
  69. package/.next/server/app/workspaces/[workspaceId]/archive/page.js.nft.json +1 -1
  70. package/.next/server/app/workspaces/[workspaceId]/archive/page_client-reference-manifest.js +1 -1
  71. package/.next/server/app/workspaces/[workspaceId]/assets/page/react-loadable-manifest.json +1 -1
  72. package/.next/server/app/workspaces/[workspaceId]/assets/page/server-reference-manifest.json +70 -70
  73. package/.next/server/app/workspaces/[workspaceId]/assets/page.js.nft.json +1 -1
  74. package/.next/server/app/workspaces/[workspaceId]/assets/page_client-reference-manifest.js +1 -1
  75. package/.next/server/app/workspaces/[workspaceId]/notes/page/react-loadable-manifest.json +1 -1
  76. package/.next/server/app/workspaces/[workspaceId]/notes/page/server-reference-manifest.json +57 -57
  77. package/.next/server/app/workspaces/[workspaceId]/notes/page.js.nft.json +1 -1
  78. package/.next/server/app/workspaces/[workspaceId]/notes/page_client-reference-manifest.js +1 -1
  79. package/.next/server/app/workspaces/[workspaceId]/page/react-loadable-manifest.json +1 -1
  80. package/.next/server/app/workspaces/[workspaceId]/page/server-reference-manifest.json +53 -53
  81. package/.next/server/app/workspaces/[workspaceId]/page.js.nft.json +1 -1
  82. package/.next/server/app/workspaces/[workspaceId]/page_client-reference-manifest.js +1 -1
  83. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/react-loadable-manifest.json +1 -1
  84. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/server-reference-manifest.json +25 -25
  85. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js.nft.json +1 -1
  86. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page_client-reference-manifest.js +1 -1
  87. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/react-loadable-manifest.json +1 -1
  88. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/server-reference-manifest.json +58 -58
  89. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js.nft.json +1 -1
  90. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page_client-reference-manifest.js +1 -1
  91. package/.next/server/app/workspaces/page/react-loadable-manifest.json +1 -1
  92. package/.next/server/app/workspaces/page/server-reference-manifest.json +45 -45
  93. package/.next/server/app/workspaces/page.js.nft.json +1 -1
  94. package/.next/server/app/workspaces/page_client-reference-manifest.js +1 -1
  95. package/.next/server/chunks/0uz~_next_dist_esm_build_templates_app-route_05yec2y.js +1 -1
  96. package/.next/server/chunks/[root-of-the-server]__00~8_qz._.js +1 -1
  97. package/.next/server/chunks/[root-of-the-server]__0bvqbq0._.js +1 -1
  98. package/.next/server/chunks/[root-of-the-server]__0rb-ear._.js +2 -2
  99. package/.next/server/chunks/[root-of-the-server]__0ze75mm._.js +1 -1
  100. package/.next/server/chunks/project_f_tower_0n1s3ym._.js +1 -1
  101. package/.next/server/chunks/project_f_tower_src_11e.cv5._.js +1 -1
  102. package/.next/server/chunks/project_f_tower_src_lib_10p8sue._.js +1 -1
  103. package/.next/server/chunks/ssr/04uy_src_app_workspaces_[workspaceId]_tasks_[taskId]_task-page-client_tsx_01.s1p0._.js +1 -1
  104. package/.next/server/chunks/ssr/0y0r_f_tower_src_app_workspaces_[workspaceId]_assets_assets-page-client_tsx_0n4g3bn._.js +1 -1
  105. package/.next/server/chunks/ssr/[root-of-the-server]__0.yn90z._.js +3 -0
  106. package/.next/server/chunks/ssr/{[root-of-the-server]__13b2wve._.js → [root-of-the-server]__00_.ri0._.js} +2 -2
  107. package/.next/server/chunks/ssr/[root-of-the-server]__06qzctf._.js +1 -1
  108. package/.next/server/chunks/ssr/[root-of-the-server]__0_47k-j._.js +1 -1
  109. package/.next/server/chunks/ssr/[root-of-the-server]__0aidehy._.js +1 -1
  110. package/.next/server/chunks/ssr/[root-of-the-server]__0ffdrwp._.js +1 -1
  111. package/.next/server/chunks/ssr/[root-of-the-server]__0hiekzn._.js +1 -1
  112. package/.next/server/chunks/ssr/[root-of-the-server]__0i4rk9v._.js +3 -3
  113. package/.next/server/chunks/ssr/[root-of-the-server]__0jpbiq_._.js +3 -0
  114. package/.next/server/chunks/ssr/[root-of-the-server]__0w7gbe7._.js +1 -1
  115. package/.next/server/chunks/ssr/[root-of-the-server]__0zaw-fl._.js +1 -1
  116. package/.next/server/chunks/ssr/[root-of-the-server]__13eo85g._.js +1 -1
  117. package/.next/server/chunks/ssr/project_f_tower_0.txwd8._.js +1 -1
  118. package/.next/server/chunks/ssr/{project_f_tower_0ai4twk._.js → project_f_tower_006ysi2._.js} +2 -2
  119. package/.next/server/chunks/ssr/{project_f_tower_0e3m009._.js → project_f_tower_09re1~6._.js} +2 -2
  120. package/.next/server/chunks/ssr/project_f_tower_0d9_kxc._.js +3 -0
  121. package/.next/server/chunks/ssr/project_f_tower_0f0-wva._.js +1 -1
  122. package/.next/server/chunks/ssr/project_f_tower_0hgtev9._.js +1 -1
  123. package/.next/server/chunks/ssr/project_f_tower_0ivvjwd._.js +1 -1
  124. package/.next/server/chunks/ssr/project_f_tower_0jy~1uf._.js +1 -1
  125. package/.next/server/chunks/ssr/project_f_tower_0l6ssf8._.js +1 -1
  126. package/.next/server/chunks/ssr/{project_f_tower_0uu8dha._.js → project_f_tower_0m76uwh._.js} +2 -2
  127. package/.next/server/chunks/ssr/project_f_tower_0o5.y1e._.js +1 -1
  128. package/.next/server/chunks/ssr/{project_f_tower_0-wsdce._.js → project_f_tower_0vfw8sn._.js} +2 -2
  129. package/.next/server/chunks/ssr/project_f_tower_0w01kgd._.js +1 -1
  130. package/.next/server/chunks/ssr/project_f_tower_0ym-aea._.js +1 -1
  131. package/.next/server/chunks/ssr/{project_f_tower_0zqkh.-._.js → project_f_tower_13hdtgf._.js} +2 -2
  132. package/.next/server/chunks/ssr/{project_f_tower_src_03-54or._.js → project_f_tower_src_13jw2_q._.js} +2 -2
  133. package/.next/server/chunks/ssr/project_f_tower_src_actions_agent-actions_ts_0.s4~m-._.js +1 -1
  134. package/.next/server/chunks/ssr/project_f_tower_src_actions_file-actions_ts_02i742t._.js +1 -1
  135. package/.next/server/chunks/ssr/project_f_tower_src_app_missions_missions-client_tsx_0ums4qx._.js +1 -1
  136. package/.next/server/chunks/ssr/project_f_tower_src_app_onboarding_page_tsx_0_9_yoq._.js +1 -1
  137. package/.next/server/chunks/ssr/project_f_tower_src_app_settings_page_tsx_0oo06~d._.js +1 -1
  138. package/.next/server/chunks/ssr/project_f_tower_src_app_workspaces_[workspaceId]_board-page-client_tsx_0jmj1xz._.js +1 -1
  139. package/.next/server/middleware-build-manifest.js +3 -3
  140. package/.next/server/pages/404.html +1 -1
  141. package/.next/server/pages/500.html +1 -1
  142. package/.next/server/server-reference-manifest.js +1 -1
  143. package/.next/server/server-reference-manifest.json +212 -212
  144. package/.next/static/chunks/09mbyvk8z.wx2.js +1 -0
  145. package/.next/static/chunks/{187llw593phxu.js → 0a93fdjk-37r7.js} +1 -1
  146. package/.next/static/chunks/{0cqsk~mfhg.i5.js → 0ejd72g7tekop.js} +1 -1
  147. package/.next/static/chunks/{0nyip_341~xyg.js → 0j3ixh~tlr2~~.js} +2 -2
  148. package/.next/static/chunks/0jm.d2tvttdcy.js +1 -0
  149. package/.next/static/chunks/{0x5iegao~6ge3.js → 0kjm.xm_~nzz0.js} +1 -1
  150. package/.next/static/chunks/0mf6fqi52ca~q.js +1 -0
  151. package/.next/static/chunks/0vhwphmq69i0d.js +1 -0
  152. package/.next/static/chunks/{083e56klgnjgy.js → 0x2z0sza~9erw.js} +1 -1
  153. package/.next/static/chunks/{0zz4ryeh6j~.x.js → 0x9x7bxnrbi1..js} +1 -1
  154. package/.next/static/chunks/{037e47w8xw0vw.js → 0~wu849la7jq2.js} +1 -1
  155. package/.next/static/chunks/{110k271zgqb6h.js → 1068kwso1r._u.js} +1 -1
  156. package/.next/static/chunks/{0x6gp.e04de4e.js → 14ul.txcdkz4n.js} +1 -1
  157. package/.next/static/chunks/{0i_v_7f3gdmz4.js → 163-h-672vjtc.js} +1 -1
  158. package/.next/static/chunks/17b4edxd7wg5~.js +1 -0
  159. package/.next/trace +2 -2
  160. package/.next/trace-build +1 -1
  161. package/package.json +1 -1
  162. package/.next/server/chunks/ssr/[root-of-the-server]__0-x7b4t._.js +0 -3
  163. package/.next/server/chunks/ssr/[root-of-the-server]__0z9azne._.js +0 -3
  164. package/.next/server/chunks/ssr/project_f_tower_0.nfmle._.js +0 -3
  165. package/.next/static/chunks/0a8x8yl_kme06.js +0 -1
  166. package/.next/static/chunks/0j.~gle~mn8uy.js +0 -1
  167. package/.next/static/chunks/0rt2m4hy13qby.js +0 -1
  168. package/.next/static/chunks/125_gss3san00.js +0 -1
  169. package/.next/static/chunks/12wq.0xcxup1q.js +0 -1
  170. /package/.next/static/{Gxj1QMzOqxH1St959O3yh → EMk0oZpCVYuq8amkRB5za}/_buildManifest.js +0 -0
  171. /package/.next/static/{Gxj1QMzOqxH1St959O3yh → EMk0oZpCVYuq8amkRB5za}/_clientMiddlewareManifest.js +0 -0
  172. /package/.next/static/{Gxj1QMzOqxH1St959O3yh → EMk0oZpCVYuq8amkRB5za}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,117474,e=>{"use strict";let t=(0,e.i(863961).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],117474)},750986,1156,e=>{"use strict";var t=e.i(419613);e.s(["CheckCircle2",()=>t.default],750986);let s=(0,e.i(863961).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,s],1156)},803041,e=>{"use strict";var t=e.i(422364);e.s(["ChevronRight",()=>t.default])},950211,e=>{"use strict";let t=(0,e.i(863961).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",0,t],950211)},864056,e=>{"use strict";let t=(0,e.i(863961).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],864056)},690951,e=>{"use strict";var t=e.i(432377),s=e.i(85212),a=e.i(309542),l=e.i(275283),r=e.i(711296),i=e.i(831349),n=e.i(584685),o=e.i(937756);function d({className:e,size:s="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":s,className:(0,o.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function c({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,o.cn)("px-4 group-data-[size=sm]/card:px-3",e),...s})}var m=e.i(946960),x=e.i(893832),h=e.i(996032),u=e.i(950211),p=e.i(750986),g=e.i(1156),f=e.i(625054);function b({adapterType:e,adapterLabel:a,onResult:l}){let[i,n]=(0,s.useState)(!1),[j,v]=(0,s.useState)(null),{t:N}=(0,f.useI18n)();async function y(){if(!i){n(!0),v(null);try{let t=await fetch("/api/adapters/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adapterType:e})}),s=await t.json();v(s),l?.(s)}catch{let e={ok:!1,checks:[{name:"network_error",passed:!1,message:"Network request failed"}]};v(e),l?.(e)}finally{n(!1)}}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"rounded-lg bg-emerald-100 dark:bg-emerald-900/30 p-2",children:(0,t.jsx)(u.Terminal,{className:"h-5 w-5 text-emerald-600 dark:text-emerald-400"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-semibold",children:N("settings.aiTools.cliVerification")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:N("settings.aiTools.cliVerificationDesc")})]})]}),(0,t.jsx)(d,{children:(0,t.jsxs)(c,{className:"p-6 space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:a&&(0,t.jsx)("p",{className:"font-medium",children:a})}),(0,t.jsx)(r.Button,{onClick:y,disabled:i,variant:"outline",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Loader2,{className:"h-4 w-4 animate-spin mr-2"}),N("settings.aiTools.testing")]}):N("settings.aiTools.testConnection")})]}),j&&(0,t.jsxs)("div",{className:(0,o.cn)("rounded-lg border p-4 space-y-3",j.ok?"bg-green-50 border-green-200 dark:bg-green-950/20 dark:border-green-800":"bg-red-50 border-red-200 dark:bg-red-950/20 dark:border-red-800"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[j.ok?(0,t.jsx)(p.CheckCircle2,{className:"h-4 w-4 text-green-600 dark:text-green-400"}):(0,t.jsx)(g.XCircle,{className:"h-4 w-4 text-red-600 dark:text-red-400"}),(0,t.jsx)("span",{className:(0,o.cn)("text-sm font-medium",j.ok?"text-green-700 dark:text-green-300":"text-red-700 dark:text-red-300"),children:N(j.ok?"settings.aiTools.testPassed":"settings.aiTools.testFailed")})]}),(0,t.jsx)("div",{className:"space-y-2",children:j.checks.map(s=>(0,t.jsxs)("div",{className:"flex items-start gap-2 text-sm",children:[s.passed?(0,t.jsx)(x.Check,{className:"h-4 w-4 text-green-500 mt-0.5 shrink-0"}):(0,t.jsx)(h.X,{className:"h-4 w-4 text-red-500 mt-0.5 shrink-0"}),(0,t.jsx)("span",{className:(0,o.cn)(s.passed?"text-green-700 dark:text-green-300":"text-red-700 dark:text-red-300"),children:s.message})]},`${e}-${s.name}`))})]})]})})]})}var j=e.i(543485);let v=(0,j.createServerReference)("40dd38e040cf8559ac131983482f47e49183b3ed40",j.callServer,void 0,j.findSourceMapURL,"completeOnboarding");var N=e.i(490028),y=e.i(117474),k=e.i(357334),w=e.i(864056),C=e.i(803041),T=e.i(811424),S=e.i(809250),L=e.i(863961);let P=(0,L.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),B=(0,L.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);var M=e.i(780156),$=e.i(909260);function R({step:e}){let s=[y.User,u.Terminal,k.GitBranch][e-1]??y.User,a=["Profile","Connect","Configure"][e-1]??"";return(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-[0.07] text-white",style:{backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:"24px 24px"}}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{width:"380px",height:"380px",background:"radial-gradient(circle, oklch(0.80 0.14 75 / 0.25) 0%, oklch(0.80 0.14 75 / 0.08) 45%, transparent 70%)",animation:"ob-pulse 6s ease-in-out infinite"}}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full border border-amber-400/25",style:{width:"260px",height:"260px",animation:"ob-spin 20s linear infinite"},children:(0,t.jsx)("div",{className:"absolute -top-1.5 left-1/2 -translate-x-1/2 h-3 w-3 rounded-full bg-amber-400",style:{boxShadow:"0 0 16px oklch(0.80 0.14 75 / 0.7)"}})}),(0,t.jsxs)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full border border-amber-400/15",style:{width:"380px",height:"380px",animation:"ob-spin 30s linear infinite reverse"},children:[(0,t.jsx)("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 h-2 w-2 rounded-full bg-amber-400/70"}),(0,t.jsx)("div",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 h-1.5 w-1.5 rounded-full bg-amber-400/50"})]}),(0,t.jsx)("svg",{className:"absolute",style:{top:"18%",right:"22%",animation:"ob-float 8s ease-in-out infinite"},width:"44",height:"50",viewBox:"0 0 40 46",fill:"none",children:(0,t.jsx)("path",{d:"M20 1 L38 12 L38 34 L20 45 L2 34 L2 12 Z",stroke:"oklch(0.80 0.14 75 / 0.4)",strokeWidth:"1.5",fill:"oklch(0.80 0.14 75 / 0.06)"})}),(0,t.jsx)("svg",{className:"absolute",style:{bottom:"22%",left:"18%",animation:"ob-float 10s ease-in-out 2s infinite"},width:"32",height:"36",viewBox:"0 0 40 46",fill:"none",children:(0,t.jsx)("path",{d:"M20 1 L38 12 L38 34 L20 45 L2 34 L2 12 Z",stroke:"oklch(0.80 0.14 75 / 0.3)",strokeWidth:"1.5",fill:"oklch(0.80 0.14 75 / 0.05)"})}),(0,t.jsx)("div",{className:"absolute h-3.5 w-3.5 rounded-full bg-amber-400/40",style:{top:"30%",left:"28%",animation:"ob-float 7s ease-in-out 1s infinite"}}),(0,t.jsx)("div",{className:"absolute h-2.5 w-2.5 rounded-full bg-amber-400/30",style:{top:"65%",right:"30%",animation:"ob-float 9s ease-in-out 3s infinite"}}),(0,t.jsx)("div",{className:"absolute h-2 w-2 rounded-full bg-amber-400/20",style:{top:"45%",right:"15%",animation:"ob-float 6s ease-in-out 0.5s infinite"}}),(0,t.jsxs)("svg",{className:"absolute inset-0 h-full w-full text-white opacity-[0.12]",children:[(0,t.jsx)("line",{x1:"30%",y1:"25%",x2:"70%",y2:"45%",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"4 6",style:{animation:"ob-dash 12s linear infinite"}}),(0,t.jsx)("line",{x1:"65%",y1:"30%",x2:"35%",y2:"70%",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"4 6",style:{animation:"ob-dash 15s linear infinite reverse"}})]}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 flex items-center justify-center",children:(0,t.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl border border-amber-400/35 bg-amber-500/10 backdrop-blur-sm transition-all duration-700",style:{boxShadow:"0 0 50px oklch(0.80 0.14 75 / 0.2)"},children:(0,t.jsx)(s,{className:"h-7 w-7 text-amber-400"})})}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 translate-y-12 text-center",children:(0,t.jsx)("p",{className:"text-[11px] font-medium tracking-widest uppercase text-amber-400/60",children:a})})]})}let U={host:"",ownerMatch:"*",localPathTemplate:""};e.s(["default",0,function(){let e,o,d,c=(0,a.useRouter)(),{t:m,locale:h,setLocale:p}=(0,f.useI18n)(),{theme:g,setTheme:j}=(0,l.useTheme)(),[L,z]=(0,s.useState)(!1),[I,H]=(0,s.useState)(1),[F,G]=(0,s.useState)(""),[O,D]=(0,s.useState)(null),[W,_]=(0,s.useState)([]),[q,V]=(0,s.useState)({...U}),[X,A]=(0,s.useState)(!0),[E,K]=(0,s.useState)(0),[Z,J]=(0,s.useState)(!1),[Q,Y]=(0,s.useState)(!1);(0,s.useEffect)(()=>z(!0),[]);let ee=[{value:"light",label:(0,t.jsx)(T.Sun,{className:"h-4 w-4"})},{value:"dark",label:(0,t.jsx)(S.Moon,{className:"h-4 w-4"})},{value:"system",label:(0,t.jsx)(P,{className:"h-4 w-4"})}];function et(){H(e=>e+1)}function es(){H(e=>Math.max(1,e-1))}async function ea(){Y(!0);try{W.length>0&&await (0,N.setConfigValue)("git.pathMappingRules",W),await v(F.trim()),c.replace("/workspaces")}catch{Y(!1)}}let el=[{icon:y.User,label:m("onboarding.step1.title")},{icon:u.Terminal,label:m("onboarding.step2.title")},{icon:k.GitBranch,label:m("onboarding.step3.title")}];return(0,t.jsxs)("div",{className:"flex h-screen bg-background",children:[(0,t.jsx)("div",{className:"hidden xl:block xl:w-3/5 border-r border-border/50 bg-[oklch(0.13_0.006_260)]",children:(0,t.jsx)(R,{step:I})}),(0,t.jsx)("div",{className:"flex w-full flex-col items-center px-8 pt-[10vh] pb-10 xl:w-2/5 xl:px-16 overflow-y-auto",children:(0,t.jsxs)("div",{className:"w-full max-w-lg space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("img",{src:"/logo.png",alt:"Tower",className:"h-8 w-8 rounded-lg"}),(0,t.jsx)("span",{className:"text-lg font-semibold tracking-tight",children:"Tower"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:el.map((e,s)=>{let a=s+1,l=a===I,r=a<I,i=e.icon;return(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[s>0&&(0,t.jsx)("div",{className:`h-px w-4 transition-colors duration-500 ${r?"bg-primary":"bg-border"}`}),(0,t.jsxs)("div",{className:`flex items-center gap-1 shrink-0 rounded-full px-2 py-1 text-[11px] font-medium whitespace-nowrap transition-all duration-500 ${l?"bg-primary text-primary-foreground shadow-sm":r?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"}`,children:[r?(0,t.jsx)(x.Check,{className:"h-3 w-3 shrink-0"}):(0,t.jsx)(i,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{children:e.label})]})]},s)})})]}),(0,t.jsxs)("div",{children:[1===I&&(0,t.jsxs)("div",{className:"space-y-7 animate-in fade-in slide-in-from-left-4 duration-500",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:m("onboarding.step1.title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:m("onboarding.step1.desc")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"onboarding-username",className:"text-sm font-medium",children:m("onboarding.step1.usernameLabel")}),(0,t.jsx)("input",{id:"onboarding-username",type:"text",value:F,onChange:e=>G(e.target.value),placeholder:m("onboarding.step1.usernamePlaceholder"),className:"flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",maxLength:64,autoFocus:!0,autoComplete:"username"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(B,{className:"h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)("label",{className:"text-sm font-medium",children:m("settings.language")})]}),(0,t.jsx)(n.SegmentedControl,{options:[{value:"zh",label:"中文"},{value:"en",label:"English"}].map(e=>({value:e.value,label:e.label})),value:h,onChange:e=>p(e)})]}),(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(T.Sun,{className:"h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)("label",{className:"text-sm font-medium",children:m("settings.theme")})]}),L?(0,t.jsx)(n.SegmentedControl,{options:ee.map(e=>({value:e.value,label:e.label})),value:g??"system",onChange:e=>j(e)}):(0,t.jsx)("div",{className:"inline-flex h-8 rounded-md border border-border bg-muted p-1 gap-1 w-[120px]"})]})]}),(0,t.jsx)("div",{className:"flex justify-end pt-3",children:(0,t.jsxs)(r.Button,{onClick:et,disabled:0===F.trim().length,className:"px-5",children:[m("onboarding.step1.next"),(0,t.jsx)(C.ChevronRight,{className:"h-4 w-4 ml-1"})]})})]}),2===I&&(0,t.jsxs)("div",{className:"space-y-7 animate-in fade-in slide-in-from-left-4 duration-500",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:m("onboarding.step2.title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:m("onboarding.step2.desc")})]}),(0,t.jsx)(b,{adapterType:"claude_code",adapterLabel:"Claude CLI",onResult:D}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-3",children:[(0,t.jsxs)(r.Button,{variant:"ghost",className:"text-muted-foreground",onClick:es,children:[(0,t.jsx)(w.ChevronLeft,{className:"h-4 w-4 mr-1"}),m("onboarding.back")]}),(0,t.jsxs)(r.Button,{onClick:et,disabled:!O?.ok,className:"px-5",children:[m("onboarding.step1.next"),(0,t.jsx)(C.ChevronRight,{className:"h-4 w-4 ml-1"})]})]})]}),3===I&&(0,t.jsxs)("div",{className:"space-y-5 animate-in fade-in slide-in-from-left-4 duration-500",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:m("onboarding.step3.title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:m("onboarding.step3.desc")})]}),W.length>0&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:m("onboarding.step3.added").replace("{count}",String(W.length))}),W.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-border bg-muted/30 px-3 py-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"text-sm font-medium truncate",children:[e.host,(0,t.jsx)("span",{className:"text-muted-foreground",children:"*"!==e.ownerMatch?` / ${e.ownerMatch}`:""})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground font-mono truncate",children:e.localPathTemplate})]}),(0,t.jsx)(r.Button,{variant:"ghost",size:"icon",className:"shrink-0 text-muted-foreground hover:text-destructive",onClick:()=>{var t;return t=e.id,void _(e=>e.filter(e=>e.id!==t))},children:(0,t.jsx)($.Trash2,{className:"h-3.5 w-3.5"})})]},e.id))]}),X?(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border border-border p-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.hostLabel")}),(0,t.jsx)(i.Input,{value:q.host,onChange:e=>V(t=>({...t,host:e.target.value})),placeholder:m("onboarding.step3.hostPlaceholder"),className:"h-9",autoFocus:!0})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.ownerLabel")}),(0,t.jsx)(i.Input,{value:q.ownerMatch,onChange:e=>V(t=>({...t,ownerMatch:e.target.value})),placeholder:m("onboarding.step3.ownerPlaceholder"),className:"h-9"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.pathLabel")}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Input,{value:q.localPathTemplate,onChange:e=>V(t=>({...t,localPathTemplate:e.target.value})),placeholder:m("onboarding.step3.pathPlaceholder"),className:"h-9 font-mono text-xs flex-1"}),(0,t.jsx)("button",{type:"button",onClick:()=>{J(e=>(e||K(2),!e))},className:`shrink-0 rounded-full px-2.5 py-1 text-[11px] font-mono font-medium transition-colors ${Z?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground"}`,children:"{path}"})]}),(0,t.jsx)("p",{className:"text-[11px] text-muted-foreground",children:m(Z?"onboarding.step3.pathHintFull":"onboarding.step3.pathHintRepo")})]}),q.localPathTemplate&&(e=q.localPathTemplate.trim().replace(/\/+$/,""),o=Z?`${e}/{path}`:e,d=[{label:"GitHub SSH",url:"git@github.com:user/my-app.git"},{label:"GitHub HTTPS",url:"https://github.com/user/my-app.git"},{label:"GitLab Subgroup",url:"https://gitlab.com/org/team/sub/my-api.git"}],(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.previewLabel")}),(0,t.jsx)("div",{className:"flex gap-1 flex-wrap",children:d.map((e,s)=>(0,t.jsx)("button",{type:"button",onClick:()=>K(s),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-colors ${E===s?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground"}`,children:e.label},s))}),(0,t.jsxs)("div",{className:"rounded-md bg-muted/50 px-3 py-2 space-y-1",children:[(0,t.jsx)("p",{className:"font-mono text-[11px] text-muted-foreground truncate",children:d[E].url}),(0,t.jsxs)("p",{className:"font-mono text-xs",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"→ "}),(0,t.jsx)("span",{className:"text-primary",children:function(e,t){if(!e||!t)return"";let s=t.trim(),a=[],l=s.match(/^git@[^:]+:(.+)$/);if(l)a=l[1].replace(/\.git\/?$/,"").split("/").filter(Boolean);else try{let e=new URL(s);a=decodeURIComponent(e.pathname).replace(/\.git\/?$/,"").split("/").filter(Boolean)}catch{return""}if(!a.length)return"";let r=a[0],i=a[a.length-1],n=a.join("/");if(e.includes("{path}"))return e.replace("{path}",n).replace("{owner}",r).replace("{repo}",i).replace(/\/+$/,"");let o=e.replace("{owner}",r).replace("{repo}","").replace(/\/+$/,"");return`${o}/${i}`}(o,d[E].url)})]})]})]})),(0,t.jsxs)("div",{className:"flex justify-end gap-2 pt-1",children:[W.length>0&&(0,t.jsx)(r.Button,{variant:"ghost",onClick:()=>A(!1),children:m("settings.config.git.cancel")}),(0,t.jsxs)(r.Button,{onClick:function(){if(!q.host.trim()||!q.localPathTemplate.trim())return;let e=q.localPathTemplate.trim().replace(/\/+$/,""),t=Z?`${e}/{path}`:e,s={id:crypto.randomUUID(),host:q.host.trim(),ownerMatch:q.ownerMatch.trim()||"*",localPathTemplate:t,priority:W.length};_(e=>[...e,s]),V({...U}),J(!1),A(!1)},disabled:!q.host.trim()||!q.localPathTemplate.trim(),children:[(0,t.jsx)(x.Check,{className:"h-4 w-4 mr-1"}),m("settings.config.git.save")]})]})]}):(0,t.jsxs)(r.Button,{variant:"outline",onClick:()=>{V({...U}),A(!0)},children:[(0,t.jsx)(M.Plus,{className:"h-4 w-4 mr-1"}),m("settings.config.git.addRule")]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-3",children:[(0,t.jsxs)(r.Button,{variant:"ghost",className:"text-muted-foreground",onClick:es,children:[(0,t.jsx)(w.ChevronLeft,{className:"h-4 w-4 mr-1"}),m("onboarding.back")]}),(0,t.jsxs)(r.Button,{onClick:ea,disabled:Q,className:"px-5",children:[m("onboarding.complete"),(0,t.jsx)(x.Check,{className:"h-4 w-4 ml-1"})]})]})]})]}),(0,t.jsx)("div",{className:"pt-6 text-xs text-muted-foreground",children:m("onboarding.stepIndicator").replace("{current}",String(I)).replace("{total}",String(3))})]})})]})}],690951)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,117474,e=>{"use strict";let t=(0,e.i(863961).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],117474)},750986,1156,e=>{"use strict";var t=e.i(419613);e.s(["CheckCircle2",()=>t.default],750986);let s=(0,e.i(863961).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,s],1156)},803041,e=>{"use strict";var t=e.i(422364);e.s(["ChevronRight",()=>t.default])},950211,e=>{"use strict";let t=(0,e.i(863961).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",0,t],950211)},864056,e=>{"use strict";let t=(0,e.i(863961).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],864056)},690951,e=>{"use strict";var t=e.i(432377),s=e.i(85212),a=e.i(309542),l=e.i(275283),r=e.i(711296),i=e.i(831349),n=e.i(584685),o=e.i(937756);function d({className:e,size:s="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":s,className:(0,o.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function c({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,o.cn)("px-4 group-data-[size=sm]/card:px-3",e),...s})}var m=e.i(946960),x=e.i(893832),h=e.i(996032),u=e.i(950211),p=e.i(750986),g=e.i(1156),f=e.i(625054);function b({adapterType:e,adapterLabel:a,onResult:l}){let[i,n]=(0,s.useState)(!1),[j,v]=(0,s.useState)(null),{t:N}=(0,f.useI18n)();async function y(){if(!i){n(!0),v(null);try{let t=await fetch("/api/adapters/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adapterType:e})}),s=await t.json();v(s),l?.(s)}catch{let e={ok:!1,checks:[{name:"network_error",passed:!1,message:"Network request failed"}]};v(e),l?.(e)}finally{n(!1)}}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"rounded-lg bg-emerald-100 dark:bg-emerald-900/30 p-2",children:(0,t.jsx)(u.Terminal,{className:"h-5 w-5 text-emerald-600 dark:text-emerald-400"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-semibold",children:N("settings.aiTools.cliVerification")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:N("settings.aiTools.cliVerificationDesc")})]})]}),(0,t.jsx)(d,{children:(0,t.jsxs)(c,{className:"p-6 space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:a&&(0,t.jsx)("p",{className:"font-medium",children:a})}),(0,t.jsx)(r.Button,{onClick:y,disabled:i,variant:"outline",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Loader2,{className:"h-4 w-4 animate-spin mr-2"}),N("settings.aiTools.testing")]}):N("settings.aiTools.testConnection")})]}),j&&(0,t.jsxs)("div",{className:(0,o.cn)("rounded-lg border p-4 space-y-3",j.ok?"bg-green-50 border-green-200 dark:bg-green-950/20 dark:border-green-800":"bg-red-50 border-red-200 dark:bg-red-950/20 dark:border-red-800"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[j.ok?(0,t.jsx)(p.CheckCircle2,{className:"h-4 w-4 text-green-600 dark:text-green-400"}):(0,t.jsx)(g.XCircle,{className:"h-4 w-4 text-red-600 dark:text-red-400"}),(0,t.jsx)("span",{className:(0,o.cn)("text-sm font-medium",j.ok?"text-green-700 dark:text-green-300":"text-red-700 dark:text-red-300"),children:N(j.ok?"settings.aiTools.testPassed":"settings.aiTools.testFailed")})]}),(0,t.jsx)("div",{className:"space-y-2",children:j.checks.map(s=>(0,t.jsxs)("div",{className:"flex items-start gap-2 text-sm",children:[s.passed?(0,t.jsx)(x.Check,{className:"h-4 w-4 text-green-500 mt-0.5 shrink-0"}):(0,t.jsx)(h.X,{className:"h-4 w-4 text-red-500 mt-0.5 shrink-0"}),(0,t.jsx)("span",{className:(0,o.cn)(s.passed?"text-green-700 dark:text-green-300":"text-red-700 dark:text-red-300"),children:s.message})]},`${e}-${s.name}`))})]})]})})]})}var j=e.i(543485);let v=(0,j.createServerReference)("40c64a99851b9cf49554c71b8c97f91c24632d635b",j.callServer,void 0,j.findSourceMapURL,"completeOnboarding");var N=e.i(312687),y=e.i(117474),k=e.i(357334),w=e.i(864056),C=e.i(803041),T=e.i(811424),S=e.i(809250),L=e.i(863961);let P=(0,L.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),B=(0,L.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);var M=e.i(780156),$=e.i(909260);function R({step:e}){let s=[y.User,u.Terminal,k.GitBranch][e-1]??y.User,a=["Profile","Connect","Configure"][e-1]??"";return(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-[0.07] text-white",style:{backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:"24px 24px"}}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{width:"380px",height:"380px",background:"radial-gradient(circle, oklch(0.80 0.14 75 / 0.25) 0%, oklch(0.80 0.14 75 / 0.08) 45%, transparent 70%)",animation:"ob-pulse 6s ease-in-out infinite"}}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full border border-amber-400/25",style:{width:"260px",height:"260px",animation:"ob-spin 20s linear infinite"},children:(0,t.jsx)("div",{className:"absolute -top-1.5 left-1/2 -translate-x-1/2 h-3 w-3 rounded-full bg-amber-400",style:{boxShadow:"0 0 16px oklch(0.80 0.14 75 / 0.7)"}})}),(0,t.jsxs)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full border border-amber-400/15",style:{width:"380px",height:"380px",animation:"ob-spin 30s linear infinite reverse"},children:[(0,t.jsx)("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 h-2 w-2 rounded-full bg-amber-400/70"}),(0,t.jsx)("div",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 h-1.5 w-1.5 rounded-full bg-amber-400/50"})]}),(0,t.jsx)("svg",{className:"absolute",style:{top:"18%",right:"22%",animation:"ob-float 8s ease-in-out infinite"},width:"44",height:"50",viewBox:"0 0 40 46",fill:"none",children:(0,t.jsx)("path",{d:"M20 1 L38 12 L38 34 L20 45 L2 34 L2 12 Z",stroke:"oklch(0.80 0.14 75 / 0.4)",strokeWidth:"1.5",fill:"oklch(0.80 0.14 75 / 0.06)"})}),(0,t.jsx)("svg",{className:"absolute",style:{bottom:"22%",left:"18%",animation:"ob-float 10s ease-in-out 2s infinite"},width:"32",height:"36",viewBox:"0 0 40 46",fill:"none",children:(0,t.jsx)("path",{d:"M20 1 L38 12 L38 34 L20 45 L2 34 L2 12 Z",stroke:"oklch(0.80 0.14 75 / 0.3)",strokeWidth:"1.5",fill:"oklch(0.80 0.14 75 / 0.05)"})}),(0,t.jsx)("div",{className:"absolute h-3.5 w-3.5 rounded-full bg-amber-400/40",style:{top:"30%",left:"28%",animation:"ob-float 7s ease-in-out 1s infinite"}}),(0,t.jsx)("div",{className:"absolute h-2.5 w-2.5 rounded-full bg-amber-400/30",style:{top:"65%",right:"30%",animation:"ob-float 9s ease-in-out 3s infinite"}}),(0,t.jsx)("div",{className:"absolute h-2 w-2 rounded-full bg-amber-400/20",style:{top:"45%",right:"15%",animation:"ob-float 6s ease-in-out 0.5s infinite"}}),(0,t.jsxs)("svg",{className:"absolute inset-0 h-full w-full text-white opacity-[0.12]",children:[(0,t.jsx)("line",{x1:"30%",y1:"25%",x2:"70%",y2:"45%",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"4 6",style:{animation:"ob-dash 12s linear infinite"}}),(0,t.jsx)("line",{x1:"65%",y1:"30%",x2:"35%",y2:"70%",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"4 6",style:{animation:"ob-dash 15s linear infinite reverse"}})]}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 flex items-center justify-center",children:(0,t.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl border border-amber-400/35 bg-amber-500/10 backdrop-blur-sm transition-all duration-700",style:{boxShadow:"0 0 50px oklch(0.80 0.14 75 / 0.2)"},children:(0,t.jsx)(s,{className:"h-7 w-7 text-amber-400"})})}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 translate-y-12 text-center",children:(0,t.jsx)("p",{className:"text-[11px] font-medium tracking-widest uppercase text-amber-400/60",children:a})})]})}let U={host:"",ownerMatch:"*",localPathTemplate:""};e.s(["default",0,function(){let e,o,d,c=(0,a.useRouter)(),{t:m,locale:h,setLocale:p}=(0,f.useI18n)(),{theme:g,setTheme:j}=(0,l.useTheme)(),[L,z]=(0,s.useState)(!1),[I,H]=(0,s.useState)(1),[F,G]=(0,s.useState)(""),[O,D]=(0,s.useState)(null),[W,_]=(0,s.useState)([]),[q,V]=(0,s.useState)({...U}),[X,A]=(0,s.useState)(!0),[E,K]=(0,s.useState)(0),[Z,J]=(0,s.useState)(!1),[Q,Y]=(0,s.useState)(!1);(0,s.useEffect)(()=>z(!0),[]);let ee=[{value:"light",label:(0,t.jsx)(T.Sun,{className:"h-4 w-4"})},{value:"dark",label:(0,t.jsx)(S.Moon,{className:"h-4 w-4"})},{value:"system",label:(0,t.jsx)(P,{className:"h-4 w-4"})}];function et(){H(e=>e+1)}function es(){H(e=>Math.max(1,e-1))}async function ea(){Y(!0);try{W.length>0&&await (0,N.setConfigValue)("git.pathMappingRules",W),await v(F.trim()),c.replace("/workspaces")}catch{Y(!1)}}let el=[{icon:y.User,label:m("onboarding.step1.title")},{icon:u.Terminal,label:m("onboarding.step2.title")},{icon:k.GitBranch,label:m("onboarding.step3.title")}];return(0,t.jsxs)("div",{className:"flex h-screen bg-background",children:[(0,t.jsx)("div",{className:"hidden xl:block xl:w-3/5 border-r border-border/50 bg-[oklch(0.13_0.006_260)]",children:(0,t.jsx)(R,{step:I})}),(0,t.jsx)("div",{className:"flex w-full flex-col items-center px-8 pt-[10vh] pb-10 xl:w-2/5 xl:px-16 overflow-y-auto",children:(0,t.jsxs)("div",{className:"w-full max-w-lg space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("img",{src:"/logo.png",alt:"Tower",className:"h-8 w-8 rounded-lg"}),(0,t.jsx)("span",{className:"text-lg font-semibold tracking-tight",children:"Tower"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:el.map((e,s)=>{let a=s+1,l=a===I,r=a<I,i=e.icon;return(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[s>0&&(0,t.jsx)("div",{className:`h-px w-4 transition-colors duration-500 ${r?"bg-primary":"bg-border"}`}),(0,t.jsxs)("div",{className:`flex items-center gap-1 shrink-0 rounded-full px-2 py-1 text-[11px] font-medium whitespace-nowrap transition-all duration-500 ${l?"bg-primary text-primary-foreground shadow-sm":r?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"}`,children:[r?(0,t.jsx)(x.Check,{className:"h-3 w-3 shrink-0"}):(0,t.jsx)(i,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{children:e.label})]})]},s)})})]}),(0,t.jsxs)("div",{children:[1===I&&(0,t.jsxs)("div",{className:"space-y-7 animate-in fade-in slide-in-from-left-4 duration-500",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:m("onboarding.step1.title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:m("onboarding.step1.desc")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"onboarding-username",className:"text-sm font-medium",children:m("onboarding.step1.usernameLabel")}),(0,t.jsx)("input",{id:"onboarding-username",type:"text",value:F,onChange:e=>G(e.target.value),placeholder:m("onboarding.step1.usernamePlaceholder"),className:"flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",maxLength:64,autoFocus:!0,autoComplete:"username"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(B,{className:"h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)("label",{className:"text-sm font-medium",children:m("settings.language")})]}),(0,t.jsx)(n.SegmentedControl,{options:[{value:"zh",label:"中文"},{value:"en",label:"English"}].map(e=>({value:e.value,label:e.label})),value:h,onChange:e=>p(e)})]}),(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(T.Sun,{className:"h-3.5 w-3.5 text-muted-foreground"}),(0,t.jsx)("label",{className:"text-sm font-medium",children:m("settings.theme")})]}),L?(0,t.jsx)(n.SegmentedControl,{options:ee.map(e=>({value:e.value,label:e.label})),value:g??"system",onChange:e=>j(e)}):(0,t.jsx)("div",{className:"inline-flex h-8 rounded-md border border-border bg-muted p-1 gap-1 w-[120px]"})]})]}),(0,t.jsx)("div",{className:"flex justify-end pt-3",children:(0,t.jsxs)(r.Button,{onClick:et,disabled:0===F.trim().length,className:"px-5",children:[m("onboarding.step1.next"),(0,t.jsx)(C.ChevronRight,{className:"h-4 w-4 ml-1"})]})})]}),2===I&&(0,t.jsxs)("div",{className:"space-y-7 animate-in fade-in slide-in-from-left-4 duration-500",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:m("onboarding.step2.title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:m("onboarding.step2.desc")})]}),(0,t.jsx)(b,{adapterType:"claude_code",adapterLabel:"Claude CLI",onResult:D}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-3",children:[(0,t.jsxs)(r.Button,{variant:"ghost",className:"text-muted-foreground",onClick:es,children:[(0,t.jsx)(w.ChevronLeft,{className:"h-4 w-4 mr-1"}),m("onboarding.back")]}),(0,t.jsxs)(r.Button,{onClick:et,disabled:!O?.ok,className:"px-5",children:[m("onboarding.step1.next"),(0,t.jsx)(C.ChevronRight,{className:"h-4 w-4 ml-1"})]})]})]}),3===I&&(0,t.jsxs)("div",{className:"space-y-5 animate-in fade-in slide-in-from-left-4 duration-500",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:m("onboarding.step3.title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:m("onboarding.step3.desc")})]}),W.length>0&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:m("onboarding.step3.added").replace("{count}",String(W.length))}),W.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-border bg-muted/30 px-3 py-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"text-sm font-medium truncate",children:[e.host,(0,t.jsx)("span",{className:"text-muted-foreground",children:"*"!==e.ownerMatch?` / ${e.ownerMatch}`:""})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground font-mono truncate",children:e.localPathTemplate})]}),(0,t.jsx)(r.Button,{variant:"ghost",size:"icon",className:"shrink-0 text-muted-foreground hover:text-destructive",onClick:()=>{var t;return t=e.id,void _(e=>e.filter(e=>e.id!==t))},children:(0,t.jsx)($.Trash2,{className:"h-3.5 w-3.5"})})]},e.id))]}),X?(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border border-border p-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.hostLabel")}),(0,t.jsx)(i.Input,{value:q.host,onChange:e=>V(t=>({...t,host:e.target.value})),placeholder:m("onboarding.step3.hostPlaceholder"),className:"h-9",autoFocus:!0})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.ownerLabel")}),(0,t.jsx)(i.Input,{value:q.ownerMatch,onChange:e=>V(t=>({...t,ownerMatch:e.target.value})),placeholder:m("onboarding.step3.ownerPlaceholder"),className:"h-9"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.pathLabel")}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Input,{value:q.localPathTemplate,onChange:e=>V(t=>({...t,localPathTemplate:e.target.value})),placeholder:m("onboarding.step3.pathPlaceholder"),className:"h-9 font-mono text-xs flex-1"}),(0,t.jsx)("button",{type:"button",onClick:()=>{J(e=>(e||K(2),!e))},className:`shrink-0 rounded-full px-2.5 py-1 text-[11px] font-mono font-medium transition-colors ${Z?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground"}`,children:"{path}"})]}),(0,t.jsx)("p",{className:"text-[11px] text-muted-foreground",children:m(Z?"onboarding.step3.pathHintFull":"onboarding.step3.pathHintRepo")})]}),q.localPathTemplate&&(e=q.localPathTemplate.trim().replace(/\/+$/,""),o=Z?`${e}/{path}`:e,d=[{label:"GitHub SSH",url:"git@github.com:user/my-app.git"},{label:"GitHub HTTPS",url:"https://github.com/user/my-app.git"},{label:"GitLab Subgroup",url:"https://gitlab.com/org/team/sub/my-api.git"}],(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-xs font-medium",children:m("onboarding.step3.previewLabel")}),(0,t.jsx)("div",{className:"flex gap-1 flex-wrap",children:d.map((e,s)=>(0,t.jsx)("button",{type:"button",onClick:()=>K(s),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-colors ${E===s?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground"}`,children:e.label},s))}),(0,t.jsxs)("div",{className:"rounded-md bg-muted/50 px-3 py-2 space-y-1",children:[(0,t.jsx)("p",{className:"font-mono text-[11px] text-muted-foreground truncate",children:d[E].url}),(0,t.jsxs)("p",{className:"font-mono text-xs",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"→ "}),(0,t.jsx)("span",{className:"text-primary",children:function(e,t){if(!e||!t)return"";let s=t.trim(),a=[],l=s.match(/^git@[^:]+:(.+)$/);if(l)a=l[1].replace(/\.git\/?$/,"").split("/").filter(Boolean);else try{let e=new URL(s);a=decodeURIComponent(e.pathname).replace(/\.git\/?$/,"").split("/").filter(Boolean)}catch{return""}if(!a.length)return"";let r=a[0],i=a[a.length-1],n=a.join("/");if(e.includes("{path}"))return e.replace("{path}",n).replace("{owner}",r).replace("{repo}",i).replace(/\/+$/,"");let o=e.replace("{owner}",r).replace("{repo}","").replace(/\/+$/,"");return`${o}/${i}`}(o,d[E].url)})]})]})]})),(0,t.jsxs)("div",{className:"flex justify-end gap-2 pt-1",children:[W.length>0&&(0,t.jsx)(r.Button,{variant:"ghost",onClick:()=>A(!1),children:m("settings.config.git.cancel")}),(0,t.jsxs)(r.Button,{onClick:function(){if(!q.host.trim()||!q.localPathTemplate.trim())return;let e=q.localPathTemplate.trim().replace(/\/+$/,""),t=Z?`${e}/{path}`:e,s={id:crypto.randomUUID(),host:q.host.trim(),ownerMatch:q.ownerMatch.trim()||"*",localPathTemplate:t,priority:W.length};_(e=>[...e,s]),V({...U}),J(!1),A(!1)},disabled:!q.host.trim()||!q.localPathTemplate.trim(),children:[(0,t.jsx)(x.Check,{className:"h-4 w-4 mr-1"}),m("settings.config.git.save")]})]})]}):(0,t.jsxs)(r.Button,{variant:"outline",onClick:()=>{V({...U}),A(!0)},children:[(0,t.jsx)(M.Plus,{className:"h-4 w-4 mr-1"}),m("settings.config.git.addRule")]}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-3",children:[(0,t.jsxs)(r.Button,{variant:"ghost",className:"text-muted-foreground",onClick:es,children:[(0,t.jsx)(w.ChevronLeft,{className:"h-4 w-4 mr-1"}),m("onboarding.back")]}),(0,t.jsxs)(r.Button,{onClick:ea,disabled:Q,className:"px-5",children:[m("onboarding.complete"),(0,t.jsx)(x.Check,{className:"h-4 w-4 ml-1"})]})]})]})]}),(0,t.jsx)("div",{className:"pt-6 text-xs text-muted-foreground",children:m("onboarding.stepIndicator").replace("{current}",String(I)).replace("{total}",String(3))})]})})]})}],690951)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,750986,1156,e=>{"use strict";var s=e.i(419613);e.s(["CheckCircle2",()=>s.default],750986);let t=(0,e.i(863961).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,t],1156)},265826,e=>{"use strict";let s=(0,e.i(863961).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,s],265826)},593835,e=>{"use strict";var s=e.i(432377),t=e.i(631325),a=e.i(309542),r=e.i(265826),l=e.i(555159),i=e.i(478430),n=e.i(565037),c=e.i(625054);let d=[{key:"notes",icon:l.FileText},{key:"assets",icon:i.FolderOpen},{key:"archive",icon:n.Archive}];e.s(["SubPageNav",0,function({workspaceId:e}){let{t:l}=(0,c.useI18n)(),i=(0,a.usePathname)(),n=d.find(e=>i.includes(`/${e.key}`))?.key;return(0,s.jsxs)("div",{className:"header-sm flex items-center gap-1 px-4 py-2",children:[(0,s.jsxs)(t.default,{href:`/workspaces/${e}`,className:"mr-2 flex items-center gap-1.5 rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,s.jsx)(r.ArrowLeft,{className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{children:l("archive.backToBoard")})]}),(0,s.jsx)("span",{className:"mr-2 h-4 w-px bg-border"}),d.map(a=>{let r=a.icon,i=n===a.key;return(0,s.jsxs)(t.default,{href:`/workspaces/${e}/${a.key}`,className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${i?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,children:[(0,s.jsx)(r,{className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{children:l(`sidebar.${a.key}`)})]},a.key)})]})}])},732728,e=>{"use strict";var s=e.i(432377),t=e.i(85212),a=e.i(565037),r=e.i(750986),l=e.i(1156),i=e.i(946960),n=e.i(610874),c=e.i(625054),d=e.i(593835),o=e.i(543485);let x=(0,o.createServerReference)("40797e9d1436724d43844e4f1d0259fa5480bc4c5a",o.callServer,void 0,o.findSourceMapURL,"getArchivedTasks");function m(e){return new Date(e).toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function u({priority:e}){return(0,s.jsx)("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${{LOW:"bg-slate-400",MEDIUM:"bg-amber-400",HIGH:"bg-orange-500",CRITICAL:"bg-rose-500"}[e]??"bg-slate-400"}`})}e.s(["ArchivePageClient",0,function({allWorkspaces:e,initialWorkspaceId:o,initialProjectId:h,initialTasks:p}){let f,{t:g}=(0,c.useI18n)(),[v,j]=(0,t.useTransition)(),[b,N]=(0,t.useState)(o),[y,k]=(0,t.useState)(h),[w,C]=(0,t.useState)(p),S=e.find(e=>e.id===b),A=S?.projects??[],$=(0,t.useCallback)(e=>{e?j(async()=>{C(await x(e))}):C([])},[j]);return(0,s.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,s.jsx)(d.SubPageNav,{workspaceId:b}),(0,s.jsxs)("div",{className:"header-sm flex items-center gap-3 px-6 py-2",children:[(0,s.jsxs)(n.Select,{value:b,onValueChange:s=>s&&(s=>{if(s===b)return;N(s);let t=e.find(e=>e.id===s),a=t?.projects[0]??null;k(a?.id??null),$(a?.id??null)})(s),children:[(0,s.jsx)(n.SelectTrigger,{className:"h-8 w-auto min-w-[120px]",children:(0,s.jsx)("span",{className:"truncate",children:S?.name??b})}),(0,s.jsx)(n.SelectContent,{children:e.map(e=>(0,s.jsx)(n.SelectItem,{value:e.id,children:e.name},e.id))})]}),A.length>0&&(0,s.jsxs)(n.Select,{value:y??"",onValueChange:e=>e&&void(e!==y&&(k(e),$(e))),children:[(0,s.jsx)(n.SelectTrigger,{className:"h-8 w-auto min-w-[140px]",children:(0,s.jsx)("span",{className:"truncate",children:(f=A.find(e=>e.id===y))?f.alias?`${f.name} (${f.alias})`:f.name:""})}),(0,s.jsx)(n.SelectContent,{children:A.map(e=>(0,s.jsxs)(n.SelectItem,{value:e.id,children:[e.name,e.alias?` (${e.alias})`:""]},e.id))})]}),(0,s.jsxs)("span",{className:"ml-auto rounded-full bg-muted px-2.5 py-0.5 text-[11px] text-muted-foreground",children:[w.length," ",g("archive.tasksCount")]})]}),(0,s.jsx)("div",{className:"flex-1 overflow-auto px-6 py-4",children:(0,s.jsxs)("div",{className:`relative ${v?"opacity-40 pointer-events-none":""} transition-opacity`,children:[v&&(0,s.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,s.jsx)(i.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}),0===w.length?(0,s.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 py-16 text-center",children:[(0,s.jsx)(a.Archive,{className:"h-10 w-10 text-muted-foreground/30"}),(0,s.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:g("archive.noTasks")}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground/60",children:g("archive.noTasksDesc")})]}):(0,s.jsx)("div",{className:"space-y-2",children:w.map(e=>{let t="DONE"===e.status,a=e.executions[0];return(0,s.jsx)("div",{className:"group rounded-lg border border-border bg-card px-4 py-3 transition-colors hover:border-border/80 hover:bg-accent/30",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"mt-0.5 shrink-0",children:t?(0,s.jsx)(r.CheckCircle2,{className:"h-4 w-4 text-emerald-500"}):(0,s.jsx)(l.XCircle,{className:"h-4 w-4 text-rose-500"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(u,{priority:e.priority}),(0,s.jsx)("span",{className:"truncate text-sm font-medium text-foreground",children:e.title}),(0,s.jsx)("span",{className:`ml-1 shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium ${t?"bg-emerald-500/10 text-emerald-400 ring-1 ring-emerald-500/20":"bg-rose-500/10 text-rose-400 ring-1 ring-rose-500/20"}`,children:t?g("archive.status.done"):g("archive.status.cancelled")})]}),e.labels.length>0&&(0,s.jsx)("div",{className:"mt-1.5 flex flex-wrap gap-1",children:e.labels.map(e=>(0,s.jsx)("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-medium",style:{backgroundColor:`${e.label.color}20`,color:e.label.color,outline:`1px solid ${e.label.color}40`},children:e.label.name},e.label.id))}),(0,s.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-3 text-[11px] text-muted-foreground",children:[(0,s.jsxs)("span",{children:[g("archive.createdAt"),": ",m(e.createdAt)]}),(0,s.jsxs)("span",{children:[t?g("archive.completedAt"):g("archive.cancelledAt"),": ",m(e.updatedAt)]}),a&&(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[g("archive.lastExecution"),":"," ",(0,s.jsx)("span",{className:`rounded px-1 py-0.5 font-mono text-[10px] ${"COMPLETED"===a.status?"bg-emerald-500/10 text-emerald-400":"FAILED"===a.status?"bg-rose-500/10 text-rose-400":"bg-amber-500/10 text-amber-400"}`,children:a.status})]})]})]})]})},e.id)})})]})})]})}],732728)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,750986,1156,e=>{"use strict";var s=e.i(419613);e.s(["CheckCircle2",()=>s.default],750986);let t=(0,e.i(863961).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,t],1156)},265826,e=>{"use strict";let s=(0,e.i(863961).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,s],265826)},593835,e=>{"use strict";var s=e.i(432377),t=e.i(631325),a=e.i(309542),r=e.i(265826),l=e.i(555159),i=e.i(478430),n=e.i(565037),c=e.i(625054);let d=[{key:"notes",icon:l.FileText},{key:"assets",icon:i.FolderOpen},{key:"archive",icon:n.Archive}];e.s(["SubPageNav",0,function({workspaceId:e}){let{t:l}=(0,c.useI18n)(),i=(0,a.usePathname)(),n=d.find(e=>i.includes(`/${e.key}`))?.key;return(0,s.jsxs)("div",{className:"header-sm flex items-center gap-1 px-4 py-2",children:[(0,s.jsxs)(t.default,{href:`/workspaces/${e}`,className:"mr-2 flex items-center gap-1.5 rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,s.jsx)(r.ArrowLeft,{className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{children:l("archive.backToBoard")})]}),(0,s.jsx)("span",{className:"mr-2 h-4 w-px bg-border"}),d.map(a=>{let r=a.icon,i=n===a.key;return(0,s.jsxs)(t.default,{href:`/workspaces/${e}/${a.key}`,className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${i?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,children:[(0,s.jsx)(r,{className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{children:l(`sidebar.${a.key}`)})]},a.key)})]})}])},732728,e=>{"use strict";var s=e.i(432377),t=e.i(85212),a=e.i(565037),r=e.i(750986),l=e.i(1156),i=e.i(946960),n=e.i(610874),c=e.i(625054),d=e.i(593835),o=e.i(543485);let x=(0,o.createServerReference)("407f4229b43fd9ab6921f353b0f0645634a01021c2",o.callServer,void 0,o.findSourceMapURL,"getArchivedTasks");function m(e){return new Date(e).toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function u({priority:e}){return(0,s.jsx)("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${{LOW:"bg-slate-400",MEDIUM:"bg-amber-400",HIGH:"bg-orange-500",CRITICAL:"bg-rose-500"}[e]??"bg-slate-400"}`})}e.s(["ArchivePageClient",0,function({allWorkspaces:e,initialWorkspaceId:o,initialProjectId:h,initialTasks:p}){let f,{t:g}=(0,c.useI18n)(),[v,j]=(0,t.useTransition)(),[b,N]=(0,t.useState)(o),[y,k]=(0,t.useState)(h),[w,C]=(0,t.useState)(p),S=e.find(e=>e.id===b),A=S?.projects??[],$=(0,t.useCallback)(e=>{e?j(async()=>{C(await x(e))}):C([])},[j]);return(0,s.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,s.jsx)(d.SubPageNav,{workspaceId:b}),(0,s.jsxs)("div",{className:"header-sm flex items-center gap-3 px-6 py-2",children:[(0,s.jsxs)(n.Select,{value:b,onValueChange:s=>s&&(s=>{if(s===b)return;N(s);let t=e.find(e=>e.id===s),a=t?.projects[0]??null;k(a?.id??null),$(a?.id??null)})(s),children:[(0,s.jsx)(n.SelectTrigger,{className:"h-8 w-auto min-w-[120px]",children:(0,s.jsx)("span",{className:"truncate",children:S?.name??b})}),(0,s.jsx)(n.SelectContent,{children:e.map(e=>(0,s.jsx)(n.SelectItem,{value:e.id,children:e.name},e.id))})]}),A.length>0&&(0,s.jsxs)(n.Select,{value:y??"",onValueChange:e=>e&&void(e!==y&&(k(e),$(e))),children:[(0,s.jsx)(n.SelectTrigger,{className:"h-8 w-auto min-w-[140px]",children:(0,s.jsx)("span",{className:"truncate",children:(f=A.find(e=>e.id===y))?f.alias?`${f.name} (${f.alias})`:f.name:""})}),(0,s.jsx)(n.SelectContent,{children:A.map(e=>(0,s.jsxs)(n.SelectItem,{value:e.id,children:[e.name,e.alias?` (${e.alias})`:""]},e.id))})]}),(0,s.jsxs)("span",{className:"ml-auto rounded-full bg-muted px-2.5 py-0.5 text-[11px] text-muted-foreground",children:[w.length," ",g("archive.tasksCount")]})]}),(0,s.jsx)("div",{className:"flex-1 overflow-auto px-6 py-4",children:(0,s.jsxs)("div",{className:`relative ${v?"opacity-40 pointer-events-none":""} transition-opacity`,children:[v&&(0,s.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,s.jsx)(i.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}),0===w.length?(0,s.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 py-16 text-center",children:[(0,s.jsx)(a.Archive,{className:"h-10 w-10 text-muted-foreground/30"}),(0,s.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:g("archive.noTasks")}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground/60",children:g("archive.noTasksDesc")})]}):(0,s.jsx)("div",{className:"space-y-2",children:w.map(e=>{let t="DONE"===e.status,a=e.executions[0];return(0,s.jsx)("div",{className:"group rounded-lg border border-border bg-card px-4 py-3 transition-colors hover:border-border/80 hover:bg-accent/30",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"mt-0.5 shrink-0",children:t?(0,s.jsx)(r.CheckCircle2,{className:"h-4 w-4 text-emerald-500"}):(0,s.jsx)(l.XCircle,{className:"h-4 w-4 text-rose-500"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(u,{priority:e.priority}),(0,s.jsx)("span",{className:"truncate text-sm font-medium text-foreground",children:e.title}),(0,s.jsx)("span",{className:`ml-1 shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium ${t?"bg-emerald-500/10 text-emerald-400 ring-1 ring-emerald-500/20":"bg-rose-500/10 text-rose-400 ring-1 ring-rose-500/20"}`,children:t?g("archive.status.done"):g("archive.status.cancelled")})]}),e.labels.length>0&&(0,s.jsx)("div",{className:"mt-1.5 flex flex-wrap gap-1",children:e.labels.map(e=>(0,s.jsx)("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-medium",style:{backgroundColor:`${e.label.color}20`,color:e.label.color,outline:`1px solid ${e.label.color}40`},children:e.label.name},e.label.id))}),(0,s.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-3 text-[11px] text-muted-foreground",children:[(0,s.jsxs)("span",{children:[g("archive.createdAt"),": ",m(e.createdAt)]}),(0,s.jsxs)("span",{children:[t?g("archive.completedAt"):g("archive.cancelledAt"),": ",m(e.updatedAt)]}),a&&(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[g("archive.lastExecution"),":"," ",(0,s.jsx)("span",{className:`rounded px-1 py-0.5 font-mono text-[10px] ${"COMPLETED"===a.status?"bg-emerald-500/10 text-emerald-400":"FAILED"===a.status?"bg-rose-500/10 text-rose-400":"bg-amber-500/10 text-amber-400"}`,children:a.status})]})]})]})]})},e.id)})})]})})]})}],732728)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9961,e=>{"use strict";e.s([],671048),e.i(671048),e.i(589668),e.i(430406),e.i(704883),e.i(432481),e.i(469711),e.i(31825),e.i(459264),e.i(776945),e.i(471311);var i=e.i(543485);let r=(0,i.createServerReference)("60d38933727e4b08f110c6ea8f0be204b59d0e2d71",i.callServer,void 0,i.findSourceMapURL,"revealInFinder");e.s(["revealInFinder",0,r],9961)}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":109,"timestamp":1591466325273,"id":4,"parentId":1,"tags":{},"startTime":1777373979153,"traceId":"1f35f7ea0d6ce621"},{"name":"load-custom-routes","duration":198,"timestamp":1591466325494,"id":5,"parentId":1,"tags":{},"startTime":1777373979153,"traceId":"1f35f7ea0d6ce621"},{"name":"create-dist-dir","duration":180,"timestamp":1591466325707,"id":6,"parentId":1,"tags":{},"startTime":1777373979153,"traceId":"1f35f7ea0d6ce621"},{"name":"clean","duration":117,"timestamp":1591466326419,"id":7,"parentId":1,"tags":{},"startTime":1777373979154,"traceId":"1f35f7ea0d6ce621"},{"name":"discover-routes","duration":12177,"timestamp":1591466332940,"id":8,"parentId":1,"tags":{},"startTime":1777373979161,"traceId":"1f35f7ea0d6ce621"},{"name":"create-root-mapping","duration":108,"timestamp":1591466345158,"id":9,"parentId":1,"tags":{},"startTime":1777373979173,"traceId":"1f35f7ea0d6ce621"},{"name":"generate-route-types","duration":37354,"timestamp":1591466346578,"id":10,"parentId":1,"tags":{},"startTime":1777373979174,"traceId":"1f35f7ea0d6ce621"},{"name":"public-dir-conflict-check","duration":53,"timestamp":1591466384061,"id":11,"parentId":1,"tags":{},"startTime":1777373979212,"traceId":"1f35f7ea0d6ce621"},{"name":"generate-routes-manifest","duration":1740,"timestamp":1591466384156,"id":12,"parentId":1,"tags":{},"startTime":1777373979212,"traceId":"1f35f7ea0d6ce621"},{"name":"run-turbopack","duration":5131193,"timestamp":1591466388849,"id":14,"parentId":1,"tags":{},"startTime":1777373979217,"traceId":"1f35f7ea0d6ce621"},{"name":"turbopack-build-events","duration":47,"timestamp":1591466547307,"id":15,"parentId":1,"tags":{},"startTime":1777373979375,"traceId":"1f35f7ea0d6ce621"},{"name":"run-typescript","duration":6797952,"timestamp":1591471588243,"id":16,"parentId":1,"tags":{},"startTime":1777373984416,"traceId":"1f35f7ea0d6ce621"},{"name":"generate-required-server-files","duration":991,"timestamp":1591478387818,"id":18,"parentId":1,"tags":{},"startTime":1777373991216,"traceId":"1f35f7ea0d6ce621"},{"name":"check-static-error-page","duration":26383,"timestamp":1591478401545,"id":20,"parentId":19,"tags":{},"startTime":1777373991229,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":202645,"timestamp":1591478429393,"id":61,"parentId":22,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":222949,"timestamp":1591478410405,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1777373991238,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":242624,"timestamp":1591478429446,"id":63,"parentId":24,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":261258,"timestamp":1591478410856,"id":24,"parentId":19,"tags":{"page":"/api/browse-fs"},"startTime":1777373991239,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":247498,"timestamp":1591478429473,"id":64,"parentId":25,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":266133,"timestamp":1591478410902,"id":25,"parentId":19,"tags":{"page":"/api/files/assets/[projectId]/[filename]"},"startTime":1777373991239,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":255682,"timestamp":1591478429676,"id":68,"parentId":44,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":267403,"timestamp":1591478417984,"id":44,"parentId":19,"tags":{"page":"/apple-icon.png"},"startTime":1777373991246,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":261888,"timestamp":1591478429558,"id":65,"parentId":26,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":280528,"timestamp":1591478410947,"id":26,"parentId":19,"tags":{"page":"/api/git"},"startTime":1777373991239,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":269253,"timestamp":1591478429737,"id":69,"parentId":45,"tags":{},"startTime":1777373991258,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":278745,"timestamp":1591478420274,"id":45,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1777373991248,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":272213,"timestamp":1591478429756,"id":71,"parentId":47,"tags":{},"startTime":1777373991258,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":275758,"timestamp":1591478426230,"id":47,"parentId":19,"tags":{"page":"/icon1.png"},"startTime":1777373991254,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":280874,"timestamp":1591478429758,"id":72,"parentId":48,"tags":{},"startTime":1777373991258,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":283685,"timestamp":1591478426975,"id":48,"parentId":19,"tags":{"page":"/manifest.json"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":280179,"timestamp":1591478431179,"id":73,"parentId":28,"tags":{},"startTime":1777373991259,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":298235,"timestamp":1591478413139,"id":28,"parentId":19,"tags":{"page":"/api/internal/assets/reveal"},"startTime":1777373991241,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":286453,"timestamp":1591478429751,"id":70,"parentId":46,"tags":{},"startTime":1777373991258,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":295552,"timestamp":1591478420677,"id":46,"parentId":19,"tags":{"page":"/icon0.svg"},"startTime":1777373991248,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":286345,"timestamp":1591478431551,"id":75,"parentId":32,"tags":{},"startTime":1777373991259,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":304290,"timestamp":1591478413646,"id":32,"parentId":19,"tags":{"page":"/api/internal/assistant/sessions"},"startTime":1777373991241,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":289480,"timestamp":1591478432041,"id":77,"parentId":34,"tags":{},"startTime":1777373991260,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":307807,"timestamp":1591478413770,"id":34,"parentId":19,"tags":{"page":"/api/internal/hooks/install"},"startTime":1777373991242,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":293361,"timestamp":1591478429423,"id":62,"parentId":23,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":312018,"timestamp":1591478410793,"id":23,"parentId":19,"tags":{"page":"/api/adapters/test"},"startTime":1777373991239,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":295833,"timestamp":1591478431747,"id":76,"parentId":33,"tags":{},"startTime":1777373991260,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":313887,"timestamp":1591478413712,"id":33,"parentId":19,"tags":{"page":"/api/internal/cache/[...segments]"},"startTime":1777373991241,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":298476,"timestamp":1591478429229,"id":60,"parentId":21,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":318164,"timestamp":1591478409556,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1777373991237,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":298151,"timestamp":1591478432577,"id":80,"parentId":27,"tags":{},"startTime":1777373991260,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":319731,"timestamp":1591478411017,"id":27,"parentId":19,"tags":{"page":"/api/internal/assets/[projectId]/[filename]"},"startTime":1777373991239,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":301679,"timestamp":1591478431416,"id":74,"parentId":31,"tags":{},"startTime":1777373991259,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":319534,"timestamp":1591478413587,"id":31,"parentId":19,"tags":{"page":"/api/internal/assistant"},"startTime":1777373991241,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":306094,"timestamp":1591478432239,"id":78,"parentId":35,"tags":{},"startTime":1777373991260,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":324314,"timestamp":1591478414078,"id":35,"parentId":19,"tags":{"page":"/api/internal/hooks/session"},"startTime":1777373991242,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":308821,"timestamp":1591478429664,"id":67,"parentId":43,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":320571,"timestamp":1591478417924,"id":43,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/merge"},"startTime":1777373991246,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":308952,"timestamp":1591478429634,"id":66,"parentId":42,"tags":{},"startTime":1777373991257,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":320779,"timestamp":1591478417844,"id":42,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/diff"},"startTime":1777373991246,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":309261,"timestamp":1591478435996,"id":83,"parentId":38,"tags":{},"startTime":1777373991264,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":327653,"timestamp":1591478417631,"id":38,"parentId":19,"tags":{"page":"/api/internal/notifications/pending"},"startTime":1777373991245,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":313520,"timestamp":1591478435920,"id":82,"parentId":37,"tags":{},"startTime":1777373991264,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":331926,"timestamp":1591478417535,"id":37,"parentId":19,"tags":{"page":"/api/internal/hooks/upload"},"startTime":1777373991245,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":309709,"timestamp":1591478439792,"id":85,"parentId":40,"tags":{},"startTime":1777373991268,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":331757,"timestamp":1591478417754,"id":40,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/input"},"startTime":1777373991246,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":314283,"timestamp":1591478439918,"id":86,"parentId":41,"tags":{},"startTime":1777373991268,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":336442,"timestamp":1591478417801,"id":41,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/start"},"startTime":1777373991246,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":323360,"timestamp":1591478439628,"id":84,"parentId":39,"tags":{},"startTime":1777373991267,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":345350,"timestamp":1591478417698,"id":39,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/buffer"},"startTime":1777373991245,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":327718,"timestamp":1591478435433,"id":81,"parentId":29,"tags":{},"startTime":1777373991263,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":349876,"timestamp":1591478413290,"id":29,"parentId":19,"tags":{"page":"/api/internal/assistant/chat"},"startTime":1777373991241,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":328806,"timestamp":1591478440076,"id":87,"parentId":36,"tags":{},"startTime":1777373991268,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":354072,"timestamp":1591478414857,"id":36,"parentId":19,"tags":{"page":"/api/internal/hooks/stop"},"startTime":1777373991243,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":342556,"timestamp":1591478432416,"id":79,"parentId":30,"tags":{},"startTime":1777373991260,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":361498,"timestamp":1591478413503,"id":30,"parentId":19,"tags":{"page":"/api/internal/assistant/images"},"startTime":1777373991241,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":348458,"timestamp":1591478441567,"id":89,"parentId":51,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":362562,"timestamp":1591478427487,"id":51,"parentId":19,"tags":{"page":"/"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":348534,"timestamp":1591478441555,"id":88,"parentId":50,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":362715,"timestamp":1591478427380,"id":50,"parentId":19,"tags":{"page":"/onboarding"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":353455,"timestamp":1591478441569,"id":90,"parentId":52,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":367546,"timestamp":1591478427522,"id":52,"parentId":19,"tags":{"page":"/settings"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":357553,"timestamp":1591478441586,"id":96,"parentId":49,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":371917,"timestamp":1591478427243,"id":49,"parentId":19,"tags":{"page":"/missions"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":360061,"timestamp":1591478441590,"id":97,"parentId":57,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":374014,"timestamp":1591478427695,"id":57,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/projects/[projectId]"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":360155,"timestamp":1591478441579,"id":95,"parentId":58,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":373987,"timestamp":1591478427755,"id":58,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/tasks/[taskId]"},"startTime":1777373991256,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":371487,"timestamp":1591478441572,"id":91,"parentId":53,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":385535,"timestamp":1591478427556,"id":53,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/archive"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":373803,"timestamp":1591478441574,"id":92,"parentId":54,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":387806,"timestamp":1591478427592,"id":54,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/assets"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":374525,"timestamp":1591478441593,"id":98,"parentId":59,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":388339,"timestamp":1591478427794,"id":59,"parentId":19,"tags":{"page":"/workspaces"},"startTime":1777373991256,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":378238,"timestamp":1591478441578,"id":94,"parentId":56,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":392177,"timestamp":1591478427658,"id":56,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"is-page-static","duration":379968,"timestamp":1591478441576,"id":93,"parentId":55,"tags":{},"startTime":1777373991269,"traceId":"1f35f7ea0d6ce621"},{"name":"check-page","duration":393930,"timestamp":1591478427623,"id":55,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/notes"},"startTime":1777373991255,"traceId":"1f35f7ea0d6ce621"},{"name":"static-check","duration":420361,"timestamp":1591478401207,"id":19,"parentId":1,"tags":{},"startTime":1777373991229,"traceId":"1f35f7ea0d6ce621"},{"name":"write-routes-manifest","duration":202,"timestamp":1591478822537,"id":100,"parentId":1,"tags":{},"startTime":1777373991650,"traceId":"1f35f7ea0d6ce621"},{"name":"load-dotenv","duration":20,"timestamp":1591478829483,"id":103,"parentId":102,"tags":{},"startTime":1777373991657,"traceId":"1f35f7ea0d6ce621"},{"name":"run-export-path-map","duration":254,"timestamp":1591478830941,"id":104,"parentId":102,"tags":{},"startTime":1777373991659,"traceId":"1f35f7ea0d6ce621"},{"name":"next-export","duration":277553,"timestamp":1591478828891,"id":102,"parentId":1,"tags":{},"startTime":1777373991657,"traceId":"1f35f7ea0d6ce621"},{"name":"move-exported-app-not-found-","duration":1205,"timestamp":1591479107581,"id":105,"parentId":101,"tags":{},"startTime":1777373991935,"traceId":"1f35f7ea0d6ce621"},{"name":"move-exported-app-global-error-","duration":764,"timestamp":1591479108844,"id":106,"parentId":101,"tags":{},"startTime":1777373991937,"traceId":"1f35f7ea0d6ce621"},{"name":"static-generation","duration":287277,"timestamp":1591478824549,"id":101,"parentId":1,"tags":{},"startTime":1777373991652,"traceId":"1f35f7ea0d6ce621"},{"name":"write-routes-manifest","duration":259,"timestamp":1591479111952,"id":107,"parentId":1,"tags":{},"startTime":1777373991940,"traceId":"1f35f7ea0d6ce621"}]
2
- [{"name":"print-tree-view","duration":2022,"timestamp":1591479120376,"id":108,"parentId":1,"tags":{},"startTime":1777373991948,"traceId":"1f35f7ea0d6ce621"},{"name":"write-route-bundle-stats","duration":11188,"timestamp":1591479122414,"id":109,"parentId":1,"tags":{},"startTime":1777373991950,"traceId":"1f35f7ea0d6ce621"},{"name":"telemetry-flush","duration":259921,"timestamp":1591479133616,"id":110,"parentId":1,"tags":{},"startTime":1777373991961,"traceId":"1f35f7ea0d6ce621"},{"name":"next-build","duration":13201942,"timestamp":1591466191610,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1777373979019,"traceId":"1f35f7ea0d6ce621"}]
1
+ [{"name":"generate-buildid","duration":138,"timestamp":1592256162075,"id":4,"parentId":1,"tags":{},"startTime":1777374768992,"traceId":"de22cf699d79aa4a"},{"name":"load-custom-routes","duration":211,"timestamp":1592256162337,"id":5,"parentId":1,"tags":{},"startTime":1777374768992,"traceId":"de22cf699d79aa4a"},{"name":"create-dist-dir","duration":174,"timestamp":1592256162562,"id":6,"parentId":1,"tags":{},"startTime":1777374768993,"traceId":"de22cf699d79aa4a"},{"name":"clean","duration":124,"timestamp":1592256163061,"id":7,"parentId":1,"tags":{},"startTime":1777374768993,"traceId":"de22cf699d79aa4a"},{"name":"discover-routes","duration":11457,"timestamp":1592256169139,"id":8,"parentId":1,"tags":{},"startTime":1777374768999,"traceId":"de22cf699d79aa4a"},{"name":"create-root-mapping","duration":48,"timestamp":1592256180625,"id":9,"parentId":1,"tags":{},"startTime":1777374769011,"traceId":"de22cf699d79aa4a"},{"name":"generate-route-types","duration":35296,"timestamp":1592256181741,"id":10,"parentId":1,"tags":{},"startTime":1777374769012,"traceId":"de22cf699d79aa4a"},{"name":"public-dir-conflict-check","duration":78,"timestamp":1592256217204,"id":11,"parentId":1,"tags":{},"startTime":1777374769047,"traceId":"de22cf699d79aa4a"},{"name":"generate-routes-manifest","duration":1874,"timestamp":1592256217329,"id":12,"parentId":1,"tags":{},"startTime":1777374769047,"traceId":"de22cf699d79aa4a"},{"name":"run-turbopack","duration":4530743,"timestamp":1592256223593,"id":14,"parentId":1,"tags":{},"startTime":1777374769054,"traceId":"de22cf699d79aa4a"},{"name":"turbopack-build-events","duration":41,"timestamp":1592256374627,"id":15,"parentId":1,"tags":{},"startTime":1777374769205,"traceId":"de22cf699d79aa4a"},{"name":"run-typescript","duration":6440029,"timestamp":1592260770790,"id":16,"parentId":1,"tags":{},"startTime":1777374773601,"traceId":"de22cf699d79aa4a"},{"name":"generate-required-server-files","duration":1060,"timestamp":1592267212033,"id":18,"parentId":1,"tags":{},"startTime":1777374780042,"traceId":"de22cf699d79aa4a"},{"name":"check-static-error-page","duration":16243,"timestamp":1592267233329,"id":20,"parentId":19,"tags":{},"startTime":1777374780063,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":180980,"timestamp":1592267250863,"id":61,"parentId":22,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":196110,"timestamp":1592267235792,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1777374780066,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":221597,"timestamp":1592267250915,"id":63,"parentId":24,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":236435,"timestamp":1592267236146,"id":24,"parentId":19,"tags":{"page":"/api/browse-fs"},"startTime":1777374780066,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":223473,"timestamp":1592267250940,"id":64,"parentId":25,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":238275,"timestamp":1592267236199,"id":25,"parentId":19,"tags":{"page":"/api/files/assets/[projectId]/[filename]"},"startTime":1777374780066,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":232316,"timestamp":1592267251131,"id":68,"parentId":44,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":240269,"timestamp":1592267243205,"id":44,"parentId":19,"tags":{"page":"/apple-icon.png"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":232567,"timestamp":1592267251013,"id":65,"parentId":26,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":248202,"timestamp":1592267236241,"id":26,"parentId":19,"tags":{"page":"/api/git"},"startTime":1777374780066,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":245999,"timestamp":1592267251192,"id":69,"parentId":45,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":252014,"timestamp":1592267245203,"id":45,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1777374780075,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":246054,"timestamp":1592267251212,"id":71,"parentId":47,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":249092,"timestamp":1592267248179,"id":47,"parentId":19,"tags":{"page":"/icon1.png"},"startTime":1777374780078,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":258724,"timestamp":1592267251215,"id":72,"parentId":48,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":261080,"timestamp":1592267248911,"id":48,"parentId":19,"tags":{"page":"/manifest.json"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":255954,"timestamp":1592267254164,"id":73,"parentId":27,"tags":{},"startTime":1777374780084,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":273840,"timestamp":1592267236309,"id":27,"parentId":19,"tags":{"page":"/api/internal/assets/[projectId]/[filename]"},"startTime":1777374780066,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":258287,"timestamp":1592267254957,"id":74,"parentId":28,"tags":{},"startTime":1777374780085,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":273924,"timestamp":1592267239345,"id":28,"parentId":19,"tags":{"page":"/api/internal/assets/reveal"},"startTime":1777374780069,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":264904,"timestamp":1592267250892,"id":62,"parentId":23,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":279764,"timestamp":1592267236074,"id":23,"parentId":19,"tags":{"page":"/api/adapters/test"},"startTime":1777374780066,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":269354,"timestamp":1592267250718,"id":60,"parentId":21,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":285015,"timestamp":1592267235082,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1777374780065,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":272262,"timestamp":1592267251206,"id":70,"parentId":46,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":277929,"timestamp":1592267245565,"id":46,"parentId":19,"tags":{"page":"/icon0.svg"},"startTime":1777374780076,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":271900,"timestamp":1592267258119,"id":79,"parentId":33,"tags":{},"startTime":1777374780088,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":289761,"timestamp":1592267240283,"id":33,"parentId":19,"tags":{"page":"/api/internal/cache/[...segments]"},"startTime":1777374780070,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":282779,"timestamp":1592267251119,"id":67,"parentId":43,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":290762,"timestamp":1592267243163,"id":43,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/merge"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":282896,"timestamp":1592267251089,"id":66,"parentId":42,"tags":{},"startTime":1777374780081,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":290879,"timestamp":1592267243112,"id":42,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/diff"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":276016,"timestamp":1592267258277,"id":80,"parentId":34,"tags":{},"startTime":1777374780088,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":293983,"timestamp":1592267240337,"id":34,"parentId":19,"tags":{"page":"/api/internal/hooks/install"},"startTime":1777374780070,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":278503,"timestamp":1592267255860,"id":76,"parentId":29,"tags":{},"startTime":1777374780086,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":294574,"timestamp":1592267239796,"id":29,"parentId":19,"tags":{"page":"/api/internal/assistant/chat"},"startTime":1777374780070,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":279381,"timestamp":1592267258447,"id":81,"parentId":35,"tags":{},"startTime":1777374780089,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":297230,"timestamp":1592267240622,"id":35,"parentId":19,"tags":{"page":"/api/internal/hooks/session"},"startTime":1777374780071,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":279172,"timestamp":1592267258745,"id":83,"parentId":38,"tags":{},"startTime":1777374780089,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":295013,"timestamp":1592267242912,"id":38,"parentId":19,"tags":{"page":"/api/internal/notifications/pending"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":284118,"timestamp":1592267256304,"id":77,"parentId":31,"tags":{},"startTime":1777374780086,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":300280,"timestamp":1592267240159,"id":31,"parentId":19,"tags":{"page":"/api/internal/assistant"},"startTime":1777374780070,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":279473,"timestamp":1592267261006,"id":84,"parentId":37,"tags":{},"startTime":1777374780091,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":297658,"timestamp":1592267242828,"id":37,"parentId":19,"tags":{"page":"/api/internal/hooks/upload"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":283563,"timestamp":1592267261656,"id":85,"parentId":39,"tags":{},"startTime":1777374780092,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":302291,"timestamp":1592267242975,"id":39,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/buffer"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":289027,"timestamp":1592267261948,"id":87,"parentId":41,"tags":{},"startTime":1777374780092,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":307965,"timestamp":1592267243071,"id":41,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/start"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":296637,"timestamp":1592267256473,"id":78,"parentId":32,"tags":{},"startTime":1777374780087,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":313015,"timestamp":1592267240219,"id":32,"parentId":19,"tags":{"page":"/api/internal/assistant/sessions"},"startTime":1777374780070,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":295908,"timestamp":1592267261823,"id":86,"parentId":40,"tags":{},"startTime":1777374780092,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":314728,"timestamp":1592267243026,"id":40,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/input"},"startTime":1777374780073,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":305602,"timestamp":1592267258674,"id":82,"parentId":36,"tags":{},"startTime":1777374780089,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":322098,"timestamp":1592267242203,"id":36,"parentId":19,"tags":{"page":"/api/internal/hooks/stop"},"startTime":1777374780072,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":309096,"timestamp":1592267255274,"id":75,"parentId":30,"tags":{},"startTime":1777374780085,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":324300,"timestamp":1592267240077,"id":30,"parentId":19,"tags":{"page":"/api/internal/assistant/images"},"startTime":1777374780070,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":311753,"timestamp":1592267263469,"id":88,"parentId":50,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":326163,"timestamp":1592267249114,"id":50,"parentId":19,"tags":{"page":"/onboarding"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":319050,"timestamp":1592267263487,"id":91,"parentId":53,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":333291,"timestamp":1592267249276,"id":53,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/archive"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":321539,"timestamp":1592267263481,"id":89,"parentId":51,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":335825,"timestamp":1592267249214,"id":51,"parentId":19,"tags":{"page":"/"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":322395,"timestamp":1592267263497,"id":95,"parentId":58,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":336437,"timestamp":1592267249475,"id":58,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/tasks/[taskId]"},"startTime":1777374780080,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":328079,"timestamp":1592267263510,"id":98,"parentId":57,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":342234,"timestamp":1592267249412,"id":57,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/projects/[projectId]"},"startTime":1777374780080,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":330347,"timestamp":1592267263502,"id":96,"parentId":49,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":344860,"timestamp":1592267249003,"id":49,"parentId":19,"tags":{"page":"/missions"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":330663,"timestamp":1592267263484,"id":90,"parentId":52,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":344908,"timestamp":1592267249246,"id":52,"parentId":19,"tags":{"page":"/settings"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":338446,"timestamp":1592267263505,"id":97,"parentId":59,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":352462,"timestamp":1592267249515,"id":59,"parentId":19,"tags":{"page":"/workspaces"},"startTime":1777374780080,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":347057,"timestamp":1592267263494,"id":94,"parentId":56,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":361199,"timestamp":1592267249378,"id":56,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]"},"startTime":1777374780080,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":349680,"timestamp":1592267263492,"id":93,"parentId":55,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":363842,"timestamp":1592267249346,"id":55,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/notes"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"is-page-static","duration":370019,"timestamp":1592267263489,"id":92,"parentId":54,"tags":{},"startTime":1777374780094,"traceId":"de22cf699d79aa4a"},{"name":"check-page","duration":384219,"timestamp":1592267249314,"id":54,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/assets"},"startTime":1777374780079,"traceId":"de22cf699d79aa4a"},{"name":"static-check","duration":400557,"timestamp":1592267232990,"id":19,"parentId":1,"tags":{},"startTime":1777374780063,"traceId":"de22cf699d79aa4a"},{"name":"write-routes-manifest","duration":354,"timestamp":1592267634383,"id":100,"parentId":1,"tags":{},"startTime":1777374780465,"traceId":"de22cf699d79aa4a"},{"name":"load-dotenv","duration":13,"timestamp":1592267641042,"id":103,"parentId":102,"tags":{},"startTime":1777374780471,"traceId":"de22cf699d79aa4a"},{"name":"run-export-path-map","duration":250,"timestamp":1592267642339,"id":104,"parentId":102,"tags":{},"startTime":1777374780472,"traceId":"de22cf699d79aa4a"},{"name":"next-export","duration":269811,"timestamp":1592267640537,"id":102,"parentId":1,"tags":{},"startTime":1777374780471,"traceId":"de22cf699d79aa4a"},{"name":"move-exported-app-not-found-","duration":831,"timestamp":1592267911505,"id":105,"parentId":101,"tags":{},"startTime":1777374780742,"traceId":"de22cf699d79aa4a"},{"name":"move-exported-app-global-error-","duration":373,"timestamp":1592267912406,"id":106,"parentId":101,"tags":{},"startTime":1777374780743,"traceId":"de22cf699d79aa4a"},{"name":"static-generation","duration":276770,"timestamp":1592267636693,"id":101,"parentId":1,"tags":{},"startTime":1777374780467,"traceId":"de22cf699d79aa4a"},{"name":"write-routes-manifest","duration":256,"timestamp":1592267913581,"id":107,"parentId":1,"tags":{},"startTime":1777374780744,"traceId":"de22cf699d79aa4a"}]
2
+ [{"name":"print-tree-view","duration":1818,"timestamp":1592267921571,"id":108,"parentId":1,"tags":{},"startTime":1777374780752,"traceId":"de22cf699d79aa4a"},{"name":"write-route-bundle-stats","duration":7146,"timestamp":1592267923403,"id":109,"parentId":1,"tags":{},"startTime":1777374780754,"traceId":"de22cf699d79aa4a"},{"name":"telemetry-flush","duration":277796,"timestamp":1592267930562,"id":110,"parentId":1,"tags":{},"startTime":1777374780761,"traceId":"de22cf699d79aa4a"},{"name":"next-build","duration":12112049,"timestamp":1592256096335,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1777374768926,"traceId":"de22cf699d79aa4a"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":5131193,"timestamp":1591466388849,"id":14,"parentId":1,"tags":{},"startTime":1777373979217,"traceId":"1f35f7ea0d6ce621"},{"name":"turbopack-build-events","duration":47,"timestamp":1591466547307,"id":15,"parentId":1,"tags":{},"startTime":1777373979375,"traceId":"1f35f7ea0d6ce621"},{"name":"run-typescript","duration":6797952,"timestamp":1591471588243,"id":16,"parentId":1,"tags":{},"startTime":1777373984416,"traceId":"1f35f7ea0d6ce621"},{"name":"static-check","duration":420361,"timestamp":1591478401207,"id":19,"parentId":1,"tags":{},"startTime":1777373991229,"traceId":"1f35f7ea0d6ce621"},{"name":"static-generation","duration":287277,"timestamp":1591478824549,"id":101,"parentId":1,"tags":{},"startTime":1777373991652,"traceId":"1f35f7ea0d6ce621"},{"name":"telemetry-flush","duration":259921,"timestamp":1591479133616,"id":110,"parentId":1,"tags":{},"startTime":1777373991961,"traceId":"1f35f7ea0d6ce621"},{"name":"next-build","duration":13201942,"timestamp":1591466191610,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1777373979019,"traceId":"1f35f7ea0d6ce621"}]
1
+ [{"name":"run-turbopack","duration":4530743,"timestamp":1592256223593,"id":14,"parentId":1,"tags":{},"startTime":1777374769054,"traceId":"de22cf699d79aa4a"},{"name":"turbopack-build-events","duration":41,"timestamp":1592256374627,"id":15,"parentId":1,"tags":{},"startTime":1777374769205,"traceId":"de22cf699d79aa4a"},{"name":"run-typescript","duration":6440029,"timestamp":1592260770790,"id":16,"parentId":1,"tags":{},"startTime":1777374773601,"traceId":"de22cf699d79aa4a"},{"name":"static-check","duration":400557,"timestamp":1592267232990,"id":19,"parentId":1,"tags":{},"startTime":1777374780063,"traceId":"de22cf699d79aa4a"},{"name":"static-generation","duration":276770,"timestamp":1592267636693,"id":101,"parentId":1,"tags":{},"startTime":1777374780467,"traceId":"de22cf699d79aa4a"},{"name":"telemetry-flush","duration":277796,"timestamp":1592267930562,"id":110,"parentId":1,"tags":{},"startTime":1777374780761,"traceId":"de22cf699d79aa4a"},{"name":"next-build","duration":12112049,"timestamp":1592256096335,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1777374768926,"traceId":"de22cf699d79aa4a"}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tower-studio",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "AI Task Orchestration Platform — Kanban + Terminal + Code Editor + MCP",
5
5
  "bin": {
6
6
  "tower": "bin/tower.mjs"
@@ -1,3 +0,0 @@
1
- module.exports=[814747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},446786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},918622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},120635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},427934,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},666775,a=>{"use strict";let b=(0,a.i(302856).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Settings",0,b],666775)},4909,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("605faba9ada423ecc3098cc0b16ea5e4121f64195a",b.callServer,void 0,b.findSourceMapURL,"getConfigValue");a.s(["getConfigValue",0,c])},775788,a=>{"use strict";var b,c=a.i(858360);a.s([],783786),a.i(783786);var d=a.i(175391),e=a.i(910600),f=a.i(825863),g=a.i(971441),h=a.i(527993),i=a.i(630517),j=a.i(302398),k=a.i(256116),l=a.i(293785),m=a.i(128429),n=a.i(88326),o=a.i(545264);let p=d.createContext(void 0);var q=a.i(170469);let r=((b={}).checked="data-checked",b.unchecked="data-unchecked",b.disabled="data-disabled",b.readonly="data-readonly",b.required="data-required",b.valid="data-valid",b.invalid="data-invalid",b.touched="data-touched",b.dirty="data-dirty",b.filled="data-filled",b.focused="data-focused",b),s={...q.fieldValidityMapping,checked:a=>a?{[r.checked]:""}:{[r.unchecked]:""}};var t=a.i(98719),u=a.i(969626),v=a.i(506489),w=a.i(176174),x=a.i(648172),y=a.i(703599),z=a.i(107432),A=a.i(222545);let B=d.forwardRef(function(a,b){let{checked:o,className:q,defaultChecked:r,"aria-labelledby":B,id:C,inputRef:D,name:E,nativeButton:F=!1,onCheckedChange:G,readOnly:H=!1,required:I=!1,disabled:J=!1,render:K,uncheckedValue:L,value:M,...N}=a,{clearErrors:O}=(0,v.useFormContext)(),{state:P,setTouched:Q,setDirty:R,validityData:S,setFilled:T,setFocused:U,shouldValidateOnChange:V,validationMode:W,disabled:X,name:Y,validation:Z}=(0,u.useFieldRootContext)(),{labelId:$}=(0,w.useLabelableContext)(),_=X||J,aa=Y??E,ab=(0,f.useStableCallback)(G),ac=d.useRef(null),ad=(0,g.useMergedRefs)(ac,D,Z.inputRef),ae=d.useRef(null),af=(0,m.useBaseUiId)(),ag=(0,x.useLabelableId)({id:C,implicit:!1,controlRef:ae}),ah=F?void 0:ag,[ai,aj]=(0,e.useControlled)({controlled:o,default:!!r,name:"Switch",state:"checked"});(0,t.useField)({id:af,commit:Z.commit,value:ai,controlRef:ae,name:aa,getValue:()=>ai}),(0,h.useIsoLayoutEffect)(()=>{ac.current&&T(ac.current.checked)},[ac,T]),(0,A.useValueChanged)(ai,()=>{O(aa),R(ai!==S.initialValue),T(ai),V()?Z.commit(ai):Z.commit(ai,!0)});let{getButtonProps:ak,buttonRef:al}=(0,n.useButton)({disabled:_,native:F}),am=function(a,b,c,e=!0,f){let[g,i]=d.useState(),j=(0,m.useBaseUiId)(f?`${f}-label`:void 0),k=a??b??g;return(0,h.useIsoLayoutEffect)(()=>{let d=a||b||!e?void 0:function(a,b){let c=function(a){if(!a)return;let b=a.parentElement;if(b&&"LABEL"===b.tagName)return b;let c=a.id;if(c){let b=a.nextElementSibling;if(b&&b.htmlFor===c)return b}let d=a.labels;return d&&d[0]}(a);if(c)return!c.id&&b&&(c.id=b),c.id||void 0}(c.current,j);g!==d&&i(d)}),k}(B,$,ac,!F,ah),an=d.useMemo(()=>(0,l.mergeProps)({checked:ai,disabled:_,id:ah,name:aa,required:I,style:aa?i.visuallyHiddenInput:i.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:ad,onChange(a){if(a.nativeEvent.defaultPrevented)return;let b=a.target.checked,c=(0,y.createChangeEventDetails)(z.REASONS.none,a.nativeEvent);ab?.(b,c),c.isCanceled||aj(b)},onFocus(){ae.current?.focus()}},Z.getInputValidationProps,void 0!==M?{value:M}:j.EMPTY_OBJECT),[ai,_,ad,ah,aa,ab,I,aj,Z,M]),ao=d.useMemo(()=>({...P,checked:ai,disabled:_,readOnly:H,required:I}),[P,ai,_,H,I]),ap=(0,k.useRenderElement)("span",a,{state:ao,ref:[b,ae,al],props:[{id:F?ag:af,role:"switch","aria-checked":ai,"aria-readonly":H||void 0,"aria-required":I||void 0,"aria-labelledby":am,onFocus(){_||U(!0)},onBlur(){let a=ac.current;a&&!_&&(Q(!0),U(!1),"onBlur"===W&&Z.commit(a.checked))},onClick(a){H||_||(a.preventDefault(),ac.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:a.shiftKey,ctrlKey:a.ctrlKey,altKey:a.altKey,metaKey:a.metaKey})))}},Z.getValidationProps,N,ak],stateAttributesMapping:s});return(0,c.jsxs)(p.Provider,{value:ao,children:[ap,!ai&&aa&&void 0!==L&&(0,c.jsx)("input",{type:"hidden",name:aa,value:L}),(0,c.jsx)("input",{...an})]})}),C=d.forwardRef(function(a,b){let{render:c,className:e,...f}=a,{state:g}=(0,u.useFieldRootContext)(),h=function(){let a=d.useContext(p);if(void 0===a)throw Error((0,o.default)(63));return a}(),i={...g,...h};return(0,k.useRenderElement)("span",a,{state:i,ref:b,stateAttributesMapping:s,props:f})});a.s(["Root",0,B,"Thumb",0,C],431499);var D=a.i(431499),D=D,E=a.i(44585);a.s(["Switch",0,function({className:a,size:b="default",...d}){return(0,c.jsx)(D.Root,{"data-slot":"switch","data-size":b,className:(0,E.cn)("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",a),...d,children:(0,c.jsx)(D.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"})})}],775788)},684262,a=>{"use strict";let b=(0,a.i(302856).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);a.s(["Bell",0,b],684262)},761149,a=>{"use strict";var b=a.i(175391),c=a.i(88326),d=a.i(256116);let e=b.forwardRef(function(a,b){let{render:e,className:f,disabled:g=!1,focusableWhenDisabled:h=!1,nativeButton:i=!0,...j}=a,{getButtonProps:k,buttonRef:l}=(0,c.useButton)({disabled:g,focusableWhenDisabled:h,native:i});return(0,d.useRenderElement)("button",a,{state:{disabled:g},ref:[b,l],props:[j,k]})});a.s(["Button",0,e])},488137,a=>{"use strict";var b=a.i(739220);let c=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,d=b.clsx;a.s(["cva",0,(a,b)=>e=>{var f;if((null==b?void 0:b.variants)==null)return d(a,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:g,defaultVariants:h}=b,i=Object.keys(g).map(a=>{let b=null==e?void 0:e[a],d=null==h?void 0:h[a];if(null===b)return null;let f=c(b)||c(d);return g[a][f]}),j=e&&Object.entries(e).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return d(a,i,null==b||null==(f=b.compoundVariants)?void 0:f.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==e?void 0:e.class,null==e?void 0:e.className)}])},410756,a=>{"use strict";var b=a.i(858360),c=a.i(761149),d=a.i(488137),e=a.i(44585);let f=(0,d.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-accent hover:text-foreground aria-expanded:bg-accent aria-expanded:text-foreground",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});a.s(["Button",0,function({className:a,variant:d="default",size:g="default",...h}){return(0,b.jsx)(c.Button,{"data-slot":"button",className:(0,e.cn)(f({variant:d,size:g,className:a})),...h})}])},54709,912971,a=>{"use strict";let b=(0,a.i(302856).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["default",0,b],912971),a.s(["X",0,b],54709)},263973,a=>{"use strict";let b=(0,a.i(302856).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",0,b],263973)},65735,a=>{"use strict";let b=(0,a.i(302856).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["default",0,b])},360295,a=>{"use strict";let b=(0,a.i(302856).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["default",0,b])},61966,a=>{"use strict";let b=(0,a.i(302856).default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);a.s(["GitBranch",0,b],61966)},858967,a=>{"use strict";var b=a.i(669794);a.s(["Check",()=>b.default])},845924,a=>{"use strict";var b=a.i(858360),c=a.i(44585);a.s(["SegmentedControl",0,function({options:a,value:d,onChange:e,className:f}){return(0,b.jsx)("div",{className:(0,c.cn)("inline-flex rounded-md border border-border bg-muted p-1 gap-1",f),children:a.map(a=>(0,b.jsx)("button",{type:"button",onClick:()=>e(a.value),className:(0,c.cn)("rounded px-3 py-1 text-sm transition-colors",d===a.value?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:a.label},a.value))})}])},432120,a=>{"use strict";var b=a.i(175391),c=(a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}},d=["light","dark"],e="(prefers-color-scheme: dark)",f=b.createContext(void 0),g={setTheme:a=>{},themes:[]},h=["light","dark"],i=({forcedTheme:a,disableTransitionOnChange:c=!1,enableSystem:g=!0,enableColorScheme:i=!0,storageKey:n="theme",themes:o=h,defaultTheme:p=g?"system":"light",attribute:q="data-theme",value:r,children:s,nonce:t,scriptProps:u})=>{let[v,w]=b.useState(()=>k(n,p)),[x,y]=b.useState(()=>"system"===v?m():v),z=r?Object.values(r):o,A=b.useCallback(a=>{let b=a;if(!b)return;"system"===a&&g&&(b=m());let e=r?r[b]:b,f=c?l(t):null,h=document.documentElement,j=a=>{"class"===a?(h.classList.remove(...z),e&&h.classList.add(e)):a.startsWith("data-")&&(e?h.setAttribute(a,e):h.removeAttribute(a))};if(Array.isArray(q)?q.forEach(j):j(q),i){let a=d.includes(p)?p:null,c=d.includes(b)?b:a;h.style.colorScheme=c}null==f||f()},[t]),B=b.useCallback(a=>{let b="function"==typeof a?a(v):a;w(b);try{localStorage.setItem(n,b)}catch(a){}},[v]),C=b.useCallback(b=>{y(m(b)),"system"===v&&g&&!a&&A("system")},[v,a]);b.useEffect(()=>{let a=window.matchMedia(e);return a.addListener(C),C(a),()=>a.removeListener(C)},[C]),b.useEffect(()=>{let a=a=>{a.key===n&&(a.newValue?w(a.newValue):B(p))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[B]),b.useEffect(()=>{A(null!=a?a:v)},[a,v]);let D=b.useMemo(()=>({theme:v,setTheme:B,forcedTheme:a,resolvedTheme:"system"===v?x:v,themes:g?[...o,"system"]:o,systemTheme:g?x:void 0}),[v,B,a,x,g,o]);return b.createElement(f.Provider,{value:D},b.createElement(j,{forcedTheme:a,storageKey:n,attribute:q,enableSystem:g,enableColorScheme:i,defaultTheme:p,value:r,themes:o,nonce:t,scriptProps:u}),s)},j=b.memo(({forcedTheme:a,storageKey:d,attribute:e,enableSystem:f,enableColorScheme:g,defaultTheme:h,value:i,themes:j,nonce:k,scriptProps:l})=>{let m=JSON.stringify([e,d,h,a,j,i,f,g]).slice(1,-1);return b.createElement("script",{...l,suppressHydrationWarning:!0,nonce:k,dangerouslySetInnerHTML:{__html:`(${c.toString()})(${m})`}})}),k=(a,b)=>{},l=a=>{let b=document.createElement("style");return a&&b.setAttribute("nonce",a),b.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(b),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(b)},1)}},m=a=>(a||(a=window.matchMedia(e)),a.matches?"dark":"light");a.s(["ThemeProvider",0,a=>b.useContext(f)?b.createElement(b.Fragment,null,a.children):b.createElement(i,{...a}),"useTheme",0,()=>{var a;return null!=(a=b.useContext(f))?a:g}])},484802,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("602ca3a56b3c9c60387507e12d6e62a57227541195",b.callServer,void 0,b.findSourceMapURL,"setConfigValue");a.s(["setConfigValue",0,c])},248763,470612,a=>{"use strict";var b=a.i(302856);let c=(0,b.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);a.s(["Sun",0,c],248763);let d=(0,b.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);a.s(["Moon",0,d],470612)}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0-x7b4t._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},515205,a=>{"use strict";var b=a.i(858360),c=a.i(759985),d=a.i(448287),e=a.i(59711),f=a.i(161604),g=a.i(986379),h=a.i(14180),i=a.i(584335);let j=[{key:"notes",icon:f.FileText},{key:"assets",icon:g.FolderOpen},{key:"archive",icon:h.Archive}];a.s(["SubPageNav",0,function({workspaceId:a}){let{t:f}=(0,i.useI18n)(),g=(0,d.usePathname)(),h=j.find(a=>g.includes(`/${a.key}`))?.key;return(0,b.jsxs)("div",{className:"header-sm flex items-center gap-1 px-4 py-2",children:[(0,b.jsxs)(c.default,{href:`/workspaces/${a}`,className:"mr-2 flex items-center gap-1.5 rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,b.jsx)(e.ArrowLeft,{className:"h-3.5 w-3.5"}),(0,b.jsx)("span",{children:f("archive.backToBoard")})]}),(0,b.jsx)("span",{className:"mr-2 h-4 w-px bg-border"}),j.map(d=>{let e=d.icon,g=h===d.key;return(0,b.jsxs)(c.default,{href:`/workspaces/${a}/${d.key}`,className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${g?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,children:[(0,b.jsx)(e,{className:"h-3.5 w-3.5"}),(0,b.jsx)("span",{children:f(`sidebar.${d.key}`)})]},d.key)})]})}])},59711,a=>{"use strict";let b=(0,a.i(302856).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",0,b],59711)},468518,a=>{"use strict";var b=a.i(858360),c=a.i(44585);a.s(["EmptyState",0,function({icon:a,title:d,description:e,action:f,className:g}){return(0,b.jsxs)("div",{className:(0,c.cn)("flex h-48 flex-col items-center justify-center gap-2 text-center",g),children:[a&&(0,b.jsx)(a,{className:"h-10 w-10 text-muted-foreground/40"}),(0,b.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:d}),e&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground/60",children:e}),f&&(0,b.jsx)("div",{className:"mt-2",children:f})]})}])},113620,a=>{"use strict";a.s(["BOARD_COLUMNS",0,[{id:"TODO",label:"To Do",color:"bg-slate-400"},{id:"IN_PROGRESS",label:"In Progress",color:"bg-amber-400"},{id:"IN_REVIEW",label:"In Review",color:"bg-sky-400"},{id:"DONE",label:"Done",color:"bg-emerald-400"},{id:"CANCELLED",label:"Cancelled",color:"bg-rose-400"}],"NOTE_CATEGORIES_PRESET",0,["账号","环境","需求","备忘"],"PRIORITY_CONFIG",0,{LOW:{label:"低",color:"bg-slate-500/20 text-slate-300 border border-slate-500/30"},MEDIUM:{label:"中",color:"bg-amber-500/20 text-amber-300 border border-amber-500/30"},HIGH:{label:"高",color:"bg-orange-500/20 text-orange-300 border border-orange-500/30"},CRITICAL:{label:"紧急",color:"bg-rose-500/20 text-rose-300 border border-rose-500/30"}},"TOWER_LABEL_NAME",0,"Tower"])},309566,762157,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("400e938456c47686ce717ca0a62ad37319595e54dd",b.callServer,void 0,b.findSourceMapURL,"createNote");a.s(["createNote",0,c],309566);let d=(0,b.createServerReference)("40361899a89a3dfa8991fb99c3b8dc7da2c2d40552",b.callServer,void 0,b.findSourceMapURL,"deleteNote");a.s(["deleteNote",0,d],762157)},25226,a=>{"use strict";var b=a.i(858360),c=a.i(175391),d=a.i(263973),e=a.i(109434),f=a.i(515205),g=a.i(584335),h=a.i(113620),i=a.i(309566),j=a.i(879876);let k=(0,j.createServerReference)("603a1a1afb6e45500a4e665b2891f66944cb288463",j.callServer,void 0,j.findSourceMapURL,"updateNote");var l=a.i(762157);let m=(0,j.createServerReference)("6099c1903b86a9bb5000816213dd29020311e6a7a3",j.callServer,void 0,j.findSourceMapURL,"getProjectNotes");var n=a.i(44585);function o({active:a,onSelect:c}){let{t:d}=(0,g.useI18n)();return(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,b.jsx)("button",{onClick:()=>c("all"),className:(0,n.cn)("rounded-lg px-3 py-1 text-xs font-medium transition-colors","all"===a?"bg-primary/15 text-primary ring-1 ring-primary/20":"text-muted-foreground hover:bg-accent"),children:d("notes.allCategories")}),h.NOTE_CATEGORIES_PRESET.map(d=>(0,b.jsx)("button",{onClick:()=>c(d),className:(0,n.cn)("rounded-lg px-3 py-1 text-xs font-medium transition-colors",a===d?"bg-primary/15 text-primary ring-1 ring-primary/20":"text-muted-foreground hover:bg-accent"),children:d},d))]})}var p=a.i(410756),q=a.i(224372),r=a.i(161604),s=a.i(468518),t=a.i(94202),u=a.i(569210),v=a.i(448709),w=a.i(238848);function x({note:a,onEdit:c,onDelete:d}){let{t:e}=(0,g.useI18n)(),f=a.content.slice(0,300);return(0,b.jsxs)("div",{className:"group relative rounded-lg border border-border bg-card p-4 transition-colors hover:border-border/80 hover:bg-accent/20",children:[(0,b.jsxs)("div",{className:"absolute right-3 top-3 flex items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[(0,b.jsx)(p.Button,{variant:"ghost",size:"icon-sm",onClick:()=>c(a),className:"text-muted-foreground","aria-label":e("notes.edit"),children:(0,b.jsx)(t.Pencil,{className:"h-3.5 w-3.5"})}),(0,b.jsx)(p.Button,{variant:"ghost",size:"icon-sm",onClick:()=>d(a.id),className:"text-muted-foreground hover:text-rose-400","aria-label":e("notes.delete"),children:(0,b.jsx)(u.Trash2,{className:"h-3.5 w-3.5"})})]}),(0,b.jsx)("div",{className:"mb-2 pr-16",children:(0,b.jsx)("h3",{className:"truncate text-sm font-semibold text-foreground",children:a.title})}),(0,b.jsx)("span",{className:"mb-3 inline-block rounded-full bg-muted px-2 py-0.5 text-[10px] font-medium text-muted-foreground",children:a.category}),(0,b.jsx)("div",{className:"prose prose-sm dark:prose-invert max-h-24 overflow-hidden text-muted-foreground",children:(0,b.jsx)(v.default,{remarkPlugins:[w.default],children:f})})]})}function y({notes:a,onEdit:c,onDelete:d}){let{t:e}=(0,g.useI18n)();return 0===a.length?(0,b.jsx)(s.EmptyState,{icon:r.FileText,title:e("notes.empty"),description:e("notes.emptyHint")}):(0,b.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:a.map(a=>(0,b.jsx)(x,{note:a,onEdit:c,onDelete:d},a.id))})}var z=a.i(246962);function A({value:a,onChange:c}){return(0,b.jsxs)("div",{className:"relative grid grid-cols-2 gap-4 flex-1 min-h-64",children:[(0,b.jsx)(z.Textarea,{value:a,onChange:a=>c(a.target.value),className:"absolute inset-0 w-1/2 pr-2 resize-none font-mono text-sm border rounded-md p-3 bg-background text-foreground border-border focus:outline-none focus:ring-1 focus:ring-ring",placeholder:"Write Markdown here..."}),(0,b.jsx)("div",{className:"absolute inset-0 left-1/2 pl-2",children:(0,b.jsx)("div",{className:"h-full overflow-y-auto border rounded-md p-3 border-border prose prose-sm dark:prose-invert max-w-none",children:(0,b.jsx)(v.default,{remarkPlugins:[w.default],children:a})})})]})}a.s(["NotesPageClient",0,function({allWorkspaces:a,initialWorkspaceId:j,initialProjectId:n,initialNotes:r}){let s,t,{t:u}=(0,g.useI18n)(),[v,w]=(0,c.useTransition)(),[x,z]=(0,c.useState)(j),[B,C]=(0,c.useState)(n),[D,E]=(0,c.useState)(r),[F,G]=(0,c.useState)("all"),[H,I]=(0,c.useState)(null),[J,K]=(0,c.useState)(!1),[L,M]=(0,c.useState)(""),[N,O]=(0,c.useState)(""),[P,Q]=(0,c.useState)(h.NOTE_CATEGORIES_PRESET[3]),[R,S]=(0,c.useState)(j),[T,U]=(0,c.useState)(n),V=a.find(a=>a.id===x),W=V?.projects??[],X=a.find(a=>a.id===R),Y=X?.projects??[],Z=(0,c.useCallback)(a=>{a?w(async()=>{E(await m(a))}):E([])},[w]),$=async()=>{T&&L.trim()&&(await (0,i.createNote)({title:L.trim(),content:N,category:P,projectId:T}),K(!1),T===B&&Z(B))},_=async()=>{H&&L.trim()&&(await k(H.id,{title:L.trim(),content:N,category:P}),I(null),Z(B))},aa=async a=>{let b=D.find(b=>b.id===a);!b||confirm(u("notes.deleteConfirm",{title:b.title}))&&(await (0,l.deleteNote)(a),Z(B))},ab="all"===F?D.map(a=>({...a,updatedAt:new Date(a.updatedAt)})):D.filter(a=>a.category===F).map(a=>({...a,updatedAt:new Date(a.updatedAt)})),ac=J||null!==H;return(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,b.jsx)(f.SubPageNav,{workspaceId:x}),(0,b.jsxs)("div",{className:"header-sm flex items-center gap-3 px-6 py-2",children:[(0,b.jsxs)(q.Select,{value:x,onValueChange:b=>b&&(b=>{if(b===x)return;z(b);let c=a.find(a=>a.id===b),d=c?.projects[0]??null;C(d?.id??null),G("all"),Z(d?.id??null)})(b),children:[(0,b.jsx)(q.SelectTrigger,{className:"h-8 w-auto min-w-[120px]",children:(0,b.jsx)("span",{className:"truncate",children:a.find(a=>a.id===x)?.name??x})}),(0,b.jsx)(q.SelectContent,{children:a.map(a=>(0,b.jsx)(q.SelectItem,{value:a.id,children:a.name},a.id))})]}),W.length>0&&(0,b.jsxs)(q.Select,{value:B??"",onValueChange:a=>a&&void(a!==B&&(C(a),G("all"),Z(a))),children:[(0,b.jsx)(q.SelectTrigger,{className:"h-8 w-auto min-w-[140px]",children:(0,b.jsx)("span",{className:"truncate",children:(s=W.find(a=>a.id===B))?s.alias?`${s.name} (${s.alias})`:s.name:""})}),(0,b.jsx)(q.SelectContent,{children:W.map(a=>(0,b.jsxs)(q.SelectItem,{value:a.id,children:[a.name,a.alias?` (${a.alias})`:""]},a.id))})]}),!ac&&(0,b.jsxs)(p.Button,{onClick:()=>{M(""),O(""),Q(h.NOTE_CATEGORIES_PRESET[3]),S(x),U(B),I(null),K(!0)},className:"ml-auto bg-primary/10 text-primary ring-1 ring-primary/20 hover:bg-primary/15",children:[(0,b.jsx)(d.Plus,{className:"h-3.5 w-3.5"}),(0,b.jsx)("span",{children:u("notes.newNote")})]})]}),(0,b.jsx)("div",{className:"flex-1 overflow-hidden px-6 py-4 flex flex-col",children:ac?(0,b.jsxs)("div",{className:"flex flex-col gap-4 flex-1 min-h-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[!H&&(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:u("notes.workspace")}),(0,b.jsxs)(q.Select,{value:R,onValueChange:b=>b&&(b=>{if(b===R)return;S(b);let c=a.find(a=>a.id===b),d=c?.projects[0]??null;U(d?.id??null)})(b),children:[(0,b.jsx)(q.SelectTrigger,{className:"min-w-[140px] text-xs",children:(0,b.jsx)("span",{className:"truncate",children:a.find(a=>a.id===R)?.name??R})}),(0,b.jsx)(q.SelectContent,{children:a.map(a=>(0,b.jsx)(q.SelectItem,{value:a.id,children:a.name},a.id))})]})]}),!H&&Y.length>0&&(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:u("notes.project")}),(0,b.jsxs)(q.Select,{value:T??"",onValueChange:a=>a&&U(a),children:[(0,b.jsx)(q.SelectTrigger,{className:"min-w-[160px] text-xs",children:(0,b.jsx)("span",{className:"truncate",children:(t=Y.find(a=>a.id===T))?t.alias?`${t.name} (${t.alias})`:t.name:""})}),(0,b.jsx)(q.SelectContent,{children:Y.map(a=>(0,b.jsxs)(q.SelectItem,{value:a.id,children:[a.name,a.alias?` (${a.alias})`:""]},a.id))})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:u("notes.categoryLabel")}),(0,b.jsxs)(q.Select,{value:P,onValueChange:a=>a&&Q(a),children:[(0,b.jsx)(q.SelectTrigger,{className:"min-w-[120px] text-xs",children:(0,b.jsx)("span",{className:"truncate",children:P})}),(0,b.jsx)(q.SelectContent,{children:h.NOTE_CATEGORIES_PRESET.map(a=>(0,b.jsx)(q.SelectItem,{value:a,children:a},a))})]})]})]}),(0,b.jsx)("input",{type:"text",value:L,onChange:a=>M(a.target.value),placeholder:u("notes.titlePlaceholder"),className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),(0,b.jsx)(A,{value:N,onChange:O}),(0,b.jsxs)("div",{className:"flex items-center gap-2 justify-end",children:[(0,b.jsx)(p.Button,{variant:"outline",onClick:()=>{K(!1),I(null)},children:u("notes.cancel")}),(0,b.jsx)(p.Button,{onClick:H?_:$,disabled:!L.trim()||!H&&!T,className:"bg-primary/10 text-primary ring-1 ring-primary/20 hover:bg-primary/15",children:u("notes.save")})]})]}):(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)(o,{active:F,onSelect:G}),(0,b.jsxs)("div",{className:`relative ${v?"opacity-40 pointer-events-none":""} transition-opacity`,children:[v&&(0,b.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,b.jsx)(e.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}),0===W.length?(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-16 text-center",children:[(0,b.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:u("notes.noProject")}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground/60",children:u("notes.noProjectHint")})]}):(0,b.jsx)(y,{notes:ab,onEdit:a=>{M(a.title),O(a.content),Q(a.category),I(a),K(!1)},onDelete:aa})]})]})})]})}],25226)}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0z9azne._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[343146,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("78822464cbc435f4231430fc80d9496f2c57dc5366",b.callServer,void 0,b.findSourceMapURL,"startPtyExecution");a.s(["startPtyExecution",0,c])},512340,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("402d9346fe9d9230b99c6d4bd8b3d54549b6dfe5c1",b.callServer,void 0,b.findSourceMapURL,"stopPtyExecution");a.s(["stopPtyExecution",0,c])},387633,595313,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("608df97fd6455e84d963a9b89177a86efea6cb3ead",b.callServer,void 0,b.findSourceMapURL,"resumePtyExecution");a.s(["resumePtyExecution",0,c],387633);let d=(0,a.i(302856).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);a.s(["RotateCcw",0,d],595313)},506008,a=>{"use strict";var b=a.i(360295);a.s(["ChevronRight",()=>b.default])},236413,a=>{"use strict";let b=(0,a.i(302856).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);a.s(["Terminal",0,b],236413)},769726,a=>{"use strict";let b=(0,a.i(302856).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);a.s(["ChevronLeft",0,b],769726)},113620,a=>{"use strict";a.s(["BOARD_COLUMNS",0,[{id:"TODO",label:"To Do",color:"bg-slate-400"},{id:"IN_PROGRESS",label:"In Progress",color:"bg-amber-400"},{id:"IN_REVIEW",label:"In Review",color:"bg-sky-400"},{id:"DONE",label:"Done",color:"bg-emerald-400"},{id:"CANCELLED",label:"Cancelled",color:"bg-rose-400"}],"NOTE_CATEGORIES_PRESET",0,["账号","环境","需求","备忘"],"PRIORITY_CONFIG",0,{LOW:{label:"低",color:"bg-slate-500/20 text-slate-300 border border-slate-500/30"},MEDIUM:{label:"中",color:"bg-amber-500/20 text-amber-300 border border-amber-500/30"},HIGH:{label:"高",color:"bg-orange-500/20 text-orange-300 border border-orange-500/30"},CRITICAL:{label:"紧急",color:"bg-rose-500/20 text-rose-300 border border-rose-500/30"}},"TOWER_LABEL_NAME",0,"Tower"])},309566,762157,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("400e938456c47686ce717ca0a62ad37319595e54dd",b.callServer,void 0,b.findSourceMapURL,"createNote");a.s(["createNote",0,c],309566);let d=(0,b.createServerReference)("40361899a89a3dfa8991fb99c3b8dc7da2c2d40552",b.callServer,void 0,b.findSourceMapURL,"deleteNote");a.s(["deleteNote",0,d],762157)},59711,a=>{"use strict";let b=(0,a.i(302856).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",0,b],59711)},468518,a=>{"use strict";var b=a.i(858360),c=a.i(44585);a.s(["EmptyState",0,function({icon:a,title:d,description:e,action:f,className:g}){return(0,b.jsxs)("div",{className:(0,c.cn)("flex h-48 flex-col items-center justify-center gap-2 text-center",g),children:[a&&(0,b.jsx)(a,{className:"h-10 w-10 text-muted-foreground/40"}),(0,b.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:d}),e&&(0,b.jsx)("p",{className:"text-xs text-muted-foreground/60",children:e}),f&&(0,b.jsx)("div",{className:"mt-2",children:f})]})}])},236345,a=>{"use strict";let b=(0,a.i(302856).default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);a.s(["PlayCircle",0,b],236345)},208168,285229,a=>{"use strict";let b=(0,a.i(302856).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);a.s(["Upload",0,b],208168);var c=a.i(879876);let d=(0,c.createServerReference)("4083167843d34b399d2c0c7b86827de885c1297889",c.callServer,void 0,c.findSourceMapURL,"uploadAsset");a.s(["uploadAsset",0,d],285229)},241153,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("40249eba003e3257d01436bc9dc88d879fc694ba51",b.callServer,void 0,b.findSourceMapURL,"deleteAsset");a.s(["deleteAsset",0,c])},48300,a=>{"use strict";var b=a.i(293785),c=a.i(256116),d=a.i(488137),e=a.i(44585);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){var i;return i={defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}},(0,c.useRenderElement)(i.defaultTagName??"div",i,i)}],48300)},57726,891903,a=>{"use strict";var b=a.i(65735);a.s(["CheckCircle2",()=>b.default],57726);let c=(0,a.i(302856).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);a.s(["XCircle",0,c],891903)},836794,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("40d68b38a3928d00707b5d071669719a545db54c48",b.callServer,void 0,b.findSourceMapURL,"getPrompts");a.s(["getPrompts",0,c])},889822,a=>{"use strict";var b=a.i(858360),c=a.i(44585);a.s(["Label",0,function({className:a,...d}){return(0,b.jsx)("label",{"data-slot":"label",className:(0,c.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...d})}])}];
2
-
3
- //# sourceMappingURL=project_f_tower_0.nfmle._.js.map
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,803041,e=>{"use strict";var t=e.i(422364);e.s(["ChevronRight",()=>t.default])},950211,e=>{"use strict";let t=(0,e.i(863961).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",0,t],950211)},864056,e=>{"use strict";let t=(0,e.i(863961).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],864056)},289208,e=>{"use strict";let t=(0,e.i(863961).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["Square",0,t],289208)},466256,421845,e=>{"use strict";var t=e.i(863961);let r=(0,t.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);e.s(["ClipboardList",0,r],466256);let s=(0,t.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,s],421845)},787207,e=>{"use strict";e.s(["BOARD_COLUMNS",0,[{id:"TODO",label:"To Do",color:"bg-slate-400"},{id:"IN_PROGRESS",label:"In Progress",color:"bg-amber-400"},{id:"IN_REVIEW",label:"In Review",color:"bg-sky-400"},{id:"DONE",label:"Done",color:"bg-emerald-400"},{id:"CANCELLED",label:"Cancelled",color:"bg-rose-400"}],"NOTE_CATEGORIES_PRESET",0,["账号","环境","需求","备忘"],"PRIORITY_CONFIG",0,{LOW:{label:"低",color:"bg-slate-500/20 text-slate-300 border border-slate-500/30"},MEDIUM:{label:"中",color:"bg-amber-500/20 text-amber-300 border border-amber-500/30"},HIGH:{label:"高",color:"bg-orange-500/20 text-orange-300 border border-orange-500/30"},CRITICAL:{label:"紧急",color:"bg-rose-500/20 text-rose-300 border border-rose-500/30"}},"TOWER_LABEL_NAME",0,"Tower"])},44014,137880,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("400e938456c47686ce717ca0a62ad37319595e54dd",t.callServer,void 0,t.findSourceMapURL,"createNote");e.s(["createNote",0,r],44014);let s=(0,t.createServerReference)("40361899a89a3dfa8991fb99c3b8dc7da2c2d40552",t.callServer,void 0,t.findSourceMapURL,"deleteNote");e.s(["deleteNote",0,s],137880)},265826,e=>{"use strict";let t=(0,e.i(863961).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],265826)},726111,e=>{"use strict";var t=e.i(432377),r=e.i(937756);e.s(["EmptyState",0,function({icon:e,title:s,description:a,action:i,className:n}){return(0,t.jsxs)("div",{className:(0,r.cn)("flex h-48 flex-col items-center justify-center gap-2 text-center",n),children:[e&&(0,t.jsx)(e,{className:"h-10 w-10 text-muted-foreground/40"}),(0,t.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:s}),a&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground/60",children:a}),i&&(0,t.jsx)("div",{className:"mt-2",children:i})]})}])},616199,e=>{"use strict";let t=(0,e.i(863961).default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["PlayCircle",0,t],616199)},215365,454245,e=>{"use strict";let t=(0,e.i(863961).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],215365);var r=e.i(543485);let s=(0,r.createServerReference)("4083167843d34b399d2c0c7b86827de885c1297889",r.callServer,void 0,r.findSourceMapURL,"uploadAsset");e.s(["uploadAsset",0,s],454245)},208513,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("40249eba003e3257d01436bc9dc88d879fc694ba51",t.callServer,void 0,t.findSourceMapURL,"deleteAsset");e.s(["deleteAsset",0,r])},203529,e=>{"use strict";var t=e.i(337590),r=e.i(793988),s=e.i(164688),a=e.i(937756);let i=(0,s.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:s="default",render:n,...l}){var o;return o={defaultTagName:"span",props:(0,t.mergeProps)({className:(0,a.cn)(i({variant:s}),e)},l),render:n,state:{slot:"badge",variant:s}},(0,r.useRenderElement)(o.defaultTagName??"div",o,o)}],203529)},750986,1156,e=>{"use strict";var t=e.i(419613);e.s(["CheckCircle2",()=>t.default],750986);let r=(0,e.i(863961).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,r],1156)},773620,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("40d68b38a3928d00707b5d071669719a545db54c48",t.callServer,void 0,t.findSourceMapURL,"getPrompts");e.s(["getPrompts",0,r])},9433,e=>{"use strict";var t=e.i(432377),r=e.i(937756);e.s(["Label",0,function({className:e,...s}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...s})}])},743e3,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("78822464cbc435f4231430fc80d9496f2c57dc5366",t.callServer,void 0,t.findSourceMapURL,"startPtyExecution");e.s(["startPtyExecution",0,r])},311773,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("402d9346fe9d9230b99c6d4bd8b3d54549b6dfe5c1",t.callServer,void 0,t.findSourceMapURL,"stopPtyExecution");e.s(["stopPtyExecution",0,r])},540984,351101,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("608df97fd6455e84d963a9b89177a86efea6cb3ead",t.callServer,void 0,t.findSourceMapURL,"resumePtyExecution");e.s(["resumePtyExecution",0,r],540984);let s=(0,e.i(863961).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,s],351101)},287277,e=>{"use strict";let t=(0,e.i(863961).default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);e.s(["Lightbulb",0,t],287277)},31459,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("60d9e69cf34902e6c9b1b76bf703b2feeee2aa4321",t.callServer,void 0,t.findSourceMapURL,"updateProject");e.s(["updateProject",0,r])},909105,e=>{"use strict";var t=e.i(432377),r=e.i(85212),s=e.i(357334),a=e.i(458851),i=e.i(677436),n=e.i(893832),l=e.i(946960),o=e.i(718837),c=e.i(711296),d=e.i(831349),u=e.i(540032),x=e.i(625054);e.s(["CreateBranchDialog",0,function({open:e,onOpenChange:m,branches:h,currentBranch:f,localPath:g,onCreated:p,onError:b}){let{t:v}=(0,x.useI18n)(),[y,j]=(0,r.useState)(""),[N,w]=(0,r.useState)(f),[k,C]=(0,r.useState)(""),[S,M]=(0,r.useState)(!1),[L,R]=(0,r.useState)(""),[D,E]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e&&(j(""),w(f),C(""),R(""))},[e,f]);let T=[...new Set(h)].filter(e=>e.toLowerCase().includes(L.toLowerCase())),P=async()=>{if(y.trim()){M(!0);try{let e=await fetch("/api/git",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create-branch",path:g,branch:y.trim(),baseBranch:N})});if(e.ok)m(!1),p();else{let t=await e.json();b(t.error||"Unknown error")}}catch{b("Network error")}finally{M(!1)}}};return(0,t.jsx)(o.Dialog,{open:e,onOpenChange:m,children:(0,t.jsxs)(o.DialogContent,{className:"sm:max-w-sm",children:[(0,t.jsx)(o.DialogHeader,{children:(0,t.jsx)(o.DialogTitle,{children:v("git.createBranch")})}),(0,t.jsxs)("div",{className:"space-y-3 py-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs font-medium text-muted-foreground",children:v("git.branchName")}),(0,t.jsx)(d.Input,{value:y,onChange:e=>j(e.target.value),placeholder:v("git.branchNamePlaceholder"),className:"mt-1.5 font-mono text-xs",onKeyDown:e=>"Enter"===e.key&&P()})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs font-medium text-muted-foreground",children:v("git.baseBranch")}),(0,t.jsxs)("div",{className:"relative mt-1.5",children:[(0,t.jsxs)("button",{onClick:()=>E(!D),className:"flex w-full items-center justify-between rounded-lg border border-border bg-muted/50 px-3 py-2 text-left transition-colors hover:bg-accent",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.GitBranch,{className:"h-3 w-3 text-emerald-400"}),(0,t.jsx)("span",{className:"font-mono text-xs text-foreground",children:N})]}),(0,t.jsx)(a.ChevronDown,{className:`h-3 w-3 text-muted-foreground transition-transform ${D?"rotate-180":""}`})]}),D&&(0,t.jsxs)("div",{className:"absolute left-0 right-0 top-full z-20 mt-1 rounded-lg border border-border bg-popover shadow-xl",children:[(0,t.jsx)("div",{className:"border-b border-border p-1.5",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.Search,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3 w-3 text-muted-foreground"}),(0,t.jsx)("input",{value:L,onChange:e=>R(e.target.value),placeholder:"Filter...",autoFocus:!0,className:"h-7 w-full rounded-md bg-muted/50 pl-7 pr-2 text-xs text-foreground placeholder-muted-foreground outline-none focus:ring-1 focus:ring-ring"})]})}),(0,t.jsx)("div",{className:"max-h-40 overflow-auto py-1",children:T.map(e=>(0,t.jsxs)("button",{onClick:()=>{w(e),E(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left transition-colors ${e===N?"bg-emerald-500/10 text-emerald-400":"text-secondary-foreground hover:bg-accent"}`,children:[(0,t.jsx)(s.GitBranch,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate font-mono text-xs",children:e}),e===N&&(0,t.jsx)(n.Check,{className:"h-3 w-3 ml-auto shrink-0"})]},e))})]})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs font-medium text-muted-foreground",children:v("git.branchDesc")}),(0,t.jsx)(u.Textarea,{value:k,onChange:e=>C(e.target.value),placeholder:v("git.branchDescPlaceholder"),rows:2,className:"mt-1.5 w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder-muted-foreground outline-none transition-colors focus:border-ring focus:ring-1 focus:ring-ring resize-none"})]})]}),(0,t.jsxs)(o.DialogFooter,{children:[(0,t.jsx)(c.Button,{variant:"outline",onClick:()=>m(!1),children:v("common.cancel")}),(0,t.jsxs)(c.Button,{onClick:P,disabled:!y.trim()||S,className:"bg-primary/10 text-primary ring-1 ring-primary/20 hover:bg-primary/15",children:[S?(0,t.jsx)(l.Loader2,{className:"h-3 w-3 animate-spin mr-1"}):null,v("common.create")]})]})]})})}])},871183,e=>{"use strict";let t=(0,e.i(863961).default)("arrow-up-from-line",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);e.s(["ArrowUpFromLine",0,t],871183)},657572,e=>{"use strict";async function t(e,r,s={}){let a=await fetch("/api/git",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:r,path:e,...s})});if(!a.ok)throw Error((await a.json()).error||`${r} failed`);return a.json()}e.s(["gitAction",0,t])},330111,e=>{"use strict";var t=e.i(807733);e.s(["AlertTriangle",()=>t.default])},442409,e=>{"use strict";let t=(0,e.i(863961).default)("git-compare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);e.s(["GitCompare",0,t],442409)},477795,486305,e=>{"use strict";var t=e.i(432377),r=e.i(85212),s=e.i(803041),a=e.i(458851),i=e.i(330111),n=e.i(442409),l=e.i(863961);let o=(0,l.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"}]]);var c=e.i(711296),d=e.i(726111),u=e.i(203529),x=e.i(718837),m=e.i(540032),h=e.i(625054);e.s(["TaskDiffView",0,function({files:e,totalAdded:l,totalRemoved:f,hasConflicts:g,conflictFiles:p,onCommit:b,hasUncommitted:v}){let{t:y}=(0,h.useI18n)(),[j,N]=(0,r.useState)(new Set),[w,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(""),[M,L]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3 flex-shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[(0,t.jsxs)("span",{className:"font-medium text-foreground",children:[e.length," files changed"]}),(0,t.jsxs)("span",{className:"text-green-400 font-mono text-xs",children:["+",l]}),(0,t.jsxs)("span",{className:"text-red-400 font-mono text-xs",children:["-",f]})]}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:v&&b&&(0,t.jsxs)(c.Button,{variant:"outline",onClick:()=>k(!0),className:"gap-2",children:[(0,t.jsx)(o,{className:"h-4 w-4"}),y("diff.commit")]})})]}),g&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border bg-amber-500/5 px-4 py-3 flex-shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-amber-400",children:[(0,t.jsx)(i.AlertTriangle,{className:"h-4 w-4 flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-sm font-medium",children:["Merge blocked: ",p.length," conflicting file",1!==p.length?"s":""]})]}),(0,t.jsx)("ul",{className:"ml-6 space-y-1",children:p.map(e=>(0,t.jsx)("li",{className:"text-xs font-mono text-amber-300/80",children:e},e))})]}),(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:0===e.length?(0,t.jsx)(d.EmptyState,{icon:n.GitCompare,title:y("diff.noChanges"),className:"h-full"}):(0,t.jsx)("div",{className:"divide-y divide-border",children:e.map(e=>{let r=j.has(e.filename);return(0,t.jsxs)("div",{children:[(0,t.jsxs)(c.Button,{variant:"ghost",type:"button",onClick:()=>{var t;return t=e.filename,void N(e=>{let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r})},className:"flex w-full items-center gap-2 px-4 py-2.5 text-left hover:bg-accent/50 transition-colors rounded-none h-auto",children:[r?(0,t.jsx)(a.ChevronDown,{className:"h-3.5 w-3.5 flex-shrink-0 text-muted-foreground"}):(0,t.jsx)(s.ChevronRight,{className:"h-3.5 w-3.5 flex-shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"flex-1 truncate text-sm font-mono text-foreground",children:e.filename}),e.isBinary?(0,t.jsx)(u.Badge,{variant:"secondary",className:"text-[10px] bg-muted text-muted-foreground border border-border",children:"Binary"}):(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"text-xs font-mono text-green-400",children:["+",e.added]}),(0,t.jsxs)("span",{className:"text-xs font-mono text-red-400",children:["-",e.removed]})]})]}),r&&e.patch&&(0,t.jsx)("div",{className:"border-t border-border bg-background",children:(0,t.jsx)("pre",{className:"overflow-x-auto p-0 text-xs font-mono leading-5",children:e.patch.split("\n").map((e,r)=>{let s=e.startsWith("+")&&!e.startsWith("+++")?"px-4 block bg-green-500/10 text-green-400":e.startsWith("-")&&!e.startsWith("---")?"px-4 block bg-red-500/10 text-red-400":e.startsWith("@@")?"px-4 block bg-blue-500/10 text-blue-300":"px-4 block text-muted-foreground";return(0,t.jsx)("span",{className:s,children:e||" "},r)})})})]},e.filename)})})}),(0,t.jsx)(x.Dialog,{open:w,onOpenChange:k,children:(0,t.jsxs)(x.DialogContent,{className:"max-w-md",children:[(0,t.jsx)(x.DialogHeader,{children:(0,t.jsx)(x.DialogTitle,{children:y("diff.commitChanges")})}),(0,t.jsx)("div",{className:"flex flex-col gap-3",children:(0,t.jsx)(m.Textarea,{value:C,onChange:e=>S(e.target.value),placeholder:y("diff.commitMessagePlaceholder"),rows:5,className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder-muted-foreground outline-none resize-y min-h-[80px]"})}),(0,t.jsxs)(x.DialogFooter,{children:[(0,t.jsx)(c.Button,{variant:"ghost",onClick:()=>k(!1),children:y("common.cancel")}),(0,t.jsx)(c.Button,{onClick:async()=>{if(C.trim()&&b){L(!0);try{await b(C.trim()),S(""),k(!1)}finally{L(!1)}}},disabled:!C.trim()||M,children:M?"...":y("diff.commit")})]})]})})]})}],477795);var f=e.i(309542);let g=(0,l.default)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);var p=e.i(946960);e.s(["TaskMergeConfirmDialog",0,function({open:e,onOpenChange:s,taskId:a,taskTitle:i,baseBranch:n,fileCount:l,commitCount:o,commitLog:d=[],onMergeComplete:u}){let m=(0,f.useRouter)(),[h,b]=(0,r.useState)(!1),[v,y]=(0,r.useState)(null),j=async()=>{b(!0),y(null);try{let e=await fetch(`/api/tasks/${a}/merge`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});if(e.ok){s(!1),u(),m.refresh();return}let t=await e.json().catch(()=>({error:"Merge failed"}));409===e.status?y(`Merge conflicts detected: ${Array.isArray(t.conflictFiles)?t.conflictFiles.join(", "):"unknown files"}`):y(t.error??"Merge failed")}catch{y("Network error — merge failed")}finally{b(!1)}};return(0,t.jsx)(x.Dialog,{open:e,onOpenChange:s,children:(0,t.jsxs)(x.DialogContent,{showCloseButton:!0,className:"sm:max-w-md",children:[(0,t.jsx)(x.DialogHeader,{children:(0,t.jsxs)(x.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(g,{className:"h-4 w-4 text-emerald-400"}),"Confirm Merge"]})}),(0,t.jsxs)("div",{className:"space-y-3 py-2",children:[(0,t.jsxs)("div",{className:"rounded-lg border border-border bg-muted/30 p-3 space-y-2.5",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:"Target branch"}),(0,t.jsx)("code",{className:"text-xs font-mono bg-muted px-2 py-0.5 rounded text-foreground",children:n})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:"Changed files"}),(0,t.jsx)("span",{className:"text-xs font-medium text-foreground",children:l})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:"Commits"}),(0,t.jsx)("span",{className:"text-xs font-medium text-foreground",children:o})]})]}),d.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground mb-1 block",children:"Commits"}),(0,t.jsx)("div",{className:"rounded-md border border-border bg-muted/30 p-2 space-y-1 max-h-32 overflow-y-auto",children:d.map((e,r)=>(0,t.jsx)("div",{className:"text-xs font-mono text-foreground/80",children:e},r))})]}),v&&(0,t.jsx)("div",{className:"rounded-lg border border-red-500/20 bg-red-500/10 px-3 py-2",children:(0,t.jsx)("p",{className:"text-xs text-red-400",children:v})})]}),(0,t.jsxs)(x.DialogFooter,{children:[(0,t.jsx)(c.Button,{variant:"outline",onClick:()=>s(!1),disabled:h,children:"Cancel"}),(0,t.jsx)(c.Button,{onClick:j,disabled:h,className:"gap-2",children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Loader2,{className:"h-4 w-4 animate-spin"}),"Merging..."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{className:"h-4 w-4"}),"Confirm Merge"]})})]})]})})}],486305)},124993,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("403af063e2dc8ef292c7d4742fc95a74a8066a7540",t.callServer,void 0,t.findSourceMapURL,"getTaskExecutions");e.s(["getTaskExecutions",0,r])},782988,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("406378b9a6edd3895485b7719c17ade259a85ed858",t.callServer,void 0,t.findSourceMapURL,"continueLatestPtyExecution");e.s(["continueLatestPtyExecution",0,r])},307081,686693,648834,425059,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("60f806cf24847a062289b6b7b3be473dc393683eab",t.callServer,void 0,t.findSourceMapURL,"updateTaskStatus");e.s(["updateTaskStatus",0,r],307081);let s=(0,t.createServerReference)("40d1b0a6f9d0b9fe3ef53ab8dccb59ce3880e400f4",t.callServer,void 0,t.findSourceMapURL,"checkWorktreeClean");e.s(["checkWorktreeClean",0,s],686693);let a=(0,t.createServerReference)("6027bff7a3efa53d1bde748d880572ab57ae3a1968",t.callServer,void 0,t.findSourceMapURL,"commitWorktreeChanges");e.s(["commitWorktreeChanges",0,a],648834);let i=(0,e.i(863961).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,i],425059)},612758,e=>{"use strict";var t=e.i(432377),r=e.i(85212),s=e.i(458851),a=e.i(986044),i=e.i(750986),n=e.i(1156),l=e.i(946960),o=e.i(425059),c=e.i(616199),d=e.i(351101),u=e.i(287277);let x=(0,e.i(863961).default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);var m=e.i(711296),h=e.i(726111),f=e.i(625054);function g({status:e}){switch(e){case"COMPLETED":return(0,t.jsx)(i.CheckCircle2,{className:"h-4 w-4 text-emerald-400"});case"FAILED":return(0,t.jsx)(n.XCircle,{className:"h-4 w-4 text-red-400"});case"RUNNING":return(0,t.jsx)(l.Loader2,{className:"h-4 w-4 text-blue-400 animate-spin"});default:return(0,t.jsx)(o.Clock,{className:"h-4 w-4 text-neutral-500"})}}e.s(["ExecutionTimeline",0,function({executions:e,onResume:i,onContinueLatest:n}){let{t:l,locale:o}=(0,f.useI18n)(),[p,b]=(0,r.useState)(null),[v,y]=(0,r.useState)(null);return 0===e.length?(0,t.jsx)(h.EmptyState,{icon:x,title:l("execution.noHistory")}):(0,t.jsxs)("div",{className:"space-y-2 p-3",children:[(0,t.jsx)("p",{className:"px-1 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:l("execution.history")}),e.map(r=>{let x=function(e){if(!e)return null;try{return JSON.parse(e)}catch{return null}}(r.gitStats??null),h=function(e,t){if(!e||!t)return"";let r=new Date(t).getTime()-new Date(e).getTime();if(r<0)return"";let s=Math.floor(r/1e3);if(s<60)return`${s}s`;let a=Math.floor(s/60);if(a<60)return`${a}m ${s%60}s`;let i=Math.floor(a/60);return`${i}h ${a%60}m`}(r.startedAt??null,r.endedAt??null),f=p===r.id;return(0,t.jsxs)("div",{className:"rounded-lg border border-border bg-background/50 overflow-hidden",children:[(0,t.jsxs)("div",{className:"p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,t.jsx)(g,{status:r.status}),(0,t.jsx)("span",{className:`font-medium ${function(e){switch(e){case"COMPLETED":return"text-emerald-400";case"FAILED":return"text-red-400";case"RUNNING":return"text-blue-400";default:return"text-neutral-400"}}(r.status)}`,children:function(e,t){switch(e){case"COMPLETED":return t("execution.success");case"FAILED":return t("execution.failed");case"RUNNING":return t("execution.running");default:return e}}(r.status,l)}),(0,t.jsx)("span",{className:"text-muted-foreground",children:function(e,t="zh"){if(!e)return"";let r=new Date(e),s=Math.floor((new Date().getTime()-r.getTime())/864e5),a="zh"===t?"zh-CN":"en-US",i=r.toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit"});return 0===s?i:1===s?"zh"===t?`昨天 ${i}`:`Yesterday ${i}`:s<7?"zh"===t?`${s}天前 ${i}`:`${s}d ago ${i}`:r.toLocaleDateString(a,{month:"2-digit",day:"2-digit"})+" "+i}(r.startedAt??null,o)}),h&&(0,t.jsxs)("span",{className:"text-muted-foreground/60",children:["(",h,")"]})]}),(0,t.jsx)("p",{className:"mt-1.5 text-sm text-foreground/80 line-clamp-2",children:r.summary||l("execution.noSummary")}),x&&(x.commits||x.filesChanged)&&(0,t.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 text-[11px] text-muted-foreground font-mono",children:[x.commits?(0,t.jsxs)("span",{children:[x.commits," ",l("execution.commits")]}):null,x.filesChanged?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{children:[x.filesChanged," ",l("execution.files")]})]}):null,x.insertions||x.deletions?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"·"}),x.insertions?(0,t.jsxs)("span",{className:"text-emerald-500",children:["+",x.insertions]}):null,x.deletions?(0,t.jsxs)("span",{className:"text-red-400",children:["-",x.deletions]}):null]}):null]}),r.insightNote&&(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsxs)("button",{onClick:()=>y(v===r.id?null:r.id),className:"flex items-center gap-1.5 text-xs text-primary/90 hover:text-primary transition-colors",children:[(0,t.jsx)(u.Lightbulb,{className:"h-3.5 w-3.5"}),(0,t.jsxs)("span",{className:"font-medium",children:[l("execution.insight"),":"]}),(0,t.jsx)("span",{className:"text-foreground/70 truncate max-w-[200px]",children:r.insightNote.title}),v===r.id?(0,t.jsx)(a.ChevronUp,{className:"h-3 w-3"}):(0,t.jsx)(s.ChevronDown,{className:"h-3 w-3"})]}),v===r.id&&(0,t.jsx)("div",{className:"mt-2 rounded-md bg-primary/[0.06] border border-primary/10 p-3 text-xs text-foreground/80 whitespace-pre-wrap",children:r.insightNote.content})]}),(0,t.jsxs)("div",{className:"mt-2.5 flex items-center gap-2",children:[r.sessionId&&i?(0,t.jsxs)(m.Button,{size:"sm",onClick:()=>i(r.sessionId),className:"bg-primary/10 text-primary ring-1 ring-primary/20 hover:bg-primary/15",children:[(0,t.jsx)(c.PlayCircle,{className:"h-3.5 w-3.5"}),l("execution.resume")]}):!r.sessionId&&"FAILED"===r.status&&r.id===e[0]?.id&&n?(0,t.jsxs)(m.Button,{size:"sm",onClick:n,className:"bg-blue-500/15 text-blue-300 ring-1 ring-blue-500/20 hover:bg-blue-500/25",children:[(0,t.jsx)(d.RotateCcw,{className:"h-3.5 w-3.5"}),l("execution.tryRecover")]}):null,(0,t.jsxs)(m.Button,{variant:"ghost",size:"sm",onClick:()=>b(f?null:r.id),className:"bg-muted text-muted-foreground",children:[f?(0,t.jsx)(a.ChevronUp,{className:"h-3.5 w-3.5"}):(0,t.jsx)(s.ChevronDown,{className:"h-3.5 w-3.5"}),f?l("execution.collapse"):l("execution.details")]})]})]}),f&&(0,t.jsxs)("div",{className:"border-t border-border px-3 pb-3 space-y-3",children:[r.gitLog&&(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground mb-1.5",children:l("execution.gitLog")}),(0,t.jsx)("pre",{className:"rounded-md bg-muted/50 p-2.5 text-xs font-mono text-foreground/70 overflow-x-auto whitespace-pre-wrap",children:r.gitLog.split("\n").slice(0,3).join("\n")})]}),r.terminalLog&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground mb-1.5",children:l("execution.terminalOutput")}),(0,t.jsx)("pre",{className:"rounded-md bg-[#0f1419] p-2.5 text-xs font-mono text-neutral-300 overflow-x-auto max-h-48 overflow-y-auto whitespace-pre-wrap",children:r.terminalLog})]}),"FAILED"===r.status&&null!=r.exitCode&&(0,t.jsxs)("p",{className:"text-xs text-red-400/70",children:["Exit code: ",r.exitCode]})]})]},r.id)})]})}],612758)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9961,e=>{"use strict";e.s([],671048),e.i(671048),e.i(312345),e.i(894012),e.i(929970),e.i(283639),e.i(126259),e.i(150891),e.i(775202),e.i(3416),e.i(248686);var i=e.i(543485);let r=(0,i.createServerReference)("60abd2562f6034ca75eac589ec6ee2d5fb516fc483",i.callServer,void 0,i.findSourceMapURL,"revealInFinder");e.s(["revealInFinder",0,r],9961)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,593835,e=>{"use strict";var t=e.i(432377),r=e.i(631325),a=e.i(309542),s=e.i(265826),l=e.i(555159),n=e.i(478430),i=e.i(565037),o=e.i(625054);let c=[{key:"notes",icon:l.FileText},{key:"assets",icon:n.FolderOpen},{key:"archive",icon:i.Archive}];e.s(["SubPageNav",0,function({workspaceId:e}){let{t:l}=(0,o.useI18n)(),n=(0,a.usePathname)(),i=c.find(e=>n.includes(`/${e.key}`))?.key;return(0,t.jsxs)("div",{className:"header-sm flex items-center gap-1 px-4 py-2",children:[(0,t.jsxs)(r.default,{href:`/workspaces/${e}`,className:"mr-2 flex items-center gap-1.5 rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,t.jsx)(s.ArrowLeft,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:l("archive.backToBoard")})]}),(0,t.jsx)("span",{className:"mr-2 h-4 w-px bg-border"}),c.map(a=>{let s=a.icon,n=i===a.key;return(0,t.jsxs)(r.default,{href:`/workspaces/${e}/${a.key}`,className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${n?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:l(`sidebar.${a.key}`)})]},a.key)})]})}])},265826,e=>{"use strict";let t=(0,e.i(863961).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],265826)},726111,e=>{"use strict";var t=e.i(432377),r=e.i(937756);e.s(["EmptyState",0,function({icon:e,title:a,description:s,action:l,className:n}){return(0,t.jsxs)("div",{className:(0,r.cn)("flex h-48 flex-col items-center justify-center gap-2 text-center",n),children:[e&&(0,t.jsx)(e,{className:"h-10 w-10 text-muted-foreground/40"}),(0,t.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:a}),s&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground/60",children:s}),l&&(0,t.jsx)("div",{className:"mt-2",children:l})]})}])},787207,e=>{"use strict";e.s(["BOARD_COLUMNS",0,[{id:"TODO",label:"To Do",color:"bg-slate-400"},{id:"IN_PROGRESS",label:"In Progress",color:"bg-amber-400"},{id:"IN_REVIEW",label:"In Review",color:"bg-sky-400"},{id:"DONE",label:"Done",color:"bg-emerald-400"},{id:"CANCELLED",label:"Cancelled",color:"bg-rose-400"}],"NOTE_CATEGORIES_PRESET",0,["账号","环境","需求","备忘"],"PRIORITY_CONFIG",0,{LOW:{label:"低",color:"bg-slate-500/20 text-slate-300 border border-slate-500/30"},MEDIUM:{label:"中",color:"bg-amber-500/20 text-amber-300 border border-amber-500/30"},HIGH:{label:"高",color:"bg-orange-500/20 text-orange-300 border border-orange-500/30"},CRITICAL:{label:"紧急",color:"bg-rose-500/20 text-rose-300 border border-rose-500/30"}},"TOWER_LABEL_NAME",0,"Tower"])},44014,137880,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("400e938456c47686ce717ca0a62ad37319595e54dd",t.callServer,void 0,t.findSourceMapURL,"createNote");e.s(["createNote",0,r],44014);let a=(0,t.createServerReference)("40361899a89a3dfa8991fb99c3b8dc7da2c2d40552",t.callServer,void 0,t.findSourceMapURL,"deleteNote");e.s(["deleteNote",0,a],137880)},950354,e=>{"use strict";var t=e.i(432377),r=e.i(85212),a=e.i(780156),s=e.i(946960),l=e.i(593835),n=e.i(625054),i=e.i(787207),o=e.i(44014),c=e.i(543485);let d=(0,c.createServerReference)("603a1a1afb6e45500a4e665b2891f66944cb288463",c.callServer,void 0,c.findSourceMapURL,"updateNote");var x=e.i(137880);let m=(0,c.createServerReference)("6099c1903b86a9bb5000816213dd29020311e6a7a3",c.callServer,void 0,c.findSourceMapURL,"getProjectNotes");var u=e.i(937756);function p({active:e,onSelect:r}){let{t:a}=(0,n.useI18n)();return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)("button",{onClick:()=>r("all"),className:(0,u.cn)("rounded-lg px-3 py-1 text-xs font-medium transition-colors","all"===e?"bg-primary/15 text-primary ring-1 ring-primary/20":"text-muted-foreground hover:bg-accent"),children:a("notes.allCategories")}),i.NOTE_CATEGORIES_PRESET.map(a=>(0,t.jsx)("button",{onClick:()=>r(a),className:(0,u.cn)("rounded-lg px-3 py-1 text-xs font-medium transition-colors",e===a?"bg-primary/15 text-primary ring-1 ring-primary/20":"text-muted-foreground hover:bg-accent"),children:a},a))]})}var h=e.i(711296),g=e.i(610874),f=e.i(555159),j=e.i(726111),b=e.i(923344),v=e.i(909260),N=e.i(788475),y=e.i(67006);function S({note:e,onEdit:r,onDelete:a}){let{t:s}=(0,n.useI18n)(),l=e.content.slice(0,300);return(0,t.jsxs)("div",{className:"group relative rounded-lg border border-border bg-card p-4 transition-colors hover:border-border/80 hover:bg-accent/20",children:[(0,t.jsxs)("div",{className:"absolute right-3 top-3 flex items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm",onClick:()=>r(e),className:"text-muted-foreground","aria-label":s("notes.edit"),children:(0,t.jsx)(b.Pencil,{className:"h-3.5 w-3.5"})}),(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm",onClick:()=>a(e.id),className:"text-muted-foreground hover:text-rose-400","aria-label":s("notes.delete"),children:(0,t.jsx)(v.Trash2,{className:"h-3.5 w-3.5"})})]}),(0,t.jsx)("div",{className:"mb-2 pr-16",children:(0,t.jsx)("h3",{className:"truncate text-sm font-semibold text-foreground",children:e.title})}),(0,t.jsx)("span",{className:"mb-3 inline-block rounded-full bg-muted px-2 py-0.5 text-[10px] font-medium text-muted-foreground",children:e.category}),(0,t.jsx)("div",{className:"prose prose-sm dark:prose-invert max-h-24 overflow-hidden text-muted-foreground",children:(0,t.jsx)(N.default,{remarkPlugins:[y.default],children:l})})]})}function w({notes:e,onEdit:r,onDelete:a}){let{t:s}=(0,n.useI18n)();return 0===e.length?(0,t.jsx)(j.EmptyState,{icon:f.FileText,title:s("notes.empty"),description:s("notes.emptyHint")}):(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:e.map(e=>(0,t.jsx)(S,{note:e,onEdit:r,onDelete:a},e.id))})}var E=e.i(540032);function C({value:e,onChange:r}){return(0,t.jsxs)("div",{className:"relative grid grid-cols-2 gap-4 flex-1 min-h-64",children:[(0,t.jsx)(E.Textarea,{value:e,onChange:e=>r(e.target.value),className:"absolute inset-0 w-1/2 pr-2 resize-none font-mono text-sm border rounded-md p-3 bg-background text-foreground border-border focus:outline-none focus:ring-1 focus:ring-ring",placeholder:"Write Markdown here..."}),(0,t.jsx)("div",{className:"absolute inset-0 left-1/2 pl-2",children:(0,t.jsx)("div",{className:"h-full overflow-y-auto border rounded-md p-3 border-border prose prose-sm dark:prose-invert max-w-none",children:(0,t.jsx)(N.default,{remarkPlugins:[y.default],children:e})})})]})}e.s(["NotesPageClient",0,function({allWorkspaces:e,initialWorkspaceId:c,initialProjectId:u,initialNotes:f}){let j,b,{t:v}=(0,n.useI18n)(),[N,y]=(0,r.useTransition)(),[S,E]=(0,r.useState)(c),[T,k]=(0,r.useState)(u),[I,R]=(0,r.useState)(f),[O,P]=(0,r.useState)("all"),[A,_]=(0,r.useState)(null),[L,$]=(0,r.useState)(!1),[D,B]=(0,r.useState)(""),[M,G]=(0,r.useState)(""),[U,z]=(0,r.useState)(i.NOTE_CATEGORIES_PRESET[3]),[V,H]=(0,r.useState)(c),[F,W]=(0,r.useState)(u),K=e.find(e=>e.id===S),Y=K?.projects??[],q=e.find(e=>e.id===V),J=q?.projects??[],Q=(0,r.useCallback)(e=>{e?y(async()=>{R(await m(e))}):R([])},[y]),X=async()=>{F&&D.trim()&&(await (0,o.createNote)({title:D.trim(),content:M,category:U,projectId:F}),$(!1),F===T&&Q(T))},Z=async()=>{A&&D.trim()&&(await d(A.id,{title:D.trim(),content:M,category:U}),_(null),Q(T))},ee=async e=>{let t=I.find(t=>t.id===e);!t||confirm(v("notes.deleteConfirm",{title:t.title}))&&(await (0,x.deleteNote)(e),Q(T))},et="all"===O?I.map(e=>({...e,updatedAt:new Date(e.updatedAt)})):I.filter(e=>e.category===O).map(e=>({...e,updatedAt:new Date(e.updatedAt)})),er=L||null!==A;return(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,t.jsx)(l.SubPageNav,{workspaceId:S}),(0,t.jsxs)("div",{className:"header-sm flex items-center gap-3 px-6 py-2",children:[(0,t.jsxs)(g.Select,{value:S,onValueChange:t=>t&&(t=>{if(t===S)return;E(t);let r=e.find(e=>e.id===t),a=r?.projects[0]??null;k(a?.id??null),P("all"),Q(a?.id??null)})(t),children:[(0,t.jsx)(g.SelectTrigger,{className:"h-8 w-auto min-w-[120px]",children:(0,t.jsx)("span",{className:"truncate",children:e.find(e=>e.id===S)?.name??S})}),(0,t.jsx)(g.SelectContent,{children:e.map(e=>(0,t.jsx)(g.SelectItem,{value:e.id,children:e.name},e.id))})]}),Y.length>0&&(0,t.jsxs)(g.Select,{value:T??"",onValueChange:e=>e&&void(e!==T&&(k(e),P("all"),Q(e))),children:[(0,t.jsx)(g.SelectTrigger,{className:"h-8 w-auto min-w-[140px]",children:(0,t.jsx)("span",{className:"truncate",children:(j=Y.find(e=>e.id===T))?j.alias?`${j.name} (${j.alias})`:j.name:""})}),(0,t.jsx)(g.SelectContent,{children:Y.map(e=>(0,t.jsxs)(g.SelectItem,{value:e.id,children:[e.name,e.alias?` (${e.alias})`:""]},e.id))})]}),!er&&(0,t.jsxs)(h.Button,{onClick:()=>{B(""),G(""),z(i.NOTE_CATEGORIES_PRESET[3]),H(S),W(T),_(null),$(!0)},className:"ml-auto bg-primary/10 text-primary ring-1 ring-primary/20 hover:bg-primary/15",children:[(0,t.jsx)(a.Plus,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:v("notes.newNote")})]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden px-6 py-4 flex flex-col",children:er?(0,t.jsxs)("div",{className:"flex flex-col gap-4 flex-1 min-h-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[!A&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:v("notes.workspace")}),(0,t.jsxs)(g.Select,{value:V,onValueChange:t=>t&&(t=>{if(t===V)return;H(t);let r=e.find(e=>e.id===t),a=r?.projects[0]??null;W(a?.id??null)})(t),children:[(0,t.jsx)(g.SelectTrigger,{className:"min-w-[140px] text-xs",children:(0,t.jsx)("span",{className:"truncate",children:e.find(e=>e.id===V)?.name??V})}),(0,t.jsx)(g.SelectContent,{children:e.map(e=>(0,t.jsx)(g.SelectItem,{value:e.id,children:e.name},e.id))})]})]}),!A&&J.length>0&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:v("notes.project")}),(0,t.jsxs)(g.Select,{value:F??"",onValueChange:e=>e&&W(e),children:[(0,t.jsx)(g.SelectTrigger,{className:"min-w-[160px] text-xs",children:(0,t.jsx)("span",{className:"truncate",children:(b=J.find(e=>e.id===F))?b.alias?`${b.name} (${b.alias})`:b.name:""})}),(0,t.jsx)(g.SelectContent,{children:J.map(e=>(0,t.jsxs)(g.SelectItem,{value:e.id,children:[e.name,e.alias?` (${e.alias})`:""]},e.id))})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:v("notes.categoryLabel")}),(0,t.jsxs)(g.Select,{value:U,onValueChange:e=>e&&z(e),children:[(0,t.jsx)(g.SelectTrigger,{className:"min-w-[120px] text-xs",children:(0,t.jsx)("span",{className:"truncate",children:U})}),(0,t.jsx)(g.SelectContent,{children:i.NOTE_CATEGORIES_PRESET.map(e=>(0,t.jsx)(g.SelectItem,{value:e,children:e},e))})]})]})]}),(0,t.jsx)("input",{type:"text",value:D,onChange:e=>B(e.target.value),placeholder:v("notes.titlePlaceholder"),className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),(0,t.jsx)(C,{value:M,onChange:G}),(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-end",children:[(0,t.jsx)(h.Button,{variant:"outline",onClick:()=>{$(!1),_(null)},children:v("notes.cancel")}),(0,t.jsx)(h.Button,{onClick:A?Z:X,disabled:!D.trim()||!A&&!F,className:"bg-primary/10 text-primary ring-1 ring-primary/20 hover:bg-primary/15",children:v("notes.save")})]})]}):(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(p,{active:O,onSelect:P}),(0,t.jsxs)("div",{className:`relative ${N?"opacity-40 pointer-events-none":""} transition-opacity`,children:[N&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,t.jsx)(s.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}),0===Y.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-16 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:v("notes.noProject")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground/60",children:v("notes.noProjectHint")})]}):(0,t.jsx)(w,{notes:et,onEdit:e=>{B(e.title),G(e.content),z(e.category),_(e),$(!1)},onDelete:ee})]})]})})]})}],950354)}]);