@xano/sdk 1.0.2 → 1.0.4

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 (247) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/.build-fingerprint +1 -1
  3. package/dist/{agent-file-refresh-E6VSDB2M.js → agent-file-refresh-LB6KIMFY.js} +10 -10
  4. package/dist/{answer-shape-BOZSUUBR.js → answer-shape-LVV2SVBK.js} +5 -5
  5. package/dist/{backend-dir-5ER5P65P.js → backend-dir-WZADOK3L.js} +10 -10
  6. package/dist/{backend-slot-7EYY7DU5.js → backend-slot-NSCTWCUX.js} +4 -4
  7. package/dist/bin.js +62 -61
  8. package/dist/{branch-2W7SCLTJ.js → branch-ONWPJ4V6.js} +9 -9
  9. package/dist/branch-commands-ZT2MJIRS.js +79 -0
  10. package/dist/bundle.js +7 -7
  11. package/dist/{capture-WAXPD7DR.js → capture-3JNUA6C2.js} +5 -5
  12. package/dist/{chunk-2YH2I6RA.js → chunk-2AUV6NXK.js} +14 -14
  13. package/dist/{chunk-PGBSDRT4.js → chunk-2B22WWKL.js} +29 -29
  14. package/dist/{chunk-R3X7ECBS.js → chunk-2LVTBPW2.js} +3 -3
  15. package/dist/{chunk-PCJLL36N.js → chunk-37AHZ7JX.js} +6 -6
  16. package/dist/{chunk-4PCJEHA4.js → chunk-37FBPMNE.js} +4 -4
  17. package/dist/{chunk-CNYP6X7Q.js → chunk-3FN2BIGB.js} +11 -12
  18. package/dist/{chunk-5JULOSEF.js → chunk-3H3EPMFY.js} +2 -2
  19. package/dist/{chunk-YP5ME5RT.js → chunk-3HOGFGKG.js} +30 -3
  20. package/dist/{chunk-C3YIYEWR.js → chunk-3P3HXN76.js} +7 -7
  21. package/dist/{chunk-NSE7BZB6.js → chunk-44B4V2LR.js} +72 -72
  22. package/dist/{chunk-WPTLUJJR.js → chunk-45YPFB7B.js} +50 -50
  23. package/dist/{chunk-ZDPP6RKB.js → chunk-45ZUMF4E.js} +2 -2
  24. package/dist/{chunk-FEQICT4D.js → chunk-4APOHK7Y.js} +2 -2
  25. package/dist/{chunk-TTEIYD5P.js → chunk-4DJTQ6W4.js} +1 -1
  26. package/dist/{chunk-CIMQZRRE.js → chunk-4MIV244X.js} +3 -3
  27. package/dist/{chunk-G5IW3EYW.js → chunk-4PQHO74B.js} +26 -15
  28. package/dist/{chunk-MPSVU34E.js → chunk-5T2CTWTB.js} +6 -6
  29. package/dist/{chunk-IWGNIWQX.js → chunk-5W7DOMIU.js} +13 -13
  30. package/dist/{chunk-FLLBK7EH.js → chunk-5WGVIXMD.js} +3 -3
  31. package/dist/{chunk-7THLGPVA.js → chunk-5YL5OC2G.js} +12 -12
  32. package/dist/{chunk-VTLE2QDY.js → chunk-664LSWE5.js} +4 -4
  33. package/dist/{chunk-6RIKXG5I.js → chunk-6JAEMMZ7.js} +5 -5
  34. package/dist/{chunk-JGE7CAWB.js → chunk-6R7S775T.js} +2 -2
  35. package/dist/{chunk-GQ4PMMCQ.js → chunk-6VBTPV2Y.js} +3 -3
  36. package/dist/{chunk-SZOCJRFC.js → chunk-7GX445AE.js} +2 -2
  37. package/dist/{chunk-DBZASBQS.js → chunk-7KPKDHHI.js} +3 -3
  38. package/dist/{chunk-JZCR3EQM.js → chunk-7PMVIHB3.js} +20 -20
  39. package/dist/{chunk-27GWNP2I.js → chunk-7THDHQ4R.js} +9 -2
  40. package/dist/{chunk-YU4HSQW7.js → chunk-A2AOUBJS.js} +15 -8
  41. package/dist/{chunk-JIEZZ5QU.js → chunk-A6QTTJUI.js} +2 -2
  42. package/dist/{chunk-GGZILEUD.js → chunk-BEXZ4XRV.js} +2 -2
  43. package/dist/{chunk-SSK5OWT6.js → chunk-BUECLQXK.js} +4 -4
  44. package/dist/{chunk-VSL7ET5S.js → chunk-BUJRS7XB.js} +3 -3
  45. package/dist/{chunk-LZZ7HN4L.js → chunk-C4FHQA7R.js} +8 -8
  46. package/dist/{chunk-FAGYIOLE.js → chunk-CBYQ2ZN3.js} +5 -5
  47. package/dist/{chunk-L3LYWXVE.js → chunk-CFSFBKHP.js} +2 -2
  48. package/dist/{chunk-6EJQ4EJ7.js → chunk-CYB7UQA2.js} +2 -2
  49. package/dist/{chunk-PFFXX6YU.js → chunk-D5ZEAF4G.js} +42 -42
  50. package/dist/{chunk-SZCQ2HVH.js → chunk-D64XUF5Q.js} +2 -2
  51. package/dist/{chunk-36X3OZKU.js → chunk-DIG3NITC.js} +3 -3
  52. package/dist/{chunk-VIPK7FHI.js → chunk-DYG5D3FD.js} +2 -2
  53. package/dist/{chunk-FFDZFVBD.js → chunk-E65QIWOO.js} +4 -4
  54. package/dist/{chunk-DMD5I36N.js → chunk-E6H5ZEV3.js} +3 -3
  55. package/dist/{chunk-LQCMKAJ7.js → chunk-EESV6NU2.js} +3 -3
  56. package/dist/{chunk-VVE3C2X6.js → chunk-EOIJ7MVW.js} +3 -3
  57. package/dist/{chunk-2DH7VTO5.js → chunk-ESZ2FF57.js} +220 -71
  58. package/dist/{chunk-BPJIHLP2.js → chunk-ET5DSBAC.js} +8 -8
  59. package/dist/{chunk-5WGGTU5K.js → chunk-ETAZIGNT.js} +5 -5
  60. package/dist/{chunk-6X2I2WMV.js → chunk-EWCDPFW5.js} +4 -4
  61. package/dist/{chunk-YZ2UIG2K.js → chunk-FJWZ5OVV.js} +3 -3
  62. package/dist/{chunk-JWW4KU7T.js → chunk-FMOEVAGT.js} +2 -2
  63. package/dist/{chunk-Z6LUIVLY.js → chunk-FPBGAT5D.js} +2 -2
  64. package/dist/{chunk-2Y4X2VLM.js → chunk-GPI3OWRE.js} +8 -3
  65. package/dist/{chunk-D2JAPAQL.js → chunk-HHW5AWVD.js} +8 -8
  66. package/dist/{chunk-DTZSOJ6M.js → chunk-HMLGM2MW.js} +4 -4
  67. package/dist/{chunk-5KDJCQEU.js → chunk-HSEQYBDO.js} +2 -2
  68. package/dist/{chunk-XNHEGBBT.js → chunk-HUSH7LRI.js} +3 -3
  69. package/dist/{chunk-GME75QO6.js → chunk-I2BGYNHD.js} +4 -4
  70. package/dist/{chunk-XVBGLISP.js → chunk-ICK36EGF.js} +2 -2
  71. package/dist/{chunk-WT7XRC6A.js → chunk-II747OWE.js} +45 -45
  72. package/dist/{chunk-DPDHBJNI.js → chunk-IJ3SXSZM.js} +5 -5
  73. package/dist/{chunk-AHPEGODA.js → chunk-IVKRT476.js} +2 -2
  74. package/dist/{chunk-P7MBT4LJ.js → chunk-IXUPUFCG.js} +2 -2
  75. package/dist/{chunk-P7PYN6HI.js → chunk-JP7M7OU7.js} +3 -3
  76. package/dist/{chunk-QVZYYBVY.js → chunk-KCAL4QYP.js} +4 -4
  77. package/dist/{chunk-S3SV2BE7.js → chunk-KTGRGWZW.js} +7 -7
  78. package/dist/{chunk-5G5J5YRO.js → chunk-KUTFFHUM.js} +2 -2
  79. package/dist/{chunk-DRRJCODW.js → chunk-L2GLOJAO.js} +8 -8
  80. package/dist/{chunk-MOELGXVV.js → chunk-LIVN53UV.js} +13 -13
  81. package/dist/{chunk-NZOWWHU5.js → chunk-LL6ED5IB.js} +2 -2
  82. package/dist/{chunk-5RA4BBJL.js → chunk-LUTMOHOW.js} +8 -8
  83. package/dist/{chunk-G4PFESPY.js → chunk-LXNQWHZM.js} +3 -3
  84. package/dist/{chunk-D3YR6AIZ.js → chunk-MCTIKRMN.js} +7 -7
  85. package/dist/{chunk-VGV2RF5X.js → chunk-MEE5RZ6G.js} +2 -2
  86. package/dist/{chunk-GSCW6RMU.js → chunk-MLGI2SRQ.js} +4 -4
  87. package/dist/{chunk-WP4N63FZ.js → chunk-MLPDSGJQ.js} +5 -5
  88. package/dist/{chunk-PYT3DC4G.js → chunk-MN2PB6WB.js} +2 -2
  89. package/dist/{chunk-2UN4TGBK.js → chunk-MNVDVR3M.js} +4 -4
  90. package/dist/{chunk-ZP6QRKZX.js → chunk-O5V3YH5P.js} +8 -8
  91. package/dist/{chunk-WQCL3AV7.js → chunk-O7QOWS6M.js} +3 -3
  92. package/dist/{chunk-YYLRKWCZ.js → chunk-OGBMUST4.js} +14 -14
  93. package/dist/{chunk-6MR5TI5V.js → chunk-OOGXZL7Z.js} +2 -2
  94. package/dist/{chunk-EDCCKH7Y.js → chunk-OPG4DYX2.js} +90 -48
  95. package/dist/{chunk-TAHRVKKZ.js → chunk-PML67X22.js} +3 -3
  96. package/dist/{chunk-CALOC47J.js → chunk-QAEQGT5I.js} +7 -7
  97. package/dist/{chunk-OJLJA3XM.js → chunk-QV3GXQRE.js} +2 -2
  98. package/dist/{chunk-TLQE7ZN3.js → chunk-RX3EMQGN.js} +2 -2
  99. package/dist/{chunk-5OT4QGGZ.js → chunk-S7E2AHV3.js} +4 -4
  100. package/dist/{chunk-JZEWT7NY.js → chunk-SBR2WZXG.js} +4 -4
  101. package/dist/{chunk-RJOGX6LA.js → chunk-SEUCZZCP.js} +2 -2
  102. package/dist/{chunk-VUVPZYMM.js → chunk-T4DUFQ2S.js} +4 -4
  103. package/dist/{chunk-IG5QQQSA.js → chunk-TTVAHCWP.js} +2 -2
  104. package/dist/{chunk-GUKT7QYA.js → chunk-UDE5C2XN.js} +2 -2
  105. package/dist/{chunk-AKNCFVKZ.js → chunk-UDZX2ZL4.js} +1 -1
  106. package/dist/{chunk-NWKXM5RD.js → chunk-UI4OPTYR.js} +2 -2
  107. package/dist/{chunk-EJ3JCML2.js → chunk-UKUIUS3E.js} +4 -4
  108. package/dist/{chunk-HYAI62TU.js → chunk-UVF45BVU.js} +14 -9
  109. package/dist/{chunk-P2HAGF6H.js → chunk-VD32O6KZ.js} +3 -3
  110. package/dist/{chunk-ZH4O6RWX.js → chunk-VRVKNY4A.js} +7 -7
  111. package/dist/{chunk-4POWHT2K.js → chunk-VTMTIBKP.js} +8 -7
  112. package/dist/{chunk-OY4PS6SO.js → chunk-W5ONYLOP.js} +4 -4
  113. package/dist/{chunk-BTR2EQ4T.js → chunk-WFG67AYS.js} +3 -3
  114. package/dist/{chunk-CSKYCZMO.js → chunk-WFMVKY7I.js} +7 -7
  115. package/dist/{chunk-JXUBSUQY.js → chunk-WOGJB2F6.js} +66 -18
  116. package/dist/{chunk-HDIISRNY.js → chunk-WYEQFD6A.js} +87 -87
  117. package/dist/{chunk-FXFV3KU6.js → chunk-XMDDBEEM.js} +10 -6
  118. package/dist/{chunk-7K6A4O2T.js → chunk-XXZZGXW2.js} +3 -3
  119. package/dist/{chunk-64AYI7QR.js → chunk-Y2ZLKBM6.js} +4 -4
  120. package/dist/{chunk-ZNTK4GCI.js → chunk-ZG7E72VI.js} +6 -6
  121. package/dist/chunk-ZY55DO5P.js +24 -0
  122. package/dist/cli.d.ts +2 -2
  123. package/dist/cli.js +60 -59
  124. package/dist/{codegen-command-VO3RQTFX.js → codegen-command-HTWIW56U.js} +77 -76
  125. package/dist/codegen.d.ts +5 -3
  126. package/dist/codegen.js +10 -6
  127. package/dist/{commands-QZERBFE2.js → commands-CVFYC4GK.js} +3 -3
  128. package/dist/{completion-6EKRFJJG.js → completion-AUEQC4XJ.js} +3 -3
  129. package/dist/{config-PZIRRUP6.js → config-JU6OQC77.js} +4 -4
  130. package/dist/{deploy-command-UGJPAXFQ.js → deploy-command-5WTFHMBT.js} +67 -66
  131. package/dist/{deploy-source-N6DMS2C5.js → deploy-source-5CET3A5D.js} +31 -31
  132. package/dist/{dev-env-sync-EM4DWMN7.js → dev-env-sync-X636HLMK.js} +61 -60
  133. package/dist/{diagnostics-NSTYAWWN.js → diagnostics-LSMGB4TY.js} +2 -2
  134. package/dist/{display-name-hint-WT4SRTLI.js → display-name-hint-DMORHANO.js} +11 -11
  135. package/dist/{emit-BWGtkkOK.d.ts → emit-hOFbgzde.d.ts} +19 -15
  136. package/dist/env-example-refresh-ZO6XAV44.js +127 -0
  137. package/dist/{env-pull-command-OHNICDTL.js → env-pull-command-WZZ7RL2E.js} +51 -51
  138. package/dist/{env-target-5QFU2TR5.js → env-target-PO3MOLH5.js} +14 -14
  139. package/dist/{env-var-command-AZCWUGI5.js → env-var-command-YKTJZFJN.js} +40 -40
  140. package/dist/{ephemeral-76VMMZOU.js → ephemeral-BMFY55BQ.js} +9 -9
  141. package/dist/{ephemeral-command-EOAMMY3V.js → ephemeral-command-VDSQCOYL.js} +52 -52
  142. package/dist/{ephemeral-state-RRGJZBVF.js → ephemeral-state-6TY4JIPA.js} +12 -12
  143. package/dist/{generate-command-LPX3ATV6.js → generate-command-3NTNRQRS.js} +81 -80
  144. package/dist/{gitignore-BPYA5H34.js → gitignore-FWPEDX6C.js} +14 -14
  145. package/dist/{guards-FFQY3XAT.js → guards-EJU2ONAX.js} +17 -14
  146. package/dist/{impersonate-command-HLL2FKSY.js → impersonate-command-QEJA72Q2.js} +36 -36
  147. package/dist/{import-BG36DYZI.js → import-TBTOTU52.js} +5 -5
  148. package/dist/index.d.ts +151 -9
  149. package/dist/index.js +27 -26
  150. package/dist/init-command-27SFBW2F.js +126 -0
  151. package/dist/{init-modules-AAH2UPHQ.js → init-modules-HZRQFRLE.js} +8 -8
  152. package/dist/{init-web-YBUM2BD5.js → init-web-Y2PBNJTQ.js} +3 -3
  153. package/dist/internal.d.ts +5 -5
  154. package/dist/internal.js +38 -31
  155. package/dist/{io-RC56QSN5.js → io-ZUKAGFVE.js} +6 -6
  156. package/dist/{keep-data-merge-DQR6L5FV.js → keep-data-merge-X5LDDCI3.js} +39 -38
  157. package/dist/{landed-753YLJ5H.js → landed-6VO7CX5P.js} +5 -5
  158. package/dist/{landing-record-HWZTBTTP.js → landing-record-QYECWLQ5.js} +21 -21
  159. package/dist/{live-diff-VJGPLS3E.js → live-diff-2S7E3SBZ.js} +15 -15
  160. package/dist/{local-engine-choice-QDOR72VD.js → local-engine-choice-6BSPEG3E.js} +34 -34
  161. package/dist/{local-engine-command-CJKBG5M4.js → local-engine-command-HMTQK7MN.js} +39 -39
  162. package/dist/{local-engine-deploy-ACJTJ7X5.js → local-engine-deploy-TXAOYRGF.js} +12 -12
  163. package/dist/{local-engine-process-ZJUPJ7VJ.js → local-engine-process-6VZ7JJBP.js} +7 -7
  164. package/dist/{local-engine-update-check-REGHKVK7.js → local-engine-update-check-R5SPDVEJ.js} +5 -5
  165. package/dist/{lock-MRRHW5GS.js → lock-TS465GVY.js} +4 -4
  166. package/dist/{lock-commands-XTMBIWGO.js → lock-commands-4VT3L5W5.js} +67 -66
  167. package/dist/{login-command-QSNMIG4D.js → login-command-O6WA4FYL.js} +26 -26
  168. package/dist/{logout-command-AL54YZDB.js → logout-command-6CPWGFY2.js} +17 -17
  169. package/dist/{loop-XLJ7S37B.js → loop-UFHKSOQ4.js} +16 -16
  170. package/dist/{marketplace-command-UHZXGJMH.js → marketplace-command-HKACSYKS.js} +29 -29
  171. package/dist/{marketplace-resolve-4RQQ46LA.js → marketplace-resolve-KLFYVRWS.js} +6 -6
  172. package/dist/{meta-client-FFNDXZCQ.js → meta-client-73PX6UGJ.js} +15 -15
  173. package/dist/{module-manifest-TTQAEXPS.js → module-manifest-GIKFNXPE.js} +4 -4
  174. package/dist/node.d.ts +6 -6
  175. package/dist/node.js +69 -68
  176. package/dist/operation-outcome-2P4BVSEV.js +51 -0
  177. package/dist/{output-target-MVKAEPEI.js → output-target-SZMBNYF4.js} +15 -15
  178. package/dist/{plan-disclosure-ZDZISUWI.js → plan-disclosure-BHYG7TZ7.js} +29 -29
  179. package/dist/{plugin-contributions-3O2MOX3B.js → plugin-contributions-X4V22PJQ.js} +5 -5
  180. package/dist/{plugin-prompt-4ELLDFBD.js → plugin-prompt-DKNQHW6Y.js} +5 -5
  181. package/dist/{plugin-questions-JTRIFEHW.js → plugin-questions-CQRVOWFK.js} +4 -4
  182. package/dist/{preflight-command-4FFDUHNT.js → preflight-command-EBQ6XQF3.js} +74 -73
  183. package/dist/{profile-command-XV4JXLIJ.js → profile-command-NPKBJYPM.js} +27 -27
  184. package/dist/{profile-pointer-RKGBAGY6.js → profile-pointer-UOO7JNFG.js} +4 -4
  185. package/dist/{project-dependency-X7RULUFH.js → project-dependency-RRMTWOPC.js} +7 -7
  186. package/dist/{project-sdk-JYV7APT5.js → project-sdk-FOR4IOXL.js} +4 -4
  187. package/dist/promote-command-4F2NAE6P.js +141 -0
  188. package/dist/{prompt-SYH2EYXM.js → prompt-5GUQTCSP.js} +4 -4
  189. package/dist/{publish-command-KZOCPBMT.js → publish-command-LGLZBOCB.js} +70 -69
  190. package/dist/pull-command-WQFPLITW.js +162 -0
  191. package/dist/{pull-superseded-B7SOPA2M.js → pull-superseded-GGURV5J3.js} +4 -4
  192. package/dist/{response-HlXahv4K.d.ts → raw-where-EoWl5fqY.d.ts} +27 -5
  193. package/dist/release-command-2OTNVMIL.js +147 -0
  194. package/dist/{release-ns-command-TCPT6N4H.js → release-ns-command-EIBN3JVM.js} +95 -94
  195. package/dist/{retry-command-5PNYSQFN.js → retry-command-Y5YJGOH3.js} +8 -8
  196. package/dist/{routes-manifest-UPZQIGKC.js → routes-manifest-3BNZIVST.js} +17 -17
  197. package/dist/{secrets-file-6524YY62.js → secrets-file-FUG7WCES.js} +14 -14
  198. package/dist/{secrets-fill-command-VX3TIYHL.js → secrets-fill-command-QEOCUOAY.js} +64 -63
  199. package/dist/{seed-HBA6FWRQ.js → seed-GJHJSEUE.js} +13 -12
  200. package/dist/{source-resolve-ACQV343A.js → source-resolve-DMDZVPMM.js} +22 -22
  201. package/dist/{static-host-SFDXSHYY.js → static-host-WM24RG25.js} +5 -5
  202. package/dist/{status-command-X7W7PRWM.js → status-command-XUH5OGQX.js} +37 -37
  203. package/dist/{store-DVvwC4C4.d.ts → store-CfgPaVPO.d.ts} +116 -8
  204. package/dist/{store-CW5SHKXC.js → store-MR7IKXKK.js} +6 -6
  205. package/dist/{sync-contributions-VN2IEVBA.js → sync-contributions-DHP7XSTX.js} +9 -9
  206. package/dist/{table-K5YSS6MV.js → table-ZBDPKMNH.js} +12 -11
  207. package/dist/{tables-command-CJ5TF5JO.js → tables-command-X3JK7VSK.js} +40 -39
  208. package/dist/{tenant-TDTYXUGJ.js → tenant-GKXMOYLK.js} +10 -10
  209. package/dist/{tenant-command-SJDTSWGV.js → tenant-command-P27EQHBU.js} +98 -97
  210. package/dist/{test-command-4ICR3BPL.js → test-command-A4G2FP7G.js} +35 -35
  211. package/dist/{tests-NQYQJQWY.js → tests-C55M5EQS.js} +6 -6
  212. package/dist/{token-JMW2GNLV.js → token-CMAB35GD.js} +13 -13
  213. package/dist/{toolchain-hooks-VUCFFZ7A.js → toolchain-hooks-BGZBDFAT.js} +3 -3
  214. package/dist/{toolchain-modules-J7FUTUTL.js → toolchain-modules-3M7QDJBV.js} +5 -5
  215. package/dist/{tracked-backend-GOVQ4OGJ.js → tracked-backend-PZGUWD5J.js} +33 -33
  216. package/dist/update-check-LNNKIMML.js +137 -0
  217. package/dist/{upgrade-command-MWP5JE5V.js → upgrade-command-7EUXML3P.js} +65 -64
  218. package/dist/{whoami-command-URRENPGI.js → whoami-command-KNWFWAX6.js} +16 -16
  219. package/dist/{workspace-LLYL5FMC.js → workspace-TGPYOODG.js} +5 -5
  220. package/dist/{workspace-binding-DJQ5HZKG.js → workspace-binding-2TWZBHQY.js} +15 -15
  221. package/dist/{workspace-command-LZJPHSVH.js → workspace-command-T7Z2BDHD.js} +91 -90
  222. package/dist/{workspace-env-M5GF3UPN.js → workspace-env-VA7XN3UX.js} +11 -11
  223. package/dist/{workspace-export-ME52ELKP.js → workspace-export-AIGM6LC7.js} +5 -5
  224. package/dist/{writable-RQGBSRG6.js → writable-FYJBTJOU.js} +4 -4
  225. package/dist/xano-BSHYVFSE.js +43 -0
  226. package/dist/{xanosdk-import-PYZC3KWN.js → xanosdk-import-J6SRBZHW.js} +10 -10
  227. package/dist/{xanosdk-project-TWV27WO2.js → xanosdk-project-6KTCO47O.js} +12 -12
  228. package/guides/codes.md +2 -1
  229. package/guides/environment.md +1 -1
  230. package/guides/marketplace.md +7 -4
  231. package/llms/lambda.md +1 -1
  232. package/llms/legacy.md +9 -3
  233. package/llms/statements-data.md +1 -0
  234. package/llms/statements-runtime.md +1 -0
  235. package/llms-full.txt +13 -5
  236. package/llms.txt +1 -1
  237. package/manifest.json +1 -1
  238. package/package.json +1 -1
  239. package/dist/branch-commands-BNQUXQW2.js +0 -79
  240. package/dist/env-example-refresh-KJEKKD2S.js +0 -126
  241. package/dist/init-command-BC77KHUS.js +0 -125
  242. package/dist/operation-outcome-KMWK4IBN.js +0 -51
  243. package/dist/promote-command-VES2PITU.js +0 -140
  244. package/dist/pull-command-5O2JPLXN.js +0 -161
  245. package/dist/release-command-GJCCSDJF.js +0 -146
  246. package/dist/update-check-3CPTCQNK.js +0 -136
  247. package/dist/xano-EIUBBA6W.js +0 -42
