@xano/sdk 1.0.4 → 1.0.5

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 (239) hide show
  1. package/CHANGELOG.md +17 -5
  2. package/README.md +232 -334
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-LB6KIMFY.js → agent-file-refresh-KVLR7M5Y.js} +13 -13
  5. package/dist/{answer-shape-LVV2SVBK.js → answer-shape-XGR2DGWY.js} +5 -5
  6. package/dist/{backend-dir-WZADOK3L.js → backend-dir-IE4RMUFH.js} +12 -12
  7. package/dist/{backend-slot-NSCTWCUX.js → backend-slot-6HBWG5FN.js} +3 -3
  8. package/dist/bin.js +52 -52
  9. package/dist/{branch-ONWPJ4V6.js → branch-T2APKPVG.js} +9 -9
  10. package/dist/{branch-commands-ZT2MJIRS.js → branch-commands-HXXTCSOO.js} +26 -26
  11. package/dist/{capture-3JNUA6C2.js → capture-HBXFXZEW.js} +4 -4
  12. package/dist/{chunk-A6QTTJUI.js → chunk-3BJYQGAZ.js} +2 -2
  13. package/dist/{chunk-5W7DOMIU.js → chunk-3IYVHVM6.js} +2 -2
  14. package/dist/{chunk-S7E2AHV3.js → chunk-3VX7VAQT.js} +4 -4
  15. package/dist/{chunk-Y2ZLKBM6.js → chunk-3WHWOKU4.js} +4 -4
  16. package/dist/{chunk-LXNQWHZM.js → chunk-44CWK6YC.js} +3 -3
  17. package/dist/{chunk-KCAL4QYP.js → chunk-4GDEEY2U.js} +4 -4
  18. package/dist/{chunk-KTGRGWZW.js → chunk-4NEBBKOP.js} +7 -7
  19. package/dist/{chunk-UKUIUS3E.js → chunk-4QBGE3EO.js} +5 -5
  20. package/dist/{chunk-IVKRT476.js → chunk-4QFBEKXI.js} +2 -2
  21. package/dist/{chunk-OOXWYAA4.js → chunk-57A5ZKPO.js} +1 -1
  22. package/dist/{chunk-2B22WWKL.js → chunk-57B56I4B.js} +29 -29
  23. package/dist/{chunk-OPHB5ORL.js → chunk-57HMNJGB.js} +120 -76
  24. package/dist/{chunk-O5V3YH5P.js → chunk-5D6DGF3W.js} +8 -8
  25. package/dist/{chunk-E65QIWOO.js → chunk-5RLAF6RL.js} +4 -4
  26. package/dist/{chunk-MEE5RZ6G.js → chunk-5XVBT6CQ.js} +2 -2
  27. package/dist/{chunk-RX3EMQGN.js → chunk-5YBNXNKU.js} +2 -2
  28. package/dist/{chunk-NA3PXMEF.js → chunk-64WWE3EF.js} +1 -1
  29. package/dist/{chunk-2LVTBPW2.js → chunk-65SW2BA5.js} +3 -3
  30. package/dist/{chunk-ET5DSBAC.js → chunk-7DBM6XHR.js} +8 -8
  31. package/dist/{chunk-DIG3NITC.js → chunk-A4NNCI4O.js} +3 -3
  32. package/dist/{chunk-4APOHK7Y.js → chunk-AESE434J.js} +2 -2
  33. package/dist/{chunk-E6H5ZEV3.js → chunk-AGD7F7YI.js} +3 -3
  34. package/dist/{chunk-44B4V2LR.js → chunk-AGSCOISO.js} +139 -139
  35. package/dist/{chunk-MLGI2SRQ.js → chunk-AMBEITWL.js} +4 -4
  36. package/dist/{chunk-5T2CTWTB.js → chunk-BBPAXOU6.js} +5 -5
  37. package/dist/{chunk-5WGVIXMD.js → chunk-BMCZQZMI.js} +4 -4
  38. package/dist/{chunk-LUTMOHOW.js → chunk-CJ76PSJT.js} +9 -9
  39. package/dist/{chunk-D5ZEAF4G.js → chunk-CV54PASI.js} +53 -50
  40. package/dist/{chunk-MLPDSGJQ.js → chunk-DEVGLLNZ.js} +5 -5
  41. package/dist/{chunk-JTUKLCXS.js → chunk-DXUICABI.js} +1 -1
  42. package/dist/{chunk-C4FHQA7R.js → chunk-ES5A66IH.js} +8 -8
  43. package/dist/{chunk-UDE5C2XN.js → chunk-F3557PVM.js} +3 -3
  44. package/dist/{chunk-HUSH7LRI.js → chunk-F6IKWAIU.js} +21 -17
  45. package/dist/{chunk-II747OWE.js → chunk-FV55SRQU.js} +7 -7
  46. package/dist/{chunk-SEUCZZCP.js → chunk-G57RYMKB.js} +3 -3
  47. package/dist/{chunk-MNVDVR3M.js → chunk-GMVW6ZZK.js} +4 -4
  48. package/dist/{chunk-MN2PB6WB.js → chunk-HLQH3AXB.js} +3 -3
  49. package/dist/{chunk-HSEQYBDO.js → chunk-HOOOOJJP.js} +3 -3
  50. package/dist/{chunk-IXUPUFCG.js → chunk-I5VEROXW.js} +2 -2
  51. package/dist/{chunk-UI4OPTYR.js → chunk-IV446ZLJ.js} +2 -2
  52. package/dist/{chunk-CYB7UQA2.js → chunk-JQOX6HW4.js} +5 -5
  53. package/dist/{chunk-OPG4DYX2.js → chunk-JSEVKRVJ.js} +3 -3
  54. package/dist/{chunk-2AUV6NXK.js → chunk-JXKO6JT7.js} +36 -36
  55. package/dist/{chunk-FPBGAT5D.js → chunk-JZWUAEMO.js} +3 -3
  56. package/dist/{chunk-6R7S775T.js → chunk-K6CB5TKM.js} +2 -2
  57. package/dist/{chunk-MCTIKRMN.js → chunk-K6PRKPFX.js} +8 -8
  58. package/dist/{chunk-W5ONYLOP.js → chunk-KQLACS4Q.js} +4 -4
  59. package/dist/{chunk-LIVN53UV.js → chunk-KUU7T4ZE.js} +31 -31
  60. package/dist/{chunk-WFMVKY7I.js → chunk-L3BDO2BI.js} +9 -9
  61. package/dist/{chunk-664LSWE5.js → chunk-LLS2WO2K.js} +4 -4
  62. package/dist/{chunk-ESZ2FF57.js → chunk-LZDA6SVD.js} +46 -45
  63. package/dist/{chunk-UCQ2VUTG.js → chunk-M6ZFSTIZ.js} +2 -2
  64. package/dist/{chunk-DYG5D3FD.js → chunk-M7GJ6YUF.js} +2 -2
  65. package/dist/{chunk-XXZZGXW2.js → chunk-MEIJDRHU.js} +2 -2
  66. package/dist/{chunk-QXTKSOFI.js → chunk-MF4W6FHU.js} +1 -1
  67. package/dist/{chunk-3FN2BIGB.js → chunk-MYLPOVX6.js} +6 -6
  68. package/dist/{chunk-FJWZ5OVV.js → chunk-N6BWB35H.js} +3 -3
  69. package/dist/{chunk-T4DUFQ2S.js → chunk-NGAODDLX.js} +5 -5
  70. package/dist/{chunk-7PMVIHB3.js → chunk-NNB7VUCH.js} +23 -23
  71. package/dist/{chunk-6VBTPV2Y.js → chunk-NUU76247.js} +3 -3
  72. package/dist/{chunk-ZG7E72VI.js → chunk-OGUMHW2X.js} +6 -6
  73. package/dist/{chunk-I2BGYNHD.js → chunk-OJPZEUPH.js} +7 -7
  74. package/dist/{chunk-OOGXZL7Z.js → chunk-OKNE3TWU.js} +2 -2
  75. package/dist/{chunk-KUTFFHUM.js → chunk-OVV2HXJ6.js} +2 -2
  76. package/dist/{chunk-VRVKNY4A.js → chunk-PIPIA7K7.js} +8 -8
  77. package/dist/{chunk-AM4FKL4J.js → chunk-PL7AIAWS.js} +12 -12
  78. package/dist/{chunk-WL2DSNJV.js → chunk-Q22BMRPF.js} +2 -2
  79. package/dist/{chunk-IJ3SXSZM.js → chunk-QOLOQ35F.js} +6 -6
  80. package/dist/{chunk-BUECLQXK.js → chunk-QZTJ2556.js} +4 -4
  81. package/dist/{chunk-O7QOWS6M.js → chunk-RXCT3OCU.js} +12 -12
  82. package/dist/{chunk-WYEQFD6A.js → chunk-S5KQIFKJ.js} +122 -98
  83. package/dist/{chunk-CBYQ2ZN3.js → chunk-S5TEJIGP.js} +2 -2
  84. package/dist/{chunk-HMLGM2MW.js → chunk-SF2B7MZK.js} +3 -3
  85. package/dist/{chunk-PML67X22.js → chunk-SNGFEESM.js} +3 -3
  86. package/dist/{chunk-VD32O6KZ.js → chunk-SQPIECXD.js} +3 -3
  87. package/dist/{chunk-5YL5OC2G.js → chunk-SRX6B544.js} +5 -5
  88. package/dist/{chunk-CFSFBKHP.js → chunk-TEBS7FE6.js} +2 -2
  89. package/dist/{chunk-TTVAHCWP.js → chunk-TM5LRSBB.js} +2 -2
  90. package/dist/{chunk-JP7M7OU7.js → chunk-TUEFTRC2.js} +5 -5
  91. package/dist/{chunk-EWCDPFW5.js → chunk-U6DR6464.js} +4 -4
  92. package/dist/{chunk-QAEQGT5I.js → chunk-UIEFE6FU.js} +7 -7
  93. package/dist/{chunk-3H3EPMFY.js → chunk-UJ6ZZJDD.js} +2 -2
  94. package/dist/{chunk-3P3HXN76.js → chunk-V4IBHDIY.js} +11 -11
  95. package/dist/{chunk-XNCP4KYO.js → chunk-VQPDATQT.js} +1 -1
  96. package/dist/{chunk-4PQHO74B.js → chunk-VZ22VUAS.js} +2 -2
  97. package/dist/{chunk-BUJRS7XB.js → chunk-WYS6XVZ3.js} +2 -2
  98. package/dist/{chunk-QV3GXQRE.js → chunk-XIABDKFQ.js} +2 -2
  99. package/dist/{chunk-EESV6NU2.js → chunk-XJU6UAFV.js} +2 -2
  100. package/dist/{chunk-SBR2WZXG.js → chunk-XNZURZ7T.js} +59 -52
  101. package/dist/{chunk-WFG67AYS.js → chunk-Y6NO3DLQ.js} +3 -3
  102. package/dist/{chunk-37AHZ7JX.js → chunk-Y76ERHLK.js} +5 -5
  103. package/dist/{chunk-HHW5AWVD.js → chunk-YI76TURL.js} +30 -30
  104. package/dist/{chunk-OGBMUST4.js → chunk-YSLMMR2U.js} +14 -14
  105. package/dist/{chunk-45YPFB7B.js → chunk-Z2BRSQ6M.js} +49 -49
  106. package/dist/{chunk-D64XUF5Q.js → chunk-Z3SNX45M.js} +16 -16
  107. package/dist/{chunk-FMOEVAGT.js → chunk-Z4VN347O.js} +3 -3
  108. package/dist/{chunk-L2GLOJAO.js → chunk-ZHGWR45B.js} +22 -22
  109. package/dist/cli.d.ts +20 -18
  110. package/dist/cli.js +50 -50
  111. package/dist/{codegen-command-HTWIW56U.js → codegen-command-L2OO6OTE.js} +63 -63
  112. package/dist/{commands-CVFYC4GK.js → commands-2E4JB3DB.js} +2 -2
  113. package/dist/{completion-AUEQC4XJ.js → completion-LPJIH5VQ.js} +11 -11
  114. package/dist/{config-JU6OQC77.js → config-QDCRKEWD.js} +4 -4
  115. package/dist/{deploy-command-5WTFHMBT.js → deploy-command-HJZNYCUY.js} +57 -57
  116. package/dist/{deploy-source-5CET3A5D.js → deploy-source-5COWTBOC.js} +34 -34
  117. package/dist/{dev-env-sync-X636HLMK.js → dev-env-sync-GZ4QQJGV.js} +51 -51
  118. package/dist/{display-name-hint-DMORHANO.js → display-name-hint-AHCNH6TF.js} +11 -11
  119. package/dist/{emit-hOFbgzde.d.ts → emit-DqG6qddr.d.ts} +2 -2
  120. package/dist/env-example-refresh-DWQIOQYR.js +127 -0
  121. package/dist/{env-pull-command-WZZ7RL2E.js → env-pull-command-Z4RLVEGJ.js} +46 -46
  122. package/dist/{env-target-PO3MOLH5.js → env-target-ZHQUS5BO.js} +13 -13
  123. package/dist/{env-var-command-YKTJZFJN.js → env-var-command-FKQ4VVQ6.js} +47 -47
  124. package/dist/{ephemeral-BMFY55BQ.js → ephemeral-L4KUOGEU.js} +9 -9
  125. package/dist/{ephemeral-command-VDSQCOYL.js → ephemeral-command-GRPFI3TD.js} +47 -47
  126. package/dist/{ephemeral-state-6TY4JIPA.js → ephemeral-state-VLYU2BXR.js} +11 -11
  127. package/dist/{generate-command-3NTNRQRS.js → generate-command-XNODJFDQ.js} +68 -68
  128. package/dist/{gitignore-FWPEDX6C.js → gitignore-VWRSZX5F.js} +16 -16
  129. package/dist/{guards-EJU2ONAX.js → guards-OPSGB6LG.js} +5 -5
  130. package/dist/{hosted-file-PSHJB3HX.js → hosted-file-S7YUQAH6.js} +2 -2
  131. package/dist/{impersonate-command-QEJA72Q2.js → impersonate-command-AEKIZHHK.js} +40 -40
  132. package/dist/{import-TBTOTU52.js → import-PHSSFFLA.js} +5 -5
  133. package/dist/index.d.ts +4 -4
  134. package/dist/index.js +10 -10
  135. package/dist/{init-command-27SFBW2F.js → init-command-TI3HCKXZ.js} +55 -55
  136. package/dist/{init-modules-HZRQFRLE.js → init-modules-SGSX7XEY.js} +9 -9
  137. package/dist/{init-web-Y2PBNJTQ.js → init-web-6HX3YLQP.js} +2 -2
  138. package/dist/internal.d.ts +4 -4
  139. package/dist/internal.js +24 -25
  140. package/dist/{io-ZUKAGFVE.js → io-TAF4WXYQ.js} +5 -5
  141. package/dist/{keep-data-merge-X5LDDCI3.js → keep-data-merge-GUGF7MVZ.js} +28 -28
  142. package/dist/{lambda-config-reconcile-OUZ4OYAB.js → lambda-config-reconcile-65U6I4KU.js} +3 -3
  143. package/dist/{landed-6VO7CX5P.js → landed-QA6PRTV2.js} +4 -4
  144. package/dist/{landing-record-QYECWLQ5.js → landing-record-FCAWLCZU.js} +22 -22
  145. package/dist/{live-diff-2S7E3SBZ.js → live-diff-IM4W3ELT.js} +5 -5
  146. package/dist/local-engine-choice-FPJAZSSD.js +79 -0
  147. package/dist/{local-engine-command-HMTQK7MN.js → local-engine-command-73NHWD6V.js} +92 -92
  148. package/dist/{local-engine-config-5U3SC434.js → local-engine-config-W3KB7RWM.js} +2 -2
  149. package/dist/{local-engine-deploy-TXAOYRGF.js → local-engine-deploy-Y4OAWL7K.js} +16 -16
  150. package/dist/{local-engine-process-6VZ7JJBP.js → local-engine-process-6YPJHKYM.js} +11 -11
  151. package/dist/{local-engine-state-TJWPWCC4.js → local-engine-state-OCW5YDD7.js} +3 -3
  152. package/dist/{local-engine-update-check-R5SPDVEJ.js → local-engine-update-check-X7TZGRFL.js} +7 -7
  153. package/dist/{lock-TS465GVY.js → lock-WXXC3QHL.js} +3 -3
  154. package/dist/{lock-commands-4VT3L5W5.js → lock-commands-PKDBNRSD.js} +55 -55
  155. package/dist/{login-command-O6WA4FYL.js → login-command-V4U4FA5G.js} +27 -27
  156. package/dist/{logout-command-6CPWGFY2.js → logout-command-TV3P545Z.js} +16 -16
  157. package/dist/{loop-UFHKSOQ4.js → loop-VKHGQ6MP.js} +6 -6
  158. package/dist/{marketplace-command-HKACSYKS.js → marketplace-command-LEFOAEAV.js} +30 -30
  159. package/dist/{marketplace-resolve-KLFYVRWS.js → marketplace-resolve-ME7O7JBJ.js} +7 -7
  160. package/dist/{meta-client-73PX6UGJ.js → meta-client-TEEECA5W.js} +14 -14
  161. package/dist/{module-manifest-GIKFNXPE.js → module-manifest-7YLGIRCY.js} +3 -3
  162. package/dist/node.d.ts +4 -4
  163. package/dist/node.js +56 -56
  164. package/dist/operation-outcome-GNDD35WL.js +51 -0
  165. package/dist/{output-target-SZMBNYF4.js → output-target-5FWX3NGZ.js} +17 -17
  166. package/dist/{plan-disclosure-BHYG7TZ7.js → plan-disclosure-QGL5UYQR.js} +16 -16
  167. package/dist/{plugin-contributions-X4V22PJQ.js → plugin-contributions-GNFTWDEB.js} +4 -4
  168. package/dist/{plugin-prompt-DKNQHW6Y.js → plugin-prompt-VEQGMZ4T.js} +4 -4
  169. package/dist/{plugin-questions-CQRVOWFK.js → plugin-questions-BGRL23GO.js} +3 -3
  170. package/dist/{preflight-command-EBQ6XQF3.js → preflight-command-VKJKXRRI.js} +63 -63
  171. package/dist/{profile-command-NPKBJYPM.js → profile-command-P7A3BH26.js} +29 -29
  172. package/dist/{profile-pointer-UOO7JNFG.js → profile-pointer-HG7IXE4I.js} +4 -4
  173. package/dist/{profile-select-74TRDEPD.js → profile-select-45G5VPJK.js} +2 -2
  174. package/dist/{project-dependency-RRMTWOPC.js → project-dependency-Z4CKOCJI.js} +8 -8
  175. package/dist/{project-sdk-FOR4IOXL.js → project-sdk-JWZWGXXR.js} +3 -3
  176. package/dist/promote-command-KHTIK44I.js +141 -0
  177. package/dist/{prompt-5GUQTCSP.js → prompt-SURZOUUW.js} +3 -3
  178. package/dist/{publish-command-LGLZBOCB.js → publish-command-HGAB3H4A.js} +131 -60
  179. package/dist/{pull-command-WQFPLITW.js → pull-command-EUEWBRXZ.js} +66 -66
  180. package/dist/{pull-superseded-GGURV5J3.js → pull-superseded-TOT5S4QU.js} +3 -3
  181. package/dist/{release-command-2OTNVMIL.js → release-command-WOVQAMUY.js} +64 -64
  182. package/dist/{release-ns-command-EIBN3JVM.js → release-ns-command-WOQE2BDQ.js} +87 -87
  183. package/dist/{retry-command-Y5YJGOH3.js → retry-command-JRGMZZAC.js} +8 -8
  184. package/dist/{routes-manifest-3BNZIVST.js → routes-manifest-URFMAWJE.js} +5 -5
  185. package/dist/scaffold.js +2 -2
  186. package/dist/{secrets-file-FUG7WCES.js → secrets-file-YWZWVJ52.js} +16 -16
  187. package/dist/{secrets-fill-command-QEOCUOAY.js → secrets-fill-command-HIHK3VH2.js} +54 -54
  188. package/dist/{seed-GJHJSEUE.js → seed-24DTEY5S.js} +7 -7
  189. package/dist/{source-resolve-DMDZVPMM.js → source-resolve-OWD3MIEO.js} +23 -23
  190. package/dist/{static-host-WM24RG25.js → static-host-UIR2OLPQ.js} +9 -9
  191. package/dist/{status-command-XUH5OGQX.js → status-command-JKTHH5QE.js} +53 -53
  192. package/dist/{store-MR7IKXKK.js → store-5YAQS6KU.js} +6 -6
  193. package/dist/{store-CfgPaVPO.d.ts → store-zxw2go0f.d.ts} +3 -3
  194. package/dist/sveltekit.d.ts +5 -5
  195. package/dist/sveltekit.js +1 -1
  196. package/dist/{sync-contributions-DHP7XSTX.js → sync-contributions-RBB6JVOL.js} +9 -9
  197. package/dist/{table-ZBDPKMNH.js → table-MQFVYA4K.js} +8 -8
  198. package/dist/{tables-command-X3JK7VSK.js → tables-command-5Q4BSUNO.js} +39 -39
  199. package/dist/{tenant-GKXMOYLK.js → tenant-Q3LPVSSM.js} +10 -10
  200. package/dist/{tenant-command-P27EQHBU.js → tenant-command-BFVU2PEX.js} +84 -84
  201. package/dist/{test-command-A4G2FP7G.js → test-command-F4VUU4QR.js} +40 -40
  202. package/dist/{tests-C55M5EQS.js → tests-5ZSDFVIJ.js} +6 -6
  203. package/dist/{token-CMAB35GD.js → token-TERSTNU4.js} +12 -12
  204. package/dist/{toolchain-hooks-BGZBDFAT.js → toolchain-hooks-QVUZ6HZ4.js} +2 -2
  205. package/dist/{toolchain-modules-3M7QDJBV.js → toolchain-modules-FD5ANV2U.js} +5 -5
  206. package/dist/tracked-backend-B4HTME4S.js +80 -0
  207. package/dist/{update-check-LNNKIMML.js → update-check-O4C2LCZH.js} +53 -53
  208. package/dist/{upgrade-command-7EUXML3P.js → upgrade-command-NVFWLMTA.js} +56 -56
  209. package/dist/{whoami-command-KNWFWAX6.js → whoami-command-YKNTISIV.js} +15 -15
  210. package/dist/{workspace-TGPYOODG.js → workspace-GGVGE2S5.js} +5 -5
  211. package/dist/{workspace-binding-2TWZBHQY.js → workspace-binding-OS4ZOX4S.js} +14 -14
  212. package/dist/{workspace-command-T7Z2BDHD.js → workspace-command-GTUNVN7K.js} +77 -77
  213. package/dist/{workspace-env-VA7XN3UX.js → workspace-env-467C5KHM.js} +13 -13
  214. package/dist/{workspace-export-AIGM6LC7.js → workspace-export-3XTVGQVM.js} +5 -5
  215. package/dist/{writable-FYJBTJOU.js → writable-7SSWUQJ3.js} +3 -3
  216. package/dist/{xano-BSHYVFSE.js → xano-6RS5XQZE.js} +7 -7
  217. package/dist/{xanosdk-import-J6SRBZHW.js → xanosdk-import-E3WSIYUE.js} +9 -9
  218. package/dist/{xanosdk-project-6KTCO47O.js → xanosdk-project-KH5TZ2KI.js} +14 -14
  219. package/guides/README.md +1 -0
  220. package/guides/authoring.md +3 -5
  221. package/guides/bundle.md +45 -0
  222. package/guides/cli.md +32 -30
  223. package/guides/codegen.md +5 -4
  224. package/guides/codes.md +9 -9
  225. package/guides/deploying.md +63 -58
  226. package/guides/environment.md +13 -13
  227. package/guides/project-structure.md +14 -0
  228. package/llms/client.md +3 -4
  229. package/llms/errors.md +1 -1
  230. package/llms/tests.md +2 -2
  231. package/llms-full.txt +14 -15
  232. package/llms.txt +8 -8
  233. package/manifest.json +110 -107
  234. package/package.json +4 -4
  235. package/dist/env-example-refresh-ZO6XAV44.js +0 -127
  236. package/dist/local-engine-choice-6BSPEG3E.js +0 -79
  237. package/dist/operation-outcome-2P4BVSEV.js +0 -51
  238. package/dist/promote-command-4F2NAE6P.js +0 -141
  239. package/dist/tracked-backend-PZGUWD5J.js +0 -80
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  assertOneName,
3
3
  noteRunArgs
