tower-studio 0.1.3 → 0.1.5
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 -0
- package/.next/app-path-routes-manifest.json +41 -0
- package/.next/build/chunks/0kjx__pnpm_05m.mc_._.js +6681 -0
- package/.next/build/chunks/[root-of-the-server]__0a5dngl._.js +206 -0
- package/.next/build/chunks/[root-of-the-server]__13e2v6w._.js +500 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0y_r.ay._.js +13 -0
- package/.next/build/chunks/[turbopack]_runtime.js +890 -0
- package/.next/build/package.json +1 -0
- package/.next/build/postcss.js +6 -0
- package/.next/build-manifest.json +22 -0
- package/.next/cache/.previewinfo +1 -0
- package/.next/cache/.rscinfo +1 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/diagnostics/build-diagnostics.json +6 -0
- package/.next/diagnostics/framework.json +1 -0
- package/.next/diagnostics/route-bundle-stats.json +299 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +13 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +278 -0
- package/.next/required-server-files.js +339 -0
- package/.next/required-server-files.json +339 -0
- package/.next/routes-manifest.json +312 -0
- package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_global-error/page/build-manifest.json +18 -0
- package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_global-error/page.js +12 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +15 -0
- package/.next/server/app/_global-error.rsc +15 -0
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +15 -0
- package/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_not-found/page/build-manifest.json +18 -0
- package/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/_not-found/page/server-reference-manifest.json +233 -0
- package/.next/server/app/_not-found/page.js +20 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +16 -0
- package/.next/server/app/_not-found.rsc +24 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +24 -0
- package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_not-found.segments/_index.segment.rsc +12 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/api/adapters/test/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/adapters/test/route/build-manifest.json +9 -0
- package/.next/server/app/api/adapters/test/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/adapters/test/route.js +9 -0
- package/.next/server/app/api/adapters/test/route.js.nft.json +1 -0
- package/.next/server/app/api/adapters/test/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/browse-fs/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/browse-fs/route/build-manifest.json +9 -0
- package/.next/server/app/api/browse-fs/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/browse-fs/route.js +7 -0
- package/.next/server/app/api/browse-fs/route.js.nft.json +1 -0
- package/.next/server/app/api/browse-fs/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route/build-manifest.json +9 -0
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route.js +7 -0
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route.js.nft.json +1 -0
- package/.next/server/app/api/files/assets/[projectId]/[filename]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/git/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/git/route/build-manifest.json +9 -0
- package/.next/server/app/api/git/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/git/route.js +8 -0
- package/.next/server/app/api/git/route.js.nft.json +1 -0
- package/.next/server/app/api/git/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route.js +7 -0
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/assets/[projectId]/[filename]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/assets/reveal/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/assets/reveal/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/assets/reveal/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/assets/reveal/route.js +7 -0
- package/.next/server/app/api/internal/assets/reveal/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/assets/reveal/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/assistant/chat/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/assistant/chat/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/assistant/chat/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/assistant/chat/route.js +7 -0
- package/.next/server/app/api/internal/assistant/chat/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/assistant/chat/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/assistant/images/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/assistant/images/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/assistant/images/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/assistant/images/route.js +9 -0
- package/.next/server/app/api/internal/assistant/images/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/assistant/images/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/assistant/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/assistant/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/assistant/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/assistant/route.js +7 -0
- package/.next/server/app/api/internal/assistant/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/assistant/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/assistant/sessions/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/assistant/sessions/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/assistant/sessions/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/assistant/sessions/route.js +7 -0
- package/.next/server/app/api/internal/assistant/sessions/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/assistant/sessions/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/cache/[...segments]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/cache/[...segments]/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/cache/[...segments]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/cache/[...segments]/route.js +7 -0
- package/.next/server/app/api/internal/cache/[...segments]/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/cache/[...segments]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/hooks/install/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/hooks/install/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/hooks/install/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/hooks/install/route.js +7 -0
- package/.next/server/app/api/internal/hooks/install/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/hooks/install/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/hooks/session/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/hooks/session/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/hooks/session/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/hooks/session/route.js +7 -0
- package/.next/server/app/api/internal/hooks/session/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/hooks/session/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/hooks/stop/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/hooks/stop/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/hooks/stop/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/hooks/stop/route.js +8 -0
- package/.next/server/app/api/internal/hooks/stop/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/hooks/stop/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/hooks/upload/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/hooks/upload/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/hooks/upload/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/hooks/upload/route.js +7 -0
- package/.next/server/app/api/internal/hooks/upload/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/hooks/upload/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/notifications/pending/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/notifications/pending/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/notifications/pending/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/notifications/pending/route.js +7 -0
- package/.next/server/app/api/internal/notifications/pending/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/notifications/pending/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route.js +8 -0
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/terminal/[taskId]/buffer/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/terminal/[taskId]/input/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/terminal/[taskId]/input/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/terminal/[taskId]/input/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/terminal/[taskId]/input/route.js +8 -0
- package/.next/server/app/api/internal/terminal/[taskId]/input/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/terminal/[taskId]/input/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/internal/terminal/[taskId]/start/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/internal/terminal/[taskId]/start/route/build-manifest.json +9 -0
- package/.next/server/app/api/internal/terminal/[taskId]/start/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/internal/terminal/[taskId]/start/route.js +10 -0
- package/.next/server/app/api/internal/terminal/[taskId]/start/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/terminal/[taskId]/start/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/tasks/[taskId]/diff/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/tasks/[taskId]/diff/route/build-manifest.json +9 -0
- package/.next/server/app/api/tasks/[taskId]/diff/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/tasks/[taskId]/diff/route.js +8 -0
- package/.next/server/app/api/tasks/[taskId]/diff/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/[taskId]/diff/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/tasks/[taskId]/merge/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/tasks/[taskId]/merge/route/build-manifest.json +9 -0
- package/.next/server/app/api/tasks/[taskId]/merge/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/tasks/[taskId]/merge/route.js +9 -0
- package/.next/server/app/api/tasks/[taskId]/merge/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/[taskId]/merge/route_client-reference-manifest.js +3 -0
- package/.next/server/app/apple-icon.png/route/app-paths-manifest.json +3 -0
- package/.next/server/app/apple-icon.png/route/build-manifest.json +9 -0
- package/.next/server/app/apple-icon.png/route.js +8 -0
- package/.next/server/app/apple-icon.png/route.js.nft.json +1 -0
- package/.next/server/app/apple-icon.png.meta +1 -0
- package/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
- package/.next/server/app/favicon.ico/route/build-manifest.json +9 -0
- package/.next/server/app/favicon.ico/route.js +8 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/icon0.svg/route/app-paths-manifest.json +3 -0
- package/.next/server/app/icon0.svg/route/build-manifest.json +9 -0
- package/.next/server/app/icon0.svg/route.js +8 -0
- package/.next/server/app/icon0.svg/route.js.nft.json +1 -0
- package/.next/server/app/icon0.svg.meta +1 -0
- package/.next/server/app/icon1.png/route/app-paths-manifest.json +3 -0
- package/.next/server/app/icon1.png/route/build-manifest.json +9 -0
- package/.next/server/app/icon1.png/route.js +8 -0
- package/.next/server/app/icon1.png/route.js.nft.json +1 -0
- package/.next/server/app/icon1.png.meta +1 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +16 -0
- package/.next/server/app/index.rsc +25 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
- package/.next/server/app/index.segments/_full.segment.rsc +25 -0
- package/.next/server/app/index.segments/_head.segment.rsc +6 -0
- package/.next/server/app/index.segments/_index.segment.rsc +12 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +6 -0
- package/.next/server/app/manifest.json/route/app-paths-manifest.json +3 -0
- package/.next/server/app/manifest.json/route/build-manifest.json +9 -0
- package/.next/server/app/manifest.json/route.js +7 -0
- package/.next/server/app/manifest.json/route.js.nft.json +1 -0
- package/.next/server/app/manifest.json.meta +1 -0
- package/.next/server/app/missions/page/app-paths-manifest.json +3 -0
- package/.next/server/app/missions/page/build-manifest.json +18 -0
- package/.next/server/app/missions/page/next-font-manifest.json +11 -0
- package/.next/server/app/missions/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/missions/page/server-reference-manifest.json +401 -0
- package/.next/server/app/missions/page.js +22 -0
- package/.next/server/app/missions/page.js.nft.json +1 -0
- package/.next/server/app/missions/page_client-reference-manifest.js +3 -0
- package/.next/server/app/onboarding/page/app-paths-manifest.json +3 -0
- package/.next/server/app/onboarding/page/build-manifest.json +18 -0
- package/.next/server/app/onboarding/page/next-font-manifest.json +11 -0
- package/.next/server/app/onboarding/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/onboarding/page/server-reference-manifest.json +233 -0
- package/.next/server/app/onboarding/page.js +21 -0
- package/.next/server/app/onboarding/page.js.nft.json +1 -0
- package/.next/server/app/onboarding/page_client-reference-manifest.js +3 -0
- package/.next/server/app/onboarding.html +1 -0
- package/.next/server/app/onboarding.meta +15 -0
- package/.next/server/app/onboarding.rsc +30 -0
- package/.next/server/app/onboarding.segments/_full.segment.rsc +30 -0
- package/.next/server/app/onboarding.segments/_head.segment.rsc +6 -0
- package/.next/server/app/onboarding.segments/_index.segment.rsc +12 -0
- package/.next/server/app/onboarding.segments/_tree.segment.rsc +6 -0
- package/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +9 -0
- package/.next/server/app/onboarding.segments/onboarding.segment.rsc +5 -0
- package/.next/server/app/page/app-paths-manifest.json +3 -0
- package/.next/server/app/page/build-manifest.json +18 -0
- package/.next/server/app/page/next-font-manifest.json +11 -0
- package/.next/server/app/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/page/server-reference-manifest.json +233 -0
- package/.next/server/app/page.js +21 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +3 -0
- package/.next/server/app/settings/page/app-paths-manifest.json +3 -0
- package/.next/server/app/settings/page/build-manifest.json +18 -0
- package/.next/server/app/settings/page/next-font-manifest.json +11 -0
- package/.next/server/app/settings/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/settings/page/server-reference-manifest.json +341 -0
- package/.next/server/app/settings/page.js +21 -0
- package/.next/server/app/settings/page.js.nft.json +1 -0
- package/.next/server/app/settings/page_client-reference-manifest.js +3 -0
- package/.next/server/app/settings.html +1 -0
- package/.next/server/app/settings.meta +15 -0
- package/.next/server/app/settings.rsc +30 -0
- package/.next/server/app/settings.segments/_full.segment.rsc +30 -0
- package/.next/server/app/settings.segments/_head.segment.rsc +6 -0
- package/.next/server/app/settings.segments/_index.segment.rsc +12 -0
- package/.next/server/app/settings.segments/_tree.segment.rsc +6 -0
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +9 -0
- package/.next/server/app/settings.segments/settings.segment.rsc +5 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page/app-paths-manifest.json +3 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page/build-manifest.json +18 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page/next-font-manifest.json +11 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page/server-reference-manifest.json +497 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page.js +21 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page.js.nft.json +1 -0
- package/.next/server/app/workspaces/[workspaceId]/archive/page_client-reference-manifest.js +3 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page/app-paths-manifest.json +3 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page/build-manifest.json +18 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page/next-font-manifest.json +11 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page/server-reference-manifest.json +461 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page.js +21 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page.js.nft.json +1 -0
- package/.next/server/app/workspaces/[workspaceId]/assets/page_client-reference-manifest.js +3 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page/app-paths-manifest.json +3 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page/build-manifest.json +18 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page/next-font-manifest.json +11 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page/server-reference-manifest.json +401 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page.js +21 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page.js.nft.json +1 -0
- package/.next/server/app/workspaces/[workspaceId]/notes/page_client-reference-manifest.js +3 -0
- package/.next/server/app/workspaces/[workspaceId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/workspaces/[workspaceId]/page/build-manifest.json +18 -0
- package/.next/server/app/workspaces/[workspaceId]/page/next-font-manifest.json +11 -0
- package/.next/server/app/workspaces/[workspaceId]/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/workspaces/[workspaceId]/page/server-reference-manifest.json +569 -0
- package/.next/server/app/workspaces/[workspaceId]/page.js +22 -0
- package/.next/server/app/workspaces/[workspaceId]/page.js.nft.json +1 -0
- package/.next/server/app/workspaces/[workspaceId]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/build-manifest.json +18 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/next-font-manifest.json +11 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/server-reference-manifest.json +233 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js +21 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js.nft.json +1 -0
- package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/build-manifest.json +18 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/next-font-manifest.json +11 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/react-loadable-manifest.json +22 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/server-reference-manifest.json +581 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js +23 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js.nft.json +1 -0
- package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/workspaces/page/app-paths-manifest.json +3 -0
- package/.next/server/app/workspaces/page/build-manifest.json +18 -0
- package/.next/server/app/workspaces/page/next-font-manifest.json +11 -0
- package/.next/server/app/workspaces/page/react-loadable-manifest.json +16 -0
- package/.next/server/app/workspaces/page/server-reference-manifest.json +329 -0
- package/.next/server/app/workspaces/page.js +21 -0
- package/.next/server/app/workspaces/page.js.nft.json +1 -0
- package/.next/server/app/workspaces/page_client-reference-manifest.js +3 -0
- package/.next/server/app-paths-manifest.json +41 -0
- package/.next/server/chunks/03j-_@anthropic-ai_claude-agent-sdk_sdk_mjs_04597t~._.js +85 -0
- package/.next/server/chunks/0cve_next-internal_server_app_api_internal_cache_[___segments]_route_actions_09n1sa3.js +3 -0
- package/.next/server/chunks/0tp-_server_app_api_files_assets_[projectId]_[filename]_route_actions_02i2urs.js +3 -0
- package/.next/server/chunks/0tp-_server_app_api_internal_assets_[projectId]_[filename]_route_actions_0kjz576.js +3 -0
- package/.next/server/chunks/0tp-_server_app_api_internal_notifications_pending_route_actions_08bx38r.js +3 -0
- package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_buffer_route_actions_0bpyf5x.js +3 -0
- package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_input_route_actions_0alu32r.js +3 -0
- package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_start_route_actions_0swqog2.js +3 -0
- package/.next/server/chunks/0w1v_zod_v4_classic_external_0m-7hz_.js +39 -0
- package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_chat_route_actions_0x-qbrh.js +3 -0
- package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_images_route_actions_0vws40t.js +3 -0
- package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_sessions_route_actions_0p09rcp.js +3 -0
- package/.next/server/chunks/10ge_next_dist_08.3req._.js +13 -0
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_00gmiw_.js +3 -0
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0jwpolf.js +3 -0
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0liabcf.js +3 -0
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0z9_0_i.js +3 -0
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_13w3ubu.js +3 -0
- package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_13~vb_i.js +4 -0
- package/.next/server/chunks/[externals]__02xkqim._.js +3 -0
- package/.next/server/chunks/[externals]__09oeovy._.js +3 -0
- package/.next/server/chunks/[externals]__0~rg.xo._.js +3 -0
- package/.next/server/chunks/[externals]__11rejr-._.js +3 -0
- package/.next/server/chunks/[externals]_child_process_0pwkpv9._.js +3 -0
- package/.next/server/chunks/[externals]_next_dist_0g2nsos._.js +3 -0
- package/.next/server/chunks/[externals]_util_0wtvqkc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__02p-gd5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0319djr._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__043lk8~._.js +4 -0
- package/.next/server/chunks/[root-of-the-server]__053y9tf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05pxb~w._.js +20 -0
- package/.next/server/chunks/[root-of-the-server]__07-am_7._.js +20 -0
- package/.next/server/chunks/[root-of-the-server]__09gjz6h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0_irb2s._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0c4edwt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0c7y1r0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dj34zn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dqta7g._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0j3gbp7._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ko_rm_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0miy2g.._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0mt-eeb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0n-6-hc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0nur_ir._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0pz60q-._.js +20 -0
- package/.next/server/chunks/[root-of-the-server]__0q~5ya5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0rpqx55._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0sjsc63._.js +4 -0
- package/.next/server/chunks/[root-of-the-server]__0th.w7w._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0u..agy._.js +11 -0
- package/.next/server/chunks/[root-of-the-server]__0umzekq._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0wu61w.._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__11v.yk_._.js +4 -0
- package/.next/server/chunks/[root-of-the-server]__12._zd-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__130shf~._.js +3 -0
- package/.next/server/chunks/[turbopack]_runtime.js +903 -0
- package/.next/server/chunks/ssr/03j-_@anthropic-ai_claude-agent-sdk_sdk_mjs_0kr2_y.._.js +84 -0
- package/.next/server/chunks/ssr/040e_@monaco-editor_react_dist_index_mjs_0t4i-ho._.js +3 -0
- package/.next/server/chunks/ssr/040e_@monaco-editor_react_dist_index_mjs_0z6t1fr._.js +3 -0
- package/.next/server/chunks/ssr/0kjx__pnpm_0g9g8h6._.js +3 -0
- package/.next/server/chunks/ssr/0kjx__pnpm_0l.5ii.._.js +3 -0
- package/.next/server/chunks/ssr/0kjx__pnpm_0wrn.h9._.js +14 -0
- package/.next/server/chunks/ssr/0rik_@dnd-kit_core_dist_core_esm_11giptg.js +3 -0
- package/.next/server/chunks/ssr/0~.g_src_app_workspaces_[workspaceId]_tasks_[taskId]_task-page-client_tsx_0bbseig._.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_00.-vj.._.js +18 -0
- package/.next/server/chunks/ssr/10ge_next_dist_01n~t8z._.js +6 -0
- package/.next/server/chunks/ssr/10ge_next_dist_06_-w96._.js +19 -0
- package/.next/server/chunks/ssr/10ge_next_dist_0pw4my6._.js +6 -0
- package/.next/server/chunks/ssr/10ge_next_dist_0wjbiu9._.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_0~ti7jc._.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_10.ihny._.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_0--gzcy._.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_0eil7-a._.js +33 -0
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_forbidden_0nzsnb2.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_global-error_125sopd.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_unauthorized_0z93cpe.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_compiled_0g45ze2._.js +3 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_080g02v.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_08khzah.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_09~o5q0.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0_rj_f4.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0c-wmj1.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0fjd2ua.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0hpuyf0.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0knnyic.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0oi86k6.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0rmwdra.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0zgisbd.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_11pz1fw.js +4 -0
- package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_12reczc.js +4 -0
- package/.next/server/chunks/ssr/119e_lucide-react_dist_esm_icons_0636jyq._.js +3 -0
- package/.next/server/chunks/ssr/[externals]__0of4r_r._.js +3 -0
- package/.next/server/chunks/ssr/[externals]__0z1ffhu._.js +3 -0
- package/.next/server/chunks/ssr/[externals]_child_process_0pwkpv9._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0-0j_z3._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0.8y0n9._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0.uoh7q._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__01ws4-7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__024-5kd._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__02ipahf._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__03.14vw._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__04xn50b._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__05452ke._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06o5v8i._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06sm5cw._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__09m32ch._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0_0kxz4._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0adx8p4._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0bk3s4l._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0d5p5d.._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0d7u1lw._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0fg8.hp._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0gsj3~.._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0hvz_0c._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0i6glcp._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ibsor_._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0j5~a_o._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0jgbj6l._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0jux8~h._.js +33 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0l~dc3x._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0mab0km._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0n32nv5._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0n8qufu._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ndt9h3._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0p~u4y6._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0q.du4s._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0rs7pkn._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0sysz2q._.js +47 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0t25~v8._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ti70do._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0uevudp._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0wwqzmm._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xt3-qb._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0y-lkvf._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0zvf.ro._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0~jc3l5._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__11m7m-q._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1223b0_._.js +30 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12f810l._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__13-by9r._.js +33 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__13-egel._.js +3 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
- package/.next/server/chunks/ssr/tower_0-nwtka._.js +3 -0
- package/.next/server/chunks/ssr/tower_0-omr_b._.js +30 -0
- package/.next/server/chunks/ssr/tower_00.hg6u._.js +3 -0
- package/.next/server/chunks/ssr/tower_01szasw._.js +3 -0
- package/.next/server/chunks/ssr/tower_02he7d6._.js +3 -0
- package/.next/server/chunks/ssr/tower_035l~qv._.js +3 -0
- package/.next/server/chunks/ssr/tower_03jazku._.js +3 -0
- package/.next/server/chunks/ssr/tower_09~lpto._.js +3 -0
- package/.next/server/chunks/ssr/tower_0d.car1._.js +30 -0
- package/.next/server/chunks/ssr/tower_0egtw-7._.js +30 -0
- package/.next/server/chunks/ssr/tower_0gzwyem._.js +3 -0
- package/.next/server/chunks/ssr/tower_0h3r32m._.js +30 -0
- package/.next/server/chunks/ssr/tower_0kl_bfy._.js +7 -0
- package/.next/server/chunks/ssr/tower_0mz4ut.._.js +3 -0
- package/.next/server/chunks/ssr/tower_0nuj.0p._.js +39 -0
- package/.next/server/chunks/ssr/tower_0pcqezm._.js +3 -0
- package/.next/server/chunks/ssr/tower_0r7uuim._.js +30 -0
- package/.next/server/chunks/ssr/tower_0sojjnu._.js +3 -0
- package/.next/server/chunks/ssr/tower_0tc~.xl._.js +30 -0
- package/.next/server/chunks/ssr/tower_0tuq2iz._.js +30 -0
- package/.next/server/chunks/ssr/tower_0vo6u9i._.js +3 -0
- package/.next/server/chunks/ssr/tower_0wvk~r.._.js +3 -0
- package/.next/server/chunks/ssr/tower_10p15te._.js +3 -0
- package/.next/server/chunks/ssr/tower_10t13p4._.js +6 -0
- package/.next/server/chunks/ssr/tower_117pzh8._.js +3 -0
- package/.next/server/chunks/ssr/tower_11q5_.m._.js +3 -0
- package/.next/server/chunks/ssr/tower_12sld1c._.js +3 -0
- package/.next/server/chunks/ssr/tower_138qlx5._.js +3 -0
- package/.next/server/chunks/ssr/tower__next-internal_server_app__global-error_page_actions_13t5~qk.js +3 -0
- package/.next/server/chunks/ssr/tower_src_08t.wy-._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_actions_agent-actions_ts_0j.e1tn._.js +4 -0
- package/.next/server/chunks/ssr/tower_src_actions_file-actions_ts_0424lna._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_app_missions_missions-client_tsx_0a9vjyr._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_app_onboarding_page_tsx_0_3krz1._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_app_settings_page_tsx_0vo5e-o._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_app_workspaces_[workspaceId]_assets_assets-page-client_tsx_0zfgzhi._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_app_workspaces_[workspaceId]_board-page-client_tsx_0kjp1u0._.js +7 -0
- package/.next/server/chunks/ssr/tower_src_components_ui_select_tsx_10ajx~2._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_lib_01420_4._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_lib_0i-zjpa._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_lib_0ja~kdb._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_lib_0obw2r8._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_lib_0rgfsuf._.js +3 -0
- package/.next/server/chunks/ssr/tower_src_lib_constants_ts_0o218_c._.js +3 -0
- package/.next/server/chunks/tower_03g~ktv._.js +7 -0
- package/.next/server/chunks/tower_05du07.._.js +10 -0
- package/.next/server/chunks/tower_0a-x6m.._.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_adapters_test_route_actions_13jw~9b.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_browse-fs_route_actions_0k5p2xy.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_git_route_actions_0rvpodb.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_assets_reveal_route_actions_0idwm6j.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_assistant_route_actions_0rdz1d..js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_install_route_actions_06dxleu.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_session_route_actions_0wlv4lf.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_stop_route_actions_101_oub.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_upload_route_actions_0439qz_.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_tasks_[taskId]_diff_route_actions_0nthc84.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_api_tasks_[taskId]_merge_route_actions_0g.x0nb.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_apple-icon_png_route_actions_0bni-sb.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_favicon_ico_route_actions_0kw~xj2.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_icon0_svg_route_actions_0nww9-e.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_icon1_png_route_actions_09h.ywu.js +3 -0
- package/.next/server/chunks/tower__next-internal_server_app_manifest_json_route_actions_080ob~r.js +3 -0
- package/.next/server/chunks/tower_src_0..vg-t._.js +3 -0
- package/.next/server/chunks/tower_src_05rqj.1._.js +3 -0
- package/.next/server/chunks/tower_src_lib_0uok6j3._.js +3 -0
- package/.next/server/chunks/tower_src_lib_0w8qt4s._.js +3 -0
- package/.next/server/chunks/tower_src_lib_constants_ts_0cxd4.p._.js +3 -0
- package/.next/server/edge/chunks/0y9m_next_dist_esm_build_templates_edge-wrapper_0cx_eo..js +3 -0
- package/.next/server/edge/chunks/tower_0wvfs38._.js +3 -0
- package/.next/server/functions-config-manifest.json +22 -0
- package/.next/server/instrumentation/middleware-manifest.json +12 -0
- package/.next/server/instrumentation.js +4 -0
- package/.next/server/instrumentation.js.nft.json +1 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +22 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +55 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/prefetch-hints.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +2778 -0
- package/.next/static/6AW1vTU7iJEkEhqIH0txT/_buildManifest.js +11 -0
- package/.next/static/6AW1vTU7iJEkEhqIH0txT/_clientMiddlewareManifest.js +1 -0
- package/.next/static/6AW1vTU7iJEkEhqIH0txT/_ssgManifest.js +1 -0
- package/.next/static/chunks/0-64z7pmj57~d.js +1 -0
- package/.next/static/chunks/00xbbu.nlx92z.js +1 -0
- package/.next/static/chunks/00z-g3x93ngvn.js +1 -0
- package/.next/static/chunks/03e.4ymu.j5wl.js +1 -0
- package/.next/static/chunks/03~yq9q893hmn.js +1 -0
- package/.next/static/chunks/049.9ha2n6os5.js +1 -0
- package/.next/static/chunks/05-b9qqm3av9~.js +1 -0
- package/.next/static/chunks/05j6t69jmpqju.js +1 -0
- package/.next/static/chunks/05~v02mkan5z..js +1 -0
- package/.next/static/chunks/07a_xadb-3w1a.js +1 -0
- package/.next/static/chunks/0_.pyr2jhdqa2.js +5 -0
- package/.next/static/chunks/0_c8duf92i~xg.js +1 -0
- package/.next/static/chunks/0a2blrvqw8t5y.js +5 -0
- package/.next/static/chunks/0abtpeymj-58i.js +1 -0
- package/.next/static/chunks/0drgc-oztq6o-.css +1 -0
- package/.next/static/chunks/0eaa2lmymh2fx.js +1 -0
- package/.next/static/chunks/0j9qriqni_r1..js +2 -0
- package/.next/static/chunks/0k.u8sxy~e469.js +4 -0
- package/.next/static/chunks/0kc-95qs2~eid.js +1 -0
- package/.next/static/chunks/0kojsk~4uroqj.js +1 -0
- package/.next/static/chunks/0kt2vohpgb7h6.js +1 -0
- package/.next/static/chunks/0kubr70r_r2f2.js +1 -0
- package/.next/static/chunks/0lvd52mjiit6s.js +1 -0
- package/.next/static/chunks/0mq0uqbbbb1~2.js +1 -0
- package/.next/static/chunks/0neevhl_o1ozu.css +2 -0
- package/.next/static/chunks/0omj~p3uxkic-.js +1 -0
- package/.next/static/chunks/0t-gr6j-c65qb.js +1 -0
- package/.next/static/chunks/0tcl81ybuob5i.js +1 -0
- package/.next/static/chunks/0ttrpz.l-v-yv.js +1 -0
- package/.next/static/chunks/0uqimvsni_op~.js +1 -0
- package/.next/static/chunks/0wt3kws~_yr8z.js +1 -0
- package/.next/static/chunks/0z-ecklemrfx-.js +1 -0
- package/.next/static/chunks/0z2bzovqhl2f5.js +1 -0
- package/.next/static/chunks/0z61ts2ro9_k3.js +83 -0
- package/.next/static/chunks/0z7bwntvfhxzi.js +12 -0
- package/.next/static/chunks/10n23t.1hpb-1.js +1 -0
- package/.next/static/chunks/14xzmrt5ly6gq.js +31 -0
- package/.next/static/chunks/151wr~6x8aclx.js +1 -0
- package/.next/static/chunks/16w-ap~msrwpj.js +1 -0
- package/.next/static/chunks/17oc2l.ekcs8b.css +1 -0
- package/.next/static/chunks/turbopack-0wjmrsi.z32s0.js +1 -0
- package/.next/static/media/4fa387ec64143e14-s.0q3udbd2bu5yp.woff2 +0 -0
- package/.next/static/media/7178b3e590c64307-s.11.cyxs5p-0z~.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.0.q-h669a_dqa.woff2 +0 -0
- package/.next/static/media/8a480f0b521d4e75-s.06d3mdzz5bre_.woff2 +0 -0
- package/.next/static/media/apple-icon.16aocl-s-v2qz.png +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.0gw~uztddq1df.woff2 +0 -0
- package/.next/static/media/caa3a2e1cccd8315-s.p.16t1db8_9y2o~.woff2 +0 -0
- package/.next/static/media/favicon.0y2d6j9cou~8p.ico +0 -0
- package/.next/static/media/icon0.0a6mkq6meyird.svg +1 -0
- package/.next/static/media/icon1.04ux133882seb.png +0 -0
- package/.next/trace +2 -0
- package/.next/trace-build +1 -0
- package/.next/turbopack +0 -0
- package/.next/types/routes.d.ts +103 -0
- package/.next/types/validator.ts +349 -0
- package/package.json +14 -11
- package/components.json +0 -25
- package/postcss.config.mjs +0 -7
- package/prisma/dev.db +0 -0
- package/prisma/prisma/dev.db +0 -0
- package/prisma/seed.ts +0 -50
- package/scripts/init-tower.ts +0 -10
- package/scripts/post-tool-hook.js +0 -188
- package/scripts/session-start-hook.js +0 -79
- package/scripts/stop-hook.js +0 -78
- package/skills/tower/SKILL.md +0 -375
- package/src/actions/__tests__/agent-actions-username.test.ts +0 -30
- package/src/actions/__tests__/asset-actions.test.ts +0 -251
- package/src/actions/__tests__/assistant-actions.test.ts +0 -20
- package/src/actions/__tests__/cli-profile-actions.test.ts +0 -243
- package/src/actions/__tests__/label-actions.test.ts +0 -187
- package/src/actions/__tests__/note-actions.test.ts +0 -237
- package/src/actions/__tests__/onboarding-actions.test.ts +0 -265
- package/src/actions/__tests__/project-actions.test.ts +0 -179
- package/src/actions/__tests__/prompt-actions.test.ts +0 -213
- package/src/actions/__tests__/report-actions.test.ts +0 -246
- package/src/actions/__tests__/search-code-actions.test.ts +0 -308
- package/src/actions/__tests__/task-actions-overview.test.ts +0 -58
- package/src/actions/__tests__/task-actions-pin.test.ts +0 -79
- package/src/actions/__tests__/workspace-actions.test.ts +0 -256
- package/src/actions/agent-actions.ts +0 -741
- package/src/actions/agent-config-actions.ts +0 -44
- package/src/actions/ai-config-actions.ts +0 -51
- package/src/actions/asset-actions.ts +0 -131
- package/src/actions/assistant-actions.ts +0 -107
- package/src/actions/cli-profile-actions.ts +0 -98
- package/src/actions/config-actions.ts +0 -84
- package/src/actions/file-actions.ts +0 -262
- package/src/actions/git-actions.ts +0 -90
- package/src/actions/label-actions.ts +0 -67
- package/src/actions/note-actions.ts +0 -87
- package/src/actions/onboarding-actions.ts +0 -103
- package/src/actions/preview-actions.ts +0 -76
- package/src/actions/project-actions.ts +0 -222
- package/src/actions/prompt-actions.ts +0 -73
- package/src/actions/report-actions.ts +0 -141
- package/src/actions/search-actions.ts +0 -21
- package/src/actions/search-code-actions.ts +0 -185
- package/src/actions/task-actions.ts +0 -350
- package/src/actions/workspace-actions.ts +0 -224
- package/src/app/api/adapters/test/route.ts +0 -52
- package/src/app/api/browse-fs/route.ts +0 -90
- package/src/app/api/files/assets/[projectId]/[filename]/route.ts +0 -38
- package/src/app/api/git/route.ts +0 -367
- package/src/app/api/internal/assets/[projectId]/[filename]/route.ts +0 -51
- package/src/app/api/internal/assets/reveal/route.ts +0 -71
- package/src/app/api/internal/assistant/chat/route.ts +0 -217
- package/src/app/api/internal/assistant/images/route.ts +0 -51
- package/src/app/api/internal/assistant/route.ts +0 -50
- package/src/app/api/internal/assistant/sessions/route.ts +0 -44
- package/src/app/api/internal/cache/[...segments]/route.ts +0 -59
- package/src/app/api/internal/hooks/install/route.ts +0 -41
- package/src/app/api/internal/hooks/session/route.ts +0 -60
- package/src/app/api/internal/hooks/stop/route.ts +0 -61
- package/src/app/api/internal/hooks/upload/route.ts +0 -173
- package/src/app/api/internal/notifications/pending/route.ts +0 -20
- package/src/app/api/internal/terminal/[taskId]/buffer/route.ts +0 -48
- package/src/app/api/internal/terminal/[taskId]/input/route.ts +0 -64
- package/src/app/api/internal/terminal/[taskId]/start/route.ts +0 -37
- package/src/app/api/tasks/[taskId]/diff/route.ts +0 -224
- package/src/app/api/tasks/[taskId]/merge/route.ts +0 -159
- package/src/app/globals.css +0 -247
- package/src/app/layout.tsx +0 -63
- package/src/app/missions/missions-client.tsx +0 -338
- package/src/app/missions/page.tsx +0 -10
- package/src/app/onboarding/page.tsx +0 -619
- package/src/app/page.tsx +0 -5
- package/src/app/settings/page.tsx +0 -7
- package/src/app/workspaces/[workspaceId]/archive/archive-page-client.tsx +0 -258
- package/src/app/workspaces/[workspaceId]/archive/page.tsx +0 -36
- package/src/app/workspaces/[workspaceId]/assets/assets-page-client.tsx +0 -232
- package/src/app/workspaces/[workspaceId]/assets/page.tsx +0 -36
- package/src/app/workspaces/[workspaceId]/board-page-client.tsx +0 -257
- package/src/app/workspaces/[workspaceId]/notes/notes-page-client.tsx +0 -337
- package/src/app/workspaces/[workspaceId]/notes/page.tsx +0 -39
- package/src/app/workspaces/[workspaceId]/page.tsx +0 -81
- package/src/app/workspaces/[workspaceId]/projects/[projectId]/page.tsx +0 -30
- package/src/app/workspaces/[workspaceId]/tasks/[taskId]/page.tsx +0 -97
- package/src/app/workspaces/[workspaceId]/tasks/[taskId]/task-page-client.tsx +0 -601
- package/src/app/workspaces/page.tsx +0 -13
- package/src/components/assets/asset-item.tsx +0 -128
- package/src/components/assets/asset-list.tsx +0 -31
- package/src/components/assets/asset-upload.tsx +0 -216
- package/src/components/assets/image-lightbox.tsx +0 -72
- package/src/components/assets/text-preview-dialog.tsx +0 -135
- package/src/components/assistant/assistant-chat-bubble.tsx +0 -308
- package/src/components/assistant/assistant-chat.tsx +0 -215
- package/src/components/assistant/assistant-panel.tsx +0 -149
- package/src/components/assistant/assistant-provider.tsx +0 -512
- package/src/components/assistant/image-preview-modal.tsx +0 -60
- package/src/components/assistant/image-thumbnail-strip.tsx +0 -94
- package/src/components/board/board-column.tsx +0 -115
- package/src/components/board/board-filters.tsx +0 -42
- package/src/components/board/board-stats.tsx +0 -52
- package/src/components/board/column-tasks-dialog.tsx +0 -100
- package/src/components/board/create-task-dialog.tsx +0 -362
- package/src/components/board/kanban-board.tsx +0 -169
- package/src/components/board/project-tabs.tsx +0 -93
- package/src/components/board/task-card-context-menu.tsx +0 -121
- package/src/components/board/task-card.tsx +0 -135
- package/src/components/layout/__tests__/top-bar-username.test.tsx +0 -24
- package/src/components/layout/app-sidebar.tsx +0 -662
- package/src/components/layout/folder-browser-dialog.tsx +0 -273
- package/src/components/layout/layout-client.tsx +0 -198
- package/src/components/layout/search-dialog.tsx +0 -196
- package/src/components/layout/sub-page-nav.tsx +0 -54
- package/src/components/layout/top-bar.tsx +0 -265
- package/src/components/missions/grid-layout-presets.ts +0 -19
- package/src/components/missions/grid-preset-picker.tsx +0 -209
- package/src/components/missions/merge-missions.ts +0 -30
- package/src/components/missions/mission-card.tsx +0 -203
- package/src/components/missions/task-picker-dialog.tsx +0 -415
- package/src/components/notes/category-filter.tsx +0 -44
- package/src/components/notes/note-card.tsx +0 -67
- package/src/components/notes/note-editor.tsx +0 -28
- package/src/components/notes/note-list.tsx +0 -30
- package/src/components/notifications/notification-permission-banner.tsx +0 -49
- package/src/components/notifications/use-notification-listener.ts +0 -114
- package/src/components/onboarding/__tests__/onboarding-wizard.test.tsx +0 -185
- package/src/components/onboarding/guided-tour.tsx +0 -255
- package/src/components/onboarding/onboarding-wizard.tsx +0 -84
- package/src/components/onboarding/wizard-step-cli.tsx +0 -53
- package/src/components/onboarding/wizard-step-username.tsx +0 -59
- package/src/components/project/create-project-dialog.tsx +0 -310
- package/src/components/project/import-project-dialog.tsx +0 -414
- package/src/components/providers/theme-provider.tsx +0 -8
- package/src/components/repository/create-branch-dialog.tsx +0 -165
- package/src/components/repository/git-changes-panel.tsx +0 -294
- package/src/components/repository/git-log-panel.tsx +0 -83
- package/src/components/repository/git-stash-panel.tsx +0 -158
- package/src/components/repository/repo-sidebar.tsx +0 -855
- package/src/components/settings/cli-adapter-tester.tsx +0 -144
- package/src/components/settings/settings-page.tsx +0 -2111
- package/src/components/task/code-editor.tsx +0 -376
- package/src/components/task/code-search.tsx +0 -219
- package/src/components/task/diff-editor.tsx +0 -97
- package/src/components/task/editor-git-panel.tsx +0 -792
- package/src/components/task/editor-tabs.tsx +0 -68
- package/src/components/task/execution-timeline.tsx +0 -258
- package/src/components/task/file-tree-context-menu.tsx +0 -113
- package/src/components/task/file-tree-node.tsx +0 -269
- package/src/components/task/file-tree.tsx +0 -575
- package/src/components/task/preview-panel.tsx +0 -281
- package/src/components/task/task-detail-panel.tsx +0 -455
- package/src/components/task/task-diff-view.tsx +0 -207
- package/src/components/task/task-file-changes.tsx +0 -19
- package/src/components/task/task-merge-confirm-dialog.tsx +0 -152
- package/src/components/task/task-metadata.tsx +0 -74
- package/src/components/task/task-notes-panel.tsx +0 -219
- package/src/components/task/task-overview-drawer.tsx +0 -172
- package/src/components/task/task-terminal.tsx +0 -294
- package/src/components/task/terminal-portal.tsx +0 -156
- package/src/components/task/types.ts +0 -6
- package/src/components/ui/avatar.tsx +0 -109
- package/src/components/ui/badge.tsx +0 -52
- package/src/components/ui/button.tsx +0 -58
- package/src/components/ui/card.tsx +0 -103
- package/src/components/ui/command.tsx +0 -196
- package/src/components/ui/dialog.tsx +0 -160
- package/src/components/ui/dropdown-menu.tsx +0 -268
- package/src/components/ui/empty-state.tsx +0 -26
- package/src/components/ui/error-boundary.tsx +0 -58
- package/src/components/ui/input-group.tsx +0 -158
- package/src/components/ui/input.tsx +0 -20
- package/src/components/ui/label.tsx +0 -20
- package/src/components/ui/popover.tsx +0 -90
- package/src/components/ui/scroll-area.tsx +0 -55
- package/src/components/ui/segmented-control.tsx +0 -42
- package/src/components/ui/select.tsx +0 -207
- package/src/components/ui/separator.tsx +0 -25
- package/src/components/ui/sheet.tsx +0 -138
- package/src/components/ui/sonner.tsx +0 -49
- package/src/components/ui/switch.tsx +0 -32
- package/src/components/ui/tabs.tsx +0 -82
- package/src/components/ui/textarea.tsx +0 -18
- package/src/components/ui/toast.tsx +0 -86
- package/src/components/ui/tooltip.tsx +0 -66
- package/src/hooks/__tests__/sse-event-reducer.test.ts +0 -263
- package/src/hooks/__tests__/use-assistant-chat.test.ts +0 -34
- package/src/hooks/__tests__/use-image-upload.test.ts +0 -443
- package/src/hooks/sse-event-reducer.ts +0 -144
- package/src/hooks/use-assistant-chat.ts +0 -190
- package/src/hooks/use-image-upload.ts +0 -140
- package/src/instrumentation.ts +0 -18
- package/src/lib/__tests__/assistant-message-converter.test.ts +0 -162
- package/src/lib/__tests__/assistant-sessions.test.ts +0 -253
- package/src/lib/__tests__/build-multimodal-prompt.test.ts +0 -173
- package/src/lib/__tests__/config-reader.test.ts +0 -75
- package/src/lib/__tests__/diff-parser.test.ts +0 -212
- package/src/lib/__tests__/execution-summary.test.ts +0 -237
- package/src/lib/__tests__/file-serve.test.ts +0 -178
- package/src/lib/__tests__/file-utils.test.ts +0 -177
- package/src/lib/__tests__/internal-api-guard.test.ts +0 -151
- package/src/lib/__tests__/logger.test.ts +0 -181
- package/src/lib/__tests__/platform.test.ts +0 -566
- package/src/lib/__tests__/reveal-route-security.test.ts +0 -65
- package/src/lib/__tests__/schemas.test.ts +0 -377
- package/src/lib/__tests__/terminal-link-provider.test.ts +0 -160
- package/src/lib/__tests__/upload-route-security.test.ts +0 -120
- package/src/lib/ai/__tests__/capability-resolver.test.ts +0 -71
- package/src/lib/ai/__tests__/claude-cli-adapter.test.ts +0 -103
- package/src/lib/ai/__tests__/provider-registry.test.ts +0 -74
- package/src/lib/ai/adapters/cli/claude-cli-adapter.ts +0 -166
- package/src/lib/ai/capability-resolver.ts +0 -81
- package/src/lib/ai/provider-registry.ts +0 -54
- package/src/lib/ai/providers/claude.ts +0 -19
- package/src/lib/ai/providers/index.ts +0 -12
- package/src/lib/ai/types.ts +0 -151
- package/src/lib/assistant-constants.ts +0 -2
- package/src/lib/assistant-message-converter.ts +0 -131
- package/src/lib/assistant-sessions.ts +0 -75
- package/src/lib/build-multimodal-prompt.ts +0 -53
- package/src/lib/claude-session.ts +0 -156
- package/src/lib/cli-test.ts +0 -476
- package/src/lib/config-defaults.ts +0 -121
- package/src/lib/config-reader.ts +0 -16
- package/src/lib/constants.ts +0 -26
- package/src/lib/db.ts +0 -28
- package/src/lib/diff-parser.ts +0 -132
- package/src/lib/execution-summary.ts +0 -287
- package/src/lib/file-serve-client.ts +0 -13
- package/src/lib/file-serve.ts +0 -32
- package/src/lib/file-utils.ts +0 -108
- package/src/lib/fs-security.ts +0 -22
- package/src/lib/fts.ts +0 -83
- package/src/lib/git-api.ts +0 -19
- package/src/lib/git-url.ts +0 -244
- package/src/lib/i18n/en.ts +0 -754
- package/src/lib/i18n/types.ts +0 -4
- package/src/lib/i18n/zh.ts +0 -769
- package/src/lib/i18n.tsx +0 -64
- package/src/lib/init-tower.ts +0 -129
- package/src/lib/instrumentation-tasks.ts +0 -116
- package/src/lib/internal-api-guard.ts +0 -63
- package/src/lib/logger.ts +0 -46
- package/src/lib/mime-magic.ts +0 -67
- package/src/lib/platform.ts +0 -518
- package/src/lib/preview-process.ts +0 -40
- package/src/lib/pty/__tests__/ws-server-assistant.test.ts +0 -7
- package/src/lib/pty/pty-session.ts +0 -157
- package/src/lib/pty/session-store.ts +0 -67
- package/src/lib/pty/ws-server.ts +0 -335
- package/src/lib/schemas.ts +0 -67
- package/src/lib/search.ts +0 -225
- package/src/lib/terminal-link-provider.ts +0 -90
- package/src/lib/tower-dir.ts +0 -69
- package/src/lib/utils.ts +0 -20
- package/src/lib/worktree.ts +0 -184
- package/src/stores/board-store.ts +0 -46
- package/src/stores/task-execution-store.ts +0 -41
- package/src/types/index.ts +0 -36
- /package/{src/app/apple-icon.png → .next/server/app/apple-icon.png.body} +0 -0
- /package/{src/app/favicon.ico → .next/server/app/favicon.ico.body} +0 -0
- /package/{src/app/icon0.svg → .next/server/app/icon0.svg.body} +0 -0
- /package/{src/app/icon1.png → .next/server/app/icon1.png.body} +0 -0
- /package/{src/app/manifest.json → .next/server/app/manifest.json.body} +0 -0
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
export const runtime = "nodejs";
|
|
2
|
-
export const dynamic = "force-dynamic";
|
|
3
|
-
|
|
4
|
-
import { NextRequest, NextResponse } from "next/server";
|
|
5
|
-
import { stat, copyFile } from "fs/promises";
|
|
6
|
-
import { existsSync } from "fs";
|
|
7
|
-
import * as path from "path";
|
|
8
|
-
import { db } from "@/lib/db";
|
|
9
|
-
import { requireLocalhost, validateTaskId } from "@/lib/internal-api-guard";
|
|
10
|
-
import { readConfigValue } from "@/lib/config-reader";
|
|
11
|
-
import { ensureAssetsDir } from "@/lib/file-utils";
|
|
12
|
-
|
|
13
|
-
const CUID_RE = /^c[a-z0-9]{20,30}$/;
|
|
14
|
-
|
|
15
|
-
const DEFAULT_UPLOAD_TYPES = [
|
|
16
|
-
"png", "jpg", "jpeg", "gif", "webp", "svg", "pdf", "md", "txt", "json",
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
const MIME_MAP: Record<string, string> = {
|
|
20
|
-
png: "image/png",
|
|
21
|
-
jpg: "image/jpeg",
|
|
22
|
-
jpeg: "image/jpeg",
|
|
23
|
-
gif: "image/gif",
|
|
24
|
-
webp: "image/webp",
|
|
25
|
-
svg: "image/svg+xml",
|
|
26
|
-
pdf: "application/pdf",
|
|
27
|
-
md: "text/markdown",
|
|
28
|
-
txt: "text/plain",
|
|
29
|
-
json: "application/json",
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* GET /api/internal/hooks/upload
|
|
34
|
-
* Returns the configured auto-upload type whitelist.
|
|
35
|
-
*/
|
|
36
|
-
export async function GET(request: NextRequest) {
|
|
37
|
-
const forbidden = requireLocalhost(request);
|
|
38
|
-
if (forbidden) return forbidden;
|
|
39
|
-
|
|
40
|
-
const types = await readConfigValue<string[]>(
|
|
41
|
-
"hooks.autoUploadTypes",
|
|
42
|
-
DEFAULT_UPLOAD_TYPES
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
return NextResponse.json({ types });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* POST /api/internal/hooks/upload
|
|
50
|
-
* Accepts { taskId, filePath } from the PostToolUse hook script.
|
|
51
|
-
* Copies file to project assets directory and creates a DB record.
|
|
52
|
-
*/
|
|
53
|
-
export async function POST(request: NextRequest) {
|
|
54
|
-
const forbidden = requireLocalhost(request);
|
|
55
|
-
if (forbidden) return forbidden;
|
|
56
|
-
|
|
57
|
-
let body: { taskId?: string; filePath?: string };
|
|
58
|
-
try {
|
|
59
|
-
body = await request.json();
|
|
60
|
-
} catch {
|
|
61
|
-
return NextResponse.json({ error: "Invalid JSON body" }, { status: 400 });
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const { taskId, filePath } = body;
|
|
65
|
-
|
|
66
|
-
if (!taskId || typeof taskId !== "string") {
|
|
67
|
-
return NextResponse.json({ error: "Missing taskId" }, { status: 400 });
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const taskIdError = validateTaskId(taskId);
|
|
71
|
-
if (taskIdError) return taskIdError;
|
|
72
|
-
|
|
73
|
-
if (!filePath || typeof filePath !== "string") {
|
|
74
|
-
return NextResponse.json({ error: "Missing filePath" }, { status: 400 });
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Validate file exists
|
|
78
|
-
let fileStat;
|
|
79
|
-
try {
|
|
80
|
-
fileStat = await stat(filePath);
|
|
81
|
-
} catch {
|
|
82
|
-
return NextResponse.json({ error: "File not found" }, { status: 404 });
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Check file size
|
|
86
|
-
const maxBytes = await readConfigValue<number>("system.maxUploadBytes", 10 * 1024 * 1024);
|
|
87
|
-
if (fileStat.size > maxBytes) {
|
|
88
|
-
return NextResponse.json(
|
|
89
|
-
{ error: `File exceeds max size (${maxBytes} bytes)` },
|
|
90
|
-
{ status: 413 }
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Check file extension against whitelist
|
|
95
|
-
const ext = path.extname(filePath).slice(1).toLowerCase();
|
|
96
|
-
const allowedTypes = await readConfigValue<string[]>(
|
|
97
|
-
"hooks.autoUploadTypes",
|
|
98
|
-
DEFAULT_UPLOAD_TYPES
|
|
99
|
-
);
|
|
100
|
-
if (!allowedTypes.includes(ext)) {
|
|
101
|
-
return NextResponse.json(
|
|
102
|
-
{ error: `File type .${ext} not in allowed list` },
|
|
103
|
-
{ status: 400 }
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Look up task to get projectId and project localPath for path containment check
|
|
108
|
-
const task = await db.task.findUnique({
|
|
109
|
-
where: { id: taskId },
|
|
110
|
-
select: {
|
|
111
|
-
projectId: true,
|
|
112
|
-
project: { select: { localPath: true } },
|
|
113
|
-
},
|
|
114
|
-
});
|
|
115
|
-
if (!task) {
|
|
116
|
-
return NextResponse.json({ error: "Task not found" }, { status: 404 });
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// SECURITY: Restrict filePath to within the project directory (or /tmp)
|
|
120
|
-
// Prevents arbitrary file read from any path on the filesystem
|
|
121
|
-
const resolvedFile = path.resolve(filePath);
|
|
122
|
-
const projectRoot = task.project.localPath;
|
|
123
|
-
const tmpDir = process.env.TMPDIR || "/tmp";
|
|
124
|
-
const isUnderProject = projectRoot && resolvedFile.startsWith(path.resolve(projectRoot) + path.sep);
|
|
125
|
-
const isUnderTmp = resolvedFile.startsWith(path.resolve(tmpDir) + path.sep);
|
|
126
|
-
if (!isUnderProject && !isUnderTmp) {
|
|
127
|
-
return NextResponse.json(
|
|
128
|
-
{ error: "filePath must be within the project directory or temp directory" },
|
|
129
|
-
{ status: 403 }
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const projectId = task.projectId;
|
|
134
|
-
|
|
135
|
-
// Ensure target directory exists
|
|
136
|
-
const assetsDir = ensureAssetsDir(projectId);
|
|
137
|
-
|
|
138
|
-
// Handle filename collision
|
|
139
|
-
let filename = path.basename(filePath);
|
|
140
|
-
let destPath = path.join(assetsDir, filename);
|
|
141
|
-
|
|
142
|
-
if (existsSync(destPath)) {
|
|
143
|
-
const stem = path.basename(filename, path.extname(filename));
|
|
144
|
-
const timestamp = Date.now();
|
|
145
|
-
filename = `${stem}-${timestamp}.${ext}`;
|
|
146
|
-
destPath = path.join(assetsDir, filename);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// Copy file
|
|
150
|
-
try {
|
|
151
|
-
await copyFile(filePath, destPath);
|
|
152
|
-
} catch (err) {
|
|
153
|
-
return NextResponse.json(
|
|
154
|
-
{ error: `Failed to copy file: ${err instanceof Error ? err.message : "unknown"}` },
|
|
155
|
-
{ status: 500 }
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Create DB record
|
|
160
|
-
const mimeType = MIME_MAP[ext] || "application/octet-stream";
|
|
161
|
-
const asset = await db.projectAsset.create({
|
|
162
|
-
data: {
|
|
163
|
-
filename,
|
|
164
|
-
path: destPath,
|
|
165
|
-
mimeType,
|
|
166
|
-
size: fileStat.size,
|
|
167
|
-
projectId,
|
|
168
|
-
taskId,
|
|
169
|
-
},
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
return NextResponse.json({ success: true, assetId: asset.id });
|
|
173
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from "next/server";
|
|
2
|
-
import { requireLocalhost } from "@/lib/internal-api-guard";
|
|
3
|
-
import type { TaskCompletionPayload } from "@/actions/onboarding-actions";
|
|
4
|
-
|
|
5
|
-
export const runtime = "nodejs";
|
|
6
|
-
export const dynamic = "force-dynamic";
|
|
7
|
-
|
|
8
|
-
// D-04: globalThis singleton — survives HMR/module re-evaluation in Next.js dev mode.
|
|
9
|
-
const g = globalThis as typeof globalThis & {
|
|
10
|
-
__taskCompletionQueue?: TaskCompletionPayload[];
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export async function GET(request: NextRequest) {
|
|
14
|
-
const blocked = requireLocalhost(request);
|
|
15
|
-
if (blocked) return blocked;
|
|
16
|
-
|
|
17
|
-
const events = g.__taskCompletionQueue ?? [];
|
|
18
|
-
g.__taskCompletionQueue = [];
|
|
19
|
-
return NextResponse.json({ events });
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from "next/server";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { getSession } from "@/lib/pty/session-store";
|
|
4
|
-
import { requireLocalhost, validateTaskId } from "@/lib/internal-api-guard";
|
|
5
|
-
|
|
6
|
-
// Prevent response caching — output changes on every call
|
|
7
|
-
export const dynamic = "force-dynamic";
|
|
8
|
-
// Require Node.js runtime — node-pty sessions only exist in Node.js process
|
|
9
|
-
export const runtime = "nodejs";
|
|
10
|
-
|
|
11
|
-
const linesSchema = z.coerce.number().int().min(1).max(500).default(100);
|
|
12
|
-
|
|
13
|
-
export async function GET(
|
|
14
|
-
request: NextRequest,
|
|
15
|
-
{ params }: { params: Promise<{ taskId: string }> }
|
|
16
|
-
) {
|
|
17
|
-
const blocked = requireLocalhost(request);
|
|
18
|
-
if (blocked) return blocked;
|
|
19
|
-
|
|
20
|
-
const { taskId } = await params;
|
|
21
|
-
|
|
22
|
-
const invalid = validateTaskId(taskId);
|
|
23
|
-
if (invalid) return invalid;
|
|
24
|
-
|
|
25
|
-
const session = getSession(taskId);
|
|
26
|
-
if (!session) {
|
|
27
|
-
return NextResponse.json(
|
|
28
|
-
{ error: "No active session" },
|
|
29
|
-
{ status: 404 }
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Parse optional ?lines= query param
|
|
34
|
-
const linesParam = request.nextUrl.searchParams.get("lines");
|
|
35
|
-
const parseResult = linesSchema.safeParse(linesParam ?? undefined);
|
|
36
|
-
const lineCount = parseResult.success ? parseResult.data : 100;
|
|
37
|
-
|
|
38
|
-
const buffer = session.getBuffer();
|
|
39
|
-
const allLines = buffer.split("\n");
|
|
40
|
-
const lines = allLines.slice(-lineCount);
|
|
41
|
-
|
|
42
|
-
return NextResponse.json({
|
|
43
|
-
taskId,
|
|
44
|
-
lines,
|
|
45
|
-
total: lines.length,
|
|
46
|
-
killed: session.killed,
|
|
47
|
-
});
|
|
48
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from "next/server";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { getSession } from "@/lib/pty/session-store";
|
|
4
|
-
import { requireLocalhost, validateTaskId } from "@/lib/internal-api-guard";
|
|
5
|
-
|
|
6
|
-
// Prevent response caching
|
|
7
|
-
export const dynamic = "force-dynamic";
|
|
8
|
-
// Require Node.js runtime — node-pty sessions only exist in Node.js process
|
|
9
|
-
export const runtime = "nodejs";
|
|
10
|
-
|
|
11
|
-
const bodySchema = z.object({
|
|
12
|
-
text: z.string().min(1).max(10000),
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export async function POST(
|
|
16
|
-
request: NextRequest,
|
|
17
|
-
{ params }: { params: Promise<{ taskId: string }> }
|
|
18
|
-
) {
|
|
19
|
-
const blocked = requireLocalhost(request);
|
|
20
|
-
if (blocked) return blocked;
|
|
21
|
-
|
|
22
|
-
const { taskId } = await params;
|
|
23
|
-
|
|
24
|
-
const invalid = validateTaskId(taskId);
|
|
25
|
-
if (invalid) return invalid;
|
|
26
|
-
|
|
27
|
-
// Parse and validate request body
|
|
28
|
-
let parsed;
|
|
29
|
-
try {
|
|
30
|
-
const body = await request.json();
|
|
31
|
-
parsed = bodySchema.safeParse(body);
|
|
32
|
-
} catch {
|
|
33
|
-
return NextResponse.json(
|
|
34
|
-
{ error: "Invalid body: text field required (string, 1-10000 chars)" },
|
|
35
|
-
{ status: 400 }
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (!parsed.success) {
|
|
40
|
-
return NextResponse.json(
|
|
41
|
-
{ error: "Invalid body: text field required (string, 1-10000 chars)" },
|
|
42
|
-
{ status: 400 }
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const session = getSession(taskId);
|
|
47
|
-
if (!session) {
|
|
48
|
-
return NextResponse.json(
|
|
49
|
-
{ error: "No active session" },
|
|
50
|
-
{ status: 404 }
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (session.killed) {
|
|
55
|
-
return NextResponse.json(
|
|
56
|
-
{ error: "Session has exited" },
|
|
57
|
-
{ status: 410 }
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
session.write(parsed.data.text);
|
|
62
|
-
|
|
63
|
-
return NextResponse.json({ ok: true, taskId });
|
|
64
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from "next/server";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { requireLocalhost, validateTaskId } from "@/lib/internal-api-guard";
|
|
4
|
-
import { startPtyExecution } from "@/actions/agent-actions";
|
|
5
|
-
|
|
6
|
-
export const dynamic = "force-dynamic";
|
|
7
|
-
export const runtime = "nodejs";
|
|
8
|
-
|
|
9
|
-
const bodySchema = z.object({
|
|
10
|
-
prompt: z.string().optional().default(""),
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export async function POST(
|
|
14
|
-
request: NextRequest,
|
|
15
|
-
{ params }: { params: Promise<{ taskId: string }> }
|
|
16
|
-
) {
|
|
17
|
-
const blocked = requireLocalhost(request);
|
|
18
|
-
if (blocked) return blocked;
|
|
19
|
-
|
|
20
|
-
const { taskId } = await params;
|
|
21
|
-
const idError = validateTaskId(taskId);
|
|
22
|
-
if (idError) return idError;
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
const body = await request.json();
|
|
26
|
-
const parsed = bodySchema.safeParse(body);
|
|
27
|
-
if (!parsed.success) {
|
|
28
|
-
return NextResponse.json({ error: "Invalid body" }, { status: 400 });
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const result = await startPtyExecution(taskId, parsed.data.prompt);
|
|
32
|
-
return NextResponse.json(result);
|
|
33
|
-
} catch (error) {
|
|
34
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
35
|
-
return NextResponse.json({ error: message }, { status: 500 });
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from "next/server";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { db } from "@/lib/db";
|
|
4
|
-
import { execFileSync } from "child_process";
|
|
5
|
-
import { existsSync, readFileSync } from "fs";
|
|
6
|
-
import path from "path";
|
|
7
|
-
import { parseDiffOutput, checkConflicts, type DiffFile } from "@/lib/diff-parser";
|
|
8
|
-
|
|
9
|
-
export async function GET(
|
|
10
|
-
_request: NextRequest,
|
|
11
|
-
{ params }: { params: Promise<{ taskId: string }> }
|
|
12
|
-
) {
|
|
13
|
-
const { taskId } = await params;
|
|
14
|
-
|
|
15
|
-
const parsed = z.string().cuid().safeParse(taskId);
|
|
16
|
-
if (!parsed.success) {
|
|
17
|
-
return NextResponse.json({ error: "Invalid task ID" }, { status: 400 });
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
try {
|
|
21
|
-
const task = await db.task.findUnique({
|
|
22
|
-
where: { id: parsed.data },
|
|
23
|
-
include: { project: true },
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
if (!task) {
|
|
27
|
-
return NextResponse.json({ error: "Task not found" }, { status: 404 });
|
|
28
|
-
}
|
|
29
|
-
if (!task.project?.localPath) {
|
|
30
|
-
return NextResponse.json(
|
|
31
|
-
{ error: "Project has no local path" },
|
|
32
|
-
{ status: 400 }
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const baseBranch = task.baseBranch || "main";
|
|
37
|
-
const localPath = task.project.localPath;
|
|
38
|
-
|
|
39
|
-
const latestExecution = await db.taskExecution.findFirst({
|
|
40
|
-
where: { taskId: parsed.data },
|
|
41
|
-
orderBy: { createdAt: "desc" },
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
if (!latestExecution) {
|
|
45
|
-
return NextResponse.json({
|
|
46
|
-
files: [], totalAdded: 0, totalRemoved: 0,
|
|
47
|
-
hasConflicts: false, conflictFiles: [], commitCount: 0,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const forkCommit = latestExecution.forkCommit;
|
|
52
|
-
const mergeCommit = latestExecution.mergeCommit;
|
|
53
|
-
const branchTipCommit = latestExecution.branchTipCommit;
|
|
54
|
-
const worktreeBranch = latestExecution.worktreeBranch;
|
|
55
|
-
const worktreePath = latestExecution.worktreePath;
|
|
56
|
-
|
|
57
|
-
let diffCwd: string;
|
|
58
|
-
let diffTarget: string;
|
|
59
|
-
|
|
60
|
-
if (mergeCommit && forkCommit) {
|
|
61
|
-
// DONE state — use branchTipCommit to show only task's own changes,
|
|
62
|
-
// falling back to mergeCommit for backward compatibility
|
|
63
|
-
diffCwd = localPath;
|
|
64
|
-
const endCommit = branchTipCommit || mergeCommit;
|
|
65
|
-
diffTarget = `${forkCommit}..${endCommit}`;
|
|
66
|
-
} else if (forkCommit && worktreePath && existsSync(worktreePath)) {
|
|
67
|
-
// IN_PROGRESS/IN_REVIEW worktree mode — diff from fork point in worktree (includes uncommitted)
|
|
68
|
-
diffCwd = worktreePath;
|
|
69
|
-
diffTarget = forkCommit;
|
|
70
|
-
} else if (forkCommit && !worktreePath) {
|
|
71
|
-
// IN_PROGRESS/IN_REVIEW direct mode — diff from fork point on main repo
|
|
72
|
-
diffCwd = localPath;
|
|
73
|
-
diffTarget = forkCommit;
|
|
74
|
-
} else if (worktreeBranch) {
|
|
75
|
-
// Fallback — use branch names to compute merge-base
|
|
76
|
-
try {
|
|
77
|
-
const mb = execFileSync(
|
|
78
|
-
"git", ["merge-base", baseBranch, worktreeBranch],
|
|
79
|
-
{ cwd: localPath, encoding: "utf-8", timeout: 5000 }
|
|
80
|
-
).trim();
|
|
81
|
-
const wtp = worktreePath && existsSync(worktreePath) ? worktreePath : localPath;
|
|
82
|
-
diffCwd = wtp;
|
|
83
|
-
diffTarget = mb;
|
|
84
|
-
} catch {
|
|
85
|
-
return NextResponse.json({
|
|
86
|
-
error: "Branch deleted", branchDeleted: true,
|
|
87
|
-
files: [], totalAdded: 0, totalRemoved: 0,
|
|
88
|
-
hasConflicts: false, conflictFiles: [], commitCount: 0,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
} else {
|
|
92
|
-
return NextResponse.json({
|
|
93
|
-
files: [], totalAdded: 0, totalRemoved: 0,
|
|
94
|
-
hasConflicts: false, conflictFiles: [], commitCount: 0,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Run numstat + unified diff
|
|
99
|
-
const numstat = execFileSync(
|
|
100
|
-
"git", ["diff", "--numstat", diffTarget],
|
|
101
|
-
{ cwd: diffCwd, encoding: "utf-8", timeout: 30000 }
|
|
102
|
-
);
|
|
103
|
-
const unified = execFileSync(
|
|
104
|
-
"git", ["diff", "--unified=3", diffTarget],
|
|
105
|
-
{ cwd: diffCwd, encoding: "utf-8", timeout: 30000 }
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
const parsedDiff = parseDiffOutput(numstat, unified);
|
|
109
|
-
|
|
110
|
-
// Include untracked files for live worktree diffs (not DONE state)
|
|
111
|
-
if (!mergeCommit && worktreePath && existsSync(worktreePath)) {
|
|
112
|
-
try {
|
|
113
|
-
const untrackedOutput = execFileSync(
|
|
114
|
-
"git", ["ls-files", "--others", "--exclude-standard"],
|
|
115
|
-
{ cwd: diffCwd, encoding: "utf-8", timeout: 5000 }
|
|
116
|
-
).trim();
|
|
117
|
-
if (untrackedOutput) {
|
|
118
|
-
for (const filename of untrackedOutput.split("\n")) {
|
|
119
|
-
if (!filename) continue;
|
|
120
|
-
try {
|
|
121
|
-
const filePath = path.join(diffCwd, filename);
|
|
122
|
-
const content = readFileSync(filePath, "utf-8");
|
|
123
|
-
const lines = content.split("\n");
|
|
124
|
-
// Remove trailing empty line from split
|
|
125
|
-
if (lines[lines.length - 1] === "") lines.pop();
|
|
126
|
-
const lineCount = lines.length;
|
|
127
|
-
const patchLines = [
|
|
128
|
-
`diff --git a/${filename} b/${filename}`,
|
|
129
|
-
"new file mode 100644",
|
|
130
|
-
"--- /dev/null",
|
|
131
|
-
`+++ b/${filename}`,
|
|
132
|
-
`@@ -0,0 +1,${lineCount} @@`,
|
|
133
|
-
...lines.map((l) => `+${l}`),
|
|
134
|
-
];
|
|
135
|
-
const entry: DiffFile = {
|
|
136
|
-
filename,
|
|
137
|
-
added: lineCount,
|
|
138
|
-
removed: 0,
|
|
139
|
-
isBinary: false,
|
|
140
|
-
patch: patchLines.join("\n"),
|
|
141
|
-
};
|
|
142
|
-
parsedDiff.files.push(entry);
|
|
143
|
-
parsedDiff.totalAdded += lineCount;
|
|
144
|
-
} catch {
|
|
145
|
-
// Skip binary or unreadable files
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
} catch {
|
|
150
|
-
// ignore — best effort
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// Conflict check only relevant before merge
|
|
155
|
-
let hasConflicts = false;
|
|
156
|
-
let conflictFiles: string[] = [];
|
|
157
|
-
if (!mergeCommit && worktreeBranch) {
|
|
158
|
-
({ hasConflicts, conflictFiles } = checkConflicts(localPath, baseBranch, worktreeBranch));
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// Commit count
|
|
162
|
-
let commitCount = 0;
|
|
163
|
-
if (mergeCommit && forkCommit) {
|
|
164
|
-
try {
|
|
165
|
-
const endCommit = branchTipCommit || mergeCommit;
|
|
166
|
-
const str = execFileSync(
|
|
167
|
-
"git", ["rev-list", "--count", `${forkCommit}..${endCommit}`],
|
|
168
|
-
{ cwd: diffCwd, encoding: "utf-8", timeout: 5000 }
|
|
169
|
-
).trim();
|
|
170
|
-
commitCount = parseInt(str, 10) || 0;
|
|
171
|
-
} catch {
|
|
172
|
-
// ignore
|
|
173
|
-
}
|
|
174
|
-
} else if (forkCommit) {
|
|
175
|
-
try {
|
|
176
|
-
const str = execFileSync(
|
|
177
|
-
"git", ["rev-list", "--count", `${forkCommit}..HEAD`],
|
|
178
|
-
{ cwd: diffCwd, encoding: "utf-8", timeout: 5000 }
|
|
179
|
-
).trim();
|
|
180
|
-
commitCount = parseInt(str, 10) || 0;
|
|
181
|
-
} catch {
|
|
182
|
-
// ignore
|
|
183
|
-
}
|
|
184
|
-
} else if (worktreeBranch) {
|
|
185
|
-
try {
|
|
186
|
-
const commitCountStr = execFileSync(
|
|
187
|
-
"git", ["rev-list", "--count", `${diffTarget}..${worktreeBranch}`],
|
|
188
|
-
{ cwd: localPath, encoding: "utf-8", timeout: 5000 }
|
|
189
|
-
).trim();
|
|
190
|
-
commitCount = parseInt(commitCountStr, 10) || 0;
|
|
191
|
-
} catch {
|
|
192
|
-
// ignore
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// Check for uncommitted changes in worktree
|
|
197
|
-
let hasUncommitted = false;
|
|
198
|
-
if (worktreePath && existsSync(worktreePath) && !mergeCommit) {
|
|
199
|
-
try {
|
|
200
|
-
const status = execFileSync(
|
|
201
|
-
"git", ["status", "--porcelain"],
|
|
202
|
-
{ cwd: worktreePath, encoding: "utf-8", timeout: 5000 }
|
|
203
|
-
).trim();
|
|
204
|
-
hasUncommitted = status.length > 0;
|
|
205
|
-
} catch {
|
|
206
|
-
// ignore
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return NextResponse.json({
|
|
211
|
-
...parsedDiff,
|
|
212
|
-
hasConflicts,
|
|
213
|
-
conflictFiles,
|
|
214
|
-
commitCount,
|
|
215
|
-
hasUncommitted,
|
|
216
|
-
});
|
|
217
|
-
} catch (error) {
|
|
218
|
-
console.error("[diff] Failed to generate diff:", error);
|
|
219
|
-
return NextResponse.json(
|
|
220
|
-
{ error: "Failed to generate diff" },
|
|
221
|
-
{ status: 500 }
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
}
|