vibe-pal 0.42.0
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 +32 -0
- package/.next/build-manifest.json +21 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +12 -0
- package/.next/images-manifest.json +67 -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 +258 -0
- package/.next/required-server-files.js +343 -0
- package/.next/required-server-files.json +343 -0
- package/.next/routes-manifest.json +233 -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 +10 -0
- package/.next/server/app/_global-error/page.js.map +5 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
- package/.next/server/app/_global-error.html +2 -0
- package/.next/server/app/_global-error.meta +15 -0
- package/.next/server/app/_global-error.rsc +12 -0
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +12 -0
- package/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_index.segment.rsc +4 -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 +1 -0
- package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_not-found/page.js +15 -0
- package/.next/server/app/_not-found/page.js.map +5 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
- package/.next/server/app/_not-found.html +54 -0
- package/.next/server/app/_not-found.meta +16 -0
- package/.next/server/app/_not-found.rsc +73 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +73 -0
- package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_not-found.segments/_index.segment.rsc +61 -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 +4 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/api/component-source/resolve/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/component-source/resolve/route/build-manifest.json +11 -0
- package/.next/server/app/api/component-source/resolve/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/component-source/resolve/route.js +8 -0
- package/.next/server/app/api/component-source/resolve/route.js.map +5 -0
- package/.next/server/app/api/component-source/resolve/route.js.nft.json +1 -0
- package/.next/server/app/api/component-source/resolve/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/credentials/github/repos/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/credentials/github/repos/route/build-manifest.json +11 -0
- package/.next/server/app/api/credentials/github/repos/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/credentials/github/repos/route.js +8 -0
- package/.next/server/app/api/credentials/github/repos/route.js.map +5 -0
- package/.next/server/app/api/credentials/github/repos/route.js.nft.json +1 -0
- package/.next/server/app/api/credentials/github/repos/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/credentials/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/credentials/route/build-manifest.json +11 -0
- package/.next/server/app/api/credentials/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/credentials/route.js +8 -0
- package/.next/server/app/api/credentials/route.js.map +5 -0
- package/.next/server/app/api/credentials/route.js.nft.json +1 -0
- package/.next/server/app/api/credentials/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/custom-scripts/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/custom-scripts/route/build-manifest.json +11 -0
- package/.next/server/app/api/custom-scripts/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/custom-scripts/route.js +10 -0
- package/.next/server/app/api/custom-scripts/route.js.map +5 -0
- package/.next/server/app/api/custom-scripts/route.js.nft.json +1 -0
- package/.next/server/app/api/custom-scripts/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/file-thumbnail/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/file-thumbnail/route/build-manifest.json +11 -0
- package/.next/server/app/api/file-thumbnail/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/file-thumbnail/route.js +6 -0
- package/.next/server/app/api/file-thumbnail/route.js.map +5 -0
- package/.next/server/app/api/file-thumbnail/route.js.nft.json +1 -0
- package/.next/server/app/api/file-thumbnail/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/fs/open/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/fs/open/route/build-manifest.json +11 -0
- package/.next/server/app/api/fs/open/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/fs/open/route.js +8 -0
- package/.next/server/app/api/fs/open/route.js.map +5 -0
- package/.next/server/app/api/fs/open/route.js.nft.json +1 -0
- package/.next/server/app/api/fs/open/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/fs/open-terminal/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/fs/open-terminal/route/build-manifest.json +11 -0
- package/.next/server/app/api/fs/open-terminal/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/fs/open-terminal/route.js +8 -0
- package/.next/server/app/api/fs/open-terminal/route.js.map +5 -0
- package/.next/server/app/api/fs/open-terminal/route.js.nft.json +1 -0
- package/.next/server/app/api/fs/open-terminal/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/git/action/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/git/action/route/build-manifest.json +11 -0
- package/.next/server/app/api/git/action/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/git/action/route.js +10 -0
- package/.next/server/app/api/git/action/route.js.map +5 -0
- package/.next/server/app/api/git/action/route.js.nft.json +1 -0
- package/.next/server/app/api/git/action/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/git/branches/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/git/branches/route/build-manifest.json +11 -0
- package/.next/server/app/api/git/branches/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/git/branches/route.js +10 -0
- package/.next/server/app/api/git/branches/route.js.map +5 -0
- package/.next/server/app/api/git/branches/route.js.nft.json +1 -0
- package/.next/server/app/api/git/branches/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/git/diff/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/git/diff/route/build-manifest.json +11 -0
- package/.next/server/app/api/git/diff/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/git/diff/route.js +9 -0
- package/.next/server/app/api/git/diff/route.js.map +5 -0
- package/.next/server/app/api/git/diff/route.js.nft.json +1 -0
- package/.next/server/app/api/git/diff/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/git/log/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/git/log/route/build-manifest.json +11 -0
- package/.next/server/app/api/git/log/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/git/log/route.js +10 -0
- package/.next/server/app/api/git/log/route.js.map +5 -0
- package/.next/server/app/api/git/log/route.js.nft.json +1 -0
- package/.next/server/app/api/git/log/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/git/status/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/git/status/route/build-manifest.json +11 -0
- package/.next/server/app/api/git/status/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/git/status/route.js +10 -0
- package/.next/server/app/api/git/status/route.js.map +5 -0
- package/.next/server/app/api/git/status/route.js.nft.json +1 -0
- package/.next/server/app/api/git/status/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/notifications/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/notifications/route/build-manifest.json +11 -0
- package/.next/server/app/api/notifications/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/notifications/route.js +8 -0
- package/.next/server/app/api/notifications/route.js.map +5 -0
- package/.next/server/app/api/notifications/route.js.nft.json +1 -0
- package/.next/server/app/api/notifications/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/notifications/socket/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/notifications/socket/route/build-manifest.json +11 -0
- package/.next/server/app/api/notifications/socket/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/notifications/socket/route.js +8 -0
- package/.next/server/app/api/notifications/socket/route.js.map +5 -0
- package/.next/server/app/api/notifications/socket/route.js.nft.json +1 -0
- package/.next/server/app/api/notifications/socket/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/preview-proxy/start/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/preview-proxy/start/route/build-manifest.json +11 -0
- package/.next/server/app/api/preview-proxy/start/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/preview-proxy/start/route.js +8 -0
- package/.next/server/app/api/preview-proxy/start/route.js.map +5 -0
- package/.next/server/app/api/preview-proxy/start/route.js.nft.json +1 -0
- package/.next/server/app/api/preview-proxy/start/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/repos/clone/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/repos/clone/route/build-manifest.json +11 -0
- package/.next/server/app/api/repos/clone/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/repos/clone/route.js +9 -0
- package/.next/server/app/api/repos/clone/route.js.map +5 -0
- package/.next/server/app/api/repos/clone/route.js.nft.json +1 -0
- package/.next/server/app/api/repos/clone/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/repos/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/repos/route/build-manifest.json +11 -0
- package/.next/server/app/api/repos/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/repos/route.js +9 -0
- package/.next/server/app/api/repos/route.js.map +5 -0
- package/.next/server/app/api/repos/route.js.nft.json +1 -0
- package/.next/server/app/api/repos/route_client-reference-manifest.js +2 -0
- package/.next/server/app/api/settings/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/settings/route/build-manifest.json +11 -0
- package/.next/server/app/api/settings/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/settings/route.js +8 -0
- package/.next/server/app/api/settings/route.js.map +5 -0
- package/.next/server/app/api/settings/route.js.nft.json +1 -0
- package/.next/server/app/api/settings/route_client-reference-manifest.js +2 -0
- package/.next/server/app/credentials/page/app-paths-manifest.json +3 -0
- package/.next/server/app/credentials/page/build-manifest.json +18 -0
- package/.next/server/app/credentials/page/next-font-manifest.json +11 -0
- package/.next/server/app/credentials/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/credentials/page/server-reference-manifest.json +110 -0
- package/.next/server/app/credentials/page.js +18 -0
- package/.next/server/app/credentials/page.js.map +5 -0
- package/.next/server/app/credentials/page.js.nft.json +1 -0
- package/.next/server/app/credentials/page_client-reference-manifest.js +2 -0
- package/.next/server/app/credentials.html +54 -0
- package/.next/server/app/credentials.meta +15 -0
- package/.next/server/app/credentials.rsc +79 -0
- package/.next/server/app/credentials.segments/_full.segment.rsc +79 -0
- package/.next/server/app/credentials.segments/_head.segment.rsc +6 -0
- package/.next/server/app/credentials.segments/_index.segment.rsc +61 -0
- package/.next/server/app/credentials.segments/_tree.segment.rsc +6 -0
- package/.next/server/app/credentials.segments/credentials/__PAGE__.segment.rsc +9 -0
- package/.next/server/app/credentials.segments/credentials.segment.rsc +4 -0
- package/.next/server/app/git/changes/page/app-paths-manifest.json +3 -0
- package/.next/server/app/git/changes/page/build-manifest.json +18 -0
- package/.next/server/app/git/changes/page/next-font-manifest.json +11 -0
- package/.next/server/app/git/changes/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/git/changes/page/server-reference-manifest.json +4 -0
- package/.next/server/app/git/changes/page.js +18 -0
- package/.next/server/app/git/changes/page.js.map +5 -0
- package/.next/server/app/git/changes/page.js.nft.json +1 -0
- package/.next/server/app/git/changes/page_client-reference-manifest.js +2 -0
- package/.next/server/app/git/changes.html +54 -0
- package/.next/server/app/git/changes.meta +16 -0
- package/.next/server/app/git/changes.rsc +83 -0
- package/.next/server/app/git/changes.segments/_full.segment.rsc +83 -0
- package/.next/server/app/git/changes.segments/_head.segment.rsc +6 -0
- package/.next/server/app/git/changes.segments/_index.segment.rsc +61 -0
- package/.next/server/app/git/changes.segments/_tree.segment.rsc +7 -0
- package/.next/server/app/git/changes.segments/git/changes/__PAGE__.segment.rsc +10 -0
- package/.next/server/app/git/changes.segments/git/changes.segment.rsc +4 -0
- package/.next/server/app/git/changes.segments/git.segment.rsc +7 -0
- package/.next/server/app/git/custom-scripts/page/app-paths-manifest.json +3 -0
- package/.next/server/app/git/custom-scripts/page/build-manifest.json +18 -0
- package/.next/server/app/git/custom-scripts/page/next-font-manifest.json +11 -0
- package/.next/server/app/git/custom-scripts/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/git/custom-scripts/page/server-reference-manifest.json +4 -0
- package/.next/server/app/git/custom-scripts/page.js +18 -0
- package/.next/server/app/git/custom-scripts/page.js.map +5 -0
- package/.next/server/app/git/custom-scripts/page.js.nft.json +1 -0
- package/.next/server/app/git/custom-scripts/page_client-reference-manifest.js +2 -0
- package/.next/server/app/git/custom-scripts.html +54 -0
- package/.next/server/app/git/custom-scripts.meta +16 -0
- package/.next/server/app/git/custom-scripts.rsc +82 -0
- package/.next/server/app/git/custom-scripts.segments/_full.segment.rsc +82 -0
- package/.next/server/app/git/custom-scripts.segments/_head.segment.rsc +6 -0
- package/.next/server/app/git/custom-scripts.segments/_index.segment.rsc +61 -0
- package/.next/server/app/git/custom-scripts.segments/_tree.segment.rsc +6 -0
- package/.next/server/app/git/custom-scripts.segments/git/custom-scripts/__PAGE__.segment.rsc +9 -0
- package/.next/server/app/git/custom-scripts.segments/git/custom-scripts.segment.rsc +4 -0
- package/.next/server/app/git/custom-scripts.segments/git.segment.rsc +7 -0
- package/.next/server/app/git/history/page/app-paths-manifest.json +3 -0
- package/.next/server/app/git/history/page/build-manifest.json +18 -0
- package/.next/server/app/git/history/page/next-font-manifest.json +11 -0
- package/.next/server/app/git/history/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/git/history/page/server-reference-manifest.json +20 -0
- package/.next/server/app/git/history/page.js +19 -0
- package/.next/server/app/git/history/page.js.map +5 -0
- package/.next/server/app/git/history/page.js.nft.json +1 -0
- package/.next/server/app/git/history/page_client-reference-manifest.js +2 -0
- package/.next/server/app/git/history.html +54 -0
- package/.next/server/app/git/history.meta +16 -0
- package/.next/server/app/git/history.rsc +83 -0
- package/.next/server/app/git/history.segments/_full.segment.rsc +83 -0
- package/.next/server/app/git/history.segments/_head.segment.rsc +6 -0
- package/.next/server/app/git/history.segments/_index.segment.rsc +61 -0
- package/.next/server/app/git/history.segments/_tree.segment.rsc +7 -0
- package/.next/server/app/git/history.segments/git/history/__PAGE__.segment.rsc +10 -0
- package/.next/server/app/git/history.segments/git/history.segment.rsc +4 -0
- package/.next/server/app/git/history.segments/git.segment.rsc +7 -0
- package/.next/server/app/git/page/app-paths-manifest.json +3 -0
- package/.next/server/app/git/page/build-manifest.json +18 -0
- package/.next/server/app/git/page/next-font-manifest.json +11 -0
- package/.next/server/app/git/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/git/page/server-reference-manifest.json +20 -0
- package/.next/server/app/git/page.js +19 -0
- package/.next/server/app/git/page.js.map +5 -0
- package/.next/server/app/git/page.js.nft.json +1 -0
- package/.next/server/app/git/page_client-reference-manifest.js +2 -0
- package/.next/server/app/git/stashes/page/app-paths-manifest.json +3 -0
- package/.next/server/app/git/stashes/page/build-manifest.json +18 -0
- package/.next/server/app/git/stashes/page/next-font-manifest.json +11 -0
- package/.next/server/app/git/stashes/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/git/stashes/page/server-reference-manifest.json +4 -0
- package/.next/server/app/git/stashes/page.js +18 -0
- package/.next/server/app/git/stashes/page.js.map +5 -0
- package/.next/server/app/git/stashes/page.js.nft.json +1 -0
- package/.next/server/app/git/stashes/page_client-reference-manifest.js +2 -0
- package/.next/server/app/git/stashes.html +54 -0
- package/.next/server/app/git/stashes.meta +16 -0
- package/.next/server/app/git/stashes.rsc +83 -0
- package/.next/server/app/git/stashes.segments/_full.segment.rsc +83 -0
- package/.next/server/app/git/stashes.segments/_head.segment.rsc +6 -0
- package/.next/server/app/git/stashes.segments/_index.segment.rsc +61 -0
- package/.next/server/app/git/stashes.segments/_tree.segment.rsc +7 -0
- package/.next/server/app/git/stashes.segments/git/stashes/__PAGE__.segment.rsc +10 -0
- package/.next/server/app/git/stashes.segments/git/stashes.segment.rsc +4 -0
- package/.next/server/app/git/stashes.segments/git.segment.rsc +7 -0
- package/.next/server/app/git.html +54 -0
- package/.next/server/app/git.meta +15 -0
- package/.next/server/app/git.rsc +82 -0
- package/.next/server/app/git.segments/_full.segment.rsc +82 -0
- package/.next/server/app/git.segments/_head.segment.rsc +6 -0
- package/.next/server/app/git.segments/_index.segment.rsc +61 -0
- package/.next/server/app/git.segments/_tree.segment.rsc +7 -0
- package/.next/server/app/git.segments/git/__PAGE__.segment.rsc +10 -0
- package/.next/server/app/git.segments/git.segment.rsc +7 -0
- package/.next/server/app/icon.png/route/app-paths-manifest.json +3 -0
- package/.next/server/app/icon.png/route/build-manifest.json +11 -0
- package/.next/server/app/icon.png/route.js +8 -0
- package/.next/server/app/icon.png/route.js.map +5 -0
- package/.next/server/app/icon.png/route.js.nft.json +1 -0
- package/.next/server/app/icon.png.body +0 -0
- package/.next/server/app/icon.png.meta +1 -0
- package/.next/server/app/index.html +54 -0
- package/.next/server/app/index.meta +14 -0
- package/.next/server/app/index.rsc +78 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -0
- package/.next/server/app/index.segments/_full.segment.rsc +78 -0
- package/.next/server/app/index.segments/_head.segment.rsc +6 -0
- package/.next/server/app/index.segments/_index.segment.rsc +61 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +6 -0
- package/.next/server/app/new/page/app-paths-manifest.json +3 -0
- package/.next/server/app/new/page/build-manifest.json +18 -0
- package/.next/server/app/new/page/next-font-manifest.json +11 -0
- package/.next/server/app/new/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/new/page/server-reference-manifest.json +440 -0
- package/.next/server/app/new/page.js +19 -0
- package/.next/server/app/new/page.js.map +5 -0
- package/.next/server/app/new/page.js.nft.json +1 -0
- package/.next/server/app/new/page_client-reference-manifest.js +2 -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 +1 -0
- package/.next/server/app/page/server-reference-manifest.json +440 -0
- package/.next/server/app/page.js +19 -0
- package/.next/server/app/page.js.map +5 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +2 -0
- package/.next/server/app/session/[sessionId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/session/[sessionId]/page/build-manifest.json +18 -0
- package/.next/server/app/session/[sessionId]/page/next-font-manifest.json +11 -0
- package/.next/server/app/session/[sessionId]/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/session/[sessionId]/page/server-reference-manifest.json +305 -0
- package/.next/server/app/session/[sessionId]/page.js +18 -0
- package/.next/server/app/session/[sessionId]/page.js.map +5 -0
- package/.next/server/app/session/[sessionId]/page.js.nft.json +1 -0
- package/.next/server/app/session/[sessionId]/page_client-reference-manifest.js +2 -0
- package/.next/server/app-paths-manifest.json +32 -0
- package/.next/server/chunks/07f91_next_9d45f6d5._.js +17 -0
- package/.next/server/chunks/07f91_next_9d45f6d5._.js.map +1 -0
- package/.next/server/chunks/07f91_next_dist_esm_build_templates_app-route_46f1593d.js +3 -0
- package/.next/server/chunks/07f91_next_dist_esm_build_templates_app-route_46f1593d.js.map +1 -0
- package/.next/server/chunks/07f91_next_dist_esm_build_templates_app-route_90bd67a9.js +3 -0
- package/.next/server/chunks/07f91_next_dist_esm_build_templates_app-route_90bd67a9.js.map +1 -0
- package/.next/server/chunks/07f91_next_dist_esm_build_templates_app-route_f20df18e.js +3 -0
- package/.next/server/chunks/07f91_next_dist_esm_build_templates_app-route_f20df18e.js.map +1 -0
- package/.next/server/chunks/07f91_zod_v4_classic_external_d5e5e58f.js +39 -0
- package/.next/server/chunks/07f91_zod_v4_classic_external_d5e5e58f.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_credentials_route_actions_26ba0a95.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_credentials_route_actions_26ba0a95.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_fs_open_route_actions_032a4104.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_fs_open_route_actions_032a4104.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_action_route_actions_be1fb514.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_action_route_actions_be1fb514.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_branches_route_actions_82f3fb01.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_branches_route_actions_82f3fb01.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_diff_route_actions_2e33c2ae.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_diff_route_actions_2e33c2ae.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_log_route_actions_f07c3897.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_log_route_actions_f07c3897.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_status_route_actions_f81eb7b9.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_git_status_route_actions_f81eb7b9.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_repos_clone_route_actions_25fa7ec8.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_repos_clone_route_actions_25fa7ec8.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_repos_route_actions_bfe1f1f8.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_repos_route_actions_bfe1f1f8.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_settings_route_actions_21365dd0.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_api_settings_route_actions_21365dd0.js.map +1 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_icon_png_route_actions_6ca1b9f2.js +3 -0
- package/.next/server/chunks/6c7f9_projects_viba__next-internal_server_app_icon_png_route_actions_6ca1b9f2.js.map +1 -0
- package/.next/server/chunks/[externals]__4610b07e._.js +3 -0
- package/.next/server/chunks/[externals]__4610b07e._.js.map +1 -0
- package/.next/server/chunks/[externals]_keytar_be364400._.js +3 -0
- package/.next/server/chunks/[externals]_keytar_be364400._.js.map +1 -0
- package/.next/server/chunks/[externals]_next_dist_a6d89067._.js +3 -0
- package/.next/server/chunks/[externals]_next_dist_a6d89067._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__03cff574._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__03cff574._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__13277fdb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__13277fdb._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1e250bd8._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1e250bd8._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__3bd99321._.js +4 -0
- package/.next/server/chunks/[root-of-the-server]__3bd99321._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__4425ca0b._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__4425ca0b._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__534c2265._.js +7 -0
- package/.next/server/chunks/[root-of-the-server]__534c2265._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__5e629757._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__5e629757._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__6f61c772._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__6f61c772._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__7382f924._.js +519 -0
- package/.next/server/chunks/[root-of-the-server]__7382f924._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__747b62e9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__747b62e9._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__75dd8619._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__75dd8619._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__8303caaa._.js +7 -0
- package/.next/server/chunks/[root-of-the-server]__8303caaa._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__86bb1f97._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__86bb1f97._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__9535c729._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__9535c729._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__9fdd5d22._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__9fdd5d22._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__bb058465._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__bb058465._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__d0cd49f6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__d0cd49f6._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__df538917._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__df538917._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__e0fe0ef3._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__e0fe0ef3._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__e70b4dcf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__e70b4dcf._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__f09d5069._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__f09d5069._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__fa82312c._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__fa82312c._.js.map +1 -0
- package/.next/server/chunks/[turbopack]_runtime.js +795 -0
- package/.next/server/chunks/[turbopack]_runtime.js.map +10 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_custom-scripts_route_actions_246e6a14.js +3 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_custom-scripts_route_actions_246e6a14.js.map +1 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_file-thumbnail_route_actions_3d4e18bd.js +3 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_file-thumbnail_route_actions_3d4e18bd.js.map +1 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_fs_open-terminal_route_actions_64251327.js +3 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_fs_open-terminal_route_actions_64251327.js.map +1 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_notifications_route_actions_2a3fb889.js +3 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_notifications_route_actions_2a3fb889.js.map +1 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_notifications_socket_route_actions_2dfcbdcd.js +3 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_notifications_socket_route_actions_2dfcbdcd.js.map +1 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_preview-proxy_start_route_actions_70ba3b43.js +3 -0
- package/.next/server/chunks/bea2c_viba__next-internal_server_app_api_preview-proxy_start_route_actions_70ba3b43.js.map +1 -0
- package/.next/server/chunks/daa62__next-internal_server_app_api_component-source_resolve_route_actions_fbcf9527.js +3 -0
- package/.next/server/chunks/daa62__next-internal_server_app_api_component-source_resolve_route_actions_fbcf9527.js.map +1 -0
- package/.next/server/chunks/daa62__next-internal_server_app_api_credentials_github_repos_route_actions_50499a50.js +3 -0
- package/.next/server/chunks/daa62__next-internal_server_app_api_credentials_github_repos_route_actions_50499a50.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_854b7f96._.js +5 -0
- package/.next/server/chunks/ssr/07f91_854b7f96._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_8f9c8869._.js +5 -0
- package/.next/server/chunks/ssr/07f91_8f9c8869._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_956ea508._.js +6 -0
- package/.next/server/chunks/ssr/07f91_956ea508._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_a8df8b0c._.js +3 -0
- package/.next/server/chunks/ssr/07f91_a8df8b0c._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_c074daa5._.js +5 -0
- package/.next/server/chunks/ssr/07f91_c074daa5._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_43e2f24c._.js +10 -0
- package/.next/server/chunks/ssr/07f91_next_dist_43e2f24c._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_7d0992b2._.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_7d0992b2._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_847902a0._.js +4 -0
- package/.next/server/chunks/ssr/07f91_next_dist_847902a0._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_9854b44b._.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_9854b44b._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_afbe6819._.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_afbe6819._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_4ae0ede8._.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_4ae0ede8._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_builtin_forbidden_c3ca8aa4.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_builtin_forbidden_c3ca8aa4.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_builtin_global-error_cf183d39.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_builtin_global-error_cf183d39.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_builtin_unauthorized_b89fa42f.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_client_components_builtin_unauthorized_b89fa42f.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_esm_build_templates_app-page_ea68f183.js +4 -0
- package/.next/server/chunks/ssr/07f91_next_dist_esm_build_templates_app-page_ea68f183.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_esm_f542aeaf._.js +6 -0
- package/.next/server/chunks/ssr/07f91_next_dist_esm_f542aeaf._.js.map +1 -0
- package/.next/server/chunks/ssr/07f91_next_dist_f989a591._.js +3 -0
- package/.next/server/chunks/ssr/07f91_next_dist_f989a591._.js.map +1 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app__global-error_page_actions_12a76065.js +3 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app__global-error_page_actions_12a76065.js.map +1 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app__not-found_page_actions_8eddae2d.js +3 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app__not-found_page_actions_8eddae2d.js.map +1 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app_git_changes_page_actions_b65abe22.js +3 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app_git_changes_page_actions_b65abe22.js.map +1 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app_git_stashes_page_actions_5ca1e320.js +3 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba__next-internal_server_app_git_stashes_page_actions_5ca1e320.js.map +1 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba_src_app_session_[sessionId]_SessionPageClient_tsx_9a60a43f._.js +3 -0
- package/.next/server/chunks/ssr/6c7f9_projects_viba_src_app_session_[sessionId]_SessionPageClient_tsx_9a60a43f._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_023b240f._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_023b240f._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_2e71073c._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_2e71073c._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_36a9a2a6._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_36a9a2a6._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_441ff8fc._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_441ff8fc._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_4575bb25._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_4575bb25._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_491c66b5._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_491c66b5._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_5b83b11b._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_5b83b11b._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_5f81da3d._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_5f81da3d._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_737eaea2._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_737eaea2._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_8321a620._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_8321a620._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_86e2b7ee._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_86e2b7ee._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_886b5c21._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_886b5c21._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_91e6563b._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_91e6563b._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_a4a069bf._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_a4a069bf._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_a7330c23._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_a7330c23._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_a947365f._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_a947365f._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_bbe91f86._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_bbe91f86._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_d76b8119._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_d76b8119._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_e0cfd1bd._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_e0cfd1bd._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_e12bbfe7._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_e12bbfe7._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_f5bcd322._.js +4 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_f5bcd322._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_60d6e4a8._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_60d6e4a8._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_7080dcd5._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_7080dcd5._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_902b4f97._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_902b4f97._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_credentials_page_tsx_feca31b0._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_credentials_page_tsx_feca31b0._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_f00671d8._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_f00671d8._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_git_changes_page_tsx_2ddb49ff._.js +5 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_git_changes_page_tsx_2ddb49ff._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_providers_tsx_1935a601._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_providers_tsx_1935a601._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_GitRepoSelector_tsx_12f84b24._.js +11 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_GitRepoSelector_tsx_12f84b24._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_git_719ec297._.js +3 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_git_719ec297._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_git_grouped-diff-viewer_tsx_c6c96363._.js +20 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_git_grouped-diff-viewer_tsx_c6c96363._.js.map +1 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_git_history-view_tsx_da929479._.js +10 -0
- package/.next/server/chunks/ssr/Downloads_projects_viba_src_components_git_history-view_tsx_da929479._.js.map +1 -0
- package/.next/server/chunks/ssr/[externals]_keytar_be364400._.js +3 -0
- package/.next/server/chunks/ssr/[externals]_keytar_be364400._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__042e77f3._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__042e77f3._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0da720c2._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0da720c2._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__11f96c04._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__11f96c04._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__14783fb7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__14783fb7._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15e62f6d._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15e62f6d._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__32a09bd5._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__32a09bd5._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__34682e2a._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__34682e2a._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__3e589204._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__3e589204._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__477bb0b6._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__477bb0b6._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__4a454aa7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__4a454aa7._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__539b91c4._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__539b91c4._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__5e9108d1._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__5e9108d1._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__70d9971b._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__70d9971b._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__7982c07d._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__7982c07d._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__86283715._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__86283715._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__890874d7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__890874d7._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__99444007._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__99444007._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__9f9c4c2a._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__9f9c4c2a._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__a4cce383._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__a4cce383._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__a7d02cf0._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__a7d02cf0._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__a895bef0._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__a895bef0._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__bbbc1dcd._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__bbbc1dcd._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__c6036d32._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__c6036d32._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__d2fd5c45._.js +56 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__d2fd5c45._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__e980891e._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__e980891e._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__ebae5f25._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__ebae5f25._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__f4a7b848._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__f4a7b848._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__f96af125._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__f96af125._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__fbf4e5d6._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__fbf4e5d6._.js.map +1 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +795 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +10 -0
- package/.next/server/chunks/ssr/bea2c_viba__next-internal_server_app_git_custom-scripts_page_actions_a5c460bd.js +3 -0
- package/.next/server/chunks/ssr/bea2c_viba__next-internal_server_app_git_custom-scripts_page_actions_a5c460bd.js.map +1 -0
- package/.next/server/functions-config-manifest.json +12 -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 +47 -0
- package/.next/server/pages/404.html +54 -0
- package/.next/server/pages/500.html +2 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +999 -0
- package/.next/static/4Ptt2Q-nwEMnEyBKuchtV/_buildManifest.js +15 -0
- package/.next/static/4Ptt2Q-nwEMnEyBKuchtV/_clientMiddlewareManifest.json +1 -0
- package/.next/static/4Ptt2Q-nwEMnEyBKuchtV/_ssgManifest.js +1 -0
- package/.next/static/chunks/065655f25ed22132.css +1 -0
- package/.next/static/chunks/16162035a1262102.js +3 -0
- package/.next/static/chunks/1b4e8e45df39fdf3.js +1 -0
- package/.next/static/chunks/1d78f85c04265bde.js +9 -0
- package/.next/static/chunks/2473c16c0c2f6b5f.css +2 -0
- package/.next/static/chunks/2dc27b124db2f6a9.js +4 -0
- package/.next/static/chunks/3e473d64e3c1431e.js +1 -0
- package/.next/static/chunks/420b7135218137d0.js +1 -0
- package/.next/static/chunks/4e0c5fc850347be6.js +3 -0
- package/.next/static/chunks/569b2039db4d4590.js +1 -0
- package/.next/static/chunks/6bccf66f04746085.js +1 -0
- package/.next/static/chunks/6e4ef91f4fe56ee8.js +1 -0
- package/.next/static/chunks/76695fea59118edb.js +8 -0
- package/.next/static/chunks/7c3e3b5c3bc4f99f.js +3 -0
- package/.next/static/chunks/91220a448294b75d.js +18 -0
- package/.next/static/chunks/9177eac6e25015f8.js +1 -0
- package/.next/static/chunks/9ba08e490fcd45b8.js +1 -0
- package/.next/static/chunks/a3f8b5278efb004c.js +1 -0
- package/.next/static/chunks/a6dad97d9634a72d.js +1 -0
- package/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
- package/.next/static/chunks/b9562dbba593a710.js +1 -0
- package/.next/static/chunks/be3f519ecde0dfd6.js +2 -0
- package/.next/static/chunks/bfd59950e8067110.js +1 -0
- package/.next/static/chunks/c1a983df0a5e5f3a.css +1 -0
- package/.next/static/chunks/d8fd59ffef2546e2.js +1 -0
- package/.next/static/chunks/e2058ce506df05d9.js +1 -0
- package/.next/static/chunks/e57609679806b605.js +3 -0
- package/.next/static/chunks/eacff8cb21733ad6.js +3 -0
- package/.next/static/chunks/f85b7c5a018ca0e1.js +1 -0
- package/.next/static/chunks/turbopack-ec0a0bd80d5d46df.js +4 -0
- package/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
- package/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
- package/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
- package/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- package/.next/static/media/icon.9a6971e1.png +0 -0
- package/README.md +92 -0
- package/bin/viba.mjs +489 -0
- package/next.config.mjs +25 -0
- package/package.json +72 -0
- package/public/file.svg +1 -0
- package/public/github.png +0 -0
- package/public/globe.svg +1 -0
- package/public/next.svg +1 -0
- package/public/palx-icon.png +0 -0
- package/public/vercel.svg +1 -0
- package/public/window.svg +1 -0
- package/src/lib/cli-args.mjs +41 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[35565,a=>{a.n(a.i(64530))},51251,a=>{"use strict";var b=a.i(33715),c=a.i(89806),d=a.i(95848),e=a.i(96509),f=a.i(95642),g=a.i(89469),h=a.i(166),i=a.i(1417),j=a.i(88597),k=a.i(77679),l=a.i(20624),m=a.i(44831),n=a.i(25436),o=a.i(97717),p=a.i(18530),q=a.i(32375),r=a.i(77510),s=a.i(87244),t=a.i(28068);a.i(73495);var u=a.i(80876),v=a.i(15451),w=a.i(4685),x=a.i(74089),y=a.i(60490),z=a.i(52277),A=a.i(93695),B=a.i(48821),C=a.i(46356);a.i(81069);var D=a.i(24426),E=a.i(19334),F=a.i(62187),G=a.i(73326),H=a.i(28930);let I=["",{children:["git",{children:["stashes",{children:["__PAGE__",{},{metadata:{},page:[()=>a.r(35565),"[project]/Downloads/projects/viba/src/app/git/stashes/page.tsx"]}]},{metadata:{}}]},{metadata:{},layout:[()=>a.r(63939),"[project]/Downloads/projects/viba/src/app/git/layout.tsx"]}]},{metadata:{icon:[async a=>[{url:(0,b.fillMetadataSegment)("//",await a.params,"icon.png")+`?${c.default.src.split("/").splice(-1)[0]}`,sizes:`${c.default.width}x${c.default.height}`,type:"image/png"}]]},layout:[()=>a.r(16842),"[project]/Downloads/projects/viba/src/app/layout.tsx"],"not-found":[()=>a.r(58228),"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/not-found.js"],forbidden:[()=>a.r(81190),"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>a.r(31573),"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/unauthorized.js"],"global-error":[()=>a.r(46356),"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/global-error.js"]}],J={require:a.r.bind(a),loadChunk:a.l.bind(a)},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/git/stashes/page",pathname:"/git/stashes",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:I},distDir:".next",relativeProjectDir:""});async function L(a,b,c){var d;K.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let M=!!(0,h.getRequestMeta)(a,"minimalMode"),N="/git/stashes/page";N=N.replace(/\/index$/,"")||"/";let O=await K.prepare(a,b,{srcPage:N,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:P,query:Q,params:R,pageIsDynamic:S,buildManifest:T,nextFontManifest:U,reactLoadableManifest:V,serverActionsManifest:W,clientReferenceManifest:X,subresourceIntegrityManifest:Y,prerenderManifest:Z,isDraftMode:$,resolvedPathname:_,revalidateOnlyGenerated:aa,routerServerContext:ab,nextConfig:ac,parsedUrl:ad,interceptionRoutePatterns:ae,deploymentId:af}=O,ag=(0,q.normalizeAppPath)(N),{isOnDemandRevalidate:ah}=O,ai=ac.experimental.ppr&&!ac.cacheComponents&&(0,H.isInterceptionRouteAppPath)(_)?null:K.match(_,Z),aj=!!Z.routes[_],ak=a.headers["user-agent"]||"",al=(0,t.getBotType)(ak),am=(0,p.isHtmlBotRequest)(a),an=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ao=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],ap=(0,r.getIsPossibleServerAction)(a),aq=(0,m.checkIsAppPPREnabled)(ac.experimental.ppr);if(!(0,h.getRequestMeta)(a,"postponed")&&aq&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let b=[];for await(let c of a)b.push(c);let c=Buffer.concat(b).toString("utf8");(0,h.addRequestMeta)(a,"postponed",c)}let ar=aq&&(null==(d=Z.routes[ag]??Z.dynamicRoutes[ag])?void 0:d.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?(0,h.getRequestMeta)(a,"postponed"):void 0,av=ar&&ao&&!an;M&&(av=av&&!!au);let aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=(!am||!ar)&&(!ak||(0,p.shouldServeStreamingMetadata)(ak,ac.htmlLimitedBots)),ay=!!((ai||aj||Z.routes[ag])&&!(am&&ar)),az=ar&&!0===ac.cacheComponents,aA=!0===K.isDev||!ay||"string"==typeof au||(az&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?av&&!M:av),aB=am&&ar,aC=null;$||!ay||aA||ap||au||av||(aC=_);let aD=aC;!aD&&K.isDev&&(aD=_),K.isDev||$||!ay||!ao||av||(0,k.stripFlightHeaders)(a.headers);let aE={...D,tree:I,GlobalError:C.default,handler:L,routeModule:K,__next_app__:J};W&&X&&(0,o.setManifestsSingleton)({page:N,clientReferenceManifest:X,serverActionsManifest:W});let aF=a.method||"GET",aG=(0,g.getTracer)(),aH=aG.getActiveScopeSpan(),aI=async()=>((null==ab?void 0:ab.render404)?await ab.render404(a,b,ad,!1):b.end("This page could not be found"),null);try{let d=K.getVaryHeader(_,ae);b.setHeader("Vary",d);let f=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aG.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.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 d=a.get("next.route");if(d){let a=`${aF} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aF} ${N}`)})},k=(0,h.getRequestMeta)(a,"incrementalCache"),m=async({span:d,postponed:e,fallbackRouteParams:g,forceStaticRender:i})=>{let l={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aE,Component:(0,j.interopDefault)(aE),params:R,routeModule:K,page:N,postponed:e,shouldWaitOnAllReady:aB,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof e||aA,buildManifest:T,nextFontManifest:U,reactLoadableManifest:V,subresourceIntegrityManifest:Y,setCacheStatus:null==ab?void 0:ab.setCacheStatus,setIsrStatus:null==ab?void 0:ab.setIsrStatus,setReactDebugChannel:null==ab?void 0:ab.setReactDebugChannel,sendErrorsToBrowser:null==ab?void 0:ab.sendErrorsToBrowser,dir:require("path").join(process.cwd(),K.relativeProjectDir),isDraftMode:$,botType:al,isOnDemandRevalidate:ah,isPossibleServerAction:ap,assetPrefix:ac.assetPrefix,nextConfigOutput:ac.output,crossOrigin:ac.crossOrigin,trailingSlash:ac.trailingSlash,images:ac.images,previewProps:Z.preview,deploymentId:af,enableTainting:ac.experimental.taint,htmlLimitedBots:ac.htmlLimitedBots,reactMaxHeadersLength:ac.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:k,cacheLifeProfiles:ac.cacheLife,basePath:ac.basePath,serverActions:ac.experimental.serverActions,...as||at?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:as}:{},cacheComponents:!!ac.cacheComponents,experimental:{isRoutePPREnabled:ar,expireTime:ac.expireTime,staleTimes:ac.experimental.staleTimes,dynamicOnHover:!!ac.experimental.dynamicOnHover,inlineCss:!!ac.experimental.inlineCss,authInterrupts:!!ac.experimental.authInterrupts,clientTraceMetadata:ac.experimental.clientTraceMetadata||[],clientParamParsingOrigins:ac.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,B.parseMaxPostponedStateSize)(ac.experimental.maxPostponedStateSize)},waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>K.onRequestError(a,b,d,e,ab),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}};as&&(l.renderOpts.nextExport=!0,l.renderOpts.supportsDynamicResponse=!1,l.renderOpts.isDebugDynamicAccesses=as),i&&(l.renderOpts.supportsDynamicResponse=!1);let m=await f(d,l),{metadata:n}=m,{cacheControl:o,headers:p={},fetchTags:q,fetchMetrics:r}=n;if(q&&(p[x.NEXT_CACHE_TAGS_HEADER]=q),a.fetchMetrics=r,ay&&(null==o?void 0:o.revalidate)===0&&!K.isDev&&!ar){let a=n.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${_}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
2
|
+
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:m,headers:p,rscData:n.flightData,postponed:n.postponed,status:n.statusCode,segmentData:n.segmentData},cacheControl:o}},o=async({hasResolved:d,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let l,p=!1===K.isDev,q=d||b.writableEnded;if(ah&&aa&&!f&&!M)return(null==ab?void 0:ab.render404)?await ab.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(l=(0,v.parseFallbackField)(ai.fallback)),l===v.FallbackMode.PRERENDER&&(0,t.isBot)(ak)&&(!ar||am)&&(l=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(l!==v.FallbackMode.NOT_FOUND||f)&&(l=v.FallbackMode.BLOCKING_STATIC_RENDER),!M&&l!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aD&&!q&&!$&&S&&(p||!aj)){if((p||ai)&&l===v.FallbackMode.NOT_FOUND){if(ac.experimental.adapterPath)return await aI();throw new A.NoFallbackError}if(ar&&(ac.cacheComponents?!av:!ao)){let b=p&&"string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:ag,d=p&&(null==ai?void 0:ai.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,K):null,f=await K.handleResponse({cacheKey:b,req:a,nextConfig:ac,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:Z,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:d,forceStaticRender:!1}),waitUntil:c.waitUntil,isMinimalMode:M});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ah||g||!au?void 0:au;if(az&&!M&&k&&av&&!j){let b=await k.get(_,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,G.scheduleOnNextTick)(async()=>{let b=K.getResponseCache(a);try{await b.revalidate(_,k,ar,!1,a=>o({...a,forceStaticRender:!0}),null,d,c.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(as&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=p&&(null==ai?void 0:ai.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(ai.fallbackRouteParams):at?(0,n.getFallbackRouteParams)(ag,K):null;return m({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},p=async d=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aC,responseGenerator:a=>o({span:d,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ac,prerenderManifest:Z,waitUntil:c.waitUntil,isMinimalMode:M});if($&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aC)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ay&&!av&&(!p||an)&&(M||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(av)l={revalidate:0,expire:void 0};else if(!K.isDev)if($)l={revalidate:0,expire:void 0};else if(ay){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ac.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];M&&ay&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:n.cacheControl}))}let r=az?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(n,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(M&&ay||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(M&&ay&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ao&&ar||(b.statusCode=q.status),!M&&q.status&&E.RedirectStatusCode[q.status]&&ao&&(b.statusCode=200),p&&!av&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ao&&!$){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ac.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.EMPTY,cacheControl:n.cacheControl});else throw Object.defineProperty(new F.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:q.html,cacheControl:n.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let v=q.html;if(!p||M||ao)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:n.cacheControl});if(as)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),m({span:d,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aH)return await aG.withPropagatedContext(a.headers,()=>aG.trace(i.BaseServerSpan.handleRequest,{spanName:`${aF} ${N}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aF,"http.target":a.url}},p));await p(aH)}catch(b){throw b instanceof A.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:N,routeType:"render",revalidateReason:(0,f.getRevalidateReason)({isStaticGeneration:ay,isOnDemandRevalidate:ah})},!1,ab),b}}a.s(["__next_app__",0,J,"handler",()=>L,"routeModule",0,K],88766),a.i(88766),a.s(["ClientPageRoot",()=>D.ClientPageRoot,"ClientSegmentRoot",()=>D.ClientSegmentRoot,"Fragment",()=>D.Fragment,"GlobalError",()=>C.default,"HTTPAccessFallbackBoundary",()=>D.HTTPAccessFallbackBoundary,"LayoutRouter",()=>D.LayoutRouter,"Postpone",()=>D.Postpone,"RenderFromTemplateContext",()=>D.RenderFromTemplateContext,"RootLayoutBoundary",()=>D.RootLayoutBoundary,"SegmentViewNode",()=>D.SegmentViewNode,"SegmentViewStateNode",()=>D.SegmentViewStateNode,"__next_app__",0,J,"actionAsyncStorage",()=>D.actionAsyncStorage,"captureOwnerStack",()=>D.captureOwnerStack,"collectSegmentData",()=>D.collectSegmentData,"createElement",()=>D.createElement,"createMetadataComponents",()=>D.createMetadataComponents,"createPrerenderParamsForClientSegment",()=>D.createPrerenderParamsForClientSegment,"createPrerenderSearchParamsForClientPage",()=>D.createPrerenderSearchParamsForClientPage,"createServerParamsForServerSegment",()=>D.createServerParamsForServerSegment,"createServerSearchParamsForServerPage",()=>D.createServerSearchParamsForServerPage,"createTemporaryReferenceSet",()=>D.createTemporaryReferenceSet,"decodeAction",()=>D.decodeAction,"decodeFormState",()=>D.decodeFormState,"decodeReply",()=>D.decodeReply,"handler",()=>L,"patchFetch",()=>D.patchFetch,"preconnect",()=>D.preconnect,"preloadFont",()=>D.preloadFont,"preloadStyle",()=>D.preloadStyle,"prerender",()=>D.prerender,"renderToReadableStream",()=>D.renderToReadableStream,"routeModule",0,K,"serverHooks",()=>D.serverHooks,"taintObjectReference",()=>D.taintObjectReference,"workAsyncStorage",()=>D.workAsyncStorage,"workUnitAsyncStorage",()=>D.workUnitAsyncStorage],51251)}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=Downloads_projects_viba_f5bcd322._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../Downloads/projects/viba/node_modules/next/dist/esm/build/templates/app-page.js%3Fpage%3D/git/stashes/page"],"sourcesContent":["import { fillMetadataSegment } from 'next/dist/lib/metadata/get-metadata-route' with { 'turbopack-transition': 'next-server-utility' }\nimport __TURBOPACK__icon__$23$0__ from \"METADATA_0\";\nconst __TURBOPACK__layout__$23$1__ = () => require(\"MODULE_1\");\n\nconst __TURBOPACK__not$2d$found__$23$2__ = () => require(\"MODULE_2\");\n\nconst __TURBOPACK__forbidden__$23$3__ = () => require(\"MODULE_3\");\n\nconst __TURBOPACK__unauthorized__$23$4__ = () => require(\"MODULE_4\");\n\nconst __TURBOPACK__global$2d$error__$23$5__ = () => require(\"MODULE_5\");\n\nconst __TURBOPACK__layout__$23$6__ = () => require(\"MODULE_6\");\n\nconst __TURBOPACK__page__$23$7__ = () => require(\"MODULE_7\");\n\nimport { AppPageRouteModule } from \"next/dist/esm/server/route-modules/app-page/module.compiled\" with {\n 'turbopack-transition': 'next-ssr'\n};\nimport { RouteKind } from \"next/dist/esm/server/route-kind\" with {\n 'turbopack-transition': 'next-server-utility'\n};\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { interopDefault } from \"next/dist/esm/server/app-render/interop-default\";\nimport { stripFlightHeaders } from \"next/dist/esm/server/app-render/strip-flight-headers\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { checkIsAppPPREnabled } from \"next/dist/esm/server/lib/experimental/ppr\";\nimport { getFallbackRouteParams, createOpaqueFallbackRouteParams } from \"next/dist/esm/server/request/fallback-params\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { isHtmlBotRequest, shouldServeStreamingMetadata } from \"next/dist/esm/server/lib/streaming-metadata\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { getIsPossibleServerAction } from \"next/dist/esm/server/lib/server-action-request-meta\";\nimport { RSC_HEADER, NEXT_ROUTER_PREFETCH_HEADER, NEXT_IS_PRERENDER_HEADER, NEXT_DID_POSTPONE_HEADER, RSC_CONTENT_TYPE_HEADER } from \"next/dist/esm/client/components/app-router-headers\";\nimport { getBotType, isBot } from \"next/dist/esm/shared/lib/router/utils/is-bot\";\nimport { CachedRouteKind, IncrementalCacheKind } from \"next/dist/esm/server/response-cache\";\nimport { FallbackMode, parseFallbackField } from \"next/dist/esm/lib/fallback\";\nimport RenderResult from \"next/dist/esm/server/render-result\";\nimport { CACHE_ONE_YEAR, HTML_CONTENT_TYPE_HEADER, NEXT_CACHE_TAGS_HEADER, NEXT_RESUME_HEADER } from \"next/dist/esm/lib/constants\";\nimport { ENCODED_TAGS } from \"next/dist/esm/server/stream-utils/encoded-tags\";\nimport { sendRenderResult } from \"next/dist/esm/server/send-payload\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { parseMaxPostponedStateSize } from \"next/dist/esm/shared/lib/size-limit\";\n// We inject the tree and pages here so that we can use them in the route\n// module.\nconst tree = [\"\", {\n\"children\": [\"git\", {\n\"children\": [\"stashes\", {\n\"children\": [\"__PAGE__\", {\n}, {\n metadata: { }, \"page\": [__TURBOPACK__page__$23$7__, \"[project]/Downloads/projects/viba/src/app/git/stashes/page.tsx\"],\n}],\n}, {\n metadata: { },}],\n}, {\n metadata: { }, \"layout\": [__TURBOPACK__layout__$23$6__, \"[project]/Downloads/projects/viba/src/app/git/layout.tsx\"],\n}],\n}, {\n metadata: { icon: [\n (async (props) => [{\n url: fillMetadataSegment(\"//\", await props.params, \"icon.png\") + `?${__TURBOPACK__icon__$23$0__.src.split(\"/\").splice(-1)[0]}`,\n sizes: `${__TURBOPACK__icon__$23$0__.width}x${__TURBOPACK__icon__$23$0__.height}`,\n type: `image/png`,\n }]),\n ],\n }, \"layout\": [__TURBOPACK__layout__$23$1__, \"[project]/Downloads/projects/viba/src/app/layout.tsx\"],\n \"not-found\": [__TURBOPACK__not$2d$found__$23$2__, \"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/not-found.js\"],\n \"forbidden\": [__TURBOPACK__forbidden__$23$3__, \"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/forbidden.js\"],\n \"unauthorized\": [__TURBOPACK__unauthorized__$23$4__, \"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/unauthorized.js\"],\n \"global-error\": [__TURBOPACK__global$2d$error__$23$5__, \"[project]/Downloads/projects/viba/node_modules/next/dist/client/components/builtin/global-error.js\"],\n}]\nimport GlobalError from \"GLOBAL_ERROR_MODULE\" with {\n 'turbopack-transition': 'next-server-utility'\n};\nexport { GlobalError };\nconst __next_app_require__ = __turbopack_context__.r.bind(__turbopack_context__)\nconst __next_app_load_chunk__ = __turbopack_context__.l.bind(__turbopack_context__)\nexport const __next_app__ = {\n require: __next_app_require__,\n loadChunk: __next_app_load_chunk__\n};\nimport * as entryBase from \"next/dist/esm/server/app-render/entry-base\" with {\n 'turbopack-transition': 'next-server-utility'\n};\nimport { RedirectStatusCode } from \"next/dist/esm/client/components/redirect-status-code\";\nimport { InvariantError } from \"next/dist/esm/shared/lib/invariant-error\";\nimport { scheduleOnNextTick } from \"next/dist/esm/lib/scheduler\";\nimport { isInterceptionRouteAppPath } from \"next/dist/esm/shared/lib/router/utils/interception-routes\";\nexport * from \"next/dist/esm/server/app-render/entry-base\" with {\n 'turbopack-transition': 'next-server-utility'\n};\n// Create and export the route module that will be consumed.\nexport const routeModule = new AppPageRouteModule({\n definition: {\n kind: RouteKind.APP_PAGE,\n page: \"/git/stashes/page\",\n pathname: \"/git/stashes\",\n // The following aren't used in production.\n bundlePath: '',\n filename: '',\n appPaths: []\n },\n userland: {\n loaderTree: tree\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || ''\n});\nexport async function handler(req, res, ctx) {\n var _this;\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n const isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n let srcPage = \"/git/stashes/page\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let { isOnDemandRevalidate } = prepareResult;\n // We use the resolvedPathname instead of the parsedUrl.pathname because it\n // is not rewritten as resolvedPathname is. This will ensure that the correct\n // prerender info is used instead of using the original pathname as the\n // source. If however PPR is enabled and cacheComponents is disabled, we\n // treat the pathname as dynamic. Currently, there's a bug in the PPR\n // implementation that incorrectly leaves %%drp placeholders in the output of\n // parallel routes. This is addressed with cacheComponents.\n const prerenderInfo = nextConfig.experimental.ppr && !nextConfig.cacheComponents && isInterceptionRouteAppPath(resolvedPathname) ? null : routeModule.match(resolvedPathname, prerenderManifest);\n const isPrerendered = !!prerenderManifest.routes[resolvedPathname];\n const userAgent = req.headers['user-agent'] || '';\n const botType = getBotType(userAgent);\n const isHtmlBot = isHtmlBotRequest(req);\n /**\n * If true, this indicates that the request being made is for an app\n * prefetch request.\n */ const isPrefetchRSCRequest = getRequestMeta(req, 'isPrefetchRSCRequest') ?? req.headers[NEXT_ROUTER_PREFETCH_HEADER] === '1' // exclude runtime prefetches, which use '2'\n ;\n // NOTE: Don't delete headers[RSC] yet, it still needs to be used in renderToHTML later\n const isRSCRequest = getRequestMeta(req, 'isRSCRequest') ?? Boolean(req.headers[RSC_HEADER]);\n const isPossibleServerAction = getIsPossibleServerAction(req);\n /**\n * If the route being rendered is an app page, and the ppr feature has been\n * enabled, then the given route _could_ support PPR.\n */ const couldSupportPPR = checkIsAppPPREnabled(nextConfig.experimental.ppr);\n if (!getRequestMeta(req, 'postponed') && couldSupportPPR && req.headers[NEXT_RESUME_HEADER] === '1' && req.method === 'POST') {\n // Decode the postponed state from the request body, it will come as\n // an array of buffers, so collect them and then concat them to form\n // the string.\n const body = [];\n for await (const chunk of req){\n body.push(chunk);\n }\n const postponed = Buffer.concat(body).toString('utf8');\n addRequestMeta(req, 'postponed', postponed);\n }\n // When enabled, this will allow the use of the `?__nextppronly` query to\n // enable debugging of the static shell.\n const hasDebugStaticShellQuery = process.env.__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING === '1' && typeof query.__nextppronly !== 'undefined' && couldSupportPPR;\n // When enabled, this will allow the use of the `?__nextppronly` query\n // to enable debugging of the fallback shell.\n const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';\n // This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the\n // prerender manifest and this is an app page.\n const isRoutePPREnabled = couldSupportPPR && (((_this = prerenderManifest.routes[normalizedSrcPage] ?? prerenderManifest.dynamicRoutes[normalizedSrcPage]) == null ? void 0 : _this.renderingMode) === 'PARTIALLY_STATIC' || // Ideally we'd want to check the appConfig to see if this page has PPR\n // enabled or not, but that would require plumbing the appConfig through\n // to the server during development. We assume that the page supports it\n // but only during development.\n hasDebugStaticShellQuery && (routeModule.isDev === true || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));\n const isDebugStaticShell = hasDebugStaticShellQuery && isRoutePPREnabled;\n // We should enable debugging dynamic accesses when the static shell\n // debugging has been enabled and we're also in development mode.\n const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;\n const isDebugFallbackShell = hasDebugFallbackShellQuery && isRoutePPREnabled;\n // If we're in minimal mode, then try to get the postponed information from\n // the request metadata. If available, use it for resuming the postponed\n // render.\n const minimalPostponed = isRoutePPREnabled ? getRequestMeta(req, 'postponed') : undefined;\n // If PPR is enabled, and this is a RSC request (but not a prefetch), then\n // we can use this fact to only generate the flight data for the request\n // because we can't cache the HTML (as it's also dynamic).\n let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest;\n // During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.\n // We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.\n // This is to ensure that we don't bypass the cache during a revalidation.\n if (isMinimalMode) {\n isDynamicRSCRequest = isDynamicRSCRequest && !!minimalPostponed;\n }\n // Need to read this before it's stripped by stripFlightHeaders. We don't\n // need to transfer it to the request meta because it's only read\n // within this function; the static segment data should have already been\n // generated, so we will always either return a static response or a 404.\n const segmentPrefetchHeader = getRequestMeta(req, 'segmentPrefetchRSCRequest');\n // TODO: investigate existing bug with shouldServeStreamingMetadata always\n // being true for a revalidate due to modifying the base-server this.renderOpts\n // when fixing this to correct logic it causes hydration issue since we set\n // serveStreamingMetadata to true during export\n const serveStreamingMetadata = isHtmlBot && isRoutePPREnabled ? false : !userAgent ? true : shouldServeStreamingMetadata(userAgent, nextConfig.htmlLimitedBots);\n const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a html bot request and PPR is enabled, then we don't want\n // to serve a static response.\n !(isHtmlBot && isRoutePPREnabled));\n // When a page supports cacheComponents, we can support RDC for Navigations\n const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;\n // In development, we always want to generate dynamic HTML.\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML, unless it's\n // a data request, in which case we only produce static HTML.\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isSSG || // If this request has provided postponed data, it supports dynamic\n // HTML.\n typeof minimalPostponed === 'string' || // If this handler supports onCacheEntryV2, then we can only support\n // dynamic responses if it's a dynamic RSC request and not in minimal mode. If it\n // doesn't support it we must fallback to the default behavior.\n (supportsRDCForNavigations && getRequestMeta(req, 'onCacheEntryV2') ? // which will generate the RDC for the route. When resuming a Dynamic\n // RSC request, we'll pass the minimal postponed data to the render\n // which will trigger the `supportsDynamicResponse` to be true.\n isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);\n // When html bots request PPR page, perform the full dynamic rendering.\n const shouldWaitOnAllReady = isHtmlBot && isRoutePPREnabled;\n let ssgCacheKey = null;\n if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {\n ssgCacheKey = resolvedPathname;\n }\n // the staticPathKey differs from ssgCacheKey since\n // ssgCacheKey is null in dev since we're always in \"dynamic\"\n // mode in dev to bypass the cache, but we still need to honor\n // dynamicParams = false in dev mode\n let staticPathKey = ssgCacheKey;\n if (!staticPathKey && routeModule.isDev) {\n staticPathKey = resolvedPathname;\n }\n // If this is a request for an app path that should be statically generated\n // and we aren't in the edge runtime, strip the flight headers so it will\n // generate the static response.\n if (!routeModule.isDev && !isDraftMode && isSSG && isRSCRequest && !isDynamicRSCRequest) {\n stripFlightHeaders(req.headers);\n }\n const ComponentMod = {\n ...entryBase,\n tree,\n GlobalError,\n handler,\n routeModule,\n __next_app__\n };\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n try {\n const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);\n res.setHeader('Vary', varyHeader);\n const invokeRouteModule = async (span, context)=>{\n const nextReq = new NodeNextRequest(req);\n const nextRes = new NodeNextResponse(res);\n return routeModule.render(nextReq, nextRes, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const incrementalCache = getRequestMeta(req, 'incrementalCache');\n const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{\n const context = {\n query,\n params,\n page: normalizedSrcPage,\n sharedContext: {\n buildId\n },\n serverComponentsHmrCache: getRequestMeta(req, 'serverComponentsHmrCache'),\n fallbackRouteParams,\n renderOpts: {\n App: ()=>null,\n Document: ()=>null,\n pageConfig: {},\n ComponentMod,\n Component: interopDefault(ComponentMod),\n params,\n routeModule,\n page: srcPage,\n postponed,\n shouldWaitOnAllReady,\n serveStreamingMetadata,\n supportsDynamicResponse: typeof postponed === 'string' || supportsDynamicResponse,\n buildManifest,\n nextFontManifest,\n reactLoadableManifest,\n subresourceIntegrityManifest,\n setCacheStatus: routerServerContext == null ? void 0 : routerServerContext.setCacheStatus,\n setIsrStatus: routerServerContext == null ? void 0 : routerServerContext.setIsrStatus,\n setReactDebugChannel: routerServerContext == null ? void 0 : routerServerContext.setReactDebugChannel,\n sendErrorsToBrowser: routerServerContext == null ? void 0 : routerServerContext.sendErrorsToBrowser,\n dir: process.env.NEXT_RUNTIME === 'nodejs' ? require('path').join(/* turbopackIgnore: true */ process.cwd(), routeModule.relativeProjectDir) : `${process.cwd()}/${routeModule.relativeProjectDir}`,\n isDraftMode,\n botType,\n isOnDemandRevalidate,\n isPossibleServerAction,\n assetPrefix: nextConfig.assetPrefix,\n nextConfigOutput: nextConfig.output,\n crossOrigin: nextConfig.crossOrigin,\n trailingSlash: nextConfig.trailingSlash,\n images: nextConfig.images,\n previewProps: prerenderManifest.preview,\n deploymentId: deploymentId,\n enableTainting: nextConfig.experimental.taint,\n htmlLimitedBots: nextConfig.htmlLimitedBots,\n reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,\n multiZoneDraftMode,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n basePath: nextConfig.basePath,\n serverActions: nextConfig.experimental.serverActions,\n ...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {\n nextExport: true,\n supportsDynamicResponse: false,\n isStaticGeneration: true,\n isDebugDynamicAccesses: isDebugDynamicAccesses\n } : {},\n cacheComponents: Boolean(nextConfig.cacheComponents),\n experimental: {\n isRoutePPREnabled,\n expireTime: nextConfig.expireTime,\n staleTimes: nextConfig.experimental.staleTimes,\n dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),\n inlineCss: Boolean(nextConfig.experimental.inlineCss),\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],\n clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,\n maxPostponedStateSizeBytes: parseMaxPostponedStateSize(nextConfig.experimental.maxPostponedStateSize)\n },\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: ()=>{},\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),\n err: getRequestMeta(req, 'invokeError'),\n dev: routeModule.isDev\n }\n };\n if (isDebugStaticShell || isDebugDynamicAccesses) {\n context.renderOpts.nextExport = true;\n context.renderOpts.supportsDynamicResponse = false;\n context.renderOpts.isDebugDynamicAccesses = isDebugDynamicAccesses;\n }\n // When we're revalidating in the background, we should not allow dynamic\n // responses.\n if (forceStaticRender) {\n context.renderOpts.supportsDynamicResponse = false;\n }\n const result = await invokeRouteModule(span, context);\n const { metadata } = result;\n const { cacheControl, headers = {}, // Add any fetch tags that were on the page to the response headers.\n fetchTags: cacheTags, fetchMetrics } = metadata;\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n // Pull any fetch metrics from the render onto the request.\n ;\n req.fetchMetrics = fetchMetrics;\n // we don't throw static to dynamic errors in dev as isSSG\n // is a best guess in dev since we don't have the prerender pass\n // to know whether the path is actually static or not\n if (isSSG && (cacheControl == null ? void 0 : cacheControl.revalidate) === 0 && !routeModule.isDev && !isRoutePPREnabled) {\n const staticBailoutInfo = metadata.staticBailoutInfo;\n const err = Object.defineProperty(new Error(`Page changed from static to dynamic at runtime ${resolvedPathname}${(staticBailoutInfo == null ? void 0 : staticBailoutInfo.description) ? `, reason: ${staticBailoutInfo.description}` : ``}` + `\\nsee more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`), \"__NEXT_ERROR_CODE\", {\n value: \"E132\",\n enumerable: false,\n configurable: true\n });\n if (staticBailoutInfo == null ? void 0 : staticBailoutInfo.stack) {\n const stack = staticBailoutInfo.stack;\n err.stack = err.message + stack.substring(stack.indexOf('\\n'));\n }\n throw err;\n }\n return {\n value: {\n kind: CachedRouteKind.APP_PAGE,\n html: result,\n headers,\n rscData: metadata.flightData,\n postponed: metadata.postponed,\n status: metadata.statusCode,\n segmentData: metadata.segmentData\n },\n cacheControl\n };\n };\n const responseGenerator = async ({ hasResolved, previousCacheEntry: previousIncrementalCacheEntry, isRevalidating, span, forceStaticRender = false })=>{\n const isProduction = routeModule.isDev === false;\n const didRespond = hasResolved || res.writableEnded;\n // skip on-demand revalidate if cache is not present and\n // revalidate-if-generated is set\n if (isOnDemandRevalidate && revalidateOnlyGenerated && !previousIncrementalCacheEntry && !isMinimalMode) {\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res);\n } else {\n res.statusCode = 404;\n res.end('This page could not be found');\n }\n return null;\n }\n let fallbackMode;\n if (prerenderInfo) {\n fallbackMode = parseFallbackField(prerenderInfo.fallback);\n }\n // When serving a HTML bot request, we want to serve a blocking render and\n // not the prerendered page. This ensures that the correct content is served\n // to the bot in the head.\n if (fallbackMode === FallbackMode.PRERENDER && isBot(userAgent)) {\n if (!isRoutePPREnabled || isHtmlBot) {\n fallbackMode = FallbackMode.BLOCKING_STATIC_RENDER;\n }\n }\n if ((previousIncrementalCacheEntry == null ? void 0 : previousIncrementalCacheEntry.isStale) === -1) {\n isOnDemandRevalidate = true;\n }\n // TODO: adapt for PPR\n // only allow on-demand revalidate for fallback: true/blocking\n // or for prerendered fallback: false paths\n if (isOnDemandRevalidate && (fallbackMode !== FallbackMode.NOT_FOUND || previousIncrementalCacheEntry)) {\n fallbackMode = FallbackMode.BLOCKING_STATIC_RENDER;\n }\n if (!isMinimalMode && fallbackMode !== FallbackMode.BLOCKING_STATIC_RENDER && staticPathKey && !didRespond && !isDraftMode && pageIsDynamic && (isProduction || !isPrerendered)) {\n // if the page has dynamicParams: false and this pathname wasn't\n // prerendered trigger the no fallback handling\n if (// In development, fall through to render to handle missing\n // getStaticPaths.\n (isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404\n fallbackMode === FallbackMode.NOT_FOUND) {\n if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n // When cacheComponents is enabled, we can use the fallback\n // response if the request is not a dynamic RSC request because the\n // RSC data when this feature flag is enabled does not contain any\n // param references. Without this feature flag enabled, the RSC data\n // contains param references, and therefore we can't use the fallback.\n if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {\n const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;\n const fallbackRouteParams = // If we're in production and we have fallback route params, then we\n // can use the manifest fallback route params.\n isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? createOpaqueFallbackRouteParams(prerenderInfo.fallbackRouteParams) : // have to manually generate the fallback route params.\n isDebugFallbackShell ? getFallbackRouteParams(normalizedSrcPage, routeModule) : null;\n // We use the response cache here to handle the revalidation and\n // management of the fallback shell.\n const fallbackResponse = await routeModule.handleResponse({\n cacheKey,\n req,\n nextConfig,\n routeKind: RouteKind.APP_PAGE,\n isFallback: true,\n prerenderManifest,\n isRoutePPREnabled,\n responseGenerator: async ()=>doRender({\n span,\n // We pass `undefined` as rendering a fallback isn't resumed\n // here.\n postponed: undefined,\n fallbackRouteParams,\n forceStaticRender: false\n }),\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // If the fallback response was set to null, then we should return null.\n if (fallbackResponse === null) return null;\n // Otherwise, if we did get a fallback response, we should return it.\n if (fallbackResponse) {\n // Remove the cache control from the response to prevent it from being\n // used in the surrounding cache.\n delete fallbackResponse.cacheControl;\n return fallbackResponse;\n }\n }\n }\n // Only requests that aren't revalidating can be resumed. If we have the\n // minimal postponed data, then we should resume the render with it.\n let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;\n // If this is a dynamic RSC request, we should use the postponed data from\n // the static render (if available). This ensures that we can utilize the\n // resume data cache (RDC) from the static render to ensure that the data\n // is consistent between the static and dynamic renders.\n if (// Only enable RDC for Navigations if the feature is enabled.\n supportsRDCForNavigations && process.env.NEXT_RUNTIME !== 'edge' && !isMinimalMode && incrementalCache && isDynamicRSCRequest && // We don't typically trigger an on-demand revalidation for dynamic RSC\n // requests, as we're typically revalidating the page in the background\n // instead. However, if the cache entry is stale, we should trigger a\n // background revalidation on dynamic RSC requests. This prevents us\n // from entering an infinite loop of revalidations.\n !forceStaticRender) {\n const incrementalCacheEntry = await incrementalCache.get(resolvedPathname, {\n kind: IncrementalCacheKind.APP_PAGE,\n isRoutePPREnabled: true,\n isFallback: false\n });\n // If the cache entry is found, we should use the postponed data from\n // the cache.\n if (incrementalCacheEntry && incrementalCacheEntry.value && incrementalCacheEntry.value.kind === CachedRouteKind.APP_PAGE) {\n // CRITICAL: we're assigning the postponed data from the cache entry\n // here as we're using the RDC to resume the render.\n postponed = incrementalCacheEntry.value.postponed;\n // If the cache entry is stale, we should trigger a background\n // revalidation so that subsequent requests will get a fresh response.\n if (incrementalCacheEntry && // We want to trigger this flow if the cache entry is stale and if\n // the requested revalidation flow is either foreground or\n // background.\n (incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {\n // We want to schedule this on the next tick to ensure that the\n // render is not blocked on it.\n scheduleOnNextTick(async ()=>{\n const responseCache = routeModule.getResponseCache(req);\n try {\n await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({\n ...c,\n // CRITICAL: we need to set this to true as we're\n // revalidating in the background and typically this dynamic\n // RSC request is not treated as static.\n forceStaticRender: true\n }), // CRITICAL: we need to pass null here because passing the\n // previous cache entry here (which is stale) will switch on\n // isOnDemandRevalidate and break the prerendering.\n null, hasResolved, ctx.waitUntil);\n } catch (err) {\n console.error('Error revalidating the page in the background', err);\n }\n });\n }\n }\n }\n // When we're in minimal mode, if we're trying to debug the static shell,\n // we should just return nothing instead of resuming the dynamic render.\n if ((isDebugStaticShell || isDebugDynamicAccesses) && typeof postponed !== 'undefined') {\n return {\n cacheControl: {\n revalidate: 1,\n expire: undefined\n },\n value: {\n kind: CachedRouteKind.PAGES,\n html: RenderResult.EMPTY,\n pageData: {},\n headers: undefined,\n status: undefined\n }\n };\n }\n const fallbackRouteParams = // If we're in production and we have fallback route params, then we\n // can use the manifest fallback route params if we need to render the\n // fallback shell.\n isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && getRequestMeta(req, 'renderFallbackShell') ? createOpaqueFallbackRouteParams(prerenderInfo.fallbackRouteParams) : // manually generate the fallback route params.\n isDebugFallbackShell ? getFallbackRouteParams(normalizedSrcPage, routeModule) : null;\n // Perform the render.\n return doRender({\n span,\n postponed,\n fallbackRouteParams,\n forceStaticRender\n });\n };\n const handleResponse = async (span)=>{\n var _cacheEntry_value, _cachedData_headers;\n const cacheEntry = await routeModule.handleResponse({\n cacheKey: ssgCacheKey,\n responseGenerator: (c)=>responseGenerator({\n span,\n ...c\n }),\n routeKind: RouteKind.APP_PAGE,\n isOnDemandRevalidate,\n isRoutePPREnabled,\n req,\n nextConfig,\n prerenderManifest,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n // In dev, we should not cache pages for any reason.\n if (routeModule.isDev) {\n res.setHeader('Cache-Control', 'no-store, must-revalidate');\n }\n if (!cacheEntry) {\n if (ssgCacheKey) {\n // A cache entry might not be generated if a response is written\n // in `getInitialProps` or `getServerSideProps`, but those shouldn't\n // have a cache key. If we do have a cache key but we don't end up\n // with a cache entry, then either Next.js or the application has a\n // bug that needs fixing.\n throw Object.defineProperty(new Error('invariant: cache entry required but not generated'), \"__NEXT_ERROR_CODE\", {\n value: \"E62\",\n enumerable: false,\n configurable: true\n });\n }\n return null;\n }\n if (((_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_PAGE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant app-page handler received invalid cache entry ${(_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E707\",\n enumerable: false,\n configurable: true\n });\n }\n const didPostpone = typeof cacheEntry.value.postponed === 'string';\n if (isSSG && // We don't want to send a cache header for requests that contain dynamic\n // data. If this is a Dynamic RSC request or wasn't a Prefetch RSC\n // request, then we should set the cache header.\n !isDynamicRSCRequest && (!didPostpone || isPrefetchRSCRequest)) {\n if (!isMinimalMode) {\n // set x-nextjs-cache header to match the header\n // we set for the image-optimizer\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Set a header used by the client router to signal the response is static\n // and should respect the `static` cache staleTime value.\n res.setHeader(NEXT_IS_PRERENDER_HEADER, '1');\n }\n const { value: cachedData } = cacheEntry;\n // Coerce the cache control parameter from the render.\n let cacheControl;\n // If this is a resume request in minimal mode it is streamed with dynamic\n // content and should not be cached.\n if (minimalPostponed) {\n cacheControl = {\n revalidate: 0,\n expire: undefined\n };\n } else if (isDynamicRSCRequest) {\n cacheControl = {\n revalidate: 0,\n expire: undefined\n };\n } else if (!routeModule.isDev) {\n // If this is a preview mode request, we shouldn't cache it\n if (isDraftMode) {\n cacheControl = {\n revalidate: 0,\n expire: undefined\n };\n } else if (!isSSG) {\n if (!res.getHeader('Cache-Control')) {\n cacheControl = {\n revalidate: 0,\n expire: undefined\n };\n }\n } else if (cacheEntry.cacheControl) {\n // If the cache entry has a cache control with a revalidate value that's\n // a number, use it.\n if (typeof cacheEntry.cacheControl.revalidate === 'number') {\n var _cacheEntry_cacheControl;\n if (cacheEntry.cacheControl.revalidate < 1) {\n throw Object.defineProperty(new Error(`Invalid revalidate configuration provided: ${cacheEntry.cacheControl.revalidate} < 1`), \"__NEXT_ERROR_CODE\", {\n value: \"E22\",\n enumerable: false,\n configurable: true\n });\n }\n cacheControl = {\n revalidate: cacheEntry.cacheControl.revalidate,\n expire: ((_cacheEntry_cacheControl = cacheEntry.cacheControl) == null ? void 0 : _cacheEntry_cacheControl.expire) ?? nextConfig.expireTime\n };\n } else {\n cacheControl = {\n revalidate: CACHE_ONE_YEAR,\n expire: undefined\n };\n }\n }\n }\n cacheEntry.cacheControl = cacheControl;\n if (typeof segmentPrefetchHeader === 'string' && (cachedData == null ? void 0 : cachedData.kind) === CachedRouteKind.APP_PAGE && cachedData.segmentData) {\n var _cachedData_headers1;\n // This is a prefetch request issued by the client Segment Cache. These\n // should never reach the application layer (lambda). We should either\n // respond from the cache (HIT) or respond with 204 No Content (MISS).\n // Set a header to indicate that PPR is enabled for this route. This\n // lets the client distinguish between a regular cache miss and a cache\n // miss due to PPR being disabled. In other contexts this header is used\n // to indicate that the response contains dynamic data, but here we're\n // only using it to indicate that the feature is enabled — the segment\n // response itself contains whether the data is dynamic.\n res.setHeader(NEXT_DID_POSTPONE_HEADER, '2');\n // Add the cache tags header to the response if it exists and we're in\n // minimal mode while rendering a static page.\n const tags = (_cachedData_headers1 = cachedData.headers) == null ? void 0 : _cachedData_headers1[NEXT_CACHE_TAGS_HEADER];\n if (isMinimalMode && isSSG && tags && typeof tags === 'string') {\n res.setHeader(NEXT_CACHE_TAGS_HEADER, tags);\n }\n const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);\n if (matchedSegment !== undefined) {\n // Cache hit\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: RenderResult.fromStatic(matchedSegment, RSC_CONTENT_TYPE_HEADER),\n cacheControl: cacheEntry.cacheControl\n });\n }\n // Cache miss. Either a cache entry for this route has not been generated\n // (which technically should not be possible when PPR is enabled, because\n // at a minimum there should always be a fallback entry) or there's no\n // match for the requested segment. Respond with a 204 No Content. We\n // don't bother to respond with 404, because these requests are only\n // issued as part of a prefetch.\n res.statusCode = 204;\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: RenderResult.EMPTY,\n cacheControl: cacheEntry.cacheControl\n });\n }\n // If there's a callback for `onCacheEntry`, call it with the cache entry\n // and the revalidate options. If we support RDC for Navigations, we\n // prefer the `onCacheEntryV2` callback. Once RDC for Navigations is the\n // default, we can remove the fallback to `onCacheEntry` as\n // `onCacheEntryV2` is now fully supported.\n const onCacheEntry = supportsRDCForNavigations ? getRequestMeta(req, 'onCacheEntryV2') ?? getRequestMeta(req, 'onCacheEntry') : getRequestMeta(req, 'onCacheEntry');\n if (onCacheEntry) {\n const finished = await onCacheEntry(cacheEntry, {\n url: getRequestMeta(req, 'initURL') ?? req.url\n });\n if (finished) return null;\n }\n if (cachedData.headers) {\n const headers = {\n ...cachedData.headers\n };\n if (!isMinimalMode || !isSSG) {\n delete headers[NEXT_CACHE_TAGS_HEADER];\n }\n for (let [key, value] of Object.entries(headers)){\n if (typeof value === 'undefined') continue;\n if (Array.isArray(value)) {\n for (const v of value){\n res.appendHeader(key, v);\n }\n } else if (typeof value === 'number') {\n value = value.toString();\n res.appendHeader(key, value);\n } else {\n res.appendHeader(key, value);\n }\n }\n }\n // Add the cache tags header to the response if it exists and we're in\n // minimal mode while rendering a static page.\n const tags = (_cachedData_headers = cachedData.headers) == null ? void 0 : _cachedData_headers[NEXT_CACHE_TAGS_HEADER];\n if (isMinimalMode && isSSG && tags && typeof tags === 'string') {\n res.setHeader(NEXT_CACHE_TAGS_HEADER, tags);\n }\n // If the request is a data request, then we shouldn't set the status code\n // from the response because it should always be 200. This should be gated\n // behind the experimental PPR flag.\n if (cachedData.status && (!isRSCRequest || !isRoutePPREnabled)) {\n res.statusCode = cachedData.status;\n }\n // Redirect information is encoded in RSC payload, so we don't need to use redirect status codes\n if (!isMinimalMode && cachedData.status && RedirectStatusCode[cachedData.status] && isRSCRequest) {\n res.statusCode = 200;\n }\n // Mark that the request did postpone.\n if (didPostpone && !isDynamicRSCRequest) {\n res.setHeader(NEXT_DID_POSTPONE_HEADER, '1');\n }\n // we don't go through this block when preview mode is true\n // as preview mode is a dynamic request (bypasses cache) and doesn't\n // generate both HTML and payloads in the same request so continue to just\n // return the generated payload\n if (isRSCRequest && !isDraftMode) {\n // If this is a dynamic RSC request, then stream the response.\n if (typeof cachedData.rscData === 'undefined') {\n // If the response is not an RSC response, then we can't serve it.\n if (cachedData.html.contentType !== RSC_CONTENT_TYPE_HEADER) {\n if (nextConfig.cacheComponents) {\n res.statusCode = 404;\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: RenderResult.EMPTY,\n cacheControl: cacheEntry.cacheControl\n });\n } else {\n // Otherwise this case is not expected.\n throw Object.defineProperty(new InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), \"__NEXT_ERROR_CODE\", {\n value: \"E789\",\n enumerable: false,\n configurable: true\n });\n }\n }\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: cachedData.html,\n cacheControl: cacheEntry.cacheControl\n });\n }\n // As this isn't a prefetch request, we should serve the static flight\n // data.\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: RenderResult.fromStatic(cachedData.rscData, RSC_CONTENT_TYPE_HEADER),\n cacheControl: cacheEntry.cacheControl\n });\n }\n // This is a request for HTML data.\n const body = cachedData.html;\n // If there's no postponed state, we should just serve the HTML. This\n // should also be the case for a resume request because it's completed\n // as a server render (rather than a static render).\n if (!didPostpone || isMinimalMode || isRSCRequest) {\n // If we're in test mode, we should add a sentinel chunk to the response\n // that's between the static and dynamic parts so we can compare the\n // chunks and add assertions.\n if (process.env.__NEXT_TEST_MODE && isMinimalMode && isRoutePPREnabled && body.contentType === HTML_CONTENT_TYPE_HEADER) {\n // As we're in minimal mode, the static part would have already been\n // streamed first. The only part that this streams is the dynamic part\n // so we should FIRST stream the sentinel and THEN the dynamic part.\n body.unshift(createPPRBoundarySentinel());\n }\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: body,\n cacheControl: cacheEntry.cacheControl\n });\n }\n // If we're debugging the static shell or the dynamic API accesses, we\n // should just serve the HTML without resuming the render. The returned\n // HTML will be the static shell so all the Dynamic API's will be used\n // during static generation.\n if (isDebugStaticShell || isDebugDynamicAccesses) {\n // Since we're not resuming the render, we need to at least add the\n // closing body and html tags to create valid HTML.\n body.push(new ReadableStream({\n start (controller) {\n controller.enqueue(ENCODED_TAGS.CLOSED.BODY_AND_HTML);\n controller.close();\n }\n }));\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: body,\n cacheControl: {\n revalidate: 0,\n expire: undefined\n }\n });\n }\n // If we're in test mode, we should add a sentinel chunk to the response\n // that's between the static and dynamic parts so we can compare the\n // chunks and add assertions.\n if (process.env.__NEXT_TEST_MODE) {\n body.push(createPPRBoundarySentinel());\n }\n // This request has postponed, so let's create a new transformer that the\n // dynamic data can pipe to that will attach the dynamic data to the end\n // of the response.\n const transformer = new TransformStream();\n body.push(transformer.readable);\n // Perform the render again, but this time, provide the postponed state.\n // We don't await because we want the result to start streaming now, and\n // we've already chained the transformer's readable to the render result.\n doRender({\n span,\n postponed: cachedData.postponed,\n // This is a resume render, not a fallback render, so we don't need to\n // set this.\n fallbackRouteParams: null,\n forceStaticRender: false\n }).then(async (result)=>{\n var _result_value;\n if (!result) {\n throw Object.defineProperty(new Error('Invariant: expected a result to be returned'), \"__NEXT_ERROR_CODE\", {\n value: \"E463\",\n enumerable: false,\n configurable: true\n });\n }\n if (((_result_value = result.value) == null ? void 0 : _result_value.kind) !== CachedRouteKind.APP_PAGE) {\n var _result_value1;\n throw Object.defineProperty(new Error(`Invariant: expected a page response, got ${(_result_value1 = result.value) == null ? void 0 : _result_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E305\",\n enumerable: false,\n configurable: true\n });\n }\n // Pipe the resume result to the transformer.\n await result.value.html.pipeTo(transformer.writable);\n }).catch((err)=>{\n // An error occurred during piping or preparing the render, abort\n // the transformers writer so we can terminate the stream.\n transformer.writable.abort(err).catch((e)=>{\n console.error(\"couldn't abort transformer\", e);\n });\n });\n return sendRenderResult({\n req,\n res,\n generateEtags: nextConfig.generateEtags,\n poweredByHeader: nextConfig.poweredByHeader,\n result: body,\n // We don't want to cache the response if it has postponed data because\n // the response being sent to the client it's dynamic parts are streamed\n // to the client on the same request.\n cacheControl: {\n revalidate: 0,\n expire: undefined\n }\n });\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan);\n } else {\n return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'render',\n revalidateReason: getRevalidateReason({\n isStaticGeneration: isSSG,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n throw err;\n }\n}\n// TODO: omit this from production builds, only test builds should include it\n/**\n * Creates a readable stream that emits a PPR boundary sentinel.\n *\n * @returns A readable stream that emits a PPR boundary sentinel.\n */ function createPPRBoundarySentinel() {\n return new ReadableStream({\n start (controller) {\n controller.enqueue(new TextEncoder().encode('<!-- PPR_BOUNDARY_SENTINEL -->'));\n controller.close();\n }\n });\n}\n\n//# sourceMappingURL=app-page.js.map\n"],"names":[],"mappings":"kEAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAeA,EAAA,EAAA,CAAA,CAAA,OAGA,EAAA,EAAA,CAAA,CAAA,OAGA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,KACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA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,EAAA,EAAA,gBAAA,AAAgB,EAAC,KACpB,MACA,EACA,cAAe,GAAW,aAAa,CACvC,gBAAiB,GAAW,eAAe,CAC3C,OAAQ,EAIR,aAAc,CACV,WAAY,EACZ,OAAQ,MACZ,CACJ,EACJ,EAGA,IAAI,GAGA,OAAO,EAHK,IAGC,GAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,GAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CAC9F,SAAU,CAAA,EAAG,GAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,GACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,GATP,OAAM,EAAe,GAW7B,CAAE,MAAO,EAAK,CAcV,MAbM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,SACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,CAClC,mBAAoB,wBACpB,EACJ,EACJ,GAAG,AATgB,EASJ,IAGb,CACV,CACJ","ignoreList":[0]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[90135,a=>{"use strict";var b=a.i(89812),c=a.i(67128),d=a.i(53522);function e(a,e){let f=(0,c.useRepository)(a);(0,b.useEffect)(()=>{let b=a?f?(0,d.getRepositoryDisplayName)(f):(0,d.getRepoFolderName)(a):"Workspace";document.title=`${b} | ${e}`},[a,f,e])}a.s(["useWorkspaceTitle",()=>e])},36150,a=>{"use strict";var b=a.i(44287),c=a.i(89812),d=a.i(81081),e=a.i(90135),f=a.i(67128);let g={name:"",target:"branch",action:"run-bash-script",content:""};function h(){let a=(0,d.useSearchParams)().get("path");(0,e.useWorkspaceTitle)(a,"Custom scripts");let{isLoading:h}=(0,f.useRepositories)(),i=(0,f.useRepository)(a),j=(0,f.useUpdateRepository)(),k=(0,c.useMemo)(()=>i?.customScripts??[],[i?.customScripts]),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(g),[p,q]=(0,c.useState)(null);if(h)return(0,b.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,b.jsx)("span",{className:"loading loading-spinner"})});if(!a||!i)return(0,b.jsx)("div",{className:"p-8",children:"Repository not found."});let r=()=>{o(g),m(null),q(null)},s=b=>{j.mutate({path:a,updates:{customScripts:b}})};return(0,b.jsx)("div",{className:"flex h-full overflow-hidden",children:(0,b.jsx)("div",{className:"flex-1 min-w-0 overflow-auto",children:(0,b.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-2",children:[(0,b.jsxs)("div",{className:"rounded-xl border border-slate-200 bg-white px-4 py-3 dark:border-slate-800 dark:bg-slate-900",children:[(0,b.jsx)("h1",{className:"text-lg font-bold text-slate-900 dark:text-slate-100",children:"Custom Scripts"}),(0,b.jsx)("p",{className:"mt-1 text-sm text-slate-600 dark:text-slate-400",children:"Manage custom bash scripts for this repository. Scripts appear in branch context menus."})]}),(0,b.jsxs)("div",{className:"rounded-xl border border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900",children:[(0,b.jsx)("h2",{className:"text-base font-semibold mb-4",children:l?"Edit Script":"New Script"}),(0,b.jsxs)("form",{className:"space-y-4",onSubmit:a=>{a.preventDefault();let b=n.name.trim(),c=n.content;if(!b)return void q("Script name is required.");if(!c.trim())return void q("Script content is required.");let d={id:l||("u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`script-${Date.now()}-${Math.random().toString(36).slice(2,8)}`),name:b,target:n.target,action:n.action,content:c};s(l?k.map(a=>a.id===l?d:a):[...k,d]),r()},children:[(0,b.jsxs)("div",{className:"form-control",children:[(0,b.jsx)("label",{className:"label",children:(0,b.jsx)("span",{className:"label-text",children:"Name"})}),(0,b.jsx)("input",{type:"text",className:"input input-bordered w-full",value:n.name,onChange:a=>o(b=>({...b,name:a.target.value})),placeholder:"Example: Run tests"})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"form-control",children:[(0,b.jsx)("label",{className:"label",children:(0,b.jsx)("span",{className:"label-text",children:"Target"})}),(0,b.jsx)("select",{className:"select select-bordered w-full",value:n.target,onChange:a=>o(b=>({...b,target:a.target.value})),children:(0,b.jsx)("option",{value:"branch",children:"Branch"})})]}),(0,b.jsxs)("div",{className:"form-control",children:[(0,b.jsx)("label",{className:"label",children:(0,b.jsx)("span",{className:"label-text",children:"Action"})}),(0,b.jsx)("select",{className:"select select-bordered w-full",value:n.action,onChange:a=>o(b=>({...b,action:a.target.value})),children:(0,b.jsx)("option",{value:"run-bash-script",children:"Run bash script"})})]})]}),(0,b.jsxs)("div",{className:"form-control",children:[(0,b.jsx)("label",{className:"label",children:(0,b.jsx)("span",{className:"label-text",children:"Script Content"})}),(0,b.jsx)("textarea",{className:"textarea textarea-bordered w-full h-56 font-mono text-sm",value:n.content,onChange:a=>o(b=>({...b,content:a.target.value})),placeholder:'#!/usr/bin/env bash\nset -euo pipefail\n\necho "Hello from custom script"'})]}),p&&(0,b.jsx)("div",{className:"alert alert-error py-2",children:(0,b.jsx)("span",{children:p})}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("button",{type:"submit",className:"btn btn-primary btn-sm",disabled:j.isPending,children:l?"Update Script":"Add Script"}),l&&(0,b.jsx)("button",{type:"button",className:"btn btn-ghost btn-sm",onClick:r,disabled:j.isPending,children:"Cancel Edit"})]})]})]}),(0,b.jsxs)("div",{className:"rounded-xl border border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900",children:[(0,b.jsx)("h2",{className:"text-base font-semibold mb-4",children:"Saved Scripts"}),0===k.length?(0,b.jsx)("p",{className:"text-sm opacity-60",children:"No custom scripts yet."}):(0,b.jsx)("div",{className:"space-y-3",children:k.map(a=>(0,b.jsxs)("div",{className:"border border-slate-200 dark:border-slate-800 rounded-lg p-4 bg-slate-50/60 dark:bg-slate-900/60",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("div",{className:"font-medium truncate",children:a.name}),(0,b.jsx)("div",{className:"text-xs opacity-60 mt-1",children:"Target: Branch | Action: Run bash script"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,b.jsx)("button",{className:"btn btn-ghost btn-xs",onClick:()=>{m(a.id),o({name:a.name,target:a.target,action:a.action,content:a.content}),q(null)},disabled:j.isPending,children:"Edit"}),(0,b.jsx)("button",{className:"btn btn-ghost btn-xs text-error",onClick:()=>{var b;return b=a.id,void(s(k.filter(a=>a.id!==b)),l===b&&r())},disabled:j.isPending,children:"Delete"})]})]}),(0,b.jsx)("pre",{className:"mt-3 text-xs font-mono bg-slate-100 dark:bg-slate-800 rounded p-3 overflow-auto max-h-36 whitespace-pre-wrap break-words",children:a.content})]},a.id))})]})]})})})}function i(){return(0,b.jsx)(c.Suspense,{fallback:(0,b.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,b.jsx)("span",{className:"loading loading-spinner"})}),children:(0,b.jsx)(h,{})})}a.s(["default",()=>i])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=Downloads_projects_viba_src_60d6e4a8._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../Downloads/projects/viba/src/hooks/use-workspace-title.ts","../../../../../../../Downloads/projects/viba/src/app/git/custom-scripts/page.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect } from 'react';\nimport { useRepository } from './use-git';\nimport { getRepoFolderName, getRepositoryDisplayName } from '@/lib/utils';\n\n/**\n * Updates the document title with the repo name and page name.\n * @param repoPath - The full path to the repository (e.g., \"C:\\\\Users\\\\user\\\\projects\\\\repo\" or \"/Users/user/projects/repo\")\n * @param pageName - The name of the current page (e.g., \"History\", \"Changes\", \"Stashes\", \"Settings\")\n */\nexport function useWorkspaceTitle(repoPath: string | null, pageName: string) {\n const repository = useRepository(repoPath);\n\n useEffect(() => {\n const repoName = repoPath\n ? repository\n ? getRepositoryDisplayName(repository)\n : getRepoFolderName(repoPath)\n : 'Workspace';\n document.title = `${repoName} | ${pageName}`;\n }, [repoPath, repository, pageName]);\n}\n","'use client';\n\nimport { Suspense, useMemo, useState } from 'react';\nimport { useSearchParams } from 'next/navigation';\nimport { useWorkspaceTitle } from '@/hooks/use-workspace-title';\nimport { useRepositories, useRepository, useUpdateRepository } from '@/hooks/use-git';\nimport { RepositoryCustomScript, RepositoryCustomScriptAction, RepositoryCustomScriptTarget } from '@/lib/types';\n\ntype ScriptDraft = {\n name: string;\n target: RepositoryCustomScriptTarget;\n action: RepositoryCustomScriptAction;\n content: string;\n};\n\nconst EMPTY_DRAFT: ScriptDraft = {\n name: '',\n target: 'branch',\n action: 'run-bash-script',\n content: '',\n};\n\nfunction generateScriptId(): string {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return crypto.randomUUID();\n }\n return `script-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;\n}\n\nfunction WorkspaceCustomScriptsContent() {\n const searchParams = useSearchParams();\n const repoPath = searchParams.get('path');\n\n useWorkspaceTitle(repoPath, 'Custom scripts');\n\n const { isLoading: isReposLoading } = useRepositories();\n const repository = useRepository(repoPath);\n const updateRepository = useUpdateRepository();\n\n const scripts = useMemo(() => repository?.customScripts ?? [], [repository?.customScripts]);\n const [editingScriptId, setEditingScriptId] = useState<string | null>(null);\n const [draft, setDraft] = useState<ScriptDraft>(EMPTY_DRAFT);\n const [formError, setFormError] = useState<string | null>(null);\n\n if (isReposLoading) {\n return <div className=\"flex items-center justify-center h-full\"><span className=\"loading loading-spinner\"></span></div>;\n }\n\n if (!repoPath || !repository) {\n return <div className=\"p-8\">Repository not found.</div>;\n }\n\n const resetForm = () => {\n setDraft(EMPTY_DRAFT);\n setEditingScriptId(null);\n setFormError(null);\n };\n\n const saveScripts = (nextScripts: RepositoryCustomScript[]) => {\n updateRepository.mutate({\n path: repoPath,\n updates: {\n customScripts: nextScripts,\n },\n });\n };\n\n const handleSubmit = (e: React.FormEvent) => {\n e.preventDefault();\n\n const name = draft.name.trim();\n const content = draft.content;\n\n if (!name) {\n setFormError('Script name is required.');\n return;\n }\n\n if (!content.trim()) {\n setFormError('Script content is required.');\n return;\n }\n\n const nextScript: RepositoryCustomScript = {\n id: editingScriptId || generateScriptId(),\n name,\n target: draft.target,\n action: draft.action,\n content,\n };\n\n const nextScripts = editingScriptId\n ? scripts.map((script) => (script.id === editingScriptId ? nextScript : script))\n : [...scripts, nextScript];\n\n saveScripts(nextScripts);\n resetForm();\n };\n\n const handleEdit = (script: RepositoryCustomScript) => {\n setEditingScriptId(script.id);\n setDraft({\n name: script.name,\n target: script.target,\n action: script.action,\n content: script.content,\n });\n setFormError(null);\n };\n\n const handleDelete = (scriptId: string) => {\n const nextScripts = scripts.filter((script) => script.id !== scriptId);\n saveScripts(nextScripts);\n if (editingScriptId === scriptId) {\n resetForm();\n }\n };\n\n return (\n <div className=\"flex h-full overflow-hidden\">\n <div className=\"flex-1 min-w-0 overflow-auto\">\n <div className=\"mx-auto flex w-full max-w-5xl flex-col gap-2\">\n <div className=\"rounded-xl border border-slate-200 bg-white px-4 py-3 dark:border-slate-800 dark:bg-slate-900\">\n <h1 className=\"text-lg font-bold text-slate-900 dark:text-slate-100\">Custom Scripts</h1>\n <p className=\"mt-1 text-sm text-slate-600 dark:text-slate-400\">\n Manage custom bash scripts for this repository. Scripts appear in branch context menus.\n </p>\n </div>\n\n <div className=\"rounded-xl border border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900\">\n <h2 className=\"text-base font-semibold mb-4\">{editingScriptId ? 'Edit Script' : 'New Script'}</h2>\n <form className=\"space-y-4\" onSubmit={handleSubmit}>\n <div className=\"form-control\">\n <label className=\"label\">\n <span className=\"label-text\">Name</span>\n </label>\n <input\n type=\"text\"\n className=\"input input-bordered w-full\"\n value={draft.name}\n onChange={(e) => setDraft((prev) => ({ ...prev, name: e.target.value }))}\n placeholder=\"Example: Run tests\"\n />\n </div>\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n <div className=\"form-control\">\n <label className=\"label\">\n <span className=\"label-text\">Target</span>\n </label>\n <select\n className=\"select select-bordered w-full\"\n value={draft.target}\n onChange={(e) => setDraft((prev) => ({ ...prev, target: e.target.value as RepositoryCustomScriptTarget }))}\n >\n <option value=\"branch\">Branch</option>\n </select>\n </div>\n\n <div className=\"form-control\">\n <label className=\"label\">\n <span className=\"label-text\">Action</span>\n </label>\n <select\n className=\"select select-bordered w-full\"\n value={draft.action}\n onChange={(e) => setDraft((prev) => ({ ...prev, action: e.target.value as RepositoryCustomScriptAction }))}\n >\n <option value=\"run-bash-script\">Run bash script</option>\n </select>\n </div>\n </div>\n\n <div className=\"form-control\">\n <label className=\"label\">\n <span className=\"label-text\">Script Content</span>\n </label>\n <textarea\n className=\"textarea textarea-bordered w-full h-56 font-mono text-sm\"\n value={draft.content}\n onChange={(e) => setDraft((prev) => ({ ...prev, content: e.target.value }))}\n placeholder={'#!/usr/bin/env bash\\nset -euo pipefail\\n\\necho \"Hello from custom script\"'}\n />\n </div>\n\n {formError && (\n <div className=\"alert alert-error py-2\">\n <span>{formError}</span>\n </div>\n )}\n\n <div className=\"flex items-center gap-2\">\n <button type=\"submit\" className=\"btn btn-primary btn-sm\" disabled={updateRepository.isPending}>\n {editingScriptId ? 'Update Script' : 'Add Script'}\n </button>\n {editingScriptId && (\n <button type=\"button\" className=\"btn btn-ghost btn-sm\" onClick={resetForm} disabled={updateRepository.isPending}>\n Cancel Edit\n </button>\n )}\n </div>\n </form>\n </div>\n\n <div className=\"rounded-xl border border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900\">\n <h2 className=\"text-base font-semibold mb-4\">Saved Scripts</h2>\n {scripts.length === 0 ? (\n <p className=\"text-sm opacity-60\">No custom scripts yet.</p>\n ) : (\n <div className=\"space-y-3\">\n {scripts.map((script) => (\n <div key={script.id} className=\"border border-slate-200 dark:border-slate-800 rounded-lg p-4 bg-slate-50/60 dark:bg-slate-900/60\">\n <div className=\"flex items-start justify-between gap-3\">\n <div className=\"min-w-0\">\n <div className=\"font-medium truncate\">{script.name}</div>\n <div className=\"text-xs opacity-60 mt-1\">\n Target: Branch | Action: Run bash script\n </div>\n </div>\n <div className=\"flex items-center gap-2 shrink-0\">\n <button className=\"btn btn-ghost btn-xs\" onClick={() => handleEdit(script)} disabled={updateRepository.isPending}>\n Edit\n </button>\n <button className=\"btn btn-ghost btn-xs text-error\" onClick={() => handleDelete(script.id)} disabled={updateRepository.isPending}>\n Delete\n </button>\n </div>\n </div>\n <pre className=\"mt-3 text-xs font-mono bg-slate-100 dark:bg-slate-800 rounded p-3 overflow-auto max-h-36 whitespace-pre-wrap break-words\">{script.content}</pre>\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nexport default function WorkspaceCustomScriptsPage() {\n return (\n <Suspense fallback={<div className=\"flex items-center justify-center h-full\"><span className=\"loading loading-spinner\"></span></div>}>\n <WorkspaceCustomScriptsContent />\n </Suspense>\n );\n}\n"],"names":[],"mappings":"uCAEA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAOO,SAAS,EAAkB,CAAuB,CAAE,CAAgB,EACvE,IAAM,EAAa,CAAA,EAAA,EAAA,aAAA,AAAa,EAAC,GAEjC,CAAA,EAAA,EAAA,SAAA,AAAS,EAAC,KACN,IAAM,EAAW,EACX,EACI,CAAA,EAAA,EAAA,wBAAwB,AAAxB,EAAyB,GACzB,CAAA,EAAA,EAAA,iBAAA,AAAiB,EAAC,GACtB,YACN,SAAS,KAAK,CAAG,CAAA,EAAG,EAAS,GAAG,EAAE,EAAA,CAAU,AAChD,EAAG,CAAC,EAAU,EAAY,EAAS,CACvC,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getRepoFolderName)(a):"Workspace";document.title=`${b} | ${e}`},[a,f,e])}a.s(["useWorkspaceTitle",()=>e])},88520,a=>{"use strict";var b=a.i(44287),c=a.i(67128),d=a.i(89812),e=a.i(29759),f=a.i(53522),g=a.i(25251),h=a.i(63052);function i({repoPath:a,filePath:i}){let{data:j,isLoading:k}=(0,c.useGitDiff)(a,i),l=(0,d.useRef)(null),[m,n]=(0,d.useState)(()=>!0),[o,p]=(0,d.useState)(null),q=o===i,{resolvedTheme:r}=(0,e.useTheme)();if((0,d.useEffect)(()=>{try{localStorage.setItem("git-web:diff-view-split",JSON.stringify(m))}catch(a){console.error("Failed to save split view preference:",a)}},[m]),(0,d.useEffect)(()=>{if(k)return;let a=requestAnimationFrame(()=>{l.current?.scrollTo({top:0,left:0})});return()=>cancelAnimationFrame(a)},[i,k]),k)return(0,b.jsx)("div",{className:"flex items-center justify-center p-8 h-full",children:(0,b.jsx)("span",{className:"loading loading-spinner text-base-content/50"})});if(!j)return(0,b.jsx)("div",{className:"flex items-center justify-center h-full opacity-50",children:"No diff available"});if((0,f.isImageFile)(i))return(0,b.jsxs)("div",{className:"flex flex-col h-full bg-base-100",children:[(0,b.jsx)("div",{className:"flex items-center justify-between px-4 h-[57px] border-b border-base-300 shrink-0 bg-base-100",children:(0,b.jsx)("span",{className:"text-sm font-mono truncate max-w-[70%]",title:i,children:i})}),(0,b.jsx)("div",{className:"flex-1 overflow-auto",children:(0,b.jsx)(h.ImageDiffView,{filePath:i,imageDiff:j.imageDiff})})]});if((0,f.isFileBinary)(i,j.left,j.right))return(0,b.jsxs)("div",{className:"flex flex-col h-full bg-base-100",children:[(0,b.jsx)("div",{className:"flex items-center justify-between px-4 h-[57px] border-b border-base-300 shrink-0 bg-base-100",children:(0,b.jsx)("span",{className:"text-sm font-mono truncate max-w-[70%]",title:i,children:i})}),(0,b.jsx)("div",{className:"flex-1 flex items-center justify-center opacity-50",children:"Binary file - diff not available"})]});let s=j.diff||"",t=s.length,u=(0,f.getChangedLineCountFromDiff)(s),v=t>102400||u>3e3;return(0,b.jsxs)("div",{className:"flex flex-col h-full bg-base-100",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between px-4 h-[57px] border-b border-base-300 shrink-0 bg-base-100",children:[(0,b.jsx)("span",{className:"text-sm font-mono truncate max-w-[70%]",title:i,children:i}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("label",{htmlFor:"split-view",className:"text-[10px] uppercase tracking-wider font-bold cursor-pointer opacity-70",children:"Split View"}),(0,b.jsx)("input",{type:"checkbox",id:"split-view",checked:m,onChange:a=>n(a.target.checked),className:"toggle toggle-sm toggle-primary"})]})]}),(0,b.jsx)("div",{ref:l,className:"flex-1 overflow-auto diff-viewer-wrapper",children:v&&!q?(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4 text-center p-4",children:[(0,b.jsx)("i",{className:"iconoir-warning-triangle text-[40px] text-warning","aria-hidden":"true"}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("h3",{className:"font-bold text-lg",children:"Large Diff Detected"}),(0,b.jsxs)("p",{className:"opacity-70",children:["This diff is large (",Math.round(t/1024),"KB, ~",u," changed lines) and may freeze your browser if rendered."]})]}),(0,b.jsx)("button",{className:"btn btn-outline",onClick:()=>p(i),children:"Show Diff Anyway"})]}):(0,b.jsx)(g.GroupedDiffViewer,{oldValue:j.left||"",newValue:j.right||"",splitView:m,useDarkTheme:"dark"===r})})]})}a.s(["DiffView",()=>i])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=Downloads_projects_viba_src_7080dcd5._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../Downloads/projects/viba/src/hooks/use-workspace-title.ts","../../../../../../../Downloads/projects/viba/src/components/git/diff-view.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect } from 'react';\nimport { useRepository } from './use-git';\nimport { getRepoFolderName, getRepositoryDisplayName } from '@/lib/utils';\n\n/**\n * Updates the document title with the repo name and page name.\n * @param repoPath - The full path to the repository (e.g., \"C:\\\\Users\\\\user\\\\projects\\\\repo\" or \"/Users/user/projects/repo\")\n * @param pageName - The name of the current page (e.g., \"History\", \"Changes\", \"Stashes\", \"Settings\")\n */\nexport function useWorkspaceTitle(repoPath: string | null, pageName: string) {\n const repository = useRepository(repoPath);\n\n useEffect(() => {\n const repoName = repoPath\n ? repository\n ? getRepositoryDisplayName(repository)\n : getRepoFolderName(repoPath)\n : 'Workspace';\n document.title = `${repoName} | ${pageName}`;\n }, [repoPath, repository, pageName]);\n}\n","'use client';\n\nimport { useGitDiff } from '@/hooks/use-git';\nimport { useState, useEffect, useRef } from 'react';\nimport { useTheme } from 'next-themes';\nimport { getChangedLineCountFromDiff, isFileBinary, isImageFile } from '@/lib/utils';\nimport { GroupedDiffViewer } from './grouped-diff-viewer';\nimport { ImageDiffView } from './image-diff-view';\n\nexport function DiffView({ repoPath, filePath }: { repoPath: string, filePath: string }) {\n const { data, isLoading } = useGitDiff(repoPath, filePath);\n const diffScrollContainerRef = useRef<HTMLDivElement>(null);\n \n // Storage key for split view preference\n const storageKey = 'git-web:diff-view-split';\n \n const [splitView, setSplitView] = useState(() => {\n if (typeof window === 'undefined') return true;\n try {\n const stored = localStorage.getItem(storageKey);\n return stored !== null ? JSON.parse(stored) : true;\n } catch (e) {\n console.error('Failed to load split view preference:', e);\n return true;\n }\n });\n\n const [renderAnywayFilePath, setRenderAnywayFilePath] = useState<string | null>(null);\n const renderAnyway = renderAnywayFilePath === filePath;\n \n const { resolvedTheme } = useTheme();\n\n // Save split view preference when it changes\n useEffect(() => {\n try {\n localStorage.setItem(storageKey, JSON.stringify(splitView));\n } catch (e) {\n console.error('Failed to save split view preference:', e);\n }\n }, [splitView]);\n\n // Reset diff scroll position when switching files.\n useEffect(() => {\n if (isLoading) return;\n\n const frame = requestAnimationFrame(() => {\n diffScrollContainerRef.current?.scrollTo({ top: 0, left: 0 });\n });\n\n return () => cancelAnimationFrame(frame);\n }, [filePath, isLoading]);\n\n if (isLoading) {\n return <div className=\"flex items-center justify-center p-8 h-full\"><span className=\"loading loading-spinner text-base-content/50\"></span></div>;\n }\n\n if (!data) {\n return (\n <div className=\"flex items-center justify-center h-full opacity-50\">\n No diff available\n </div>\n )\n }\n\n const isImage = isImageFile(filePath);\n if (isImage) {\n return (\n <div className=\"flex flex-col h-full bg-base-100\">\n <div className=\"flex items-center justify-between px-4 h-[57px] border-b border-base-300 shrink-0 bg-base-100\">\n <span className=\"text-sm font-mono truncate max-w-[70%]\" title={filePath}>{filePath}</span>\n </div>\n <div className=\"flex-1 overflow-auto\">\n <ImageDiffView filePath={filePath} imageDiff={data.imageDiff} />\n </div>\n </div>\n );\n }\n\n // Check if file is binary (first by extension, then by content if unknown)\n const isBinary = isFileBinary(filePath, data.left, data.right);\n\n if (isBinary) {\n return (\n <div className=\"flex flex-col h-full bg-base-100\">\n <div className=\"flex items-center justify-between px-4 h-[57px] border-b border-base-300 shrink-0 bg-base-100\">\n <span className=\"text-sm font-mono truncate max-w-[70%]\" title={filePath}>{filePath}</span>\n </div>\n <div className=\"flex-1 flex items-center justify-center opacity-50\">\n Binary file - diff not available\n </div>\n </div>\n );\n }\n\n // Large file protection\n const MAX_DIFF_SIZE = 100 * 1024; // 100KB\n const MAX_DIFF_LINES = 3000;\n\n const diffContent = data.diff || '';\n const contentSize = diffContent.length;\n const lineCount = getChangedLineCountFromDiff(diffContent);\n\n const isLargeDiff = (contentSize > MAX_DIFF_SIZE || lineCount > MAX_DIFF_LINES);\n\n return (\n <div className=\"flex flex-col h-full bg-base-100\">\n <div className=\"flex items-center justify-between px-4 h-[57px] border-b border-base-300 shrink-0 bg-base-100\">\n <span className=\"text-sm font-mono truncate max-w-[70%]\" title={filePath}>{filePath}</span>\n <div className=\"flex items-center gap-2\">\n <label htmlFor=\"split-view\" className=\"text-[10px] uppercase tracking-wider font-bold cursor-pointer opacity-70\">Split View</label>\n <input\n type=\"checkbox\"\n id=\"split-view\"\n checked={splitView}\n onChange={(e) => setSplitView(e.target.checked)}\n className=\"toggle toggle-sm toggle-primary\"\n />\n </div>\n </div>\n <div ref={diffScrollContainerRef} className=\"flex-1 overflow-auto diff-viewer-wrapper\">\n {isLargeDiff && !renderAnyway ? (\n <div className=\"flex flex-col items-center justify-center h-full gap-4 text-center p-4\">\n <i className=\"iconoir-warning-triangle text-[40px] text-warning\" aria-hidden=\"true\" />\n <div className=\"space-y-2\">\n <h3 className=\"font-bold text-lg\">Large Diff Detected</h3>\n <p className=\"opacity-70\">\n This diff is large ({Math.round(contentSize / 1024)}KB, ~{lineCount} changed lines) and may freeze your browser if rendered.\n </p>\n </div>\n <button className=\"btn btn-outline\" onClick={() => setRenderAnywayFilePath(filePath)}>\n Show Diff Anyway\n </button>\n </div>\n ) : (\n <GroupedDiffViewer\n oldValue={data.left || ''}\n newValue={data.right || ''}\n splitView={splitView}\n useDarkTheme={resolvedTheme === 'dark'}\n />\n )}\n </div>\n </div>\n );\n}\n"],"names":[],"mappings":"uCAEA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAOO,SAAS,EAAkB,CAAuB,CAAE,CAAgB,EACvE,IAAM,EAAa,CAAA,EAAA,EAAA,aAAA,AAAa,EAAC,GAEjC,CAAA,EAAA,EAAA,SAAA,AAAS,EAAC,KACN,IAAM,EAAW,EACX,EACI,CAAA,EAAA,EAAA,wBAAA,AAAwB,EAAC,GACzB,CAAA,EAAA,EAAA,iBAAA,AAAiB,EAAC,GACtB,YACN,SAAS,KAAK,CAAG,CAAA,EAAG,EAAS,GAAG,EAAE,EAAA,CAAU,AAChD,EAAG,CAAC,EAAU,EAAY,EAAS,CACvC,2ECpBA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,C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C9C,UAAU,0CAIhB,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAI,IAAK,EAAwB,UAAU,oDACzC,GAAe,CAAC,EACf,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,CAAI,UAAU,mFACb,CAAA,EAAA,EAAA,GAAA,EAAC,IAAA,CAAE,UAAU,oDAAoD,cAAY,SAC7E,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,CAAI,UAAU,sBACb,CAAA,EAAA,EAAA,GAAA,EAAC,KAAA,CAAG,UAAU,6BAAoB,wBAClC,CAAA,EAAA,EAAA,IAAA,EAAC,IAAA,CAAE,UAAU,uBAAa,uBACH,KAAK,KAAK,CAAC,EAAc,MAAM,QAAM,EAAU,iEAGxE,CAAA,EAAA,EAAA,GAAA,EAAC,SAAA,CAAO,UAAU,kBAAkB,QAAS,IAAM,EAAwB,YAAW,wBAKxF,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,iBAAiB,CAAA,CAChB,SAAU,EAAK,IAAI,EAAI,GACvB,SAAU,EAAK,KAAK,EAAI,GACxB,UAAW,EACX,aAAgC,SAAlB,QAM1B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[90135,a=>{"use strict";var b=a.i(89812),c=a.i(67128),d=a.i(53522);function e(a,e){let f=(0,c.useRepository)(a);(0,b.useEffect)(()=>{let b=a?f?(0,d.getRepositoryDisplayName)(f):(0,d.getRepoFolderName)(a):"Workspace";document.title=`${b} | ${e}`},[a,f,e])}a.s(["useWorkspaceTitle",()=>e])},35585,a=>{"use strict";var b=a.i(44287),c=a.i(81081),d=a.i(89812),e=a.i(90135),f=a.i(67128),g=a.i(53522),h=a.i(29759),i=a.i(25251),j=a.i(63052);function k({repoPath:a,stashIndex:c,filePath:e}){let{data:k,isLoading:l}=(0,f.useStashFileDiff)(a,c,e),{resolvedTheme:m}=(0,h.useTheme)(),[n,o]=(0,d.useState)(()=>!0),[p,q]=(0,d.useState)(!1);if(l)return(0,b.jsx)("div",{className:"flex items-center justify-center p-8 h-full",children:(0,b.jsx)("span",{className:"loading loading-spinner text-base-content/50"})});if(!k)return(0,b.jsx)("div",{className:"flex items-center justify-center h-full opacity-50",children:"No diff available"});if((0,g.isImageFile)(e))return(0,b.jsxs)("div",{className:"flex flex-col h-full bg-white dark:bg-slate-900",children:[(0,b.jsx)("div",{className:"flex items-center justify-between px-4 h-[57px] border-b border-slate-200 dark:border-slate-800 shrink-0 bg-white dark:bg-slate-900",children:(0,b.jsx)("span",{className:"text-sm font-mono truncate max-w-[70%]",title:e,children:e})}),(0,b.jsx)("div",{className:"flex-1 overflow-auto",children:(0,b.jsx)(j.ImageDiffView,{filePath:e,imageDiff:k.imageDiff})})]});if((0,g.isFileBinary)(e,k.left,k.right))return(0,b.jsxs)("div",{className:"flex flex-col h-full bg-white dark:bg-slate-900",children:[(0,b.jsx)("div",{className:"flex items-center justify-between px-4 h-[57px] border-b border-slate-200 dark:border-slate-800 shrink-0 bg-white dark:bg-slate-900",children:(0,b.jsx)("span",{className:"text-sm font-mono truncate max-w-[70%]",title:e,children:e})}),(0,b.jsx)("div",{className:"flex-1 flex items-center justify-center opacity-50",children:"Binary file - diff not available"})]});let r=k.diff||"",s=r.length,t=(0,g.getChangedLineCountFromDiff)(r),u=s>102400||t>3e3;return(0,b.jsxs)("div",{className:"flex flex-col h-full bg-white dark:bg-slate-900",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between px-4 h-[57px] border-b border-slate-200 dark:border-slate-800 shrink-0 bg-white dark:bg-slate-900",children:[(0,b.jsx)("span",{className:"text-sm font-mono truncate max-w-[70%]",title:e,children:e}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("label",{htmlFor:"split-view-stash",className:"text-[10px] uppercase tracking-wider font-bold cursor-pointer opacity-70",children:"Split View"}),(0,b.jsx)("input",{type:"checkbox",id:"split-view-stash",checked:n,onChange:a=>{o(a.target.checked);try{localStorage.setItem("git-web:diff-view-split",JSON.stringify(a.target.checked))}catch{}},className:"toggle toggle-xs toggle-primary"})]})]}),(0,b.jsx)("div",{className:"flex-1 overflow-auto diff-viewer-wrapper",children:u&&!p?(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4 text-center p-4",children:[(0,b.jsx)("i",{className:"iconoir-warning-triangle text-[32px] text-warning","aria-hidden":"true"}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("h3",{className:"font-bold text-lg",children:"Large Diff Detected"}),(0,b.jsxs)("p",{className:"opacity-70",children:["This diff is large (",Math.round(s/1024),"KB, ~",t," changed lines) and may freeze your browser if rendered."]})]}),(0,b.jsx)("button",{className:"btn btn-outline",onClick:()=>q(!0),children:"Show Diff Anyway"})]}):(0,b.jsx)(i.GroupedDiffViewer,{oldValue:k.left||"",newValue:k.right||"",splitView:n,useDarkTheme:"dark"===m})})]})}function l(){let a=(0,c.useSearchParams)().get("path"),{data:h,isLoading:i,isError:j,error:l,refetch:m}=(0,f.useGitStashes)(a),n=(0,f.useGitAction)(),[o,p]=(0,d.useState)(null),[q,r]=(0,d.useState)(null),[s,t]=(0,d.useState)(new Set),{data:u,isLoading:v}=(0,f.useStashFiles)(a,o);if((0,e.useWorkspaceTitle)(a,"Stashes"),!a)return(0,b.jsx)("div",{className:"p-8",children:"No repository path specified."});if(i)return(0,b.jsx)("div",{className:"flex items-center justify-center h-64",children:(0,b.jsx)("span",{className:"loading loading-spinner text-base-content/50"})});if(j)return(0,b.jsxs)("div",{className:"flex items-center justify-center h-64 flex-col gap-4",children:[(0,b.jsx)("p",{className:"text-error font-medium",children:"Error Loading Stashes"}),(0,b.jsx)("p",{className:"text-sm opacity-70",children:l?.message||"An unknown error occurred"}),(0,b.jsxs)("button",{onClick:()=>m(),className:"btn btn-outline btn-sm",children:[(0,b.jsx)("i",{className:"iconoir-refresh-circle text-[16px] mr-1","aria-hidden":"true"}),"Try Again"]})]});let w=async b=>{await n.mutateAsync({repoPath:a,action:"stash-apply",data:{index:b}}),m()},x=async b=>{await n.mutateAsync({repoPath:a,action:"stash-pop",data:{index:b}}),p(null),r(null),m()},y=async b=>{await n.mutateAsync({repoPath:a,action:"stash-drop",data:{index:b}}),o===b&&(p(null),r(null)),m()};return(0,b.jsx)("div",{className:"flex h-full overflow-hidden",children:(0,b.jsxs)("div",{className:"flex flex-1 min-w-0 flex-col gap-2 overflow-hidden",children:[(0,b.jsxs)("div",{className:"flex min-h-[57px] shrink-0 items-center justify-between gap-2 rounded-xl border border-slate-200 bg-white px-4 py-2 dark:border-slate-800 dark:bg-slate-900",children:[(0,b.jsx)("h1",{className:"font-bold text-lg text-slate-900 dark:text-slate-100",children:"Stashes"}),(0,b.jsxs)("button",{className:"flex h-8 items-center gap-1.5 rounded-md border border-slate-200 bg-white px-3 text-sm font-medium text-slate-600 transition-colors hover:bg-slate-50 hover:text-slate-900 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300 dark:hover:bg-slate-800 dark:hover:text-slate-100",onClick:()=>m(),disabled:n.isPending,title:"Refresh stashes",children:[n.isPending?(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,b.jsx)("i",{className:"iconoir-refresh-circle text-[16px]","aria-hidden":"true"}),"Refresh"]})]}),(0,b.jsxs)("div",{className:"flex flex-1 overflow-hidden rounded-xl border border-slate-200 bg-white dark:border-slate-800 dark:bg-slate-900",children:[(0,b.jsx)("div",{className:"w-64 border-r border-slate-200 dark:border-slate-800 flex flex-col bg-slate-50/70 dark:bg-slate-900/70",children:(0,b.jsx)("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:h&&0!==h.length?(0,b.jsx)("div",{className:"p-2",children:h.map(a=>{let c=s.has(a.index),d=o===a.index;return(0,b.jsxs)("div",{className:"mb-1",children:[(0,b.jsx)("div",{className:(0,g.cn)("p-2 rounded-md cursor-pointer transition-colors",d?"bg-slate-100 dark:bg-slate-800/70":"hover:bg-slate-100 dark:hover:bg-slate-800/60"),onClick:()=>{var b;let c;return b=a.index,void((c=new Set(s)).has(b)?c.delete(b):c.add(b),t(c),p(b),r(null))},children:(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("div",{className:"opacity-50 text-[10px]",children:c?"▼":"▶"}),(0,b.jsxs)("span",{className:"text-[10px] font-mono bg-slate-200 dark:bg-slate-800 px-1 py-0.5 rounded opacity-70",children:["stash@","{"+a.index+"}"]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,b.jsx)("div",{className:"tooltip tooltip-left before:whitespace-normal before:max-w-[120px]","data-tip":"Apply stash (keep)",children:(0,b.jsx)("button",{className:"btn btn-ghost btn-xs btn-square",onClick:b=>{b.stopPropagation(),w(a.index)},disabled:n.isPending,children:(0,b.jsx)("i",{className:"iconoir-play text-[16px]","aria-hidden":"true"})})}),(0,b.jsx)("div",{className:"tooltip tooltip-left before:whitespace-normal before:max-w-[120px]","data-tip":"Pop stash (apply and delete)",children:(0,b.jsx)("button",{className:"btn btn-ghost btn-xs btn-square",onClick:b=>{b.stopPropagation(),x(a.index)},disabled:n.isPending,children:(0,b.jsx)("i",{className:"iconoir-u-turn-arrow-left text-[16px]","aria-hidden":"true"})})}),(0,b.jsx)("div",{className:"tooltip tooltip-left before:whitespace-normal before:max-w-[120px]","data-tip":"Delete stash",children:(0,b.jsx)("button",{className:"btn btn-ghost btn-xs btn-square text-error hover:bg-error/10",onClick:b=>{b.stopPropagation(),y(a.index)},disabled:n.isPending,children:(0,b.jsx)("i",{className:"iconoir-trash text-[16px]","aria-hidden":"true"})})})]})]}),(0,b.jsx)("div",{className:"tooltip tooltip-bottom before:whitespace-normal before:max-w-[200px] w-full block text-left","data-tip":a.message,children:(0,b.jsx)("p",{className:"text-xs font-bold truncate opacity-90 w-full",children:a.message})}),(0,b.jsx)("div",{className:"text-[10px] opacity-50",children:(a=>{try{let b=new Date(a),c=new Date().getTime()-b.getTime(),d=Math.floor(c/6e4),e=Math.floor(c/36e5),f=Math.floor(c/864e5);if(d<1)return"just now";if(d<60)return`${d} minute${1===d?"":"s"} ago`;if(e<24)return`${e} hour${1===e?"":"s"} ago`;if(f<30)return`${f} day${1===f?"":"s"} ago`;return b.toLocaleDateString()}catch{return a}})(a.date)})]})}),c&&d&&(0,b.jsx)("div",{className:"ml-6 mt-1 space-y-0.5",children:v?(0,b.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1 text-xs opacity-50",children:[(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}),"Loading files..."]}):u&&u.length>0?u.map(a=>(0,b.jsxs)("div",{className:(0,g.cn)("flex items-center gap-2 px-2 py-1 rounded cursor-pointer transition-colors text-xs",q===a.path?"bg-primary/10 text-primary font-bold":"hover:bg-slate-100 dark:hover:bg-slate-800/60"),onClick:b=>{b.stopPropagation(),r(a.path)},children:[(0,b.jsx)("i",{className:"iconoir-page text-[14px] opacity-50","aria-hidden":"true"}),(0,b.jsx)("span",{className:"font-mono truncate flex-1",title:a.path,children:a.path}),(0,b.jsx)("span",{className:(0,g.cn)("text-[10px] uppercase font-bold",(a=>{switch(a){case"A":return"text-success";case"D":return"text-error";case"M":return"text-warning";default:return"opacity-50"}})(a.status)),title:(a=>{switch(a){case"A":return"Added";case"D":return"Deleted";case"M":return"Modified";default:return a}})(a.status),children:a.status})]},a.path)):(0,b.jsx)("div",{className:"px-2 py-1 text-xs opacity-50 italic",children:"No files in stash"})})]},a.hash)})}):(0,b.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center opacity-50 h-64",children:[(0,b.jsx)("div",{className:"p-8 rounded-full bg-slate-100 dark:bg-slate-800/60 mb-4 text-4xl",children:"📦"}),(0,b.jsx)("p",{className:"text-sm font-bold",children:"No stashes"}),(0,b.jsx)("p",{className:"text-xs mt-1",children:"Stash changes from the Changes page"})]})})}),(0,b.jsx)("div",{className:"flex-1 flex flex-col bg-white dark:bg-slate-900 overflow-hidden",children:null!==o&&q?(0,b.jsx)(k,{repoPath:a,stashIndex:o,filePath:q},`${o}:${q}`):(0,b.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center opacity-50",children:[(0,b.jsx)("div",{className:"p-8 rounded-full bg-slate-100 dark:bg-slate-800/60 mb-4 text-4xl",children:"📦"}),(0,b.jsx)("p",{className:"text-sm font-bold",children:null!==o?"Select a file to view changes":"Select a stash to view files"})]})})]})]})})}function m(){return(0,b.jsx)(d.Suspense,{fallback:(0,b.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,b.jsx)("span",{className:"loading loading-spinner"})}),children:(0,b.jsx)(l,{})})}a.s(["default",()=>m])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=Downloads_projects_viba_src_902b4f97._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../Downloads/projects/viba/src/hooks/use-workspace-title.ts","../../../../../../../Downloads/projects/viba/src/app/git/stashes/page.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect } from 'react';\nimport { useRepository } from './use-git';\nimport { getRepoFolderName, getRepositoryDisplayName } from '@/lib/utils';\n\n/**\n * Updates the document title with the repo name and page name.\n * @param repoPath - The full path to the repository (e.g., \"C:\\\\Users\\\\user\\\\projects\\\\repo\" or \"/Users/user/projects/repo\")\n * @param pageName - The name of the current page (e.g., \"History\", \"Changes\", \"Stashes\", \"Settings\")\n */\nexport function useWorkspaceTitle(repoPath: string | null, pageName: string) {\n const repository = useRepository(repoPath);\n\n useEffect(() => {\n const repoName = repoPath\n ? repository\n ? getRepositoryDisplayName(repository)\n : getRepoFolderName(repoPath)\n : 'Workspace';\n document.title = `${repoName} | ${pageName}`;\n }, [repoPath, repository, pageName]);\n}\n","'use client';\n\nimport { useSearchParams } from 'next/navigation';\nimport { Suspense, useState } from 'react';\nimport { useWorkspaceTitle } from '@/hooks/use-workspace-title';\nimport { useGitStashes, useGitAction, useStashFiles, useStashFileDiff } from '@/hooks/use-git';\nimport { cn, getChangedLineCountFromDiff, isFileBinary, isImageFile } from '@/lib/utils';\nimport { useTheme } from 'next-themes';\nimport { GroupedDiffViewer } from '@/components/git/grouped-diff-viewer';\nimport { ImageDiffView } from '@/components/git/image-diff-view';\n\nfunction StashDiffView({ repoPath, stashIndex, filePath }: { repoPath: string; stashIndex: number; filePath: string }) {\n const { data, isLoading } = useStashFileDiff(repoPath, stashIndex, filePath);\n const { resolvedTheme } = useTheme();\n const storageKey = 'git-web:diff-view-split';\n\n const [splitView, setSplitView] = useState(() => {\n if (typeof window === 'undefined') return true;\n try {\n const stored = localStorage.getItem(storageKey);\n return stored !== null ? JSON.parse(stored) : true;\n } catch {\n return true;\n }\n });\n\n const [renderAnyway, setRenderAnyway] = useState(false);\n\n if (isLoading) {\n return <div className=\"flex items-center justify-center p-8 h-full\"><span className=\"loading loading-spinner text-base-content/50\"></span></div>;\n }\n\n if (!data) {\n return (\n <div className=\"flex items-center justify-center h-full opacity-50\">\n No diff available\n </div>\n );\n }\n\n if (isImageFile(filePath)) {\n return (\n <div className=\"flex flex-col h-full bg-white dark:bg-slate-900\">\n <div className=\"flex items-center justify-between px-4 h-[57px] border-b border-slate-200 dark:border-slate-800 shrink-0 bg-white dark:bg-slate-900\">\n <span className=\"text-sm font-mono truncate max-w-[70%]\" title={filePath}>{filePath}</span>\n </div>\n <div className=\"flex-1 overflow-auto\">\n <ImageDiffView filePath={filePath} imageDiff={data.imageDiff} />\n </div>\n </div>\n );\n }\n\n const isBinary = isFileBinary(filePath, data.left, data.right);\n\n if (isBinary) {\n return (\n <div className=\"flex flex-col h-full bg-white dark:bg-slate-900\">\n <div className=\"flex items-center justify-between px-4 h-[57px] border-b border-slate-200 dark:border-slate-800 shrink-0 bg-white dark:bg-slate-900\">\n <span className=\"text-sm font-mono truncate max-w-[70%]\" title={filePath}>{filePath}</span>\n </div>\n <div className=\"flex-1 flex items-center justify-center opacity-50\">\n Binary file - diff not available\n </div>\n </div>\n );\n }\n\n // Large file protection\n const MAX_DIFF_SIZE = 100 * 1024; // 100KB\n const MAX_DIFF_LINES = 3000;\n\n const diffContent = data.diff || '';\n const contentSize = diffContent.length;\n const lineCount = getChangedLineCountFromDiff(diffContent);\n\n const isLargeDiff = (contentSize > MAX_DIFF_SIZE || lineCount > MAX_DIFF_LINES);\n\n return (\n <div className=\"flex flex-col h-full bg-white dark:bg-slate-900\">\n <div className=\"flex items-center justify-between px-4 h-[57px] border-b border-slate-200 dark:border-slate-800 shrink-0 bg-white dark:bg-slate-900\">\n <span className=\"text-sm font-mono truncate max-w-[70%]\" title={filePath}>{filePath}</span>\n <div className=\"flex items-center gap-2\">\n <label htmlFor=\"split-view-stash\" className=\"text-[10px] uppercase tracking-wider font-bold cursor-pointer opacity-70\">Split View</label>\n <input\n type=\"checkbox\"\n id=\"split-view-stash\"\n checked={splitView}\n onChange={(e) => {\n setSplitView(e.target.checked);\n try {\n localStorage.setItem(storageKey, JSON.stringify(e.target.checked));\n } catch { }\n }}\n className=\"toggle toggle-xs toggle-primary\"\n />\n </div>\n </div>\n <div className=\"flex-1 overflow-auto diff-viewer-wrapper\">\n {isLargeDiff && !renderAnyway ? (\n <div className=\"flex flex-col items-center justify-center h-full gap-4 text-center p-4\">\n <i className=\"iconoir-warning-triangle text-[32px] text-warning\" aria-hidden=\"true\" />\n <div className=\"space-y-2\">\n <h3 className=\"font-bold text-lg\">Large Diff Detected</h3>\n <p className=\"opacity-70\">\n This diff is large ({Math.round(contentSize / 1024)}KB, ~{lineCount} changed lines) and may freeze your browser if rendered.\n </p>\n </div>\n <button className=\"btn btn-outline\" onClick={() => setRenderAnyway(true)}>\n Show Diff Anyway\n </button>\n </div>\n ) : (\n <GroupedDiffViewer\n oldValue={data.left || ''}\n newValue={data.right || ''}\n splitView={splitView}\n useDarkTheme={resolvedTheme === 'dark'}\n />\n )}\n </div>\n </div>\n );\n}\n\nfunction StashesContent() {\n const searchParams = useSearchParams();\n const repoPath = searchParams.get('path');\n const { data: stashes, isLoading, isError, error, refetch } = useGitStashes(repoPath);\n const action = useGitAction();\n const [selectedStashIndex, setSelectedStashIndex] = useState<number | null>(null);\n const [selectedFile, setSelectedFile] = useState<string | null>(null);\n const [expandedStashes, setExpandedStashes] = useState<Set<number>>(new Set());\n\n const { data: stashFiles, isLoading: filesLoading } = useStashFiles(repoPath, selectedStashIndex);\n\n useWorkspaceTitle(repoPath, 'Stashes');\n\n if (!repoPath) {\n return <div className=\"p-8\">No repository path specified.</div>;\n }\n\n if (isLoading) {\n return (\n <div className=\"flex items-center justify-center h-64\">\n <span className=\"loading loading-spinner text-base-content/50\"></span>\n </div>\n );\n }\n\n if (isError) {\n return (\n <div className=\"flex items-center justify-center h-64 flex-col gap-4\">\n <p className=\"text-error font-medium\">Error Loading Stashes</p>\n <p className=\"text-sm opacity-70\">{(error as Error)?.message || 'An unknown error occurred'}</p>\n <button onClick={() => refetch()} className=\"btn btn-outline btn-sm\">\n <i className=\"iconoir-refresh-circle text-[16px] mr-1\" aria-hidden=\"true\" />\n Try Again\n </button>\n </div>\n );\n }\n\n const handleApply = async (index: number) => {\n await action.mutateAsync({ repoPath, action: 'stash-apply', data: { index } });\n refetch();\n };\n\n const handlePop = async (index: number) => {\n await action.mutateAsync({ repoPath, action: 'stash-pop', data: { index } });\n setSelectedStashIndex(null);\n setSelectedFile(null);\n refetch();\n };\n\n const handleDrop = async (index: number) => {\n await action.mutateAsync({ repoPath, action: 'stash-drop', data: { index } });\n if (selectedStashIndex === index) {\n setSelectedStashIndex(null);\n setSelectedFile(null);\n }\n refetch();\n };\n\n const toggleStashExpanded = (index: number) => {\n const newExpanded = new Set(expandedStashes);\n if (newExpanded.has(index)) {\n newExpanded.delete(index);\n } else {\n newExpanded.add(index);\n }\n setExpandedStashes(newExpanded);\n setSelectedStashIndex(index);\n setSelectedFile(null);\n };\n\n const formatDate = (dateString: string) => {\n try {\n const date = new Date(dateString);\n const now = new Date();\n const diffMs = now.getTime() - date.getTime();\n const diffMins = Math.floor(diffMs / 60000);\n const diffHours = Math.floor(diffMs / 3600000);\n const diffDays = Math.floor(diffMs / 86400000);\n\n if (diffMins < 1) return 'just now';\n if (diffMins < 60) return `${diffMins} minute${diffMins === 1 ? '' : 's'} ago`;\n if (diffHours < 24) return `${diffHours} hour${diffHours === 1 ? '' : 's'} ago`;\n if (diffDays < 30) return `${diffDays} day${diffDays === 1 ? '' : 's'} ago`;\n return date.toLocaleDateString();\n } catch {\n return dateString;\n }\n };\n\n const getStatusColor = (status: string) => {\n switch (status) {\n case 'A': return 'text-success';\n case 'D': return 'text-error';\n case 'M': return 'text-warning';\n default: return 'opacity-50';\n }\n };\n\n const getStatusLabel = (status: string) => {\n switch (status) {\n case 'A': return 'Added';\n case 'D': return 'Deleted';\n case 'M': return 'Modified';\n default: return status;\n }\n };\n\n const headerActionButtonClass =\n \"flex h-8 items-center gap-1.5 rounded-md border border-slate-200 bg-white px-3 text-sm font-medium text-slate-600 transition-colors hover:bg-slate-50 hover:text-slate-900 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300 dark:hover:bg-slate-800 dark:hover:text-slate-100\";\n\n return (\n <div className=\"flex h-full overflow-hidden\">\n <div className=\"flex flex-1 min-w-0 flex-col gap-2 overflow-hidden\">\n <div className=\"flex min-h-[57px] shrink-0 items-center justify-between gap-2 rounded-xl border border-slate-200 bg-white px-4 py-2 dark:border-slate-800 dark:bg-slate-900\">\n <h1 className=\"font-bold text-lg text-slate-900 dark:text-slate-100\">Stashes</h1>\n <button className={headerActionButtonClass} onClick={() => refetch()} disabled={action.isPending} title=\"Refresh stashes\">\n {action.isPending ? <span className=\"loading loading-spinner loading-xs\"></span> : <i className=\"iconoir-refresh-circle text-[16px]\" aria-hidden=\"true\" />}\n Refresh\n </button>\n </div>\n\n <div className=\"flex flex-1 overflow-hidden rounded-xl border border-slate-200 bg-white dark:border-slate-800 dark:bg-slate-900\">\n {/* Left Panel: Stash List */}\n <div className=\"w-64 border-r border-slate-200 dark:border-slate-800 flex flex-col bg-slate-50/70 dark:bg-slate-900/70\">\n <div className=\"flex-1 overflow-y-auto overflow-x-hidden\">\n {!stashes || stashes.length === 0 ? (\n <div className=\"flex-1 flex flex-col items-center justify-center opacity-50 h-64\">\n <div className=\"p-8 rounded-full bg-slate-100 dark:bg-slate-800/60 mb-4 text-4xl\">\n 📦\n </div>\n <p className=\"text-sm font-bold\">No stashes</p>\n <p className=\"text-xs mt-1\">Stash changes from the Changes page</p>\n </div>\n ) : (\n <div className=\"p-2\">\n {stashes.map((stash) => {\n const isExpanded = expandedStashes.has(stash.index);\n const isSelected = selectedStashIndex === stash.index;\n\n return (\n <div key={stash.hash} className=\"mb-1\">\n <div\n className={cn(\n \"p-2 rounded-md cursor-pointer transition-colors\",\n isSelected ? \"bg-slate-100 dark:bg-slate-800/70\" : \"hover:bg-slate-100 dark:hover:bg-slate-800/60\"\n )}\n onClick={() => toggleStashExpanded(stash.index)}\n >\n <div className=\"flex flex-col gap-1\">\n {/* Row 1: ID and Buttons */}\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-2\">\n <div className=\"opacity-50 text-[10px]\">\n {isExpanded ? '▼' : '▶'}\n </div>\n <span className=\"text-[10px] font-mono bg-slate-200 dark:bg-slate-800 px-1 py-0.5 rounded opacity-70\">\n stash@{'{' + stash.index + '}'}\n </span>\n </div>\n <div className=\"flex items-center gap-1 shrink-0\">\n <div className=\"tooltip tooltip-left before:whitespace-normal before:max-w-[120px]\" data-tip=\"Apply stash (keep)\">\n <button\n className=\"btn btn-ghost btn-xs btn-square\"\n onClick={(e) => { e.stopPropagation(); handleApply(stash.index); }}\n disabled={action.isPending}\n >\n <i className=\"iconoir-play text-[16px]\" aria-hidden=\"true\" />\n </button>\n </div>\n <div className=\"tooltip tooltip-left before:whitespace-normal before:max-w-[120px]\" data-tip=\"Pop stash (apply and delete)\">\n <button\n className=\"btn btn-ghost btn-xs btn-square\"\n onClick={(e) => { e.stopPropagation(); handlePop(stash.index); }}\n disabled={action.isPending}\n >\n <i className=\"iconoir-u-turn-arrow-left text-[16px]\" aria-hidden=\"true\" />\n </button>\n </div>\n <div className=\"tooltip tooltip-left before:whitespace-normal before:max-w-[120px]\" data-tip=\"Delete stash\">\n <button\n className=\"btn btn-ghost btn-xs btn-square text-error hover:bg-error/10\"\n onClick={(e) => { e.stopPropagation(); handleDrop(stash.index); }}\n disabled={action.isPending}\n >\n <i className=\"iconoir-trash text-[16px]\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n </div>\n\n {/* Row 2: Message */}\n <div className=\"tooltip tooltip-bottom before:whitespace-normal before:max-w-[200px] w-full block text-left\" data-tip={stash.message}>\n <p className=\"text-xs font-bold truncate opacity-90 w-full\">\n {stash.message}\n </p>\n </div>\n\n {/* Row 3: Metadata */}\n <div className=\"text-[10px] opacity-50\">\n {formatDate(stash.date)}\n </div>\n </div>\n </div>\n\n {/* Files list when expanded */}\n {isExpanded && isSelected && (\n <div className=\"ml-6 mt-1 space-y-0.5\">\n {filesLoading ? (\n <div className=\"flex items-center gap-2 px-2 py-1 text-xs opacity-50\">\n <span className=\"loading loading-spinner loading-xs\"></span>\n Loading files...\n </div>\n ) : stashFiles && stashFiles.length > 0 ? (\n stashFiles.map((file) => (\n <div\n key={file.path}\n className={cn(\n \"flex items-center gap-2 px-2 py-1 rounded cursor-pointer transition-colors text-xs\",\n selectedFile === file.path ? \"bg-primary/10 text-primary font-bold\" : \"hover:bg-slate-100 dark:hover:bg-slate-800/60\"\n )}\n onClick={(e) => { e.stopPropagation(); setSelectedFile(file.path); }}\n >\n <i className=\"iconoir-page text-[14px] opacity-50\" aria-hidden=\"true\" />\n <span className=\"font-mono truncate flex-1\" title={file.path}>{file.path}</span>\n <span className={cn(\"text-[10px] uppercase font-bold\", getStatusColor(file.status))} title={getStatusLabel(file.status)}>\n {file.status}\n </span>\n </div>\n ))\n ) : (\n <div className=\"px-2 py-1 text-xs opacity-50 italic\">\n No files in stash\n </div>\n )}\n </div>\n )}\n </div>\n );\n })}\n </div>\n )}\n </div>\n </div>\n\n {/* Right Panel: Diff View */}\n <div className=\"flex-1 flex flex-col bg-white dark:bg-slate-900 overflow-hidden\">\n {selectedStashIndex !== null && selectedFile ? (\n <StashDiffView\n key={`${selectedStashIndex}:${selectedFile}`}\n repoPath={repoPath}\n stashIndex={selectedStashIndex}\n filePath={selectedFile}\n />\n ) : (\n <div className=\"flex-1 flex flex-col items-center justify-center opacity-50\">\n <div className=\"p-8 rounded-full bg-slate-100 dark:bg-slate-800/60 mb-4 text-4xl\">\n 📦\n </div>\n <p className=\"text-sm font-bold\">\n {selectedStashIndex !== null ? 'Select a file to view changes' : 'Select a stash to view files'}\n </p>\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nexport default function WorkspaceStashesPage() {\n return (\n <Suspense fallback={<div className=\"flex items-center justify-center h-full\"><span className=\"loading loading-spinner\"></span></div>}>\n <StashesContent />\n </Suspense>\n );\n}\n"],"names":[],"mappings":"uCAEA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAOO,SAAS,EAAkB,CAAuB,CAAE,CAAgB,EACvE,IAAM,EAAa,CAAA,EAAA,EAAA,aAAA,AAAa,EAAC,GAEjC,CAAA,EAAA,EAAA,SAAA,AAAS,EAAC,KACN,IAAM,EAAW,EACX,EACI,CAAA,EAAA,EAAA,wBAAwB,AAAxB,EAAyB,GACzB,CAAA,EAAA,EAAA,iBAAA,AAAiB,EAAC,GACtB,YACN,SAAS,KAAK,CAAG,CAAA,EAAG,EAAS,GAAG,EAAE,EAAA,CACtC,AADgD,EAC7C,CAAC,EAAU,EAAY,EAAS,CACvC,2ECpBA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EA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
|
package/.next/server/chunks/ssr/Downloads_projects_viba_src_app_credentials_page_tsx_feca31b0._.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[65280,a=>{"use strict";var b=a.i(44287),c=a.i(56568),d=a.i(52774),e=a.i(87600);let f=(0,e.createServerReference)("407c96ca4ba5bd24be8887252f61c0e2364c606365",e.callServer,void 0,e.findSourceMapURL,"removeAgentApiCredential"),g=(0,e.createServerReference)("4082e4c269bb79962d6ea42dc5084f64dc7dbdabb8",e.callServer,void 0,e.findSourceMapURL,"removeCredential"),h=(0,e.createServerReference)("70b7afe2c0a2f6d6eddab7bca16522ddb38d4abf40",e.callServer,void 0,e.findSourceMapURL,"saveAgentApiCredential"),i=(0,e.createServerReference)("40b485480e8f63bf69c7d3ccb52778a60d39349dbd",e.callServer,void 0,e.findSourceMapURL,"saveGitHubCredential"),j=(0,e.createServerReference)("605f61938bf5e427ed5388e455820dd042e2f3d2c0",e.callServer,void 0,e.findSourceMapURL,"saveGitLabCredential");var k=a.i(65661),l=a.i(71133),m=a.i(87239),n=a.i(33354),o=a.i(81081),p=a.i(89812);let q="https://gitlab.com",r={github:"https://www.google.com/s2/favicons?domain=github.com&sz=64",gitlab:"https://www.google.com/s2/favicons?domain=gitlab.com&sz=64"},s={codex:"Codex CLI"},t={codex:"sk-..."},u={codex:"https://proxy.example.com/v1"},v=["codex"];function w(a){return"github"===a?"GitHub":"GitLab"}function x({type:a}){return(0,b.jsx)(n.default,{src:r[a],alt:`${w(a)} icon`,width:20,height:20,className:"h-5 w-5 rounded-sm",unoptimized:!0})}function y(){let a=(0,o.useRouter)(),[e,n]=(0,p.useState)([]),[r,y]=(0,p.useState)([]),[z,A]=(0,p.useState)(!0),[B,C]=(0,p.useState)(""),[D,E]=(0,p.useState)(""),[F,G]=(0,p.useState)(q),[H,I]=(0,p.useState)({codex:""}),[J,K]=(0,p.useState)({codex:""}),[L,M]=(0,p.useState)(null),[N,O]=(0,p.useState)(null),[P,Q]=(0,p.useState)(null),[R,S]=(0,p.useState)(null),[T,U]=(0,p.useState)(null),V=(0,p.useMemo)(()=>e.filter(a=>"github"===a.type),[e]),W=(0,p.useMemo)(()=>e.filter(a=>"gitlab"===a.type),[e]),X=(0,p.useMemo)(()=>new Map(r.map(a=>[a.agent,a])),[r]),Y=async()=>{let[a,b]=await Promise.all([(0,d.listCredentials)(),(0,c.listAgentApiCredentials)()]);if(!a.success){U({tone:"error",text:a.error}),A(!1);return}if(!b.success){U({tone:"error",text:b.error}),A(!1);return}n(a.credentials),y(b.credentials),K(a=>{let c={...a};for(let a of v)c[a]=b.credentials.find(b=>b.agent===a)?.apiProxy||"";return c}),A(!1)};(0,p.useEffect)(()=>{let a=!0;return(async()=>{let[b,e]=await Promise.all([(0,d.listCredentials)(),(0,c.listAgentApiCredentials)()]);if(a){if(!b.success){U({tone:"error",text:b.error}),A(!1);return}if(!e.success){U({tone:"error",text:e.error}),A(!1);return}n(b.credentials),y(e.credentials),K(a=>{let b={...a};for(let a of v)b[a]=e.credentials.find(b=>b.agent===a)?.apiProxy||"";return b}),A(!1)}})(),()=>{a=!1}},[]);let Z=async()=>{U(null),M("github");let a=await i(B);if(!a.success){U({tone:"error",text:a.error}),M(null);return}C(""),U({tone:"success",text:"GitHub credential added."}),await Y(),M(null)},$=async()=>{U(null),M("gitlab");let a=await j(F,D);if(!a.success){U({tone:"error",text:a.error}),M(null);return}E(""),U({tone:"success",text:"GitLab credential added."}),await Y(),M(null)},_=async a=>{U(null),O(a);let b=await h(a,H[a],J[a]);if(!b.success){U({tone:"error",text:b.error}),O(null);return}I(b=>({...b,[a]:""})),K(c=>({...c,[a]:b.credential.apiProxy||""})),U({tone:"success",text:`${s[a]} credential saved.`}),await Y(),O(null)},aa=async a=>{let b=w(a.type);if(!confirm(`Delete this ${b} credential for ${"gitlab"===a.type?`${a.username} @ ${a.serverUrl}`:a.username}?`))return;U(null),Q(a.id);let c=await g(a.id);if(!c.success){U({tone:"error",text:c.error}),Q(null);return}U({tone:"success",text:`${b} credential deleted.`}),await Y(),Q(null)},ab=async a=>{if(!confirm(`Delete the saved ${s[a]} API credential?`))return;U(null),S(a);let b=await f(a);if(!b.success){U({tone:"error",text:b.error}),S(null);return}I(b=>({...b,[a]:""})),K(b=>({...b,[a]:""})),U({tone:"success",text:`${s[a]} credential deleted.`}),await Y(),S(null)},ac="overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm dark:border-slate-700/50 dark:bg-slate-800 dark:shadow-[0_12px_30px_-18px_rgba(2,6,23,0.9)]",ad="flex flex-col gap-3 border-b border-slate-200 bg-white px-6 py-5 md:flex-row md:items-center md:justify-between dark:border-slate-700/50 dark:bg-slate-800",ae="block w-full rounded-lg border border-slate-200 bg-slate-50 px-3 py-2.5 text-sm text-slate-900 placeholder-slate-400 transition-all focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-60 dark:border-slate-700 dark:bg-slate-900/50 dark:text-white dark:placeholder-slate-500 dark:focus:border-primary/50 dark:focus:bg-slate-900",af="inline-flex items-center justify-center gap-2 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-white shadow-lg shadow-blue-900/20 transition-colors hover:bg-blue-700 disabled:cursor-not-allowed disabled:opacity-60",ag="inline-flex items-center justify-center gap-2 rounded-lg border border-slate-200 bg-white px-4 py-2 text-sm font-medium text-slate-700 shadow-sm transition-colors hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-60 dark:border-slate-600 dark:bg-slate-800 dark:text-slate-200 dark:hover:bg-slate-700",ah="inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 transition-all hover:bg-red-50 hover:text-red-500 dark:text-slate-400 dark:hover:bg-red-900/30 dark:hover:text-red-400";return(0,b.jsx)("main",{className:"min-h-screen bg-[#f6f6f8] px-4 py-8 md:px-8 md:py-12 dark:bg-[#0f1117]",children:(0,b.jsxs)("div",{className:"mx-auto w-full max-w-4xl space-y-8",children:[(0,b.jsxs)("div",{className:"mb-8",children:[(0,b.jsxs)("div",{className:"mb-2 flex items-center gap-4",children:[(0,b.jsx)("button",{type:"button",className:"flex h-10 w-10 items-center justify-center rounded-lg text-slate-500 transition-colors hover:bg-white hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800 dark:hover:text-white",onClick:()=>a.push("/"),"aria-label":"Back to home",children:(0,b.jsx)(k.ChevronRight,{className:"h-6 w-6 rotate-180"})}),(0,b.jsx)("h1",{className:"text-3xl font-black tracking-[-0.02em] text-slate-900 md:text-4xl dark:text-white",children:"Credential Management"})]}),(0,b.jsx)("p",{className:"ml-14 text-sm text-slate-500 md:text-base dark:text-slate-400",children:"Manage your API keys and access tokens for third-party services safely."})]}),T&&(0,b.jsx)("div",{className:`rounded-lg border px-4 py-3 text-sm ${"error"===T.tone?"border-red-200 bg-red-50 text-red-700 dark:border-red-500/40 dark:bg-red-900/30 dark:text-red-200":"border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-500/40 dark:bg-emerald-900/30 dark:text-emerald-200"}`,children:T.text}),z?(0,b.jsx)("div",{className:`${ac} p-10`,children:(0,b.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,b.jsx)("span",{className:"loading loading-spinner loading-md text-primary"}),(0,b.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:"Loading credentials..."})]})}):(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("section",{className:ac,children:[(0,b.jsxs)("div",{className:ad,children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"text-lg font-bold text-slate-900 dark:text-white",children:"GitHub Credentials"}),(0,b.jsx)("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:"Access private repositories and Gists."})]}),(0,b.jsxs)("button",{className:af,onClick:()=>void Z(),disabled:"github"===L,children:["github"===L?(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,b.jsx)(l.KeyRound,{className:"h-4 w-4"}),"Add Token"]})]}),(0,b.jsxs)("div",{className:"border-b border-slate-100 bg-slate-50/40 px-6 py-4 dark:border-slate-700/50 dark:bg-slate-900/35",children:[(0,b.jsx)("label",{className:"mb-2 block text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400",children:"Personal Access Token"}),(0,b.jsx)("input",{type:"password",className:ae,placeholder:"ghp_xxx",value:B,onChange:a=>C(a.target.value),disabled:"github"===L})]}),0===V.length?(0,b.jsx)("div",{className:"px-6 py-6 text-sm text-slate-500 dark:text-slate-400",children:"No GitHub credentials saved."}):(0,b.jsx)("div",{className:"divide-y divide-slate-100 dark:divide-slate-700/50",children:V.map(a=>(0,b.jsxs)("div",{className:"group flex items-center justify-between gap-4 px-6 py-5 transition-colors hover:bg-slate-50 dark:hover:bg-slate-800/50",children:[(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-4",children:[(0,b.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-slate-100 dark:bg-slate-700/60",children:(0,b.jsx)(x,{type:"github"})}),(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("div",{className:"truncate text-sm font-semibold text-slate-900 dark:text-white",children:a.username}),(0,b.jsxs)("div",{className:"mt-0.5 text-xs text-slate-500 dark:text-slate-400",children:["Updated ",new Date(a.updatedAt).toLocaleString()]})]})]}),(0,b.jsx)("button",{className:`${ah} opacity-0 group-hover:opacity-100 disabled:opacity-40`,onClick:()=>void aa(a),disabled:P===a.id,title:"Delete",children:P===a.id?(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,b.jsx)(m.Trash2,{className:"h-4 w-4"})})]},a.id))})]}),(0,b.jsxs)("section",{className:ac,children:[(0,b.jsxs)("div",{className:ad,children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"text-lg font-bold text-slate-900 dark:text-white",children:"GitLab Credentials"}),(0,b.jsx)("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:"Connect to self-hosted or cloud GitLab instances."})]}),(0,b.jsxs)("button",{className:ag,onClick:()=>void $(),disabled:"gitlab"===L,children:["gitlab"===L?(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,b.jsx)(l.KeyRound,{className:"h-4 w-4"}),"Add Instance"]})]}),(0,b.jsxs)("div",{className:"space-y-4 border-b border-slate-100 bg-slate-50/40 px-6 py-4 dark:border-slate-700/50 dark:bg-slate-900/35",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"mb-2 block text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400",children:"Server URL"}),(0,b.jsx)("input",{type:"url",className:ae,placeholder:q,value:F,onChange:a=>G(a.target.value),disabled:"gitlab"===L})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"mb-2 block text-xs font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400",children:"Personal Access Token"}),(0,b.jsx)("input",{type:"password",className:ae,placeholder:"glpat-xxx",value:D,onChange:a=>E(a.target.value),disabled:"gitlab"===L})]})]}),0===W.length?(0,b.jsx)("div",{className:"px-6 py-6 text-sm text-slate-500 dark:text-slate-400",children:"No GitLab credentials saved."}):(0,b.jsx)("div",{className:"divide-y divide-slate-100 dark:divide-slate-700/50",children:W.map(a=>(0,b.jsxs)("div",{className:"group flex items-center justify-between gap-4 px-6 py-5 transition-colors hover:bg-slate-50 dark:hover:bg-slate-800/50",children:[(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-4",children:[(0,b.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-orange-50 dark:border dark:border-orange-500/20 dark:bg-orange-500/10",children:(0,b.jsx)(x,{type:"gitlab"})}),(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("div",{className:"truncate text-sm font-semibold text-slate-900 dark:text-white",children:a.username}),(0,b.jsx)("div",{className:"truncate text-xs text-slate-500 dark:text-slate-400",children:a.serverUrl}),(0,b.jsxs)("div",{className:"mt-0.5 text-xs text-slate-500 dark:text-slate-400",children:["Updated ",new Date(a.updatedAt).toLocaleString()]})]})]}),(0,b.jsx)("button",{className:`${ah} opacity-0 group-hover:opacity-100 disabled:opacity-40`,onClick:()=>void aa(a),disabled:P===a.id,title:"Delete",children:P===a.id?(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,b.jsx)(m.Trash2,{className:"h-4 w-4"})})]},a.id))})]}),v.map(a=>{let c=X.get(a),d=N===a,e=R===a;return(0,b.jsxs)("section",{className:ac,children:[(0,b.jsxs)("div",{className:ad,children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"rounded-lg bg-emerald-100 p-1.5 text-emerald-600 dark:border dark:border-emerald-500/20 dark:bg-emerald-500/10 dark:text-emerald-400",children:(0,b.jsx)(l.KeyRound,{className:"h-5 w-5"})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-lg font-bold text-slate-900 dark:text-white",children:[s[a]," Configuration"]}),(0,b.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:"Configure access for LLM capabilities."})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[c&&(0,b.jsxs)("button",{className:ag,onClick:()=>void ab(a),disabled:d||e,children:[e?(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,b.jsx)(m.Trash2,{className:"h-4 w-4"}),"Remove"]}),(0,b.jsxs)("button",{className:af,onClick:()=>void _(a),disabled:d||e,children:[d?(0,b.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,b.jsx)(l.KeyRound,{className:"h-4 w-4"}),c?"Save Changes":"Save"]})]})]}),(0,b.jsxs)("div",{className:"space-y-6 p-6",children:[(0,b.jsxs)("div",{className:"max-w-2xl space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"mb-2 block text-sm font-medium text-slate-700 dark:text-slate-300",children:"API Key"}),(0,b.jsx)("input",{type:"password",className:ae,placeholder:t[a],value:H[a],onChange:b=>I(c=>({...c,[a]:b.target.value})),disabled:d||e}),(0,b.jsx)("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"Your API key is stored locally and never shared."})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"mb-2 block text-sm font-medium text-slate-700 dark:text-slate-300",children:["API Proxy ",(0,b.jsx)("span",{className:"font-normal text-slate-400 dark:text-slate-500",children:"(Optional)"})]}),(0,b.jsx)("input",{type:"url",className:ae,placeholder:u[a],value:J[a],onChange:b=>K(c=>({...c,[a]:b.target.value})),disabled:d||e}),(0,b.jsx)("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"Override this when using a proxy or a compatible endpoint."})]})]}),(0,b.jsx)("div",{className:"rounded-lg border border-slate-200 bg-slate-50 p-3 text-xs text-slate-600 dark:border-slate-700 dark:bg-slate-900/40 dark:text-slate-300",children:c?(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("div",{children:"API key configured."}),(0,b.jsxs)("div",{children:["Updated ",new Date(c.updatedAt).toLocaleString()]}),(0,b.jsxs)("div",{children:["Proxy ",c.apiProxy?c.apiProxy:"not set"]})]}):(0,b.jsx)("div",{children:"No API credential saved."})})]})]},a)}),(0,b.jsx)("div",{className:"pb-2 pt-4 text-center text-xs text-slate-400 dark:text-slate-500",children:"Credentials are encrypted at rest using your system keychain."})]})]})})}a.s(["default",()=>y],65280)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=Downloads_projects_viba_src_app_credentials_page_tsx_feca31b0._.js.map
|