d1s 0.3.12 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +1 -1
  2. package/dist/.next/BUILD_ID +1 -1
  3. package/dist/.next/app-build-manifest.json +38 -38
  4. package/dist/.next/app-path-routes-manifest.json +9 -9
  5. package/dist/.next/build-manifest.json +2 -2
  6. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  7. package/dist/.next/server/app/_not-found.html +1 -1
  8. package/dist/.next/server/app/_not-found.rsc +1 -1
  9. package/dist/.next/server/app/api/cloudflare/route.js +1 -1
  10. package/dist/.next/server/app/api/cloudflare/route_client-reference-manifest.js +1 -1
  11. package/dist/.next/server/app/api/databases/route.js +1 -1
  12. package/dist/.next/server/app/api/databases/route_client-reference-manifest.js +1 -1
  13. package/dist/.next/server/app/api/migrations/list/route.js +2 -2
  14. package/dist/.next/server/app/api/migrations/list/route_client-reference-manifest.js +1 -1
  15. package/dist/.next/server/app/api/migrations/sync/route.js +3 -3
  16. package/dist/.next/server/app/api/migrations/sync/route_client-reference-manifest.js +1 -1
  17. package/dist/.next/server/app/api/migrations/sync-files/route.js +2 -2
  18. package/dist/.next/server/app/api/migrations/sync-files/route_client-reference-manifest.js +1 -1
  19. package/dist/.next/server/app/api/pro/route_client-reference-manifest.js +1 -1
  20. package/dist/.next/server/app/api/pull-data/confirm/route.js +1 -1
  21. package/dist/.next/server/app/api/pull-data/confirm/route_client-reference-manifest.js +1 -1
  22. package/dist/.next/server/app/api/pull-remote/confirm/route.js +2 -2
  23. package/dist/.next/server/app/api/pull-remote/confirm/route_client-reference-manifest.js +1 -1
  24. package/dist/.next/server/app/api/pull-remote/preview/route.js +2 -2
  25. package/dist/.next/server/app/api/pull-remote/preview/route_client-reference-manifest.js +1 -1
  26. package/dist/.next/server/app/api/push-remote/confirm/route.js +3 -3
  27. package/dist/.next/server/app/api/push-remote/confirm/route_client-reference-manifest.js +1 -1
  28. package/dist/.next/server/app/api/push-remote/preview/route.js +3 -3
  29. package/dist/.next/server/app/api/push-remote/preview/route_client-reference-manifest.js +1 -1
  30. package/dist/.next/server/app/api/query/route.js +3 -3
  31. package/dist/.next/server/app/api/query/route_client-reference-manifest.js +1 -1
  32. package/dist/.next/server/app/api/schema/route.js +1 -1
  33. package/dist/.next/server/app/api/schema/route_client-reference-manifest.js +1 -1
  34. package/dist/.next/server/app/api/tables/[name]/import/route.js +1 -1
  35. package/dist/.next/server/app/api/tables/[name]/import/route_client-reference-manifest.js +1 -1
  36. package/dist/.next/server/app/api/tables/[name]/route.js +2 -2
  37. package/dist/.next/server/app/api/tables/[name]/route_client-reference-manifest.js +1 -1
  38. package/dist/.next/server/app/api/tables/route.js +2 -2
  39. package/dist/.next/server/app/api/tables/route_client-reference-manifest.js +1 -1
  40. package/dist/.next/server/app/api/time-travel/preview/route.js +1 -1
  41. package/dist/.next/server/app/api/time-travel/preview/route_client-reference-manifest.js +1 -1
  42. package/dist/.next/server/app/api/time-travel/restore/route.js +1 -1
  43. package/dist/.next/server/app/api/time-travel/restore/route_client-reference-manifest.js +1 -1
  44. package/dist/.next/server/app/api/update/route.js +1 -1
  45. package/dist/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  46. package/dist/.next/server/app/index.html +2 -2
  47. package/dist/.next/server/app/index.rsc +2 -2
  48. package/dist/.next/server/app/page.js +1 -1
  49. package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
  50. package/dist/.next/server/app-paths-manifest.json +9 -9
  51. package/dist/.next/server/chunks/366.js +1 -1
  52. package/dist/.next/server/chunks/386.js +4 -4
  53. package/dist/.next/server/chunks/626.js +1 -1
  54. package/dist/.next/server/pages/404.html +1 -1
  55. package/dist/.next/server/pages/500.html +1 -1
  56. package/dist/.next/static/chunks/app/{page-8357e24c136e1cb2.js → page-5f5e2a64d451ecb1.js} +1 -1
  57. package/dist/.next/trace +3 -3
  58. package/dist/app/api/migrations/sync/route.js +1 -3
  59. package/dist/app/api/pull-data/confirm/route.js +2 -22
  60. package/dist/app/api/pull-remote/confirm/route.js +0 -15
  61. package/dist/app/api/push-remote/confirm/route.js +0 -6
  62. package/dist/app/api/push-remote/preview/route.js +0 -4
  63. package/dist/app/api/query/route.js +0 -6
  64. package/dist/app/api/tables/route.js +0 -3
  65. package/dist/app/api/time-travel/preview/route.js +0 -2
  66. package/dist/app/api/time-travel/restore/route.js +0 -2
  67. package/dist/app/api/update/route.js +1 -2
  68. package/dist/lib/find-wrangler-config.js +0 -3
  69. package/dist/lib/local-db.js +0 -6
  70. package/dist/lib/sql-operations.js +1 -15
  71. package/package.json +1 -1
  72. /package/dist/.next/static/{pmKtFRQ7K5CL_jqemxlSj → o_MkOiVF7_eRHovqofgAP}/_buildManifest.js +0 -0
  73. /package/dist/.next/static/{pmKtFRQ7K5CL_jqemxlSj → o_MkOiVF7_eRHovqofgAP}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -9,7 +9,7 @@ npm install -g d1s
9
9
  ```
10
10
 
11
11
  ```bash