@@ -9,40 +9,40 @@ import {
9
9
  staticRetryHint,
10
10
  unknownStaticOutcome,
11
11
  warnStaticTeardown
12
- } from "./chunk-S3SV2BE7.js";
12
+ } from "./chunk-KTGRGWZW.js";
13
13
  import {
14
14
  shownLabel
15
- } from "./chunk-YYLRKWCZ.js";
15
+ } from "./chunk-OGBMUST4.js";
16
16
  import {
17
17
  confirm,
18
18
  needsConfirmation
19
- } from "./chunk-FEQICT4D.js";
19
+ } from "./chunk-4APOHK7Y.js";
20
20
  import {
21
21
  landedRecordFor,
22
22
  landingLockPath,
23
23
  recordForeignLanding,
24
24
  recordLanding
25
- } from "./chunk-LZZ7HN4L.js";
25
+ } from "./chunk-C4FHQA7R.js";
26
26
  import {
27
27
  assertStorageModesKept,
28
28
  discloseCanonicalMoves,
29
29
  movesClause,
30
30
  storageChangesPayload
31
- } from "./chunk-MPSVU34E.js";
31
+ } from "./chunk-5T2CTWTB.js";
32
32
  import {
33
33
  listTables,
34
34
  tableRowCounter,
35
35
  tableRowIds
36
- } from "./chunk-2UN4TGBK.js";
36
+ } from "./chunk-MNVDVR3M.js";
37
37
  import {
38
38
  XANOSDK_IMPORT_CONFLICT_CODE,
39
39
  XANOSDK_IMPORT_UNIQUENESS_CODE,
40
40
  XanoSdkImportRefusal,
41
41
  xanosdkImport
42
- } from "./chunk-DPDHBJNI.js";
42
+ } from "./chunk-IJ3SXSZM.js";
43
43
  import {
44
44
  archiveSeedContent
45
- } from "./chunk-ZH4O6RWX.js";
45
+ } from "./chunk-VRVKNY4A.js";
46
46
  import {
47
47
  encodeWorkspaceArchive
48
48
  } from "./chunk-3DRXWLJ5.js";
