tower-studio 0.1.12 → 0.1.14
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/cache/.previewinfo +1 -1
- package/.next/cache/.rscinfo +1 -1
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/diagnostics/route-bundle-stats.json +37 -37
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/_not-found/page/server-reference-manifest.json +25 -25
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +13 -13
- package/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
- package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +8 -8
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +13 -13
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +13 -13
- package/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/server/app/index.segments/_index.segment.rsc +8 -8
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/missions/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/missions/page/server-reference-manifest.json +51 -51
- package/.next/server/app/missions/page.js.nft.json +1 -1
- package/.next/server/app/missions/page_client-reference-manifest.js +1 -1
- package/.next/server/app/onboarding/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/onboarding/page/server-reference-manifest.json +25 -25
- package/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/server/app/onboarding.html +1 -1
- package/.next/server/app/onboarding.rsc +15 -15
- package/.next/server/app/onboarding.segments/_full.segment.rsc +15 -15
- package/.next/server/app/onboarding.segments/_head.segment.rsc +4 -4
- package/.next/server/app/onboarding.segments/_index.segment.rsc +8 -8
- package/.next/server/app/onboarding.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/onboarding.segments/onboarding.segment.rsc +3 -3
- package/.next/server/app/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +25 -25
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/settings/page/server-reference-manifest.json +34 -34
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings.html +1 -1
- package/.next/server/app/settings.rsc +15 -15
- package/.next/server/app/settings.segments/_full.segment.rsc +15 -15
- package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings.segments/_index.segment.rsc +8 -8
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
- package/.next/server/app/workspaces/[workspaceId]/archive/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/archive/page/server-reference-manifest.json +75 -75
- package/.next/server/app/workspaces/[workspaceId]/archive/page.js.nft.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/archive/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspaces/[workspaceId]/assets/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/assets/page/server-reference-manifest.json +66 -66
- package/.next/server/app/workspaces/[workspaceId]/assets/page.js.nft.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/assets/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspaces/[workspaceId]/notes/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/notes/page/server-reference-manifest.json +55 -55
- package/.next/server/app/workspaces/[workspaceId]/notes/page.js.nft.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/notes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspaces/[workspaceId]/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/page/server-reference-manifest.json +53 -53
- package/.next/server/app/workspaces/[workspaceId]/page.js.nft.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/server-reference-manifest.json +25 -25
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js.nft.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/server-reference-manifest.json +54 -54
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js.nft.json +1 -1
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/workspaces/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/workspaces/page/server-reference-manifest.json +41 -41
- package/.next/server/app/workspaces/page.js.nft.json +1 -1
- package/.next/server/app/workspaces/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/0uz~_next_dist_esm_build_templates_app-route_05yec2y.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0~33o~m._.js +2 -2
- package/.next/server/chunks/project_f_tower_0n1s3ym._.js +1 -1
- package/.next/server/chunks/project_f_tower_src_11e.cv5._.js +1 -1
- package/.next/server/chunks/ssr/04uy_src_app_workspaces_[workspaceId]_tasks_[taskId]_task-page-client_tsx_01.s1p0._.js +1 -1
- package/.next/server/chunks/ssr/0y0r_f_tower_src_app_workspaces_[workspaceId]_assets_assets-page-client_tsx_0n4g3bn._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0.4j53v._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06qzctf._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__09bcer6._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ffdrwp._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0fwuc5u._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0p~~40h._.js → [root-of-the-server]__0gpx.d~._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0i4rk9v._.js +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0nmyvwk._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0w7gbe7._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__11j4k9o._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__13cjs8r._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__13eo85g._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_0.txwd8._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_01tnhbx._.js +3 -0
- package/.next/server/chunks/ssr/{project_f_tower_0.k8r5w._.js → project_f_tower_0760i8j._.js} +2 -2
- package/.next/server/chunks/ssr/{project_f_tower_0t0smg9._.js → project_f_tower_08mqp19._.js} +2 -2
- package/.next/server/chunks/ssr/{project_f_tower_0c6n7oo._.js → project_f_tower_0ddfsyt._.js} +2 -2
- package/.next/server/chunks/ssr/project_f_tower_0f0-wva._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_0hgtev9._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_0ivvjwd._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_0jy~1uf._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_0l6ssf8._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_0o5.y1e._.js +1 -1
- package/.next/server/chunks/ssr/{project_f_tower_0ron~f-._.js → project_f_tower_0pf464l._.js} +2 -2
- package/.next/server/chunks/ssr/{project_f_tower_0ifpw8k._.js → project_f_tower_0sy7ynr._.js} +2 -2
- package/.next/server/chunks/ssr/project_f_tower_0ym-aea._.js +1 -1
- package/.next/server/chunks/ssr/{project_f_tower_src_0_g15e8._.js → project_f_tower_src_0bqbs-1._.js} +2 -2
- package/.next/server/chunks/ssr/project_f_tower_src_actions_agent-actions_ts_0.s4~m-._.js +2 -2
- package/.next/server/chunks/ssr/project_f_tower_src_actions_file-actions_ts_02i742t._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_src_app_missions_missions-client_tsx_0ums4qx._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_src_app_onboarding_page_tsx_0_9_yoq._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_src_app_settings_page_tsx_0oo06~d._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_src_app_workspaces_[workspaceId]_board-page-client_tsx_0jmj1xz._.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +217 -217
- package/.next/static/chunks/{0im8~yii0.2mn.js → 08gl4lr7zkm6b.js} +1 -1
- package/.next/static/chunks/0brwcgj_cjdcc.js +1 -0
- package/.next/static/chunks/{0vs5vey5ni44t.js → 0q40u78uovc7y.js} +1 -1
- package/.next/static/chunks/{00atyrg-7i0hj.js → 0qnvx~5op5b9e.js} +1 -1
- package/.next/static/chunks/{0-plp~pgpcel9.js → 0w90t_ngr5_pj.js} +1 -1
- package/.next/static/chunks/{0d.3wv6u.2g~6.js → 0x-v4tzitjxub.js} +1 -1
- package/.next/static/chunks/{01mymnegugktp.js → 0z-6e_hc3z22b.js} +1 -1
- package/.next/static/chunks/{0c49o.5w_cw8_.js → 0z2rpkmoqlr-v.js} +1 -1
- package/.next/static/chunks/11gkyogd_hqv~.js +1 -0
- package/.next/static/chunks/{09hs9w6-77im2.js → 11y3rfp3d4n.0.js} +1 -1
- package/.next/static/chunks/12.91avyb6b7-.js +1 -0
- package/.next/static/chunks/12btaaeo1ik-t.js +1 -0
- package/.next/static/chunks/{0qp~1_kfjklfg.js → 14zxctn8~z26r.js} +1 -1
- package/.next/static/chunks/{09p7-kr_vidww.js → 1660q32oalq26.js} +2 -2
- package/.next/static/chunks/{0.do_z22ngnjd.js → 17ckwfwqtxcv7.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/bin/tower.mjs +38 -1
- package/package.json +1 -1
- package/scripts/init-db.ts +17 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__08meal1._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0la.lch._.js +0 -3
- package/.next/server/chunks/ssr/project_f_tower_0dfyjgz._.js +0 -3
- package/.next/static/chunks/09hxu-k8oyivu.js +0 -1
- package/.next/static/chunks/0kbuf91gryyo2.js +0 -1
- package/.next/static/chunks/0p~3m91-t6p91.js +0 -1
- package/.next/static/chunks/15zclhqyib88_.js +0 -1
- /package/.next/static/{jMxcHfsOSldWKgvAjGnAv → VzTy7iJ2D58ZvnVnTJZJi}/_buildManifest.js +0 -0
- /package/.next/static/{jMxcHfsOSldWKgvAjGnAv → VzTy7iJ2D58ZvnVnTJZJi}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{jMxcHfsOSldWKgvAjGnAv → VzTy7iJ2D58ZvnVnTJZJi}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
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),s=e.i(309542),a=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,s.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)(a.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(s=>{let a=s.icon,n=i===s.key;return(0,t.jsxs)(r.default,{href:`/workspaces/${e}/${s.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)(a,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:l(`sidebar.${s.key}`)})]},s.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:s,description:a,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:s}),a&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground/60",children:a}),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"])},724380,747532,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("40940832d36497429d52382d540b1bf916483d4ff0",t.callServer,void 0,t.findSourceMapURL,"createNote");e.s(["createNote",0,r],724380);let s=(0,t.createServerReference)("401c6f7273a2bd99db85bd7b590adde9bc449d70ea",t.callServer,void 0,t.findSourceMapURL,"deleteNote");e.s(["deleteNote",0,s],747532)},950354,e=>{"use strict";var t=e.i(432377),r=e.i(85212),s=e.i(780156),a=e.i(946960),l=e.i(593835),n=e.i(625054),i=e.i(787207),o=e.i(724380),c=e.i(543485);let d=(0,c.createServerReference)("60fd07387627fb28024e08245f24cc8cd18347f5cb",c.callServer,void 0,c.findSourceMapURL,"updateNote");var x=e.i(747532);let m=(0,c.createServerReference)("606a92319e6dd1574993c46e3d1c683e6e8b915cb7",c.callServer,void 0,c.findSourceMapURL,"getProjectNotes");var u=e.i(937756);function p({active:e,onSelect:r}){let{t:s}=(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:s("notes.allCategories")}),i.NOTE_CATEGORIES_PRESET.map(s=>(0,t.jsx)("button",{onClick:()=>r(s),className:(0,u.cn)("rounded-lg px-3 py-1 text-xs font-medium transition-colors",e===s?"bg-primary/15 text-primary ring-1 ring-primary/20":"text-muted-foreground hover:bg-accent"),children:s},s))]})}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:s}){let{t:a}=(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":a("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:()=>s(e.id),className:"text-muted-foreground hover:text-rose-400","aria-label":a("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:s}){let{t:a}=(0,n.useI18n)();return 0===e.length?(0,t.jsx)(j.EmptyState,{icon:f.FileText,title:a("notes.empty"),description:a("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:s},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),s=r?.projects[0]??null;k(s?.id??null),P("all"),Q(s?.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)(s.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),s=r?.projects[0]??null;W(s?.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)(a.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)}]);
|
|
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),s=e.i(309542),a=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,s.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)(a.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(s=>{let a=s.icon,n=i===s.key;return(0,t.jsxs)(r.default,{href:`/workspaces/${e}/${s.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)(a,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:l(`sidebar.${s.key}`)})]},s.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:s,description:a,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:s}),a&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground/60",children:a}),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"])},637839,762207,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("40a14fb50f8e1521e2460862f41a35342ff9f82562",t.callServer,void 0,t.findSourceMapURL,"createNote");e.s(["createNote",0,r],637839);let s=(0,t.createServerReference)("40d4eb941299e2ff03c49ba2109a99eed07b83e220",t.callServer,void 0,t.findSourceMapURL,"deleteNote");e.s(["deleteNote",0,s],762207)},950354,e=>{"use strict";var t=e.i(432377),r=e.i(85212),s=e.i(780156),a=e.i(946960),l=e.i(593835),n=e.i(625054),i=e.i(787207),o=e.i(637839),c=e.i(543485);let d=(0,c.createServerReference)("60106696cfb3a38c885d1a62d103a7245bcce74638",c.callServer,void 0,c.findSourceMapURL,"updateNote");var x=e.i(762207);let m=(0,c.createServerReference)("60e326d1cc2308c73efe4fd3d15b070580276d5805",c.callServer,void 0,c.findSourceMapURL,"getProjectNotes");var u=e.i(937756);function p({active:e,onSelect:r}){let{t:s}=(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:s("notes.allCategories")}),i.NOTE_CATEGORIES_PRESET.map(s=>(0,t.jsx)("button",{onClick:()=>r(s),className:(0,u.cn)("rounded-lg px-3 py-1 text-xs font-medium transition-colors",e===s?"bg-primary/15 text-primary ring-1 ring-primary/20":"text-muted-foreground hover:bg-accent"),children:s},s))]})}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:s}){let{t:a}=(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":a("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:()=>s(e.id),className:"text-muted-foreground hover:text-rose-400","aria-label":a("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:s}){let{t:a}=(0,n.useI18n)();return 0===e.length?(0,t.jsx)(j.EmptyState,{icon:f.FileText,title:a("notes.empty"),description:a("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:s},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),s=r?.projects[0]??null;k(s?.id??null),P("all"),Q(s?.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)(s.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),s=r?.projects[0]??null;W(s?.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)(a.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)}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":117,"timestamp":1579331675191,"id":4,"parentId":1,"tags":{},"startTime":1777361844452,"traceId":"cce8371654e64b41"},{"name":"load-custom-routes","duration":206,"timestamp":1579331675430,"id":5,"parentId":1,"tags":{},"startTime":1777361844453,"traceId":"cce8371654e64b41"},{"name":"create-dist-dir","duration":139,"timestamp":1579331675651,"id":6,"parentId":1,"tags":{},"startTime":1777361844453,"traceId":"cce8371654e64b41"},{"name":"clean","duration":131,"timestamp":1579331676460,"id":7,"parentId":1,"tags":{},"startTime":1777361844454,"traceId":"cce8371654e64b41"},{"name":"discover-routes","duration":12353,"timestamp":1579331682909,"id":8,"parentId":1,"tags":{},"startTime":1777361844460,"traceId":"cce8371654e64b41"},{"name":"create-root-mapping","duration":48,"timestamp":1579331695292,"id":9,"parentId":1,"tags":{},"startTime":1777361844472,"traceId":"cce8371654e64b41"},{"name":"generate-route-types","duration":35429,"timestamp":1579331696517,"id":10,"parentId":1,"tags":{},"startTime":1777361844474,"traceId":"cce8371654e64b41"},{"name":"public-dir-conflict-check","duration":39,"timestamp":1579331732053,"id":11,"parentId":1,"tags":{},"startTime":1777361844509,"traceId":"cce8371654e64b41"},{"name":"generate-routes-manifest","duration":1627,"timestamp":1579331732130,"id":12,"parentId":1,"tags":{},"startTime":1777361844509,"traceId":"cce8371654e64b41"},{"name":"run-turbopack","duration":5091398,"timestamp":1579331738168,"id":14,"parentId":1,"tags":{},"startTime":1777361844515,"traceId":"cce8371654e64b41"},{"name":"turbopack-build-events","duration":40,"timestamp":1579331892873,"id":15,"parentId":1,"tags":{},"startTime":1777361844670,"traceId":"cce8371654e64b41"},{"name":"run-typescript","duration":6494001,"timestamp":1579336883951,"id":16,"parentId":1,"tags":{},"startTime":1777361849661,"traceId":"cce8371654e64b41"},{"name":"generate-required-server-files","duration":1462,"timestamp":1579343380096,"id":18,"parentId":1,"tags":{},"startTime":1777361856157,"traceId":"cce8371654e64b41"},{"name":"check-static-error-page","duration":23697,"timestamp":1579343400509,"id":20,"parentId":19,"tags":{},"startTime":1777361856178,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":194436,"timestamp":1579343425570,"id":61,"parentId":22,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":213805,"timestamp":1579343406264,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1777361856183,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":230589,"timestamp":1579343425620,"id":63,"parentId":24,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":249472,"timestamp":1579343406768,"id":24,"parentId":19,"tags":{"page":"/api/browse-fs"},"startTime":1777361856184,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":234576,"timestamp":1579343425648,"id":64,"parentId":25,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":253423,"timestamp":1579343406837,"id":25,"parentId":19,"tags":{"page":"/api/files/assets/[projectId]/[filename]"},"startTime":1777361856184,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":244841,"timestamp":1579343425848,"id":68,"parentId":44,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":252193,"timestamp":1579343418524,"id":44,"parentId":19,"tags":{"page":"/apple-icon.png"},"startTime":1777361856196,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":252551,"timestamp":1579343425729,"id":65,"parentId":26,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":271430,"timestamp":1579343406877,"id":26,"parentId":19,"tags":{"page":"/api/git"},"startTime":1777361856184,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":263394,"timestamp":1579343425441,"id":60,"parentId":21,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":283393,"timestamp":1579343405470,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1777361856183,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":269666,"timestamp":1579343425932,"id":71,"parentId":47,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":272834,"timestamp":1579343422788,"id":47,"parentId":19,"tags":{"page":"/icon1.png"},"startTime":1777361856200,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":270422,"timestamp":1579343425927,"id":70,"parentId":46,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":276326,"timestamp":1579343420038,"id":46,"parentId":19,"tags":{"page":"/icon0.svg"},"startTime":1777361856197,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":269706,"timestamp":1579343429371,"id":73,"parentId":28,"tags":{},"startTime":1777361856207,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":289393,"timestamp":1579343409712,"id":28,"parentId":19,"tags":{"page":"/api/internal/assets/reveal"},"startTime":1777361856187,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":274626,"timestamp":1579343425910,"id":69,"parentId":45,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":280840,"timestamp":1579343419756,"id":45,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1777361856197,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":271423,"timestamp":1579343431450,"id":75,"parentId":32,"tags":{},"startTime":1777361856209,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":292669,"timestamp":1579343410298,"id":32,"parentId":19,"tags":{"page":"/api/internal/assistant/sessions"},"startTime":1777361856187,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":277763,"timestamp":1579343431913,"id":77,"parentId":34,"tags":{},"startTime":1777361856209,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":299280,"timestamp":1579343410419,"id":34,"parentId":19,"tags":{"page":"/api/internal/hooks/install"},"startTime":1777361856188,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":284572,"timestamp":1579343425806,"id":66,"parentId":42,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":292001,"timestamp":1579343418398,"id":42,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/diff"},"startTime":1777361856196,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":281838,"timestamp":1579343432106,"id":78,"parentId":33,"tags":{},"startTime":1777361856209,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":303606,"timestamp":1579343410362,"id":33,"parentId":19,"tags":{"page":"/api/internal/cache/[...segments]"},"startTime":1777361856188,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":281365,"timestamp":1579343435574,"id":79,"parentId":27,"tags":{},"startTime":1777361856213,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":310047,"timestamp":1579343406947,"id":27,"parentId":19,"tags":{"page":"/api/internal/assets/[projectId]/[filename]"},"startTime":1777361856184,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":293151,"timestamp":1579343425598,"id":62,"parentId":23,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":312124,"timestamp":1579343406676,"id":23,"parentId":19,"tags":{"page":"/api/adapters/test"},"startTime":1777361856184,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":282562,"timestamp":1579343436861,"id":81,"parentId":35,"tags":{},"startTime":1777361856214,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":308718,"timestamp":1579343410727,"id":35,"parentId":19,"tags":{"page":"/api/internal/hooks/session"},"startTime":1777361856188,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":284176,"timestamp":1579343438815,"id":83,"parentId":37,"tags":{},"startTime":1777361856216,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":306066,"timestamp":1579343416946,"id":37,"parentId":19,"tags":{"page":"/api/internal/hooks/upload"},"startTime":1777361856194,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":291462,"timestamp":1579343431612,"id":76,"parentId":31,"tags":{},"startTime":1777361856209,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":312841,"timestamp":1579343410239,"id":31,"parentId":19,"tags":{"page":"/api/internal/assistant"},"startTime":1777361856187,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":294290,"timestamp":1579343431291,"id":74,"parentId":29,"tags":{},"startTime":1777361856208,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":315684,"timestamp":1579343409922,"id":29,"parentId":19,"tags":{"page":"/api/internal/assistant/chat"},"startTime":1777361856187,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":286723,"timestamp":1579343438918,"id":84,"parentId":38,"tags":{},"startTime":1777361856216,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":308320,"timestamp":1579343417327,"id":38,"parentId":19,"tags":{"page":"/api/internal/notifications/pending"},"startTime":1777361856194,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":301420,"timestamp":1579343425934,"id":72,"parentId":48,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":303846,"timestamp":1579343423528,"id":48,"parentId":19,"tags":{"page":"/manifest.json"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":291978,"timestamp":1579343440142,"id":88,"parentId":50,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":308469,"timestamp":1579343423705,"id":50,"parentId":19,"tags":{"page":"/onboarding"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":309095,"timestamp":1579343425837,"id":67,"parentId":43,"tags":{},"startTime":1777361856203,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":316583,"timestamp":1579343418471,"id":43,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/merge"},"startTime":1777361856196,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":299991,"timestamp":1579343439320,"id":87,"parentId":41,"tags":{},"startTime":1777361856216,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":320988,"timestamp":1579343418352,"id":41,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/start"},"startTime":1777361856195,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":304497,"timestamp":1579343440147,"id":89,"parentId":51,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":320886,"timestamp":1579343423808,"id":51,"parentId":19,"tags":{"page":"/"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":306589,"timestamp":1579343439064,"id":85,"parentId":39,"tags":{},"startTime":1777361856216,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":327521,"timestamp":1579343418179,"id":39,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/buffer"},"startTime":1777361856195,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":310802,"timestamp":1579343439202,"id":86,"parentId":40,"tags":{},"startTime":1777361856216,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":331751,"timestamp":1579343418299,"id":40,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/input"},"startTime":1777361856195,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":313969,"timestamp":1579343437162,"id":82,"parentId":36,"tags":{},"startTime":1777361856214,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":335016,"timestamp":1579343416133,"id":36,"parentId":19,"tags":{"page":"/api/internal/hooks/stop"},"startTime":1777361856193,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":323866,"timestamp":1579343436104,"id":80,"parentId":30,"tags":{},"startTime":1777361856213,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":349868,"timestamp":1579343410156,"id":30,"parentId":19,"tags":{"page":"/api/internal/assistant/images"},"startTime":1777361856187,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":337031,"timestamp":1579343440149,"id":90,"parentId":52,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":353356,"timestamp":1579343423852,"id":52,"parentId":19,"tags":{"page":"/settings"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":346958,"timestamp":1579343440167,"id":97,"parentId":57,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":363113,"timestamp":1579343424041,"id":57,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/projects/[projectId]"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":357868,"timestamp":1579343440160,"id":95,"parentId":58,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":374064,"timestamp":1579343424106,"id":58,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/tasks/[taskId]"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":365611,"timestamp":1579343440151,"id":91,"parentId":53,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":381915,"timestamp":1579343423902,"id":53,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/archive"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":366524,"timestamp":1579343440156,"id":93,"parentId":55,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":382726,"timestamp":1579343423974,"id":55,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/notes"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":366570,"timestamp":1579343440170,"id":98,"parentId":59,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":382603,"timestamp":1579343424144,"id":59,"parentId":19,"tags":{"page":"/workspaces"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":367926,"timestamp":1579343440164,"id":96,"parentId":49,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":384531,"timestamp":1579343423580,"id":49,"parentId":19,"tags":{"page":"/missions"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":367990,"timestamp":1579343440153,"id":92,"parentId":54,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":384211,"timestamp":1579343423941,"id":54,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/assets"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"is-page-static","duration":368007,"timestamp":1579343440158,"id":94,"parentId":56,"tags":{},"startTime":1777361856217,"traceId":"cce8371654e64b41"},{"name":"check-page","duration":384165,"timestamp":1579343424005,"id":56,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]"},"startTime":1777361856201,"traceId":"cce8371654e64b41"},{"name":"static-check","duration":408356,"timestamp":1579343399830,"id":19,"parentId":1,"tags":{},"startTime":1777361856177,"traceId":"cce8371654e64b41"},{"name":"write-routes-manifest","duration":400,"timestamp":1579343809322,"id":100,"parentId":1,"tags":{},"startTime":1777361856586,"traceId":"cce8371654e64b41"},{"name":"load-dotenv","duration":17,"timestamp":1579343816717,"id":103,"parentId":102,"tags":{},"startTime":1777361856594,"traceId":"cce8371654e64b41"},{"name":"run-export-path-map","duration":254,"timestamp":1579343818376,"id":104,"parentId":102,"tags":{},"startTime":1777361856596,"traceId":"cce8371654e64b41"},{"name":"next-export","duration":259245,"timestamp":1579343816139,"id":102,"parentId":1,"tags":{},"startTime":1777361856593,"traceId":"cce8371654e64b41"},{"name":"move-exported-app-not-found-","duration":1035,"timestamp":1579344076558,"id":105,"parentId":101,"tags":{},"startTime":1777361856854,"traceId":"cce8371654e64b41"},{"name":"move-exported-app-global-error-","duration":277,"timestamp":1579344077645,"id":106,"parentId":101,"tags":{},"startTime":1777361856855,"traceId":"cce8371654e64b41"},{"name":"static-generation","duration":267109,"timestamp":1579343812088,"id":101,"parentId":1,"tags":{},"startTime":1777361856589,"traceId":"cce8371654e64b41"},{"name":"write-routes-manifest","duration":317,"timestamp":1579344079334,"id":107,"parentId":1,"tags":{},"startTime":1777361856856,"traceId":"cce8371654e64b41"}]
|
|
2
|
-
[{"name":"print-tree-view","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":156,"timestamp":1583483224849,"id":4,"parentId":1,"tags":{},"startTime":1777365995893,"traceId":"f3af4c560ad461fe"},{"name":"load-custom-routes","duration":226,"timestamp":1583483225144,"id":5,"parentId":1,"tags":{},"startTime":1777365995894,"traceId":"f3af4c560ad461fe"},{"name":"create-dist-dir","duration":159,"timestamp":1583483225385,"id":6,"parentId":1,"tags":{},"startTime":1777365995894,"traceId":"f3af4c560ad461fe"},{"name":"clean","duration":148,"timestamp":1583483226223,"id":7,"parentId":1,"tags":{},"startTime":1777365995895,"traceId":"f3af4c560ad461fe"},{"name":"discover-routes","duration":11705,"timestamp":1583483232790,"id":8,"parentId":1,"tags":{},"startTime":1777365995901,"traceId":"f3af4c560ad461fe"},{"name":"create-root-mapping","duration":62,"timestamp":1583483244526,"id":9,"parentId":1,"tags":{},"startTime":1777365995913,"traceId":"f3af4c560ad461fe"},{"name":"generate-route-types","duration":37431,"timestamp":1583483245789,"id":10,"parentId":1,"tags":{},"startTime":1777365995914,"traceId":"f3af4c560ad461fe"},{"name":"public-dir-conflict-check","duration":51,"timestamp":1583483283334,"id":11,"parentId":1,"tags":{},"startTime":1777365995952,"traceId":"f3af4c560ad461fe"},{"name":"generate-routes-manifest","duration":1696,"timestamp":1583483283429,"id":12,"parentId":1,"tags":{},"startTime":1777365995952,"traceId":"f3af4c560ad461fe"},{"name":"run-turbopack","duration":7059854,"timestamp":1583483287498,"id":14,"parentId":1,"tags":{},"startTime":1777365995956,"traceId":"f3af4c560ad461fe"},{"name":"turbopack-build-events","duration":44,"timestamp":1583483455691,"id":15,"parentId":1,"tags":{},"startTime":1777365996124,"traceId":"f3af4c560ad461fe"},{"name":"run-typescript","duration":6670083,"timestamp":1583490423321,"id":16,"parentId":1,"tags":{},"startTime":1777366003092,"traceId":"f3af4c560ad461fe"},{"name":"generate-required-server-files","duration":1546,"timestamp":1583497095625,"id":18,"parentId":1,"tags":{},"startTime":1777366009764,"traceId":"f3af4c560ad461fe"},{"name":"check-static-error-page","duration":23030,"timestamp":1583497108270,"id":20,"parentId":19,"tags":{},"startTime":1777366009777,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":211850,"timestamp":1583497133468,"id":61,"parentId":22,"tags":{},"startTime":1777366009802,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":233114,"timestamp":1583497112279,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1777366009781,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":261425,"timestamp":1583497133597,"id":63,"parentId":24,"tags":{},"startTime":1777366009802,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":282408,"timestamp":1583497112681,"id":24,"parentId":19,"tags":{"page":"/api/browse-fs"},"startTime":1777366009781,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":263673,"timestamp":1583497133663,"id":64,"parentId":25,"tags":{},"startTime":1777366009802,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":284631,"timestamp":1583497112736,"id":25,"parentId":19,"tags":{"page":"/api/files/assets/[projectId]/[filename]"},"startTime":1777366009781,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":267028,"timestamp":1583497134009,"id":65,"parentId":26,"tags":{},"startTime":1777366009802,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":288315,"timestamp":1583497112778,"id":26,"parentId":19,"tags":{"page":"/api/git"},"startTime":1777366009781,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":284794,"timestamp":1583497134292,"id":68,"parentId":44,"tags":{},"startTime":1777366009803,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":297451,"timestamp":1583497121661,"id":44,"parentId":19,"tags":{"page":"/apple-icon.png"},"startTime":1777366009790,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":289325,"timestamp":1583497134364,"id":69,"parentId":45,"tags":{},"startTime":1777366009803,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":300154,"timestamp":1583497123568,"id":45,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1777366009792,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":292165,"timestamp":1583497134389,"id":71,"parentId":47,"tags":{},"startTime":1777366009803,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":298509,"timestamp":1583497128094,"id":47,"parentId":19,"tags":{"page":"/icon1.png"},"startTime":1777366009796,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":296589,"timestamp":1583497135812,"id":73,"parentId":27,"tags":{},"startTime":1777366009804,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":319590,"timestamp":1583497112845,"id":27,"parentId":19,"tags":{"page":"/api/internal/assets/[projectId]/[filename]"},"startTime":1777366009781,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":299808,"timestamp":1583497133139,"id":60,"parentId":21,"tags":{},"startTime":1777366009801,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":321655,"timestamp":1583497111372,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1777366009780,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":299054,"timestamp":1583497134392,"id":72,"parentId":48,"tags":{},"startTime":1777366009803,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":304361,"timestamp":1583497129099,"id":48,"parentId":19,"tags":{"page":"/manifest.json"},"startTime":1777366009797,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":299287,"timestamp":1583497134383,"id":70,"parentId":46,"tags":{},"startTime":1777366009803,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":309562,"timestamp":1583497124134,"id":46,"parentId":19,"tags":{"page":"/icon0.svg"},"startTime":1777366009792,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":300257,"timestamp":1583497136083,"id":74,"parentId":28,"tags":{},"startTime":1777366009804,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":320377,"timestamp":1583497116017,"id":28,"parentId":19,"tags":{"page":"/api/internal/assets/reveal"},"startTime":1777366009784,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":301550,"timestamp":1583497137368,"id":78,"parentId":32,"tags":{},"startTime":1777366009806,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":319725,"timestamp":1583497119214,"id":32,"parentId":19,"tags":{"page":"/api/internal/assistant/sessions"},"startTime":1777366009788,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":304523,"timestamp":1583497137546,"id":79,"parentId":33,"tags":{},"startTime":1777366009806,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":322675,"timestamp":1583497119416,"id":33,"parentId":19,"tags":{"page":"/api/internal/cache/[...segments]"},"startTime":1777366009788,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":307233,"timestamp":1583497137673,"id":80,"parentId":34,"tags":{},"startTime":1777366009806,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":324979,"timestamp":1583497119944,"id":34,"parentId":19,"tags":{"page":"/api/internal/hooks/install"},"startTime":1777366009788,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":312063,"timestamp":1583497133537,"id":62,"parentId":23,"tags":{},"startTime":1777366009802,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":332995,"timestamp":1583497112617,"id":23,"parentId":19,"tags":{"page":"/api/adapters/test"},"startTime":1777366009781,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":316621,"timestamp":1583497134274,"id":67,"parentId":43,"tags":{},"startTime":1777366009803,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":329328,"timestamp":1583497121591,"id":43,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/merge"},"startTime":1777366009790,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":316778,"timestamp":1583497134190,"id":66,"parentId":42,"tags":{},"startTime":1777366009802,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":329457,"timestamp":1583497121516,"id":42,"parentId":19,"tags":{"page":"/api/tasks/[taskId]/diff"},"startTime":1777366009790,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":315635,"timestamp":1583497138121,"id":83,"parentId":38,"tags":{},"startTime":1777366009806,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":332519,"timestamp":1583497121255,"id":38,"parentId":19,"tags":{"page":"/api/internal/notifications/pending"},"startTime":1777366009790,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":315772,"timestamp":1583497138046,"id":82,"parentId":35,"tags":{},"startTime":1777366009806,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":332902,"timestamp":1583497120922,"id":35,"parentId":19,"tags":{"page":"/api/internal/hooks/session"},"startTime":1777366009789,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":319715,"timestamp":1583497137227,"id":77,"parentId":31,"tags":{},"startTime":1777366009806,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":338023,"timestamp":1583497118953,"id":31,"parentId":19,"tags":{"page":"/api/internal/assistant"},"startTime":1777366009787,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":321156,"timestamp":1583497138260,"id":84,"parentId":39,"tags":{},"startTime":1777366009807,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":338118,"timestamp":1583497121319,"id":39,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/buffer"},"startTime":1777366009790,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":322454,"timestamp":1583497138401,"id":85,"parentId":40,"tags":{},"startTime":1777366009807,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":339498,"timestamp":1583497121368,"id":40,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/input"},"startTime":1777366009790,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":324460,"timestamp":1583497138911,"id":87,"parentId":37,"tags":{},"startTime":1777366009807,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":342201,"timestamp":1583497121188,"id":37,"parentId":19,"tags":{"page":"/api/internal/hooks/upload"},"startTime":1777366009789,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":329620,"timestamp":1583497138523,"id":86,"parentId":41,"tags":{},"startTime":1777366009807,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":346708,"timestamp":1583497121474,"id":41,"parentId":19,"tags":{"page":"/api/internal/terminal/[taskId]/start"},"startTime":1777366009790,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":332793,"timestamp":1583497136723,"id":75,"parentId":29,"tags":{},"startTime":1777366009805,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":353316,"timestamp":1583497116217,"id":29,"parentId":19,"tags":{"page":"/api/internal/assistant/chat"},"startTime":1777366009785,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":340206,"timestamp":1583497136914,"id":76,"parentId":30,"tags":{},"startTime":1777366009805,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":359184,"timestamp":1583497118138,"id":30,"parentId":19,"tags":{"page":"/api/internal/assistant/images"},"startTime":1777366009786,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":348670,"timestamp":1583497142972,"id":89,"parentId":51,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":361582,"timestamp":1583497130108,"id":51,"parentId":19,"tags":{"page":"/"},"startTime":1777366009798,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":351295,"timestamp":1583497140691,"id":88,"parentId":50,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":362537,"timestamp":1583497129465,"id":50,"parentId":19,"tags":{"page":"/onboarding"},"startTime":1777366009798,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":356793,"timestamp":1583497137841,"id":81,"parentId":36,"tags":{},"startTime":1777366009806,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":373536,"timestamp":1583497121123,"id":36,"parentId":19,"tags":{"page":"/api/internal/hooks/stop"},"startTime":1777366009789,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":354621,"timestamp":1583497142982,"id":90,"parentId":52,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":367409,"timestamp":1583497130229,"id":52,"parentId":19,"tags":{"page":"/settings"},"startTime":1777366009799,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":357307,"timestamp":1583497143026,"id":95,"parentId":58,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":369233,"timestamp":1583497131121,"id":58,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/tasks/[taskId]"},"startTime":1777366009799,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":365578,"timestamp":1583497143078,"id":97,"parentId":57,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":377978,"timestamp":1583497130735,"id":57,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/projects/[projectId]"},"startTime":1777366009799,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":373246,"timestamp":1583497143090,"id":98,"parentId":59,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":385141,"timestamp":1583497131224,"id":59,"parentId":19,"tags":{"page":"/workspaces"},"startTime":1777366009800,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":373374,"timestamp":1583497143019,"id":94,"parentId":56,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":385762,"timestamp":1583497130638,"id":56,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]"},"startTime":1777366009799,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":376298,"timestamp":1583497142998,"id":91,"parentId":53,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":388965,"timestamp":1583497130357,"id":53,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/archive"},"startTime":1777366009799,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":378457,"timestamp":1583497143005,"id":92,"parentId":54,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":391027,"timestamp":1583497130456,"id":54,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/assets"},"startTime":1777366009799,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":386042,"timestamp":1583497143062,"id":96,"parentId":49,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":399791,"timestamp":1583497129328,"id":49,"parentId":19,"tags":{"page":"/missions"},"startTime":1777366009798,"traceId":"f3af4c560ad461fe"},{"name":"is-page-static","duration":389116,"timestamp":1583497143012,"id":93,"parentId":55,"tags":{},"startTime":1777366009811,"traceId":"f3af4c560ad461fe"},{"name":"check-page","duration":401622,"timestamp":1583497130547,"id":55,"parentId":19,"tags":{"page":"/workspaces/[workspaceId]/notes"},"startTime":1777366009799,"traceId":"f3af4c560ad461fe"},{"name":"static-check","duration":424659,"timestamp":1583497107528,"id":19,"parentId":1,"tags":{},"startTime":1777366009776,"traceId":"f3af4c560ad461fe"},{"name":"write-routes-manifest","duration":421,"timestamp":1583497533426,"id":100,"parentId":1,"tags":{},"startTime":1777366010202,"traceId":"f3af4c560ad461fe"},{"name":"load-dotenv","duration":13,"timestamp":1583497540763,"id":103,"parentId":102,"tags":{},"startTime":1777366010209,"traceId":"f3af4c560ad461fe"},{"name":"run-export-path-map","duration":295,"timestamp":1583497542464,"id":104,"parentId":102,"tags":{},"startTime":1777366010211,"traceId":"f3af4c560ad461fe"},{"name":"next-export","duration":288315,"timestamp":1583497540200,"id":102,"parentId":1,"tags":{},"startTime":1777366010208,"traceId":"f3af4c560ad461fe"},{"name":"move-exported-app-not-found-","duration":398,"timestamp":1583497829977,"id":105,"parentId":101,"tags":{},"startTime":1777366010498,"traceId":"f3af4c560ad461fe"},{"name":"move-exported-app-global-error-","duration":212,"timestamp":1583497830408,"id":106,"parentId":101,"tags":{},"startTime":1777366010499,"traceId":"f3af4c560ad461fe"},{"name":"static-generation","duration":295485,"timestamp":1583497535912,"id":101,"parentId":1,"tags":{},"startTime":1777366010204,"traceId":"f3af4c560ad461fe"},{"name":"write-routes-manifest","duration":255,"timestamp":1583497831524,"id":107,"parentId":1,"tags":{},"startTime":1777366010500,"traceId":"f3af4c560ad461fe"}]
|
|
2
|
+
[{"name":"print-tree-view","duration":1935,"timestamp":1583497843629,"id":108,"parentId":1,"tags":{},"startTime":1777366010512,"traceId":"f3af4c560ad461fe"},{"name":"write-route-bundle-stats","duration":7395,"timestamp":1583497845580,"id":109,"parentId":1,"tags":{},"startTime":1777366010514,"traceId":"f3af4c560ad461fe"},{"name":"telemetry-flush","duration":1104435,"timestamp":1583497852988,"id":110,"parentId":1,"tags":{},"startTime":1777366010521,"traceId":"f3af4c560ad461fe"},{"name":"next-build","duration":15886919,"timestamp":1583483070540,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1777365995739,"traceId":"f3af4c560ad461fe"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":7059854,"timestamp":1583483287498,"id":14,"parentId":1,"tags":{},"startTime":1777365995956,"traceId":"f3af4c560ad461fe"},{"name":"turbopack-build-events","duration":44,"timestamp":1583483455691,"id":15,"parentId":1,"tags":{},"startTime":1777365996124,"traceId":"f3af4c560ad461fe"},{"name":"run-typescript","duration":6670083,"timestamp":1583490423321,"id":16,"parentId":1,"tags":{},"startTime":1777366003092,"traceId":"f3af4c560ad461fe"},{"name":"static-check","duration":424659,"timestamp":1583497107528,"id":19,"parentId":1,"tags":{},"startTime":1777366009776,"traceId":"f3af4c560ad461fe"},{"name":"static-generation","duration":295485,"timestamp":1583497535912,"id":101,"parentId":1,"tags":{},"startTime":1777366010204,"traceId":"f3af4c560ad461fe"},{"name":"telemetry-flush","duration":1104435,"timestamp":1583497852988,"id":110,"parentId":1,"tags":{},"startTime":1777366010521,"traceId":"f3af4c560ad461fe"},{"name":"next-build","duration":15886919,"timestamp":1583483070540,"id":1,"tags":{"buildMode":"default","version":"16.2.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1777365995739,"traceId":"f3af4c560ad461fe"}]
|
package/bin/tower.mjs
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { existsSync, readFileSync, mkdirSync } from "fs";
|
|
18
18
|
import { join, dirname, resolve } from "path";
|
|
19
|
-
import { execFileSync } from "child_process";
|
|
19
|
+
import { execFileSync, spawnSync } from "child_process";
|
|
20
20
|
import { createServer } from "http";
|
|
21
21
|
import { fileURLToPath } from "url";
|
|
22
22
|
import { parseArgs } from "node:util";
|
|
@@ -53,6 +53,12 @@ const command = positionals[0] ?? "start";
|
|
|
53
53
|
const PORT = parseInt(flags.port ?? process.env.PORT ?? "3000", 10);
|
|
54
54
|
const HOST = flags.host ?? "0.0.0.0";
|
|
55
55
|
|
|
56
|
+
// Next instrumentation runs during app.prepare(), before our HTTP server listens.
|
|
57
|
+
// Expose the resolved CLI host/port early so WS startup and origin checks use
|
|
58
|
+
// the actual runtime values instead of falling back to 3000/3001.
|
|
59
|
+
process.env.PORT = String(PORT);
|
|
60
|
+
process.env.HOST = HOST;
|
|
61
|
+
|
|
56
62
|
// ─── Help ───
|
|
57
63
|
if (flags.help) {
|
|
58
64
|
console.log(`
|
|
@@ -112,6 +118,33 @@ function run(binPath, args) {
|
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
120
|
|
|
121
|
+
function hasGeneratedPrismaClient() {
|
|
122
|
+
const probe = spawnSync(
|
|
123
|
+
process.execPath,
|
|
124
|
+
[
|
|
125
|
+
"-e",
|
|
126
|
+
"const {PrismaClient}=require('@prisma/client'); const prisma=new PrismaClient(); console.log('ok'); prisma.$disconnect();",
|
|
127
|
+
],
|
|
128
|
+
{
|
|
129
|
+
cwd: PROJECT_ROOT,
|
|
130
|
+
env: { ...process.env, DATABASE_URL: DB_URL },
|
|
131
|
+
encoding: "utf-8",
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
if (probe.status === 0) {
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const output = `${probe.stdout ?? ""}\n${probe.stderr ?? ""}`;
|
|
140
|
+
if (output.includes('@prisma/client did not initialize yet')) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
logError(`Prisma client check failed:\n${output.trim()}`);
|
|
145
|
+
process.exit(1);
|
|
146
|
+
}
|
|
147
|
+
|
|
115
148
|
function needsInit() {
|
|
116
149
|
return !existsSync(DB_PATH);
|
|
117
150
|
}
|
|
@@ -125,6 +158,10 @@ function ensureDirs() {
|
|
|
125
158
|
}
|
|
126
159
|
|
|
127
160
|
function ensurePrismaClientGenerated() {
|
|
161
|
+
if (hasGeneratedPrismaClient()) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
|
|
128
165
|
const prismaBin = resolveBin("prisma", "prisma");
|
|
129
166
|
log("Generating Prisma client...");
|
|
130
167
|
run(prismaBin, ["generate", "--schema", "prisma/schema.prisma"]);
|
package/package.json
CHANGED
package/scripts/init-db.ts
CHANGED
|
@@ -52,6 +52,23 @@ async function main() {
|
|
|
52
52
|
console.log("Created default agent config");
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
// Default CLI profile
|
|
56
|
+
const existingCliProfile = await prisma.cliProfile.findFirst({
|
|
57
|
+
where: { isDefault: true },
|
|
58
|
+
});
|
|
59
|
+
if (!existingCliProfile) {
|
|
60
|
+
await prisma.cliProfile.create({
|
|
61
|
+
data: {
|
|
62
|
+
name: "Default",
|
|
63
|
+
command: "claude",
|
|
64
|
+
baseArgs: JSON.stringify(["--dangerously-skip-permissions"]),
|
|
65
|
+
envVars: "{}",
|
|
66
|
+
isDefault: true,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
console.log("Created default CLI profile");
|
|
70
|
+
}
|
|
71
|
+
|
|
55
72
|
// Default workspace — ensure at least one exists
|
|
56
73
|
const workspaceCount = await prisma.workspace.count();
|
|
57
74
|
if (workspaceCount === 0) {
|
|
@@ -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"])},668177,790004,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("40940832d36497429d52382d540b1bf916483d4ff0",b.callServer,void 0,b.findSourceMapURL,"createNote");a.s(["createNote",0,c],668177);let d=(0,b.createServerReference)("401c6f7273a2bd99db85bd7b590adde9bc449d70ea",b.callServer,void 0,b.findSourceMapURL,"deleteNote");a.s(["deleteNote",0,d],790004)},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(668177),j=a.i(879876);let k=(0,j.createServerReference)("60fd07387627fb28024e08245f24cc8cd18347f5cb",j.callServer,void 0,j.findSourceMapURL,"updateNote");var l=a.i(790004);let m=(0,j.createServerReference)("606a92319e6dd1574993c46e3d1c683e6e8b915cb7",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__08meal1._.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)})]})}])},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"])},491310,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("402824ab66f9a2d99e981123aa9da50142d1e9f49c",b.callServer,void 0,b.findSourceMapURL,"deleteAsset");a.s(["deleteAsset",0,c])},208168,300697,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)("4080a7229d9c52869922953b0691c8cfb8683cfd7c",c.callServer,void 0,c.findSourceMapURL,"uploadAsset");a.s(["uploadAsset",0,d],300697)},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)},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)},797896,a=>{"use strict";let b=(0,a.i(302856).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",0,b],797896)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0la.lch._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[348703,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("78fb8fa47faed28ab00400d74b16e6f120e94f9b12",b.callServer,void 0,b.findSourceMapURL,"startPtyExecution");a.s(["startPtyExecution",0,c])},730611,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("401f463b01e74265a5a0f6a651625dbaa23ce7f0de",b.callServer,void 0,b.findSourceMapURL,"stopPtyExecution");a.s(["stopPtyExecution",0,c])},416902,595313,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("602e857033f412e1832ad1c46ff2b99c02da07294f",b.callServer,void 0,b.findSourceMapURL,"resumePtyExecution");a.s(["resumePtyExecution",0,c],416902);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)},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)},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)},506008,a=>{"use strict";var b=a.i(360295);a.s(["ChevronRight",()=>b.default])},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"])},668177,790004,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("40940832d36497429d52382d540b1bf916483d4ff0",b.callServer,void 0,b.findSourceMapURL,"createNote");a.s(["createNote",0,c],668177);let d=(0,b.createServerReference)("401c6f7273a2bd99db85bd7b590adde9bc449d70ea",b.callServer,void 0,b.findSourceMapURL,"deleteNote");a.s(["deleteNote",0,d],790004)},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)},986698,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("40b2fed3c8e27c9a082b7c8dd48ccbc23887a13c78",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})}])},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,300697,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)("4080a7229d9c52869922953b0691c8cfb8683cfd7c",c.callServer,void 0,c.findSourceMapURL,"uploadAsset");a.s(["uploadAsset",0,d],300697)},491310,a=>{"use strict";var b=a.i(879876);let c=(0,b.createServerReference)("402824ab66f9a2d99e981123aa9da50142d1e9f49c",b.callServer,void 0,b.findSourceMapURL,"deleteAsset");a.s(["deleteAsset",0,c])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=project_f_tower_0dfyjgz._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},803041,e=>{"use strict";var t=e.i(422364);e.s(["ChevronRight",()=>t.default])},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"])},724380,747532,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("40940832d36497429d52382d540b1bf916483d4ff0",t.callServer,void 0,t.findSourceMapURL,"createNote");e.s(["createNote",0,r],724380);let s=(0,t.createServerReference)("401c6f7273a2bd99db85bd7b590adde9bc449d70ea",t.callServer,void 0,t.findSourceMapURL,"deleteNote");e.s(["deleteNote",0,s],747532)},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,739730,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)("4080a7229d9c52869922953b0691c8cfb8683cfd7c",r.callServer,void 0,r.findSourceMapURL,"uploadAsset");e.s(["uploadAsset",0,s],739730)},99649,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("402824ab66f9a2d99e981123aa9da50142d1e9f49c",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)},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)},117886,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("40b2fed3c8e27c9a082b7c8dd48ccbc23887a13c78",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})}])},409676,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("78fb8fa47faed28ab00400d74b16e6f120e94f9b12",t.callServer,void 0,t.findSourceMapURL,"startPtyExecution");e.s(["startPtyExecution",0,r])},697551,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("401f463b01e74265a5a0f6a651625dbaa23ce7f0de",t.callServer,void 0,t.findSourceMapURL,"stopPtyExecution");e.s(["stopPtyExecution",0,r])},190045,351101,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("602e857033f412e1832ad1c46ff2b99c02da07294f",t.callServer,void 0,t.findSourceMapURL,"resumePtyExecution");e.s(["resumePtyExecution",0,r],190045);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)},866790,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("60b8da241b1f9f2d12f9b07df697c5d7cc38d4d2a6",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)},896894,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("405330cd9709f40037aa83521bdac7044a93b13641",t.callServer,void 0,t.findSourceMapURL,"getTaskExecutions");e.s(["getTaskExecutions",0,r])},797556,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("4036dc278fce434992e90dd8958b9fa89e1c22580c",t.callServer,void 0,t.findSourceMapURL,"continueLatestPtyExecution");e.s(["continueLatestPtyExecution",0,r])},924260,558543,884178,425059,e=>{"use strict";var t=e.i(543485);let r=(0,t.createServerReference)("60d8d8ed534f28b32d271c58f8f9f2511c65003bdb",t.callServer,void 0,t.findSourceMapURL,"updateTaskStatus");e.s(["updateTaskStatus",0,r],924260);let s=(0,t.createServerReference)("40ec4f72b679f0487a21d7166d20412c1d3e4f1feb",t.callServer,void 0,t.findSourceMapURL,"checkWorktreeClean");e.s(["checkWorktreeClean",0,s],558543);let a=(0,t.createServerReference)("6030bc338dcedc06ab38184da02f82e242e2e73465",t.callServer,void 0,t.findSourceMapURL,"commitWorktreeChanges");e.s(["commitWorktreeChanges",0,a],884178);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)}]);
|