12
- d1studio
12
+ d1s
13
13
  ```
14
14
 
15
15
  ## Privacy
@@ -1 +1 @@
1
- pmKtFRQ7K5CL_jqemxlSj
1
+ o_MkOiVF7_eRHovqofgAP
@@ -7,30 +7,26 @@
7
7
  "static/chunks/main-app-d20e9d5e211da7c8.js",
8
8
  "static/chunks/app/_not-found/page-255a8a616fa8d3a5.js"
9
9
  ],
10
- "/layout": [
10
+ "/api/cloudflare/route": [
11
11
  "static/chunks/webpack-d5e8b5757f0fec83.js",
12
12
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
13
13
  "static/chunks/255-4f212684648fcab9.js",
14
14
  "static/chunks/main-app-d20e9d5e211da7c8.js",
15
- "static/css/262ae258bbcfd289.css",
16
- "static/chunks/421-55f8ce492f5bd9c3.js",
17
- "static/chunks/654-f2f8931465d44ae7.js",
18
- "static/chunks/823-77b9a2d152da81dd.js",
19
- "static/chunks/app/layout-a5219438265f0b6c.js"
15
+ "static/chunks/app/api/cloudflare/route-58aca057db1e5530.js"
20
16
  ],
21
- "/api/migrations/sync-files/route": [
17
+ "/api/databases/route": [
22
18
  "static/chunks/webpack-d5e8b5757f0fec83.js",
23
19
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
24
20
  "static/chunks/255-4f212684648fcab9.js",
25
21
  "static/chunks/main-app-d20e9d5e211da7c8.js",
26
- "static/chunks/app/api/migrations/sync-files/route-58aca057db1e5530.js"
22
+ "static/chunks/app/api/databases/route-58aca057db1e5530.js"
27
23
  ],
28
- "/api/migrations/list/route": [
24
+ "/api/migrations/sync-files/route": [
29
25
  "static/chunks/webpack-d5e8b5757f0fec83.js",
30
26
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
31
27
  "static/chunks/255-4f212684648fcab9.js",
32
28
  "static/chunks/main-app-d20e9d5e211da7c8.js",
33
- "static/chunks/app/api/migrations/list/route-58aca057db1e5530.js"
29
+ "static/chunks/app/api/migrations/sync-files/route-58aca057db1e5530.js"
34
30
  ],
35
31
  "/api/migrations/sync/route": [
36
32
  "static/chunks/webpack-d5e8b5757f0fec83.js",
@@ -39,26 +35,37 @@
39
35
  "static/chunks/main-app-d20e9d5e211da7c8.js",
40
36
  "static/chunks/app/api/migrations/sync/route-58aca057db1e5530.js"
41
37
  ],
42
- "/api/pro/route": [
38
+ "/api/pull-data/confirm/route": [
43
39
  "static/chunks/webpack-d5e8b5757f0fec83.js",
44
40
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
45
41
  "static/chunks/255-4f212684648fcab9.js",
46
42
  "static/chunks/main-app-d20e9d5e211da7c8.js",
47
- "static/chunks/app/api/pro/route-58aca057db1e5530.js"
43
+ "static/chunks/app/api/pull-data/confirm/route-58aca057db1e5530.js"
48
44
  ],
49
- "/api/pull-data/confirm/route": [
45
+ "/layout": [
50
46
  "static/chunks/webpack-d5e8b5757f0fec83.js",
51
47
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
52
48
  "static/chunks/255-4f212684648fcab9.js",
53
49
  "static/chunks/main-app-d20e9d5e211da7c8.js",
54
- "static/chunks/app/api/pull-data/confirm/route-58aca057db1e5530.js"
50
+ "static/css/262ae258bbcfd289.css",
51
+ "static/chunks/421-55f8ce492f5bd9c3.js",
52
+ "static/chunks/654-f2f8931465d44ae7.js",
53
+ "static/chunks/823-77b9a2d152da81dd.js",
54
+ "static/chunks/app/layout-a5219438265f0b6c.js"
55
55
  ],
56
- "/api/cloudflare/route": [
56
+ "/api/pro/route": [
57
57
  "static/chunks/webpack-d5e8b5757f0fec83.js",
58
58
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
59
59
  "static/chunks/255-4f212684648fcab9.js",
60
60
  "static/chunks/main-app-d20e9d5e211da7c8.js",
61
- "static/chunks/app/api/cloudflare/route-58aca057db1e5530.js"
61
+ "static/chunks/app/api/pro/route-58aca057db1e5530.js"
62
+ ],
63
+ "/api/migrations/list/route": [
64
+ "static/chunks/webpack-d5e8b5757f0fec83.js",
65
+ "static/chunks/4bd1b696-c023c6e3521b1417.js",
66
+ "static/chunks/255-4f212684648fcab9.js",
67
+ "static/chunks/main-app-d20e9d5e211da7c8.js",
68
+ "static/chunks/app/api/migrations/list/route-58aca057db1e5530.js"
62
69
  ],
63
70
  "/api/push-remote/confirm/route": [
64
71
  "static/chunks/webpack-d5e8b5757f0fec83.js",
@@ -74,12 +81,12 @@
74
81
  "static/chunks/main-app-d20e9d5e211da7c8.js",
75
82
  "static/chunks/app/api/push-remote/preview/route-58aca057db1e5530.js"
76
83
  ],
77
- "/api/databases/route": [
84
+ "/api/pull-remote/preview/route": [
78
85
  "static/chunks/webpack-d5e8b5757f0fec83.js",
79
86
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
80
87
  "static/chunks/255-4f212684648fcab9.js",
81
88
  "static/chunks/main-app-d20e9d5e211da7c8.js",
82
- "static/chunks/app/api/databases/route-58aca057db1e5530.js"
89
+ "static/chunks/app/api/pull-remote/preview/route-58aca057db1e5530.js"
83
90
  ],
84
91
  "/api/query/route": [
85
92
  "static/chunks/webpack-d5e8b5757f0fec83.js",
@@ -95,47 +102,47 @@
95
102
  "static/chunks/main-app-d20e9d5e211da7c8.js",
96
103
  "static/chunks/app/api/schema/route-58aca057db1e5530.js"
97
104
  ],
98
- "/api/tables/[name]/import/route": [
105
+ "/api/tables/route": [
99
106
  "static/chunks/webpack-d5e8b5757f0fec83.js",
100
107
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
101
108
  "static/chunks/255-4f212684648fcab9.js",
102
109
  "static/chunks/main-app-d20e9d5e211da7c8.js",
103
- "static/chunks/app/api/tables/[name]/import/route-58aca057db1e5530.js"
110
+ "static/chunks/app/api/tables/route-58aca057db1e5530.js"
104
111
  ],
105
- "/api/pull-remote/preview/route": [
112
+ "/api/time-travel/preview/route": [
106
113
  "static/chunks/webpack-d5e8b5757f0fec83.js",
107
114
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
108
115
  "static/chunks/255-4f212684648fcab9.js",
109
116
  "static/chunks/main-app-d20e9d5e211da7c8.js",
110
- "static/chunks/app/api/pull-remote/preview/route-58aca057db1e5530.js"
117
+ "static/chunks/app/api/time-travel/preview/route-58aca057db1e5530.js"
111
118
  ],
112
- "/api/time-travel/restore/route": [
119
+ "/api/tables/[name]/import/route": [
113
120
  "static/chunks/webpack-d5e8b5757f0fec83.js",
114
121
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
115
122
  "static/chunks/255-4f212684648fcab9.js",
116
123
  "static/chunks/main-app-d20e9d5e211da7c8.js",
117
- "static/chunks/app/api/time-travel/restore/route-58aca057db1e5530.js"
124
+ "static/chunks/app/api/tables/[name]/import/route-58aca057db1e5530.js"
118
125
  ],
119
- "/api/update/route": [
126
+ "/api/time-travel/restore/route": [
120
127
  "static/chunks/webpack-d5e8b5757f0fec83.js",
121
128
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
122
129
  "static/chunks/255-4f212684648fcab9.js",
123
130
  "static/chunks/main-app-d20e9d5e211da7c8.js",
124
- "static/chunks/app/api/update/route-58aca057db1e5530.js"
131
+ "static/chunks/app/api/time-travel/restore/route-58aca057db1e5530.js"
125
132
  ],
126
- "/api/tables/route": [
133
+ "/api/update/route": [
127
134
  "static/chunks/webpack-d5e8b5757f0fec83.js",
128
135
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
129
136
  "static/chunks/255-4f212684648fcab9.js",
130
137
  "static/chunks/main-app-d20e9d5e211da7c8.js",
131
- "static/chunks/app/api/tables/route-58aca057db1e5530.js"
138
+ "static/chunks/app/api/update/route-58aca057db1e5530.js"
132
139
  ],
133
- "/api/time-travel/preview/route": [
140
+ "/api/tables/[name]/route": [
134
141
  "static/chunks/webpack-d5e8b5757f0fec83.js",
135
142
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
136
143
  "static/chunks/255-4f212684648fcab9.js",
137
144
  "static/chunks/main-app-d20e9d5e211da7c8.js",
138
- "static/chunks/app/api/time-travel/preview/route-58aca057db1e5530.js"
145
+ "static/chunks/app/api/tables/[name]/route-58aca057db1e5530.js"
139
146
  ],
140
147
  "/api/pull-remote/confirm/route": [
141
148
  "static/chunks/webpack-d5e8b5757f0fec83.js",
@@ -144,13 +151,6 @@
144
151
  "static/chunks/main-app-d20e9d5e211da7c8.js",
145
152
  "static/chunks/app/api/pull-remote/confirm/route-58aca057db1e5530.js"
146
153
  ],
147
- "/api/tables/[name]/route": [
148
- "static/chunks/webpack-d5e8b5757f0fec83.js",
149
- "static/chunks/4bd1b696-c023c6e3521b1417.js",
150
- "static/chunks/255-4f212684648fcab9.js",
151
- "static/chunks/main-app-d20e9d5e211da7c8.js",
152
- "static/chunks/app/api/tables/[name]/route-58aca057db1e5530.js"
153
- ],
154
154
  "/page": [
155
155
  "static/chunks/webpack-d5e8b5757f0fec83.js",
156
156
  "static/chunks/4bd1b696-c023c6e3521b1417.js",
@@ -159,7 +159,7 @@
159
159
  "static/chunks/421-55f8ce492f5bd9c3.js",
160
160
  "static/chunks/69-00a70b2df83ed9ee.js",
161
161
  "static/chunks/823-77b9a2d152da81dd.js",
162
- "static/chunks/app/page-8357e24c136e1cb2.js"
162
+ "static/chunks/app/page-5f5e2a64d451ecb1.js"
163
163
  ]
164
164
  }
165
165
  }
@@ -1,23 +1,23 @@
1
1
  {
2
- "/_not-found/page": "/_not-found",
2
+ "/api/cloudflare/route": "/api/cloudflare",
3
+ "/api/databases/route": "/api/databases",
3
4
  "/api/migrations/sync-files/route": "/api/migrations/sync-files",
4
- "/api/migrations/list/route": "/api/migrations/list",
5
5
  "/api/migrations/sync/route": "/api/migrations/sync",
6
- "/api/pro/route": "/api/pro",
7
6
  "/api/pull-data/confirm/route": "/api/pull-data/confirm",
8
- "/api/cloudflare/route": "/api/cloudflare",
7
+ "/_not-found/page": "/_not-found",
8
+ "/api/pro/route": "/api/pro",
9
+ "/api/migrations/list/route": "/api/migrations/list",
9
10
  "/api/push-remote/confirm/route": "/api/push-remote/confirm",
10
11
  "/api/push-remote/preview/route": "/api/push-remote/preview",
11
- "/api/databases/route": "/api/databases",
12
+ "/api/pull-remote/preview/route": "/api/pull-remote/preview",
12
13
  "/api/query/route": "/api/query",
13
14
  "/api/schema/route": "/api/schema",
15
+ "/api/tables/route": "/api/tables",
16
+ "/api/time-travel/preview/route": "/api/time-travel/preview",
14
17
  "/api/tables/[name]/import/route": "/api/tables/[name]/import",
15
- "/api/pull-remote/preview/route": "/api/pull-remote/preview",
16
18
  "/api/time-travel/restore/route": "/api/time-travel/restore",
17
19
  "/api/update/route": "/api/update",
18
- "/api/tables/route": "/api/tables",
19
- "/api/time-travel/preview/route": "/api/time-travel/preview",
20
- "/api/pull-remote/confirm/route": "/api/pull-remote/confirm",
21
20
  "/api/tables/[name]/route": "/api/tables/[name]",
21
+ "/api/pull-remote/confirm/route": "/api/pull-remote/confirm",
22
22
  "/page": "/"
23
23
  }
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/pmKtFRQ7K5CL_jqemxlSj/_buildManifest.js",
9
- "static/pmKtFRQ7K5CL_jqemxlSj/_ssgManifest.js"
8
+ "static/o_MkOiVF7_eRHovqofgAP/_buildManifest.js",
9
+ "static/o_MkOiVF7_eRHovqofgAP/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [
12
12
  "static/chunks/webpack-d5e8b5757f0fec83.js",
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"32122","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"60122","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"60673","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":5706,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":134,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/globals.css":{"id":3673,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/components/ui/toaster.jsx":{"id":7747,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/context/database-context.js":{"id":3190,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/page.jsx":{"id":930,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","69","static/chunks/69-00a70b2df83ed9ee.js","823","static/chunks/823-77b9a2d152da81dd.js","974","static/chunks/app/page-8357e24c136e1cb2.js"],"async":false}},"entryCSSFiles":{"/Volumes/ProjectSpace/_wip/d1studio/src/":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/layout":[{"inlined":false,"path":"static/css/262ae258bbcfd289.css"}],"/Volumes/ProjectSpace/_wip/d1studio/src/app/page":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/_not-found/page":[]},"rscModuleMapping":{"622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"1905","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"46254","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"44158","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"32122","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"60122","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"60673","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":5706,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":134,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/globals.css":{"id":3673,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/components/ui/toaster.jsx":{"id":7747,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/context/database-context.js":{"id":3190,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/page.jsx":{"id":930,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","69","static/chunks/69-00a70b2df83ed9ee.js","823","static/chunks/823-77b9a2d152da81dd.js","974","static/chunks/app/page-5f5e2a64d451ecb1.js"],"async":false}},"entryCSSFiles":{"/Volumes/ProjectSpace/_wip/d1studio/src/":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/layout":[{"inlined":false,"path":"static/css/262ae258bbcfd289.css"}],"/Volumes/ProjectSpace/_wip/d1studio/src/app/page":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/_not-found/page":[]},"rscModuleMapping":{"622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"1905","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"46254","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"44158","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- <!DOCTYPE html><!--pmKtFRQ7K5CL_jqemxlSj--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/4cf2300e9c8272f7-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/93f479601ee12b01-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/262ae258bbcfd289.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d5e8b5757f0fec83.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-4f212684648fcab9.js" async=""></script><script src="/_next/static/chunks/main-app-d20e9d5e211da7c8.js" async=""></script><script src="/_next/static/chunks/421-55f8ce492f5bd9c3.js" async=""></script><script src="/_next/static/chunks/654-f2f8931465d44ae7.js" async=""></script><script src="/_next/static/chunks/823-77b9a2d152da81dd.js" async=""></script><script src="/_next/static/chunks/app/layout-a5219438265f0b6c.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>d1-studio</title><meta name="description" content="Native D1 database studio."/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_188709 __variable_9a8899 antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><div role="region" aria-label="Notifications (F8)" tabindex="-1" style="pointer-events:none"><ol tabindex="-1" class="fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]"></ol></div> <script src="/_next/static/chunks/webpack-d5e8b5757f0fec83.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[3190,[\"421\",\"static/chunks/421-55f8ce492f5bd9c3.js\",\"654\",\"static/chunks/654-f2f8931465d44ae7.js\",\"823\",\"static/chunks/823-77b9a2d152da81dd.js\",\"177\",\"static/chunks/app/layout-a5219438265f0b6c.js\"],\"DatabaseProvider\"]\n3:I[9766,[],\"\"]\n4:I[8924,[],\"\"]\n5:I[7747,[\"421\",\"static/chunks/421-55f8ce492f5bd9c3.js\",\"654\",\"static/chunks/654-f2f8931465d44ae7.js\",\"823\",\"static/chunks/823-77b9a2d152da81dd.js\",\"177\",\"static/chunks/app/layout-a5219438265f0b6c.js\"],\"Toaster\"]\n6:I[4431,[],\"OutletBoundary\"]\n8:I[5278,[],\"AsyncMetadataOutlet\"]\na:I[4431,[],\"ViewportBoundary\"]\nc:I[4431,[],\"MetadataBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[7150,[],\"\"]\n:HL[\"/_next/static/media/4cf2300e9c8272f7-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/93f479601ee12b01-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/262ae258bbcfd289.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"pmKtFRQ7K5CL_jqemxlSj\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/262ae258bbcfd289.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_188709 __variable_9a8899 antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L5\",null,{}],\" \"]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$L7\",[\"$\",\"$L8\",null,{\"promise\":\"$@9\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$d\",null,{\"fallback\":null,\"children\":\"$Le\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n7:null\n"])</script><script>self.__next_f.push([1,"9:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"d1-studio\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Native D1 database studio.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"e:\"$9:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--o_MkOiVF7_eRHovqofgAP--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/4cf2300e9c8272f7-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/93f479601ee12b01-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/262ae258bbcfd289.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d5e8b5757f0fec83.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-4f212684648fcab9.js" async=""></script><script src="/_next/static/chunks/main-app-d20e9d5e211da7c8.js" async=""></script><script src="/_next/static/chunks/421-55f8ce492f5bd9c3.js" async=""></script><script src="/_next/static/chunks/654-f2f8931465d44ae7.js" async=""></script><script src="/_next/static/chunks/823-77b9a2d152da81dd.js" async=""></script><script src="/_next/static/chunks/app/layout-a5219438265f0b6c.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>d1-studio</title><meta name="description" content="Native D1 database studio."/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_188709 __variable_9a8899 antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><div role="region" aria-label="Notifications (F8)" tabindex="-1" style="pointer-events:none"><ol tabindex="-1" class="fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]"></ol></div> <script src="/_next/static/chunks/webpack-d5e8b5757f0fec83.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[3190,[\"421\",\"static/chunks/421-55f8ce492f5bd9c3.js\",\"654\",\"static/chunks/654-f2f8931465d44ae7.js\",\"823\",\"static/chunks/823-77b9a2d152da81dd.js\",\"177\",\"static/chunks/app/layout-a5219438265f0b6c.js\"],\"DatabaseProvider\"]\n3:I[9766,[],\"\"]\n4:I[8924,[],\"\"]\n5:I[7747,[\"421\",\"static/chunks/421-55f8ce492f5bd9c3.js\",\"654\",\"static/chunks/654-f2f8931465d44ae7.js\",\"823\",\"static/chunks/823-77b9a2d152da81dd.js\",\"177\",\"static/chunks/app/layout-a5219438265f0b6c.js\"],\"Toaster\"]\n6:I[4431,[],\"OutletBoundary\"]\n8:I[5278,[],\"AsyncMetadataOutlet\"]\na:I[4431,[],\"ViewportBoundary\"]\nc:I[4431,[],\"MetadataBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[7150,[],\"\"]\n:HL[\"/_next/static/media/4cf2300e9c8272f7-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/93f479601ee12b01-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/262ae258bbcfd289.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"o_MkOiVF7_eRHovqofgAP\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/262ae258bbcfd289.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_188709 __variable_9a8899 antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L5\",null,{}],\" \"]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$L7\",[\"$\",\"$L8\",null,{\"promise\":\"$@9\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$d\",null,{\"fallback\":null,\"children\":\"$Le\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n7:null\n"])</script><script>self.__next_f.push([1,"9:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"d1-studio\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Native D1 database studio.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"e:\"$9:metadata\"\n"])</script></body></html>
@@ -12,7 +12,7 @@ f:I[7150,[],""]
12
12
  :HL["/_next/static/media/4cf2300e9c8272f7-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
13
13
  :HL["/_next/static/media/93f479601ee12b01-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
14
14
  :HL["/_next/static/css/262ae258bbcfd289.css","style"]
15
- 0:{"P":null,"b":"pmKtFRQ7K5CL_jqemxlSj","p":"","c":["","_not-found"],"i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/262ae258bbcfd289.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__variable_188709 __variable_9a8899 antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{}]," "]}]}]}]]}],{"children":["/_not-found",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L6",null,{"children":["$L7",["$","$L8",null,{"promise":"$@9"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],[["$","$La",null,{"children":"$Lb"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Lc",null,{"children":["$","div",null,{"hidden":true,"children":["$","$d",null,{"fallback":null,"children":"$Le"}]}]}]]}],false]],"m":"$undefined","G":["$f",[]],"s":false,"S":true}
15
+ 0:{"P":null,"b":"o_MkOiVF7_eRHovqofgAP","p":"","c":["","_not-found"],"i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/262ae258bbcfd289.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__variable_188709 __variable_9a8899 antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{}]," "]}]}]}]]}],{"children":["/_not-found",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L6",null,{"children":["$L7",["$","$L8",null,{"promise":"$@9"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],[["$","$La",null,{"children":"$Lb"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Lc",null,{"children":["$","div",null,{"hidden":true,"children":["$","$d",null,{"fallback":null,"children":"$Le"}]}]}]]}],false]],"m":"$undefined","G":["$f",[]],"s":false,"S":true}
16
16
  b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
17
17
  7:null
18
18
  9:{"metadata":[["$","title","0",{"children":"d1-studio"}],["$","meta","1",{"name":"description","content":"Native D1 database studio."}]],"error":null,"digest":"$undefined"}
@@ -1 +1 @@
1
- (()=>{var a={};a.id=999,a.ids=[999],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41204:a=>{"use strict";a.exports=require("string_decoder")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51082:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(41193);let{combine:e,timestamp:f,printf:g,colorize:h}=d.format,i="true"===process.env.DEBUG,j=g(({level:a,message:b,timestamp:c,...d})=>{let e=`${c} ${a}: ${b}`;return Object.keys(d).length>0&&(e+=` ${JSON.stringify(d)}`),e}),k=d.createLogger({level:i?"debug":"warn",format:e(f({format:"YYYY-MM-DD HH:mm:ss"}),h(),j),transports:[new d.transports.Console({level:i?"debug":"warn",silent:!1})]});k.logRequest=(a,b,c={})=>{k.debug(`Request: ${a} ${b}`,c)},k.logError=(a,b="unknown")=>{k.error(`Error in ${b}: ${a.message}`,{error:a.stack||a.message,source:b})},k.shouldLog=a=>{let b=k.level,c={error:0,warn:1,info:2,debug:3};return c[a]<=c[b]};let l=k},55591:a=>{"use strict";a.exports=require("https")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63491:(a,b,c)=>{"use strict";c.d(b,{S:()=>l});var d=c(79748),e=c(33873),f=c(82707),g=c(54027),h=c(11795),i=c(51082);let j=null,k=null;async function l(a){try{let b;if(!a||"string"!=typeof a)throw Error("Project path is required and must be a string");if(j&&k===a)return j;let c=null,l=null;for(let b of["wrangler.toml","wrangler.json","wrangler.jsonc"])if(c=await (0,f.dJ)(b,{cwd:a})){l=b;break}if(!c)return i.A.warn(`No Wrangler configuration file found in: ${a}`),null;i.A.info(`Found ${l} at: ${c}`);let m=await (0,d.readFile)(c,"utf-8");l.endsWith(".toml")?b=(0,g.parse)(m):(l.endsWith(".jsonc")&&(m=(0,h.A)(m)),b=JSON.parse(m));let n=(0,e.dirname)(c);return j={config:b,projectPath:n,configPath:c,configFile:l},k=a,j}catch(a){throw i.A.error(`Error reading Wrangler configuration: ${a.message}`),a}}},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},74075:a=>{"use strict";a.exports=require("zlib")},76760:a=>{"use strict";a.exports=require("node:path")},78335:()=>{},79428:a=>{"use strict";a.exports=require("buffer")},79748:a=>{"use strict";a.exports=require("fs/promises")},81334:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{OPTIONS:()=>B,POST:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(63491),w=c(51082);async function x(a,b){let c=await fetch(`https://api.cloudflare.com/client/v4/accounts/${a}/d1/database`,{headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}});if(!c.ok)throw Error("Invalid Cloudflare credentials");return c.json()}async function y(a,b,c){let d=await fetch(`https://api.cloudflare.com/client/v4/accounts/${a}/d1/database`,{headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}});if(!d.ok)throw Error("Failed to fetch databases");let{result:e}=await d.json();return e.find(a=>a.name===c)}async function z(a,b,c){let d=await fetch(`https://api.cloudflare.com/client/v4/accounts/${a}/d1/database`,{method:"POST",headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"},body:JSON.stringify({name:c})});if(!d.ok)throw Error("Failed to create database");return d.json()}async function A(a){try{let{accountId:b,apiToken:c}=await a.json(),d=process.env.D1_PROJECT_DIR;if(!d)return w.A.error("Project directory not configured"),u.NextResponse.json({error:"Project directory not configured"},{status:500});await x(b,c);let e=await (0,v.S)(d);if(!e||!e.config)return w.A.error("No Wrangler configuration file found in project directory"),u.NextResponse.json({error:"No Wrangler configuration file found in project directory"},{status:404});let f=e.config;if(!f.d1_databases?.length)return u.NextResponse.json({error:"No D1 databases configured in Wrangler configuration"},{status:400});let g=f.d1_databases[0],h=await y(b,c,g.database_name);return h||(h=(await z(b,c,g.database_name)).result),u.NextResponse.json({success:!0,database:{id:h.uuid,name:h.name}})}catch(a){return w.A.error("Cloudflare API error:",a),u.NextResponse.json({error:a.message},{status:a.message.includes("Invalid credentials")?401:500})}}async function B(){return new u.NextResponse(null,{status:204})}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/cloudflare/route",pathname:"/api/cloudflare",filename:"route",bundlePath:"app/api/cloudflare/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/cloudflare/route.js",nextConfigOutput:"",userland:d}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){var d;let e="/api/cloudflare/route";"/index"===e&&(e="/");let g=await C.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||C.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===C.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>C.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>C.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await C.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},81630:a=>{"use strict";a.exports=require("http")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,692,347],()=>b(b.s=81334));module.exports=c})();
1
+ (()=>{var a={};a.id=999,a.ids=[999],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41204:a=>{"use strict";a.exports=require("string_decoder")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51082:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(41193);let{combine:e,timestamp:f,printf:g,colorize:h}=d.format,i="true"===process.env.DEBUG,j=g(({level:a,message:b,timestamp:c,...d})=>{let e=`${c} ${a}: ${b}`;return Object.keys(d).length>0&&(e+=` ${JSON.stringify(d)}`),e}),k=d.createLogger({level:i?"debug":"warn",format:e(f({format:"YYYY-MM-DD HH:mm:ss"}),h(),j),transports:[new d.transports.Console({level:i?"debug":"warn",silent:!1})]});k.logRequest=(a,b,c={})=>{k.debug(`Request: ${a} ${b}`,c)},k.logError=(a,b="unknown")=>{k.error(`Error in ${b}: ${a.message}`,{error:a.stack||a.message,source:b})},k.shouldLog=a=>{let b=k.level,c={error:0,warn:1,info:2,debug:3};return c[a]<=c[b]};let l=k},55591:a=>{"use strict";a.exports=require("https")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63491:(a,b,c)=>{"use strict";c.d(b,{S:()=>l});var d=c(79748),e=c(33873),f=c(82707),g=c(54027),h=c(11795),i=c(51082);let j=null,k=null;async function l(a){try{let b;if(!a||"string"!=typeof a)throw Error("Project path is required and must be a string");if(j&&k===a)return j;let c=null,i=null;for(let b of["wrangler.toml","wrangler.json","wrangler.jsonc"])if(c=await (0,f.dJ)(b,{cwd:a})){i=b;break}if(!c)return null;let l=await (0,d.readFile)(c,"utf-8");i.endsWith(".toml")?b=(0,g.parse)(l):(i.endsWith(".jsonc")&&(l=(0,h.A)(l)),b=JSON.parse(l));let m=(0,e.dirname)(c);return j={config:b,projectPath:m,configPath:c,configFile:i},k=a,j}catch(a){throw i.A.error(`Error reading Wrangler configuration: ${a.message}`),a}}},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},74075:a=>{"use strict";a.exports=require("zlib")},76760:a=>{"use strict";a.exports=require("node:path")},78335:()=>{},79428:a=>{"use strict";a.exports=require("buffer")},79748:a=>{"use strict";a.exports=require("fs/promises")},81334:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{OPTIONS:()=>B,POST:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(63491),w=c(51082);async function x(a,b){let c=await fetch(`https://api.cloudflare.com/client/v4/accounts/${a}/d1/database`,{headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}});if(!c.ok)throw Error("Invalid Cloudflare credentials");return c.json()}async function y(a,b,c){let d=await fetch(`https://api.cloudflare.com/client/v4/accounts/${a}/d1/database`,{headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}});if(!d.ok)throw Error("Failed to fetch databases");let{result:e}=await d.json();return e.find(a=>a.name===c)}async function z(a,b,c){let d=await fetch(`https://api.cloudflare.com/client/v4/accounts/${a}/d1/database`,{method:"POST",headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"},body:JSON.stringify({name:c})});if(!d.ok)throw Error("Failed to create database");return d.json()}async function A(a){try{let{accountId:b,apiToken:c}=await a.json(),d=process.env.D1_PROJECT_DIR;if(!d)return w.A.error("Project directory not configured"),u.NextResponse.json({error:"Project directory not configured"},{status:500});await x(b,c);let e=await (0,v.S)(d);if(!e||!e.config)return w.A.error("No Wrangler configuration file found in project directory"),u.NextResponse.json({error:"No Wrangler configuration file found in project directory"},{status:404});let f=e.config;if(!f.d1_databases?.length)return u.NextResponse.json({error:"No D1 databases configured in Wrangler configuration"},{status:400});let g=f.d1_databases[0],h=await y(b,c,g.database_name);return h||(h=(await z(b,c,g.database_name)).result),u.NextResponse.json({success:!0,database:{id:h.uuid,name:h.name}})}catch(a){return w.A.error("Cloudflare API error:",a),u.NextResponse.json({error:a.message},{status:a.message.includes("Invalid credentials")?401:500})}}async function B(){return new u.NextResponse(null,{status:204})}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/cloudflare/route",pathname:"/api/cloudflare",filename:"route",bundlePath:"app/api/cloudflare/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/cloudflare/route.js",nextConfigOutput:"",userland:d}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){var d;let e="/api/cloudflare/route";"/index"===e&&(e="/");let g=await C.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||C.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===C.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>C.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>C.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await C.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},81630:a=>{"use strict";a.exports=require("http")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,692,347],()=>b(b.s=81334));module.exports=c})();
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/cloudflare/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"32122","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"60122","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"60673","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":5706,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":134,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/globals.css":{"id":3673,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/components/ui/toaster.jsx":{"id":7747,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/context/database-context.js":{"id":3190,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/page.jsx":{"id":930,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","69","static/chunks/69-00a70b2df83ed9ee.js","823","static/chunks/823-77b9a2d152da81dd.js","974","static/chunks/app/page-8357e24c136e1cb2.js"],"async":false}},"entryCSSFiles":{"/Volumes/ProjectSpace/_wip/d1studio/src/":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/layout":[{"inlined":false,"path":"static/css/262ae258bbcfd289.css"}],"/Volumes/ProjectSpace/_wip/d1studio/src/app/page":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/cloudflare/route":[]},"rscModuleMapping":{"622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"1905","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"46254","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"44158","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/cloudflare/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"32122","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"60122","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"60673","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":5706,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.jsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":134,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/globals.css":{"id":3673,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/components/ui/toaster.jsx":{"id":7747,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/context/database-context.js":{"id":3190,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","654","static/chunks/654-f2f8931465d44ae7.js","823","static/chunks/823-77b9a2d152da81dd.js","177","static/chunks/app/layout-a5219438265f0b6c.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/page.jsx":{"id":930,"name":"*","chunks":["421","static/chunks/421-55f8ce492f5bd9c3.js","69","static/chunks/69-00a70b2df83ed9ee.js","823","static/chunks/823-77b9a2d152da81dd.js","974","static/chunks/app/page-5f5e2a64d451ecb1.js"],"async":false}},"entryCSSFiles":{"/Volumes/ProjectSpace/_wip/d1studio/src/":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/layout":[{"inlined":false,"path":"static/css/262ae258bbcfd289.css"}],"/Volumes/ProjectSpace/_wip/d1studio/src/app/page":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/cloudflare/route":[]},"rscModuleMapping":{"622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"930":{"*":{"id":"1905","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"3190":{"*":{"id":"46254","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"7747":{"*":{"id":"44158","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- (()=>{var a={};a.id=952,a.ids=[366,952],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10366:(a,b,c)=>{"use strict";c.d(b,{executeLocalSQL:()=>n,k5:()=>l,n3:()=>o,w1:()=>m});var d=c(55511),e=c(33873),f=c(29021),g=c(87550),h=c(51082);let i=e.join(".wrangler","state","v3","d1","miniflare-D1DatabaseObject"),j=new Map;function k(a,b){let c=e.join(a,i);if(!f.existsSync(c))return null;let{database_id:g,database_name:j,binding:k}=b,l=[g,j,k].filter(Boolean),m=["","miniflare-D1DatabaseObject:","D1DatabaseObject:","d1:"],n=l.flatMap(a=>m.map(b=>{var c;return c=`${b}${a}`,d.createHash("sha256").update(c).digest("hex")})).map(a=>e.join(c,`${a}.sqlite`)).find(a=>f.existsSync(a));if(n)return n;let o=f.readdirSync(c).filter(a=>a.endsWith(".sqlite")).map(a=>({name:a,fullPath:e.join(c,a),mtime:f.statSync(e.join(c,a)).mtimeMs})).sort((a,b)=>b.mtime-a.mtime);return 1===o.length?o[0].fullPath:(o.length>1&&h.A.debug(`[local-db] Multiple SQLite files, no hash matched — falling back to wrangler CLI. dir=${c}, tried ids=${JSON.stringify(l)}`),h.A.debug(`[local-db] No SQLite files found. dir=${c}, tried ids=${JSON.stringify(l)}`),null)}function l(a,b){return null!==k(a,b)}function m(a,b){let c=`${a}:${b.database_name}`,d=k(a,b);if(j.has(c)){let a=j.get(c);if(a.path!==d){try{a.db.close()}catch{}j.delete(c)}else try{return a.db.prepare("SELECT 1").get(),a.db}catch{j.delete(c)}}if(!d)return null;try{let a=new g(d,{fileMustExist:!1});return a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),j.set(c,{db:a,path:d}),a}catch{return null}}function n(a,b,c){let d=m(a,b);if(!d)return null;let e=c.trim(),f=e.toUpperCase().replace(/\s+/g," "),g=e.split(";").map(a=>a.trim()).filter(Boolean);if(g.length>1){let a=[],b=0,c=0;return d.transaction(()=>{for(let e of g){let f=e.toUpperCase().replace(/\s+/g," ");if(f.startsWith("SELECT")||f.startsWith("PRAGMA")||f.startsWith("EXPLAIN")){let b=d.prepare(e).all();a=a.concat(b)}else{let a=d.prepare(e).run();b+=a.changes,c=a.lastInsertRowid}}})(),JSON.stringify([{results:a,success:!0,meta:{changes:b,last_row_id:c,rows_read:a.length,rows_written:b}}])}if(f.startsWith("SELECT")||f.startsWith("PRAGMA")||f.startsWith("EXPLAIN")){let a=d.prepare(e).all();return JSON.stringify([{results:a,success:!0,meta:{rows_read:a.length,rows_written:0,changed_db:!1}}])}let h=d.prepare(e).run();return JSON.stringify([{results:[],success:!0,meta:{changes:h.changes,last_row_id:h.lastInsertRowid,rows_read:0,rows_written:h.changes,changed_db:h.changes>0}}])}function o(a,b){let c=`${a}:${b}`,d=j.get(c);if(d){try{d.db.close()}catch{}j.delete(c)}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41204:a=>{"use strict";a.exports=require("string_decoder")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51082:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(41193);let{combine:e,timestamp:f,printf:g,colorize:h}=d.format,i="true"===process.env.DEBUG,j=g(({level:a,message:b,timestamp:c,...d})=>{let e=`${c} ${a}: ${b}`;return Object.keys(d).length>0&&(e+=` ${JSON.stringify(d)}`),e}),k=d.createLogger({level:i?"debug":"warn",format:e(f({format:"YYYY-MM-DD HH:mm:ss"}),h(),j),transports:[new d.transports.Console({level:i?"debug":"warn",silent:!1})]});k.logRequest=(a,b,c={})=>{k.debug(`Request: ${a} ${b}`,c)},k.logError=(a,b="unknown")=>{k.error(`Error in ${b}: ${a.message}`,{error:a.stack||a.message,source:b})},k.shouldLog=a=>{let b=k.level,c={error:0,warn:1,info:2,debug:3};return c[a]<=c[b]};let l=k},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63491:(a,b,c)=>{"use strict";c.d(b,{S:()=>l});var d=c(79748),e=c(33873),f=c(82707),g=c(54027),h=c(11795),i=c(51082);let j=null,k=null;async function l(a){try{let b;if(!a||"string"!=typeof a)throw Error("Project path is required and must be a string");if(j&&k===a)return j;let c=null,l=null;for(let b of["wrangler.toml","wrangler.json","wrangler.jsonc"])if(c=await (0,f.dJ)(b,{cwd:a})){l=b;break}if(!c)return i.A.warn(`No Wrangler configuration file found in: ${a}`),null;i.A.info(`Found ${l} at: ${c}`);let m=await (0,d.readFile)(c,"utf-8");l.endsWith(".toml")?b=(0,g.parse)(m):(l.endsWith(".jsonc")&&(m=(0,h.A)(m)),b=JSON.parse(m));let n=(0,e.dirname)(c);return j={config:b,projectPath:n,configPath:c,configFile:l},k=a,j}catch(a){throw i.A.error(`Error reading Wrangler configuration: ${a.message}`),a}}},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},74075:a=>{"use strict";a.exports=require("zlib")},76760:a=>{"use strict";a.exports=require("node:path")},76981:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,OPTIONS:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(63491),w=c(10366),x=c(51082);async function y(){try{let a=process.env.D1_PROJECT_DIR;if(!a)return x.A.error("D1_PROJECT_DIR environment variable is not set"),u.NextResponse.json({error:"Project directory not configured"},{status:500});let b=await (0,v.S)(a);if(!b||!b.config)return u.NextResponse.json({error:"No Wrangler configuration file found in project directory"},{status:404});let c=b.config;if(!c.d1_databases?.length)return u.NextResponse.json({error:"No D1 databases configured in Wrangler configuration"},{status:404});return u.NextResponse.json({databases:c.d1_databases.map(b=>({...b,hasLocal:(0,w.k5)(a,b)})),debug:{projectDir:a,configPath:b.configPath||"N/A",databaseCount:c.d1_databases.length}})}catch(a){return x.A.error("Error reading database configuration:",a),u.NextResponse.json({error:"Failed to read database configuration",details:a.message,debug:{errorCode:a.code,errorStack:a.stack}},{status:500})}}async function z(){return new u.NextResponse(null,{status:204,headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"Content-Type"}})}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/databases/route",pathname:"/api/databases",filename:"route",bundlePath:"app/api/databases/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/databases/route.js",nextConfigOutput:"",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/databases/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},78335:()=>{},79428:a=>{"use strict";a.exports=require("buffer")},79748:a=>{"use strict";a.exports=require("fs/promises")},81630:a=>{"use strict";a.exports=require("http")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,692,347],()=>b(b.s=76981));module.exports=c})();
1
+ (()=>{var a={};a.id=952,a.ids=[366,952],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10366:(a,b,c)=>{"use strict";c.d(b,{executeLocalSQL:()=>m,k5:()=>k,n3:()=>n,w1:()=>l});var d=c(55511),e=c(33873),f=c(29021),g=c(87550);let h=e.join(".wrangler","state","v3","d1","miniflare-D1DatabaseObject"),i=new Map;function j(a,b){let c=e.join(a,h);if(!f.existsSync(c))return null;let{database_id:g,database_name:i,binding:j}=b,k=[g,i,j].filter(Boolean),l=["","miniflare-D1DatabaseObject:","D1DatabaseObject:","d1:"],m=k.flatMap(a=>l.map(b=>{var c;return c=`${b}${a}`,d.createHash("sha256").update(c).digest("hex")})).map(a=>e.join(c,`${a}.sqlite`)).find(a=>f.existsSync(a));if(m)return m;let n=f.readdirSync(c).filter(a=>a.endsWith(".sqlite")).map(a=>({name:a,fullPath:e.join(c,a),mtime:f.statSync(e.join(c,a)).mtimeMs})).sort((a,b)=>b.mtime-a.mtime);return 1===n.length?n[0].fullPath:null}function k(a,b){return null!==j(a,b)}function l(a,b){let c=`${a}:${b.database_name}`,d=j(a,b);if(i.has(c)){let a=i.get(c);if(a.path!==d){try{a.db.close()}catch{}i.delete(c)}else try{return a.db.prepare("SELECT 1").get(),a.db}catch{i.delete(c)}}if(!d)return null;try{let a=new g(d,{fileMustExist:!1});return a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),i.set(c,{db:a,path:d}),a}catch{return null}}function m(a,b,c){let d=l(a,b);if(!d)return null;let e=c.trim(),f=e.toUpperCase().replace(/\s+/g," "),g=e.split(";").map(a=>a.trim()).filter(Boolean);if(g.length>1){let a=[],b=0,c=0;return d.transaction(()=>{for(let e of g){let f=e.toUpperCase().replace(/\s+/g," ");if(f.startsWith("SELECT")||f.startsWith("PRAGMA")||f.startsWith("EXPLAIN")){let b=d.prepare(e).all();a=a.concat(b)}else{let a=d.prepare(e).run();b+=a.changes,c=a.lastInsertRowid}}})(),JSON.stringify([{results:a,success:!0,meta:{changes:b,last_row_id:c,rows_read:a.length,rows_written:b}}])}if(f.startsWith("SELECT")||f.startsWith("PRAGMA")||f.startsWith("EXPLAIN")){let a=d.prepare(e).all();return JSON.stringify([{results:a,success:!0,meta:{rows_read:a.length,rows_written:0,changed_db:!1}}])}let h=d.prepare(e).run();return JSON.stringify([{results:[],success:!0,meta:{changes:h.changes,last_row_id:h.lastInsertRowid,rows_read:0,rows_written:h.changes,changed_db:h.changes>0}}])}function n(a,b){let c=`${a}:${b}`,d=i.get(c);if(d){try{d.db.close()}catch{}i.delete(c)}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41204:a=>{"use strict";a.exports=require("string_decoder")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51082:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(41193);let{combine:e,timestamp:f,printf:g,colorize:h}=d.format,i="true"===process.env.DEBUG,j=g(({level:a,message:b,timestamp:c,...d})=>{let e=`${c} ${a}: ${b}`;return Object.keys(d).length>0&&(e+=` ${JSON.stringify(d)}`),e}),k=d.createLogger({level:i?"debug":"warn",format:e(f({format:"YYYY-MM-DD HH:mm:ss"}),h(),j),transports:[new d.transports.Console({level:i?"debug":"warn",silent:!1})]});k.logRequest=(a,b,c={})=>{k.debug(`Request: ${a} ${b}`,c)},k.logError=(a,b="unknown")=>{k.error(`Error in ${b}: ${a.message}`,{error:a.stack||a.message,source:b})},k.shouldLog=a=>{let b=k.level,c={error:0,warn:1,info:2,debug:3};return c[a]<=c[b]};let l=k},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63491:(a,b,c)=>{"use strict";c.d(b,{S:()=>l});var d=c(79748),e=c(33873),f=c(82707),g=c(54027),h=c(11795),i=c(51082);let j=null,k=null;async function l(a){try{let b;if(!a||"string"!=typeof a)throw Error("Project path is required and must be a string");if(j&&k===a)return j;let c=null,i=null;for(let b of["wrangler.toml","wrangler.json","wrangler.jsonc"])if(c=await (0,f.dJ)(b,{cwd:a})){i=b;break}if(!c)return null;let l=await (0,d.readFile)(c,"utf-8");i.endsWith(".toml")?b=(0,g.parse)(l):(i.endsWith(".jsonc")&&(l=(0,h.A)(l)),b=JSON.parse(l));let m=(0,e.dirname)(c);return j={config:b,projectPath:m,configPath:c,configFile:i},k=a,j}catch(a){throw i.A.error(`Error reading Wrangler configuration: ${a.message}`),a}}},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},74075:a=>{"use strict";a.exports=require("zlib")},76760:a=>{"use strict";a.exports=require("node:path")},76981:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,OPTIONS:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(63491),w=c(10366),x=c(51082);async function y(){try{let a=process.env.D1_PROJECT_DIR;if(!a)return x.A.error("D1_PROJECT_DIR environment variable is not set"),u.NextResponse.json({error:"Project directory not configured"},{status:500});let b=await (0,v.S)(a);if(!b||!b.config)return u.NextResponse.json({error:"No Wrangler configuration file found in project directory"},{status:404});let c=b.config;if(!c.d1_databases?.length)return u.NextResponse.json({error:"No D1 databases configured in Wrangler configuration"},{status:404});return u.NextResponse.json({databases:c.d1_databases.map(b=>({...b,hasLocal:(0,w.k5)(a,b)})),debug:{projectDir:a,configPath:b.configPath||"N/A",databaseCount:c.d1_databases.length}})}catch(a){return x.A.error("Error reading database configuration:",a),u.NextResponse.json({error:"Failed to read database configuration",details:a.message,debug:{errorCode:a.code,errorStack:a.stack}},{status:500})}}async function z(){return new u.NextResponse(null,{status:204,headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"Content-Type"}})}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/databases/route",pathname:"/api/databases",filename:"route",bundlePath:"app/api/databases/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/databases/route.js",nextConfigOutput:"",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/databases/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},78335:()=>{},79428:a=>{"use strict";a.exports=require("buffer")},79748:a=>{"use strict";a.exports=require("fs/promises")},81630:a=>{"use strict";a.exports=require("http")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,692,347],()=>b(b.s=76981));module.exports=c})();