@@ -55,7 +55,7 @@ import {
55
55
  listBranchListing,
56
56
  liveBranchLabel,
57
57
  setLiveBranch
58
- } from "./chunk-FFDZFVBD.js";
58
+ } from "./chunk-E65QIWOO.js";
59
59
  import {
60
60
  compareToLive,
61
61
  envValuesOf,
@@ -66,38 +66,38 @@ import {
66
66
  sharedSchemaChanges,
67
67
  storedColumnsAfter,
68
68
  uniqueIndexLabels
69
- } from "./chunk-DTZSOJ6M.js";
69
+ } from "./chunk-HMLGM2MW.js";
70
70
  import {
71
71
  assertBundleFile,
72
72
  assertBundleInput,
73
73
  loadBundleText,
74
74
  resolveLockPath
75
- } from "./chunk-HDIISRNY.js";
75
+ } from "./chunk-WYEQFD6A.js";
76
76
  import {
77
77
  LookupFailedError,
78
78
  isUnansweredLookup,
79
79
  unansweredCause
80
- } from "./chunk-2YH2I6RA.js";
80
+ } from "./chunk-2AUV6NXK.js";
81
81
  import {
82
82
  isSignatureRefusal
83
- } from "./chunk-VGV2RF5X.js";
83
+ } from "./chunk-MEE5RZ6G.js";
84
84
  import {
85
85
  getAccessToken
86
- } from "./chunk-5RA4BBJL.js";
86
+ } from "./chunk-LUTMOHOW.js";
87
87
  import {
88
88
  ephemeralLandedOn
89
- } from "./chunk-EJ3JCML2.js";
89
+ } from "./chunk-UKUIUS3E.js";
90
90
  import {
91
91
  pipedYes,
92
92
  retryCommand,
93
93
  withheldNote
94
- } from "./chunk-JWW4KU7T.js";
94
+ } from "./chunk-FMOEVAGT.js";
95
95
  import {
96
96
  contextFlags
97
- } from "./chunk-RJOGX6LA.js";
97
+ } from "./chunk-SEUCZZCP.js";
98
98
  import {
99
99
  backendDirIn
100
- } from "./chunk-DMD5I36N.js";
100
+ } from "./chunk-E6H5ZEV3.js";
101
101
  import {
102
102
  shellWord
103
103
  } from "./chunk-FWD7AL6N.js";