4
- } from "./chunk-DIG3NITC.js";
4
+ } from "./chunk-A4NNCI4O.js";
5
5
  import {
6
6
  WORKSPACE_ENV_FILE,
7
7
  classifyEnv,
@@ -10,37 +10,37 @@ import {
10
10
  namesInEnvExample,
11
11
  parseEnvFile,
12
12
  readWorkspaceEnvFile
13
- } from "./chunk-664LSWE5.js";
13
+ } from "./chunk-LLS2WO2K.js";
14
14
  import {
15
15
  readTrackedBackend
16
- } from "./chunk-LIVN53UV.js";
16
+ } from "./chunk-KUU7T4ZE.js";
17
17
  import {
18
18
  isCI
19
- } from "./chunk-JP7M7OU7.js";
19
+ } from "./chunk-TUEFTRC2.js";
20
20
  import {
21
21
  backendSlotForFlag,
22
22
  slotValueMissing
23
- } from "./chunk-UDE5C2XN.js";
23
+ } from "./chunk-F3557PVM.js";
24
24
  import {
25
25
  defaultWorkspaceSecretsPath,
26
26
  readSecretsFile
27
- } from "./chunk-MLGI2SRQ.js";
27
+ } from "./chunk-AMBEITWL.js";
28
28
  import {
29
29
  allLandings,
30
30
  getEnvironment,
31
31
  readEphemeralState
32
- } from "./chunk-UKUIUS3E.js";
32
+ } from "./chunk-4QBGE3EO.js";
33
33
  import {
34
34
  isUnwritableError,
35
35
  unwritableError
36
- } from "./chunk-3H3EPMFY.js";
36
+ } from "./chunk-UJ6ZZJDD.js";
37
37
  import {
38
38
  isExpired
39
- } from "./chunk-BUECLQXK.js";
39
+ } from "./chunk-QZTJ2556.js";
40
40
  import {
41
41
  contextFlags,
42
42
  setHintContext
43
- } from "./chunk-SEUCZZCP.js";
43
+ } from "./chunk-G57RYMKB.js";
44
44
  import {
45
45
  shellWord
46
46
  } from "./chunk-FWD7AL6N.js";
