d1s 0.3.7 → 0.3.11

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 (195) hide show
  1. package/README.md +1 -1
  2. package/dist/.next/BUILD_ID +1 -1
  3. package/dist/.next/app-build-manifest.json +125 -125
  4. package/dist/.next/app-path-routes-manifest.json +23 -1
  5. package/dist/.next/build-manifest.json +14 -14
  6. package/dist/.next/export-marker.json +6 -1
  7. package/dist/.next/images-manifest.json +58 -1
  8. package/dist/.next/next-minimal-server.js.nft.json +1 -1
  9. package/dist/.next/next-server.js.nft.json +1 -1
  10. package/dist/.next/prerender-manifest.json +61 -1
  11. package/dist/.next/react-loadable-manifest.json +5 -5
  12. package/dist/.next/required-server-files.json +325 -1
  13. package/dist/.next/routes-manifest.json +70 -1
  14. package/dist/.next/server/app/_not-found/page.js +2 -1
  15. package/dist/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/dist/.next/server/app/_not-found.html +1 -1
  18. package/dist/.next/server/app/_not-found.meta +1 -1
  19. package/dist/.next/server/app/_not-found.rsc +15 -12
  20. package/dist/.next/server/app/api/cloudflare/route.js +1 -1
  21. package/dist/.next/server/app/api/cloudflare/route.js.nft.json +1 -1
  22. package/dist/.next/server/app/api/cloudflare/route_client-reference-manifest.js +1 -1
  23. package/dist/.next/server/app/api/databases/route.js +1 -1
  24. package/dist/.next/server/app/api/databases/route.js.nft.json +1 -1
  25. package/dist/.next/server/app/api/databases/route_client-reference-manifest.js +1 -1
  26. package/dist/.next/server/app/api/migrations/list/route.js +8 -8
  27. package/dist/.next/server/app/api/migrations/list/route.js.nft.json +1 -1
  28. package/dist/.next/server/app/api/migrations/list/route_client-reference-manifest.js +1 -1
  29. package/dist/.next/server/app/api/migrations/sync/route.js +10 -10
  30. package/dist/.next/server/app/api/migrations/sync/route.js.nft.json +1 -1
  31. package/dist/.next/server/app/api/migrations/sync/route_client-reference-manifest.js +1 -1
  32. package/dist/.next/server/app/api/migrations/sync-files/route.js +8 -8
  33. package/dist/.next/server/app/api/migrations/sync-files/route.js.nft.json +1 -1
  34. package/dist/.next/server/app/api/migrations/sync-files/route_client-reference-manifest.js +1 -1
  35. package/dist/.next/server/app/api/pro/route.js +1 -1
  36. package/dist/.next/server/app/api/pro/route.js.nft.json +1 -1
  37. package/dist/.next/server/app/api/pro/route_client-reference-manifest.js +1 -1
  38. package/dist/.next/server/app/api/pull-data/confirm/route.js +1 -1
  39. package/dist/.next/server/app/api/pull-data/confirm/route.js.nft.json +1 -1
  40. package/dist/.next/server/app/api/pull-data/confirm/route_client-reference-manifest.js +1 -1
  41. package/dist/.next/server/app/api/pull-remote/confirm/route.js +8 -8
  42. package/dist/.next/server/app/api/pull-remote/confirm/route.js.nft.json +1 -1
  43. package/dist/.next/server/app/api/pull-remote/confirm/route_client-reference-manifest.js +1 -1
  44. package/dist/.next/server/app/api/pull-remote/preview/route.js +8 -8
  45. package/dist/.next/server/app/api/pull-remote/preview/route.js.nft.json +1 -1
  46. package/dist/.next/server/app/api/pull-remote/preview/route_client-reference-manifest.js +1 -1
  47. package/dist/.next/server/app/api/push-remote/confirm/route.js +10 -10
  48. package/dist/.next/server/app/api/push-remote/confirm/route.js.nft.json +1 -1
  49. package/dist/.next/server/app/api/push-remote/confirm/route_client-reference-manifest.js +1 -1
  50. package/dist/.next/server/app/api/push-remote/preview/route.js +10 -10
  51. package/dist/.next/server/app/api/push-remote/preview/route.js.nft.json +1 -1
  52. package/dist/.next/server/app/api/push-remote/preview/route_client-reference-manifest.js +1 -1
  53. package/dist/.next/server/app/api/query/route.js +15 -15
  54. package/dist/.next/server/app/api/query/route.js.nft.json +1 -1
  55. package/dist/.next/server/app/api/query/route_client-reference-manifest.js +1 -1
  56. package/dist/.next/server/app/api/schema/route.js +1 -1
  57. package/dist/.next/server/app/api/schema/route.js.nft.json +1 -1
  58. package/dist/.next/server/app/api/schema/route_client-reference-manifest.js +1 -1
  59. package/dist/.next/server/app/api/tables/[name]/import/route.js +1 -1
  60. package/dist/.next/server/app/api/tables/[name]/import/route.js.nft.json +1 -1
  61. package/dist/.next/server/app/api/tables/[name]/import/route_client-reference-manifest.js +1 -1
  62. package/dist/.next/server/app/api/tables/[name]/route.js +5 -5
  63. package/dist/.next/server/app/api/tables/[name]/route.js.nft.json +1 -1
  64. package/dist/.next/server/app/api/tables/[name]/route_client-reference-manifest.js +1 -1
  65. package/dist/.next/server/app/api/tables/route.js +2 -2
  66. package/dist/.next/server/app/api/tables/route.js.nft.json +1 -1
  67. package/dist/.next/server/app/api/tables/route_client-reference-manifest.js +1 -1
  68. package/dist/.next/server/app/api/time-travel/preview/route.js +1 -1
  69. package/dist/.next/server/app/api/time-travel/preview/route.js.nft.json +1 -1
  70. package/dist/.next/server/app/api/time-travel/preview/route_client-reference-manifest.js +1 -1
  71. package/dist/.next/server/app/api/time-travel/restore/route.js +1 -1
  72. package/dist/.next/server/app/api/time-travel/restore/route.js.nft.json +1 -1
  73. package/dist/.next/server/app/api/time-travel/restore/route_client-reference-manifest.js +1 -1
  74. package/dist/.next/server/app/api/update/route.js +1 -1
  75. package/dist/.next/server/app/api/update/route.js.nft.json +1 -1
  76. package/dist/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  77. package/dist/.next/server/app/index.html +3 -3
  78. package/dist/.next/server/app/index.meta +1 -1
  79. package/dist/.next/server/app/index.rsc +18 -15
  80. package/dist/.next/server/app/page.js +15 -14
  81. package/dist/.next/server/app/page.js.nft.json +1 -1
  82. package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
  83. package/dist/.next/server/app-paths-manifest.json +4 -4
  84. package/dist/.next/server/chunks/347.js +23 -0
  85. package/dist/.next/server/chunks/366.js +1 -0
  86. package/dist/.next/server/chunks/386.js +9 -0
  87. package/dist/.next/server/chunks/611.js +6 -0
  88. package/dist/.next/server/chunks/626.js +30 -0
  89. package/dist/.next/server/chunks/692.js +1 -0
  90. package/dist/.next/server/chunks/839.js +1 -0
  91. package/dist/.next/server/chunks/873.js +22 -0
  92. package/dist/.next/server/functions-config-manifest.json +6 -1
  93. package/dist/.next/server/middleware-build-manifest.js +1 -1
  94. package/dist/.next/server/middleware-react-loadable-manifest.js +1 -1
  95. package/dist/.next/server/pages/404.html +1 -1
  96. package/dist/.next/server/pages/500.html +1 -1
  97. package/dist/.next/server/pages/_app.js +1 -1
  98. package/dist/.next/server/pages/_document.js +1 -1
  99. package/dist/.next/server/pages/_document.js.nft.json +1 -1
  100. package/dist/.next/server/pages/_error.js +19 -1
  101. package/dist/.next/server/pages/_error.js.nft.json +1 -1
  102. package/dist/.next/server/pages-manifest.json +6 -1
  103. package/dist/.next/server/server-reference-manifest.json +1 -1
  104. package/dist/.next/server/webpack-runtime.js +1 -1
  105. package/dist/.next/static/chunks/1a258343.234dd786cf6c097e.js +1 -0
  106. package/dist/.next/static/chunks/255-4f212684648fcab9.js +1 -0
  107. package/dist/.next/static/chunks/421-55f8ce492f5bd9c3.js +1 -0
  108. package/dist/.next/static/chunks/4bd1b696-c023c6e3521b1417.js +1 -0
  109. package/dist/.next/static/chunks/654-f2f8931465d44ae7.js +1 -0
  110. package/dist/.next/static/chunks/69-00a70b2df83ed9ee.js +1 -0
  111. package/dist/.next/static/chunks/823-77b9a2d152da81dd.js +1 -0
  112. package/dist/.next/static/chunks/95.8b08bca2768cb67c.js +1 -0
  113. package/dist/.next/static/chunks/950.edd33691c78c1807.js +1 -0
  114. package/dist/.next/static/chunks/app/_not-found/page-255a8a616fa8d3a5.js +1 -0
  115. package/dist/.next/static/chunks/app/api/cloudflare/{route-d0c1dc2a9e7dce36.js → route-58aca057db1e5530.js} +1 -1
  116. package/dist/.next/static/chunks/app/api/databases/{route-cd322321212797cf.js → route-58aca057db1e5530.js} +1 -1
  117. package/dist/.next/static/chunks/app/api/migrations/list/{route-cd710ff75b6bcd02.js → route-58aca057db1e5530.js} +1 -1
  118. package/dist/.next/static/chunks/app/api/migrations/sync/route-58aca057db1e5530.js +1 -0
  119. package/dist/.next/static/chunks/app/api/migrations/sync-files/{route-79ee2c26f87d3bc7.js → route-58aca057db1e5530.js} +1 -1
  120. package/dist/.next/static/chunks/app/api/pro/route-58aca057db1e5530.js +1 -0
  121. package/dist/.next/static/chunks/app/api/pull-data/confirm/route-58aca057db1e5530.js +1 -0
  122. package/dist/.next/static/chunks/app/api/pull-remote/confirm/route-58aca057db1e5530.js +1 -0
  123. package/dist/.next/static/chunks/app/api/pull-remote/preview/route-58aca057db1e5530.js +1 -0
  124. package/dist/.next/static/chunks/app/api/push-remote/confirm/route-58aca057db1e5530.js +1 -0
  125. package/dist/.next/static/chunks/app/api/push-remote/preview/route-58aca057db1e5530.js +1 -0
  126. package/dist/.next/static/chunks/app/api/query/route-58aca057db1e5530.js +1 -0
  127. package/dist/.next/static/chunks/app/api/schema/route-58aca057db1e5530.js +1 -0
  128. package/dist/.next/static/chunks/app/api/tables/[name]/import/route-58aca057db1e5530.js +1 -0
  129. package/dist/.next/static/chunks/app/api/tables/[name]/route-58aca057db1e5530.js +1 -0
  130. package/dist/.next/static/chunks/app/api/tables/route-58aca057db1e5530.js +1 -0
  131. package/dist/.next/static/chunks/app/api/time-travel/preview/route-58aca057db1e5530.js +1 -0
  132. package/dist/.next/static/chunks/app/api/time-travel/restore/route-58aca057db1e5530.js +1 -0
  133. package/dist/.next/static/chunks/app/api/update/route-58aca057db1e5530.js +1 -0
  134. package/dist/.next/static/chunks/app/layout-a5219438265f0b6c.js +1 -0
  135. package/dist/.next/static/chunks/app/page-4170252891367dde.js +1 -0
  136. package/dist/.next/static/chunks/framework-a6e0b7e30f98059a.js +1 -0
  137. package/dist/.next/static/chunks/main-0bd218f776705cbf.js +1 -0
  138. package/dist/.next/static/chunks/main-app-d20e9d5e211da7c8.js +1 -0
  139. package/dist/.next/static/chunks/pages/_app-7d307437aca18ad4.js +1 -0
  140. package/dist/.next/static/chunks/pages/_error-cb2a52f75f2162e2.js +1 -0
  141. package/dist/.next/static/chunks/webpack-d5e8b5757f0fec83.js +1 -0
  142. package/dist/.next/static/css/262ae258bbcfd289.css +3 -0
  143. package/dist/.next/static/css/599369d853c61df7.css +31 -0
  144. package/dist/.next/static/{TqY9pInUBjZNteD9IEnz3 → kGRfd0CDzKPsrYHw9rLTQ}/_buildManifest.js +1 -1
  145. package/dist/.next/trace +3 -3
  146. package/dist/app/api/query/route.js +35 -16
  147. package/dist/app/api/schema/route.js +16 -6
  148. package/dist/app/api/tables/[name]/route.js +23 -12
  149. package/dist/app/api/tables/route.js +21 -6
  150. package/dist/d1-studio.js +1 -0
  151. package/package.json +6 -2
  152. package/dist/.next/server/chunks/226.js +0 -30
  153. package/dist/.next/server/chunks/391.js +0 -23
  154. package/dist/.next/server/chunks/452.js +0 -1
  155. package/dist/.next/server/chunks/487.js +0 -1
  156. package/dist/.next/server/chunks/572.js +0 -1
  157. package/dist/.next/server/chunks/627.js +0 -6
  158. package/dist/.next/server/chunks/992.js +0 -3
  159. package/dist/.next/server/chunks/994.js +0 -13
  160. package/dist/.next/static/chunks/1a258343.3b3e7ba5ba0bd0d2.js +0 -1
  161. package/dist/.next/static/chunks/345.8fc37569d5708622.js +0 -1
  162. package/dist/.next/static/chunks/480-85b6c8ae3f51b156.js +0 -1
  163. package/dist/.next/static/chunks/4bd1b696-124ea104c06f6cea.js +0 -1
  164. package/dist/.next/static/chunks/517-c876ce2f00030cd0.js +0 -2
  165. package/dist/.next/static/chunks/52.2cdc9bdb75e1fc2e.js +0 -1
  166. package/dist/.next/static/chunks/692-9e59d546afd11ec3.js +0 -1
  167. package/dist/.next/static/chunks/803-a2fcfbd00e6b3b38.js +0 -1
  168. package/dist/.next/static/chunks/92-a84bdac2be7c8d7a.js +0 -1
  169. package/dist/.next/static/chunks/app/_not-found/page-3e24b81707d98126.js +0 -1
  170. package/dist/.next/static/chunks/app/api/migrations/sync/route-ee522f232b9f0a9c.js +0 -1
  171. package/dist/.next/static/chunks/app/api/pro/route-c90c1f901fc00d38.js +0 -1
  172. package/dist/.next/static/chunks/app/api/pull-data/confirm/route-118764086af798f8.js +0 -1
  173. package/dist/.next/static/chunks/app/api/pull-remote/confirm/route-2b0ade4ebfcea0bc.js +0 -1
  174. package/dist/.next/static/chunks/app/api/pull-remote/preview/route-342db7ea13e6f447.js +0 -1
  175. package/dist/.next/static/chunks/app/api/push-remote/confirm/route-b778c053bd515abd.js +0 -1
  176. package/dist/.next/static/chunks/app/api/push-remote/preview/route-ab090482f299f57f.js +0 -1
  177. package/dist/.next/static/chunks/app/api/query/route-4d21a8b1d34491f1.js +0 -1
  178. package/dist/.next/static/chunks/app/api/schema/route-cb17a387d6b557ad.js +0 -1
  179. package/dist/.next/static/chunks/app/api/tables/[name]/import/route-510472de7a5c29bd.js +0 -1
  180. package/dist/.next/static/chunks/app/api/tables/[name]/route-6a1fa95c303ce0de.js +0 -1
  181. package/dist/.next/static/chunks/app/api/tables/route-daa975df4ea8e8f8.js +0 -1
  182. package/dist/.next/static/chunks/app/api/time-travel/preview/route-5787d7e8f17bd539.js +0 -1
  183. package/dist/.next/static/chunks/app/api/time-travel/restore/route-84b64a27e831e21c.js +0 -1
  184. package/dist/.next/static/chunks/app/api/update/route-54ee900537982652.js +0 -1
  185. package/dist/.next/static/chunks/app/layout-f0ec4d636ee0f763.js +0 -1
  186. package/dist/.next/static/chunks/app/page-6bcbc40fdbc40128.js +0 -1
  187. package/dist/.next/static/chunks/framework-d29117d969504448.js +0 -1
  188. package/dist/.next/static/chunks/main-8d0ab17774ffa031.js +0 -1
  189. package/dist/.next/static/chunks/main-app-4506e88db72db4b7.js +0 -1
  190. package/dist/.next/static/chunks/pages/_app-d23763e3e6c904ff.js +0 -1
  191. package/dist/.next/static/chunks/pages/_error-9b7125ad1a1e68fa.js +0 -1
  192. package/dist/.next/static/chunks/webpack-024900a94af4f0a7.js +0 -1
  193. package/dist/.next/static/css/2c165a0ede9b2442.css +0 -3
  194. package/dist/.next/static/css/32df9a4d493f8b0f.css +0 -31
  195. /package/dist/.next/static/{TqY9pInUBjZNteD9IEnz3 → kGRfd0CDzKPsrYHw9rLTQ}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var e={};e.id=399,e.ids=[399],e.modules={7550:e=>{e.exports=require("better-sqlite3")},846:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4870:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9294:e=>{e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},3033:e=>{e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},9428:e=>{e.exports=require("buffer")},9646:e=>{e.exports=require("child_process")},5511:e=>{e.exports=require("crypto")},4735:e=>{e.exports=require("events")},9021:e=>{e.exports=require("fs")},9748:e=>{e.exports=require("fs/promises")},1630:e=>{e.exports=require("http")},5591:e=>{e.exports=require("https")},1820:e=>{e.exports=require("os")},3873:e=>{e.exports=require("path")},7910:e=>{e.exports=require("stream")},1204:e=>{e.exports=require("string_decoder")},8354:e=>{e.exports=require("util")},4075:e=>{e.exports=require("zlib")},3024:e=>{e.exports=require("node:fs")},6760:e=>{e.exports=require("node:path")},1708:e=>{e.exports=require("node:process")},3136:e=>{e.exports=require("node:url")},2464:(e,t,r)=>{r.r(t),r.d(t,{patchFetch:()=>y,routeModule:()=>R,serverHooks:()=>h,workAsyncStorage:()=>T,workUnitAsyncStorage:()=>f});var a={};r.r(a),r.d(a,{OPTIONS:()=>w,POST:()=>E});var s=r(2706),i=r(8203),o=r(5994),n=r(9187),l=r(9748),c=r(3873),p=r(5949),d=r(9421),u=r(961),m=r(1804);async function g(e,t,r){let a=process.env,s=await (0,u.GS)(e,t,a),i=r||c.join(e,"migrations"),o=new Set;try{let e=await (0,l.readdir)(i);o=new Set(e.filter(e=>e.endsWith(".sql")))}catch{}return{preview:s.map(e=>({name:e.name,type:"migration",action:o.has(e.name)?"will be applied":"file missing locally"})),totalMigrations:s.length}}async function E(e){if("true"!==process.env.D1_IS_PRO)return n.NextResponse.json({success:!1,error:{type:"PRO_REQUIRED",message:"Pro license required. Run: d1s --license YOUR-KEY"}},{status:402});try{let t=process.env.D1_PROJECT_DIR;if(!t)return n.NextResponse.json({success:!1,error:{type:d.wU.VALIDATION_ERROR,message:"Project directory not configured"}},{status:500});let r=await (0,p.S)(t);if(!r?.config)return n.NextResponse.json({success:!1,error:{type:d.wU.VALIDATION_ERROR,message:"Could not find Wrangler configuration"}},{status:400});let a=r.config;if(!a.d1_databases?.length)return n.NextResponse.json({success:!1,error:{type:d.wU.VALIDATION_ERROR,message:"No D1 databases configured"}},{status:400});let s=await e.json().catch(()=>({})),i=s?.db,o=i?a.d1_databases.find(e=>e.database_name===i):a.d1_databases[0];if(!o)return n.NextResponse.json({success:!1,error:{type:d.wU.VALIDATION_ERROR,message:`Database not found: ${i}`}},{status:400});let l=o.database_name,u=o.migrations_dir?c.join(t,o.migrations_dir):c.join(t,"migrations"),m=await g(t,l,u);return n.NextResponse.json({success:!0,message:"Pull migration preview generated",details:m})}catch(e){return m.A.error("Pull remote preview error:",e),n.NextResponse.json({success:!1,error:{type:e.type||d.wU.EXECUTION_ERROR,message:e.message||"Failed to generate pull migration preview",details:e.details}},{status:500})}}async function w(){return new n.NextResponse(null,{status:204})}let R=new s.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/pull-remote/preview/route",pathname:"/api/pull-remote/preview",filename:"route",bundlePath:"app/api/pull-remote/preview/route"},resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/pull-remote/preview/route.js",nextConfigOutput:"",userland:a}),{workAsyncStorage:T,workUnitAsyncStorage:f,serverHooks:h}=R;function y(){return(0,o.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:f})}},961:(e,t,r)=>{r.d(t,{A8:()=>h,CM:()=>R,GS:()=>E,Gc:()=>y,JD:()=>g,Sl:()=>f,ai:()=>w,hI:()=>T,k0:()=>u});var a=r(9748),s=r(8354),i=r(9646),o=r(5511),n=r(3873),l=r(9421),c=r(4218),p=r(1804);let d=(0,s.promisify)(i.exec);async function u(e,t,r="local",a=!1){let s="remote"===r?"--remote":"--local",i="remote"===r?`
1
+ "use strict";(()=>{var a={};a.id=399,a.ids=[399],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{a.exports=require("node:process")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},62435:(a,b,c)=>{c.d(b,{A8:()=>u,CM:()=>r,GS:()=>p,Gc:()=>v,JD:()=>o,Sl:()=>t,ai:()=>q,hI:()=>s,k0:()=>m});var d=c(79748),e=c(28354),f=c(79646),g=c(55511),h=c(33873),i=c(89827),j=c(40032),k=c(51082);let l=(0,e.promisify)(f.exec);async function m(a,b,c="local",d=!1){let e="remote"===c?"--remote":"--local",f="remote"===c?`
2
2
  CREATE TABLE IF NOT EXISTS d1_migrations (
3
3
  id INTEGER PRIMARY KEY AUTOINCREMENT,
4
4
  name TEXT NOT NULL UNIQUE,
@@ -11,16 +11,16 @@
11
11
  checksum TEXT NULL,
12
12
  applied_at DATETIME DEFAULT CURRENT_TIMESTAMP
13
13
  );
14
- `;try{await d(`wrangler d1 execute ${t} ${s} --command="${i.replace(/"/g,'\\"')}"`,{cwd:e}),a&&await d(`wrangler d1 execute ${t} ${s} --command="${"DELETE FROM d1_migrations;".replace(/"/g,'\\"')}"`,{cwd:e})}catch(e){throw p.A.error(`Failed to initialize migrations table in ${r}:`,e),e}}function m(e){let t=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,-3),r=e.type.toLowerCase().replace(/_/g,"-");if("CREATE_INDEX"===e.type){let r=e.description.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,"");return`${t}_create-index_${r}.sql`}{let a=`${t}_${{"create-table":"create-table","alter-table":"alter-table","drop-table":"drop-table","drop-index":"drop-index","create-view":"create-view","drop-view":"drop-view","add-foreign-key":"add-foreign-key","drop-foreign-key":"drop-foreign-key","add-constraint":"add-constraint","drop-constraint":"drop-constraint"}[r]||r}_${e.tableName}`;return"ALTER_TABLE"===e.type&&e.description&&(a+=`_${e.description}`),(a=a.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,""))+".sql"}}async function g(e){let t=await (0,a.readFile)(e,"utf8");try{let e=(0,l.By)(t);return(0,l.Gq)(e),{isValid:!0,statement:e}}catch(e){return{isValid:!1,errors:e}}}async function E(e,t,r){try{let a=await (0,l.KK)(e,t,"SELECT name, applied_at FROM d1_migrations ORDER BY applied_at;",r,!0);if("string"==typeof a){let e=a.indexOf("[");if(-1!==e){let t=a.substring(e),r=JSON.parse(t);return r[0]?.results||[]}}return[]}catch(t){let e=[t.message,t.details?.originalError,t.details?.stderr,t.details?.stdout].filter(Boolean).join(" ");if(e.includes("no such table")||e.includes("d1_migrations"))return[];throw{type:l.wU.EXECUTION_ERROR,message:"Failed to get remote migrations",details:{error:e||"Failed to execute SQL command",suggestions:["Check remote database permissions","Verify credentials and connection"]}}}}async function w(e,t,{name:r,checksum:a},s="local"){let i="remote"===s?"--remote":"--local";if("local"===s&&a)try{await d(`wrangler d1 execute ${t} ${i} --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:e}).catch(()=>!1)||await d(`wrangler d1 execute ${t} ${i} --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:e})}catch(e){}let o="remote"!==s&&a?`
14
+ `;try{await l(`wrangler d1 execute ${b} ${e} --command="${f.replace(/"/g,'\\"')}"`,{cwd:a}),d&&await l(`wrangler d1 execute ${b} ${e} --command="${"DELETE FROM d1_migrations;".replace(/"/g,'\\"')}"`,{cwd:a})}catch(a){throw k.A.error(`Failed to initialize migrations table in ${c}:`,a),a}}function n(a){let b=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,-3),c=a.type.toLowerCase().replace(/_/g,"-");if("CREATE_INDEX"===a.type){let c=a.description.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,"");return`${b}_create-index_${c}.sql`}{let d=`${b}_${{"create-table":"create-table","alter-table":"alter-table","drop-table":"drop-table","drop-index":"drop-index","create-view":"create-view","drop-view":"drop-view","add-foreign-key":"add-foreign-key","drop-foreign-key":"drop-foreign-key","add-constraint":"add-constraint","drop-constraint":"drop-constraint"}[c]||c}_${a.tableName}`;return"ALTER_TABLE"===a.type&&a.description&&(d+=`_${a.description}`),(d=d.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,""))+".sql"}}async function o(a){let b=await (0,d.readFile)(a,"utf8");try{let a=(0,i.By)(b);return(0,i.Gq)(a),{isValid:!0,statement:a}}catch(a){return{isValid:!1,errors:a}}}async function p(a,b,c){try{let d=await (0,i.KK)(a,b,"SELECT name, applied_at FROM d1_migrations ORDER BY applied_at;",c,!0);if("string"==typeof d){let a=d.indexOf("[");if(-1!==a){let b=d.substring(a),c=JSON.parse(b);return c[0]?.results||[]}}return[]}catch(b){let a=[b.message,b.details?.originalError,b.details?.stderr,b.details?.stdout].filter(Boolean).join(" ");if(a.includes("no such table")||a.includes("d1_migrations"))return[];throw{type:i.wU.EXECUTION_ERROR,message:"Failed to get remote migrations",details:{error:a||"Failed to execute SQL command",suggestions:["Check remote database permissions","Verify credentials and connection"]}}}}async function q(a,b,{name:c,checksum:d},e="local"){let f="remote"===e?"--remote":"--local";if("local"===e&&d)try{await l(`wrangler d1 execute ${b} ${f} --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:a}).catch(()=>!1)||await l(`wrangler d1 execute ${b} ${f} --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:a})}catch(a){}let g="remote"!==e&&d?`
15
15
  INSERT OR REPLACE INTO d1_migrations (name, checksum, applied_at)
16
- VALUES ('${r}', '${a}', CURRENT_TIMESTAMP);
16
+ VALUES ('${c}', '${d}', CURRENT_TIMESTAMP);
17
17
  `:`
18
18
  INSERT OR REPLACE INTO d1_migrations (name, applied_at)
19
- VALUES ('${r}', CURRENT_TIMESTAMP);
20
- `;try{await d(`wrangler d1 execute ${t} ${i} --command="${o.replace(/"/g,'\\"')}"`,{cwd:e})}catch(e){throw p.A.error("Failed to track migration:",e),e}}async function R(e,t,{name:r,checksum:a},s={},i=!1){let o=i||!a?`
19
+ VALUES ('${c}', CURRENT_TIMESTAMP);
20
+ `;try{await l(`wrangler d1 execute ${b} ${f} --command="${g.replace(/"/g,'\\"')}"`,{cwd:a})}catch(a){throw k.A.error("Failed to track migration:",a),a}}async function r(a,b,{name:c,checksum:d},e={},f=!1){let g=f||!d?`
21
21
  INSERT OR REPLACE INTO d1_migrations (name, applied_at)