@@ -106,10 +106,10 @@ import {
106
106
  } from "./chunk-4KHEMC32.js";
107
107
  import {
108
108
  seedRowsByTableGuid
109
- } from "./chunk-PCJLL36N.js";
109
+ } from "./chunk-37AHZ7JX.js";
110
110
  import {
111
111
  readLockFile
112
- } from "./chunk-P2HAGF6H.js";
112
+ } from "./chunk-VD32O6KZ.js";
113
113
  import {
114
114
  destinationKey,
115
115
  groupNames,
@@ -118,11 +118,11 @@ import {
118
118
  landedKeyForRow,
119
119
  storedColumnsOf,
120
120
  withStoredColumns
121
- } from "./chunk-TLQE7ZN3.js";
121
+ } from "./chunk-RX3EMQGN.js";
122
122
  import {
123
123
  TransportError,
124
124
  isTimeoutError
125
- } from "./chunk-PYT3DC4G.js";
125
+ } from "./chunk-MN2PB6WB.js";
126
126
  import {
127
127
  CliError,
128
128
  EXIT_OUTCOME_UNKNOWN,
@@ -142,11 +142,11 @@ import {
142
142
  warn,
143
143
  writeJson,
144
144
  writeTargetPayload
145
- } from "./chunk-JZEWT7NY.js";
145
+ } from "./chunk-SBR2WZXG.js";
146
146
  import {
147
147
  calcSignatureJson,
148
148
  signatureHolds
149
- } from "./chunk-LQCMKAJ7.js";
149
+ } from "./chunk-EESV6NU2.js";
150
150
  import {
151
151
  safeNames
152
152
  } from "./chunk-GSGDWJB5.js";
