tower-studio 0.1.19 → 0.1.21
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 +45 -45
- 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 +23 -23
- 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/api/files/assets/[projectId]/[filename]/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/assets/reveal/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/assistant/chat/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/assistant/images/route.js +2 -2
- package/.next/server/app/api/internal/assistant/images/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/assistant/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/cache/[...segments]/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/hooks/upload/route.js.nft.json +1 -1
- package/.next/server/app/api/internal/terminal/[taskId]/start/route.js +2 -2
- package/.next/server/app/api/internal/terminal/[taskId]/start/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[taskId]/merge/route.js.nft.json +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 +47 -47
- 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 +23 -23
- 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 +23 -23
- 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 +30 -30
- 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 +81 -81
- 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 +68 -68
- 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 +61 -61
- 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 +51 -51
- package/.next/server/app/workspaces/[workspaceId]/page.js +1 -1
- 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 +23 -23
- 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 +56 -56
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js +2 -2
- 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 +43 -43
- 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 +1 -1
- package/.next/server/chunks/[root-of-the-server]__00~8_qz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__05mc_xk._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0bvqbq0._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0p5iuez._.js +3 -3
- package/.next/server/chunks/[root-of-the-server]__0rb-ear._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0u4~z7h._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ze75mm._.js +1 -1
- 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/project_f_tower_src_lib_0p_b~77._.js +1 -1
- package/.next/server/chunks/project_f_tower_src_lib_10p8sue._.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]__0aidehy._.js → [root-of-the-server]__03tt3-b._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__06qzctf._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0_47k-j._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__032ms~2._.js → [root-of-the-server]__0f8gizo._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0ffdrwp._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0hiekzn._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0i4rk9v._.js +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0w7gbe7._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0p21gac._.js → [root-of-the-server]__0x94y2u._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0zaw-fl._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__10j18zh._.js → [root-of-the-server]__0~ejyjq._.js} +2 -2
- 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_0ge0mtj._.js → project_f_tower_07t18w4._.js} +2 -2
- package/.next/server/chunks/ssr/{project_f_tower_0hzcbgq._.js → project_f_tower_0ace8h~._.js} +2 -2
- package/.next/server/chunks/ssr/{project_f_tower_0s1jqt5._.js → project_f_tower_0elx6sk._.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_0nxm3eb._.js +3 -0
- package/.next/server/chunks/ssr/project_f_tower_0o5.y1e._.js +1 -1
- package/.next/server/chunks/ssr/{project_f_tower_0s~f55k._.js → project_f_tower_0vgg-bq._.js} +2 -2
- package/.next/server/chunks/ssr/project_f_tower_0w01kgd._.js +1 -1
- package/.next/server/chunks/ssr/project_f_tower_0ym-aea._.js +1 -1
- package/.next/server/chunks/ssr/{project_f_tower_08rgm20._.js → project_f_tower_0ysif1r._.js} +2 -2
- package/.next/server/chunks/ssr/{project_f_tower_src_128.lqf._.js → project_f_tower_src_09hh2zl._.js} +2 -2
- package/.next/server/chunks/ssr/project_f_tower_src_actions_agent-actions_ts_0.s4~m-._.js +1 -1
- 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/instrumentation.js.nft.json +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 +193 -193
- package/.next/static/chunks/00j9ode~v55w1.js +1 -0
- package/.next/static/chunks/{07jb~oukvvhv~.js → 011l2dme7zm1y.js} +1 -1
- package/.next/static/chunks/03cxvx_ytlfwj.js +1 -0
- package/.next/static/chunks/04do7shpo0xf4.js +1 -0
- package/.next/static/chunks/06ty.u_4gqbjp.js +1 -0
- package/.next/static/chunks/0_fdrn~ij8~4x.js +1 -0
- package/.next/static/chunks/{0w-f5xcz~0~a9.js → 0huh48g0vwc3w.js} +1 -1
- package/.next/static/chunks/{05.r3gya2y0_d.js → 0lmz~e26t6y84.js} +1 -1
- package/.next/static/chunks/0piw-n4oi7u3t.js +1 -0
- package/.next/static/chunks/{0yzmd3i5vfggs.js → 0s6tt5..s~z3j.js} +1 -1
- package/.next/static/chunks/{0.094wo3-wbr_.js → 0xszvfadyn~._.js} +1 -1
- package/.next/static/chunks/{0-d4licj-hata.js → 11g71a5j36125.js} +1 -1
- package/.next/static/chunks/{0ifhv76k2rmn9.js → 12-oyio~-rn_6.js} +2 -2
- package/.next/static/chunks/{08y-dar2a2nv~.js → 12hczap1wvd9x.js} +1 -1
- package/.next/static/chunks/13c..v64rkjx4.js +1 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/bin/tower.mjs +6 -0
- package/package.json +3 -2
- package/scripts/fix-native-permissions.js +39 -0
- package/.next/server/chunks/ssr/project_f_tower_0h~8iz.._.js +0 -3
- package/.next/static/chunks/02myf8ud-x1x0.js +0 -1
- package/.next/static/chunks/059sctu5sue65.js +0 -1
- package/.next/static/chunks/08~h~n9ldz4.q.js +0 -1
- package/.next/static/chunks/0hsqm_60.b18j.js +0 -1
- package/.next/static/chunks/12m3c8he3v-d-.js +0 -1
- package/.next/static/chunks/13yyy7cl_d5za.js +0 -1
- package/.next/static/chunks/15orsd353tllt.js +0 -1
- /package/.next/static/{Jspb2q16y1AMCvOLB3nv_ → 8KHD6s8uah3cz21-l-Ort}/_buildManifest.js +0 -0
- /package/.next/static/{Jspb2q16y1AMCvOLB3nv_ → 8KHD6s8uah3cz21-l-Ort}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{Jspb2q16y1AMCvOLB3nv_ → 8KHD6s8uah3cz21-l-Ort}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/workspaces/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":276658,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/layout-router.js":{"id":276658,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":335291,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":335291,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":718308,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-page.js":{"id":718308,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":966733,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-segment.js":{"id":966733,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":416595,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":416595,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":519171,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":519171,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":976752,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":976752,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/ui/tooltip.tsx <module evaluation>":{"id":11915,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/ui/tooltip.tsx":{"id":11915,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/layout/layout-client.tsx <module evaluation>":{"id":178755,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/layout/layout-client.tsx":{"id":178755,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/lib/i18n.tsx <module evaluation>":{"id":625054,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/lib/i18n.tsx":{"id":625054,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/providers/theme-provider.tsx <module evaluation>":{"id":471410,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/providers/theme-provider.tsx":{"id":471410,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/ui/sonner.tsx <module evaluation>":{"id":469787,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/src/components/ui/sonner.tsx":{"id":469787,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":703810,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error.js":{"id":703810,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0w-f5xcz~0~a9.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/0-d4licj-hata.js"],"async":false}},"ssrModuleMapping":{"276658":{"*":{"id":191945,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"335291":{"*":{"id":178439,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"718308":{"*":{"id":507824,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"966733":{"*":{"id":53311,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"416595":{"*":{"id":853182,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"519171":{"*":{"id":113520,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"976752":{"*":{"id":450767,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"11915":{"*":{"id":95446,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"178755":{"*":{"id":582043,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"625054":{"*":{"id":584335,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"471410":{"*":{"id":209421,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"469787":{"*":{"id":250531,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"703810":{"*":{"id":226372,"name":"*","chunks":["server/chunks/ssr/project_f_tower_0ge0mtj._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0p21gac._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js","server/chunks/ssr/0uz~_next_dist_client_components_0neff21._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"276658":{"*":{"id":81267,"name":"*","chunks":[],"async":false}},"335291":{"*":{"id":291108,"name":"*","chunks":[],"async":false}},"718308":{"*":{"id":433014,"name":"*","chunks":[],"async":false}},"966733":{"*":{"id":979045,"name":"*","chunks":[],"async":false}},"416595":{"*":{"id":817534,"name":"*","chunks":[],"async":false}},"519171":{"*":{"id":651443,"name":"*","chunks":[],"async":false}},"976752":{"*":{"id":412142,"name":"*","chunks":[],"async":false}},"11915":{"*":{"id":631413,"name":"*","chunks":[],"async":false}},"178755":{"*":{"id":284269,"name":"*","chunks":[],"async":false}},"625054":{"*":{"id":670088,"name":"*","chunks":[],"async":false}},"471410":{"*":{"id":907347,"name":"*","chunks":[],"async":false}},"469787":{"*":{"id":186682,"name":"*","chunks":[],"async":false}},"703810":{"*":{"id":202817,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/project/f/tower/src/app/layout":[{"path":"static/chunks/0neevhl_o1ozu.css","inlined":false},{"path":"static/chunks/0s4zpgzk~au6x.css","inlined":false}],"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/0neevhl_o1ozu.css","inlined":false},{"path":"static/chunks/0s4zpgzk~au6x.css","inlined":false}]},"entryJSFiles":{"[project]/project/f/tower/src/app/layout":["static/chunks/0i5zk6woum~cm.js","static/chunks/0odp5708u_28m.js","static/chunks/0sdq_svi-w4cf.js","static/chunks/09mkfd6kg8s2..js","static/chunks/0smj3ii_egywx.js","static/chunks/0c5h4.yuzpzs5.js","static/chunks/0q6i_n.rkxpn0.js","static/chunks/0w-f5xcz~0~a9.js","static/chunks/0sszltblb5pss.js","static/chunks/0xvn7yrj70a9v.js","static/chunks/0-d4licj-hata.js"],"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/0i5zk6woum~cm.js","static/chunks/0odp5708u_28m.js","static/chunks/0sdq_svi-w4cf.js","static/chunks/09mkfd6kg8s2..js","static/chunks/0smj3ii_egywx.js","static/chunks/0c5h4.yuzpzs5.js","static/chunks/0q6i_n.rkxpn0.js","static/chunks/0w-f5xcz~0~a9.js","static/chunks/0sszltblb5pss.js","static/chunks/0xvn7yrj70a9v.js","static/chunks/0-d4licj-hata.js"]}};
|
|
2
|
+
globalThis.__RSC_MANIFEST["/workspaces/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":276658,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/layout-router.js":{"id":276658,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":335291,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":335291,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":718308,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-page.js":{"id":718308,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":966733,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-segment.js":{"id":966733,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":416595,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":416595,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":519171,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":519171,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":976752,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":976752,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/ui/tooltip.tsx <module evaluation>":{"id":11915,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/ui/tooltip.tsx":{"id":11915,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/layout/layout-client.tsx <module evaluation>":{"id":178755,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/layout/layout-client.tsx":{"id":178755,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/lib/i18n.tsx <module evaluation>":{"id":625054,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/lib/i18n.tsx":{"id":625054,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/providers/theme-provider.tsx <module evaluation>":{"id":471410,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/providers/theme-provider.tsx":{"id":471410,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/ui/sonner.tsx <module evaluation>":{"id":469787,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/src/components/ui/sonner.tsx":{"id":469787,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":703810,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false},"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error.js":{"id":703810,"name":"*","chunks":["/_next/static/chunks/0i5zk6woum~cm.js","/_next/static/chunks/0odp5708u_28m.js","/_next/static/chunks/0sdq_svi-w4cf.js","/_next/static/chunks/09mkfd6kg8s2..js","/_next/static/chunks/0smj3ii_egywx.js","/_next/static/chunks/0c5h4.yuzpzs5.js","/_next/static/chunks/0q6i_n.rkxpn0.js","/_next/static/chunks/0huh48g0vwc3w.js","/_next/static/chunks/0sszltblb5pss.js","/_next/static/chunks/0xvn7yrj70a9v.js","/_next/static/chunks/11g71a5j36125.js"],"async":false}},"ssrModuleMapping":{"276658":{"*":{"id":191945,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"335291":{"*":{"id":178439,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"718308":{"*":{"id":507824,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"966733":{"*":{"id":53311,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"416595":{"*":{"id":853182,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"519171":{"*":{"id":113520,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"976752":{"*":{"id":450767,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"11915":{"*":{"id":95446,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"178755":{"*":{"id":582043,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"625054":{"*":{"id":584335,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"471410":{"*":{"id":209421,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"469787":{"*":{"id":250531,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js"],"async":false}},"703810":{"*":{"id":226372,"name":"*","chunks":["server/chunks/ssr/project_f_tower_07t18w4._.js","server/chunks/ssr/project_f_tower_02x5vbj._.js","server/chunks/ssr/[root-of-the-server]__0x94y2u._.js","server/chunks/ssr/0-yb__pnpm_0gui5y9._.js","server/chunks/ssr/project_f_tower_0sj3voe._.js","server/chunks/ssr/project_f_tower_src_components_ui_input_tsx_02yu4ri._.js","server/chunks/ssr/0uz~_next_dist_0viyn-6._.js","server/chunks/ssr/project_f_tower_0hgtev9._.js","server/chunks/ssr/project_f_tower_0jhlcus._.js","server/chunks/ssr/0uz~_next_dist_11y31c8._.js","server/chunks/ssr/0-yb__pnpm_072uqh4._.js","server/chunks/ssr/project_f_tower_0p39h1r._.js","server/chunks/ssr/project_f_tower_0ea6ill._.js","server/chunks/ssr/0uz~_next_dist_client_components_0neff21._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"276658":{"*":{"id":81267,"name":"*","chunks":[],"async":false}},"335291":{"*":{"id":291108,"name":"*","chunks":[],"async":false}},"718308":{"*":{"id":433014,"name":"*","chunks":[],"async":false}},"966733":{"*":{"id":979045,"name":"*","chunks":[],"async":false}},"416595":{"*":{"id":817534,"name":"*","chunks":[],"async":false}},"519171":{"*":{"id":651443,"name":"*","chunks":[],"async":false}},"976752":{"*":{"id":412142,"name":"*","chunks":[],"async":false}},"11915":{"*":{"id":631413,"name":"*","chunks":[],"async":false}},"178755":{"*":{"id":284269,"name":"*","chunks":[],"async":false}},"625054":{"*":{"id":670088,"name":"*","chunks":[],"async":false}},"471410":{"*":{"id":907347,"name":"*","chunks":[],"async":false}},"469787":{"*":{"id":186682,"name":"*","chunks":[],"async":false}},"703810":{"*":{"id":202817,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/project/f/tower/src/app/layout":[{"path":"static/chunks/0neevhl_o1ozu.css","inlined":false},{"path":"static/chunks/0s4zpgzk~au6x.css","inlined":false}],"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/0neevhl_o1ozu.css","inlined":false},{"path":"static/chunks/0s4zpgzk~au6x.css","inlined":false}]},"entryJSFiles":{"[project]/project/f/tower/src/app/layout":["static/chunks/0i5zk6woum~cm.js","static/chunks/0odp5708u_28m.js","static/chunks/0sdq_svi-w4cf.js","static/chunks/09mkfd6kg8s2..js","static/chunks/0smj3ii_egywx.js","static/chunks/0c5h4.yuzpzs5.js","static/chunks/0q6i_n.rkxpn0.js","static/chunks/0huh48g0vwc3w.js","static/chunks/0sszltblb5pss.js","static/chunks/0xvn7yrj70a9v.js","static/chunks/11g71a5j36125.js"],"[project]/project/f/tower/node_modules/.pnpm/next@16.2.1_@babel+core@7.29.0_@playwright+test@1.58.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/0i5zk6woum~cm.js","static/chunks/0odp5708u_28m.js","static/chunks/0sdq_svi-w4cf.js","static/chunks/09mkfd6kg8s2..js","static/chunks/0smj3ii_egywx.js","static/chunks/0c5h4.yuzpzs5.js","static/chunks/0q6i_n.rkxpn0.js","static/chunks/0huh48g0vwc3w.js","static/chunks/0sszltblb5pss.js","static/chunks/0xvn7yrj70a9v.js","static/chunks/11g71a5j36125.js"]}};
|
|
3
3
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
module.exports=[643104,e=>{"use strict";var t=e.i(730358),a=e.i(70480),r=e.i(907338),i=e.i(976017),n=e.i(61776),s=e.i(973805),o=e.i(750012),d=e.i(986958),l=e.i(205236),c=e.i(748231),u=e.i(922554),p=e.i(841326),w=e.i(138459),h=e.i(157544),f=e.i(455548),k=e.i(193695);e.i(745561);var E=e.i(949568),b=e.i(532087),v=e.i(423582),m=e.i(383893),R=e.i(236422),g=e.i(429468),P=e.i(892587),A=e.i(199709),I=e.i(707940),N=e.i(308241),x=e.i(987300),y=e.i(984629),S=e.i(924868),j=e.i(446786),C=e.i(814747),T=e.i(12421);let D=N.logger.create("agent-actions"),U=(0,C.join)((0,j.tmpdir)(),"tower-signals");async function O(e,t){try{await (0,S.mkdir)(U,{recursive:!0,mode:448}),await (0,S.writeFile)((0,C.join)(U,`exit-${e}`),String(t),{mode:384})}catch{}}async function M(e,t){let a=await g.db.taskMessage.create({data:{role:"USER",content:t,taskId:e}});return(0,P.revalidatePath)("/workspaces"),{userMessage:a}}async function _(e){return g.db.taskMessage.findMany({where:{taskId:e},orderBy:{createdAt:"asc"}})}async function F(e,t="CLAUDE_CODE",a,r){let i=await g.db.taskExecution.create({data:{taskId:e,agent:t,status:"RUNNING",startedAt:new Date,worktreePath:a??null,worktreeBranch:r??null}});return await g.db.task.update({where:{id:e},data:{status:"IN_PROGRESS"}}),(0,P.revalidatePath)("/workspaces"),i}async function q(e,t="FAILED"){let a=await g.db.taskExecution.update({where:{id:e},data:{status:t,endedAt:new Date}});return(0,P.revalidatePath)("/workspaces"),a}async function L(t){let{destroySession:a,getSession:r}=await e.A(618443),i=r(t),n=i?.getBuffer()??"",s=await g.db.taskExecution.findFirst({where:{taskId:t,status:"RUNNING"},orderBy:{createdAt:"desc"}}),o=await g.db.task.findUnique({where:{id:t},include:{project:{select:{localPath:!0}}}});if(a(t),s){await g.db.taskExecution.update({where:{id:s.id},data:{status:"COMPLETED",endedAt:new Date}}),await g.db.task.update({where:{id:t},data:{status:"IN_REVIEW"}});let a=s.worktreePath||o?.project?.localPath||null,{captureExecutionSummary:r}=await e.A(223657);await r(s.id,t,0,n,a)}(0,P.revalidatePath)("/workspaces")}async function B(e){return g.db.taskExecution.findMany({where:{taskId:e},orderBy:{createdAt:"desc"},include:{insightNote:{select:{id:!0,title:!0,content:!0}}}})}async function $(t,a){let r=await g.db.task.findUnique({where:{id:t},include:{project:!0}});if(!r)throw Error("Task not found");if(!r.project?.localPath)throw Error("Project has no local path configured");await g.db.taskExecution.updateMany({where:{taskId:t,status:"RUNNING",NOT:{sessionId:a}},data:{status:"FAILED",endedAt:new Date}});let i=await g.db.taskExecution.findFirst({where:{taskId:t,sessionId:a},orderBy:{createdAt:"desc"}});if(!i)throw Error("Previous execution not found");let n=i.worktreePath??r.project.localPath,s=r.subPath?(0,C.join)(n,r.subPath):n,o=await (0,x.readConfigValue)("terminal.idleTimeoutSec",180),{adapter:d}=await (0,y.resolveCliAdapter)("terminal"),l=d.buildEnvOverrides({taskId:t,taskTitle:r.title,apiUrl:`http://localhost:${process.env.PORT||"3000"}`,callbackUrl:i.callbackUrl??void 0}),c=await g.db.taskExecution.update({where:{id:i.id},data:{status:"RUNNING",endedAt:null}});await g.db.task.update({where:{id:t},data:{status:"IN_PROGRESS"}}),(0,P.revalidatePath)("/workspaces");let u=await (0,x.readConfigValue)("onboarding.username",""),p=d.buildSpawnArgs({taskId:t,prompt:"",cwd:s,resumeSessionId:a,extraArgs:[...u?["--append-system-prompt",`The user's name is ${u}.`]:[]],envOverrides:l}),w=/no conversation found with session id|unknown session|session .* not found/i;return(0,I.createSession)(t,p.command,p.args,s,()=>{},async n=>{await O(t,n);let s=await g.db.taskExecution.findUnique({where:{id:c.id}});if(s?.status!=="RUNNING")return;let{getSession:o}=await e.A(618443),d=o(t),l=d?.getBuffer()??"";if(0!==n&&w.test(l)){D.info("Session resume failed — retrying with fresh execution",{taskId:t,previousSessionId:a}),await g.db.taskExecution.update({where:{id:c.id},data:{status:"FAILED",endedAt:new Date}}).catch(()=>{});try{await H(t,r.title)}catch(e){D.error("Fresh execution retry also failed",e,{taskId:t})}return}await g.db.taskExecution.update({where:{id:c.id},data:{status:0===n?"COMPLETED":"FAILED",endedAt:new Date}}).catch(()=>{});let u=i.worktreePath||r.project.localPath,{captureExecutionSummary:p}=await e.A(223657);await p(c.id,t,n,l,u);let{dispatchTaskCompletionEvent:h}=await e.A(941877);await h({taskId:t,taskTitle:r.title,status:0===n?"COMPLETED":"FAILED",executionId:c.id,workspaceId:r.project.workspaceId}),0===n&&await g.db.task.update({where:{id:t},data:{status:"IN_REVIEW"}}).catch(()=>{})},p.env,void 0,1e3*o),{executionId:c.id,worktreePath:i.worktreePath??n??null}}async function G(t){let a=await g.db.task.findUnique({where:{id:t},include:{project:!0}});if(!a)throw Error("Task not found");if(!a.project?.localPath)throw Error("Project has no local path configured");let r=await g.db.taskExecution.findFirst({where:{taskId:t},orderBy:{createdAt:"desc"}}),{destroySession:i}=await e.A(618443);i(t),await g.db.taskExecution.updateMany({where:{taskId:t,status:"RUNNING"},data:{status:"FAILED",endedAt:new Date}});let n=r?.worktreePath??a.project.localPath,s=a.subPath?(0,C.join)(n,a.subPath):n,o=await (0,x.readConfigValue)("terminal.idleTimeoutSec",180),{adapter:d,provider:l}=await (0,y.resolveCliAdapter)("terminal"),c=d.buildEnvOverrides({taskId:t,taskTitle:a.title,apiUrl:`http://localhost:${process.env.PORT||"3000"}`}),u=await g.db.taskExecution.create({data:{taskId:t,agent:l.agentFieldValue,status:"RUNNING",startedAt:new Date,worktreePath:r?.worktreePath??null,worktreeBranch:r?.worktreeBranch??null}});await g.db.task.update({where:{id:t},data:{status:"IN_PROGRESS"}}),(0,P.revalidatePath)("/workspaces");let p=await (0,x.readConfigValue)("onboarding.username",""),w=d.buildSpawnArgs({taskId:t,prompt:"",cwd:s,continueLatest:!0,extraArgs:[...p?["--append-system-prompt",`The user's name is ${p}.`]:[]],envOverrides:c});return(0,I.createSession)(t,w.command,w.args,s,()=>{},async i=>{await O(t,i);let n=await g.db.taskExecution.findUnique({where:{id:u.id}});if(n?.status!=="RUNNING")return;let{getSession:s}=await e.A(618443),o=s(t),d=o?.getBuffer()??"";await g.db.taskExecution.update({where:{id:u.id},data:{status:0===i?"COMPLETED":"FAILED",endedAt:new Date}}).catch(()=>{});let l=r?.worktreePath||a.project.localPath,{captureExecutionSummary:c}=await e.A(223657);await c(u.id,t,i,d,l);let{dispatchTaskCompletionEvent:p}=await e.A(941877);await p({taskId:t,taskTitle:a.title,status:0===i?"COMPLETED":"FAILED",executionId:u.id,workspaceId:a.project.workspaceId}),0===i&&await g.db.task.update({where:{id:t},data:{status:"IN_REVIEW"}}).catch(()=>{})},w.env,void 0,1e3*o),{executionId:u.id,worktreePath:r?.worktreePath??n??null}}async function H(t,a,r,i){let n,s,o=await g.db.task.findUnique({where:{id:t},include:{project:!0}});if(!o)throw Error("Task not found");if(!o.project?.localPath)throw Error("Project has no local path configured");let d=await (0,x.readConfigValue)("system.maxConcurrentExecutions",20);if(await g.db.taskExecution.count({where:{status:"RUNNING"}})>=d)throw Error(`已达并发上限(${d}),请等待其他任务完成后再启动`);let l=await (0,x.readConfigValue)("terminal.idleTimeoutSec",180),{adapter:c,provider:u,model:p}=await (0,y.resolveCliAdapter)("terminal");await g.db.taskExecution.updateMany({where:{taskId:t,status:"RUNNING"},data:{status:"FAILED",endedAt:new Date}}),"IN_PROGRESS"!==o.status&&(await g.db.task.update({where:{id:t},data:{status:"IN_PROGRESS"}}),(0,P.revalidatePath)("/workspaces"));let w=await g.db.taskMessage.findMany({where:{taskId:t},orderBy:{createdAt:"desc"},take:10}),h=[`Task: ${o.title}`,o.description?`Description: ${o.description}`:"",w.length>0?`Recent conversation:
|
|
2
|
-
${w.reverse().map(e=>`${e.role}: ${e.content}`).join("\n")}`:"",a.trim()?`User message: ${a}`:""].filter(Boolean).join("\n\n"),f=r??o.promptId;if(f){let e=await g.db.agentPrompt.findUnique({where:{id:f}});e?.content&&(s=await (0,S.mkdtemp)((0,C.join)((0,j.tmpdir)(),"tower-pty-")),n=(0,C.join)(s,"instructions.md"),await (0,S.writeFile)(n,e.content,"utf-8"))}let k=null,E=null;if(o.baseBranch&&o.project.localPath){let{worktreePath:e,worktreeBranch:a}=await (0,A.createWorktree)(o.project.localPath,t,o.baseBranch);k=e,E=a}let b=k??o.project.localPath,v=o.subPath?(0,C.join)(b,o.subPath):b,m=await g.db.taskExecution.create({data:{taskId:t,agent:u.agentFieldValue,status:"RUNNING",startedAt:new Date,worktreePath:k??null,worktreeBranch:E??null,callbackUrl:i??null}});if(o.project.localPath)try{let t,{execFileSync:a}=await e.A(144264);(t=k&&o.baseBranch?a("git",["merge-base",o.baseBranch,"HEAD"],{cwd:k,encoding:"utf-8",timeout:5e3}).trim():a("git",["rev-parse","HEAD"],{cwd:o.project.localPath,encoding:"utf-8",timeout:5e3}).trim())&&await g.db.taskExecution.update({where:{id:m.id},data:{forkCommit:t}})}catch{}let R="";if(n){let{readFile:t}=await e.A(260815);R+=await t(n,"utf-8")}let N=await (0,x.readConfigValue)("onboarding.username","");N&&(R+=(R?"\n":"")+`The user's name is ${N}.`);let T=c.buildSpawnArgs({taskId:t,prompt:h,cwd:v,extraArgs:[...R?["--append-system-prompt",R]:[],...p?["--model",p]:[]],envOverrides:c.buildEnvOverrides({taskId:t,taskTitle:o.title,apiUrl:`http://localhost:${process.env.PORT||"3000"}`,callbackUrl:i??void 0})});return(0,I.createSession)(t,T.command,T.args,v,()=>{},async a=>{await O(t,a);let r=await g.db.taskExecution.findUnique({where:{id:m.id}});if(r?.status!=="RUNNING")return;let{getSession:i}=await e.A(618443),n=i(t),d=n?.getBuffer()??"";await g.db.taskExecution.update({where:{id:m.id},data:{status:0===a?"COMPLETED":"FAILED",endedAt:new Date}}).catch(e=>{D.error("Failed to update execution status",e)});let l=k||o.project.localPath,{captureExecutionSummary:c}=await e.A(223657);await c(m.id,t,a,d,l);let{dispatchTaskCompletionEvent:u}=await e.A(941877);await u({taskId:t,taskTitle:o.title,status:0===a?"COMPLETED":"FAILED",executionId:m.id,workspaceId:o.project.workspaceId}),0===a&&await g.db.task.update({where:{id:t},data:{status:"IN_REVIEW"}}).catch(e=>{D.error("Failed to update task status",e)}),s&&await (0,S.rm)(s,{recursive:!0,force:!0}).catch(()=>{})},T.env,void 0,1e3*l),{executionId:m.id,worktreePath:k??b??null}}async function V(){return(await g.db.taskExecution.findMany({where:{status:"RUNNING"},orderBy:{startedAt:"asc"},include:{task:{include:{project:{include:{workspace:!0}}}}}})).map(e=>({executionId:e.id,taskId:e.taskId,taskTitle:e.task.title,projectId:e.task.project.id,projectName:e.task.project.name,projectAlias:e.task.project.alias,projectLocalPath:e.task.project.localPath,workspaceId:e.task.project.workspace.id,workspaceName:e.task.project.workspace.name,worktreePath:e.worktreePath,startedAt:e.startedAt?.toISOString()??null}))}(0,T.ensureServerEntryExports)([M,_,F,q,L,B,$,G,H,V]),(0,R.registerServerReference)(M,"6013d381ca9701fc2a9007d98c00140e0a0abc3517",null),(0,R.registerServerReference)(_,"40925ad3b4677ce8ebd1f2f2333147aec56da58eb7",null),(0,R.registerServerReference)(F,"780a41c5fb9eb52a8a3ba3a9a697c0e430a945805e",null),(0,R.registerServerReference)(q,"608d32f394b94ba76a7c2c890703bac6b2e8c64cb1",null),(0,R.registerServerReference)(L,"409d276af9507cf3ce16c99f1e007b274674ed8587",null),(0,R.registerServerReference)(B,"40dfeba5875f9e2c7374c6b96fb565939ab96e2e78",null),(0,R.registerServerReference)($,"604e62dc720e397ef1a064dc1dadbcd289b7718853",null),(0,R.registerServerReference)(G,"40aca29c9ead7002c40a52e9f45b91819ecea77897",null),(0,R.registerServerReference)(H,"7824656e82d6a4167268f5bd9b52b660bd49751db1",null),(0,R.registerServerReference)(V,"00e65273fbac412d34cda8187473de97aa07e52d01",null);let K=v.z.object({prompt:v.z.string().optional().default("")});async function W(e,{params:t}){let a=(0,m.requireLocalhost)(e);if(a)return a;let{taskId:r}=await t,i=(0,m.validateTaskId)(r);if(i)return i;try{let t=await e.json(),a=K.safeParse(t);if(!a.success)return b.NextResponse.json({error:"Invalid body"},{status:400});let i=await H(r,a.data.prompt);return b.NextResponse.json(i)}catch(t){let e=t instanceof Error?t.message:String(t);return b.NextResponse.json({error:e},{status:500})}}e.s(["POST",0,W,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],23205);var z=e.i(23205);let X=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/internal/terminal/[taskId]/start/route",pathname:"/api/internal/terminal/[taskId]/start",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/project/f/tower/src/app/api/internal/terminal/[taskId]/start/route.ts",nextConfigOutput:"",userland:z}),{workAsyncStorage:Z,workUnitAsyncStorage:J,serverHooks:Q}=X;async function Y(e,t,r){r.requestMeta&&(0,i.setRequestMeta)(e,r.requestMeta),X.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let b="/api/internal/terminal/[taskId]/start/route";b=b.replace(/\/index$/,"")||"/";let v=await X.prepare(e,t,{srcPage:b,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:m,params:R,nextConfig:g,parsedUrl:P,isDraftMode:A,prerenderManifest:I,routerServerContext:N,isOnDemandRevalidate:x,revalidateOnlyGenerated:y,resolvedPathname:S,clientReferenceManifest:j,serverActionsManifest:C}=v,T=(0,o.normalizeAppPath)(b),D=!!(I.dynamicRoutes[T]||I.routes[S]),U=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,P,!1):t.end("This page could not be found"),null);if(D&&!A){let e=!!I.routes[S],t=I.dynamicRoutes[T];if(t&&!1===t.fallback&&!e){if(g.adapterPath)return await U();throw new k.NoFallbackError}}let O=null;!D||X.isDev||A||(O="/index"===(O=S)?"/":O);let M=!0===X.isDev||!D,_=D&&!M;C&&j&&(0,s.setManifestsSingleton)({page:b,clientReferenceManifest:j,serverActionsManifest:C});let F=e.method||"GET",q=(0,n.getTracer)(),L=q.getActiveScopeSpan(),B=!!(null==N?void 0:N.isWrappedByNextServer),$=!!(0,i.getRequestMeta)(e,"minimalMode"),G=(0,i.getRequestMeta)(e,"incrementalCache")||await X.getIncrementalCache(e,g,I,$);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let H={params:R,previewProps:I.preview,renderOpts:{experimental:{authInterrupts:!!g.experimental.authInterrupts},cacheComponents:!!g.cacheComponents,supportsDynamicResponse:M,incrementalCache:G,cacheLifeProfiles:g.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>X.onRequestError(e,t,r,i,N)},sharedContext:{buildId:m}},V=new d.NodeNextRequest(e),K=new d.NodeNextResponse(t),W=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(t));try{let i,s=async e=>X.handle(W,H).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=q.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${F} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",r),i.updateName(t))}else e.updateName(`${F} ${b}`)}),o=async i=>{var n,o;let d=async({previousCacheEntry:a})=>{try{if(!$&&x&&y&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await s(i);e.fetchMetrics=H.renderOpts.fetchMetrics;let o=H.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=H.renderOpts.collectedTags;if(!D)return await (0,p.sendResponse)(V,K,n,H.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,w.toNodeOutgoingHttpHeaders)(n.headers);d&&(t[f.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==H.renderOpts.collectedRevalidate&&!(H.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&H.renderOpts.collectedRevalidate,r=void 0===H.renderOpts.collectedExpire||H.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:H.renderOpts.collectedExpire;return{value:{kind:E.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await X.onRequestError(e,t,{routerKind:"App Router",routePath:b,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:_,isOnDemandRevalidate:x})},!1,N),t}},l=await X.handleResponse({req:e,nextConfig:g,cacheKey:O,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:I,isRoutePPREnabled:!1,isOnDemandRevalidate:x,revalidateOnlyGenerated:y,responseGenerator:d,waitUntil:r.waitUntil,isMinimalMode:$});if(!D)return null;if((null==l||null==(n=l.value)?void 0:n.kind)!==E.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(o=l.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});$||t.setHeader("x-nextjs-cache",x?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,w.fromNodeOutgoingHttpHeaders)(l.value.headers);return $&&D||c.delete(f.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,h.getCacheControlHeader)(l.cacheControl)),await (0,p.sendResponse)(V,K,new Response(l.value.body,{headers:c,status:l.value.status||200})),null};B&&L?await o(L):(i=q.getActiveScopeSpan(),await q.withPropagatedContext(e.headers,()=>q.trace(c.BaseServerSpan.handleRequest,{spanName:`${F} ${b}`,kind:n.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},o),void 0,!B))}catch(t){if(t instanceof k.NoFallbackError||await X.onRequestError(e,t,{routerKind:"App Router",routePath:T,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:_,isOnDemandRevalidate:x})},!1,N),D)throw t;return await (0,p.sendResponse)(V,K,new Response(null,{status:500})),null}}e.s(["handler",0,Y,"patchFetch",0,function(){return(0,r.patchFetch)({workAsyncStorage:Z,workUnitAsyncStorage:J})},"routeModule",0,X,"serverHooks",0,Q,"workAsyncStorage",0,Z,"workUnitAsyncStorage",0,J],643104)}];
|
|
2
|
+
${w.reverse().map(e=>`${e.role}: ${e.content}`).join("\n")}`:"",a.trim()?`User message: ${a}`:""].filter(Boolean).join("\n\n"),f=r??o.promptId;if(f){let e=await g.db.agentPrompt.findUnique({where:{id:f}});e?.content&&(s=await (0,S.mkdtemp)((0,C.join)((0,j.tmpdir)(),"tower-pty-")),n=(0,C.join)(s,"instructions.md"),await (0,S.writeFile)(n,e.content,"utf-8"))}let k=null,E=null;if(o.baseBranch&&o.project.localPath){let{worktreePath:e,worktreeBranch:a}=await (0,A.createWorktree)(o.project.localPath,t,o.baseBranch);k=e,E=a}let b=k??o.project.localPath,v=o.subPath?(0,C.join)(b,o.subPath):b,m=await g.db.taskExecution.create({data:{taskId:t,agent:u.agentFieldValue,status:"RUNNING",startedAt:new Date,worktreePath:k??null,worktreeBranch:E??null,callbackUrl:i??null}});if(o.project.localPath)try{let t,{execFileSync:a}=await e.A(144264);(t=k&&o.baseBranch?a("git",["merge-base",o.baseBranch,"HEAD"],{cwd:k,encoding:"utf-8",timeout:5e3}).trim():a("git",["rev-parse","HEAD"],{cwd:o.project.localPath,encoding:"utf-8",timeout:5e3}).trim())&&await g.db.taskExecution.update({where:{id:m.id},data:{forkCommit:t}})}catch{}let R="";if(n){let{readFile:t}=await e.A(260815);R+=await t(n,"utf-8")}let N=await (0,x.readConfigValue)("onboarding.username","");N&&(R+=(R?"\n":"")+`The user's name is ${N}.`);let T=c.buildSpawnArgs({taskId:t,prompt:h,cwd:v,extraArgs:[...R?["--append-system-prompt",R]:[],...p?["--model",p]:[]],envOverrides:c.buildEnvOverrides({taskId:t,taskTitle:o.title,apiUrl:`http://localhost:${process.env.PORT||"3000"}`,callbackUrl:i??void 0})});return(0,I.createSession)(t,T.command,T.args,v,()=>{},async a=>{await O(t,a);let r=await g.db.taskExecution.findUnique({where:{id:m.id}});if(r?.status!=="RUNNING")return;let{getSession:i}=await e.A(618443),n=i(t),d=n?.getBuffer()??"";await g.db.taskExecution.update({where:{id:m.id},data:{status:0===a?"COMPLETED":"FAILED",endedAt:new Date}}).catch(e=>{D.error("Failed to update execution status",e)});let l=k||o.project.localPath,{captureExecutionSummary:c}=await e.A(223657);await c(m.id,t,a,d,l);let{dispatchTaskCompletionEvent:u}=await e.A(941877);await u({taskId:t,taskTitle:o.title,status:0===a?"COMPLETED":"FAILED",executionId:m.id,workspaceId:o.project.workspaceId}),0===a&&await g.db.task.update({where:{id:t},data:{status:"IN_REVIEW"}}).catch(e=>{D.error("Failed to update task status",e)}),s&&await (0,S.rm)(s,{recursive:!0,force:!0}).catch(()=>{})},T.env,void 0,1e3*l),{executionId:m.id,worktreePath:k??b??null}}async function V(){return(await g.db.taskExecution.findMany({where:{status:"RUNNING"},orderBy:{startedAt:"asc"},include:{task:{include:{project:{include:{workspace:!0}}}}}})).map(e=>({executionId:e.id,taskId:e.taskId,taskTitle:e.task.title,projectId:e.task.project.id,projectName:e.task.project.name,projectAlias:e.task.project.alias,projectLocalPath:e.task.project.localPath,workspaceId:e.task.project.workspace.id,workspaceName:e.task.project.workspace.name,worktreePath:e.worktreePath,startedAt:e.startedAt?.toISOString()??null}))}(0,T.ensureServerEntryExports)([M,_,F,q,L,B,$,G,H,V]),(0,R.registerServerReference)(M,"608c99a334ec1cff02e2909d20038018ed4c254a1a",null),(0,R.registerServerReference)(_,"4050875953ab3d987ed8747fbccf99e4bbf3a22c0f",null),(0,R.registerServerReference)(F,"780cdd8653eb5a65664495e04065f3f066181e87f0",null),(0,R.registerServerReference)(q,"6001ade4bc50d0dd33ab06e73f4ead4072029993a7",null),(0,R.registerServerReference)(L,"4011817d088a72a161c109394105b2d10de7c02e85",null),(0,R.registerServerReference)(B,"40e9c9883d3e3adc6e097a5e931eb124243304e51b",null),(0,R.registerServerReference)($,"60398ad1521d8adea6d4c35543f4f49825deedf810",null),(0,R.registerServerReference)(G,"40463e4748e1e13214dfe5c3a973248a359c6f932a",null),(0,R.registerServerReference)(H,"78374c7bf0e2dfb01b8d6f89b9b4896a3e4c372f10",null),(0,R.registerServerReference)(V,"003ba4d1bba2777fcbe4714b92434012320c17fe0c",null);let K=v.z.object({prompt:v.z.string().optional().default("")});async function W(e,{params:t}){let a=(0,m.requireLocalhost)(e);if(a)return a;let{taskId:r}=await t,i=(0,m.validateTaskId)(r);if(i)return i;try{let t=await e.json(),a=K.safeParse(t);if(!a.success)return b.NextResponse.json({error:"Invalid body"},{status:400});let i=await H(r,a.data.prompt);return b.NextResponse.json(i)}catch(t){let e=t instanceof Error?t.message:String(t);return b.NextResponse.json({error:e},{status:500})}}e.s(["POST",0,W,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],23205);var z=e.i(23205);let X=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/internal/terminal/[taskId]/start/route",pathname:"/api/internal/terminal/[taskId]/start",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/project/f/tower/src/app/api/internal/terminal/[taskId]/start/route.ts",nextConfigOutput:"",userland:z}),{workAsyncStorage:Z,workUnitAsyncStorage:J,serverHooks:Q}=X;async function Y(e,t,r){r.requestMeta&&(0,i.setRequestMeta)(e,r.requestMeta),X.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let b="/api/internal/terminal/[taskId]/start/route";b=b.replace(/\/index$/,"")||"/";let v=await X.prepare(e,t,{srcPage:b,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:m,params:R,nextConfig:g,parsedUrl:P,isDraftMode:A,prerenderManifest:I,routerServerContext:N,isOnDemandRevalidate:x,revalidateOnlyGenerated:y,resolvedPathname:S,clientReferenceManifest:j,serverActionsManifest:C}=v,T=(0,o.normalizeAppPath)(b),D=!!(I.dynamicRoutes[T]||I.routes[S]),U=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,P,!1):t.end("This page could not be found"),null);if(D&&!A){let e=!!I.routes[S],t=I.dynamicRoutes[T];if(t&&!1===t.fallback&&!e){if(g.adapterPath)return await U();throw new k.NoFallbackError}}let O=null;!D||X.isDev||A||(O="/index"===(O=S)?"/":O);let M=!0===X.isDev||!D,_=D&&!M;C&&j&&(0,s.setManifestsSingleton)({page:b,clientReferenceManifest:j,serverActionsManifest:C});let F=e.method||"GET",q=(0,n.getTracer)(),L=q.getActiveScopeSpan(),B=!!(null==N?void 0:N.isWrappedByNextServer),$=!!(0,i.getRequestMeta)(e,"minimalMode"),G=(0,i.getRequestMeta)(e,"incrementalCache")||await X.getIncrementalCache(e,g,I,$);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let H={params:R,previewProps:I.preview,renderOpts:{experimental:{authInterrupts:!!g.experimental.authInterrupts},cacheComponents:!!g.cacheComponents,supportsDynamicResponse:M,incrementalCache:G,cacheLifeProfiles:g.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>X.onRequestError(e,t,r,i,N)},sharedContext:{buildId:m}},V=new d.NodeNextRequest(e),K=new d.NodeNextResponse(t),W=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(t));try{let i,s=async e=>X.handle(W,H).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=q.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${F} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",r),i.updateName(t))}else e.updateName(`${F} ${b}`)}),o=async i=>{var n,o;let d=async({previousCacheEntry:a})=>{try{if(!$&&x&&y&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await s(i);e.fetchMetrics=H.renderOpts.fetchMetrics;let o=H.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let d=H.renderOpts.collectedTags;if(!D)return await (0,p.sendResponse)(V,K,n,H.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,w.toNodeOutgoingHttpHeaders)(n.headers);d&&(t[f.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==H.renderOpts.collectedRevalidate&&!(H.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&H.renderOpts.collectedRevalidate,r=void 0===H.renderOpts.collectedExpire||H.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:H.renderOpts.collectedExpire;return{value:{kind:E.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await X.onRequestError(e,t,{routerKind:"App Router",routePath:b,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:_,isOnDemandRevalidate:x})},!1,N),t}},l=await X.handleResponse({req:e,nextConfig:g,cacheKey:O,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:I,isRoutePPREnabled:!1,isOnDemandRevalidate:x,revalidateOnlyGenerated:y,responseGenerator:d,waitUntil:r.waitUntil,isMinimalMode:$});if(!D)return null;if((null==l||null==(n=l.value)?void 0:n.kind)!==E.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(o=l.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});$||t.setHeader("x-nextjs-cache",x?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,w.fromNodeOutgoingHttpHeaders)(l.value.headers);return $&&D||c.delete(f.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,h.getCacheControlHeader)(l.cacheControl)),await (0,p.sendResponse)(V,K,new Response(l.value.body,{headers:c,status:l.value.status||200})),null};B&&L?await o(L):(i=q.getActiveScopeSpan(),await q.withPropagatedContext(e.headers,()=>q.trace(c.BaseServerSpan.handleRequest,{spanName:`${F} ${b}`,kind:n.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},o),void 0,!B))}catch(t){if(t instanceof k.NoFallbackError||await X.onRequestError(e,t,{routerKind:"App Router",routePath:T,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:_,isOnDemandRevalidate:x})},!1,N),D)throw t;return await (0,p.sendResponse)(V,K,new Response(null,{status:500})),null}}e.s(["handler",0,Y,"patchFetch",0,function(){return(0,r.patchFetch)({workAsyncStorage:Z,workUnitAsyncStorage:J})},"routeModule",0,X,"serverHooks",0,Q,"workAsyncStorage",0,Z,"workUnitAsyncStorage",0,J],643104)}];
|
|
3
3
|
|
|
4
4
|
//# sourceMappingURL=0uz~_next_dist_esm_build_templates_app-route_05yec2y.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},383893,e=>{"use strict";var t=e.i(532087);let r=["localhost","127.0.0.1","[::1]"],s=new Set(["127.0.0.1","::1","::ffff:127.0.0.1"]),i=/^c[a-z0-9]{20,30}$/;e.s(["requireLocalhost",0,function(e){let i=e.headers.get("x-forwarded-for");if(i&&!i.split(",").map(e=>e.trim()).every(e=>s.has(e)))return t.NextResponse.json({error:"Forbidden"},{status:403});let n=e.headers.get("host")??"";return r.some(e=>n.startsWith(e))?null:t.NextResponse.json({error:"Forbidden"},{status:403})},"validateProjectId",0,function(e){return i.test(e)?null:t.NextResponse.json({error:"Invalid projectId format"},{status:400})},"validateTaskId",0,function(e){return i.test(e)?null:t.NextResponse.json({error:"Invalid taskId format"},{status:400})}])},655315,(e,t,r)=>{t.exports=e.x("@prisma/client-ac1b8067b36ef9d3",()=>require("@prisma/client-ac1b8067b36ef9d3"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},456551,(e,t,r)=>{t.exports=e.x("node-pty-0c54088e7263f93d",()=>require("node-pty-0c54088e7263f93d"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},498445,e=>{"use strict";var t=e.i(902157),r=e.i(660526),s=e.i(750227),i=e.i(831757);let n=["sonnet","opus","haiku","claude-sonnet-4-6","claude-opus-4-6","claude-haiku-4-5-20251001"];e.s(["ClaudeCliAdapter",0,class{buildSpawnArgs(e){let t=["--dangerously-skip-permissions"];e.extraArgs?.length&&t.push(...e.extraArgs),e.resumeSessionId?t.push("--resume",e.resumeSessionId):e.continueLatest?t.push("--continue"):e.prompt&&t.push(e.prompt);let r={...e.envOverrides??{}};return{command:this.resolveCommand(),args:t,env:r}}buildEnvOverrides(e){let t={TOWER_TASK_ID:e.taskId,TOWER_TASK_TITLE:e.taskTitle,TOWER_STARTED_AT:new Date().toISOString(),TOWER_API_URL:e.apiUrl};return e.callbackUrl&&(t.CALLBACK_URL=e.callbackUrl),t}async installHooks(e){let t=this.readSettings(),r=t.hooks??{},i=this.getPostToolUseArray(t);if(this.findTowerHookIndex(i)>=0)return;let n=s.join(process.cwd(),"scripts","post-tool-hook.js"),o={hooks:[{command:`node "${n}"`,timeout:10,type:"command"}],matcher:"Write|Edit|MultiEdit"};t.hooks={...r,PostToolUse:[...i,o]},this.writeSettings(t)}async uninstallHooks(){let e=this.readSettings(),t=e.hooks??{},r=this.getPostToolUseArray(e).filter(e=>!e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")));e.hooks={...t,PostToolUse:r},this.writeSettings(e)}async isHooksInstalled(){let e=this.readSettings(),t=this.getPostToolUseArray(e);return this.findTowerHookIndex(t)>=0}async isAvailable(){return null!==await this.getVersion()}async getVersion(){try{let{execFile:t}=await e.A(144264),{promisify:r}=await e.A(534777),s=r(t),i=this.resolveCommand(),{stdout:n}=await s(i,["--version"],{timeout:5e3});return n.trim()||null}catch{return null}}async getModels(){return n}getConfigDir(){return s.join(r.homedir(),".claude")}getSettingsPath(){return s.join(this.getConfigDir(),"settings.json")}getSessionsDir(){return s.join(this.getConfigDir(),"projects")}resolveCommand(){return process.env.CLAUDE_CODE_PATH?process.env.CLAUDE_CODE_PATH:(0,i.resolveCommandPathSync)("claude")}readSettings(){try{return JSON.parse(t.readFileSync(this.getSettingsPath(),"utf-8"))}catch{return{}}}writeSettings(e){let r=this.getConfigDir();t.existsSync(r)||t.mkdirSync(r,{recursive:!0}),t.writeFileSync(this.getSettingsPath(),JSON.stringify(e,null,2),"utf-8")}getPostToolUseArray(e){let t=e.hooks;if(!t)return[];let r=t.PostToolUse;return Array.isArray(r)?r:[]}findTowerHookIndex(e){return e.findIndex(e=>e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")))}}])},831757,e=>{"use strict";var t=e.i(902157),r=e.i(874533),s=e.i(750227);function i(e=process.platform){return"win32"===e}function n(e){let t=e.replace(/\r\n|\r|\n/g," ");if(!t.length)return'""';let r=t.replace(/"/g,'""');return/[\s"&<>|^()]/.test(r)?`"${r}"`:r}let o=["CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION","CLAUDE_CODE_PARENT_SESSION"];async function a(e,t={}){let r=t.cwd??process.cwd(),n=t.env??process.env,o=t.platform??process.platform;if(e.includes("/")||e.includes("\\")){let t=s.default.isAbsolute(e)?e:s.default.resolve(r,e);return await p(t,o)?t:null}let l=n.PATH??n.Path??"",c=i(o)?";":":",u=l.split(c).filter(Boolean),d=i(o)?(n.PATHEXT??".EXE;.CMD;.BAT;.COM").split(";").filter(Boolean):[""],m=i(o)&&s.default.extname(e).length>0;for(let t of u)for(let r of i(o)?m?[s.default.join(t,e)]:d.map(r=>s.default.join(t,`${e}${r}`)):[s.default.join(t,e)])if(await p(r,o))return r;return null}let l=e=>(0,r.execSync)(e,{encoding:"utf-8",timeout:5e3});function c(e,t=process.platform,r=l){if(s.default.extname(e)||e.includes("/")||e.includes("\\"))return e;if(!i(t)){try{let t=r(`which ${e}`).trim();if(t)return t}catch{}return e}try{let t=r(`where ${e}`).trim().split("\n").map(e=>e.trim()).filter(Boolean),s=t.find(e=>/\.(cmd|bat|exe)$/i.test(e));if(s)return s;if(t.length>0)return t[0]}catch{}return e}async function u(e,t,r={}){let s=r.env??process.env,i=r.platform??process.platform;return d(await a(e,r)??e,t,s,i)}function d(e,t,r,o){if(!i(o))return{command:e,args:t};let a=s.default.extname(e).toLowerCase();return".cmd"===a||".bat"===a||".com"===a?{command:r.ComSpec||"cmd.exe",args:["/d","/s","/c",[n(e),...t.map(n)].join(" ")]}:{command:e,args:t}}async function p(e,r=process.platform){try{return await t.promises.access(e,i(r)?t.constants.F_OK:t.constants.X_OK),!0}catch{return!1}}async function m(e=process.platform){return i(e)?h():f()}async function f(){try{let e=await t.promises.readFile("/etc/shells","utf-8"),r=[],i=new Map;for(let t of e.split("\n")){let e=t.replace(/#.*/,"").trim();if(!e||!e.startsWith("/")||!await p(e))continue;let n=s.default.basename(e),o=i.get(n)??0;i.set(n,o+1),o>0&&(n=`${n} (${o+1})`),r.push({name:n,path:e})}return r}catch{let e=[];for(let t of["/bin/zsh","/bin/bash","/bin/sh"])await p(t)&&e.push({name:s.default.basename(t),path:t});return e}}async function h(){let e=[],t=[],r=await a("git",{platform:"win32"});if(r){let e=s.default.resolve(s.default.dirname(r),"..","..");t.push(s.default.join(e,"bin","bash.exe"),s.default.join(e,"usr","bin","bash.exe"))}for(let e of[process.env.ProgramW6432,process.env.ProgramFiles,process.env["ProgramFiles(x86)"],process.env.LocalAppData?s.default.join(process.env.LocalAppData,"Programs"):null].filter(Boolean))t.push(s.default.join(e,"Git","bin","bash.exe"),s.default.join(e,"Git","usr","bin","bash.exe"));let i=process.env.USERPROFILE??"";for(let r of(i&&t.push(s.default.join(i,"scoop","apps","git","current","bin","bash.exe")),process.env.CLAUDE_CODE_GIT_BASH_PATH&&t.unshift(process.env.CLAUDE_CODE_GIT_BASH_PATH),t))if(await p(r,"win32")){e.push({name:"Git Bash",path:r});break}let n=await a("pwsh",{platform:"win32"});n&&e.push({name:"PowerShell",path:n});let o=process.env.windir??"C:\\WINDOWS",l=s.default.join(o,"System32","WindowsPowerShell","v1.0","powershell.exe");await p(l,"win32")&&e.push({name:"Windows PowerShell",path:l});let c=process.env.ComSpec??s.default.join(o,"System32","cmd.exe");return await p(c,"win32")&&e.push({name:"Command Prompt",path:c}),e}let g=[{name:"Terminal",bundleName:"Terminal"},{name:"iTerm2",bundleName:"iTerm"},{name:"Warp",bundleName:"Warp"},{name:"Alacritty",bundleName:"Alacritty"},{name:"WezTerm",bundleName:"WezTerm"},{name:"kitty",bundleName:"kitty"},{name:"Hyper",bundleName:"Hyper"}];async function v(e=process.platform){if("darwin"===e){let t=[];for(let r of g)await p(`/Applications/${r.bundleName}.app`,e)&&t.push({name:r.name,value:r.bundleName});return t}if(i(e)){let t=[],r=await a("wt",{platform:e});return r&&t.push({name:"Windows Terminal",value:r}),t}return[]}e.s(["detectShells",0,m,"detectTerminalApps",0,v,"ensurePathInEnv",0,function(e,t=process.platform){let r=i(t)?"Path":"PATH";return(e.PATH??e.Path??"").length>0?e:{...e,[r]:function(e=process.platform){return i(e)?"C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem":"/usr/local/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"}(t)}},"resolveCommandPath",0,a,"resolveCommandPathSync",0,c,"resolveSpawnTarget",0,u,"resolveSpawnTargetSync",0,function(e,t,r=process.platform,s){return d(c(e,r,s),t,process.env,r)},"stripClaudeNestingEnv",0,function(e){let t={...e};for(let e of o)delete t[e];return t}])},707940,e=>{"use strict";var t=e.i(456551),r=e.i(831757);class s{taskId;_pty;killed=!1;disconnectTimer=null;_buffer="";static BUFFER_MAX=51200;_onData;_exitListeners=[];_idleTimer=null;_idleThresholdMs;_onIdle;_idleFired=!1;constructor(e,i,n,o,a,l,c,u,d){this.taskId=e,this._onData=a,this._onIdle=u??null,this._idleThresholdMs=Math.max(d??18e4,18e4);const p={...(0,r.stripClaudeNestingEnv)((0,r.ensurePathInEnv)(process.env)),TERM:"xterm-color",...c};try{this._pty=t.spawn(i,n,{name:"xterm-color",cols:80,rows:24,cwd:o,env:p})}catch(e){throw console.error(`[pty] spawn failed: command="${i}", cwd="${o}", PATH="${p.PATH?.slice(0,200)}"`),e}this._pty.onData(e=>{this._buffer+=e,this._buffer.length>s.BUFFER_MAX&&(this._buffer=this._buffer.slice(this._buffer.length-s.BUFFER_MAX)),this._resetIdleTimer(),this._onData(e)}),this._pty.onExit(({exitCode:e,signal:t})=>{for(let r of(this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),l(e,t),this._exitListeners))r(e)}),this._resetIdleTimer()}_resetIdleTimer(){this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),null===this._onIdle||this.killed||this._idleFired||(this._idleTimer=setTimeout(()=>{this._idleFired=!0,this._onIdle?.()},this._idleThresholdMs))}setDataListener(e){this._onData=e}setExitListener(e){this._exitListeners=[e]}write(e){this.killed||(this._resetIdleTimer(),this._pty.write(e))}resize(e,t){this.killed||this._pty.resize(e,t)}getBuffer(){return this._buffer}get isIdle(){return this._idleFired}kill(){if(!this.killed){this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null);try{this._pty.kill()}catch{}}}}let i=globalThis;i.__ptySessions||(i.__ptySessions=new Map);let n=i.__ptySessions;function o(e){let t=n.get(e);t&&(n.delete(e),t.disconnectTimer&&(clearTimeout(t.disconnectTimer),t.disconnectTimer=null),t.kill())}function a(){for(let e of n.keys())o(e)}process.once("SIGTERM",()=>{console.error("[session-store] SIGTERM received — cleaning up PTY sessions"),a()}),process.once("SIGINT",()=>{console.error("[session-store] SIGINT received — cleaning up PTY sessions"),a()}),e.s(["createSession",0,function(e,t,i,a,l,c,u,d,p){o(e);let{command:m,args:f}=(0,r.resolveSpawnTargetSync)(t,i),h=new s(e,m,f,a,l,c,u,d,p);return n.set(e,h),h},"destroySession",0,o,"getSession",0,function(e){return n.get(e)}],707940)},429468,e=>{"use strict";var t=e.i(655315);let r=globalThis.prisma??new t.PrismaClient({log:[]});process.on("SIGTERM",()=>{r.$disconnect().catch(()=>{})}),process.on("SIGINT",()=>{r.$disconnect().catch(()=>{})}),e.s(["db",0,r])},987300,e=>{"use strict";var t=e.i(429468);async function r(e,r){let s=await t.db.systemConfig.findUnique({where:{key:e}});if(!s)return r;try{return JSON.parse(s.value)}catch{return r}}e.s(["readConfigValue",0,r])},575572,(e,t,r)=>{"use strict";t.exports=e.r(585005).vendored["react-rsc"].ReactServerDOMTurbopackServer},236422,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"registerServerReference",{enumerable:!0,get:function(){return s.registerServerReference}});let s=e.r(575572)},12421,(e,t,r)=>{"use strict";function s(e){for(let t=0;t<e.length;t++){let r=e[t];if("function"!=typeof r)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof r}.
|
|
1
|
+
module.exports=[660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},383893,e=>{"use strict";var t=e.i(532087);let r=["localhost","127.0.0.1","[::1]"],s=new Set(["127.0.0.1","::1","::ffff:127.0.0.1"]),i=/^c[a-z0-9]{20,30}$/;e.s(["requireLocalhost",0,function(e){let i=e.headers.get("x-forwarded-for");if(i&&!i.split(",").map(e=>e.trim()).every(e=>s.has(e)))return t.NextResponse.json({error:"Forbidden"},{status:403});let n=e.headers.get("host")??"";return r.some(e=>n.startsWith(e))?null:t.NextResponse.json({error:"Forbidden"},{status:403})},"validateProjectId",0,function(e){return i.test(e)?null:t.NextResponse.json({error:"Invalid projectId format"},{status:400})},"validateTaskId",0,function(e){return i.test(e)?null:t.NextResponse.json({error:"Invalid taskId format"},{status:400})}])},655315,(e,t,r)=>{t.exports=e.x("@prisma/client-ac1b8067b36ef9d3",()=>require("@prisma/client-ac1b8067b36ef9d3"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},456551,(e,t,r)=>{t.exports=e.x("node-pty-0c54088e7263f93d",()=>require("node-pty-0c54088e7263f93d"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},498445,e=>{"use strict";var t=e.i(902157),r=e.i(660526),s=e.i(750227),i=e.i(831757);let n=["sonnet","opus","haiku","claude-sonnet-4-6","claude-opus-4-6","claude-haiku-4-5-20251001"];e.s(["ClaudeCliAdapter",0,class{buildSpawnArgs(e){let t=["--dangerously-skip-permissions"];e.extraArgs?.length&&t.push(...e.extraArgs),e.resumeSessionId?t.push("--resume",e.resumeSessionId):e.continueLatest?t.push("--continue"):e.prompt&&t.push(e.prompt);let r={...e.envOverrides??{}};return{command:this.resolveCommand(),args:t,env:r}}buildEnvOverrides(e){let t={TOWER_TASK_ID:e.taskId,TOWER_TASK_TITLE:e.taskTitle,TOWER_STARTED_AT:new Date().toISOString(),TOWER_API_URL:e.apiUrl};return e.callbackUrl&&(t.CALLBACK_URL=e.callbackUrl),t}async installHooks(e){let t=this.readSettings(),r=t.hooks??{},i=this.getPostToolUseArray(t);if(this.findTowerHookIndex(i)>=0)return;let n=s.join(process.cwd(),"scripts","post-tool-hook.js"),o={hooks:[{command:`node "${n}"`,timeout:10,type:"command"}],matcher:"Write|Edit|MultiEdit"};t.hooks={...r,PostToolUse:[...i,o]},this.writeSettings(t)}async uninstallHooks(){let e=this.readSettings(),t=e.hooks??{},r=this.getPostToolUseArray(e).filter(e=>!e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")));e.hooks={...t,PostToolUse:r},this.writeSettings(e)}async isHooksInstalled(){let e=this.readSettings(),t=this.getPostToolUseArray(e);return this.findTowerHookIndex(t)>=0}async isAvailable(){return null!==await this.getVersion()}async getVersion(){try{let{execFile:t}=await e.A(144264),{promisify:r}=await e.A(534777),s=r(t),i=this.resolveCommand(),{stdout:n}=await s(i,["--version"],{timeout:5e3});return n.trim()||null}catch{return null}}async getModels(){return n}getConfigDir(){return s.join(r.homedir(),".claude")}getSettingsPath(){return s.join(this.getConfigDir(),"settings.json")}getSessionsDir(){return s.join(this.getConfigDir(),"projects")}resolveCommand(){return process.env.CLAUDE_CODE_PATH?process.env.CLAUDE_CODE_PATH:(0,i.resolveCommandPathSync)("claude")}readSettings(){try{return JSON.parse(t.readFileSync(this.getSettingsPath(),"utf-8"))}catch{return{}}}writeSettings(e){let r=this.getConfigDir();t.existsSync(r)||t.mkdirSync(r,{recursive:!0}),t.writeFileSync(this.getSettingsPath(),JSON.stringify(e,null,2),"utf-8")}getPostToolUseArray(e){let t=e.hooks;if(!t)return[];let r=t.PostToolUse;return Array.isArray(r)?r:[]}findTowerHookIndex(e){return e.findIndex(e=>e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")))}}])},831757,e=>{"use strict";var t=e.i(902157),r=e.i(874533),s=e.i(750227);function i(e=process.platform){return"win32"===e}function n(e){let t=e.replace(/\r\n|\r|\n/g," ");if(!t.length)return'""';let r=t.replace(/"/g,'""');return/[\s"&<>|^()]/.test(r)?`"${r}"`:r}let o=["CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION","CLAUDE_CODE_PARENT_SESSION"];async function a(e,t={}){let r=t.cwd??process.cwd(),n=t.env??process.env,o=t.platform??process.platform;if(e.includes("/")||e.includes("\\")){let t=s.default.isAbsolute(e)?e:s.default.resolve(r,e);return await p(t,o)?t:null}let l=n.PATH??n.Path??"",c=i(o)?";":":",u=l.split(c).filter(Boolean),d=i(o)?(n.PATHEXT??".EXE;.CMD;.BAT;.COM").split(";").filter(Boolean):[""],m=i(o)&&s.default.extname(e).length>0;for(let t of u)for(let r of i(o)?m?[s.default.join(t,e)]:d.map(r=>s.default.join(t,`${e}${r}`)):[s.default.join(t,e)])if(await p(r,o))return r;return null}let l=e=>(0,r.execSync)(e,{encoding:"utf-8",timeout:5e3});function c(e,t=process.platform,n=l){if(s.default.extname(e)||e.includes("/")||e.includes("\\"))return e;if(!i(t)){try{let t=(0,r.execFileSync)("which",[e],{encoding:"utf-8",timeout:5e3}).trim();if(t)return t}catch{}return e}try{let t=n(`where ${e}`).trim().split("\n").map(e=>e.trim()).filter(Boolean),r=t.find(e=>/\.(cmd|bat|exe)$/i.test(e));if(r)return r;if(t.length>0)return t[0]}catch{}return e}async function u(e,t,r={}){let s=r.env??process.env,i=r.platform??process.platform;return d(await a(e,r)??e,t,s,i)}function d(e,t,r,o){if(!i(o))return{command:e,args:t};let a=s.default.extname(e).toLowerCase();return".cmd"===a||".bat"===a||".com"===a?{command:r.ComSpec||"cmd.exe",args:["/d","/s","/c",[n(e),...t.map(n)].join(" ")]}:{command:e,args:t}}async function p(e,r=process.platform){try{return await t.promises.access(e,i(r)?t.constants.F_OK:t.constants.X_OK),!0}catch{return!1}}async function m(e=process.platform){return i(e)?h():f()}async function f(){try{let e=await t.promises.readFile("/etc/shells","utf-8"),r=[],i=new Map;for(let t of e.split("\n")){let e=t.replace(/#.*/,"").trim();if(!e||!e.startsWith("/")||!await p(e))continue;let n=s.default.basename(e),o=i.get(n)??0;i.set(n,o+1),o>0&&(n=`${n} (${o+1})`),r.push({name:n,path:e})}return r}catch{let e=[];for(let t of["/bin/zsh","/bin/bash","/bin/sh"])await p(t)&&e.push({name:s.default.basename(t),path:t});return e}}async function h(){let e=[],t=[],r=await a("git",{platform:"win32"});if(r){let e=s.default.resolve(s.default.dirname(r),"..","..");t.push(s.default.join(e,"bin","bash.exe"),s.default.join(e,"usr","bin","bash.exe"))}for(let e of[process.env.ProgramW6432,process.env.ProgramFiles,process.env["ProgramFiles(x86)"],process.env.LocalAppData?s.default.join(process.env.LocalAppData,"Programs"):null].filter(Boolean))t.push(s.default.join(e,"Git","bin","bash.exe"),s.default.join(e,"Git","usr","bin","bash.exe"));let i=process.env.USERPROFILE??"";for(let r of(i&&t.push(s.default.join(i,"scoop","apps","git","current","bin","bash.exe")),process.env.CLAUDE_CODE_GIT_BASH_PATH&&t.unshift(process.env.CLAUDE_CODE_GIT_BASH_PATH),t))if(await p(r,"win32")){e.push({name:"Git Bash",path:r});break}let n=await a("pwsh",{platform:"win32"});n&&e.push({name:"PowerShell",path:n});let o=process.env.windir??"C:\\WINDOWS",l=s.default.join(o,"System32","WindowsPowerShell","v1.0","powershell.exe");await p(l,"win32")&&e.push({name:"Windows PowerShell",path:l});let c=process.env.ComSpec??s.default.join(o,"System32","cmd.exe");return await p(c,"win32")&&e.push({name:"Command Prompt",path:c}),e}let g=[{name:"Terminal",bundleName:"Terminal"},{name:"iTerm2",bundleName:"iTerm"},{name:"Warp",bundleName:"Warp"},{name:"Alacritty",bundleName:"Alacritty"},{name:"WezTerm",bundleName:"WezTerm"},{name:"kitty",bundleName:"kitty"},{name:"Hyper",bundleName:"Hyper"}];async function v(e=process.platform){if("darwin"===e){let t=[];for(let r of g)await p(`/Applications/${r.bundleName}.app`,e)&&t.push({name:r.name,value:r.bundleName});return t}if(i(e)){let t=[],r=await a("wt",{platform:e});return r&&t.push({name:"Windows Terminal",value:r}),t}return[]}e.s(["detectShells",0,m,"detectTerminalApps",0,v,"ensurePathInEnv",0,function(e,t=process.platform){let r=i(t)?"Path":"PATH";return(e.PATH??e.Path??"").length>0?e:{...e,[r]:function(e=process.platform){return i(e)?"C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem":"/usr/local/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"}(t)}},"resolveCommandPath",0,a,"resolveCommandPathSync",0,c,"resolveSpawnTarget",0,u,"resolveSpawnTargetSync",0,function(e,t,r=process.platform,s){return d(c(e,r,s),t,process.env,r)},"stripClaudeNestingEnv",0,function(e){let t={...e};for(let e of o)delete t[e];return t}])},707940,e=>{"use strict";var t=e.i(456551),r=e.i(831757);class s{taskId;_pty;killed=!1;disconnectTimer=null;_buffer="";static BUFFER_MAX=51200;_onData;_exitListeners=[];_idleTimer=null;_idleThresholdMs;_onIdle;_idleFired=!1;constructor(e,i,n,o,a,l,c,u,d){this.taskId=e,this._onData=a,this._onIdle=u??null,this._idleThresholdMs=Math.max(d??18e4,18e4);const p={...(0,r.stripClaudeNestingEnv)((0,r.ensurePathInEnv)(process.env)),TERM:"xterm-color",...c};try{this._pty=t.spawn(i,n,{name:"xterm-color",cols:80,rows:24,cwd:o,env:p})}catch(e){throw console.error(`[pty] spawn failed: command="${i}", cwd="${o}", PATH="${p.PATH?.slice(0,200)}"`),e}this._pty.onData(e=>{this._buffer+=e,this._buffer.length>s.BUFFER_MAX&&(this._buffer=this._buffer.slice(this._buffer.length-s.BUFFER_MAX)),this._resetIdleTimer(),this._onData(e)}),this._pty.onExit(({exitCode:e,signal:t})=>{for(let r of(this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),l(e,t),this._exitListeners))r(e)}),this._resetIdleTimer()}_resetIdleTimer(){this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),null===this._onIdle||this.killed||this._idleFired||(this._idleTimer=setTimeout(()=>{this._idleFired=!0,this._onIdle?.()},this._idleThresholdMs))}setDataListener(e){this._onData=e}setExitListener(e){this._exitListeners=[e]}write(e){this.killed||(this._resetIdleTimer(),this._pty.write(e))}resize(e,t){this.killed||this._pty.resize(e,t)}getBuffer(){return this._buffer}get isIdle(){return this._idleFired}kill(){if(!this.killed){this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null);try{this._pty.kill()}catch{}}}}let i=globalThis;i.__ptySessions||(i.__ptySessions=new Map);let n=i.__ptySessions;function o(e){let t=n.get(e);t&&(n.delete(e),t.disconnectTimer&&(clearTimeout(t.disconnectTimer),t.disconnectTimer=null),t.kill())}function a(){for(let e of n.keys())o(e)}"phase-production-build"!==process.env.NEXT_PHASE&&(process.once("SIGTERM",()=>{console.error("[session-store] SIGTERM received — cleaning up PTY sessions"),a()}),process.once("SIGINT",()=>{console.error("[session-store] SIGINT received — cleaning up PTY sessions"),a()})),e.s(["createSession",0,function(e,t,i,a,l,c,u,d,p){o(e);let{command:m,args:f}=(0,r.resolveSpawnTargetSync)(t,i),h=new s(e,m,f,a,l,c,u,d,p);return n.set(e,h),h},"destroySession",0,o,"getSession",0,function(e){return n.get(e)}],707940)},429468,e=>{"use strict";var t=e.i(655315);let r=globalThis.prisma??new t.PrismaClient({log:[]});process.on("SIGTERM",()=>{r.$disconnect().catch(()=>{})}),process.on("SIGINT",()=>{r.$disconnect().catch(()=>{})}),e.s(["db",0,r])},987300,e=>{"use strict";var t=e.i(429468);async function r(e,r){let s=await t.db.systemConfig.findUnique({where:{key:e}});if(!s)return r;try{return JSON.parse(s.value)}catch{return r}}e.s(["readConfigValue",0,r])},575572,(e,t,r)=>{"use strict";t.exports=e.r(585005).vendored["react-rsc"].ReactServerDOMTurbopackServer},236422,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"registerServerReference",{enumerable:!0,get:function(){return s.registerServerReference}});let s=e.r(575572)},12421,(e,t,r)=>{"use strict";function s(e){for(let t=0;t<e.length;t++){let r=e[t];if("function"!=typeof r)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof r}.
|
|
2
2
|
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureServerEntryExports",{enumerable:!0,get:function(){return s}})},984629,e=>{"use strict";var t=e.i(429468);class r{providers=new Map;register(e){this.providers.set(e.name,e)}get(e){return this.providers.get(e)}getAll(){return Array.from(this.providers.values())}getCliAdapter(e){return this.providers.get(e)?.cli?.adapter??null}getQueryAdapter(e,t){let r=this.providers.get(e);return r?"api"===t?r.api?.adapter??null:r.cliQuery?.adapter??null:null}getAllowedCommands(){let e=[];for(let t of this.providers.values())t.cli?.command&&e.push(t.cli.command);return e}async getAvailableProviders(){let e=[];for(let t of this.providers.values()){let r=!!t.cli&&await t.cli.adapter.isAvailable(),s=r&&t.cli?await t.cli.adapter.getVersion():null,i=!!t.api&&!!process.env[t.api.keyEnvVar],n=!!t.api&&i;e.push({name:t.name,displayName:t.displayName,cli:{available:r,version:s},api:{available:n,keyConfigured:i}})}return e}}var s=e.i(498445);let i=globalThis;if(!i.__providerRegistry){let e=new r;e.register({name:"claude",displayName:"Claude Code",agentFieldValue:"CLAUDE_CODE",cli:{command:"claude",adapter:new s.ClaudeCliAdapter},models:{cli:["sonnet","opus","haiku","claude-sonnet-4-6","claude-opus-4-6","claude-haiku-4-5-20251001"],api:[]}}),i.__providerRegistry=e}let n=i.__providerRegistry;class o extends Error{code;provider;constructor(e,t,r){super(r),this.code=e,this.provider=t,this.name="AiProviderError"}}async function a(e){return t.db.aiCapabilityConfig.findUnique({where:{slot:e}})}async function l(e){let t=await a(e),r=t?.provider??"claude",s=t?.model??void 0,i=n.get(r);if(!i)throw new o("CLI_NOT_FOUND",r,`Provider "${r}" 未注册`);let l=i.cli?.adapter;if(!l)throw new o("UNSUPPORTED_MODE",r,`Provider "${r}" 不支持 CLI 模式`);return{adapter:l,provider:i,model:s}}e.s(["resolveCliAdapter",0,l],984629)},199709,e=>{"use strict";var t=e.i(233405),r=e.i(522734),s=e.i(924868),i=e.i(814747),n=e.i(446786),o=e.i(308241);function a(e){return e.startsWith("~/")||"~"===e?i.default.join(n.default.homedir(),e.slice(1)):e}async function l(e,n,l){let c=a(e),u=i.default.join(c,".worktrees","task-"+n),d="task/"+n;await (0,s.mkdir)(i.default.join(c,".worktrees"),{recursive:!0});let p=(0,t.execFileSync)("git",["worktree","list","--porcelain"],{cwd:c,encoding:"utf-8",timeout:1e4}),m=i.default.normalize(u).replace(/\\/g,"/");if(p.split("\n").some(e=>e.startsWith("worktree ")&&e.slice(9).replace(/\\/g,"/")===m))return{worktreePath:u,worktreeBranch:d};if((0,r.existsSync)(u)&&(o.logger.warn(`[worktree] Directory exists but not tracked by git, removing: ${u}`),(0,t.execFileSync)("git",["worktree","remove",u,"--force"],{cwd:c,encoding:"utf-8",timeout:3e4})),(0,t.execFileSync)("git",["branch","--list",d],{cwd:c,encoding:"utf-8",timeout:5e3}).trim())(0,t.execFileSync)("git",["worktree","add",u,d],{cwd:c,encoding:"utf-8",timeout:3e4});else{let e=l;try{(0,t.execFileSync)("git",["rev-parse","--verify",l],{cwd:c,encoding:"utf-8",timeout:5e3,stdio:["pipe","pipe","pipe"]})}catch{try{(0,t.execFileSync)("git",["rev-parse","--verify",`origin/${l}`],{cwd:c,encoding:"utf-8",timeout:5e3,stdio:["pipe","pipe","pipe"]}),e=`origin/${l}`}catch{throw Error(`Base branch '${l}' does not exist locally or on remote. Available branches: `+(0,t.execFileSync)("git",["branch","-a","--format=%(refname:short)"],{cwd:c,encoding:"utf-8",timeout:5e3}).trim().split("\n").join(", "))}}(0,t.execFileSync)("git",["worktree","add","-b",d,u,e],{cwd:c,encoding:"utf-8",timeout:3e4})}return function(e,t){let s=o.logger.create("worktree");for(let n of["node_modules",".next"]){let o=i.default.join(e,n),a=i.default.join(t,n);if((0,r.existsSync)(o)){try{(0,r.lstatSync)(a);continue}catch{}try{(0,r.symlinkSync)(o,a,"junction"),s.info(`Symlinked ${n}`,{from:o,to:a})}catch(e){s.warn(`Failed to symlink ${n}`,{error:String(e)})}}}}(c,u),{worktreePath:u,worktreeBranch:d}}async function c(e,s){let n=a(e),o=i.default.join(n,".worktrees","task-"+s),l="task/"+s;(0,r.existsSync)(o)&&(0,t.execFileSync)("git",["worktree","remove",o,"--force"],{cwd:n,encoding:"utf-8",timeout:3e4}),(0,t.execFileSync)("git",["branch","--list",l],{cwd:n,encoding:"utf-8",timeout:5e3}).trim()&&(0,t.execFileSync)("git",["branch","-D",l],{cwd:n,encoding:"utf-8",timeout:5e3})}e.s(["createWorktree",0,l,"removeWorktree",0,c])},144264,e=>{e.v(e=>Promise.resolve().then(()=>e(233405)))},534777,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_util_0wtvqkc._.js"].map(t=>e.l(t))).then(()=>t(224361)))},618443,e=>{e.v(e=>Promise.resolve().then(()=>e(707940)))},223657,e=>{e.v(t=>Promise.all(["server/chunks/project_f_tower_0ihrsvd._.js"].map(t=>e.l(t))).then(()=>t(496448)))},941877,e=>{e.v(t=>Promise.all(["server/chunks/project_f_tower_src_11e.cv5._.js"].map(t=>e.l(t))).then(()=>t(336577)))},260815,e=>{e.v(e=>Promise.resolve().then(()=>e(924868)))}];
|
|
3
3
|
|
|
4
4
|
//# sourceMappingURL=%5Broot-of-the-server%5D__00~8_qz._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},383893,e=>{"use strict";var t=e.i(532087);let r=["localhost","127.0.0.1","[::1]"],n=new Set(["127.0.0.1","::1","::ffff:127.0.0.1"]),s=/^c[a-z0-9]{20,30}$/;e.s(["requireLocalhost",0,function(e){let s=e.headers.get("x-forwarded-for");if(s&&!s.split(",").map(e=>e.trim()).every(e=>n.has(e)))return t.NextResponse.json({error:"Forbidden"},{status:403});let a=e.headers.get("host")??"";return r.some(e=>a.startsWith(e))?null:t.NextResponse.json({error:"Forbidden"},{status:403})},"validateProjectId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid projectId format"},{status:400})},"validateTaskId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid taskId format"},{status:400})}])},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},831757,e=>{"use strict";var t=e.i(902157),r=e.i(874533),n=e.i(750227);function s(e=process.platform){return"win32"===e}function a(e){let t=e.replace(/\r\n|\r|\n/g," ");if(!t.length)return'""';let r=t.replace(/"/g,'""');return/[\s"&<>|^()]/.test(r)?`"${r}"`:r}let o=["CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION","CLAUDE_CODE_PARENT_SESSION"];async function i(e,t={}){let r=t.cwd??process.cwd(),a=t.env??process.env,o=t.platform??process.platform;if(e.includes("/")||e.includes("\\")){let t=n.default.isAbsolute(e)?e:n.default.resolve(r,e);return await p(t,o)?t:null}let l=a.PATH??a.Path??"",u=s(o)?";":":",c=l.split(u).filter(Boolean),d=s(o)?(a.PATHEXT??".EXE;.CMD;.BAT;.COM").split(";").filter(Boolean):[""],h=s(o)&&n.default.extname(e).length>0;for(let t of c)for(let r of s(o)?h?[n.default.join(t,e)]:d.map(r=>n.default.join(t,`${e}${r}`)):[n.default.join(t,e)])if(await p(r,o))return r;return null}let l=e=>(0,r.execSync)(e,{encoding:"utf-8",timeout:5e3});function u(e,t=process.platform,r=l){if(n.default.extname(e)||e.includes("/")||e.includes("\\"))return e;if(!s(t)){try{let t=r(`which ${e}`).trim();if(t)return t}catch{}return e}try{let t=r(`where ${e}`).trim().split("\n").map(e=>e.trim()).filter(Boolean),n=t.find(e=>/\.(cmd|bat|exe)$/i.test(e));if(n)return n;if(t.length>0)return t[0]}catch{}return e}async function c(e,t,r={}){let n=r.env??process.env,s=r.platform??process.platform;return d(await i(e,r)??e,t,n,s)}function d(e,t,r,o){if(!s(o))return{command:e,args:t};let i=n.default.extname(e).toLowerCase();return".cmd"===i||".bat"===i||".com"===i?{command:r.ComSpec||"cmd.exe",args:["/d","/s","/c",[a(e),...t.map(a)].join(" ")]}:{command:e,args:t}}async function p(e,r=process.platform){try{return await t.promises.access(e,s(r)?t.constants.F_OK:t.constants.X_OK),!0}catch{return!1}}async function h(e=process.platform){return s(e)?f():m()}async function m(){try{let e=await t.promises.readFile("/etc/shells","utf-8"),r=[],s=new Map;for(let t of e.split("\n")){let e=t.replace(/#.*/,"").trim();if(!e||!e.startsWith("/")||!await p(e))continue;let a=n.default.basename(e),o=s.get(a)??0;s.set(a,o+1),o>0&&(a=`${a} (${o+1})`),r.push({name:a,path:e})}return r}catch{let e=[];for(let t of["/bin/zsh","/bin/bash","/bin/sh"])await p(t)&&e.push({name:n.default.basename(t),path:t});return e}}async function f(){let e=[],t=[],r=await i("git",{platform:"win32"});if(r){let e=n.default.resolve(n.default.dirname(r),"..","..");t.push(n.default.join(e,"bin","bash.exe"),n.default.join(e,"usr","bin","bash.exe"))}for(let e of[process.env.ProgramW6432,process.env.ProgramFiles,process.env["ProgramFiles(x86)"],process.env.LocalAppData?n.default.join(process.env.LocalAppData,"Programs"):null].filter(Boolean))t.push(n.default.join(e,"Git","bin","bash.exe"),n.default.join(e,"Git","usr","bin","bash.exe"));let s=process.env.USERPROFILE??"";for(let r of(s&&t.push(n.default.join(s,"scoop","apps","git","current","bin","bash.exe")),process.env.CLAUDE_CODE_GIT_BASH_PATH&&t.unshift(process.env.CLAUDE_CODE_GIT_BASH_PATH),t))if(await p(r,"win32")){e.push({name:"Git Bash",path:r});break}let a=await i("pwsh",{platform:"win32"});a&&e.push({name:"PowerShell",path:a});let o=process.env.windir??"C:\\WINDOWS",l=n.default.join(o,"System32","WindowsPowerShell","v1.0","powershell.exe");await p(l,"win32")&&e.push({name:"Windows PowerShell",path:l});let u=process.env.ComSpec??n.default.join(o,"System32","cmd.exe");return await p(u,"win32")&&e.push({name:"Command Prompt",path:u}),e}let v=[{name:"Terminal",bundleName:"Terminal"},{name:"iTerm2",bundleName:"iTerm"},{name:"Warp",bundleName:"Warp"},{name:"Alacritty",bundleName:"Alacritty"},{name:"WezTerm",bundleName:"WezTerm"},{name:"kitty",bundleName:"kitty"},{name:"Hyper",bundleName:"Hyper"}];async function w(e=process.platform){if("darwin"===e){let t=[];for(let r of v)await p(`/Applications/${r.bundleName}.app`,e)&&t.push({name:r.name,value:r.bundleName});return t}if(s(e)){let t=[],r=await i("wt",{platform:e});return r&&t.push({name:"Windows Terminal",value:r}),t}return[]}e.s(["detectShells",0,h,"detectTerminalApps",0,w,"ensurePathInEnv",0,function(e,t=process.platform){let r=s(t)?"Path":"PATH";return(e.PATH??e.Path??"").length>0?e:{...e,[r]:function(e=process.platform){return s(e)?"C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem":"/usr/local/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"}(t)}},"resolveCommandPath",0,i,"resolveCommandPathSync",0,u,"resolveSpawnTarget",0,c,"resolveSpawnTargetSync",0,function(e,t,r=process.platform,n){return d(u(e,r,n),t,process.env,r)},"stripClaudeNestingEnv",0,function(e){let t={...e};for(let e of o)delete t[e];return t}])},498445,e=>{"use strict";var t=e.i(902157),r=e.i(660526),n=e.i(750227),s=e.i(831757);let a=["sonnet","opus","haiku","claude-sonnet-4-6","claude-opus-4-6","claude-haiku-4-5-20251001"];e.s(["ClaudeCliAdapter",0,class{buildSpawnArgs(e){let t=["--dangerously-skip-permissions"];e.extraArgs?.length&&t.push(...e.extraArgs),e.resumeSessionId?t.push("--resume",e.resumeSessionId):e.continueLatest?t.push("--continue"):e.prompt&&t.push(e.prompt);let r={...e.envOverrides??{}};return{command:this.resolveCommand(),args:t,env:r}}buildEnvOverrides(e){let t={TOWER_TASK_ID:e.taskId,TOWER_TASK_TITLE:e.taskTitle,TOWER_STARTED_AT:new Date().toISOString(),TOWER_API_URL:e.apiUrl};return e.callbackUrl&&(t.CALLBACK_URL=e.callbackUrl),t}async installHooks(e){let t=this.readSettings(),r=t.hooks??{},s=this.getPostToolUseArray(t);if(this.findTowerHookIndex(s)>=0)return;let a=n.join(process.cwd(),"scripts","post-tool-hook.js"),o={hooks:[{command:`node "${a}"`,timeout:10,type:"command"}],matcher:"Write|Edit|MultiEdit"};t.hooks={...r,PostToolUse:[...s,o]},this.writeSettings(t)}async uninstallHooks(){let e=this.readSettings(),t=e.hooks??{},r=this.getPostToolUseArray(e).filter(e=>!e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")));e.hooks={...t,PostToolUse:r},this.writeSettings(e)}async isHooksInstalled(){let e=this.readSettings(),t=this.getPostToolUseArray(e);return this.findTowerHookIndex(t)>=0}async isAvailable(){return null!==await this.getVersion()}async getVersion(){try{let{execFile:t}=await e.A(144264),{promisify:r}=await e.A(534777),n=r(t),s=this.resolveCommand(),{stdout:a}=await n(s,["--version"],{timeout:5e3});return a.trim()||null}catch{return null}}async getModels(){return a}getConfigDir(){return n.join(r.homedir(),".claude")}getSettingsPath(){return n.join(this.getConfigDir(),"settings.json")}getSessionsDir(){return n.join(this.getConfigDir(),"projects")}resolveCommand(){return process.env.CLAUDE_CODE_PATH?process.env.CLAUDE_CODE_PATH:(0,s.resolveCommandPathSync)("claude")}readSettings(){try{return JSON.parse(t.readFileSync(this.getSettingsPath(),"utf-8"))}catch{return{}}}writeSettings(e){let r=this.getConfigDir();t.existsSync(r)||t.mkdirSync(r,{recursive:!0}),t.writeFileSync(this.getSettingsPath(),JSON.stringify(e,null,2),"utf-8")}getPostToolUseArray(e){let t=e.hooks;if(!t)return[];let r=t.PostToolUse;return Array.isArray(r)?r:[]}findTowerHookIndex(e){return e.findIndex(e=>e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")))}}])},140003,e=>{"use strict";var t=e.i(730358),r=e.i(70480),n=e.i(907338),s=e.i(976017),a=e.i(61776),o=e.i(973805),i=e.i(750012),l=e.i(986958),u=e.i(205236),c=e.i(748231),d=e.i(922554),p=e.i(841326),h=e.i(138459),m=e.i(157544),f=e.i(455548),v=e.i(193695);e.i(745561);var w=e.i(949568),g=e.i(532087),x=e.i(383893),y=e.i(750227);let E=new(e.i(498445)).ClaudeCliAdapter;async function A(e){let t=(0,x.requireLocalhost)(e);if(t)return t;let r=await E.isHooksInstalled(),n=y.join(process.cwd(),"scripts","post-tool-hook.js");return g.NextResponse.json({installed:r,hookPath:n})}async function C(e){let t=(0,x.requireLocalhost)(e);if(t)return t;let r=process.env.NEXTAUTH_URL??`http://localhost:${process.env.PORT??3e3}`;return await E.installHooks(r),g.NextResponse.json({success:!0})}async function R(e){let t=(0,x.requireLocalhost)(e);return t||(await E.uninstallHooks(),g.NextResponse.json({success:!0}))}e.s(["DELETE",0,R,"GET",0,A,"POST",0,C,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],829264);var T=e.i(829264);let S=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/internal/hooks/install/route",pathname:"/api/internal/hooks/install",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/project/f/tower/src/app/api/internal/hooks/install/route.ts",nextConfigOutput:"",userland:T}),{workAsyncStorage:b,workUnitAsyncStorage:P,serverHooks:k}=S;async function _(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),S.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/internal/hooks/install/route";g=g.replace(/\/index$/,"")||"/";let x=await S.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,params:E,nextConfig:A,parsedUrl:C,isDraftMode:R,prerenderManifest:T,routerServerContext:b,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,resolvedPathname:_,clientReferenceManifest:j,serverActionsManifest:N}=x,O=(0,i.normalizeAppPath)(g),I=!!(T.dynamicRoutes[O]||T.routes[_]),D=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,C,!1):t.end("This page could not be found"),null);if(I&&!R){let e=!!T.routes[_],t=T.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(A.adapterPath)return await D();throw new v.NoFallbackError}}let H=null;!I||S.isDev||R||(H="/index"===(H=_)?"/":H);let U=!0===S.isDev||!I,q=I&&!U;N&&j&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:j,serverActionsManifest:N});let L=e.method||"GET",W=(0,a.getTracer)(),$=W.getActiveScopeSpan(),M=!!(null==b?void 0:b.isWrappedByNextServer),F=!!(0,s.getRequestMeta)(e,"minimalMode"),B=(0,s.getRequestMeta)(e,"incrementalCache")||await S.getIncrementalCache(e,A,T,F);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let K={params:E,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts},cacheComponents:!!A.cacheComponents,supportsDynamicResponse:U,incrementalCache:B,cacheLifeProfiles:A.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>S.onRequestError(e,t,n,s,b)},sharedContext:{buildId:y}},G=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let s,o=async e=>S.handle(z,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=W.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${L} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${L} ${g}`)}),i=async s=>{var a,i;let l=async({previousCacheEntry:r})=>{try{if(!F&&P&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await o(s);e.fetchMetrics=K.renderOpts.fetchMetrics;let i=K.renderOpts.pendingWaitUntil;i&&n.waitUntil&&(n.waitUntil(i),i=void 0);let l=K.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(G,X,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[f.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await S.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,b),t}},u=await S.handleResponse({req:e,nextConfig:A,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:F});if(!I)return null;if((null==u||null==(a=u.value)?void 0:a.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});F||t.setHeader("x-nextjs-cache",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),R&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return F&&I||c.delete(f.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,m.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(G,X,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};M&&$?await i($):(s=W.getActiveScopeSpan(),await W.withPropagatedContext(e.headers,()=>W.trace(c.BaseServerSpan.handleRequest,{spanName:`${L} ${g}`,kind:a.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},i),void 0,!M))}catch(t){if(t instanceof v.NoFallbackError||await S.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,b),I)throw t;return await (0,p.sendResponse)(G,X,new Response(null,{status:500})),null}}e.s(["handler",0,_,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:P})},"routeModule",0,S,"serverHooks",0,k,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,P],140003)},144264,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_child_process_0pwkpv9._.js"].map(t=>e.l(t))).then(()=>t(233405)))},534777,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_util_0wtvqkc._.js"].map(t=>e.l(t))).then(()=>t(224361)))}];
|
|
1
|
+
module.exports=[660526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},383893,e=>{"use strict";var t=e.i(532087);let r=["localhost","127.0.0.1","[::1]"],n=new Set(["127.0.0.1","::1","::ffff:127.0.0.1"]),s=/^c[a-z0-9]{20,30}$/;e.s(["requireLocalhost",0,function(e){let s=e.headers.get("x-forwarded-for");if(s&&!s.split(",").map(e=>e.trim()).every(e=>n.has(e)))return t.NextResponse.json({error:"Forbidden"},{status:403});let a=e.headers.get("host")??"";return r.some(e=>a.startsWith(e))?null:t.NextResponse.json({error:"Forbidden"},{status:403})},"validateProjectId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid projectId format"},{status:400})},"validateTaskId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid taskId format"},{status:400})}])},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},831757,e=>{"use strict";var t=e.i(902157),r=e.i(874533),n=e.i(750227);function s(e=process.platform){return"win32"===e}function a(e){let t=e.replace(/\r\n|\r|\n/g," ");if(!t.length)return'""';let r=t.replace(/"/g,'""');return/[\s"&<>|^()]/.test(r)?`"${r}"`:r}let o=["CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION","CLAUDE_CODE_PARENT_SESSION"];async function i(e,t={}){let r=t.cwd??process.cwd(),a=t.env??process.env,o=t.platform??process.platform;if(e.includes("/")||e.includes("\\")){let t=n.default.isAbsolute(e)?e:n.default.resolve(r,e);return await p(t,o)?t:null}let l=a.PATH??a.Path??"",u=s(o)?";":":",c=l.split(u).filter(Boolean),d=s(o)?(a.PATHEXT??".EXE;.CMD;.BAT;.COM").split(";").filter(Boolean):[""],h=s(o)&&n.default.extname(e).length>0;for(let t of c)for(let r of s(o)?h?[n.default.join(t,e)]:d.map(r=>n.default.join(t,`${e}${r}`)):[n.default.join(t,e)])if(await p(r,o))return r;return null}let l=e=>(0,r.execSync)(e,{encoding:"utf-8",timeout:5e3});function u(e,t=process.platform,a=l){if(n.default.extname(e)||e.includes("/")||e.includes("\\"))return e;if(!s(t)){try{let t=(0,r.execFileSync)("which",[e],{encoding:"utf-8",timeout:5e3}).trim();if(t)return t}catch{}return e}try{let t=a(`where ${e}`).trim().split("\n").map(e=>e.trim()).filter(Boolean),r=t.find(e=>/\.(cmd|bat|exe)$/i.test(e));if(r)return r;if(t.length>0)return t[0]}catch{}return e}async function c(e,t,r={}){let n=r.env??process.env,s=r.platform??process.platform;return d(await i(e,r)??e,t,n,s)}function d(e,t,r,o){if(!s(o))return{command:e,args:t};let i=n.default.extname(e).toLowerCase();return".cmd"===i||".bat"===i||".com"===i?{command:r.ComSpec||"cmd.exe",args:["/d","/s","/c",[a(e),...t.map(a)].join(" ")]}:{command:e,args:t}}async function p(e,r=process.platform){try{return await t.promises.access(e,s(r)?t.constants.F_OK:t.constants.X_OK),!0}catch{return!1}}async function h(e=process.platform){return s(e)?f():m()}async function m(){try{let e=await t.promises.readFile("/etc/shells","utf-8"),r=[],s=new Map;for(let t of e.split("\n")){let e=t.replace(/#.*/,"").trim();if(!e||!e.startsWith("/")||!await p(e))continue;let a=n.default.basename(e),o=s.get(a)??0;s.set(a,o+1),o>0&&(a=`${a} (${o+1})`),r.push({name:a,path:e})}return r}catch{let e=[];for(let t of["/bin/zsh","/bin/bash","/bin/sh"])await p(t)&&e.push({name:n.default.basename(t),path:t});return e}}async function f(){let e=[],t=[],r=await i("git",{platform:"win32"});if(r){let e=n.default.resolve(n.default.dirname(r),"..","..");t.push(n.default.join(e,"bin","bash.exe"),n.default.join(e,"usr","bin","bash.exe"))}for(let e of[process.env.ProgramW6432,process.env.ProgramFiles,process.env["ProgramFiles(x86)"],process.env.LocalAppData?n.default.join(process.env.LocalAppData,"Programs"):null].filter(Boolean))t.push(n.default.join(e,"Git","bin","bash.exe"),n.default.join(e,"Git","usr","bin","bash.exe"));let s=process.env.USERPROFILE??"";for(let r of(s&&t.push(n.default.join(s,"scoop","apps","git","current","bin","bash.exe")),process.env.CLAUDE_CODE_GIT_BASH_PATH&&t.unshift(process.env.CLAUDE_CODE_GIT_BASH_PATH),t))if(await p(r,"win32")){e.push({name:"Git Bash",path:r});break}let a=await i("pwsh",{platform:"win32"});a&&e.push({name:"PowerShell",path:a});let o=process.env.windir??"C:\\WINDOWS",l=n.default.join(o,"System32","WindowsPowerShell","v1.0","powershell.exe");await p(l,"win32")&&e.push({name:"Windows PowerShell",path:l});let u=process.env.ComSpec??n.default.join(o,"System32","cmd.exe");return await p(u,"win32")&&e.push({name:"Command Prompt",path:u}),e}let v=[{name:"Terminal",bundleName:"Terminal"},{name:"iTerm2",bundleName:"iTerm"},{name:"Warp",bundleName:"Warp"},{name:"Alacritty",bundleName:"Alacritty"},{name:"WezTerm",bundleName:"WezTerm"},{name:"kitty",bundleName:"kitty"},{name:"Hyper",bundleName:"Hyper"}];async function w(e=process.platform){if("darwin"===e){let t=[];for(let r of v)await p(`/Applications/${r.bundleName}.app`,e)&&t.push({name:r.name,value:r.bundleName});return t}if(s(e)){let t=[],r=await i("wt",{platform:e});return r&&t.push({name:"Windows Terminal",value:r}),t}return[]}e.s(["detectShells",0,h,"detectTerminalApps",0,w,"ensurePathInEnv",0,function(e,t=process.platform){let r=s(t)?"Path":"PATH";return(e.PATH??e.Path??"").length>0?e:{...e,[r]:function(e=process.platform){return s(e)?"C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem":"/usr/local/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"}(t)}},"resolveCommandPath",0,i,"resolveCommandPathSync",0,u,"resolveSpawnTarget",0,c,"resolveSpawnTargetSync",0,function(e,t,r=process.platform,n){return d(u(e,r,n),t,process.env,r)},"stripClaudeNestingEnv",0,function(e){let t={...e};for(let e of o)delete t[e];return t}])},498445,e=>{"use strict";var t=e.i(902157),r=e.i(660526),n=e.i(750227),s=e.i(831757);let a=["sonnet","opus","haiku","claude-sonnet-4-6","claude-opus-4-6","claude-haiku-4-5-20251001"];e.s(["ClaudeCliAdapter",0,class{buildSpawnArgs(e){let t=["--dangerously-skip-permissions"];e.extraArgs?.length&&t.push(...e.extraArgs),e.resumeSessionId?t.push("--resume",e.resumeSessionId):e.continueLatest?t.push("--continue"):e.prompt&&t.push(e.prompt);let r={...e.envOverrides??{}};return{command:this.resolveCommand(),args:t,env:r}}buildEnvOverrides(e){let t={TOWER_TASK_ID:e.taskId,TOWER_TASK_TITLE:e.taskTitle,TOWER_STARTED_AT:new Date().toISOString(),TOWER_API_URL:e.apiUrl};return e.callbackUrl&&(t.CALLBACK_URL=e.callbackUrl),t}async installHooks(e){let t=this.readSettings(),r=t.hooks??{},s=this.getPostToolUseArray(t);if(this.findTowerHookIndex(s)>=0)return;let a=n.join(process.cwd(),"scripts","post-tool-hook.js"),o={hooks:[{command:`node "${a}"`,timeout:10,type:"command"}],matcher:"Write|Edit|MultiEdit"};t.hooks={...r,PostToolUse:[...s,o]},this.writeSettings(t)}async uninstallHooks(){let e=this.readSettings(),t=e.hooks??{},r=this.getPostToolUseArray(e).filter(e=>!e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")));e.hooks={...t,PostToolUse:r},this.writeSettings(e)}async isHooksInstalled(){let e=this.readSettings(),t=this.getPostToolUseArray(e);return this.findTowerHookIndex(t)>=0}async isAvailable(){return null!==await this.getVersion()}async getVersion(){try{let{execFile:t}=await e.A(144264),{promisify:r}=await e.A(534777),n=r(t),s=this.resolveCommand(),{stdout:a}=await n(s,["--version"],{timeout:5e3});return a.trim()||null}catch{return null}}async getModels(){return a}getConfigDir(){return n.join(r.homedir(),".claude")}getSettingsPath(){return n.join(this.getConfigDir(),"settings.json")}getSessionsDir(){return n.join(this.getConfigDir(),"projects")}resolveCommand(){return process.env.CLAUDE_CODE_PATH?process.env.CLAUDE_CODE_PATH:(0,s.resolveCommandPathSync)("claude")}readSettings(){try{return JSON.parse(t.readFileSync(this.getSettingsPath(),"utf-8"))}catch{return{}}}writeSettings(e){let r=this.getConfigDir();t.existsSync(r)||t.mkdirSync(r,{recursive:!0}),t.writeFileSync(this.getSettingsPath(),JSON.stringify(e,null,2),"utf-8")}getPostToolUseArray(e){let t=e.hooks;if(!t)return[];let r=t.PostToolUse;return Array.isArray(r)?r:[]}findTowerHookIndex(e){return e.findIndex(e=>e.hooks?.some(e=>e.command?.includes("post-tool-hook.js")))}}])},140003,e=>{"use strict";var t=e.i(730358),r=e.i(70480),n=e.i(907338),s=e.i(976017),a=e.i(61776),o=e.i(973805),i=e.i(750012),l=e.i(986958),u=e.i(205236),c=e.i(748231),d=e.i(922554),p=e.i(841326),h=e.i(138459),m=e.i(157544),f=e.i(455548),v=e.i(193695);e.i(745561);var w=e.i(949568),g=e.i(532087),x=e.i(383893),y=e.i(750227);let E=new(e.i(498445)).ClaudeCliAdapter;async function A(e){let t=(0,x.requireLocalhost)(e);if(t)return t;let r=await E.isHooksInstalled(),n=y.join(process.cwd(),"scripts","post-tool-hook.js");return g.NextResponse.json({installed:r,hookPath:n})}async function C(e){let t=(0,x.requireLocalhost)(e);if(t)return t;let r=process.env.NEXTAUTH_URL??`http://localhost:${process.env.PORT??3e3}`;return await E.installHooks(r),g.NextResponse.json({success:!0})}async function R(e){let t=(0,x.requireLocalhost)(e);return t||(await E.uninstallHooks(),g.NextResponse.json({success:!0}))}e.s(["DELETE",0,R,"GET",0,A,"POST",0,C,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],829264);var T=e.i(829264);let S=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/internal/hooks/install/route",pathname:"/api/internal/hooks/install",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/project/f/tower/src/app/api/internal/hooks/install/route.ts",nextConfigOutput:"",userland:T}),{workAsyncStorage:b,workUnitAsyncStorage:P,serverHooks:k}=S;async function _(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),S.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/internal/hooks/install/route";g=g.replace(/\/index$/,"")||"/";let x=await S.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,params:E,nextConfig:A,parsedUrl:C,isDraftMode:R,prerenderManifest:T,routerServerContext:b,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,resolvedPathname:_,clientReferenceManifest:j,serverActionsManifest:N}=x,O=(0,i.normalizeAppPath)(g),I=!!(T.dynamicRoutes[O]||T.routes[_]),D=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,C,!1):t.end("This page could not be found"),null);if(I&&!R){let e=!!T.routes[_],t=T.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(A.adapterPath)return await D();throw new v.NoFallbackError}}let H=null;!I||S.isDev||R||(H="/index"===(H=_)?"/":H);let U=!0===S.isDev||!I,q=I&&!U;N&&j&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:j,serverActionsManifest:N});let L=e.method||"GET",W=(0,a.getTracer)(),M=W.getActiveScopeSpan(),$=!!(null==b?void 0:b.isWrappedByNextServer),F=!!(0,s.getRequestMeta)(e,"minimalMode"),B=(0,s.getRequestMeta)(e,"incrementalCache")||await S.getIncrementalCache(e,A,T,F);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let K={params:E,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts},cacheComponents:!!A.cacheComponents,supportsDynamicResponse:U,incrementalCache:B,cacheLifeProfiles:A.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>S.onRequestError(e,t,n,s,b)},sharedContext:{buildId:y}},G=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let s,o=async e=>S.handle(z,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=W.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${L} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${L} ${g}`)}),i=async s=>{var a,i;let l=async({previousCacheEntry:r})=>{try{if(!F&&P&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await o(s);e.fetchMetrics=K.renderOpts.fetchMetrics;let i=K.renderOpts.pendingWaitUntil;i&&n.waitUntil&&(n.waitUntil(i),i=void 0);let l=K.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(G,X,a,K.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[f.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await S.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,b),t}},u=await S.handleResponse({req:e,nextConfig:A,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:F});if(!I)return null;if((null==u||null==(a=u.value)?void 0:a.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});F||t.setHeader("x-nextjs-cache",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),R&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return F&&I||c.delete(f.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,m.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(G,X,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};$&&M?await i(M):(s=W.getActiveScopeSpan(),await W.withPropagatedContext(e.headers,()=>W.trace(c.BaseServerSpan.handleRequest,{spanName:`${L} ${g}`,kind:a.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},i),void 0,!$))}catch(t){if(t instanceof v.NoFallbackError||await S.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:P})},!1,b),I)throw t;return await (0,p.sendResponse)(G,X,new Response(null,{status:500})),null}}e.s(["handler",0,_,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:P})},"routeModule",0,S,"serverHooks",0,k,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,P],140003)},144264,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_child_process_0pwkpv9._.js"].map(t=>e.l(t))).then(()=>t(233405)))},534777,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_util_0wtvqkc._.js"].map(t=>e.l(t))).then(()=>t(224361)))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__05mc_xk._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},456551,(e,t,r)=>{t.exports=e.x("node-pty-0c54088e7263f93d",()=>require("node-pty-0c54088e7263f93d"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},383893,e=>{"use strict";var t=e.i(532087);let r=["localhost","127.0.0.1","[::1]"],n=new Set(["127.0.0.1","::1","::ffff:127.0.0.1"]),s=/^c[a-z0-9]{20,30}$/;e.s(["requireLocalhost",0,function(e){let s=e.headers.get("x-forwarded-for");if(s&&!s.split(",").map(e=>e.trim()).every(e=>n.has(e)))return t.NextResponse.json({error:"Forbidden"},{status:403});let i=e.headers.get("host")??"";return r.some(e=>i.startsWith(e))?null:t.NextResponse.json({error:"Forbidden"},{status:403})},"validateProjectId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid projectId format"},{status:400})},"validateTaskId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid taskId format"},{status:400})}])},831757,e=>{"use strict";var t=e.i(902157),r=e.i(874533),n=e.i(750227);function s(e=process.platform){return"win32"===e}function i(e){let t=e.replace(/\r\n|\r|\n/g," ");if(!t.length)return'""';let r=t.replace(/"/g,'""');return/[\s"&<>|^()]/.test(r)?`"${r}"`:r}let a=["CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION","CLAUDE_CODE_PARENT_SESSION"];async function o(e,t={}){let r=t.cwd??process.cwd(),i=t.env??process.env,a=t.platform??process.platform;if(e.includes("/")||e.includes("\\")){let t=n.default.isAbsolute(e)?e:n.default.resolve(r,e);return await p(t,a)?t:null}let l=i.PATH??i.Path??"",u=s(a)?";":":",d=l.split(u).filter(Boolean),c=s(a)?(i.PATHEXT??".EXE;.CMD;.BAT;.COM").split(";").filter(Boolean):[""],h=s(a)&&n.default.extname(e).length>0;for(let t of d)for(let r of s(a)?h?[n.default.join(t,e)]:c.map(r=>n.default.join(t,`${e}${r}`)):[n.default.join(t,e)])if(await p(r,a))return r;return null}let l=e=>(0,r.execSync)(e,{encoding:"utf-8",timeout:5e3});function u(e,t=process.platform,r=l){if(n.default.extname(e)||e.includes("/")||e.includes("\\"))return e;if(!s(t)){try{let t=r(`which ${e}`).trim();if(t)return t}catch{}return e}try{let t=r(`where ${e}`).trim().split("\n").map(e=>e.trim()).filter(Boolean),n=t.find(e=>/\.(cmd|bat|exe)$/i.test(e));if(n)return n;if(t.length>0)return t[0]}catch{}return e}async function d(e,t,r={}){let n=r.env??process.env,s=r.platform??process.platform;return c(await o(e,r)??e,t,n,s)}function c(e,t,r,a){if(!s(a))return{command:e,args:t};let o=n.default.extname(e).toLowerCase();return".cmd"===o||".bat"===o||".com"===o?{command:r.ComSpec||"cmd.exe",args:["/d","/s","/c",[i(e),...t.map(i)].join(" ")]}:{command:e,args:t}}async function p(e,r=process.platform){try{return await t.promises.access(e,s(r)?t.constants.F_OK:t.constants.X_OK),!0}catch{return!1}}async function h(e=process.platform){return s(e)?m():f()}async function f(){try{let e=await t.promises.readFile("/etc/shells","utf-8"),r=[],s=new Map;for(let t of e.split("\n")){let e=t.replace(/#.*/,"").trim();if(!e||!e.startsWith("/")||!await p(e))continue;let i=n.default.basename(e),a=s.get(i)??0;s.set(i,a+1),a>0&&(i=`${i} (${a+1})`),r.push({name:i,path:e})}return r}catch{let e=[];for(let t of["/bin/zsh","/bin/bash","/bin/sh"])await p(t)&&e.push({name:n.default.basename(t),path:t});return e}}async function m(){let e=[],t=[],r=await o("git",{platform:"win32"});if(r){let e=n.default.resolve(n.default.dirname(r),"..","..");t.push(n.default.join(e,"bin","bash.exe"),n.default.join(e,"usr","bin","bash.exe"))}for(let e of[process.env.ProgramW6432,process.env.ProgramFiles,process.env["ProgramFiles(x86)"],process.env.LocalAppData?n.default.join(process.env.LocalAppData,"Programs"):null].filter(Boolean))t.push(n.default.join(e,"Git","bin","bash.exe"),n.default.join(e,"Git","usr","bin","bash.exe"));let s=process.env.USERPROFILE??"";for(let r of(s&&t.push(n.default.join(s,"scoop","apps","git","current","bin","bash.exe")),process.env.CLAUDE_CODE_GIT_BASH_PATH&&t.unshift(process.env.CLAUDE_CODE_GIT_BASH_PATH),t))if(await p(r,"win32")){e.push({name:"Git Bash",path:r});break}let i=await o("pwsh",{platform:"win32"});i&&e.push({name:"PowerShell",path:i});let a=process.env.windir??"C:\\WINDOWS",l=n.default.join(a,"System32","WindowsPowerShell","v1.0","powershell.exe");await p(l,"win32")&&e.push({name:"Windows PowerShell",path:l});let u=process.env.ComSpec??n.default.join(a,"System32","cmd.exe");return await p(u,"win32")&&e.push({name:"Command Prompt",path:u}),e}let x=[{name:"Terminal",bundleName:"Terminal"},{name:"iTerm2",bundleName:"iTerm"},{name:"Warp",bundleName:"Warp"},{name:"Alacritty",bundleName:"Alacritty"},{name:"WezTerm",bundleName:"WezTerm"},{name:"kitty",bundleName:"kitty"},{name:"Hyper",bundleName:"Hyper"}];async function v(e=process.platform){if("darwin"===e){let t=[];for(let r of x)await p(`/Applications/${r.bundleName}.app`,e)&&t.push({name:r.name,value:r.bundleName});return t}if(s(e)){let t=[],r=await o("wt",{platform:e});return r&&t.push({name:"Windows Terminal",value:r}),t}return[]}e.s(["detectShells",0,h,"detectTerminalApps",0,v,"ensurePathInEnv",0,function(e,t=process.platform){let r=s(t)?"Path":"PATH";return(e.PATH??e.Path??"").length>0?e:{...e,[r]:function(e=process.platform){return s(e)?"C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem":"/usr/local/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"}(t)}},"resolveCommandPath",0,o,"resolveCommandPathSync",0,u,"resolveSpawnTarget",0,d,"resolveSpawnTargetSync",0,function(e,t,r=process.platform,n){return c(u(e,r,n),t,process.env,r)},"stripClaudeNestingEnv",0,function(e){let t={...e};for(let e of a)delete t[e];return t}])},707940,e=>{"use strict";var t=e.i(456551),r=e.i(831757);class n{taskId;_pty;killed=!1;disconnectTimer=null;_buffer="";static BUFFER_MAX=51200;_onData;_exitListeners=[];_idleTimer=null;_idleThresholdMs;_onIdle;_idleFired=!1;constructor(e,s,i,a,o,l,u,d,c){this.taskId=e,this._onData=o,this._onIdle=d??null,this._idleThresholdMs=Math.max(c??18e4,18e4);const p={...(0,r.stripClaudeNestingEnv)((0,r.ensurePathInEnv)(process.env)),TERM:"xterm-color",...u};try{this._pty=t.spawn(s,i,{name:"xterm-color",cols:80,rows:24,cwd:a,env:p})}catch(e){throw console.error(`[pty] spawn failed: command="${s}", cwd="${a}", PATH="${p.PATH?.slice(0,200)}"`),e}this._pty.onData(e=>{this._buffer+=e,this._buffer.length>n.BUFFER_MAX&&(this._buffer=this._buffer.slice(this._buffer.length-n.BUFFER_MAX)),this._resetIdleTimer(),this._onData(e)}),this._pty.onExit(({exitCode:e,signal:t})=>{for(let r of(this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),l(e,t),this._exitListeners))r(e)}),this._resetIdleTimer()}_resetIdleTimer(){this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),null===this._onIdle||this.killed||this._idleFired||(this._idleTimer=setTimeout(()=>{this._idleFired=!0,this._onIdle?.()},this._idleThresholdMs))}setDataListener(e){this._onData=e}setExitListener(e){this._exitListeners=[e]}write(e){this.killed||(this._resetIdleTimer(),this._pty.write(e))}resize(e,t){this.killed||this._pty.resize(e,t)}getBuffer(){return this._buffer}get isIdle(){return this._idleFired}kill(){if(!this.killed){this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null);try{this._pty.kill()}catch{}}}}let s=globalThis;s.__ptySessions||(s.__ptySessions=new Map);let i=s.__ptySessions;function a(e){let t=i.get(e);t&&(i.delete(e),t.disconnectTimer&&(clearTimeout(t.disconnectTimer),t.disconnectTimer=null),t.kill())}function o(){for(let e of i.keys())a(e)}process.once("SIGTERM",()=>{console.error("[session-store] SIGTERM received — cleaning up PTY sessions"),o()}),process.once("SIGINT",()=>{console.error("[session-store] SIGINT received — cleaning up PTY sessions"),o()}),e.s(["createSession",0,function(e,t,s,o,l,u,d,c,p){a(e);let{command:h,args:f}=(0,r.resolveSpawnTargetSync)(t,s),m=new n(e,h,f,o,l,u,d,c,p);return i.set(e,m),m},"destroySession",0,a,"getSession",0,function(e){return i.get(e)}],707940)},830786,e=>{"use strict";var t=e.i(730358),r=e.i(70480),n=e.i(907338),s=e.i(976017),i=e.i(61776),a=e.i(973805),o=e.i(750012),l=e.i(986958),u=e.i(205236),d=e.i(748231),c=e.i(922554),p=e.i(841326),h=e.i(138459),f=e.i(157544),m=e.i(455548),x=e.i(193695);e.i(745561);var v=e.i(949568),w=e.i(532087),_=e.i(423582),T=e.i(707940),g=e.i(383893);let y=_.z.object({text:_.z.string().min(1).max(1e4)});async function b(e,{params:t}){let r,n=(0,g.requireLocalhost)(e);if(n)return n;let{taskId:s}=await t,i=(0,g.validateTaskId)(s);if(i)return i;try{let t=await e.json();r=y.safeParse(t)}catch{return w.NextResponse.json({error:"Invalid body: text field required (string, 1-10000 chars)"},{status:400})}if(!r.success)return w.NextResponse.json({error:"Invalid body: text field required (string, 1-10000 chars)"},{status:400});let a=(0,T.getSession)(s);return a?a.killed?w.NextResponse.json({error:"Session has exited"},{status:410}):(a.write(r.data.text),w.NextResponse.json({ok:!0,taskId:s})):w.NextResponse.json({error:"No active session"},{status:404})}e.s(["POST",0,b,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],515001);var R=e.i(515001);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/internal/terminal/[taskId]/input/route",pathname:"/api/internal/terminal/[taskId]/input",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/project/f/tower/src/app/api/internal/terminal/[taskId]/input/route.ts",nextConfigOutput:"",userland:R}),{workAsyncStorage:C,workUnitAsyncStorage:S,serverHooks:A}=E;async function I(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),E.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/internal/terminal/[taskId]/input/route";w=w.replace(/\/index$/,"")||"/";let _=await E.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!_)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:T,params:g,nextConfig:y,parsedUrl:b,isDraftMode:R,prerenderManifest:C,routerServerContext:S,isOnDemandRevalidate:A,revalidateOnlyGenerated:I,resolvedPathname:P,clientReferenceManifest:N,serverActionsManifest:k}=_,j=(0,o.normalizeAppPath)(w),O=!!(C.dynamicRoutes[j]||C.routes[P]),D=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!R){let e=!!C.routes[P],t=C.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await D();throw new x.NoFallbackError}}let q=null;!O||E.isDev||R||(q="/index"===(q=P)?"/":q);let H=!0===E.isDev||!O,M=O&&!H;k&&N&&(0,a.setManifestsSingleton)({page:w,clientReferenceManifest:N,serverActionsManifest:k});let U=e.method||"GET",F=(0,i.getTracer)(),L=F.getActiveScopeSpan(),$=!!(null==S?void 0:S.isWrappedByNextServer),W=!!(0,s.getRequestMeta)(e,"minimalMode"),B=(0,s.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,y,C,W);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let G={params:g,previewProps:C.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:H,incrementalCache:B,cacheLifeProfiles:y.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>E.onRequestError(e,t,n,s,S)},sharedContext:{buildId:T}},K=new l.NodeNextRequest(e),z=new l.NodeNextResponse(t),X=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s,a=async e=>E.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${U} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${U} ${w}`)}),o=async s=>{var i,o;let l=async({previousCacheEntry:r})=>{try{if(!W&&A&&I&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await a(s);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,p.sendResponse)(K,z,i,G.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,n=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:A})},!1,S),t}},u=await E.handleResponse({req:e,nextConfig:y,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:I,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:W});if(!O)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});W||t.setHeader("x-nextjs-cache",A?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),R&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return W&&O||d.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(K,z,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};$&&L?await o(L):(s=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${U} ${w}`,kind:i.SpanKind.SERVER,attributes:{"http.method":U,"http.target":e.url}},o),void 0,!$))}catch(t){if(t instanceof x.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:A})},!1,S),O)throw t;return await (0,p.sendResponse)(K,z,new Response(null,{status:500})),null}}e.s(["handler",0,I,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:S})},"routeModule",0,E,"serverHooks",0,A,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,S],830786)}];
|
|
1
|
+
module.exports=[750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},902157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},874533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},456551,(e,t,r)=>{t.exports=e.x("node-pty-0c54088e7263f93d",()=>require("node-pty-0c54088e7263f93d"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},383893,e=>{"use strict";var t=e.i(532087);let r=["localhost","127.0.0.1","[::1]"],n=new Set(["127.0.0.1","::1","::ffff:127.0.0.1"]),s=/^c[a-z0-9]{20,30}$/;e.s(["requireLocalhost",0,function(e){let s=e.headers.get("x-forwarded-for");if(s&&!s.split(",").map(e=>e.trim()).every(e=>n.has(e)))return t.NextResponse.json({error:"Forbidden"},{status:403});let i=e.headers.get("host")??"";return r.some(e=>i.startsWith(e))?null:t.NextResponse.json({error:"Forbidden"},{status:403})},"validateProjectId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid projectId format"},{status:400})},"validateTaskId",0,function(e){return s.test(e)?null:t.NextResponse.json({error:"Invalid taskId format"},{status:400})}])},831757,e=>{"use strict";var t=e.i(902157),r=e.i(874533),n=e.i(750227);function s(e=process.platform){return"win32"===e}function i(e){let t=e.replace(/\r\n|\r|\n/g," ");if(!t.length)return'""';let r=t.replace(/"/g,'""');return/[\s"&<>|^()]/.test(r)?`"${r}"`:r}let a=["CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION","CLAUDE_CODE_PARENT_SESSION"];async function o(e,t={}){let r=t.cwd??process.cwd(),i=t.env??process.env,a=t.platform??process.platform;if(e.includes("/")||e.includes("\\")){let t=n.default.isAbsolute(e)?e:n.default.resolve(r,e);return await p(t,a)?t:null}let l=i.PATH??i.Path??"",u=s(a)?";":":",d=l.split(u).filter(Boolean),c=s(a)?(i.PATHEXT??".EXE;.CMD;.BAT;.COM").split(";").filter(Boolean):[""],h=s(a)&&n.default.extname(e).length>0;for(let t of d)for(let r of s(a)?h?[n.default.join(t,e)]:c.map(r=>n.default.join(t,`${e}${r}`)):[n.default.join(t,e)])if(await p(r,a))return r;return null}let l=e=>(0,r.execSync)(e,{encoding:"utf-8",timeout:5e3});function u(e,t=process.platform,i=l){if(n.default.extname(e)||e.includes("/")||e.includes("\\"))return e;if(!s(t)){try{let t=(0,r.execFileSync)("which",[e],{encoding:"utf-8",timeout:5e3}).trim();if(t)return t}catch{}return e}try{let t=i(`where ${e}`).trim().split("\n").map(e=>e.trim()).filter(Boolean),r=t.find(e=>/\.(cmd|bat|exe)$/i.test(e));if(r)return r;if(t.length>0)return t[0]}catch{}return e}async function d(e,t,r={}){let n=r.env??process.env,s=r.platform??process.platform;return c(await o(e,r)??e,t,n,s)}function c(e,t,r,a){if(!s(a))return{command:e,args:t};let o=n.default.extname(e).toLowerCase();return".cmd"===o||".bat"===o||".com"===o?{command:r.ComSpec||"cmd.exe",args:["/d","/s","/c",[i(e),...t.map(i)].join(" ")]}:{command:e,args:t}}async function p(e,r=process.platform){try{return await t.promises.access(e,s(r)?t.constants.F_OK:t.constants.X_OK),!0}catch{return!1}}async function h(e=process.platform){return s(e)?m():f()}async function f(){try{let e=await t.promises.readFile("/etc/shells","utf-8"),r=[],s=new Map;for(let t of e.split("\n")){let e=t.replace(/#.*/,"").trim();if(!e||!e.startsWith("/")||!await p(e))continue;let i=n.default.basename(e),a=s.get(i)??0;s.set(i,a+1),a>0&&(i=`${i} (${a+1})`),r.push({name:i,path:e})}return r}catch{let e=[];for(let t of["/bin/zsh","/bin/bash","/bin/sh"])await p(t)&&e.push({name:n.default.basename(t),path:t});return e}}async function m(){let e=[],t=[],r=await o("git",{platform:"win32"});if(r){let e=n.default.resolve(n.default.dirname(r),"..","..");t.push(n.default.join(e,"bin","bash.exe"),n.default.join(e,"usr","bin","bash.exe"))}for(let e of[process.env.ProgramW6432,process.env.ProgramFiles,process.env["ProgramFiles(x86)"],process.env.LocalAppData?n.default.join(process.env.LocalAppData,"Programs"):null].filter(Boolean))t.push(n.default.join(e,"Git","bin","bash.exe"),n.default.join(e,"Git","usr","bin","bash.exe"));let s=process.env.USERPROFILE??"";for(let r of(s&&t.push(n.default.join(s,"scoop","apps","git","current","bin","bash.exe")),process.env.CLAUDE_CODE_GIT_BASH_PATH&&t.unshift(process.env.CLAUDE_CODE_GIT_BASH_PATH),t))if(await p(r,"win32")){e.push({name:"Git Bash",path:r});break}let i=await o("pwsh",{platform:"win32"});i&&e.push({name:"PowerShell",path:i});let a=process.env.windir??"C:\\WINDOWS",l=n.default.join(a,"System32","WindowsPowerShell","v1.0","powershell.exe");await p(l,"win32")&&e.push({name:"Windows PowerShell",path:l});let u=process.env.ComSpec??n.default.join(a,"System32","cmd.exe");return await p(u,"win32")&&e.push({name:"Command Prompt",path:u}),e}let x=[{name:"Terminal",bundleName:"Terminal"},{name:"iTerm2",bundleName:"iTerm"},{name:"Warp",bundleName:"Warp"},{name:"Alacritty",bundleName:"Alacritty"},{name:"WezTerm",bundleName:"WezTerm"},{name:"kitty",bundleName:"kitty"},{name:"Hyper",bundleName:"Hyper"}];async function v(e=process.platform){if("darwin"===e){let t=[];for(let r of x)await p(`/Applications/${r.bundleName}.app`,e)&&t.push({name:r.name,value:r.bundleName});return t}if(s(e)){let t=[],r=await o("wt",{platform:e});return r&&t.push({name:"Windows Terminal",value:r}),t}return[]}e.s(["detectShells",0,h,"detectTerminalApps",0,v,"ensurePathInEnv",0,function(e,t=process.platform){let r=s(t)?"Path":"PATH";return(e.PATH??e.Path??"").length>0?e:{...e,[r]:function(e=process.platform){return s(e)?"C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem":"/usr/local/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"}(t)}},"resolveCommandPath",0,o,"resolveCommandPathSync",0,u,"resolveSpawnTarget",0,d,"resolveSpawnTargetSync",0,function(e,t,r=process.platform,n){return c(u(e,r,n),t,process.env,r)},"stripClaudeNestingEnv",0,function(e){let t={...e};for(let e of a)delete t[e];return t}])},707940,e=>{"use strict";var t=e.i(456551),r=e.i(831757);class n{taskId;_pty;killed=!1;disconnectTimer=null;_buffer="";static BUFFER_MAX=51200;_onData;_exitListeners=[];_idleTimer=null;_idleThresholdMs;_onIdle;_idleFired=!1;constructor(e,s,i,a,o,l,u,d,c){this.taskId=e,this._onData=o,this._onIdle=d??null,this._idleThresholdMs=Math.max(c??18e4,18e4);const p={...(0,r.stripClaudeNestingEnv)((0,r.ensurePathInEnv)(process.env)),TERM:"xterm-color",...u};try{this._pty=t.spawn(s,i,{name:"xterm-color",cols:80,rows:24,cwd:a,env:p})}catch(e){throw console.error(`[pty] spawn failed: command="${s}", cwd="${a}", PATH="${p.PATH?.slice(0,200)}"`),e}this._pty.onData(e=>{this._buffer+=e,this._buffer.length>n.BUFFER_MAX&&(this._buffer=this._buffer.slice(this._buffer.length-n.BUFFER_MAX)),this._resetIdleTimer(),this._onData(e)}),this._pty.onExit(({exitCode:e,signal:t})=>{for(let r of(this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),l(e,t),this._exitListeners))r(e)}),this._resetIdleTimer()}_resetIdleTimer(){this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null),null===this._onIdle||this.killed||this._idleFired||(this._idleTimer=setTimeout(()=>{this._idleFired=!0,this._onIdle?.()},this._idleThresholdMs))}setDataListener(e){this._onData=e}setExitListener(e){this._exitListeners=[e]}write(e){this.killed||(this._resetIdleTimer(),this._pty.write(e))}resize(e,t){this.killed||this._pty.resize(e,t)}getBuffer(){return this._buffer}get isIdle(){return this._idleFired}kill(){if(!this.killed){this.killed=!0,this._idleTimer&&(clearTimeout(this._idleTimer),this._idleTimer=null);try{this._pty.kill()}catch{}}}}let s=globalThis;s.__ptySessions||(s.__ptySessions=new Map);let i=s.__ptySessions;function a(e){let t=i.get(e);t&&(i.delete(e),t.disconnectTimer&&(clearTimeout(t.disconnectTimer),t.disconnectTimer=null),t.kill())}function o(){for(let e of i.keys())a(e)}"phase-production-build"!==process.env.NEXT_PHASE&&(process.once("SIGTERM",()=>{console.error("[session-store] SIGTERM received — cleaning up PTY sessions"),o()}),process.once("SIGINT",()=>{console.error("[session-store] SIGINT received — cleaning up PTY sessions"),o()})),e.s(["createSession",0,function(e,t,s,o,l,u,d,c,p){a(e);let{command:h,args:f}=(0,r.resolveSpawnTargetSync)(t,s),m=new n(e,h,f,o,l,u,d,c,p);return i.set(e,m),m},"destroySession",0,a,"getSession",0,function(e){return i.get(e)}],707940)},830786,e=>{"use strict";var t=e.i(730358),r=e.i(70480),n=e.i(907338),s=e.i(976017),i=e.i(61776),a=e.i(973805),o=e.i(750012),l=e.i(986958),u=e.i(205236),d=e.i(748231),c=e.i(922554),p=e.i(841326),h=e.i(138459),f=e.i(157544),m=e.i(455548),x=e.i(193695);e.i(745561);var v=e.i(949568),w=e.i(532087),_=e.i(423582),T=e.i(707940),g=e.i(383893);let y=_.z.object({text:_.z.string().min(1).max(1e4)});async function b(e,{params:t}){let r,n=(0,g.requireLocalhost)(e);if(n)return n;let{taskId:s}=await t,i=(0,g.validateTaskId)(s);if(i)return i;try{let t=await e.json();r=y.safeParse(t)}catch{return w.NextResponse.json({error:"Invalid body: text field required (string, 1-10000 chars)"},{status:400})}if(!r.success)return w.NextResponse.json({error:"Invalid body: text field required (string, 1-10000 chars)"},{status:400});let a=(0,T.getSession)(s);return a?a.killed?w.NextResponse.json({error:"Session has exited"},{status:410}):(a.write(r.data.text),w.NextResponse.json({ok:!0,taskId:s})):w.NextResponse.json({error:"No active session"},{status:404})}e.s(["POST",0,b,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],515001);var R=e.i(515001);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/internal/terminal/[taskId]/input/route",pathname:"/api/internal/terminal/[taskId]/input",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/project/f/tower/src/app/api/internal/terminal/[taskId]/input/route.ts",nextConfigOutput:"",userland:R}),{workAsyncStorage:S,workUnitAsyncStorage:C,serverHooks:A}=E;async function P(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),E.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/internal/terminal/[taskId]/input/route";w=w.replace(/\/index$/,"")||"/";let _=await E.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!_)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:T,params:g,nextConfig:y,parsedUrl:b,isDraftMode:R,prerenderManifest:S,routerServerContext:C,isOnDemandRevalidate:A,revalidateOnlyGenerated:P,resolvedPathname:I,clientReferenceManifest:N,serverActionsManifest:k}=_,j=(0,o.normalizeAppPath)(w),O=!!(S.dynamicRoutes[j]||S.routes[I]),D=async()=>((null==C?void 0:C.render404)?await C.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!R){let e=!!S.routes[I],t=S.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await D();throw new x.NoFallbackError}}let q=null;!O||E.isDev||R||(q="/index"===(q=I)?"/":q);let H=!0===E.isDev||!O,M=O&&!H;k&&N&&(0,a.setManifestsSingleton)({page:w,clientReferenceManifest:N,serverActionsManifest:k});let F=e.method||"GET",U=(0,i.getTracer)(),L=U.getActiveScopeSpan(),$=!!(null==C?void 0:C.isWrappedByNextServer),W=!!(0,s.getRequestMeta)(e,"minimalMode"),B=(0,s.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,y,S,W);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let G={params:g,previewProps:S.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:H,incrementalCache:B,cacheLifeProfiles:y.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>E.onRequestError(e,t,n,s,C)},sharedContext:{buildId:T}},K=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let s,a=async e=>E.handle(z,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${F} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${F} ${w}`)}),o=async s=>{var i,o;let l=async({previousCacheEntry:r})=>{try{if(!W&&A&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await a(s);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,p.sendResponse)(K,X,i,G.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,n=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:A})},!1,C),t}},u=await E.handleResponse({req:e,nextConfig:y,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:W});if(!O)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});W||t.setHeader("x-nextjs-cache",A?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),R&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return W&&O||d.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(K,X,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};$&&L?await o(L):(s=U.getActiveScopeSpan(),await U.withPropagatedContext(e.headers,()=>U.trace(d.BaseServerSpan.handleRequest,{spanName:`${F} ${w}`,kind:i.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},o),void 0,!$))}catch(t){if(t instanceof x.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:A})},!1,C),O)throw t;return await (0,p.sendResponse)(K,X,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:C})},"routeModule",0,E,"serverHooks",0,A,"workAsyncStorage",0,S,"workUnitAsyncStorage",0,C],830786)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0bvqbq0._.js.map
|