22
- VALUES ('${r}', CURRENT_TIMESTAMP);
22
+ VALUES ('${c}', CURRENT_TIMESTAMP);
23
23
  `:`
24
24
  INSERT OR REPLACE INTO d1_migrations (name, checksum, applied_at)
25
- VALUES ('${r}', '${a}', CURRENT_TIMESTAMP);
26
- `;try{await (0,l.KK)(e,t,o,s,i)}catch(e){throw{type:l.wU.EXECUTION_ERROR,message:`Failed to record migration ${r}`,details:{file:r,error:e.message,suggestions:["Check if migration is already recorded"]}}}}async function T(e,t){try{let r=await E(e,t,{}),a=new Map(r.map(e=>[e.name,e]));return{applied:Array.from(a.keys()),count:a.size}}catch(e){throw p.A.error("Failed to compare migrations:",e),e}}function f(e){return(0,o.createHash)("sha256").update(e).digest("hex")}async function h(e,t){try{await d(`wrangler d1 execute ${t} --local --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:e})}catch{try{await d(`wrangler d1 execute ${t} --local --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:e})}catch{}}}async function y(e,t,r){try{let s=n.join(e,"migrations");await (0,a.mkdir)(s,{recursive:!0});let i=[],o=[],p=[];for(let e of r)e.type===l.Pg.DATA_MODIFICATION?p.push(e):o.push(e);let d=new Map,u="__no_table__";for(let e of o){let t=e.tableName?e.tableName.toLowerCase():u;d.has(t)||d.set(t,[]),d.get(t).push(e)}let g=[...d.keys()].filter(e=>e!==u),E=[];if(g.length>0){let e=g.map(e=>d.get(e)[0]);E=(0,c.IC)(e)}for(let r of E){for(let o of d.get(r)||[])try{if(o.type===l.Pg.DROP_TABLE&&!await (0,l.F9)(e,t,{},o.tableName,!1))throw Error(`no such table: ${o.tableName}`);let r=await (0,l.KK)(e,t,o.sql);if(r&&(r.toLowerCase().includes("syntax error")||r.toLowerCase().includes("sqlite_error")))throw Error(r);let c=m(o),p=n.join(s,c),d=(0,l.tn)(o.sql);await (0,a.writeFile)(p,d,"utf8");let u=f(o.sql);await w(e,t,{name:c,checksum:u},"local"),i.push({type:o.type,table:o.tableName,migration:c,checksum:u})}catch(e){throw e}d.delete(r)}if(d.has(u))for(let r of d.get(u))try{await (0,l.KK)(e,t,r.sql);let o=m(r),c=n.join(s,o),p=(0,l.tn)(r.sql);await (0,a.writeFile)(c,p,"utf8");let d=f(r.sql);await w(e,t,{name:o,checksum:d},"local"),i.push({type:r.type,table:r.tableName||null,migration:o,checksum:d})}catch(e){throw e}for(let r of p)try{await (0,l.KK)(e,t,r.sql),i.push({type:r.type,table:r.tableName||null,executed:!0})}catch(e){throw e}return i}catch(e){throw e}}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[994,452,391,226],()=>r(2464));module.exports=a})();
25
+ VALUES ('${c}', '${d}', CURRENT_TIMESTAMP);
26
+ `;try{await (0,i.KK)(a,b,g,e,f)}catch(a){throw{type:i.wU.EXECUTION_ERROR,message:`Failed to record migration ${c}`,details:{file:c,error:a.message,suggestions:["Check if migration is already recorded"]}}}}async function s(a,b){try{let c=await p(a,b,{}),d=new Map(c.map(a=>[a.name,a]));return{applied:Array.from(d.keys()),count:d.size}}catch(a){throw k.A.error("Failed to compare migrations:",a),a}}function t(a){return(0,g.createHash)("sha256").update(a).digest("hex")}async function u(a,b){try{await l(`wrangler d1 execute ${b} --local --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:a})}catch{try{await l(`wrangler d1 execute ${b} --local --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:a})}catch{}}}async function v(a,b,c){try{let e=h.join(a,"migrations");await (0,d.mkdir)(e,{recursive:!0});let f=[],g=[],k=[];for(let a of c)a.type===i.Pg.DATA_MODIFICATION?k.push(a):g.push(a);let l=new Map,m="__no_table__";for(let a of g){let b=a.tableName?a.tableName.toLowerCase():m;l.has(b)||l.set(b,[]),l.get(b).push(a)}let o=[...l.keys()].filter(a=>a!==m),p=[];if(o.length>0){let a=o.map(a=>l.get(a)[0]);p=(0,j.IC)(a)}for(let c of p){for(let g of l.get(c)||[])try{if(g.type===i.Pg.DROP_TABLE&&!await (0,i.F9)(a,b,{},g.tableName,!1))throw Error(`no such table: ${g.tableName}`);let c=await (0,i.KK)(a,b,g.sql);if(c&&(c.toLowerCase().includes("syntax error")||c.toLowerCase().includes("sqlite_error")))throw Error(c);let j=n(g),k=h.join(e,j),l=(0,i.tn)(g.sql);await (0,d.writeFile)(k,l,"utf8");let m=t(g.sql);await q(a,b,{name:j,checksum:m},"local"),f.push({type:g.type,table:g.tableName,migration:j,checksum:m})}catch(a){throw a}l.delete(c)}if(l.has(m))for(let c of l.get(m))try{await (0,i.KK)(a,b,c.sql);let g=n(c),j=h.join(e,g),k=(0,i.tn)(c.sql);await (0,d.writeFile)(j,k,"utf8");let l=t(c.sql);await q(a,b,{name:g,checksum:l},"local"),f.push({type:c.type,table:c.tableName||null,migration:g,checksum:l})}catch(a){throw a}for(let c of k)try{await (0,i.KK)(a,b,c.sql),f.push({type:c.type,table:c.tableName||null,executed:!0})}catch(a){throw a}return f}catch(a){throw a}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64130:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>J,patchFetch:()=>I,routeModule:()=>E,serverHooks:()=>H,workAsyncStorage:()=>F,workUnitAsyncStorage:()=>G});var d={};c.r(d),c.d(d,{OPTIONS:()=>D,POST:()=>C});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(79748),w=c(33873),x=c(63491),y=c(89827),z=c(62435),A=c(51082);async function B(a,b,c){let d=process.env,e=await (0,z.GS)(a,b,d),f=c||w.join(a,"migrations"),g=new Set;try{let a=await (0,v.readdir)(f);g=new Set(a.filter(a=>a.endsWith(".sql")))}catch{}return{preview:e.map(a=>({name:a.name,type:"migration",action:g.has(a.name)?"will be applied":"file missing locally"})),totalMigrations:e.length}}async function C(a){if("true"!==process.env.D1_IS_PRO)return u.NextResponse.json({success:!1,error:{type:"PRO_REQUIRED",message:"Pro license required. Run: d1s --license YOUR-KEY"}},{status:402});try{let b=process.env.D1_PROJECT_DIR;if(!b)return u.NextResponse.json({success:!1,error:{type:y.wU.VALIDATION_ERROR,message:"Project directory not configured"}},{status:500});let c=await (0,x.S)(b);if(!c?.config)return u.NextResponse.json({success:!1,error:{type:y.wU.VALIDATION_ERROR,message:"Could not find Wrangler configuration"}},{status:400});let d=c.config;if(!d.d1_databases?.length)return u.NextResponse.json({success:!1,error:{type:y.wU.VALIDATION_ERROR,message:"No D1 databases configured"}},{status:400});let e=await a.json().catch(()=>({})),f=e?.db,g=f?d.d1_databases.find(a=>a.database_name===f):d.d1_databases[0];if(!g)return u.NextResponse.json({success:!1,error:{type:y.wU.VALIDATION_ERROR,message:`Database not found: ${f}`}},{status:400});let h=g.database_name,i=g.migrations_dir?w.join(b,g.migrations_dir):w.join(b,"migrations"),j=await B(b,h,i);return u.NextResponse.json({success:!0,message:"Pull migration preview generated",details:j})}catch(a){return A.A.error("Pull remote preview error:",a),u.NextResponse.json({success:!1,error:{type:a.type||y.wU.EXECUTION_ERROR,message:a.message||"Failed to generate pull migration preview",details:a.details}},{status:500})}}async function D(){return new u.NextResponse(null,{status:204})}let E=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/pull-remote/preview/route",pathname:"/api/pull-remote/preview",filename:"route",bundlePath:"app/api/pull-remote/preview/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/pull-remote/preview/route.js",nextConfigOutput:"",userland:d}),{workAsyncStorage:F,workUnitAsyncStorage:G,serverHooks:H}=E;function I(){return(0,g.patchFetch)({workAsyncStorage:F,workUnitAsyncStorage:G})}async function J(a,b,c){var d;let e="/api/pull-remote/preview/route";"/index"===e&&(e="/");let g=await E.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:C}=g,D=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[D]||y.routes[C]);if(F&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||E.isDev||x||(G="/index"===(G=C)?"/":G);let H=!0===E.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)=>E.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=>E.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 E.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await E.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 E.onRequestError(a,b,{routerKind:"App Router",routePath:D,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}}},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81630:a=>{a.exports=require("http")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,692,347,626],()=>b(b.s=64130));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/226.js","../../../../chunks/391.js","../../../../chunks/452.js","../../../../chunks/487.js","../../../../chunks/994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/347.js","../../../../chunks/366.js","../../../../chunks/626.js","../../../../chunks/692.js","../../../../chunks/873.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/pull-remote/preview/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"33":{"*":{"id":"2899","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"7174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"7190","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"3875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"8903","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"4178","name":"*","chunks":[],"async":false}},"6124":{"*":{"id":"2652","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"1365","name":"*","chunks":[],"async":false}},"6311":{"*":{"id":"7098","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"6959","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"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":5613,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.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":7207,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/globals.css":{"id":347,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/components/ui/toaster.jsx":{"id":6124,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/context/database-context.js":{"id":33,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/page.jsx":{"id":6311,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","803","static/chunks/803-a2fcfbd00e6b3b38.js","480","static/chunks/480-85b6c8ae3f51b156.js","974","static/chunks/app/page-6bcbc40fdbc40128.js"],"async":false}},"entryCSSFiles":{"/Volumes/ProjectSpace/_wip/d1studio/src/":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/layout":[{"inlined":false,"path":"static/css/2c165a0ede9b2442.css"}],"/Volumes/ProjectSpace/_wip/d1studio/src/app/page":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/pull-remote/preview/route":[]},"rscModuleMapping":{"33":{"*":{"id":"1831","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"4863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"5155","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6124":{"*":{"id":"3164","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"8921","name":"*","chunks":[],"async":false}},"6311":{"*":{"id":"8868","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"3219","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/pull-remote/preview/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-4170252891367dde.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/pull-remote/preview/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,17 +1,17 @@
1
- "use strict";(()=>{var e={};e.id=680,e.ids=[680],e.modules={7550:e=>{e.exports=require("better-sqlite3")},846:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4870:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9294:e=>{e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},3033:e=>{e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},9428:e=>{e.exports=require("buffer")},9646:e=>{e.exports=require("child_process")},5511:e=>{e.exports=require("crypto")},4735:e=>{e.exports=require("events")},9021:e=>{e.exports=require("fs")},9748:e=>{e.exports=require("fs/promises")},1630:e=>{e.exports=require("http")},5591:e=>{e.exports=require("https")},1820:e=>{e.exports=require("os")},3873:e=>{e.exports=require("path")},7910:e=>{e.exports=require("stream")},1204:e=>{e.exports=require("string_decoder")},8354:e=>{e.exports=require("util")},4075:e=>{e.exports=require("zlib")},3024:e=>{e.exports=require("node:fs")},6760:e=>{e.exports=require("node:path")},1708:e=>{e.exports=require("node:process")},3136:e=>{e.exports=require("node:url")},2055:(e,t,r)=>{r.r(t),r.d(t,{patchFetch:()=>y,routeModule:()=>R,serverHooks:()=>w,workAsyncStorage:()=>f,workUnitAsyncStorage:()=>h});var a={};r.r(a),r.d(a,{OPTIONS:()=>g,POST:()=>T});var s=r(2706),i=r(8203),o=r(5994),n=r(9187),l=r(9748),c=r(3873),p=r(5949),d=r(565),u=r(9421),m=r(961);async function E(e,t,r=!1,a){let s=process.env;try{let i=`
1
+ "use strict";(()=>{var a={};a.id=680,a.ids=[680],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{a.exports=require("node:process")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3733:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>J,patchFetch:()=>I,routeModule:()=>E,serverHooks:()=>H,workAsyncStorage:()=>F,workUnitAsyncStorage:()=>G});var d={};c.r(d),c.d(d,{OPTIONS:()=>D,POST:()=>C});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(79748),w=c(33873),x=c(63491),y=c(60627),z=c(89827),A=c(62435);async function B(a,b,c=!1,d){let e=process.env;try{let f=`
2
2
  CREATE TABLE IF NOT EXISTS d1_migrations (
3
3
  id INTEGER PRIMARY KEY AUTOINCREMENT,
4
4
  name TEXT NOT NULL UNIQUE,
5
5
  checksum TEXT NOT NULL,
6
6
  applied_at DATETIME DEFAULT CURRENT_TIMESTAMP
7
7
  );
8
- `,o=`
8
+ `,g=`
9
9
  CREATE TABLE IF NOT EXISTS d1_migrations (
10
10
  id INTEGER PRIMARY KEY AUTOINCREMENT,
11
11
  name TEXT NOT NULL UNIQUE,
12
12
  applied_at DATETIME DEFAULT CURRENT_TIMESTAMP
13
13
  );
14
- `;await (0,u.KK)(e,t,i),await (0,u.KK)(e,t,o,s,!0);let n=await (0,u.KK)(e,t,"SELECT name FROM d1_migrations ORDER BY applied_at;",s,!0),p=(e=>{try{let t=JSON.parse(e);return t[0]?.results||[]}catch{return[]}})(n);console.log(`[push-confirm] remote d1_migrations raw response: ${n}`),console.log(`[push-confirm] remote d1_migrations parsed rows (${p.length}): ${JSON.stringify(p)}`);let d=new Map(p.map(e=>[e.name,e])),E=a||c.join(e,"migrations"),T=(await (0,l.readdir)(E)).filter(e=>e.endsWith(".sql")&&!/seed/i.test(e)).sort(),g={applied:[],skipped:[],preview:[]};for(let a of T){let i=c.join(E,a),o={name:a,action:"",reason:""};try{if(!(await (0,m.JD)(i)).isValid){o.action="failed validation",o.reason="Migration validation failed",g.preview.push(o);continue}if(d.has(a)){console.log(`[push-confirm] SKIP ${a} — found in remote d1_migrations`),o.action="skipped",o.reason="Already applied",g.preview.push(o),g.skipped.push({name:a,reason:o.reason});continue}let n=await (0,l.readFile)(i,"utf8");n=(0,u.bp)(n);let c=(0,u.By)(n),p=c.tableName;if("CREATE_TABLE"===c.type&&p){let r=await (0,u.F9)(e,t,s,p,!0);if(console.log(`[push-confirm] tableExists(${p}, remote) = ${r}`),r){console.log(`[push-confirm] SKIP ${a} — table "${p}" already exists on remote`),o.action="skipped",o.reason=`Table "${p}" already exists`,g.skipped.push({name:a,reason:o.reason}),g.preview.push(o);continue}}o.action="will be applied",g.preview.push(o),r||(await (0,u.KK)(e,t,n,s,!0),await (0,u.KK)(e,t,`INSERT INTO d1_migrations (name) VALUES ('${a}');`,s,!0),o.action="applied",g.applied.push({name:a}))}catch(r){let e=r.message||"",t=r.details&&r.details.stderr||"";e.includes("already exists")||t.includes("already exists")?(o.action="skipped",o.reason="Already applied"):(o.action="failed",o.reason=e||"Failed to apply migration"),g.skipped.push({name:a,reason:o.reason}),g.preview.push(o)}}return{success:!0,preview:!1,applied:g.applied.length,skipped:g.skipped.length,details:g}}catch(e){throw{type:u.wU.EXECUTION_ERROR,message:e.message||"Failed to push migrations",details:e.details||{error:e.stderr||e.message}}}}async function T(e){if("true"!==process.env.D1_IS_PRO)return n.NextResponse.json({success:!1,error:{type:"PRO_REQUIRED",message:"Pro license required. Run: d1s --license YOUR-KEY"}},{status:402});try{let t=process.env.D1_PROJECT_DIR;if(!t)return n.NextResponse.json({success:!1,error:{message:"Project directory not configured",type:u.wU.VALIDATION_ERROR}},{status:500});let r=await (0,p.S)(t);if(!r||!r.config)return n.NextResponse.json({success:!1,error:{message:"Could not find Wrangler configuration",type:u.wU.VALIDATION_ERROR}},{status:400});let a=r.config;if(!a.d1_databases?.length)return n.NextResponse.json({success:!1,error:{message:"No D1 databases configured",type:u.wU.VALIDATION_ERROR}},{status:400});let s=await e.json().catch(()=>({})),i=s?.db,o=i?a.d1_databases.find(e=>e.database_name===i):a.d1_databases[0];if(!o)return n.NextResponse.json({success:!1,error:{message:`Database not found: ${i}`,type:u.wU.VALIDATION_ERROR}},{status:400});let l=o.database_name,m=o.migrations_dir?c.join(t,o.migrations_dir):c.join(t,"migrations"),T=await E(t,l,!1,m);return(0,d.s)("remote_push"),n.NextResponse.json({success:!0,message:"Successfully pushed migrations to remote",details:T})}catch(e){return console.error("Push to remote confirm error:",e),n.NextResponse.json({success:!1,error:{type:e.type||u.wU.EXECUTION_ERROR,message:e.message||"Failed to push to remote",details:e.details||{error:e.stderr||e.message}}},{status:e.type===u.wU.VALIDATION_ERROR?400:500})}}async function g(){return new n.NextResponse(null,{status:204})}r(1804);let R=new s.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/push-remote/confirm/route",pathname:"/api/push-remote/confirm",filename:"route",bundlePath:"app/api/push-remote/confirm/route"},resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/push-remote/confirm/route.js",nextConfigOutput:"",userland:a}),{workAsyncStorage:f,workUnitAsyncStorage:h,serverHooks:w}=R;function y(){return(0,o.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:h})}},961:(e,t,r)=>{r.d(t,{A8:()=>w,CM:()=>R,GS:()=>T,Gc:()=>y,JD:()=>E,Sl:()=>h,ai:()=>g,hI:()=>f,k0:()=>u});var a=r(9748),s=r(8354),i=r(9646),o=r(5511),n=r(3873),l=r(9421),c=r(4218),p=r(1804);let d=(0,s.promisify)(i.exec);async function u(e,t,r="local",a=!1){let s="remote"===r?"--remote":"--local",i="remote"===r?`
14
+ `;await (0,z.KK)(a,b,f),await (0,z.KK)(a,b,g,e,!0);let h=await (0,z.KK)(a,b,"SELECT name FROM d1_migrations ORDER BY applied_at;",e,!0),i=(a=>{try{let b=JSON.parse(a);return b[0]?.results||[]}catch{return[]}})(h);console.log(`[push-confirm] remote d1_migrations raw response: ${h}`),console.log(`[push-confirm] remote d1_migrations parsed rows (${i.length}): ${JSON.stringify(i)}`);let j=new Map(i.map(a=>[a.name,a])),k=d||w.join(a,"migrations"),l=(await (0,v.readdir)(k)).filter(a=>a.endsWith(".sql")&&!/seed/i.test(a)).sort(),m={applied:[],skipped:[],preview:[]};for(let d of l){let f=w.join(k,d),g={name:d,action:"",reason:""};try{if(!(await (0,A.JD)(f)).isValid){g.action="failed validation",g.reason="Migration validation failed",m.preview.push(g);continue}if(j.has(d)){console.log(`[push-confirm] SKIP ${d} — found in remote d1_migrations`),g.action="skipped",g.reason="Already applied",m.preview.push(g),m.skipped.push({name:d,reason:g.reason});continue}let h=await (0,v.readFile)(f,"utf8");h=(0,z.bp)(h);let i=(0,z.By)(h),k=i.tableName;if("CREATE_TABLE"===i.type&&k){let c=await (0,z.F9)(a,b,e,k,!0);if(console.log(`[push-confirm] tableExists(${k}, remote) = ${c}`),c){console.log(`[push-confirm] SKIP ${d} — table "${k}" already exists on remote`),g.action="skipped",g.reason=`Table "${k}" already exists`,m.skipped.push({name:d,reason:g.reason}),m.preview.push(g);continue}}g.action="will be applied",m.preview.push(g),c||(await (0,z.KK)(a,b,h,e,!0),await (0,z.KK)(a,b,`INSERT INTO d1_migrations (name) VALUES ('${d}');`,e,!0),g.action="applied",m.applied.push({name:d}))}catch(c){let a=c.message||"",b=c.details&&c.details.stderr||"";a.includes("already exists")||b.includes("already exists")?(g.action="skipped",g.reason="Already applied"):(g.action="failed",g.reason=a||"Failed to apply migration"),m.skipped.push({name:d,reason:g.reason}),m.preview.push(g)}}return{success:!0,preview:!1,applied:m.applied.length,skipped:m.skipped.length,details:m}}catch(a){throw{type:z.wU.EXECUTION_ERROR,message:a.message||"Failed to push migrations",details:a.details||{error:a.stderr||a.message}}}}async function C(a){if("true"!==process.env.D1_IS_PRO)return u.NextResponse.json({success:!1,error:{type:"PRO_REQUIRED",message:"Pro license required. Run: d1s --license YOUR-KEY"}},{status:402});try{let b=process.env.D1_PROJECT_DIR;if(!b)return u.NextResponse.json({success:!1,error:{message:"Project directory not configured",type:z.wU.VALIDATION_ERROR}},{status:500});let c=await (0,x.S)(b);if(!c||!c.config)return u.NextResponse.json({success:!1,error:{message:"Could not find Wrangler configuration",type:z.wU.VALIDATION_ERROR}},{status:400});let d=c.config;if(!d.d1_databases?.length)return u.NextResponse.json({success:!1,error:{message:"No D1 databases configured",type:z.wU.VALIDATION_ERROR}},{status:400});let e=await a.json().catch(()=>({})),f=e?.db,g=f?d.d1_databases.find(a=>a.database_name===f):d.d1_databases[0];if(!g)return u.NextResponse.json({success:!1,error:{message:`Database not found: ${f}`,type:z.wU.VALIDATION_ERROR}},{status:400});let h=g.database_name,i=g.migrations_dir?w.join(b,g.migrations_dir):w.join(b,"migrations"),j=await B(b,h,!1,i);return(0,y.s)("remote_push"),u.NextResponse.json({success:!0,message:"Successfully pushed migrations to remote",details:j})}catch(a){return console.error("Push to remote confirm error:",a),u.NextResponse.json({success:!1,error:{type:a.type||z.wU.EXECUTION_ERROR,message:a.message||"Failed to push to remote",details:a.details||{error:a.stderr||a.message}}},{status:a.type===z.wU.VALIDATION_ERROR?400:500})}}async function D(){return new u.NextResponse(null,{status:204})}c(51082);let E=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/push-remote/confirm/route",pathname:"/api/push-remote/confirm",filename:"route",bundlePath:"app/api/push-remote/confirm/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/push-remote/confirm/route.js",nextConfigOutput:"",userland:d}),{workAsyncStorage:F,workUnitAsyncStorage:G,serverHooks:H}=E;function I(){return(0,g.patchFetch)({workAsyncStorage:F,workUnitAsyncStorage:G})}async function J(a,b,c){var d;let e="/api/push-remote/confirm/route";"/index"===e&&(e="/");let g=await E.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:C}=g,D=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[D]||y.routes[C]);if(F&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||E.isDev||x||(G="/index"===(G=C)?"/":G);let H=!0===E.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)=>E.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=>E.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 E.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await E.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 E.onRequestError(a,b,{routerKind:"App Router",routePath:D,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}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},60627:(a,b,c)=>{c.d(b,{s:()=>j});var d=c(55511),e=c(29021),f=c(21820),g=c(33873);let h=(0,g.join)((0,f.homedir)(),".d1-studio"),i=(0,g.join)(h,"config.json");async function j(a,b){if(!process.env.D1_STUDIO_NO_TELEMETRY)try{await fetch("https://d1-studio.com/api/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({installId:function(){if((0,e.existsSync)(h)||(0,e.mkdirSync)(h,{recursive:!0}),(0,e.existsSync)(i))try{let a=JSON.parse((0,e.readFileSync)(i,"utf8"));if(a.installId)return a.installId}catch{}let a=(0,d.randomUUID)();return(0,e.writeFileSync)(i,JSON.stringify({installId:a})),a}(),event:a,version:b,node:process.version,platform:process.platform}),signal:AbortSignal.timeout(3e3)})}catch{}}},62435:(a,b,c)=>{c.d(b,{A8:()=>u,CM:()=>r,GS:()=>p,Gc:()=>v,JD:()=>o,Sl:()=>t,ai:()=>q,hI:()=>s,k0:()=>m});var d=c(79748),e=c(28354),f=c(79646),g=c(55511),h=c(33873),i=c(89827),j=c(40032),k=c(51082);let l=(0,e.promisify)(f.exec);async function m(a,b,c="local",d=!1){let e="remote"===c?"--remote":"--local",f="remote"===c?`
15
15
  CREATE TABLE IF NOT EXISTS d1_migrations (
16
16
  id INTEGER PRIMARY KEY AUTOINCREMENT,
17
17
  name TEXT NOT NULL UNIQUE,
@@ -24,16 +24,16 @@
24
24
  checksum TEXT NULL,
25
25
  applied_at DATETIME DEFAULT CURRENT_TIMESTAMP
26
26
  );
27
- `;try{await d(`wrangler d1 execute ${t} ${s} --command="${i.replace(/"/g,'\\"')}"`,{cwd:e}),a&&await d(`wrangler d1 execute ${t} ${s} --command="${"DELETE FROM d1_migrations;".replace(/"/g,'\\"')}"`,{cwd:e})}catch(e){throw p.A.error(`Failed to initialize migrations table in ${r}:`,e),e}}function m(e){let t=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,-3),r=e.type.toLowerCase().replace(/_/g,"-");if("CREATE_INDEX"===e.type){let r=e.description.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,"");return`${t}_create-index_${r}.sql`}{let a=`${t}_${{"create-table":"create-table","alter-table":"alter-table","drop-table":"drop-table","drop-index":"drop-index","create-view":"create-view","drop-view":"drop-view","add-foreign-key":"add-foreign-key","drop-foreign-key":"drop-foreign-key","add-constraint":"add-constraint","drop-constraint":"drop-constraint"}[r]||r}_${e.tableName}`;return"ALTER_TABLE"===e.type&&e.description&&(a+=`_${e.description}`),(a=a.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,""))+".sql"}}async function E(e){let t=await (0,a.readFile)(e,"utf8");try{let e=(0,l.By)(t);return(0,l.Gq)(e),{isValid:!0,statement:e}}catch(e){return{isValid:!1,errors:e}}}async function T(e,t,r){try{let a=await (0,l.KK)(e,t,"SELECT name, applied_at FROM d1_migrations ORDER BY applied_at;",r,!0);if("string"==typeof a){let e=a.indexOf("[");if(-1!==e){let t=a.substring(e),r=JSON.parse(t);return r[0]?.results||[]}}return[]}catch(t){let e=[t.message,t.details?.originalError,t.details?.stderr,t.details?.stdout].filter(Boolean).join(" ");if(e.includes("no such table")||e.includes("d1_migrations"))return[];throw{type:l.wU.EXECUTION_ERROR,message:"Failed to get remote migrations",details:{error:e||"Failed to execute SQL command",suggestions:["Check remote database permissions","Verify credentials and connection"]}}}}async function g(e,t,{name:r,checksum:a},s="local"){let i="remote"===s?"--remote":"--local";if("local"===s&&a)try{await d(`wrangler d1 execute ${t} ${i} --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:e}).catch(()=>!1)||await d(`wrangler d1 execute ${t} ${i} --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:e})}catch(e){}let o="remote"!==s&&a?`
27
+ `;try{await l(`wrangler d1 execute ${b} ${e} --command="${f.replace(/"/g,'\\"')}"`,{cwd:a}),d&&await l(`wrangler d1 execute ${b} ${e} --command="${"DELETE FROM d1_migrations;".replace(/"/g,'\\"')}"`,{cwd:a})}catch(a){throw k.A.error(`Failed to initialize migrations table in ${c}:`,a),a}}function n(a){let b=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,-3),c=a.type.toLowerCase().replace(/_/g,"-");if("CREATE_INDEX"===a.type){let c=a.description.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,"");return`${b}_create-index_${c}.sql`}{let d=`${b}_${{"create-table":"create-table","alter-table":"alter-table","drop-table":"drop-table","drop-index":"drop-index","create-view":"create-view","drop-view":"drop-view","add-foreign-key":"add-foreign-key","drop-foreign-key":"drop-foreign-key","add-constraint":"add-constraint","drop-constraint":"drop-constraint"}[c]||c}_${a.tableName}`;return"ALTER_TABLE"===a.type&&a.description&&(d+=`_${a.description}`),(d=d.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,""))+".sql"}}async function o(a){let b=await (0,d.readFile)(a,"utf8");try{let a=(0,i.By)(b);return(0,i.Gq)(a),{isValid:!0,statement:a}}catch(a){return{isValid:!1,errors:a}}}async function p(a,b,c){try{let d=await (0,i.KK)(a,b,"SELECT name, applied_at FROM d1_migrations ORDER BY applied_at;",c,!0);if("string"==typeof d){let a=d.indexOf("[");if(-1!==a){let b=d.substring(a),c=JSON.parse(b);return c[0]?.results||[]}}return[]}catch(b){let a=[b.message,b.details?.originalError,b.details?.stderr,b.details?.stdout].filter(Boolean).join(" ");if(a.includes("no such table")||a.includes("d1_migrations"))return[];throw{type:i.wU.EXECUTION_ERROR,message:"Failed to get remote migrations",details:{error:a||"Failed to execute SQL command",suggestions:["Check remote database permissions","Verify credentials and connection"]}}}}async function q(a,b,{name:c,checksum:d},e="local"){let f="remote"===e?"--remote":"--local";if("local"===e&&d)try{await l(`wrangler d1 execute ${b} ${f} --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:a}).catch(()=>!1)||await l(`wrangler d1 execute ${b} ${f} --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:a})}catch(a){}let g="remote"!==e&&d?`
28
28
  INSERT OR REPLACE INTO d1_migrations (name, checksum, applied_at)
29
- VALUES ('${r}', '${a}', CURRENT_TIMESTAMP);
29
+ VALUES ('${c}', '${d}', CURRENT_TIMESTAMP);
30
30
  `:`
31
31
  INSERT OR REPLACE INTO d1_migrations (name, applied_at)
32
- VALUES ('${r}', CURRENT_TIMESTAMP);
33
- `;try{await d(`wrangler d1 execute ${t} ${i} --command="${o.replace(/"/g,'\\"')}"`,{cwd:e})}catch(e){throw p.A.error("Failed to track migration:",e),e}}async function R(e,t,{name:r,checksum:a},s={},i=!1){let o=i||!a?`
32
+ VALUES ('${c}', CURRENT_TIMESTAMP);
33
+ `;try{await l(`wrangler d1 execute ${b} ${f} --command="${g.replace(/"/g,'\\"')}"`,{cwd:a})}catch(a){throw k.A.error("Failed to track migration:",a),a}}async function r(a,b,{name:c,checksum:d},e={},f=!1){let g=f||!d?`
34
34
  INSERT OR REPLACE INTO d1_migrations (name, applied_at)
35
- VALUES ('${r}', CURRENT_TIMESTAMP);
35
+ VALUES ('${c}', CURRENT_TIMESTAMP);
36
36
  `:`
37
37
  INSERT OR REPLACE INTO d1_migrations (name, checksum, applied_at)
38
- VALUES ('${r}', '${a}', CURRENT_TIMESTAMP);
39
- `;try{await (0,l.KK)(e,t,o,s,i)}catch(e){throw{type:l.wU.EXECUTION_ERROR,message:`Failed to record migration ${r}`,details:{file:r,error:e.message,suggestions:["Check if migration is already recorded"]}}}}async function f(e,t){try{let r=await T(e,t,{}),a=new Map(r.map(e=>[e.name,e]));return{applied:Array.from(a.keys()),count:a.size}}catch(e){throw p.A.error("Failed to compare migrations:",e),e}}function h(e){return(0,o.createHash)("sha256").update(e).digest("hex")}async function w(e,t){try{await d(`wrangler d1 execute ${t} --local --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:e})}catch{try{await d(`wrangler d1 execute ${t} --local --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:e})}catch{}}}async function y(e,t,r){try{let s=n.join(e,"migrations");await (0,a.mkdir)(s,{recursive:!0});let i=[],o=[],p=[];for(let e of r)e.type===l.Pg.DATA_MODIFICATION?p.push(e):o.push(e);let d=new Map,u="__no_table__";for(let e of o){let t=e.tableName?e.tableName.toLowerCase():u;d.has(t)||d.set(t,[]),d.get(t).push(e)}let E=[...d.keys()].filter(e=>e!==u),T=[];if(E.length>0){let e=E.map(e=>d.get(e)[0]);T=(0,c.IC)(e)}for(let r of T){for(let o of d.get(r)||[])try{if(o.type===l.Pg.DROP_TABLE&&!await (0,l.F9)(e,t,{},o.tableName,!1))throw Error(`no such table: ${o.tableName}`);let r=await (0,l.KK)(e,t,o.sql);if(r&&(r.toLowerCase().includes("syntax error")||r.toLowerCase().includes("sqlite_error")))throw Error(r);let c=m(o),p=n.join(s,c),d=(0,l.tn)(o.sql);await (0,a.writeFile)(p,d,"utf8");let u=h(o.sql);await g(e,t,{name:c,checksum:u},"local"),i.push({type:o.type,table:o.tableName,migration:c,checksum:u})}catch(e){throw e}d.delete(r)}if(d.has(u))for(let r of d.get(u))try{await (0,l.KK)(e,t,r.sql);let o=m(r),c=n.join(s,o),p=(0,l.tn)(r.sql);await (0,a.writeFile)(c,p,"utf8");let d=h(r.sql);await g(e,t,{name:o,checksum:d},"local"),i.push({type:r.type,table:r.tableName||null,migration:o,checksum:d})}catch(e){throw e}for(let r of p)try{await (0,l.KK)(e,t,r.sql),i.push({type:r.type,table:r.tableName||null,executed:!0})}catch(e){throw e}return i}catch(e){throw e}}},565:(e,t,r)=>{r.d(t,{s:()=>c});var a=r(5511),s=r(9021),i=r(1820),o=r(3873);let n=(0,o.join)((0,i.homedir)(),".d1-studio"),l=(0,o.join)(n,"config.json");async function c(e,t){if(!process.env.D1_STUDIO_NO_TELEMETRY)try{await fetch("https://d1-studio.com/api/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({installId:function(){if((0,s.existsSync)(n)||(0,s.mkdirSync)(n,{recursive:!0}),(0,s.existsSync)(l))try{let e=JSON.parse((0,s.readFileSync)(l,"utf8"));if(e.installId)return e.installId}catch{}let e=(0,a.randomUUID)();return(0,s.writeFileSync)(l,JSON.stringify({installId:e})),e}(),event:e,version:t,node:process.version,platform:process.platform}),signal:AbortSignal.timeout(3e3)})}catch{}}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[994,452,391,226],()=>r(2055));module.exports=a})();
38
+ VALUES ('${c}', '${d}', CURRENT_TIMESTAMP);
39
+ `;try{await (0,i.KK)(a,b,g,e,f)}catch(a){throw{type:i.wU.EXECUTION_ERROR,message:`Failed to record migration ${c}`,details:{file:c,error:a.message,suggestions:["Check if migration is already recorded"]}}}}async function s(a,b){try{let c=await p(a,b,{}),d=new Map(c.map(a=>[a.name,a]));return{applied:Array.from(d.keys()),count:d.size}}catch(a){throw k.A.error("Failed to compare migrations:",a),a}}function t(a){return(0,g.createHash)("sha256").update(a).digest("hex")}async function u(a,b){try{await l(`wrangler d1 execute ${b} --local --command="SELECT checksum FROM d1_migrations LIMIT 1;"`,{cwd:a})}catch{try{await l(`wrangler d1 execute ${b} --local --command="ALTER TABLE d1_migrations ADD COLUMN checksum TEXT;"`,{cwd:a})}catch{}}}async function v(a,b,c){try{let e=h.join(a,"migrations");await (0,d.mkdir)(e,{recursive:!0});let f=[],g=[],k=[];for(let a of c)a.type===i.Pg.DATA_MODIFICATION?k.push(a):g.push(a);let l=new Map,m="__no_table__";for(let a of g){let b=a.tableName?a.tableName.toLowerCase():m;l.has(b)||l.set(b,[]),l.get(b).push(a)}let o=[...l.keys()].filter(a=>a!==m),p=[];if(o.length>0){let a=o.map(a=>l.get(a)[0]);p=(0,j.IC)(a)}for(let c of p){for(let g of l.get(c)||[])try{if(g.type===i.Pg.DROP_TABLE&&!await (0,i.F9)(a,b,{},g.tableName,!1))throw Error(`no such table: ${g.tableName}`);let c=await (0,i.KK)(a,b,g.sql);if(c&&(c.toLowerCase().includes("syntax error")||c.toLowerCase().includes("sqlite_error")))throw Error(c);let j=n(g),k=h.join(e,j),l=(0,i.tn)(g.sql);await (0,d.writeFile)(k,l,"utf8");let m=t(g.sql);await q(a,b,{name:j,checksum:m},"local"),f.push({type:g.type,table:g.tableName,migration:j,checksum:m})}catch(a){throw a}l.delete(c)}if(l.has(m))for(let c of l.get(m))try{await (0,i.KK)(a,b,c.sql);let g=n(c),j=h.join(e,g),k=(0,i.tn)(c.sql);await (0,d.writeFile)(j,k,"utf8");let l=t(c.sql);await q(a,b,{name:g,checksum:l},"local"),f.push({type:c.type,table:c.tableName||null,migration:g,checksum:l})}catch(a){throw a}for(let c of k)try{await (0,i.KK)(a,b,c.sql),f.push({type:c.type,table:c.tableName||null,executed:!0})}catch(a){throw a}return f}catch(a){throw a}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81630:a=>{a.exports=require("http")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[873,692,347,626],()=>b(b.s=3733));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/226.js","../../../../chunks/391.js","../../../../chunks/452.js","../../../../chunks/487.js","../../../../chunks/994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/347.js","../../../../chunks/366.js","../../../../chunks/626.js","../../../../chunks/692.js","../../../../chunks/873.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/push-remote/confirm/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"33":{"*":{"id":"2899","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"7174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"7190","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"3875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"8903","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"4178","name":"*","chunks":[],"async":false}},"6124":{"*":{"id":"2652","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"1365","name":"*","chunks":[],"async":false}},"6311":{"*":{"id":"7098","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"6959","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"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":5613,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.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":7207,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/globals.css":{"id":347,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/components/ui/toaster.jsx":{"id":6124,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/context/database-context.js":{"id":33,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","92","static/chunks/92-a84bdac2be7c8d7a.js","480","static/chunks/480-85b6c8ae3f51b156.js","177","static/chunks/app/layout-f0ec4d636ee0f763.js"],"async":false},"/Volumes/ProjectSpace/_wip/d1studio/src/app/page.jsx":{"id":6311,"name":"*","chunks":["692","static/chunks/692-9e59d546afd11ec3.js","803","static/chunks/803-a2fcfbd00e6b3b38.js","480","static/chunks/480-85b6c8ae3f51b156.js","974","static/chunks/app/page-6bcbc40fdbc40128.js"],"async":false}},"entryCSSFiles":{"/Volumes/ProjectSpace/_wip/d1studio/src/":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/layout":[{"inlined":false,"path":"static/css/2c165a0ede9b2442.css"}],"/Volumes/ProjectSpace/_wip/d1studio/src/app/page":[],"/Volumes/ProjectSpace/_wip/d1studio/src/app/api/push-remote/confirm/route":[]},"rscModuleMapping":{"33":{"*":{"id":"1831","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"8530","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"4863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"5155","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6124":{"*":{"id":"3164","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"8921","name":"*","chunks":[],"async":false}},"6311":{"*":{"id":"8868","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"3219","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/push-remote/confirm/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-4170252891367dde.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/push-remote/confirm/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":{}}