@@ -157,14 +157,14 @@ import {
157
157
  lockKey,
158
158
  lockNameForObject,
159
159
  sdkKindName2 as sdkKindName
160
- } from "./chunk-6MR5TI5V.js";
160
+ } from "./chunk-OOGXZL7Z.js";
161
161
  import {
162
162
  shellQuote
163
163
  } from "./chunk-5ZSO4T2G.js";
164
164
  import {
165
165
  REFERENCEABLE_KIND_PAYLOAD_KEYS,
166
166
  rawDeriveGuid
167
- } from "./chunk-NZOWWHU5.js";
167
+ } from "./chunk-LL6ED5IB.js";
168
168
  import {
169
169
  withArticle
170
170
  } from "./chunk-36JUQZVQ.js";
@@ -630,7 +630,7 @@ function isTransientReadFailure(err) {
630
630
  return isUnansweredLookup(err);
631
631
  }
632
632
  async function readLive(auth, dest, branch) {
633
- const { exportWorkspaceBundle } = await import("./workspace-export-ME52ELKP.js");
633
+ const { exportWorkspaceBundle } = await import("./workspace-export-AIGM6LC7.js");
634
634
  let failure;
635
635
  for (let attempt = 0; attempt <= LIVE_READ_RETRY_PAUSES_MS.length; attempt++) {
636
636
  try {
@@ -737,7 +737,7 @@ function targetIsEmpty(live) {
737
737
  async function convergedWithLive(live, req, outgoingBundle, pinned) {
738
738
  if (live === void 0 || req.mode !== "merge") return false;
739
739
  if (req.records === true || req.truncate === true) return false;
740
- const { compareToLive: compareToLive2 } = await import("./live-diff-VJGPLS3E.js");
740
+ const { compareToLive: compareToLive2 } = await import("./live-diff-2S7E3SBZ.js");
741
741
  let result;
742
742
  try {
743
743
  result = compareToLive2(
@@ -758,7 +758,7 @@ async function convergedWithLive(live, req, outgoingBundle, pinned) {
758
758
  async function unchangedWithLive(live, req, outgoingBundle, pinned) {
759
759
  if (live === void 0 || req.mode !== "merge") return void 0;
760
760
  if (req.records === true || req.truncate === true) return void 0;
761
- const { compareToLive: compareToLive2, declaredLabels, payloadOf: payloadOf2, SETTINGS_LABEL } = await import("./live-diff-VJGPLS3E.js");
761
+ const { compareToLive: compareToLive2, declaredLabels, payloadOf: payloadOf2, SETTINGS_LABEL } = await import("./live-diff-2S7E3SBZ.js");
762
762
  try {
763
763
  const outgoing = JSON.parse(outgoingBundle);
764
764
  const result = compareToLive2(outgoing, live, new Set(pinned.map((p) => `${p.payloadKey}:${p.name}`)), {
@@ -786,7 +786,7 @@ function markUnchanged(presented, unchanged, noun) {
786
786
  }
787
787
  var REPLACE_DROPS = "which deletes every table's rows there (only seed rows come back)";
788
788
  async function replaceCommandHint(args) {
789
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-UGJPAXFQ.js");
789
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-5WTFHMBT.js");
790
790
  const valued = /* @__PURE__ */ new Set(["--branch", "--backup-branch", "--expect-live"]);
791
791
  const dropped = /* @__PURE__ */ new Set(["--prune", "--reset-data", "--seed", "--set-live", "--dry-run", "--replace", "--yes", "-y"]);
792
792
  const argv = [];
@@ -817,7 +817,7 @@ function landingTableFields(losses) {
817
817
  };
818
818
  }
819
819
  async function warnAboutLiveLosses(live, req, outgoingBundle, setWhere = "workspace", fromBundle = false, replaceHint = "`xanosdk deploy <source> --to <destination> --replace`.", noun = "workspace", failure, stored) {
820
- const { NO_TABLE_EFFECTS, tableEffectsOf, discloseTableEffects, tableEffectFields, alteringChanges, droppedAndAdded } = await import("./plan-disclosure-ZDZISUWI.js");
820
+ const { NO_TABLE_EFFECTS, tableEffectsOf, discloseTableEffects, tableEffectFields, alteringChanges, droppedAndAdded } = await import("./plan-disclosure-BHYG7TZ7.js");
821
821
  const none = {
822
822
  ...tableEffectFields(NO_TABLE_EFFECTS),
823
823
  renamedTables: [],
@@ -836,7 +836,7 @@ async function warnAboutLiveLosses(live, req, outgoingBundle, setWhere = "worksp
836
836
  blank();
837
837
  return none;
838
838
  }
839
- const { diffAgainstLive, tableAdditions } = await import("./live-diff-VJGPLS3E.js");
839
+ const { diffAgainstLive, tableAdditions } = await import("./live-diff-2S7E3SBZ.js");
840
840
  let diff;
841
841
  let additions;
842
842
  try {
@@ -1551,7 +1551,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
1551
1551
  const held = guidsOf(live);
1552
1552
  const codePinned = codePinnedTables(outgoingDoc, lock, classified);
1553
1553
  const { orphanFixUps } = await import("./cli.js");
1554
- const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-DQR6L5FV.js");
1554
+ const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-X5LDDCI3.js");
1555
1555
  const run = (line) => (line ?? "").replace(/^(renamed|deleted)\? run: /, "");
1556
1556
  const out = [];
1557
1557
  const seen = /* @__PURE__ */ new Set();
@@ -1595,7 +1595,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
1595
1595
  return out;
1596
1596
  }
1597
1597
  async function pendingRenameRefusal(frame, pending, prune, branch) {
1598
- const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-DQR6L5FV.js");
1598
+ const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-X5LDDCI3.js");
1599
1599
  const one = pending.length === 1;
1600
1600
  const lines = pending.flatMap(
1601
1601
  (p) => pendingRenameLines(
@@ -2051,7 +2051,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2051
2051
  assertBundleFile(args, { command: "deploy" });
2052
2052
  const auth = opts.auth ?? await getAccessToken(args);
2053
2053
  const withSeed = req.mode === "replace" || req.records === true;
2054
- const { discoverToolchainPlugins } = await import("./toolchain-modules-J7FUTUTL.js");
2054
+ const { discoverToolchainPlugins } = await import("./toolchain-modules-3M7QDJBV.js");
2055
2055
  const toolchain = await discoverToolchainPlugins(process.cwd(), { frozen: args.frozenLock === true });
2056
2056
  const loaded = await loadBundleText(
2057
2057
  args.dryRun ? { ...args, lockReadOnly: true } : args,
@@ -2077,15 +2077,15 @@ async function runReleaseCommand(args, dest, opts = {}) {
2077
2077
  });
2078
2078
  };
2079
2079
  if (!args.dryRun && args.file !== void 0) {
2080
- const { ignoreBackendSecretFilesRead } = await import("./deploy-command-UGJPAXFQ.js");
2080
+ const { ignoreBackendSecretFilesRead } = await import("./deploy-command-5WTFHMBT.js");
2081
2081
  await ignoreBackendSecretFilesRead(args);
2082
2082
  }
2083
2083
  if (args.static !== void 0) {
2084
- const { assertNoSeedLeaks } = await import("./deploy-command-UGJPAXFQ.js");
2084
+ const { assertNoSeedLeaks } = await import("./deploy-command-5WTFHMBT.js");
2085
2085
  await assertNoSeedLeaks(args.static, nonPublicSeedValues);
2086
2086
  }
2087
2087
  {
2088
- const { runBundleHooks } = await import("./toolchain-hooks-VUCFFZ7A.js");
2088
+ const { runBundleHooks } = await import("./toolchain-hooks-BGZBDFAT.js");
2089
2089
  const { readVersion } = await import("./cli.js");
2090
2090
  await runBundleHooks(
2091
2091
  toolchain.loaded,
@@ -2191,8 +2191,8 @@ async function runReleaseCommand(args, dest, opts = {}) {
2191
2191
  pinned: pinned.map((p) => p.guid).filter((g) => g !== void 0)
2192
2192
  }).catch(async (err) => {
2193
2193
  if (err instanceof XanoSdkImportRefusal && err.retryable) {
2194
- const { importInProgressError } = await import("./keep-data-merge-DQR6L5FV.js");
2195
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-5PNYSQFN.js");
2194
+ const { importInProgressError } = await import("./keep-data-merge-X5LDDCI3.js");
2195
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-Y5YJGOH3.js");
2196
2196
  const retry = retryCommand2(args);
2197
2197
  throw importInProgressError(
2198
2198
  describeWriteTarget({ base: destBase, workspaceId, label: destShownLabel }),
@@ -2312,10 +2312,10 @@ async function runReleaseCommand(args, dest, opts = {}) {
2312
2312
  }
2313
2313
  const dryRunUpToDate = req.branch === void 0 && (plan.operations.length === 0 || converged);
2314
2314
  if (req.mode === "merge" && destIsTenant && live !== void 0 && !dryRunUpToDate) {
2315
- const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-DQR6L5FV.js");
2315
+ const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-X5LDDCI3.js");
2316
2316
  const triggers = liveTableTriggers(live);
2317
2317
  if (triggers.length > 0) {
2318
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-5PNYSQFN.js");
2318
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-Y5YJGOH3.js");
2319
2319
  const replace = retryCommand2(args, { add: ["--replace"], drop: ["--prune", "--yes", "-y"] });
2320
2320
  throw tableTriggerMergeError(destNoun, triggers, {
2321
2321
  command: replace.command,
@@ -2324,7 +2324,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2324
2324
  }
2325
2325
  }
2326
2326
  if (req.mode === "merge" && live !== void 0 && !dryRunUpToDate && losses.storageChanges.length > 0) {
2327
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-5PNYSQFN.js");
2327
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-Y5YJGOH3.js");
2328
2328
  const replace = retryCommand2(args, { add: ["--replace"], drop: ["--prune", "--yes", "-y"] });
2329
2329
  await assertStorageModesKept(losses.storageChanges, tableRowCounter(auth, { workspaceId, base: destBase }), {
2330
2330
  target: destNoun,
@@ -2407,7 +2407,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2407
2407
  assertLiveWorkspaceWasRead(live, destNoun, scopeBranch, liveRead.failure, liveKind);
2408
2408
  reportPlannedCanonicalMoves(canonicalMoves, "will", movesWhen);
2409
2409
  if (req.branch !== void 0 && args.setLive && !args.yes && process.stdin.isTTY !== true) {
2410
- const { yesRerun } = await import("./retry-command-5PNYSQFN.js");
2410
+ const { yesRerun } = await import("./retry-command-Y5YJGOH3.js");
2411
2411
  const { rerun, note } = yesRerun(args, "deploy");
2412
2412
  throw needsConfirmation(
2413
2413
  `Make "${req.branch}" the live branch?${movesClause(canonicalMoves)} (or drop --set-live to stage it)`,
@@ -2446,7 +2446,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2446
2446
  landingRecord: null,
2447
2447
  ...seeded.length > 0 ? { seedRows: seeded } : {}
2448
2448
  });
2449
- const { yesRerun } = await import("./retry-command-5PNYSQFN.js");
2449
+ const { yesRerun } = await import("./retry-command-Y5YJGOH3.js");
2450
2450
  const { rerun, note } = yesRerun(args, "deploy");
2451
2451
  const ok = await confirm(`Apply this plan to ${destNoun}?${seedOverwriteClause(seeded)}${movesClause(canonicalMoves, movesWhen === void 0 ? "It" : "Once live, it")}`, {
2452
2452
  flag: "--yes",
@@ -2493,7 +2493,7 @@ Retry, or drop \`--backup-branch\` to deploy without one.`,
2493
2493
  );
2494
2494
  } catch (err) {
2495
2495
  if (err instanceof XanoSdkImportRefusal) {
2496
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-5PNYSQFN.js");
2496
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-Y5YJGOH3.js");
2497
2497
  const retry = retryCommand2(args);
2498
2498
  reportApplyRefusal(
2499
2499
  err,
@@ -2672,7 +2672,7 @@ Retry, or drop \`--backup-branch\` to deploy without one.`,
2672
2672
  if (isMachineOutput(args)) writeJson(summary);
2673
2673
  assertStaticMatchesServedUrls(servedDifferences, planContext);
2674
2674
  }
2675
- const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-UGJPAXFQ.js");
2675
+ const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-5WTFHMBT.js");
2676
2676
  const env = buildStaticEnv(destBase, args.staticEnv);
2677
2677
  const explicit = Object.keys(args.staticEnv).length > 0;
2678
2678
  const to = dest?.kind === "tenant" ? `${dest.type === "ephemeral" ? "ephemeral" : "tenant"}:${dest.name ?? ""}` : "workspace";
@@ -2724,14 +2724,14 @@ function setLiveRollback(previous, args) {
2724
2724
  async function assertReleaseIdentitiesFree(args, auth, opts) {
2725
2725
  const tenant = opts.tenant;
2726
2726
  const target = tenant === void 0 ? { baseUrl: auth.instance, workspaceId: auth.workspaceId } : { baseUrl: tenant.base, workspaceId: tenant.workspaceId };
2727
- const { detectXanoSdkImportRoute } = await import("./xanosdk-import-PYZC3KWN.js");
2727
+ const { detectXanoSdkImportRoute } = await import("./xanosdk-import-J6SRBZHW.js");
2728
2728
  let capable;
2729
2729
  try {
2730
2730
  capable = await detectXanoSdkImportRoute(auth, target);
2731
2731
  } catch (err) {
2732
2732
  if (err?.status === 501) capable = false;
2733
2733
  else {
2734
- const { unreachableProbeError } = await import("./keep-data-merge-DQR6L5FV.js");
2734
+ const { unreachableProbeError } = await import("./keep-data-merge-X5LDDCI3.js");
2735
2735
  const retry = retryCommand(args, {
2736
2736
  add: pipedYes(args) === "" ? [] : ["--yes"],
2737
2737
  command: [opts.verb, ...args.positionals.map(shellWord)].join(" ")
@@ -2820,4 +2820,4 @@ export {
2820
2820
  setLiveRollback,
2821
2821
  assertReleaseIdentitiesFree
2822
2822
  };
2823
- //# sourceMappingURL=chunk-WPTLUJJR.js.map
2823
+ //# sourceMappingURL=chunk-45YPFB7B.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveRef
3
- } from "./chunk-NZOWWHU5.js";
3
+ } from "./chunk-LL6ED5IB.js";
4
4
 
5
5
  // src/refs/auth.ts
6
6
  function resolveAuthRef(hostLabel, host, auth) {
@@ -24,4 +24,4 @@ function resolveAuthRef(hostLabel, host, auth) {
24
24
  export {
25
25
  resolveAuthRef
26
26
  };
27
- //# sourceMappingURL=chunk-ZDPP6RKB.js.map
27
+ //# sourceMappingURL=chunk-45ZUMF4E.js.map
@@ -6,7 +6,7 @@ import {
6
6
  UsageError,
7
7
  style,
8
8
  terminalText
9
- } from "./chunk-JZEWT7NY.js";
9
+ } from "./chunk-SBR2WZXG.js";
10
10
 
11
11
  // src/emit/prompt.ts
12
12
  import { createInterface } from "readline";
@@ -174,4 +174,4 @@ export {
174
174
  STDIN_IDLE_MS,
175
175
  readStdin
176
176
  };
177
- //# sourceMappingURL=chunk-FEQICT4D.js.map
177
+ //# sourceMappingURL=chunk-4APOHK7Y.js.map
@@ -130,4 +130,4 @@ export {
130
130
  CATALOG_BY_TYPE,
131
131
  authoredFieldType
132
132
  };
133
- //# sourceMappingURL=chunk-TTEIYD5P.js.map
133
+ //# sourceMappingURL=chunk-4DJTQ6W4.js.map
@@ -128,10 +128,10 @@ var VAR_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
128
128
  function isVarName(name) {
129
129
  return VAR_NAME.test(name);
130
130
  }
131
- function assertNewVarName(statement, name, arg = "name") {
131
+ function assertNewVarName(statement, name, arg = "name", unchecked) {
132
132
  assertVarName(statement, name, arg);
133
133
  if (name === "") throw new Error(`Statement "${statement}": argument "${arg}" is empty \u2014 name the variable.`);
134
- if (!VAR_NAME.test(name)) {
134
+ if (unchecked !== true && !VAR_NAME.test(name)) {
135
135
  throw new Error(
136
136
  `Statement "${statement}": ${JSON.stringify(name)} is not a variable name \u2014 use a letter or underscore, then letters, digits and underscores (e.g. "order_total").`
137
137
  );
@@ -159,4 +159,4 @@ export {
159
159
  isVarName,
160
160
  assertNewVarName
161
161
  };
162
- //# sourceMappingURL=chunk-CIMQZRRE.js.map
162
+ //# sourceMappingURL=chunk-4MIV244X.js.map
@@ -4,37 +4,42 @@ import {
4
4
  import {
5
5
  encodeTags,
6
6
  registerKind
7
- } from "./chunk-4POWHT2K.js";
7
+ } from "./chunk-VTMTIBKP.js";
8
8
  import {
9
9
  nearestKey
10
10
  } from "./chunk-WTPZRR4I.js";
11
11
  import {
12
12
  DiagnosticError,
13
+ emitDiagnostic,
13
14
  numberedList,
14
15
  problemCount
15
- } from "./chunk-2Y4X2VLM.js";
16
+ } from "./chunk-GPI3OWRE.js";
16
17
  import {
17
18
  isHostedFile
18
19
  } from "./chunk-XNCP4KYO.js";
20
+ import {
21
+ RAW_WHERE,
22
+ isRawWhere
23
+ } from "./chunk-ZY55DO5P.js";
19
24
  import {
20
25
  annotate,
21
26
  encodeStatement,
22
27
  registerStatement
23
- } from "./chunk-YU4HSQW7.js";
28
+ } from "./chunk-A2AOUBJS.js";
24
29
  import {
25
30
  COLUMN_CONTEXT,
26
31
  COLUMN_NULLABLE_TYPES,
27
32
  authoredFieldType,
28
33
  encodeField,
29
34
  isListColumn
30
- } from "./chunk-TTEIYD5P.js";
35
+ } from "./chunk-4DJTQ6W4.js";
31
36
  import {
32
37
  argsOrEmpty,
33
38
  assertArg,
34
39
  assertStatements,
35
40
  describeEntry,
36
41
  isTaggedArg
37
- } from "./chunk-CIMQZRRE.js";
42
+ } from "./chunk-4MIV244X.js";
38
43
 
39
44
  // src/util/known-keys.ts
40
45
  function assertKnownKeys(where, v, known) {
@@ -346,10 +351,11 @@ function toColumns(schema) {
346
351
  }
347
352
  function systemColumns(idType = "int") {
348
353
  return [
349
- // A uuid primary key persists NO `default` key — the engine stores it that
350
- // way because the value is engine-generated. An `int` key and an ordinary
351
- // (non-key) uuid column both carry `default: ""`, so this is specific to the
352
- // uuid key. See {@link FieldOptions.noDefault}.
354
+ // A uuid primary key persists NO `default` key — the value is
355
+ // engine-generated. An `int` key and an ordinary (non-key) uuid column both
356
+ // carry `default: ""`, so this is specific to the uuid key; a declared key
357
+ // can state `default: ""` instead (see `primaryKeyColumn`). See
358
+ // {@link FieldOptions.noDefault}.
353
359
  // `nullable` is pinned on both, not left to the per-type default: a uuid
354
360
  // column is nullable by default (see COLUMN_NULLABLE_BY_DEFAULT), but a PRIMARY KEY
355
361
  // never is, and every captured `id`/`created_at` stores `nullable: false`.
@@ -377,7 +383,12 @@ function primaryKeyColumn(table2, col) {
377
383
  `${table2 === void 0 ? "" : `table "${table2}", `}column "id" (${authoredFieldType(col.type)}): \`id\` is the table's primary key, which is an int or a uuid \u2014 any other type fails the deploy. Declare \`id: f.int()\` or \`id: f.uuid()\`, or leave it out (\`idType: "uuid"\` picks a uuid key).`
378
384
  );
379
385
  }
380
- return { ...col, ...systemColumns(col.type)[0] };
386
+ const key = systemColumns(col.type)[0];
387
+ if (col.type === "uuid" && col.default !== void 0) {
388
+ const { noDefault: _omitted, ...stated } = key;
389
+ return { ...col, ...stated };
390
+ }
391
+ return { ...col, ...key };
381
392
  }
382
393
  function systemIndexes(useXdo = false) {
383
394
  return [
@@ -459,7 +470,7 @@ function encodeView(def) {
459
470
  id: def.id,
460
471
  name: def.name,
461
472
  q: def.q ?? "",
462
- expression: def.where ? encodeComparison(def.where).expression : [],
473
+ expression: isRawWhere(def.where) ? structuredClone(def.where[RAW_WHERE]) : def.where ? encodeComparison(def.where).expression : [],
463
474
  sort: (def.sort ?? []).map((s) => ({ name: s.name, order: s.order }))
464
475
  };
465
476
  }
@@ -608,9 +619,9 @@ function assertColumnDefaultFits(tableName, col, useXdo) {
608
619
  }
609
620
  if (want === void 0) return;
610
621
  const consequence = !useXdo ? "the database takes the default as written, so the table fails to deploy" : family === "date" ? "a JSON-storage table deploys, then every insert that leaves the column unset is refused or stores a rolled-over day" : "a JSON-storage table deploys, then every insert that leaves the column unset is refused";
611
- throw new Error(
612
- `table "${tableName}", column "${col.name}" (${authoredFieldType(col.type)}): \`default\` ${shown} does not fit \u2014 ${consequence}. Use ${want}.`
613
- );
622
+ const message = `table "${tableName}", column "${col.name}" (${authoredFieldType(col.type)}): \`default\` ${shown} does not fit \u2014 ${consequence}. Use ${want}.`;
623
+ if (!useXdo) throw new Error(message);
624
+ emitDiagnostic({ severity: "warning", code: "table.column-default-unfit", message });
614
625
  }
615
626
  function decimalDefaultInRange(text, useXdo) {
616
627
  if (useXdo) return Number.isFinite(Number(text));
@@ -1261,4 +1272,4 @@ export {
1261
1272
  assertSeedUnique,
1262
1273
  isNonPublicColumn
1263
1274
  };
1264
- //# sourceMappingURL=chunk-G5IW3EYW.js.map
1275
+ //# sourceMappingURL=chunk-4PQHO74B.js.map
@@ -4,25 +4,25 @@ import {
4
4
  sectionKind,
5
5
  tableAdditions,
6
6
  vectorSize
7
- } from "./chunk-DTZSOJ6M.js";
7
+ } from "./chunk-HMLGM2MW.js";
8
8
  import {
9
9
  ReleaseHttpError
10
- } from "./chunk-JIEZZ5QU.js";
10
+ } from "./chunk-A6QTTJUI.js";
11
11
  import {
12
12
  TenantHttpError
13
- } from "./chunk-QVZYYBVY.js";
13
+ } from "./chunk-KCAL4QYP.js";
14
14
  import {
15
15
  CliError,
16
16
  detail,
17
17
  warn,
18
18
  withoutUrls
19
- } from "./chunk-JZEWT7NY.js";
19
+ } from "./chunk-SBR2WZXG.js";
20
20
  import {
21
21
  suggest
22
22
  } from "./chunk-UTI5G6OJ.js";
23
23
  import {
24
24
  authoredFieldType
25
- } from "./chunk-TTEIYD5P.js";
25
+ } from "./chunk-4DJTQ6W4.js";
26
26
 
27
27
  // src/emit/plan-disclosure.ts
28
28
  var NO_TABLE_EFFECTS = {
@@ -677,4 +677,4 @@ export {
677
677
  CONSTRAINT_PHRASE,
678
678
  CONSTRAINT_FIX
679
679
  };
680
- //# sourceMappingURL=chunk-MPSVU34E.js.map
680
+ //# sourceMappingURL=chunk-5T2CTWTB.js.map
@@ -1,50 +1,50 @@
1
1
  import {
2
2
  resolveAuthRef
3
- } from "./chunk-ZDPP6RKB.js";
3
+ } from "./chunk-45ZUMF4E.js";
4
4
  import {
5
5
  obj
6
- } from "./chunk-DBZASBQS.js";
6
+ } from "./chunk-7KPKDHHI.js";
7
7
  import {
8
8
  assertOneOf,
9
9
  leanInput
10
- } from "./chunk-XVBGLISP.js";
10
+ } from "./chunk-ICK36EGF.js";
11
11
  import {
12
12
  assertStoredName,
13
13
  buildMiddlewareBlock,
14
14
  encodeHistory
15
- } from "./chunk-5WGGTU5K.js";
15
+ } from "./chunk-ETAZIGNT.js";
16
16
  import {
17
17
  encodeTags,
18
18
  registerKind,
19
19
  resolveMockKeys
20
- } from "./chunk-4POWHT2K.js";
20
+ } from "./chunk-VTMTIBKP.js";
21
21
  import {
22
22
  emitDiagnostic
23
- } from "./chunk-2Y4X2VLM.js";
23
+ } from "./chunk-GPI3OWRE.js";
24
24
  import {
25
25
  lockKey
26
- } from "./chunk-6MR5TI5V.js";
26
+ } from "./chunk-OOGXZL7Z.js";
27
27
  import {
28
28
  rawResponseItems
29
- } from "./chunk-AKNCFVKZ.js";
29
+ } from "./chunk-UDZX2ZL4.js";
30
30
  import {
31
31
  encodeStack
32
- } from "./chunk-YU4HSQW7.js";
32
+ } from "./chunk-A2AOUBJS.js";
33
33
  import {
34
34
  encodeInput
35
- } from "./chunk-4PCJEHA4.js";
35
+ } from "./chunk-37FBPMNE.js";
36
36
  import {
37
37
  deriveGuid,
38
38
  deriveQueryGuid,
39
39
  queryGroupComponent,
40
40
  resolveRef
41
- } from "./chunk-NZOWWHU5.js";
41
+ } from "./chunk-LL6ED5IB.js";
42
42
  import {
43
43
  getLockedCanonical
44
44
  } from "./chunk-4BW2SG2N.js";
45
45
  import {
46
46
  describeEntry
47
- } from "./chunk-CIMQZRRE.js";
47
+ } from "./chunk-4MIV244X.js";
48
48
 
49
49
  // src/responses/response.ts
50
50
  function warnUnboundReturn(kind, name, stack, response) {
@@ -454,4 +454,4 @@ export {
454
454
  toSearchParams,
455
455
  query
456
456
  };
457
- //# sourceMappingURL=chunk-IWGNIWQX.js.map
457
+ //# sourceMappingURL=chunk-5W7DOMIU.js.map
@@ -12,11 +12,11 @@ import {
12
12
  loadFile,
13
13
  moduleKind,
14
14
  readInstalledManifestState
15
- } from "./chunk-VIPK7FHI.js";
15
+ } from "./chunk-DYG5D3FD.js";
16
16
  import {
17
17
  UsageError,
18
18
  warn
19
- } from "./chunk-JZEWT7NY.js";
19
+ } from "./chunk-SBR2WZXG.js";
20
20
 
21
21
  // src/emit/toolchain-modules.ts
22
22
  var UNKNOWN_MODULE_VERSION = "unknown";
@@ -189,4 +189,4 @@ export {
189
189
  sdkPeerSkew,
190
190
  discoverToolchainPlugins
191
191
  };
192
- //# sourceMappingURL=chunk-FLLBK7EH.js.map
192
+ //# sourceMappingURL=chunk-5WGVIXMD.js.map