@@ -51,7 +51,7 @@ import {
51
51
  hostedFileResolver,
52
52
  isMissingFile,
53
53
  registerSeedHostedFiles
54
- } from "./chunk-37AHZ7JX.js";
54
+ } from "./chunk-Y76ERHLK.js";
55
55
  import {
56
56
  projectRootFrom
57
57
  } from "./chunk-ROY4YAEQ.js";
@@ -59,7 +59,7 @@ import {
59
59
  readLockFile,
60
60
  readLockFileReport,
61
61
  writeLockFile
62
- } from "./chunk-VD32O6KZ.js";
62
+ } from "./chunk-SQPIECXD.js";
63
63
  import {
64
64
  writeData
65
65
  } from "./chunk-AWQ7BQTQ.js";
@@ -70,16 +70,16 @@ import {
70
70
  inCredentialScope,
71
71
  lastResolvedAuth,
72
72
  pinnedWorkspaceMissed
73
- } from "./chunk-MN2PB6WB.js";
73
+ } from "./chunk-HLQH3AXB.js";
74
74
  import {
75
75
  assertValidProfileName
76
- } from "./chunk-QXTKSOFI.js";
76
+ } from "./chunk-MF4W6FHU.js";
77
77
  import {
78
78
  readEnvVar
79
79
  } from "./chunk-X2NL4KUO.js";
