viba-cli 0.38.0 → 0.39.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 -1
- package/.next/build-manifest.json +2 -2
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/custom-scripts/route.js.nft.json +1 -1
- package/.next/server/app/api/git/action/route.js +1 -1
- package/.next/server/app/api/git/action/route.js.nft.json +1 -1
- package/.next/server/app/api/git/branches/route.js.nft.json +1 -1
- package/.next/server/app/api/git/diff/route.js.nft.json +1 -1
- package/.next/server/app/api/git/log/route.js.nft.json +1 -1
- package/.next/server/app/api/git/status/route.js.nft.json +1 -1
- package/.next/server/app/api/repos/clone/route.js +1 -1
- package/.next/server/app/api/repos/clone/route.js.nft.json +1 -1
- package/.next/server/app/api/repos/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/credentials/page/server-reference-manifest.json +7 -7
- package/.next/server/app/credentials/page.js.nft.json +1 -1
- package/.next/server/app/credentials/page_client-reference-manifest.js +1 -1
- package/.next/server/app/credentials.html +2 -2
- package/.next/server/app/credentials.rsc +5 -5
- package/.next/server/app/credentials.segments/_full.segment.rsc +5 -5
- package/.next/server/app/credentials.segments/_head.segment.rsc +1 -1
- package/.next/server/app/credentials.segments/_index.segment.rsc +3 -3
- package/.next/server/app/credentials.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/credentials.segments/credentials/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/credentials.segments/credentials.segment.rsc +1 -1
- package/.next/server/app/git/changes/page.js.nft.json +1 -1
- package/.next/server/app/git/changes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/git/changes.html +2 -2
- package/.next/server/app/git/changes.rsc +8 -8
- package/.next/server/app/git/changes.segments/_full.segment.rsc +8 -8
- package/.next/server/app/git/changes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/git/changes.segments/_index.segment.rsc +3 -3
- package/.next/server/app/git/changes.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/git/changes.segments/git/changes/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/git/changes.segments/git/changes.segment.rsc +1 -1
- package/.next/server/app/git/changes.segments/git.segment.rsc +3 -3
- package/.next/server/app/git/custom-scripts/page.js.nft.json +1 -1
- package/.next/server/app/git/custom-scripts/page_client-reference-manifest.js +1 -1
- package/.next/server/app/git/custom-scripts.html +2 -2
- package/.next/server/app/git/custom-scripts.rsc +7 -7
- package/.next/server/app/git/custom-scripts.segments/_full.segment.rsc +7 -7
- package/.next/server/app/git/custom-scripts.segments/_head.segment.rsc +1 -1
- package/.next/server/app/git/custom-scripts.segments/_index.segment.rsc +3 -3
- package/.next/server/app/git/custom-scripts.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/git/custom-scripts.segments/git/custom-scripts/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/git/custom-scripts.segments/git/custom-scripts.segment.rsc +1 -1
- package/.next/server/app/git/custom-scripts.segments/git.segment.rsc +3 -3
- package/.next/server/app/git/history/page.js.nft.json +1 -1
- package/.next/server/app/git/history/page_client-reference-manifest.js +1 -1
- package/.next/server/app/git/history.html +2 -2
- package/.next/server/app/git/history.rsc +8 -8
- package/.next/server/app/git/history.segments/_full.segment.rsc +8 -8
- package/.next/server/app/git/history.segments/_head.segment.rsc +1 -1
- package/.next/server/app/git/history.segments/_index.segment.rsc +3 -3
- package/.next/server/app/git/history.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/git/history.segments/git/history/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/git/history.segments/git/history.segment.rsc +1 -1
- package/.next/server/app/git/history.segments/git.segment.rsc +3 -3
- package/.next/server/app/git/page.js.nft.json +1 -1
- package/.next/server/app/git/page_client-reference-manifest.js +1 -1
- package/.next/server/app/git/stashes/page.js.nft.json +1 -1
- package/.next/server/app/git/stashes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/git/stashes.html +2 -2
- package/.next/server/app/git/stashes.rsc +7 -7
- package/.next/server/app/git/stashes.segments/_full.segment.rsc +7 -7
- package/.next/server/app/git/stashes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/git/stashes.segments/_index.segment.rsc +3 -3
- package/.next/server/app/git/stashes.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/git/stashes.segments/git/stashes/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/git/stashes.segments/git/stashes.segment.rsc +1 -1
- package/.next/server/app/git/stashes.segments/git.segment.rsc +3 -3
- package/.next/server/app/git.html +2 -2
- package/.next/server/app/git.rsc +8 -8
- package/.next/server/app/git.segments/_full.segment.rsc +8 -8
- package/.next/server/app/git.segments/_head.segment.rsc +1 -1
- package/.next/server/app/git.segments/_index.segment.rsc +3 -3
- package/.next/server/app/git.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/git.segments/git/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/git.segments/git.segment.rsc +3 -3
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +3 -3
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/new/page/server-reference-manifest.json +29 -29
- package/.next/server/app/new/page.js.nft.json +1 -1
- package/.next/server/app/new/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +29 -29
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/session/[sessionId]/page/server-reference-manifest.json +19 -19
- package/.next/server/app/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/server/app/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__01a6baa7._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__01a6baa7._.js.map +1 -1
- package/.next/server/chunks/{[root-of-the-server]__82d53572._.js → [root-of-the-server]__187f37c1._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__5349b858._.js → [root-of-the-server]__8de57231._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__b17e6c62._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__b17e6c62._.js.map +1 -1
- package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0002606b.js +1 -1
- package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0002606b.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__05b3451a._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__05b3451a._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__05e6fb4c._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__2798aa4d._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__2798aa4d._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__46af1502._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__46af1502._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__79a7a15d._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__79a7a15d._.js.map +1 -1
- package/.next/server/chunks/ssr/{_787bdec7._.js → _439918bb._.js} +2 -2
- package/.next/server/chunks/ssr/{_787bdec7._.js.map → _439918bb._.js.map} +1 -1
- package/.next/server/chunks/ssr/_476e86d1._.js +1 -1
- package/.next/server/chunks/ssr/{_e17414c3._.js → _4a66db4a._.js} +2 -2
- package/.next/server/chunks/ssr/{_e17414c3._.js.map → _4a66db4a._.js.map} +1 -1
- package/.next/server/chunks/ssr/_4d07d45e._.js +1 -1
- package/.next/server/chunks/ssr/_4d07d45e._.js.map +1 -1
- package/.next/server/chunks/ssr/{_2a7fa4b0._.js → _5147763c._.js} +2 -2
- package/.next/server/chunks/ssr/{_2a7fa4b0._.js.map → _5147763c._.js.map} +1 -1
- package/.next/server/chunks/ssr/_57f63a65._.js +1 -1
- package/.next/server/chunks/ssr/_57f63a65._.js.map +1 -1
- package/.next/server/chunks/ssr/_707e5fab._.js +1 -1
- package/.next/server/chunks/ssr/{_be721a9c._.js → _8d41d1fd._.js} +2 -2
- package/.next/server/chunks/ssr/{_be721a9c._.js.map → _8d41d1fd._.js.map} +1 -1
- package/.next/server/chunks/ssr/_9493de08._.js +1 -1
- package/.next/server/chunks/ssr/{_523ff032._.js → _9a7bd3c8._.js} +2 -2
- package/.next/server/chunks/ssr/{_523ff032._.js.map → _9a7bd3c8._.js.map} +1 -1
- package/.next/server/chunks/ssr/src_app_credentials_page_tsx_63d8d34a._.js +1 -1
- package/.next/server/chunks/ssr/src_app_credentials_page_tsx_63d8d34a._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_git_changes_page_tsx_f6dc28dc._.js +2 -2
- package/.next/server/chunks/ssr/src_app_git_changes_page_tsx_f6dc28dc._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_providers_tsx_2ae5be81._.js +1 -1
- package/.next/server/chunks/ssr/src_app_providers_tsx_2ae5be81._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js +1 -1
- package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js.map +1 -1
- package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js +1 -1
- package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js.map +1 -1
- package/.next/server/chunks/ssr/src_components_git_029e6e6f._.js +3 -0
- package/.next/server/chunks/ssr/src_components_git_029e6e6f._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_git_history-view_tsx_fd62126a._.js +4 -4
- package/.next/server/chunks/ssr/src_components_git_history-view_tsx_fd62126a._.js.map +1 -1
- package/.next/server/chunks/ssr/src_db5b513b._.js +3 -0
- package/.next/server/chunks/ssr/src_db5b513b._.js.map +1 -0
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +2 -2
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +48 -48
- package/.next/static/chunks/{4d93976ea0e8b685.js → 0ce2e7006253186a.js} +3 -3
- package/.next/static/chunks/{9f82d45ee88d5dc1.js → 0f9834bd2f6f4c6e.js} +2 -2
- package/.next/static/chunks/1958a10518af04a4.js +1 -0
- package/.next/static/chunks/3205a3bbc11c3146.css +1 -0
- package/.next/static/chunks/{ff0443d5f56a7060.js → 369aa92811a706db.js} +3 -3
- package/.next/static/chunks/4aab1f3ea2ed1aef.js +1 -0
- package/.next/static/chunks/5e0dada5236f9065.js +8 -0
- package/.next/static/chunks/{58e245f27f38e5ff.js → 73c13373731456db.js} +1 -1
- package/.next/static/chunks/977137e155012c13.js +1 -0
- package/.next/static/chunks/b18cc1247b979318.js +1 -0
- package/.next/static/chunks/b926978a88c43bac.js +3 -0
- package/.next/static/chunks/{bcc203fd591a3e1b.js → d09578ecf3b80b9d.js} +1 -1
- package/.next/static/chunks/d85a06040ea88b62.js +1 -0
- package/.next/static/chunks/{a29874cab09f6b0f.js → f7914ab5db08b8dd.js} +2 -2
- package/.next/static/chunks/{46c9f58659e11b7d.js → fa9e48c3aa7e4365.js} +1 -1
- package/package.json +1 -1
- package/.next/server/chunks/ssr/src_hooks_use-workspace-title_ts_9edd343b._.js +0 -3
- package/.next/server/chunks/ssr/src_hooks_use-workspace-title_ts_9edd343b._.js.map +0 -1
- package/.next/static/chunks/0eca2eff234acf1b.js +0 -1
- package/.next/static/chunks/47ad182e478611c4.css +0 -1
- package/.next/static/chunks/4b818f2593bc4300.js +0 -1
- package/.next/static/chunks/78859d33c5671d29.js +0 -8
- package/.next/static/chunks/94fb2462104985a8.js +0 -3
- package/.next/static/chunks/e152c322e888ccea.js +0 -1
- package/.next/static/chunks/fff7986d66d302cf.js +0 -1
- /package/.next/server/chunks/{[root-of-the-server]__82d53572._.js.map → [root-of-the-server]__187f37c1._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__5349b858._.js.map → [root-of-the-server]__8de57231._.js.map} +0 -0
- /package/.next/static/{mx8z_YoNSm8FluLvondrw → gMV0bFe8zKqVaStUpkI04}/_buildManifest.js +0 -0
- /package/.next/static/{mx8z_YoNSm8FluLvondrw → gMV0bFe8zKqVaStUpkI04}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{mx8z_YoNSm8FluLvondrw → gMV0bFe8zKqVaStUpkI04}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": {
|
|
3
|
-
"
|
|
3
|
+
"402e7ab2aa384e8a6f58786413262e489ef0863a3e": {
|
|
4
4
|
"workers": {
|
|
5
5
|
"app/session/[sessionId]/page": {
|
|
6
6
|
"moduleId": 39298,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"exportedName": "deleteSessionInBackground",
|
|
16
16
|
"filename": "src/app/actions/session.ts"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"40de11018f5f5c3c5272428aa646a54975ebbc947e": {
|
|
19
19
|
"workers": {
|
|
20
20
|
"app/session/[sessionId]/page": {
|
|
21
21
|
"moduleId": 39298,
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"exportedName": "getSessionDivergence",
|
|
31
31
|
"filename": "src/app/actions/session.ts"
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"4057ef75947965620097eff7db30c33ff1754610f4": {
|
|
34
34
|
"workers": {
|
|
35
35
|
"app/session/[sessionId]/page": {
|
|
36
36
|
"moduleId": 39298,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"exportedName": "listSessionBaseBranches",
|
|
46
46
|
"filename": "src/app/actions/session.ts"
|
|
47
47
|
},
|
|
48
|
-
"
|
|
48
|
+
"4005dc6cf9024862184b660f63ad9445624f434c8e": {
|
|
49
49
|
"workers": {
|
|
50
50
|
"app/session/[sessionId]/page": {
|
|
51
51
|
"moduleId": 39298,
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"exportedName": "mergeSessionToBase",
|
|
61
61
|
"filename": "src/app/actions/session.ts"
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"400287d8f6da7cf864e5f3defd0076f0fc0f74ff9c": {
|
|
64
64
|
"workers": {
|
|
65
65
|
"app/session/[sessionId]/page": {
|
|
66
66
|
"moduleId": 39298,
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"exportedName": "rebaseSessionOntoBase",
|
|
76
76
|
"filename": "src/app/actions/session.ts"
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"6001b7f4421bad71c2569771908124d0d306a7ecaa": {
|
|
79
79
|
"workers": {
|
|
80
80
|
"app/session/[sessionId]/page": {
|
|
81
81
|
"moduleId": 39298,
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"exportedName": "updateSessionBaseBranch",
|
|
91
91
|
"filename": "src/app/actions/session.ts"
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"602494360983346753f161145a6f1b6e5dec39d485": {
|
|
94
94
|
"workers": {
|
|
95
95
|
"app/session/[sessionId]/page": {
|
|
96
96
|
"moduleId": 39298,
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"exportedName": "writeSessionPromptFile",
|
|
106
106
|
"filename": "src/app/actions/session.ts"
|
|
107
107
|
},
|
|
108
|
-
"
|
|
108
|
+
"7f6ecac35ad515676941e5c9c4b7886b04d308f949": {
|
|
109
109
|
"workers": {
|
|
110
110
|
"app/session/[sessionId]/page": {
|
|
111
111
|
"moduleId": 39298,
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"exportedName": "setTmuxSessionMouseMode",
|
|
121
121
|
"filename": "src/app/actions/git.ts"
|
|
122
122
|
},
|
|
123
|
-
"
|
|
123
|
+
"7f78f6e88559c316a090f35c3703eb0a32173199b9": {
|
|
124
124
|
"workers": {
|
|
125
125
|
"app/session/[sessionId]/page": {
|
|
126
126
|
"moduleId": 39298,
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"exportedName": "setTmuxSessionStatusVisibility",
|
|
136
136
|
"filename": "src/app/actions/git.ts"
|
|
137
137
|
},
|
|
138
|
-
"
|
|
138
|
+
"00f8d9271ab0088f183a1494ee1e57a9c9bf395836": {
|
|
139
139
|
"workers": {
|
|
140
140
|
"app/session/[sessionId]/page": {
|
|
141
141
|
"moduleId": 39298,
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"exportedName": "getConfig",
|
|
151
151
|
"filename": "src/app/actions/config.ts"
|
|
152
152
|
},
|
|
153
|
-
"
|
|
153
|
+
"40839453baab94a23bf39433a552dbe7f519a44449": {
|
|
154
154
|
"workers": {
|
|
155
155
|
"app/session/[sessionId]/page": {
|
|
156
156
|
"moduleId": 39298,
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"exportedName": "updateConfig",
|
|
166
166
|
"filename": "src/app/actions/config.ts"
|
|
167
167
|
},
|
|
168
|
-
"
|
|
168
|
+
"003f59d9b072ba439a66065346d259ab83d25d897d": {
|
|
169
169
|
"workers": {
|
|
170
170
|
"app/session/[sessionId]/page": {
|
|
171
171
|
"moduleId": 39298,
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"exportedName": "getHomeDirectory",
|
|
181
181
|
"filename": "src/app/actions/git.ts"
|
|
182
182
|
},
|
|
183
|
-
"
|
|
183
|
+
"40cd192901c59313dcda53d8937596378060397f11": {
|
|
184
184
|
"workers": {
|
|
185
185
|
"app/session/[sessionId]/page": {
|
|
186
186
|
"moduleId": 39298,
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"exportedName": "listPathEntries",
|
|
196
196
|
"filename": "src/app/actions/git.ts"
|
|
197
197
|
},
|
|
198
|
-
"
|
|
198
|
+
"7f8d431455c1da2fbe5358c50ae9b8c5259dd93aca": {
|
|
199
199
|
"workers": {
|
|
200
200
|
"app/session/[sessionId]/page": {
|
|
201
201
|
"moduleId": 39298,
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"exportedName": "saveAttachments",
|
|
211
211
|
"filename": "src/app/actions/git.ts"
|
|
212
212
|
},
|
|
213
|
-
"
|
|
213
|
+
"4075325e1b20a20b2e90e690dfc80ed8a3b47779eb": {
|
|
214
214
|
"workers": {
|
|
215
215
|
"app/session/[sessionId]/page": {
|
|
216
216
|
"moduleId": 39298,
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"exportedName": "consumeSessionLaunchContext",
|
|
226
226
|
"filename": "src/app/actions/session.ts"
|
|
227
227
|
},
|
|
228
|
-
"
|
|
228
|
+
"402ddbdcb118fd2c74428b6c00a284ec4d85d6e7aa": {
|
|
229
229
|
"workers": {
|
|
230
230
|
"app/session/[sessionId]/page": {
|
|
231
231
|
"moduleId": 39298,
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"exportedName": "getSessionMetadata",
|
|
241
241
|
"filename": "src/app/actions/session.ts"
|
|
242
242
|
},
|
|
243
|
-
"
|
|
243
|
+
"40882fcf6bf19952c30605acbcf9201f6318d1ec2d": {
|
|
244
244
|
"workers": {
|
|
245
245
|
"app/session/[sessionId]/page": {
|
|
246
246
|
"moduleId": 39298,
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"exportedName": "markSessionInitialized",
|
|
256
256
|
"filename": "src/app/actions/session.ts"
|
|
257
257
|
},
|
|
258
|
-
"
|
|
258
|
+
"7f0cc5c7bf0207565abcc88190296fb458957c18c1": {
|
|
259
259
|
"workers": {
|
|
260
260
|
"app/session/[sessionId]/page": {
|
|
261
261
|
"moduleId": 39298,
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
"exportedName": "getSessionTerminalSources",
|
|
271
271
|
"filename": "src/app/actions/git.ts"
|
|
272
272
|
},
|
|
273
|
-
"
|
|
273
|
+
"7f4e2d8cbfea83c90a943b7d1ad26051afd667020b": {
|
|
274
274
|
"workers": {
|
|
275
275
|
"app/session/[sessionId]/page": {
|
|
276
276
|
"moduleId": 39298,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../.git/FETCH_HEAD","../../../../../.git/HEAD","../../../../../.git/config","../../../../../.git/config.worktree","../../../../../.git/description","../../../../../.git/hooks/applypatch-msg.sample","../../../../../.git/hooks/commit-msg.sample","../../../../../.git/hooks/fsmonitor-watchman.sample","../../../../../.git/hooks/post-update.sample","../../../../../.git/hooks/pre-applypatch.sample","../../../../../.git/hooks/pre-commit.sample","../../../../../.git/hooks/pre-merge-commit.sample","../../../../../.git/hooks/pre-push.sample","../../../../../.git/hooks/pre-rebase.sample","../../../../../.git/hooks/pre-receive.sample","../../../../../.git/hooks/prepare-commit-msg.sample","../../../../../.git/hooks/push-to-checkout.sample","../../../../../.git/hooks/sendemail-validate.sample","../../../../../.git/hooks/update.sample","../../../../../.git/index","../../../../../.git/info/exclude","../../../../../.git/logs/HEAD","../../../../../.git/logs/refs/heads/main","../../../../../.git/logs/refs/remotes/origin/feat/git","../../../../../.git/logs/refs/remotes/origin/main","../../../../../.git/objects/pack/pack-
|
|
1
|
+
{"version":1,"files":["../../../../../.git/FETCH_HEAD","../../../../../.git/HEAD","../../../../../.git/config","../../../../../.git/config.worktree","../../../../../.git/description","../../../../../.git/hooks/applypatch-msg.sample","../../../../../.git/hooks/commit-msg.sample","../../../../../.git/hooks/fsmonitor-watchman.sample","../../../../../.git/hooks/post-update.sample","../../../../../.git/hooks/pre-applypatch.sample","../../../../../.git/hooks/pre-commit.sample","../../../../../.git/hooks/pre-merge-commit.sample","../../../../../.git/hooks/pre-push.sample","../../../../../.git/hooks/pre-rebase.sample","../../../../../.git/hooks/pre-receive.sample","../../../../../.git/hooks/prepare-commit-msg.sample","../../../../../.git/hooks/push-to-checkout.sample","../../../../../.git/hooks/sendemail-validate.sample","../../../../../.git/hooks/update.sample","../../../../../.git/index","../../../../../.git/info/exclude","../../../../../.git/logs/HEAD","../../../../../.git/logs/refs/heads/main","../../../../../.git/logs/refs/remotes/origin/feat/git","../../../../../.git/logs/refs/remotes/origin/main","../../../../../.git/logs/refs/remotes/origin/viba/20260301-1713-f484693b","../../../../../.git/logs/refs/remotes/origin/viba/20260301-1758-48e5b6c9","../../../../../.git/logs/refs/remotes/origin/viba/20260301-1808-ff9bf297","../../../../../.git/logs/refs/remotes/origin/viba/20260301-1816-sidebar-back-button","../../../../../.git/objects/pack/pack-2375a878fe739fadeddf4198b30c3a755a152189.idx","../../../../../.git/objects/pack/pack-2375a878fe739fadeddf4198b30c3a755a152189.pack","../../../../../.git/objects/pack/pack-2375a878fe739fadeddf4198b30c3a755a152189.rev","../../../../../.git/refs/heads/main","../../../../../.git/refs/remotes/origin/feat/git","../../../../../.git/refs/remotes/origin/main","../../../../../.git/refs/remotes/origin/viba/20260301-1713-f484693b","../../../../../.git/refs/remotes/origin/viba/20260301-1758-48e5b6c9","../../../../../.git/refs/remotes/origin/viba/20260301-1808-ff9bf297","../../../../../.git/refs/remotes/origin/viba/20260301-1816-sidebar-back-button","../../../../../.git/refs/tags/v0.1.2","../../../../../.git/refs/tags/v0.1.3","../../../../../.git/refs/tags/v0.10.0","../../../../../.git/refs/tags/v0.11.0","../../../../../.git/refs/tags/v0.12.0","../../../../../.git/refs/tags/v0.13.0","../../../../../.git/refs/tags/v0.14.0","../../../../../.git/refs/tags/v0.15.0","../../../../../.git/refs/tags/v0.16.0","../../../../../.git/refs/tags/v0.17.0","../../../../../.git/refs/tags/v0.18.0","../../../../../.git/refs/tags/v0.19.0","../../../../../.git/refs/tags/v0.2.0","../../../../../.git/refs/tags/v0.20.0","../../../../../.git/refs/tags/v0.21.0","../../../../../.git/refs/tags/v0.22.0","../../../../../.git/refs/tags/v0.23.0","../../../../../.git/refs/tags/v0.24.0","../../../../../.git/refs/tags/v0.25.0","../../../../../.git/refs/tags/v0.26.0","../../../../../.git/refs/tags/v0.27.0","../../../../../.git/refs/tags/v0.28.0","../../../../../.git/refs/tags/v0.29.0","../../../../../.git/refs/tags/v0.3.0","../../../../../.git/refs/tags/v0.30.0","../../../../../.git/refs/tags/v0.31.0","../../../../../.git/refs/tags/v0.32.0","../../../../../.git/refs/tags/v0.33.0","../../../../../.git/refs/tags/v0.34.0","../../../../../.git/refs/tags/v0.35.0","../../../../../.git/refs/tags/v0.36.0","../../../../../.git/refs/tags/v0.37.0","../../../../../.git/refs/tags/v0.38.0","../../../../../.git/refs/tags/v0.39.0","../../../../../.git/refs/tags/v0.4.0","../../../../../.git/refs/tags/v0.4.1","../../../../../.git/refs/tags/v0.5.0","../../../../../.git/refs/tags/v0.6.0","../../../../../.git/refs/tags/v0.7.0","../../../../../.git/refs/tags/v0.8.0","../../../../../.git/refs/tags/v0.9.0","../../../../../node_modules/keytar/build/Release/keytar.node","../../../../../node_modules/keytar/lib/keytar.js","../../../../../node_modules/keytar/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../node_modules/keytar-eb44cd511463a26b","../../../chunks/ssr/[externals]_keytar_23140f5c._.js","../../../chunks/ssr/[root-of-the-server]__2798aa4d._.js","../../../chunks/ssr/[root-of-the-server]__7bf94cba._.js","../../../chunks/ssr/[root-of-the-server]__9a619a34._.js","../../../chunks/ssr/[root-of-the-server]__a457c799._.js","../../../chunks/ssr/[root-of-the-server]__b77b4157._.js","../../../chunks/ssr/[root-of-the-server]__d45abc45._.js","../../../chunks/ssr/[root-of-the-server]__e86a1b81._.js","../../../chunks/ssr/[root-of-the-server]__edf0aa7a._.js","../../../chunks/ssr/[turbopack]_runtime.js","../../../chunks/ssr/_439918bb._.js","../../../chunks/ssr/_4d07d45e._.js","../../../chunks/ssr/_707e5fab._.js","../../../chunks/ssr/_ff04b309._.js","../../../chunks/ssr/node_modules_50fa454f._.js","../../../chunks/ssr/node_modules_cf1f3d2c._.js","../../../chunks/ssr/node_modules_d3586d0c._.js","../../../chunks/ssr/node_modules_next_dist_0ff44e32._.js","../../../chunks/ssr/node_modules_next_dist_174ae28d._.js","../../../chunks/ssr/node_modules_next_dist_65e60196._.js","../../../chunks/ssr/node_modules_next_dist_client_components_9774470f._.js","../../../chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js","../../../chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js","../../../chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js","../../../chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js","../../../chunks/ssr/node_modules_next_dist_f9713a08._.js","../../../chunks/ssr/src_app_0c8a77b8._.js","../../../chunks/ssr/src_app_providers_tsx_2ae5be81._.js","../../../chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js","../../../chunks/ssr/src_components_git_029e6e6f._.js","../../../chunks/ssr/src_components_git_grouped-diff-viewer_tsx_41b8ab60._.js","./page/react-loadable-manifest.json","./page_client-reference-manifest.js"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/session/[sessionId]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/src/app/providers.tsx <module evaluation>":{"id":44636,"name":"*","chunks":["/_next/static/chunks/
|
|
2
|
+
globalThis.__RSC_MANIFEST["/session/[sessionId]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/src/app/providers.tsx <module evaluation>":{"id":44636,"name":"*","chunks":["/_next/static/chunks/fa9e48c3aa7e4365.js","/_next/static/chunks/d85a06040ea88b62.js"],"async":false},"[project]/src/app/providers.tsx":{"id":44636,"name":"*","chunks":["/_next/static/chunks/fa9e48c3aa7e4365.js","/_next/static/chunks/d85a06040ea88b62.js"],"async":false},"[project]/src/app/session/[sessionId]/SessionPageClient.tsx <module evaluation>":{"id":36438,"name":"*","chunks":["/_next/static/chunks/fa9e48c3aa7e4365.js","/_next/static/chunks/d85a06040ea88b62.js","/_next/static/chunks/4aab1f3ea2ed1aef.js","/_next/static/chunks/369aa92811a706db.js","/_next/static/chunks/b4077ef0304a2ff4.js","/_next/static/chunks/1958a10518af04a4.js"],"async":false},"[project]/src/app/session/[sessionId]/SessionPageClient.tsx":{"id":36438,"name":"*","chunks":["/_next/static/chunks/fa9e48c3aa7e4365.js","/_next/static/chunks/d85a06040ea88b62.js","/_next/static/chunks/4aab1f3ea2ed1aef.js","/_next/static/chunks/369aa92811a706db.js","/_next/static/chunks/b4077ef0304a2ff4.js","/_next/static/chunks/1958a10518af04a4.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__d45abc45._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__d45abc45._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__d45abc45._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__d45abc45._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__d45abc45._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__d45abc45._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__d45abc45._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a457c799._.js"],"async":false}},"44636":{"*":{"id":43518,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__b77b4157._.js","server/chunks/ssr/src_app_providers_tsx_2ae5be81._.js","server/chunks/ssr/_4d07d45e._.js","server/chunks/ssr/node_modules_cf1f3d2c._.js"],"async":false}},"36438":{"*":{"id":96614,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__b77b4157._.js","server/chunks/ssr/src_app_providers_tsx_2ae5be81._.js","server/chunks/ssr/_4d07d45e._.js","server/chunks/ssr/node_modules_cf1f3d2c._.js","server/chunks/ssr/node_modules_next_dist_0ff44e32._.js","server/chunks/ssr/_439918bb._.js","server/chunks/ssr/src_components_git_029e6e6f._.js","server/chunks/ssr/src_components_git_grouped-diff-viewer_tsx_41b8ab60._.js","server/chunks/ssr/node_modules_50fa454f._.js","server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"44636":{"*":{"id":36459,"name":"*","chunks":[],"async":false}},"36438":{"*":{"id":59431,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/icon.png":[],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":[{"path":"static/chunks/2473c16c0c2f6b5f.css","inlined":false},{"path":"static/chunks/3205a3bbc11c3146.css","inlined":false}],"[project]/src/app/session/[sessionId]/page":[{"path":"static/chunks/2473c16c0c2f6b5f.css","inlined":false},{"path":"static/chunks/3205a3bbc11c3146.css","inlined":false},{"path":"static/chunks/c1a983df0a5e5f3a.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/icon.png":["static/chunks/ff1a16fafef87110.js","static/chunks/d2be314c3ece3fbe.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/src/app/layout":["static/chunks/fa9e48c3aa7e4365.js","static/chunks/d85a06040ea88b62.js"],"[project]/src/app/session/[sessionId]/page":["static/chunks/fa9e48c3aa7e4365.js","static/chunks/d85a06040ea88b62.js","static/chunks/4aab1f3ea2ed1aef.js","static/chunks/369aa92811a706db.js","static/chunks/b4077ef0304a2ff4.js","static/chunks/1958a10518af04a4.js"]}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},74129,e=>{"use strict";var t=e.i(89171),r=e.i(69719);function n(e){if(console.error("Git API Error:",e),e instanceof r.z.ZodError)return t.NextResponse.json({error:e.issues},{status:400});let n=e instanceof Error?e.message:String(e);return n.includes("not a git repository")?t.NextResponse.json({error:"Not a git repository"},{status:400}):t.NextResponse.json({error:n},{status:500})}e.s(["handleGitError",()=>n])},13596,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),o=e.i(61916),i=e.i(74677),s=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),
|
|
1
|
+
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},74129,e=>{"use strict";var t=e.i(89171),r=e.i(69719);function n(e){if(console.error("Git API Error:",e),e instanceof r.z.ZodError)return t.NextResponse.json({error:e.issues},{status:400});let n=e instanceof Error?e.message:String(e);return n.includes("not a git repository")?t.NextResponse.json({error:"Not a git repository"},{status:400}):t.NextResponse.json({error:n},{status:500})}e.s(["handleGitError",()=>n])},13596,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),o=e.i(61916),i=e.i(74677),s=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),R=e.i(26937),g=e.i(10372),f=e.i(93695);e.i(52474);var x=e.i(220),v=e.i(89171),E=e.i(87140),m=e.i(74129),w=e.i(2157);async function C(e){let{searchParams:t}=new URL(e.url),r=t.get("path"),n=t.get("limit"),a="current"===t.get("scope")?"current":"all";if(!r)return v.NextResponse.json({error:"Repo path is required"},{status:400});if(!w.default.existsSync(r))return v.NextResponse.json({error:`Path not found: ${r}`},{status:404});try{let e=new E.GitService(r),t=n?Number.parseInt(n,10):50,o=Number.isFinite(t)&&t>0?t:50,i=await e.getLog(o,{includeAll:"current"!==a});return v.NextResponse.json(i)}catch(e){return(0,m.handleGitError)(e)}}e.s(["GET",()=>C],75699);var y=e.i(75699);let N=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/git/log/route",pathname:"/api/git/log",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/git/log/route.ts",nextConfigOutput:"",userland:y}),{workAsyncStorage:A,workUnitAsyncStorage:b,serverHooks:P}=N;function T(){return(0,n.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:b})}async function S(e,t,n){N.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/git/log/route";v=v.replace(/\/index$/,"")||"/";let E=await N.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!E)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:m,params:w,nextConfig:C,parsedUrl:y,isDraftMode:A,prerenderManifest:b,routerServerContext:P,isOnDemandRevalidate:T,revalidateOnlyGenerated:S,resolvedPathname:O,clientReferenceManifest:_,serverActionsManifest:q}=E,H=(0,s.normalizeAppPath)(v),I=!!(b.dynamicRoutes[H]||b.routes[O]),U=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,y,!1):t.end("This page could not be found"),null);if(I&&!A){let e=!!b.routes[O],t=b.dynamicRoutes[H];if(t&&!1===t.fallback&&!e){if(C.experimental.adapterPath)return await U();throw new f.NoFallbackError}}let j=null;!I||N.isDev||A||(j="/index"===(j=O)?"/":j);let k=!0===N.isDev||!I,D=I&&!k;q&&_&&(0,i.setManifestsSingleton)({page:v,clientReferenceManifest:_,serverActionsManifest:q});let M=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),G={params:w,prerenderManifest:b,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:k,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:C.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>N.onRequestError(e,t,n,a,P)},sharedContext:{buildId:m}},K=new l.NodeNextRequest(e),L=new l.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let i=async e=>N.handle(B,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${v}`)}),s=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var o,l;let u=async({previousCacheEntry:r})=>{try{if(!s&&T&&S&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(a);e.fetchMetrics=G.renderOpts.fetchMetrics;let l=G.renderOpts.pendingWaitUntil;l&&n.waitUntil&&(n.waitUntil(l),l=void 0);let u=G.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(K,L,o,G.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,n=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,P),t}},d=await N.handleResponse({req:e,nextConfig:C,cacheKey:j,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:S,responseGenerator:u,waitUntil:n.waitUntil,isMinimalMode:s});if(!I)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&I||f.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,R.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(K,L,new Response(d.value.body,{headers:f,status:d.value.status||200})),null};F?await l(F):await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${M} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof f.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,P),I)throw t;return await (0,p.sendResponse)(K,L,new Response(null,{status:500})),null}}e.s(["handler",()=>S,"patchFetch",()=>T,"routeModule",()=>N,"serverHooks",()=>P,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>b],13596)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__01a6baa7._.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/api-utils.ts","../../../node_modules/next/dist/esm/build/templates/app-route.js","../../../src/app/api/git/log/route.ts"],"sourcesContent":["import { NextResponse } from 'next/server';\nimport { z } from 'zod';\n\n/**\n * Handles errors in Git API routes.\n *\n * @param error The error object caught in the try-catch block.\n * @returns A NextResponse with the appropriate error message and status code.\n */\nexport function handleGitError(error: unknown) {\n console.error('Git API Error:', error);\n\n if (error instanceof z.ZodError) {\n return NextResponse.json({ error: error.issues }, { status: 400 });\n }\n\n const message = error instanceof Error ? error.message : String(error);\n\n if (message.includes('not a git repository')) {\n return NextResponse.json({ error: 'Not a git repository' }, { status: 400 });\n }\n\n return NextResponse.json({ error: message }, { status: 500 });\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/git/log/route\",\n pathname: \"/api/git/log\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/src/app/api/git/log/route.ts\",\n nextConfigOutput,\n userland\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/git/log/route\";\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, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\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 if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\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 context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, 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 isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\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 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: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","\nimport { NextResponse } from 'next/server';\nimport { GitService } from '@/lib/git';\nimport { handleGitError } from '@/lib/api-utils';\nimport fs from 'node:fs';\n\nexport async function GET(request: Request) {\n const { searchParams } = new URL(request.url);\n const path = searchParams.get('path');\n const limit = searchParams.get('limit');\n\n if (!path) {\n return NextResponse.json({ error: 'Repo path is required' }, { status: 400 });\n }\n\n // Check if path exists\n if (!fs.existsSync(path)) {\n return NextResponse.json({ error: `Path not found: ${path}` }, { status: 404 });\n }\n\n try {\n const git = new GitService(path);\n const log = await git.getLog(limit ? parseInt(limit) : 50);\n return NextResponse.json(log);\n } catch (error) {\n return handleGitError(error);\n }\n}\n"],"names":[],"mappings":"2XAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAQO,SAAS,EAAe,CAAc,EAG3C,GAFA,QAAQ,KAAK,CAAC,iBAAkB,GAE5B,aAAiB,EAAA,CAAC,CAAC,QAAQ,CAC7B,CAD+B,MACxB,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,EAAM,MAAM,AAAC,EAAG,CAAE,OAAQ,GAAI,GAGlE,IAAM,EAAU,aAAiB,MAAQ,EAAM,OAAO,CAAG,OAAO,UAEhE,AAAI,EAAQ,QAAQ,CAAC,wBACZ,CADqC,CACrC,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,sBAAuB,EAAG,CAAE,OAAQ,GAAI,GAGrE,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,CAAQ,EAAG,CAAE,OAAQ,GAAI,EAC7D,uDCvBA,IAAA,EAAA,EAA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AiB,CAAA,EAAA,EAAA,qBAAA,AAAqB,EAAC,EAAW,YAAY,GAE9E,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,EACA,MAAM,EAAe,EADT,CAGZ,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,GAEf,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[1]}
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/api-utils.ts","../../../node_modules/next/dist/esm/build/templates/app-route.js","../../../src/app/api/git/log/route.ts"],"sourcesContent":["import { NextResponse } from 'next/server';\nimport { z } from 'zod';\n\n/**\n * Handles errors in Git API routes.\n *\n * @param error The error object caught in the try-catch block.\n * @returns A NextResponse with the appropriate error message and status code.\n */\nexport function handleGitError(error: unknown) {\n console.error('Git API Error:', error);\n\n if (error instanceof z.ZodError) {\n return NextResponse.json({ error: error.issues }, { status: 400 });\n }\n\n const message = error instanceof Error ? error.message : String(error);\n\n if (message.includes('not a git repository')) {\n return NextResponse.json({ error: 'Not a git repository' }, { status: 400 });\n }\n\n return NextResponse.json({ error: message }, { status: 500 });\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/git/log/route\",\n pathname: \"/api/git/log\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/src/app/api/git/log/route.ts\",\n nextConfigOutput,\n userland\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/git/log/route\";\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, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\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 if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\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 context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, 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 isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\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 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: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","\nimport { NextResponse } from 'next/server';\nimport { GitService } from '@/lib/git';\nimport { handleGitError } from '@/lib/api-utils';\nimport fs from 'node:fs';\n\nexport async function GET(request: Request) {\n const { searchParams } = new URL(request.url);\n const path = searchParams.get('path');\n const limit = searchParams.get('limit');\n const scope = searchParams.get('scope') === 'current' ? 'current' : 'all';\n\n if (!path) {\n return NextResponse.json({ error: 'Repo path is required' }, { status: 400 });\n }\n\n // Check if path exists\n if (!fs.existsSync(path)) {\n return NextResponse.json({ error: `Path not found: ${path}` }, { status: 404 });\n }\n\n try {\n const git = new GitService(path);\n const parsedLimit = limit ? Number.parseInt(limit, 10) : 50;\n const normalizedLimit = Number.isFinite(parsedLimit) && parsedLimit > 0 ? parsedLimit : 50;\n const log = await git.getLog(normalizedLimit, { includeAll: scope !== 'current' });\n return NextResponse.json(log);\n } catch (error) {\n return handleGitError(error);\n }\n}\n"],"names":[],"mappings":"2XAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAQO,SAAS,EAAe,CAAc,EAG3C,GAFA,QAAQ,KAAK,CAAC,iBAAkB,GAE5B,aAAiB,EAAA,CAAC,CAAC,QAAQ,CAC7B,CAD+B,MACxB,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,EAAM,MAAM,AAAC,EAAG,CAAE,OAAQ,GAAI,GAGlE,IAAM,EAAU,aAAiB,MAAQ,EAAM,OAAO,CAAG,OAAO,UAEhE,AAAI,EAAQ,QAAQ,CAAC,wBACZ,CADqC,CACrC,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,sBAAuB,EAAG,CAAE,OAAQ,GAAI,GAGrE,EAAA,YAAY,CAAC,IAAI,CAAC,CAAE,MAAO,CAAQ,EAAG,CAAE,OAAQ,GAAI,EAC7D,uDCvBA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAA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EAAA,sBAAsB,GAIrC,EAAW,YAAY,EAAK,EAAD,AAAK,SAAS,CAAC,kBAAqB,EAAD,AAAS,GAAG,CAAC,kBAC3E,AAD6F,EACrF,GAAG,CAAC,gBAAiB,CAAA,EAAA,EAAA,qBAAA,AAAqB,EAAC,EAAW,YAAY,GAE9E,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,EACA,MAAM,EAAe,EADT,CAGZ,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,GAEf,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,CAClC,0CACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[1]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},24361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},74129,e=>{"use strict";var t=e.i(89171),r=e.i(69719);function s(e){if(console.error("Git API Error:",e),e instanceof r.z.ZodError)return t.NextResponse.json({error:e.issues},{status:400});let s=e instanceof Error?e.message:String(e);return s.includes("not a git repository")?t.NextResponse.json({error:"Not a git repository"},{status:400}):t.NextResponse.json({error:s},{status:500})}e.s(["handleGitError",()=>s])},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},70722,(e,t,r)=>{t.exports=e.x("tty",()=>require("tty"))},51615,(e,t,r)=>{t.exports=e.x("node:buffer",()=>require("node:buffer"))},87769,(e,t,r)=>{t.exports=e.x("node:events",()=>require("node:events"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},41528,(e,t,r)=>{function s(e,t,r,s){return Math.round(e/r)+" "+s+(t>=1.5*r?"s":"")}t.exports=function(e,t){t=t||{};var r,n,i,a,o=typeof e;if("string"===o&&e.length>0){var u=e;if(!((u=String(u)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(l){var c=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:break}}}return}if("number"===o&&isFinite(e)){return t.long?(n=Math.abs(r=e))>=864e5?s(r,n,864e5,"day"):n>=36e5?s(r,n,36e5,"hour"):n>=6e4?s(r,n,6e4,"minute"):n>=1e3?s(r,n,1e3,"second"):r+" ms":(a=Math.abs(i=e))>=864e5?Math.round(i/864e5)+"d":a>=36e5?Math.round(i/36e5)+"h":a>=6e4?Math.round(i/6e4)+"m":a>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},16525,(e,t,r)=>{t.exports=function(t){function r(e){let t,n,i,a=null;function o(...e){if(!o.enabled)return;let s=Number(new Date);o.diff=s-(t||s),o.prev=t,o.curr=s,t=s,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let n=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,s)=>{if("%%"===t)return"%";n++;let i=r.formatters[s];if("function"==typeof i){let r=e[n];t=i.call(o,r),e.splice(n,1),n--}return t}),r.formatArgs.call(o,e),(o.log||r.log).apply(o,e)}return o.namespace=e,o.useColors=r.useColors(),o.color=r.selectColor(e),o.extend=s,o.destroy=r.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(n!==r.namespaces&&(n=r.namespaces,i=r.enabled(e)),i),set:e=>{a=e}}),"function"==typeof r.init&&r.init(o),o}function s(e,t){let s=r(this.namespace+(void 0===t?":":t)+e);return s.log=this.log,s}function n(e,t){let r=0,s=0,n=-1,i=0;for(;r<e.length;)if(s<t.length&&(t[s]===e[r]||"*"===t[s]))"*"===t[s]?(n=s,i=r):r++,s++;else{if(-1===n)return!1;s=n+1,r=++i}for(;s<t.length&&"*"===t[s];)s++;return s===t.length}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){let e=[...r.names,...r.skips.map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){for(let t of(r.save(e),r.namespaces=e,r.names=[],r.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===t[0]?r.skips.push(t.slice(1)):r.names.push(t)},r.enabled=function(e){for(let t of r.skips)if(n(e,t))return!1;for(let t of r.names)if(n(e,t))return!0;return!1},r.humanize=e.r(41528),r.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(e=>{r[e]=t[e]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=function(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return r.colors[Math.abs(t)%r.colors.length]},r.enable(r.load()),r}},55225,(e,t,r)=>{"use strict";t.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(r+e),n=t.indexOf("--");return -1!==s&&(-1===n||s<n)}},81042,(e,t,r)=>{"use strict";let s;e.r(46786);let n=e.r(70722),i=e.r(55225),{env:a}=process;function o(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function u(e,t){if(0===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!t&&void 0===s)return 0;let r=s||0;if("dumb"===a.TERM)return r;if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in a)||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION);if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){let e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?s=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=1),"FORCE_COLOR"in a&&(s="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),t.exports={supportsColor:function(e){return o(u(e,e&&e.isTTY))},stdout:o(u(!0,n.isatty(1))),stderr:o(u(!0,n.isatty(2)))}},23440,(e,t,r)=>{let s=e.r(70722),n=e.r(24361);r.init=function(e){e.inspectOpts={};let t=Object.keys(r.inspectOpts);for(let s=0;s<t.length;s++)e.inspectOpts[t[s]]=r.inspectOpts[t[s]]},r.log=function(...e){return process.stderr.write(n.formatWithOptions(r.inspectOpts,...e)+"\n")},r.formatArgs=function(e){let{namespace:s,useColors:n}=this;if(n){let r=this.color,n="\x1b[3"+(r<8?r:"8;5;"+r),i=` ${n};1m${s} \u001B[0m`;e[0]=i+e[0].split("\n").join("\n"+i),e.push(n+"m+"+t.exports.humanize(this.diff)+"\x1b[0m")}else e[0]=(r.inspectOpts.hideDate?"":new Date().toISOString()+" ")+s+" "+e[0]},r.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},r.load=function(){return process.env.DEBUG},r.useColors=function(){return"colors"in r.inspectOpts?!!r.inspectOpts.colors:s.isatty(process.stderr.fd)},r.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),r.colors=[6,2,3,4,5,1];try{let t=e.r(81042);t&&(t.stderr||t).level>=2&&(r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}r.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[r]=s,e},{}),t.exports=e.r(16525)(r);let{formatters:i}=t.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},28452,(e,t,r)=>{let s;r.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let s=0,n=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(s++,"%c"===e&&(n=s))}),e.splice(n,0,r)},r.save=function(e){try{e?r.storage.setItem("debug",e):r.storage.removeItem("debug")}catch(e){}},r.load=function(){let e;try{e=r.storage.getItem("debug")||r.storage.getItem("DEBUG")}catch(e){}return!e&&"u">typeof process&&"env"in process&&(e=process.env.DEBUG),e},r.useColors=function(){let e;return!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage=function(){try{return localStorage}catch(e){}}(),s=!1,r.destroy=()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.log=console.debug||console.log||(()=>{}),t.exports=e.r(16525)(r);let{formatters:n}=t.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},17293,(e,t,r)=>{"u"<typeof process||"renderer"===process.type||process.__nwjs?t.exports=e.r(28452):t.exports=e.r(23440)},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},72881,e=>{"use strict";let t;var r=e.i(22734),s=e.i(46786),n=e.i(14747);let i=(process.platform,t=s.default.homedir(),n.default.join(process.env.XDG_CONFIG_HOME||n.default.join(t,".config"),"trident")),a=n.default.join(i,"repos.json");function o(){if(!r.default.existsSync(a))return[];try{let e=r.default.readFileSync(a,"utf-8");return JSON.parse(e)}catch(e){return console.error("Failed to parse repos.json",e),[]}}function u(e){if(void 0===e)return;if(null===e)return null;let t=e.trim();return t.length>0?t:null}function l(e,t,s){let i=o();if(i.find(t=>t.path===e))throw Error("Repository already exists");let l=u(s),c={path:e,name:t||n.default.basename(e),...l?{displayName:l}:{}};return i.push(c),r.default.writeFileSync(a,JSON.stringify(i,null,2)),c}function c(e,t){let s=o(),n=s.findIndex(t=>t.path===e);if(-1===n)throw Error("Repository not found");let i={...t};"displayName"in i&&(i.displayName=u(i.displayName));let l={...s[n],...i};return s[n]=l,r.default.writeFileSync(a,JSON.stringify(s,null,2)),l}function d(e,t){let{deleteLocalFolder:s=!1}=t||{};if(s){let t=n.default.resolve(e),s=n.default.parse(t).root;if(t===s)throw Error("Refusing to delete a filesystem root path");r.default.rmSync(t,{recursive:!0,force:!0})}let i=o();i=i.filter(t=>t.path!==e),r.default.writeFileSync(a,JSON.stringify(i,null,2))}r.default.existsSync(i)||r.default.mkdirSync(i,{recursive:!0});let f=n.default.join(i,"settings.json");function p(){let e={defaultRootFolder:null,sidebarCollapsed:!1};if(!r.default.existsSync(f))return e;try{let t=r.default.readFileSync(f,"utf-8"),s=JSON.parse(t);return{...e,...s}}catch(t){return console.error("Failed to parse settings.json",t),e}}function g(e){let t={...p(),...e};return r.default.writeFileSync(f,JSON.stringify(t,null,2)),t}function m(){let e=p();if(e.defaultRootFolder)try{if(r.default.existsSync(e.defaultRootFolder)&&r.default.statSync(e.defaultRootFolder).isDirectory())return e.defaultRootFolder}catch{}return s.default.homedir()}e.s(["addRepository",()=>l,"getDefaultRootFolder",()=>m,"getRepositories",()=>o,"getSettings",()=>p,"removeRepository",()=>d,"updateRepository",()=>c,"updateSettings",()=>g],72881)},14487,e=>{"use strict";var t=e.i(24868),r=e.i(46786),s=e.i(14747);let n="viba-git-credentials",i=null,a=null,o=!1;function u(){return a?`Secure credential storage is unavailable: ${a}`:"Secure credential storage is unavailable in this runtime."}async function l(){return i||(i=e.A(45581).then(e=>e.default??e).catch(e=>(a=e instanceof Error?e.message:String(e),o||(o=!0,console.warn(`[credentials] ${u()}`)),null))),i}async function c(){let e=await l();if(!e)throw Error(u());return e}function d(){return`${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function f(e){return e.trim().replace(/\/$/,"")}function p(e){return`credential-${e}`}function g(e){return`credential-${e}`}function m(e){return e.keytarAccount||p(e.id)}function y(e){return"gitlab"===e.type?{id:e.id,type:"gitlab",username:e.username,serverUrl:e.serverUrl||"https://gitlab.com",createdAt:e.createdAt,updatedAt:e.updatedAt}:{id:e.id,type:"github",username:e.username,createdAt:e.createdAt,updatedAt:e.updatedAt}}async function C(){let e=s.default.join(r.default.homedir(),".viba");return await t.default.mkdir(e,{recursive:!0}),s.default.join(e,"credentials.json")}function h(e,t){return!!e&&"object"==typeof e&&e.type===t&&"string"==typeof e.username&&"string"==typeof e.createdAt&&"string"==typeof e.updatedAt&&("gitlab"!==t||"string"==typeof e.serverUrl)}function b(e){return!!e&&"object"==typeof e&&"string"==typeof e.id&&!!e.id.trim()&&("github"===e.type||"gitlab"===e.type)&&"string"==typeof e.username&&"string"==typeof e.createdAt&&"string"==typeof e.updatedAt&&(void 0===e.keytarAccount||"string"==typeof e.keytarAccount)&&("gitlab"!==e.type||"string"==typeof e.serverUrl)}async function v(e){let r=await C();await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async function x(){let e=await C();try{let r=await t.default.readFile(e,"utf-8"),s=JSON.parse(r);if(Array.isArray(s))return s.filter(b);if(!s||"object"!=typeof s)return[];let n=[];if(h(s.github,"github")){let e=s.github;n.push({id:d(),type:"github",username:e.username,createdAt:e.createdAt,updatedAt:e.updatedAt,keytarAccount:g("github")})}if(h(s.gitlab,"gitlab")){let e=s.gitlab;n.push({id:d(),type:"gitlab",username:e.username,serverUrl:e.serverUrl,createdAt:e.createdAt,updatedAt:e.updatedAt,keytarAccount:g("gitlab")})}return n.length>0&&await v(n),n}catch(e){if(e?.code==="ENOENT")return[];return console.error("Failed to parse credentials metadata:",e),[]}}async function F(){return(await x()).map(y).sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))}async function w(e){let t=(await x()).find(t=>t.id===e);return t?y(t):null}async function A(e){let t=(await x()).find(t=>t.id===e);if(!t)return null;let r=await l();return r?r.getPassword(n,m(t)):null}async function O(e){try{let t=await fetch("https://api.github.com/user",{headers:{Authorization:`Bearer ${e}`,Accept:"application/vnd.github+json","X-GitHub-Api-Version":"2022-11-28"}});if(!t.ok){if(401===t.status)return{valid:!1,error:"Invalid or expired GitHub token."};return{valid:!1,error:`GitHub API returned ${t.status}.`}}let r=await t.json(),s="string"==typeof r?.login?r.login:null;if(!s)return{valid:!1,error:"GitHub API response did not include a username."};return{valid:!0,username:s}}catch(e){return{valid:!1,error:`Failed to verify GitHub token: ${e.message}`}}}async function R(e,t){try{let r=f(e),s=await fetch(`${r}/api/v4/user`,{headers:{"PRIVATE-TOKEN":t}});if(!s.ok){if(401===s.status)return{valid:!1,error:"Invalid or expired GitLab token."};return{valid:!1,error:`GitLab API returned ${s.status}.`}}let n=await s.json(),i="string"==typeof n?.username?n.username:null;if(!i)return{valid:!1,error:"GitLab API response did not include a username."};return{valid:!0,username:i}}catch(e){return{valid:!1,error:`Failed to verify GitLab token: ${e.message}`}}}async function I(e){let t,r=e.trim();if(!r)return{success:!1,error:"GitHub token is required."};try{t=await c()}catch(e){return{success:!1,error:e.message}}let s=await O(r);if(!s.valid||!s.username)return{success:!1,error:s.error||"Failed to verify GitHub token."};let i=await x();if(i.find(e=>"github"===e.type&&e.username===s.username))return{success:!1,error:`A GitHub credential for ${s.username} already exists.`};let a=d(),o=new Date().toISOString(),u=p(a);await t.setPassword(n,u,r);let l={id:a,type:"github",username:s.username,createdAt:o,updatedAt:o,keytarAccount:u};return i.push(l),await v(i),{success:!0,credential:{id:l.id,type:"github",username:l.username,createdAt:l.createdAt,updatedAt:l.updatedAt}}}async function j(e,t){let r,s=f(e),i=t.trim();if(!s)return{success:!1,error:"GitLab server URL is required."};try{new URL(s)}catch{return{success:!1,error:"GitLab server URL must be a valid URL."}}if(!i)return{success:!1,error:"GitLab token is required."};try{r=await c()}catch(e){return{success:!1,error:e.message}}let a=await R(s,i);if(!a.valid||!a.username)return{success:!1,error:a.error||"Failed to verify GitLab token."};let o=await x();if(o.find(e=>"gitlab"===e.type&&e.username===a.username&&e.serverUrl===s))return{success:!1,error:`A GitLab credential for ${a.username} on ${s} already exists.`};let u=d(),l=new Date().toISOString(),g=p(u);await r.setPassword(n,g,i);let m={id:u,type:"gitlab",username:a.username,serverUrl:s,createdAt:l,updatedAt:l,keytarAccount:g};return o.push(m),await v(o),{success:!0,credential:{id:m.id,type:"gitlab",username:m.username,serverUrl:m.serverUrl||s,createdAt:m.createdAt,updatedAt:m.updatedAt}}}async function E(e){let t=await x(),r=t.findIndex(t=>t.id===e);if(-1===r)return{success:!1,error:"Credential not found."};let s=t[r];t.splice(r,1),await v(t);let i=await l();return i&&await i.deletePassword(n,m(s)),{success:!0}}async function S(e,t){let r,s,i=t.trim();if(!i)return{success:!1,error:"Token is required."};try{r=await c()}catch(e){return{success:!1,error:e.message}}let a=await x(),o=a.findIndex(t=>t.id===e);if(-1===o)return{success:!1,error:"Credential not found"};let u=a[o];if(!(s="github"===u.type?await O(i):await R(u.serverUrl||"https://gitlab.com",i)).valid||!s.username)return{success:!1,error:s.error||"Failed to verify token"};await r.setPassword(n,m(u),i);let l=new Date().toISOString();return a[o]={...u,username:s.username,updatedAt:l},await v(a),{success:!0,credential:y(a[o])}}async function k(e){let t=await F();if(e.includes("github.com")){let e=t.find(e=>"github"===e.type);if(e){let t=await A(e.id);if(t)return{credential:e,token:t}}}for(let r of t)if("gitlab"===r.type){let t;try{t=e.startsWith("git@")?e.split("@")[1].split(":")[0]:new URL(e).host}catch{continue}if(t===new URL(r.serverUrl).host){let e=await A(r.id);if(e)return{credential:r,token:e}}}return null}e.s(["createGitHubCredential",()=>I,"createGitLabCredential",()=>j,"deleteCredential",()=>E,"findCredentialForRemote",()=>k,"getAllCredentials",()=>F,"getCredentialById",()=>w,"getCredentialToken",()=>A,"updateCredential",()=>S])},81183,e=>{"use strict";function t(e){if(!e)return"";let t=e.split("/").pop()||"",r=t.lastIndexOf(".");return -1===r||0===r?t.toLowerCase():t.slice(r+1).toLowerCase()}let r=new Set(["png","jpg","jpeg","gif","bmp","ico","icns","tiff","tif","webp","avif","heic","heif","svg"]);function s(e){return r.has(t(e))}function n(e){switch(t(e)){case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";case"bmp":return"image/bmp";case"ico":return"image/x-icon";case"icns":return"image/icns";case"tiff":case"tif":return"image/tiff";case"webp":return"image/webp";case"avif":return"image/avif";case"heic":return"image/heic";case"heif":return"image/heif";case"svg":return"image/svg+xml";default:return"application/octet-stream"}}e.s(["getImageMimeType",()=>n,"isImageFile",()=>s],81183)},45581,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_keytar_23140f5c._.js"].map(t=>e.l(t))).then(()=>t(83034)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__187f37c1._.js.map
|