80
80
  import {
81
81
  bundleCapabilities
82
- } from "./chunk-6R7S775T.js";
82
+ } from "./chunk-K6CB5TKM.js";
83
83
  import {
84
84
  BARE,
85
85
  CliError,
@@ -134,7 +134,7 @@ import {
134
134
  warn,
135
135
  withCliPrefix,
136
136
  writeJson
137
- } from "./chunk-SBR2WZXG.js";
137
+ } from "./chunk-XNZURZ7T.js";
138
138
  import {
139
139
  KNOWLEDGE_DIR,
140
140
  KNOWLEDGE_FILE,
@@ -142,15 +142,15 @@ import {
142
142
  isOsMetadataFile,
143
143
  registerAllKinds,
144
144
  serializeBundle
145
- } from "./chunk-II747OWE.js";
145
+ } from "./chunk-FV55SRQU.js";
146
146
  import {
147
147
  Xano,
148
148
  checkFilterOperands,
149
149
  standaloneDefKind
150
- } from "./chunk-5YL5OC2G.js";
150
+ } from "./chunk-SRX6B544.js";
151
151
  import {
152
152
  knowledgeBodiesAllEmpty
153
- } from "./chunk-EESV6NU2.js";
153
+ } from "./chunk-XJU6UAFV.js";
154
154
  import {
155
155
  checkDecodeOnlyStatements,
156
156
  checkExpressionOperands,
@@ -174,7 +174,7 @@ import {
174
174
  checkUnboundVarRefs,
175
175
  checkZipPasswordKeys,
176
176
  isQueryExpressionFilter
177
- } from "./chunk-OPG4DYX2.js";
177
+ } from "./chunk-JSEVKRVJ.js";
178
178
  import {
179
179
  FILTER_NAMES
180
180
  } from "./chunk-BEXZ4XRV.js";
@@ -211,7 +211,7 @@ import {
211
211
  toolsetKindsFromPayload,
212
212
  validateLockModel,
213
213
  withoutGuidSources
214
- } from "./chunk-OOGXZL7Z.js";
214
+ } from "./chunk-OKNE3TWU.js";
215
215
  import {
216
216
  shellQuote
217
217
  } from "./chunk-5ZSO4T2G.js";
@@ -219,7 +219,7 @@ import {
219
219
  HOSTED_FILE_SCHEME,
220
220
  HOSTED_ICON_KINDS,
221
221
  uncarriedHostedIcons
222
- } from "./chunk-XNCP4KYO.js";
222
+ } from "./chunk-VQPDATQT.js";
223
223
  import {
224
224
  IDENT,
225
225
  installLambdaFreeReads,
@@ -1328,7 +1328,7 @@ var NOUN_COMMANDS = /* @__PURE__ */ new Set([
1328
1328
  "env",
1329
1329
  "secrets",
1330
1330
  "ephemeral",
1331
- "local-engine",
1331
+ "local",
1332
1332
  "workspace",
1333
1333
  "marketplace",
1334
1334
  "test",
@@ -1449,6 +1449,7 @@ function parseArgs(argv) {
1449
1449
  let staticDir;
1450
1450
  let to;
1451
1451
  let localEngine = false;
1452
+ let ephemeral = false;
1452
1453
  let localEngineUrl;
1453
1454
  let engineVersion;
1454
1455
  let description;
@@ -1715,18 +1716,20 @@ function parseArgs(argv) {
1715
1716
  const value = arg === "--to" ? valueAfter() : arg.slice("--to=".length);
1716
1717
  if (value === void 0 || value === "") throw selectorValueMissing("to", "--to", command, subcommand);
1717
1718
  to = value;
1718
- } else if (arg === "--local-engine" || arg.startsWith("--local-engine=")) {
1719
+ } else if (arg === "--ephemeral") {
1720
+ ephemeral = true;
1721
+ } else if (arg === "--local" || arg.startsWith("--local=")) {
1719
1722
  if (command === "env" && (subcommand === "set" || subcommand === "unset")) {
1720
- throw new UsageError("`--local-engine` here is `--to local-engine`.", {
1723
+ throw new UsageError("`--local` here is `--to local`.", {
1721
1724
  helpFor: helpTargetFor(command, subcommand)
1722
1725
  });
1723
1726
  }
1724
1727
  localEngine = true;
1725
- if (arg.startsWith("--local-engine=")) {
1726
- const value = arg.slice("--local-engine=".length);
1728
+ if (arg.startsWith("--local=")) {
1729
+ const value = arg.slice("--local=".length);
1727
1730
  if (value === "") {
1728
1731
  throw new UsageError(
1729
- "--local-engine= expects an engine version (v0.1.5), a URL to fetch the engine from, or the path to an engine archive on this machine."
1732
+ "--local= expects an engine version (v0.1.5), a URL to fetch the engine from, or the path to an engine archive on this machine."
1730
1733
  );
1731
1734
  }
1732
1735
  localEngineUrl = value;
@@ -1767,7 +1770,7 @@ function parseArgs(argv) {
1767
1770
  authFile = expandHome(requireValue(arg));
1768
1771
  } else if (arg.startsWith("--config=")) {
1769
1772
  authFile = expandHome(attachedValue(arg, "--config="));
1770
- } else if (arg === "--local") {
1773
+ } else if (arg === "--local-auth") {
1771
1774
  useLocal = true;
1772
1775
  } else if (arg === "--paste") {
1773
1776
  paste = true;
@@ -2075,13 +2078,33 @@ function parseArgs(argv) {
2075
2078
  }
2076
2079
  if (localEngine) {
2077
2080
  refuseUnlessDeclared(
2078
- "local-engine",
2079
- "--local-engine",
2080
- "only `deploy` takes it, because only a deploy downloads, pins and starts an engine. " + // Command-aware: `publish` refuses `--to local-engine` too, so pointing
2081
- // it there sent the reader from one refusal to the next.
2082
- (command === "publish" ? "A local engine takes a frontend only through `xanosdk deploy --local-engine --static <dir>`; `publish` publishes to an ephemeral's, a tenant's or your workspace's static host (`--to`)." : "Elsewhere a local engine is a backend: `--to local-engine`, `--from local-engine`, or `local-engine` as the positional.")
2081
+ "local",
2082
+ "--local",
2083
+ "only `deploy` takes it, because only a deploy downloads, pins and starts an engine. Elsewhere a Xano Engine is a backend: `--to local`, `--from local`, or `local` as the positional."
2083
2084
  );
2084
2085
  }
2086
+ if (ephemeral) {
2087
+ refuseUnlessDeclared(
2088
+ "ephemeral",
2089
+ "--ephemeral",
2090
+ "only `deploy` takes it. Elsewhere an ephemeral is a backend: `--to ephemeral`, `--from ephemeral`, or `ephemeral` as the positional."
2091
+ );
2092
+ }
2093
+ if (command === "deploy") {
2094
+ if (ephemeral && localEngine) {
2095
+ throw new UsageError(
2096
+ "`--ephemeral` and `--local` are two destinations, and a deploy has one. Drop whichever is not meant.",
2097
+ { helpFor: { command: "deploy" } }
2098
+ );
2099
+ }
2100
+ if (ephemeral && to !== void 0) {
2101
+ throw new UsageError(
2102
+ "`--ephemeral` and `--to` are two destinations, and a deploy has one: `--ephemeral` replaces a disposable ephemeral, `--to` merges into a backend that already exists. Drop whichever is not meant.",
2103
+ { helpFor: { command: "deploy" } }
2104
+ );
2105
+ }
2106
+ if (!ephemeral && to === void 0) localEngine = true;
2107
+ }
2085
2108
  if (guest) {
2086
2109
  refuseUnlessDeclared(
2087
2110
  "guest",
@@ -2254,6 +2277,7 @@ function parseArgs(argv) {
2254
2277
  staticHost,
2255
2278
  to,
2256
2279
  localEngine,
2280
+ ephemeral,
2257
2281
  localEngineUrl,
2258
2282
  engineVersion,
2259
2283
  description,
@@ -2477,7 +2501,7 @@ async function tsxRemedy(file) {
2477
2501
  );
2478
2502
  if (!declared) return fallback;
2479
2503
  const { detectPackageManager } = await import("./package-manager-PRAHUSCN.js");
2480
- const { inProject } = await import("./init-modules-HZRQFRLE.js");
2504
+ const { inProject } = await import("./init-modules-SGSX7XEY.js");
2481
2505
  return `This project's package.json declares it, but its dependencies are not installed \u2014 run \`${inProject(dir)}${detectPackageManager(dir)} install\` first.`;
2482
2506
  }
2483
2507
  if (dirname2(dir) === dir) return fallback;
@@ -3098,7 +3122,7 @@ async function explainUnreachableWorkspace(err) {
3098
3122
  let verdict = unreachableVerdicts.get(auth);
3099
3123
  if (verdict === void 0) {
3100
3124
  verdict = (async () => {
3101
- const { readReachableWorkspaces, unreachableWorkspaceMessage } = await import("./workspace-binding-2TWZBHQY.js");
3125
+ const { readReachableWorkspaces, unreachableWorkspaceMessage } = await import("./workspace-binding-OS4ZOX4S.js");
3102
3126
  const all = await readReachableWorkspaces(auth, 15e3);
3103
3127
  if (all === void 0 || all.length === 0 || all.some((w) => w.id === auth.workspaceId)) return void 0;
3104
3128
  return new UsageError(unreachableWorkspaceMessage(auth, all));
@@ -3112,7 +3136,7 @@ async function explainRejectedCredential(err) {
3112
3136
  if (!(err instanceof Error) || resolved === void 0) return err;
3113
3137
  const [first = "", ...rest] = err.message.split("\n");
3114
3138
  if (!/\(401\b[^)]*\)|\banswered (HTTP )?401\b/.test(first) || /\brejected\b/.test(err.message)) return err;
3115
- const { asRejectedCredential, rejectedRemedy } = await import("./whoami-command-KNWFWAX6.js");
3139
+ const { asRejectedCredential, rejectedRemedy } = await import("./whoami-command-YKNTISIV.js");
3116
3140
  const { auth, args } = resolved;
3117
3141
  err.message = [first, rejectedRemedy(auth, args), ...rest].join("\n");
3118
3142
  if (failureCode(err) === "SDK_ERROR") asRejectedCredential(err, auth, args);
@@ -3150,10 +3174,10 @@ function withoutSecretValue(args) {
3150
3174
  }
3151
3175
  async function nameLookupRerun(failure) {
3152
3176
  if (!(failure instanceof Error) || runArgs?.argv === void 0) return failure;
3153
- const { LookupFailedError, rateLimitedFailure } = await import("./source-resolve-DMDZVPMM.js");
3177
+ const { LookupFailedError, rateLimitedFailure } = await import("./source-resolve-OWD3MIEO.js");
3154
3178
  const err = rateLimitedFailure(failure);
3155
3179
  if (!(err instanceof LookupFailedError)) return err;
3156
- const { retryCommand, withheldNote } = await import("./deploy-command-5WTFHMBT.js");
3180
+ const { retryCommand, withheldNote } = await import("./deploy-command-HJZNYCUY.js");
3157
3181
  if (runArgs.command === "env" && runArgs.subcommand === "set") {
3158
3182
  const retry2 = retryCommand(withoutSecretValue(runArgs));
3159
3183
  return err.withRerun(
@@ -3199,7 +3223,7 @@ var PATHLESS_VERBS = {
3199
3223
  ephemeral: /* @__PURE__ */ new Set(["list", "get", "delete"]),
3200
3224
  tenant: /* @__PURE__ */ new Set(["list", "get", "delete", "details"]),
3201
3225
  release: /* @__PURE__ */ new Set(["list", "show", "delete"]),
3202
- "local-engine": /* @__PURE__ */ new Set(["token", "stop"]),
3226
+ "local": /* @__PURE__ */ new Set(["token", "stop"]),
3203
3227
  test: /* @__PURE__ */ new Set(["list", "run", "run-all"])
3204
3228
  };
3205
3229
  var PATHLESS_COMMANDS = /* @__PURE__ */ new Set(["tables", "impersonate"]);
@@ -3208,7 +3232,7 @@ function isPathlessRun(args) {
3208
3232
  return PATHLESS_COMMANDS.has(command) || PATHLESS_VERBS[command]?.has(args.subcommand ?? "") === true;
3209
3233
  }
3210
3234
  async function atProjectRoot(args, command, positional) {
3211
- const { enterProjectRoot } = await import("./xanosdk-project-6KTCO47O.js");
3235
+ const { enterProjectRoot } = await import("./xanosdk-project-KH5TZ2KI.js");
3212
3236
  const entered = enterProjectRoot(args, process.cwd(), positional);
3213
3237
  if (entered === void 0) return command(args);
3214
3238
  if (isPathlessRun(args)) {
@@ -3309,7 +3333,7 @@ async function dispatch(rawArgv) {
3309
3333
  if (typed[0] === "init") {
3310
3334
  const web = typed.indexOf("--web", 1);
3311
3335
  if (web !== -1) {
3312
- const { runInitWebCommand } = await import("./init-web-Y2PBNJTQ.js");
3336
+ const { runInitWebCommand } = await import("./init-web-6HX3YLQP.js");
3313
3337
  return runInitWebCommand([...typed.slice(1, web), ...typed.slice(web + 1)]);
3314
3338
  }
3315
3339
  }
@@ -3327,7 +3351,7 @@ async function dispatch(rawArgv) {
3327
3351
  throw unknownSubcommand(helpRequest.command, helpRequest.unknownSubcommand, helpRequest.positionals ?? []);
3328
3352
  }
3329
3353
  if (argv.includes("--json")) {
3330
- const { helpDocument } = await import("./commands-CVFYC4GK.js");
3354
+ const { helpDocument } = await import("./commands-2E4JB3DB.js");
3331
3355
  writeJson({ version: readVersion(), ...helpDocument(helpRequest) });
3332
3356
  return;
3333
3357
  }
@@ -3348,7 +3372,7 @@ async function dispatch(rawArgv) {
3348
3372
  setHintContext(args);
3349
3373
  runArgs = args;
3350
3374
  noteRunArgs(args);
3351
- if (isMachineOutput(args)) (await import("./update-check-LNNKIMML.js")).routeUpdateNoticeToDocument();
3375
+ if (isMachineOutput(args)) (await import("./update-check-O4C2LCZH.js")).routeUpdateNoticeToDocument();
3352
3376
  const { command } = args;
3353
3377
  const out = args.out === "-" ? void 0 : args.out;
3354
3378
  if (command === void 0) {
@@ -3369,11 +3393,11 @@ async function dispatch(rawArgv) {
3369
3393
  return;
3370
3394
  }
3371
3395
  if (command === "init") {
3372
- const { runInitCommand } = await import("./init-command-27SFBW2F.js");
3396
+ const { runInitCommand } = await import("./init-command-TI3HCKXZ.js");
3373
3397
  return runInitCommand(args);
3374
3398
  }
3375
3399
  if (command === "completion") {
3376
- const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS, UNSUPPORTED_SHELLS } = await import("./completion-AUEQC4XJ.js");
3400
+ const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS, UNSUPPORTED_SHELLS } = await import("./completion-LPJIH5VQ.js");
3377
3401
  const shell = args.positionals[0];
3378
3402
  if (shell === void 0) throw missingArgument("shell", { command: "completion" });
3379
3403
  if (!isCompletionShell(shell)) {
@@ -3392,111 +3416,111 @@ async function dispatch(rawArgv) {
3392
3416
  return runCompletionCommand(shell);
3393
3417
  }
3394
3418
  if (command === "upgrade") {
3395
- const { runUpgradeCommand } = await import("./upgrade-command-7EUXML3P.js");
3419
+ const { runUpgradeCommand } = await import("./upgrade-command-NVFWLMTA.js");
3396
3420
  return runUpgradeCommand(args);
3397
3421
  }
3398
3422
  if (command === "lock") {
3399
- const { runLockCommand } = await import("./lock-commands-4VT3L5W5.js");
3423
+ const { runLockCommand } = await import("./lock-commands-PKDBNRSD.js");
3400
3424
  const verb = args.positionals[0];
3401
- const { isProjectDir } = await import("./xanosdk-project-6KTCO47O.js");
3425
+ const { isProjectDir } = await import("./xanosdk-project-KH5TZ2KI.js");
3402
3426
  const here = verb !== "prune" && args.lockPath === void 0 && args.entryPath === void 0 && existsSync2("xano.lock") && !isProjectDir(process.cwd()) ? { ...args, lockPath: "xano.lock" } : args;
3403
3427
  return atProjectRoot(here, runLockCommand, verb === "prune" || verb === "import" ? "verb-path" : void 0);
3404
3428
  }
3405
3429
  if (command === "login") {
3406
- const { runLoginCommand } = await import("./login-command-O6WA4FYL.js");
3430
+ const { runLoginCommand } = await import("./login-command-V4U4FA5G.js");
3407
3431
  return runLoginCommand(args);
3408
3432
  }
3409
3433
  if (command === "logout") {
3410
- const { runLogoutCommand } = await import("./logout-command-6CPWGFY2.js");
3434
+ const { runLogoutCommand } = await import("./logout-command-TV3P545Z.js");
3411
3435
  return runLogoutCommand(args);
3412
3436
  }
3413
3437
  if (command === "deploy") {
3414
- const { runDeployCommand } = await import("./deploy-command-5WTFHMBT.js");
3438
+ const { runDeployCommand } = await import("./deploy-command-HJZNYCUY.js");
3415
3439
  return atProjectRoot(args, runDeployCommand, entryPositional(args));
3416
3440
  }
3417
3441
  if (command === "ephemeral") {
3418
- const { runEphemeralCommand } = await import("./ephemeral-command-VDSQCOYL.js");
3442
+ const { runEphemeralCommand } = await import("./ephemeral-command-GRPFI3TD.js");
3419
3443
  return atProjectRoot(args, runEphemeralCommand);
3420
3444
  }
3421
- if (command === "local-engine") {
3422
- const { runLocalEngineCommand } = await import("./local-engine-command-HMTQK7MN.js");
3445
+ if (command === "local") {
3446
+ const { runLocalEngineCommand } = await import("./local-engine-command-73NHWD6V.js");
3423
3447
  const project = ["token", "stop", "update"].includes(args.subcommand ?? "");
3424
3448
  return project ? atProjectRoot(args, runLocalEngineCommand) : runLocalEngineCommand(args);
3425
3449
  }
3426
3450
  if (command === "env") {
3427
3451
  if (args.subcommand === "set" || args.subcommand === "unset") {
3428
- const { runEnvVarCommand } = await import("./env-var-command-YKTJZFJN.js");
3452
+ const { runEnvVarCommand } = await import("./env-var-command-FKQ4VVQ6.js");
3429
3453
  return atProjectRoot(args, (a) => runEnvVarCommand(a, args.subcommand));
3430
3454
  }
3431
3455
  if (args.subcommand !== "pull") throw unknownSubcommand("env", args.subcommand);
3432
- const { runEnvPullCommand } = await import("./env-pull-command-WZZ7RL2E.js");
3456
+ const { runEnvPullCommand } = await import("./env-pull-command-Z4RLVEGJ.js");
3433
3457
  return atProjectRoot(args, runEnvPullCommand);
3434
3458
  }
3435
3459
  if (command === "secrets") {
3436
3460
  if (args.subcommand !== "fill") throw unknownSubcommand("secrets", args.subcommand);
3437
- const { runSecretsFillCommand } = await import("./secrets-fill-command-QEOCUOAY.js");
3461
+ const { runSecretsFillCommand } = await import("./secrets-fill-command-HIHK3VH2.js");
3438
3462
  return atProjectRoot(args, runSecretsFillCommand, entryPositional(args));
3439
3463
  }
3440
3464
  if (command === "release") {
3441
- const { runReleaseCommand: runReleaseNs } = await import("./release-ns-command-EIBN3JVM.js");
3465
+ const { runReleaseCommand: runReleaseNs } = await import("./release-ns-command-WOQE2BDQ.js");
3442
3466
  return atProjectRoot(args, runReleaseNs);
3443
3467
  }
3444
3468
  if (command === "pull") {
3445
- const { runPullCommand } = await import("./pull-command-WQFPLITW.js");
3469
+ const { runPullCommand } = await import("./pull-command-EUEWBRXZ.js");
3446
3470
  const first = args.positionals[0];
3447
3471
  const file = first !== void 0 && !isKindShaped(first) && (/\.json$/i.test(first) || /[\\/]/.test(first));
3448
3472
  return file ? runPullCommand(args) : atProjectRoot(args, runPullCommand);
3449
3473
  }
3450
3474
  if (command === "generate") {
3451
- const { runGenerateCommand } = await import("./generate-command-3NTNRQRS.js");
3475
+ const { runGenerateCommand } = await import("./generate-command-XNODJFDQ.js");
3452
3476
  return runGenerateCommand(args);
3453
3477
  }
3454
3478
  if (command === "tables") {
3455
- const { runTablesCommand } = await import("./tables-command-X3JK7VSK.js");
3479
+ const { runTablesCommand } = await import("./tables-command-5Q4BSUNO.js");
3456
3480
  return atProjectRoot(args, runTablesCommand);
3457
3481
  }
3458
3482
  if (command === "impersonate") {
3459
- const { runImpersonateCommand } = await import("./impersonate-command-QEJA72Q2.js");
3483
+ const { runImpersonateCommand } = await import("./impersonate-command-AEKIZHHK.js");
3460
3484
  return atProjectRoot(args, runImpersonateCommand);
3461
3485
  }
3462
3486
  if (command === "promote") {
3463
- const { runPromoteCommand } = await import("./promote-command-4F2NAE6P.js");
3487
+ const { runPromoteCommand } = await import("./promote-command-KHTIK44I.js");
3464
3488
  return atProjectRoot(args, runPromoteCommand);
3465
3489
  }
3466
3490
  if (command === "publish") {
3467
- const { runPublishCommand } = await import("./publish-command-LGLZBOCB.js");
3491
+ const { runPublishCommand } = await import("./publish-command-HGAB3H4A.js");
3468
3492
  return atProjectRoot(args, runPublishCommand, "path");
3469
3493
  }
3470
3494
  if (command === "tenant") {
3471
- const { runTenantCommand } = await import("./tenant-command-P27EQHBU.js");
3495
+ const { runTenantCommand } = await import("./tenant-command-BFVU2PEX.js");
3472
3496
  return atProjectRoot(args, runTenantCommand);
3473
3497
  }
3474
3498
  if (command === "test") {
3475
- const { runTestCommand } = await import("./test-command-A4G2FP7G.js");
3499
+ const { runTestCommand } = await import("./test-command-F4VUU4QR.js");
3476
3500
  return atProjectRoot(args, runTestCommand);
3477
3501
  }
3478
3502
  if (command === "workspace") {
3479
- const { runWorkspaceCommand } = await import("./workspace-command-T7Z2BDHD.js");
3503
+ const { runWorkspaceCommand } = await import("./workspace-command-GTUNVN7K.js");
3480
3504
  return runWorkspaceCommand(args);
3481
3505
  }
3482
3506
  if (command === "status") {
3483
- const { runStatusCommand } = await import("./status-command-XUH5OGQX.js");
3507
+ const { runStatusCommand } = await import("./status-command-JKTHH5QE.js");
3484
3508
  return runStatusCommand(args);
3485
3509
  }
3486
3510
  if (command === "whoami") {
3487
- const { runWhoamiCommand } = await import("./whoami-command-KNWFWAX6.js");
3511
+ const { runWhoamiCommand } = await import("./whoami-command-YKNTISIV.js");
3488
3512
  return runWhoamiCommand(args);
3489
3513
  }
3490
3514
  if (command === "profile") {
3491
- const { runProfileCommand } = await import("./profile-command-NPKBJYPM.js");
3515
+ const { runProfileCommand } = await import("./profile-command-P7A3BH26.js");
3492
3516
  return runProfileCommand(args);
3493
3517
  }
3494
3518
  if (command === "marketplace") {
3495
3519
  if (!["list", "search", "details", "install", "reinstall", "remove"].includes(args.subcommand ?? "")) {
3496
3520
  throw unknownSubcommand("marketplace", args.subcommand);
3497
3521
  }
3498
- const marketplace = await import("./marketplace-command-HKACSYKS.js");
3499
- const { withCatalogueRerun } = await import("./marketplace-resolve-KLFYVRWS.js");
3522
+ const marketplace = await import("./marketplace-command-LEFOAEAV.js");
3523
+ const { withCatalogueRerun } = await import("./marketplace-resolve-ME7O7JBJ.js");
3500
3524
  try {
3501
3525
  if (args.subcommand === "list") return await marketplace.runMarketplaceListCommand(args);
3502
3526
  if (args.subcommand === "search") return await marketplace.runMarketplaceSearchCommand(args);
@@ -3509,7 +3533,7 @@ async function dispatch(rawArgv) {
3509
3533
  }
3510
3534
  }
3511
3535
  if (command === "preflight") {
3512
- const { runPreflightCommand } = await import("./preflight-command-EBQ6XQF3.js");
3536
+ const { runPreflightCommand } = await import("./preflight-command-VKJKXRRI.js");
3513
3537
  return runPreflightCommand(args);
3514
3538
  }
3515
3539
  if (command !== "compile" && command !== "export" && command !== "paths" && command !== "routes") {
@@ -3524,12 +3548,12 @@ async function dispatch(rawArgv) {
3524
3548
  if (command === "paths" || command === "routes") {
3525
3549
  return runPaths(args);
3526
3550
  }
3527
- const { discoverToolchainPlugins } = await import("./toolchain-modules-3M7QDJBV.js");
3551
+ const { discoverToolchainPlugins } = await import("./toolchain-modules-FD5ANV2U.js");
3528
3552
  const toolchain = await discoverToolchainPlugins(process.cwd(), {
3529
3553
  frozen: args.frozenLock === true || args.check === true
3530
3554
  });
3531
3555
  if (out && !args.check) {
3532
- const { assertWritableTarget } = await import("./output-target-SZMBNYF4.js");
3556
+ const { assertWritableTarget } = await import("./output-target-5FWX3NGZ.js");
3533
3557
  assertWritableTarget(out, "--out");
3534
3558
  }
3535
3559
  const { bundle: json, bundleObject, omittedSeedTables, lock: lockOutcome, declaredEnvNames } = await compileBundle(args);
@@ -3539,7 +3563,7 @@ async function dispatch(rawArgv) {
3539
3563
  `Exported bundle omits seed rows for ${countOf(omittedSeedTables.length, "table")}: ${names}. Seed is applied only by \`xanosdk deploy <entry>\` \u2014 deploying this bundle via \`--bundle\` ships schema without seed data.`
3540
3564
  );
3541
3565
  }
3542
- const { hostedIconOwners } = await import("./hosted-file-PSHJB3HX.js");
3566
+ const { hostedIconOwners } = await import("./hosted-file-S7YUQAH6.js");
3543
3567
  const hostedOwners = hostedIconOwners(bundleObject.payload ?? {});
3544
3568
  if (hostedOwners.length > 0 && !args.check) {
3545
3569
  warn(
@@ -3547,7 +3571,7 @@ async function dispatch(rawArgv) {
3547
3571
  "export.hosted-files-omitted"
3548
3572
  );
3549
3573
  }
3550
- const { runBundleHooks } = await import("./toolchain-hooks-BGZBDFAT.js");
3574
+ const { runBundleHooks } = await import("./toolchain-hooks-QVUZ6HZ4.js");
3551
3575
  await runBundleHooks(
3552
3576
  toolchain.loaded,
3553
3577
  {
@@ -3560,15 +3584,15 @@ async function dispatch(rawArgv) {
3560
3584
  },
3561
3585
  ""
3562
3586
  );
3563
- const { refreshEnvExample, bundleEnvNames: bundleEnvNames2 } = await import("./env-example-refresh-ZO6XAV44.js");
3564
- const { backendDirFor } = await import("./backend-dir-WZADOK3L.js");
3587
+ const { refreshEnvExample, bundleEnvNames: bundleEnvNames2 } = await import("./env-example-refresh-DWQIOQYR.js");
3588
+ const { backendDirFor } = await import("./backend-dir-IE4RMUFH.js");
3565
3589
  const declaredSet = new Set(declaredEnvNames);
3566
3590
  const templateDir = backendDirFor(args.file);
3567
3591
  const ownsTemplate = isWithin(resolve2(args.file), templateDir) && (dirname2(resolve2(args.file)) === templateDir || !existsSync2(join2(templateDir, "index.ts")));
3568
3592
  const templateEnv = Object.fromEntries(
3569
3593
  Object.entries(bundleEnvNames2(bundleObject)).filter(([name]) => declaredSet.has(name))
3570
3594
  );
3571
- const { skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-FOR4IOXL.js");
3595
+ const { skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-JWZWGXXR.js");
3572
3596
  const projectSdk = skewedProjectSdk(dirname2(resolve2(args.file)), readVersion());
3573
3597
  const regenerate = projectSdk === void 0 ? `xanosdk export ${shellWord(pastePath(args.file))} --out ${NULL_DEVICE}` : installedCliCommand(projectSdk.root, (path) => `export ${path(args.file)} --out ${NULL_DEVICE}`);
3574
3598
  if (args.check) {
@@ -3619,15 +3643,15 @@ async function dispatch(rawArgv) {
3619
3643
  info(`${hadEnvExample ? "Updated" : "Wrote"} ${displayPath(refreshed)} to list the env names this source declares.`);
3620
3644
  }
3621
3645
  if (out) {
3622
- const { secretsCarriedBy } = await import("./live-diff-2S7E3SBZ.js");
3623
- const { writeExportFile } = await import("./output-target-SZMBNYF4.js");
3646
+ const { secretsCarriedBy } = await import("./live-diff-IM4W3ELT.js");
3647
+ const { writeExportFile } = await import("./output-target-5FWX3NGZ.js");
3624
3648
  const written = lockOutcome?.changed ? `Only ${lockOutcome.path} was written` : void 0;
3625
3649
  writeExportFile(out, json + "\n", secretsCarriedBy(bundleObject), "--out", written);
3626
3650
  reportWrote(args, out, lockOutcome);
3627
3651
  } else {
3628
3652
  process.stdout.write(json + "\n");
3629
- const { secretsCarriedBy } = await import("./live-diff-2S7E3SBZ.js");
3630
- const { secretsPhrase } = await import("./output-target-SZMBNYF4.js");
3653
+ const { secretsCarriedBy } = await import("./live-diff-IM4W3ELT.js");
3654
+ const { secretsPhrase } = await import("./output-target-5FWX3NGZ.js");
3631
3655
  const secrets = secretsCarriedBy(bundleObject);
3632
3656
  if (secrets.length > 0) {
3633
3657
  warn(
@@ -3646,11 +3670,11 @@ async function refreshAgentGuidance(args) {
3646
3670
  if (args.noRefresh) return;
3647
3671
  if (args.check || args.frozenLock || args.dryRun) return;
3648
3672
  try {
3649
- const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-FOR4IOXL.js");
3673
+ const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-JWZWGXXR.js");
3650
3674
  const entryProject = args.file === void 0 ? void 0 : installedSdk(dirname2(resolve2(args.file)))?.root;
3651
3675
  const projectDir = existsSync2(join2(process.cwd(), "AGENTS.md")) || entryProject === void 0 ? process.cwd() : entryProject;
3652
3676
  const projectSdk = skewedProjectSdk(projectDir, readVersion());
3653
- const { refreshAgentFiles } = await import("./agent-file-refresh-LB6KIMFY.js");
3677
+ const { refreshAgentFiles } = await import("./agent-file-refresh-KVLR7M5Y.js");
3654
3678
  if (projectSdk !== void 0) {
3655
3679
  const stale = refreshAgentFiles({ projectDir, sdkVersion: readVersion(), write: false });
3656
3680
  const file = args.file;
@@ -3713,7 +3737,7 @@ function noteUnlockedBuild() {
3713
3737
  }
3714
3738
  function adoptBeforeFirstLock(lockPath, args) {
3715
3739
  const deploying = args?.command === "deploy";
3716
- if (deploying && (args.localEngine || args.to === void 0 || args.to.startsWith("local-engine"))) return void 0;
3740
+ if (deploying && (args.localEngine || args.to === void 0 || args.to.startsWith("local"))) return void 0;
3717
3741
  const importLine = `\`xanosdk lock import live.json --lock=${shellWord(displayPath(lockPath))} --yes\``;
3718
3742
  const ending = "so the lock adopts the URLs it already serves instead of values it will not accept.";
3719
3743
  const target = deploying ? args.to : "workspace";
@@ -3893,7 +3917,7 @@ async function runPaths(args) {
3893
3917
  setDiagnosticSink(outerSink);
3894
3918
  }
3895
3919
  const payload = bundle.payload;
3896
- const { planRouteManifest } = await import("./routes-manifest-3BNZIVST.js");
3920
+ const { planRouteManifest } = await import("./routes-manifest-URFMAWJE.js");
3897
3921
  const plan = planRouteManifest(payload, (kind, name) => lockModel?.objects[lockKey(kind, name)]?.canonical);
3898
3922
  const queryCount = plan.rows.length;
3899
3923
  const realtimeCount = plan.servers.length + plan.unresolvedServers.length;
@@ -3917,7 +3941,7 @@ async function runPaths(args) {
3917
3941
  );
3918
3942
  }
3919
3943
  if (unresolved.length > 0) {
3920
- const { unresolvedCanonicalMessage } = await import("./routes-manifest-3BNZIVST.js");
3944
+ const { unresolvedCanonicalMessage } = await import("./routes-manifest-URFMAWJE.js");
3921
3945
  const why = `${args.emit} was not written: ${unresolvedCanonicalMessage(unresolved, shellWord(file))}`;
3922
3946
  if (args.strict) throw new Error(`--strict: ${why}`);
3923
3947
  warn(why, "routes.not-written");
@@ -3929,7 +3953,7 @@ async function runPaths(args) {
3929
3953
  if (machine && args.emit !== "-") writeJson({ emit: resolve2(args.emit), written: false, routes: 0, channels: 0 });
3930
3954
  return;
3931
3955
  }
3932
- const { renderPlannedManifest, renderRouteManifest } = await import("./routes-manifest-3BNZIVST.js");
3956
+ const { renderPlannedManifest, renderRouteManifest } = await import("./routes-manifest-URFMAWJE.js");
3933
3957
  const source = emptiedManifest ? renderRouteManifest([]) : renderPlannedManifest(plan);
3934
3958
  const routeCount = resolved.length === 1 ? "1 route" : `${resolved.length} routes`;
3935
3959
  const channelCount = channelRows.length === 1 ? "1 channel" : `${channelRows.length} channels`;
@@ -3938,7 +3962,7 @@ async function runPaths(args) {
3938
3962
  writeData(process.stdout, source);
3939
3963
  return;
3940
3964
  }
3941
- const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-FOR4IOXL.js");
3965
+ const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-JWZWGXXR.js");
3942
3966
  const emitDir = dirname2(resolve2(args.emit));
3943
3967
  const projectSdk = skewedProjectSdk(installedSdk(emitDir) !== void 0 ? emitDir : dirname2(resolve2(file)), readVersion());
3944
3968
  if (projectSdk !== void 0 && existsSync2(args.emit) && readFileSync3(args.emit, "utf8") !== source) {
@@ -4011,7 +4035,7 @@ async function runPaths(args) {
4011
4035
  }
4012
4036
  }
4013
4037
  if (unresolved.length > 0) {
4014
- const { unresolvedCanonicalMessage } = await import("./routes-manifest-3BNZIVST.js");
4038
+ const { unresolvedCanonicalMessage } = await import("./routes-manifest-URFMAWJE.js");
4015
4039
  throw new UsageError(`${commandLabel(args)}: ${unresolvedCanonicalMessage(unresolved, shellWord(file))}`);
4016
4040
  }
4017
4041
  }
@@ -4029,11 +4053,11 @@ async function refreshRouteManifest(entry, emit2) {
4029
4053
  } finally {
4030
4054
  setDiagnosticSink(previousSink);
4031
4055
  }
4032
- const { pulledIdentities } = await import("./pull-command-WQFPLITW.js");
4056
+ const { pulledIdentities } = await import("./pull-command-EUEWBRXZ.js");
4033
4057
  const live = pulledIdentities(payload);
4034
4058
  const lockOrphans = lockModel === void 0 ? 0 : Object.keys(lockModel.objects).filter((k) => k !== WORKSPACE_KEY && !live.has(k)).length;
4035
4059
  if (!existsSync2(emit2)) return { manifest: "absent", lockOrphans };
4036
- const { planRouteManifest, renderPlannedManifest, renderRouteManifest } = await import("./routes-manifest-3BNZIVST.js");
4060
+ const { planRouteManifest, renderPlannedManifest, renderRouteManifest } = await import("./routes-manifest-URFMAWJE.js");
4037
4061
  const plan = planRouteManifest(payload, (kind, name) => lockModel?.objects[lockKey(kind, name)]?.canonical);
4038
4062
  if (plan.unresolved.length > 0) return { manifest: "skipped", lockOrphans };
4039
4063
  const source = renderPlannedManifest(plan) ?? (plan.resolved.length === 0 && plan.servers.length === 0 ? renderRouteManifest([]) : void 0);
@@ -4481,7 +4505,7 @@ function checkStandInTokens(def) {
4481
4505
  }
4482
4506
  function docMergeOf(args) {
4483
4507
  if (args.command !== "deploy" || args.localEngine) return void 0;
4484
- if (args.to !== void 0) return args.replace || args.to.startsWith("local-engine") ? void 0 : "to";
4508
+ if (args.to !== void 0) return args.replace || args.to.startsWith("local") ? void 0 : "to";
4485
4509
  return args.keepData && !args.reset ? "keep-data" : void 0;
4486
4510
  }
4487
4511
  function unsuppliedDocTokenError(unsupplied, remedy) {
@@ -4544,7 +4568,7 @@ async function refineGonePullHint(err) {
4544
4568
  if (offer === void 0 || auth === void 0 || !(err instanceof Error) || !err.message.includes(offer.clause)) return;
4545
4569
  let gone;
4546
4570
  try {
4547
- const { lookupEphemeral } = await import("./source-resolve-DMDZVPMM.js");
4571
+ const { lookupEphemeral } = await import("./source-resolve-OWD3MIEO.js");
4548
4572
  gone = await lookupEphemeral(auth, offer.name) === null;
4549
4573
  } catch {
4550
4574
  return;
@@ -4747,4 +4771,4 @@ export {
4747
4771
  docTokenRefusalIfReplaced,
4748
4772
  envRefusalIfReplaced
4749
4773
  };
4750
- //# sourceMappingURL=chunk-WYEQFD6A.js.map
4774
+ //# sourceMappingURL=chunk-S5KQIFKJ.js.map