@xano/sdk 1.0.4 → 1.0.6

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 (280) hide show
  1. package/CHANGELOG.md +32 -5
  2. package/README.md +250 -342
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/agent-file-refresh-67QIX45H.js +39 -0
  5. package/dist/{answer-shape-LVV2SVBK.js → answer-shape-UCDUKPAN.js} +6 -6
  6. package/dist/{backend-dir-WZADOK3L.js → backend-dir-3LIL6SCT.js} +16 -15
  7. package/dist/{backend-slot-NSCTWCUX.js → backend-slot-JREP27UD.js} +4 -4
  8. package/dist/bin.js +59 -58
  9. package/dist/{branch-ONWPJ4V6.js → branch-2IPHOAYS.js} +10 -10
  10. package/dist/{branch-commands-ZT2MJIRS.js → branch-commands-KTKAXBAN.js} +31 -32
  11. package/dist/bundle.js +9 -39
  12. package/dist/{capture-3JNUA6C2.js → capture-GW5KNKMB.js} +4 -4
  13. package/dist/{chunk-FPBGAT5D.js → chunk-26MOFAJT.js} +3 -3
  14. package/dist/{chunk-O7QOWS6M.js → chunk-2FLIJGBZ.js} +12 -12
  15. package/dist/{chunk-QAEQGT5I.js → chunk-2WBH5HUY.js} +7 -7
  16. package/dist/{chunk-37AHZ7JX.js → chunk-3BBIDW3Y.js} +6 -6
  17. package/dist/{chunk-DGWHAVRG.js → chunk-3EDSPMXN.js} +12 -1
  18. package/dist/{chunk-2AUV6NXK.js → chunk-3II44CUJ.js} +36 -36
  19. package/dist/{chunk-7GX445AE.js → chunk-4XHAT7C5.js} +2 -2
  20. package/dist/{chunk-OOXWYAA4.js → chunk-57A5ZKPO.js} +1 -1
  21. package/dist/{chunk-OOGXZL7Z.js → chunk-5KJBWIDZ.js} +84 -6
  22. package/dist/{chunk-5YL5OC2G.js → chunk-5QMJOE2K.js} +6 -6
  23. package/dist/{chunk-3H3EPMFY.js → chunk-5TVFLG3C.js} +2 -2
  24. package/dist/{chunk-WFMVKY7I.js → chunk-5YQV35C2.js} +9 -9
  25. package/dist/{chunk-NA3PXMEF.js → chunk-64WWE3EF.js} +1 -1
  26. package/dist/{chunk-FMOEVAGT.js → chunk-6X3MY2JP.js} +3 -3
  27. package/dist/{chunk-2LVTBPW2.js → chunk-6X6BJN6Y.js} +3 -3
  28. package/dist/{chunk-DYG5D3FD.js → chunk-763M6LX3.js} +16 -2
  29. package/dist/{chunk-EESV6NU2.js → chunk-7FIMUFBP.js} +2 -2
  30. package/dist/{chunk-CFSFBKHP.js → chunk-7GAIJW62.js} +2 -2
  31. package/dist/{chunk-6R7S775T.js → chunk-7REDHC4N.js} +2 -2
  32. package/dist/chunk-7VR4IO5B.js +44 -0
  33. package/dist/chunk-A7MRZ4GF.js +78 -0
  34. package/dist/{chunk-D5ZEAF4G.js → chunk-ATJ2W7DC.js} +81 -58
  35. package/dist/{chunk-BUJRS7XB.js → chunk-AVS4WPPY.js} +2 -2
  36. package/dist/{chunk-MEE5RZ6G.js → chunk-BL3AZ3AP.js} +2 -2
  37. package/dist/chunk-BTVUYHWV.js +111 -0
  38. package/dist/{chunk-T4DUFQ2S.js → chunk-CCU5CCRX.js} +5 -5
  39. package/dist/{chunk-5T2CTWTB.js → chunk-CHINR7WD.js} +6 -6
  40. package/dist/{chunk-VD32O6KZ.js → chunk-CJDPSCMX.js} +45 -5
  41. package/dist/{chunk-3HOGFGKG.js → chunk-D3KEPRRN.js} +2 -2
  42. package/dist/{chunk-SBR2WZXG.js → chunk-D7BUMOKU.js} +60 -53
  43. package/dist/{chunk-WRBKLYSJ.js → chunk-DNBP4GJN.js} +4 -3
  44. package/dist/{chunk-JTUKLCXS.js → chunk-DXUICABI.js} +1 -1
  45. package/dist/{chunk-XMDDBEEM.js → chunk-E763QI3G.js} +2 -2
  46. package/dist/{chunk-KTGRGWZW.js → chunk-EADVVTDK.js} +7 -7
  47. package/dist/{chunk-FJWZ5OVV.js → chunk-ENMBEXOP.js} +3 -3
  48. package/dist/{chunk-OPHB5ORL.js → chunk-EQFYOOO6.js} +171 -92
  49. package/dist/{chunk-WOGJB2F6.js → chunk-FNLTFOUD.js} +4 -9
  50. package/dist/{chunk-II747OWE.js → chunk-FQ53GTII.js} +10 -10
  51. package/dist/{chunk-JP7M7OU7.js → chunk-FU3VCE5A.js} +46 -27
  52. package/dist/{chunk-OGBMUST4.js → chunk-GHQ4BVI4.js} +14 -14
  53. package/dist/{chunk-45YPFB7B.js → chunk-GLY552SI.js} +84 -57
  54. package/dist/{chunk-QV3GXQRE.js → chunk-GOLFAEUV.js} +2 -2
  55. package/dist/{chunk-L2GLOJAO.js → chunk-GW5RHGOB.js} +22 -22
  56. package/dist/{chunk-A6QTTJUI.js → chunk-GWTFI3GA.js} +2 -2
  57. package/dist/{chunk-MCTIKRMN.js → chunk-GZHLCUZ6.js} +8 -8
  58. package/dist/{chunk-664LSWE5.js → chunk-HCG7NDIL.js} +4 -4
  59. package/dist/{chunk-7PMVIHB3.js → chunk-I3H3HCPY.js} +50 -29
  60. package/dist/{chunk-LIVN53UV.js → chunk-I3VHW6XM.js} +31 -31
  61. package/dist/{chunk-C4FHQA7R.js → chunk-IF4PEGVD.js} +8 -8
  62. package/dist/{chunk-WFG67AYS.js → chunk-IMELQ2I6.js} +3 -3
  63. package/dist/{chunk-3P3HXN76.js → chunk-ITC2R2OT.js} +11 -11
  64. package/dist/{chunk-W5ONYLOP.js → chunk-IXFJORNH.js} +4 -4
  65. package/dist/{chunk-HMLGM2MW.js → chunk-IYXL5NYU.js} +260 -32
  66. package/dist/{chunk-2B22WWKL.js → chunk-JFBRXRJD.js} +59 -35
  67. package/dist/chunk-JI3BLXWQ.js +107 -0
  68. package/dist/{chunk-4DJTQ6W4.js → chunk-JIKGT7DO.js} +2 -1
  69. package/dist/{chunk-O5V3YH5P.js → chunk-JRVQ7M7W.js} +8 -8
  70. package/dist/{chunk-4APOHK7Y.js → chunk-JXVJGF3Y.js} +2 -2
  71. package/dist/chunk-KPFS3RGM.js +257 -0
  72. package/dist/{chunk-PML67X22.js → chunk-LAOMN6QQ.js} +3 -3
  73. package/dist/{chunk-TTVAHCWP.js → chunk-LBJA7IEM.js} +370 -45
  74. package/dist/{chunk-KUTFFHUM.js → chunk-LD6ARK3A.js} +2 -2
  75. package/dist/{chunk-HUSH7LRI.js → chunk-LL7SGTRC.js} +36 -33
  76. package/dist/{chunk-I2BGYNHD.js → chunk-M5CSVB23.js} +7 -7
  77. package/dist/{chunk-UCQ2VUTG.js → chunk-M6ZFSTIZ.js} +2 -2
  78. package/dist/{chunk-MNVDVR3M.js → chunk-MBDFH7XB.js} +4 -4
  79. package/dist/{chunk-QXTKSOFI.js → chunk-MF4W6FHU.js} +1 -1
  80. package/dist/{chunk-RX3EMQGN.js → chunk-MFWF2NZJ.js} +12 -5
  81. package/dist/{chunk-SEUCZZCP.js → chunk-N5I37JFB.js} +3 -3
  82. package/dist/{chunk-IJ3SXSZM.js → chunk-ND43ZOS3.js} +6 -6
  83. package/dist/chunk-NDWVJ2QZ.js +67 -0
  84. package/dist/{chunk-E65QIWOO.js → chunk-NPODGBVJ.js} +4 -4
  85. package/dist/{chunk-CYB7UQA2.js → chunk-OIKLDDYC.js} +5 -5
  86. package/dist/{chunk-MLGI2SRQ.js → chunk-PFBXSVZF.js} +4 -4
  87. package/dist/{chunk-AM4FKL4J.js → chunk-PL7AIAWS.js} +12 -12
  88. package/dist/{chunk-S7E2AHV3.js → chunk-PMMHSX4H.js} +26 -9
  89. package/dist/{chunk-WL2DSNJV.js → chunk-Q22BMRPF.js} +2 -2
  90. package/dist/{chunk-3FN2BIGB.js → chunk-QJM5XZ4K.js} +6 -6
  91. package/dist/{chunk-EWCDPFW5.js → chunk-QXYMDARD.js} +4 -4
  92. package/dist/{chunk-MLPDSGJQ.js → chunk-QZEAANWP.js} +5 -5
  93. package/dist/{chunk-ESZ2FF57.js → chunk-RIN4YY34.js} +88 -74
  94. package/dist/{chunk-37FBPMNE.js → chunk-S56YBYMN.js} +5 -2
  95. package/dist/{chunk-CBYQ2ZN3.js → chunk-SKEG3V2V.js} +2 -2
  96. package/dist/{chunk-4PQHO74B.js → chunk-SLGJIWCY.js} +4 -4
  97. package/dist/{chunk-IVKRT476.js → chunk-SPITRSOF.js} +2 -2
  98. package/dist/{chunk-BUECLQXK.js → chunk-SPKA2LV6.js} +4 -4
  99. package/dist/{chunk-HHW5AWVD.js → chunk-SSITMX7I.js} +30 -30
  100. package/dist/{chunk-OPG4DYX2.js → chunk-T4LJ5UR2.js} +29 -7
  101. package/dist/{chunk-LXNQWHZM.js → chunk-TECTL2NU.js} +4 -4
  102. package/dist/{chunk-E6H5ZEV3.js → chunk-TTEIDD5Q.js} +3 -3
  103. package/dist/{chunk-6VBTPV2Y.js → chunk-U35MTOXQ.js} +3 -3
  104. package/dist/{chunk-UKUIUS3E.js → chunk-U6MTGB46.js} +5 -5
  105. package/dist/{chunk-Y2ZLKBM6.js → chunk-UD2Z7K6W.js} +4 -4
  106. package/dist/{chunk-IXUPUFCG.js → chunk-UIVMR7UK.js} +2 -2
  107. package/dist/{chunk-UDE5C2XN.js → chunk-VDHA5SSQ.js} +3 -3
  108. package/dist/{chunk-5W7DOMIU.js → chunk-VJFMUJWZ.js} +4 -4
  109. package/dist/{chunk-XNCP4KYO.js → chunk-VQPDATQT.js} +1 -1
  110. package/dist/{chunk-KCAL4QYP.js → chunk-VW4CWVYX.js} +4 -4
  111. package/dist/chunk-WAVNUTMT.js +9 -0
  112. package/dist/{chunk-DIG3NITC.js → chunk-WBH4KJWM.js} +3 -3
  113. package/dist/{chunk-HSEQYBDO.js → chunk-WZHLMU6T.js} +3 -3
  114. package/dist/{chunk-WYEQFD6A.js → chunk-XFBGXB7X.js} +173 -105
  115. package/dist/{chunk-UI4OPTYR.js → chunk-Y453TW6J.js} +2 -2
  116. package/dist/{chunk-LUTMOHOW.js → chunk-YGLMRH5U.js} +9 -9
  117. package/dist/{chunk-GPI3OWRE.js → chunk-YHB34BN6.js} +2 -1
  118. package/dist/{chunk-5WGVIXMD.js → chunk-YKP4ZKVO.js} +14 -10
  119. package/dist/{chunk-MN2PB6WB.js → chunk-YR2I5HGE.js} +3 -3
  120. package/dist/{chunk-ZG7E72VI.js → chunk-YYC2DZMG.js} +7 -7
  121. package/dist/{chunk-D64XUF5Q.js → chunk-YYLUBYXM.js} +16 -16
  122. package/dist/{chunk-VRVKNY4A.js → chunk-Z4ZGTCCD.js} +8 -8
  123. package/dist/{chunk-44B4V2LR.js → chunk-ZDP6GDAB.js} +142 -142
  124. package/dist/{chunk-ET5DSBAC.js → chunk-ZJSTUD6D.js} +8 -8
  125. package/dist/cli.d.ts +36 -26
  126. package/dist/cli.js +57 -56
  127. package/dist/{codegen-command-HTWIW56U.js → codegen-command-R5IASBFC.js} +78 -72
  128. package/dist/codegen.d.ts +2 -2
  129. package/dist/codegen.js +2 -2
  130. package/dist/{commands-CVFYC4GK.js → commands-H7CPMMHH.js} +3 -3
  131. package/dist/{completion-AUEQC4XJ.js → completion-W5ZAI6TN.js} +12 -12
  132. package/dist/{config-JU6OQC77.js → config-MZ5KG4EP.js} +5 -5
  133. package/dist/{deploy-command-5WTFHMBT.js → deploy-command-34T2LKQ5.js} +64 -63
  134. package/dist/deploy-source-YLQ7WMYR.js +82 -0
  135. package/dist/{dev-env-sync-X636HLMK.js → dev-env-sync-TMJTNU3U.js} +58 -57
  136. package/dist/{diagnostics-LSMGB4TY.js → diagnostics-OMN5Y2AH.js} +2 -2
  137. package/dist/{display-name-hint-DMORHANO.js → display-name-hint-ZJGFNJKQ.js} +12 -12
  138. package/dist/{emit-hOFbgzde.d.ts → emit-D125xxty.d.ts} +67 -21
  139. package/dist/env-example-refresh-CQP3ZMKM.js +133 -0
  140. package/dist/{env-pull-command-WZZ7RL2E.js → env-pull-command-UTG6IC2K.js} +53 -53
  141. package/dist/{env-target-PO3MOLH5.js → env-target-FZROWYFS.js} +14 -14
  142. package/dist/{env-var-command-YKTJZFJN.js → env-var-command-VYDBQJJW.js} +51 -50
  143. package/dist/{ephemeral-BMFY55BQ.js → ephemeral-BIE6FMJV.js} +10 -10
  144. package/dist/{ephemeral-command-VDSQCOYL.js → ephemeral-command-OZ26RGXF.js} +54 -54
  145. package/dist/{ephemeral-state-6TY4JIPA.js → ephemeral-state-SNZOX2YK.js} +12 -12
  146. package/dist/{generate-command-3NTNRQRS.js → generate-command-4HR7MR36.js} +87 -79
  147. package/dist/{gitignore-FWPEDX6C.js → gitignore-EWQBXNX2.js} +20 -19
  148. package/dist/{guards-EJU2ONAX.js → guards-KYEOCVHN.js} +7 -7
  149. package/dist/{hosted-file-PSHJB3HX.js → hosted-file-S7YUQAH6.js} +2 -2
  150. package/dist/{impersonate-command-QEJA72Q2.js → impersonate-command-WC7OGKUM.js} +44 -43
  151. package/dist/{import-TBTOTU52.js → import-7Z4GCCPO.js} +6 -6
  152. package/dist/index.d.ts +14 -20
  153. package/dist/index.js +14 -14
  154. package/dist/init-command-HAO3WXH3.js +128 -0
  155. package/dist/{init-modules-HZRQFRLE.js → init-modules-NSKD4ASY.js} +12 -11
  156. package/dist/{init-web-Y2PBNJTQ.js → init-web-MKFFOQUU.js} +3 -3
  157. package/dist/internal.d.ts +5 -5
  158. package/dist/internal.js +61 -35
  159. package/dist/{io-ZUKAGFVE.js → io-PGTCBSIQ.js} +7 -5
  160. package/dist/{keep-data-merge-X5LDDCI3.js → keep-data-merge-QR2TMKEO.js} +33 -34
  161. package/dist/{lambda-config-reconcile-OUZ4OYAB.js → lambda-config-reconcile-7FJXXV6V.js} +4 -4
  162. package/dist/{landed-6VO7CX5P.js → landed-F7PCHGCK.js} +4 -4
  163. package/dist/{landing-record-QYECWLQ5.js → landing-record-MWXFIRCP.js} +26 -25
  164. package/dist/{live-diff-2S7E3SBZ.js → live-diff-5E2BQWQ7.js} +10 -9
  165. package/dist/local-engine-choice-VD5LNXJU.js +80 -0
  166. package/dist/{local-engine-command-HMTQK7MN.js → local-engine-command-RYLGMQ2O.js} +96 -95
  167. package/dist/{local-engine-config-5U3SC434.js → local-engine-config-W3KB7RWM.js} +2 -2
  168. package/dist/{local-engine-deploy-TXAOYRGF.js → local-engine-deploy-6O7NKZCA.js} +17 -17
  169. package/dist/{local-engine-process-6VZ7JJBP.js → local-engine-process-ZLLZEIRF.js} +12 -12
  170. package/dist/{local-engine-state-TJWPWCC4.js → local-engine-state-OCW5YDD7.js} +3 -3
  171. package/dist/{local-engine-update-check-R5SPDVEJ.js → local-engine-update-check-LVX4HBBI.js} +8 -8
  172. package/dist/{lock-TS465GVY.js → lock-HDCHD2ON.js} +5 -3
  173. package/dist/{lock-commands-4VT3L5W5.js → lock-commands-X2OECR4R.js} +62 -61
  174. package/dist/{login-command-O6WA4FYL.js → login-command-RLLKD565.js} +31 -30
  175. package/dist/{logout-command-6CPWGFY2.js → logout-command-XDMSXCDO.js} +17 -17
  176. package/dist/{loop-UFHKSOQ4.js → loop-SUB6C2LK.js} +9 -10
  177. package/dist/{marketplace-command-HKACSYKS.js → marketplace-command-2NHHY2X3.js} +89 -53
  178. package/dist/{marketplace-resolve-KLFYVRWS.js → marketplace-resolve-OTZYT4FG.js} +9 -8
  179. package/dist/{meta-client-73PX6UGJ.js → meta-client-TMHVBZFY.js} +15 -15
  180. package/dist/{module-manifest-GIKFNXPE.js → module-manifest-FNMW23IX.js} +7 -4
  181. package/dist/node.d.ts +5 -5
  182. package/dist/node.js +63 -63
  183. package/dist/operation-outcome-RN62735X.js +51 -0
  184. package/dist/{output-target-SZMBNYF4.js → output-target-MOLCTPBP.js} +21 -20
  185. package/dist/{package-manager-PRAHUSCN.js → package-manager-K762W7XT.js} +2 -2
  186. package/dist/{plan-disclosure-BHYG7TZ7.js → plan-disclosure-CY7AF6KP.js} +21 -22
  187. package/dist/{plugin-contributions-X4V22PJQ.js → plugin-contributions-WR26U7NT.js} +6 -6
  188. package/dist/{plugin-prompt-DKNQHW6Y.js → plugin-prompt-ZUYQQIX4.js} +5 -5
  189. package/dist/{plugin-questions-CQRVOWFK.js → plugin-questions-HAZOQ67R.js} +4 -4
  190. package/dist/plugin.d.ts +254 -10
  191. package/dist/{preflight-command-EBQ6XQF3.js → preflight-command-OHJXYND3.js} +70 -70
  192. package/dist/{profile-command-NPKBJYPM.js → profile-command-6JWT2BTL.js} +33 -32
  193. package/dist/{profile-pointer-UOO7JNFG.js → profile-pointer-PDA5XBIB.js} +5 -5
  194. package/dist/{profile-select-74TRDEPD.js → profile-select-45G5VPJK.js} +2 -2
  195. package/dist/{project-dependency-RRMTWOPC.js → project-dependency-GZWWGWEW.js} +13 -10
  196. package/dist/{project-sdk-FOR4IOXL.js → project-sdk-3W72H5QO.js} +4 -4
  197. package/dist/promote-command-UYAMUXKB.js +146 -0
  198. package/dist/{prompt-5GUQTCSP.js → prompt-U37K5RPQ.js} +4 -4
  199. package/dist/{publish-command-LGLZBOCB.js → publish-command-BUS27HGB.js} +138 -66
  200. package/dist/pull-command-ZGUNP27P.js +168 -0
  201. package/dist/{pull-superseded-GGURV5J3.js → pull-superseded-EZBGYRZF.js} +4 -4
  202. package/dist/{raw-where-EoWl5fqY.d.ts → raw-where-ZMLND6AG.d.ts} +20 -3
  203. package/dist/release-command-BQ6OHS3P.js +150 -0
  204. package/dist/{release-ns-command-EIBN3JVM.js → release-ns-command-ATGVBVIU.js} +94 -94
  205. package/dist/{retry-command-Y5YJGOH3.js → retry-command-QJ57WVW7.js} +9 -9
  206. package/dist/{routes-manifest-3BNZIVST.js → routes-manifest-YR4ZIMLM.js} +16 -8
  207. package/dist/routes-manifest-file-UALYSZLY.js +41 -0
  208. package/dist/scaffold.js +3 -3
  209. package/dist/{secrets-file-FUG7WCES.js → secrets-file-LMS7KX3E.js} +20 -19
  210. package/dist/{secrets-fill-command-QEOCUOAY.js → secrets-fill-command-QNBDGCGM.js} +61 -60
  211. package/dist/{seed-GJHJSEUE.js → seed-SZ6OS5DQ.js} +9 -9
  212. package/dist/{source-resolve-DMDZVPMM.js → source-resolve-MKLNYFWG.js} +24 -24
  213. package/dist/{static-host-WM24RG25.js → static-host-ONEHA4LI.js} +10 -10
  214. package/dist/{status-command-XUH5OGQX.js → status-command-XKIFKBGM.js} +57 -56
  215. package/dist/{store-CfgPaVPO.d.ts → store-Bg4Na6Sm.d.ts} +4 -4
  216. package/dist/{store-MR7IKXKK.js → store-X6ZH7EC3.js} +7 -7
  217. package/dist/sveltekit.d.ts +5 -5
  218. package/dist/sveltekit.js +1 -1
  219. package/dist/sync-baseline-DOV5AGIO.js +36 -0
  220. package/dist/{sync-contributions-DHP7XSTX.js → sync-contributions-HNVHDIQW.js} +21 -13
  221. package/dist/sync-record-PRXHLK4S.js +42 -0
  222. package/dist/{table-ZBDPKMNH.js → table-DC36QA4Y.js} +10 -10
  223. package/dist/{tables-command-X3JK7VSK.js → tables-command-UQLKTELN.js} +44 -43
  224. package/dist/{tenant-GKXMOYLK.js → tenant-EKNQGG5A.js} +11 -11
  225. package/dist/{tenant-command-P27EQHBU.js → tenant-command-2LWP2MPB.js} +105 -100
  226. package/dist/{test-command-A4G2FP7G.js → test-command-IU5MBBXY.js} +44 -43
  227. package/dist/{tests-C55M5EQS.js → tests-RG2Y5EQ4.js} +7 -7
  228. package/dist/{token-CMAB35GD.js → token-7AWSJLKO.js} +13 -13
  229. package/dist/toolchain-hooks-4ZMQLBPQ.js +46 -0
  230. package/dist/{toolchain-modules-3M7QDJBV.js → toolchain-modules-VU7SURVJ.js} +9 -6
  231. package/dist/toolchain-peers-CIDNEEQV.js +28 -0
  232. package/dist/tracked-backend-4BHSV7NC.js +81 -0
  233. package/dist/{update-check-LNNKIMML.js → update-check-A7FXIINW.js} +60 -59
  234. package/dist/{upgrade-command-7EUXML3P.js → upgrade-command-C5KBITFI.js} +64 -63
  235. package/dist/{whoami-command-KNWFWAX6.js → whoami-command-7WQII2H4.js} +16 -16
  236. package/dist/{workspace-TGPYOODG.js → workspace-Z46PUZNI.js} +6 -6
  237. package/dist/{workspace-binding-2TWZBHQY.js → workspace-binding-JE6YNDZJ.js} +15 -15
  238. package/dist/{workspace-command-T7Z2BDHD.js → workspace-command-FC4IMLAE.js} +119 -88
  239. package/dist/{workspace-env-VA7XN3UX.js → workspace-env-N4ZPFT6A.js} +17 -16
  240. package/dist/{workspace-export-AIGM6LC7.js → workspace-export-3A5BZTPS.js} +6 -6
  241. package/dist/{writable-FYJBTJOU.js → writable-D7KCZI5N.js} +4 -4
  242. package/dist/{xano-BSHYVFSE.js → xano-LCI7VWPS.js} +9 -9
  243. package/dist/{xanosdk-import-J6SRBZHW.js → xanosdk-import-P2A2KSXM.js} +10 -10
  244. package/dist/xanosdk-project-6AGMW2SL.js +42 -0
  245. package/guides/README.md +1 -0
  246. package/guides/authoring.md +3 -5
  247. package/guides/bundle.md +45 -0
  248. package/guides/cli.md +36 -34
  249. package/guides/codegen.md +5 -4
  250. package/guides/codes.md +16 -11
  251. package/guides/deploying.md +115 -58
  252. package/guides/environment.md +13 -13
  253. package/guides/marketplace.md +21 -0
  254. package/guides/module-contract.md +80 -4
  255. package/guides/project-structure.md +14 -0
  256. package/guides/typed-frontend.md +37 -0
  257. package/llms/client.md +14 -5
  258. package/llms/errors.md +1 -1
  259. package/llms/filters.md +4 -0
  260. package/llms/kinds-core.md +1 -1
  261. package/llms/statements-data.md +3 -2
  262. package/llms/tests.md +2 -2
  263. package/llms/toolchain.md +12 -0
  264. package/llms-full.txt +47 -21
  265. package/llms.txt +10 -10
  266. package/manifest.json +110 -107
  267. package/package.json +4 -4
  268. package/dist/agent-file-refresh-LB6KIMFY.js +0 -38
  269. package/dist/chunk-XXZZGXW2.js +0 -243
  270. package/dist/deploy-source-5CET3A5D.js +0 -81
  271. package/dist/env-example-refresh-ZO6XAV44.js +0 -127
  272. package/dist/init-command-27SFBW2F.js +0 -126
  273. package/dist/local-engine-choice-6BSPEG3E.js +0 -79
  274. package/dist/operation-outcome-2P4BVSEV.js +0 -51
  275. package/dist/promote-command-4F2NAE6P.js +0 -141
  276. package/dist/pull-command-WQFPLITW.js +0 -162
  277. package/dist/release-command-2OTNVMIL.js +0 -147
  278. package/dist/toolchain-hooks-BGZBDFAT.js +0 -96
  279. package/dist/tracked-backend-PZGUWD5J.js +0 -80
  280. package/dist/xanosdk-project-6KTCO47O.js +0 -41
package/dist/plugin.d.ts CHANGED
@@ -10,12 +10,15 @@
10
10
  * A TOOLCHAIN module extends the **CLI** instead. It adds nothing to the
11
11
  * workspace — registering it into `xano/index.ts` would be meaningless, because
12
12
  * there is nothing to register. What it does is participate in the commands:
13
- * declare questions, contribute to files the project owns, and run when a
14
- * bundle is compiled or a workspace is checked.
13
+ * declare questions, contribute to files the project owns, add a section to
14
+ * the route manifest (`routes.gen.ts`), and run when a bundle is compiled or a
15
+ * workspace is checked.
15
16
  *
16
- * The shape this contract was built for is a module that renders the compiled
17
+ * The contract was first built for a module that renders the compiled
17
18
  * workspace to a committed tree on every deploy, so a backend change can be
18
- * reviewed as what the engine will actually run.
19
+ * reviewed as what the engine will actually run. The route-manifest hook was
20
+ * added for the second module, `@xano-sdk/zod`, which renders a runtime
21
+ * validator for every request input beside the SDK's own input types.
19
22
  *
20
23
  * ── Contributions apply to a PROJECT, not to a scaffold ─────────────────────
21
24
  *
@@ -322,14 +325,227 @@ interface PreflightContext {
322
325
  /** This module's block from the project's `package.json` `"xanosdk"` object. */
323
326
  readonly config: Readonly<Record<string, unknown>>;
324
327
  }
328
+ /**
329
+ * The request inputs of every endpoint, realtime channel and realtime message a
330
+ * route manifest (`routes.gen.ts`) describes, read off the compiled payload.
331
+ *
332
+ * VALIDATOR-NEUTRAL on purpose. The SDK renders its own request types from this
333
+ * and a module renders its validators from the same value, so the two cannot
334
+ * disagree about what an input is: there is one reading of the stored inputs,
335
+ * not one per renderer. It is built from the payload alone because the decode
336
+ * paths (`pull`, `generate`, `init --from`) write the manifest with no compile
337
+ * of the workspace to ask.
338
+ *
339
+ * Keys are the manifest's FINAL keys, so a section built from this lines up
340
+ * with `ROUTES` and `CHANNELS` entry for entry. Entries are in a fixed order (see
341
+ * each list), so a renderer that walks them in order writes the same text for
342
+ * the same workspace.
343
+ */
344
+ interface RouteInputs {
345
+ /** One per `ROUTES` key, in `ROUTES` order. */
346
+ readonly routes: readonly RouteInputSet[];
347
+ /** One per `CHANNELS` key, in `CHANNELS` order: the channel's path params. */
348
+ readonly channels: readonly RouteInputSet[];
349
+ /**
350
+ * One per message on a channel in `CHANNELS`, sorted by key: the message's
351
+ * payload. A message whose channel the manifest leaves out (its server's
352
+ * canonical resolves nowhere) is left out with it.
353
+ */
354
+ readonly messages: readonly MessageInputSet[];
355
+ }
356
+ /** The inputs of one endpoint or channel, under its manifest key. */
357
+ interface RouteInputSet {
358
+ /**
359
+ * The manifest key: `"GET listings"` or `"v1:GET vehicles"` for an endpoint,
360
+ * `"rooms/{room_id}"` or `"chat:lobby"` for a channel.
361
+ */
362
+ readonly key: string;
363
+ /** In the order the def declares them. */
364
+ readonly inputs: readonly InputDescription[];
365
+ }
366
+ /**
367
+ * The payload inputs of one realtime message. Its `key` is
368
+ * `"<channel key> <message name>"` — `"rooms/{room_id} send"`. Read in the
369
+ * order a message is addressed, and collision-free: a message name holds no
370
+ * space and no `/`.
371
+ */
372
+ interface MessageInputSet extends RouteInputSet {
373
+ /** The owning channel's `CHANNELS` key. */
374
+ readonly channel: string;
375
+ /** The message's name, as a client sends it. */
376
+ readonly name: string;
377
+ }
378
+ /**
379
+ * The stored input types whose description carries nothing beyond the common
380
+ * flags. Engine spellings, not authoring names: `epochms` is
381
+ * `input.timestamp()`, `blob_img` is `input.image()`, `file` is a raw upload.
382
+ */
383
+ type InputScalarType = "text" | "int" | "decimal" | "bool" | "email" | "password" | "uuid" | "date" | "epochms" | "json" | "file" | "blob" | "blob_img" | "blob_video" | "blob_audio" | "geo_point" | "geo_multipoint" | "geo_linestring" | "geo_multilinestring" | "geo_polygon" | "geo_multipolygon";
384
+ /**
385
+ * An enabled method on an input (`trim`, `min:8`), with its arguments as
386
+ * strings. The stored form is numeric and string inconsistently (`[8]` and
387
+ * `["8"]` are both real bytes), so the two are read as one.
388
+ */
389
+ interface InputMethod {
390
+ readonly name: string;
391
+ readonly args: readonly string[];
392
+ }
393
+ /**
394
+ * A list input's length bounds. A bound the engine does not enforce is ABSENT,
395
+ * never `0`: unset is stored as `""` or `{}`, and the engine reads `0` as no
396
+ * bound too, so all of those describe the same unbounded side.
397
+ */
398
+ interface InputListBounds {
399
+ readonly min?: number;
400
+ readonly max?: number;
401
+ }
402
+ /** The flags every described input carries, whatever its type. */
403
+ interface InputDescriptionBase {
404
+ /** The key a client sends. */
405
+ readonly name: string;
406
+ /** A required input stays required when it carries a default. */
407
+ readonly required: boolean;
408
+ /**
409
+ * Whether `null` is accepted. A type nullable by default (files, geo, uuid,
410
+ * vector, `date`, `epochms`) reads `true` unless the def said otherwise, and
411
+ * a `json` input is always nullable.
412
+ */
413
+ readonly nullable: boolean;
414
+ /** `false` for a single value; the bounds for a list. */
415
+ readonly list: false | InputListBounds;
416
+ /**
417
+ * The enabled methods, in stored order. Always empty on an `obj`, and on an
418
+ * `enum` or `vector` input, whose methods the engine does not apply (a
419
+ * dbLink's customization of such a column is the exception: the engine
420
+ * applies those).
421
+ */
422
+ readonly methods: readonly InputMethod[];
423
+ }
424
+ /**
425
+ * One request input.
426
+ *
427
+ * A `dbLink` is the one entry that is not itself a request key: the engine
428
+ * expands it into the linked table's columns at the TOP level of the request,
429
+ * so a renderer spreads {@link DbLinkInputDescription.columns} into the
430
+ * surrounding object. A stored type this reading does not know is `unknown`,
431
+ * never guessed at.
432
+ */
433
+ type InputDescription = (InputDescriptionBase & {
434
+ readonly type: InputScalarType;
435
+ }) | (InputDescriptionBase & {
436
+ readonly type: "enum";
437
+ /** As stored: a numeric enum keeps numeric values. */
438
+ readonly values: readonly (string | number)[];
439
+ }) | (InputDescriptionBase & {
440
+ readonly type: "vector";
441
+ readonly size: number;
442
+ }) | (InputDescriptionBase & {
443
+ readonly type: "tableRef";
444
+ /** The referenced table's primary-key type, which is what a client sends. */
445
+ readonly keyType: "int" | "uuid";
446
+ /** The referenced table's guid. */
447
+ readonly table: string;
448
+ }) | (InputDescriptionBase & {
449
+ readonly type: "obj";
450
+ readonly children: readonly InputDescription[];
451
+ }) | DbLinkInputDescription | (InputDescriptionBase & {
452
+ readonly type: "unknown";
453
+ /** The stored type string, for a renderer's diagnostics. */
454
+ readonly storedType: string;
455
+ });
456
+ /**
457
+ * A database link: one stored input the engine expands into one input per
458
+ * column of the linked table.
459
+ */
460
+ interface DbLinkInputDescription {
461
+ /** The stored entry's name (by convention `<table>__`). Not a request key. */
462
+ readonly name: string;
463
+ readonly type: "dbLink";
464
+ /** The linked table's guid. */
465
+ readonly table: string;
466
+ /**
467
+ * The request inputs it expands to, as the engine expands them: never the
468
+ * `id`, not a column the link hides, not a private or internal column unless
469
+ * the link customizes it, and a customized column with the customization's
470
+ * `required` and methods in place of its own.
471
+ *
472
+ * `undefined` when the payload does not carry the linked table, so the
473
+ * columns cannot be known. A renderer must not read that as "no columns":
474
+ * narrowing the request to nothing would reject a body the server accepts.
475
+ */
476
+ readonly columns: readonly InputDescription[] | undefined;
477
+ }
478
+ /**
479
+ * What {@link ToolchainPlugin.routesManifest} is handed.
480
+ *
481
+ * Everything the section can depend on is in here, and nothing else: the
482
+ * hook's output is a function of this value alone (see the hook for why).
483
+ */
484
+ interface RoutesManifestContext {
485
+ /**
486
+ * Every endpoint's, channel's and message's request inputs, under the
487
+ * manifest's FINAL keys — the keys of `ROUTES`, `CHANNELS` and the generated
488
+ * input maps — in a fixed order. Walk it in order and the section comes out
489
+ * the same for the same workspace.
490
+ */
491
+ readonly inputs: RouteInputs;
492
+ /** This module's block from the project's `package.json` `"xanosdk"` object. */
493
+ readonly config: Readonly<Record<string, unknown>>;
494
+ /** The running `@xano/sdk` version, for a plugin's own peer-range check. */
495
+ readonly sdkVersion: string;
496
+ }
497
+ /**
498
+ * One module's section of `routes.gen.ts`: TypeScript source, plus the named
499
+ * package imports it needs.
500
+ *
501
+ * WHERE IT LANDS. The SDK composes the file: the merged imports of every
502
+ * module at the top (one `import { a, b } from "pkg";` per package, names
503
+ * sorted and deduped), then the core sections, then each module's `source` in
504
+ * a marked block naming the module's package and version, blocks ordered by
505
+ * package name. So the source is in the SAME FILE as the core sections and
506
+ * after them: it may name the generated types (`RouteInputs`, `ChannelInputs`,
507
+ * `MessageInputs`, `MessageName` — maps keyed by the manifest's keys, not the
508
+ * {@link RouteInputs} description type of this entry, and always present,
509
+ * empty or not) directly, without importing them. Anything it exports is
510
+ * exported from `routes.gen.ts`.
511
+ *
512
+ * ── Imports are declared, never written ─────────────────────────────────────
513
+ *
514
+ * The core sections import nothing, which is what keeps `routes.gen.ts` free
515
+ * of the SDK runtime in a frontend bundle. A module's imports are the only
516
+ * ones in the file, so they are data the SDK can check, never `import` lines
517
+ * inside `source`. A specifier that is not a bare package name is REFUSED:
518
+ * `@xano/sdk` and its subpaths (the bundle cost the file exists to avoid), a
519
+ * relative or absolute path (it would resolve against whichever directory the
520
+ * file was written into), and a protocol (`node:`) all fail the module by
521
+ * name. Each name must be a plain identifier: no `as` renames, no
522
+ * side-effect-only import.
523
+ *
524
+ * Imported names share one scope with the core sections and every other
525
+ * module's source, so pick names that will not collide; a collision fails the
526
+ * user's typecheck rather than being renamed for you.
527
+ *
528
+ * A blank `source` contributes no block at all, and its imports are dropped
529
+ * with it: that is how a module whose config turns the section off removes it.
530
+ */
531
+ interface RoutesManifestSection {
532
+ /** Named imports from packages the consuming project can resolve. */
533
+ readonly imports?: readonly {
534
+ readonly from: string;
535
+ readonly names: readonly string[];
536
+ }[];
537
+ /** TypeScript placed after the core sections. Must not spell a block marker (`// xanosdk:begin`, `// xanosdk:end`). */
538
+ readonly source: string;
539
+ }
325
540
  /**
326
541
  * What a toolchain module's `xanosdk.plugin` file default-exports.
327
542
  *
328
- * Five hooks, and deliberately no more. This contract was designed from one
329
- * example, and a contract designed from one example generalizes badly — so it
330
- * covers exactly what that first module needs and stops. The SECOND toolchain
331
- * module is the one that should generalize it, with the real second set of
332
- * requirements in hand.
543
+ * Six hooks. The first five were designed from one example (a module that
544
+ * renders the workspace to a committed tree) and covered exactly what it
545
+ * needed. The sixth, {@link ToolchainPlugin.routesManifest}, was added when the
546
+ * second module, `@xano-sdk/zod`, brought a second real set of requirements: a
547
+ * module that writes into a file the SDK generates, rather than into a tree of
548
+ * its own. A hook is added when a module needs it, not in anticipation.
333
549
  *
334
550
  * Every hook is optional: a module that only adds a `.gitattributes` line
335
551
  * declares {@link ToolchainPlugin.contributes} alone.
@@ -391,6 +607,34 @@ interface ToolchainPlugin {
391
607
  readonly onBundle?: (ctx: BundleContext) => Promise<HookResult>;
392
608
  /** Runs on `preflight`, contributing a comparison to the report. */
393
609
  readonly onPreflight?: (ctx: PreflightContext) => Promise<HookResult>;
610
+ /**
611
+ * This module's section of the route manifest (`routes.gen.ts`), computed
612
+ * from the request inputs the SDK read off the payload. See
613
+ * {@link RoutesManifestSection} for where it lands and what it may import.
614
+ *
615
+ * Runs wherever the manifest is written: `routes --emit` (the `xano:routes`
616
+ * and `xano:check` scripts), `init` when it writes the project's first
617
+ * manifest, the refresh `marketplace install`, `reinstall` and `remove`
618
+ * make, and the decode paths `pull` and `generate`. Not `init --from`: a
619
+ * project it creates has no module installed yet, and the first
620
+ * `xano:routes` after an install adds the section.
621
+ *
622
+ * SYNCHRONOUS AND PURE. No filesystem, no network, no clock, no randomness:
623
+ * the same context returns the same section, every time. Every writer of
624
+ * `routes.gen.ts` must produce identical bytes for the same workspace, or
625
+ * `routes --emit --strict` flips between red and green depending on which
626
+ * command last wrote the file; and the decode paths place the file
627
+ * synchronously, so a promise has nowhere to be awaited. A promise, or any
628
+ * value that is not a {@link RoutesManifestSection}, is refused.
629
+ *
630
+ * A throw (or a refused section) is this module failing, not the manifest:
631
+ * the core sections are still refreshed, the module's previous block is kept
632
+ * as it was (none is written when the file has none yet), and a warning
633
+ * names the module. A module that fails to load is handled the same way. On a verifying run
634
+ * (`routes --emit --strict`) it is fatal instead, because a check that did
635
+ * not run must not read as one that passed.
636
+ */
637
+ readonly routesManifest?: (ctx: RoutesManifestContext) => RoutesManifestSection;
394
638
  }
395
639
 
396
- export type { BundleContext, BundlePayload, EngineRendering, HookCommand, HookResult, PluginAnswers, PluginQuestion, PreflightContext, ProjectContributions, ToolchainPlugin };
640
+ export type { BundleContext, BundlePayload, DbLinkInputDescription, EngineRendering, HookCommand, HookResult, InputDescription, InputDescriptionBase, InputListBounds, InputMethod, InputScalarType, MessageInputSet, PluginAnswers, PluginQuestion, PreflightContext, ProjectContributions, RouteInputSet, RouteInputs, RoutesManifestContext, RoutesManifestSection, ToolchainPlugin };
@@ -4,69 +4,69 @@ import {
4
4
  } from "./chunk-6KEB3C3U.js";
5
5
  import {
6
6
  sectionKind
7
- } from "./chunk-HMLGM2MW.js";
8
- import "./chunk-XXZZGXW2.js";
7
+ } from "./chunk-IYXL5NYU.js";
9
8
  import {
10
9
  assertBundleFile,
11
10
  assertBundleInput,
12
11
  assertEntryFile,
13
12
  loadBundleText,
14
13
  refuseValueFlagsBesideBundle
15
- } from "./chunk-WYEQFD6A.js";
16
- import "./chunk-DIG3NITC.js";
17
- import "./chunk-664LSWE5.js";
18
- import "./chunk-LIVN53UV.js";
19
- import "./chunk-HSEQYBDO.js";
20
- import "./chunk-T4DUFQ2S.js";
21
- import "./chunk-2AUV6NXK.js";
22
- import "./chunk-A6QTTJUI.js";
23
- import "./chunk-MEE5RZ6G.js";
24
- import "./chunk-LUTMOHOW.js";
25
- import "./chunk-3P3HXN76.js";
26
- import "./chunk-W5ONYLOP.js";
27
- import "./chunk-KCAL4QYP.js";
14
+ } from "./chunk-XFBGXB7X.js";
15
+ import "./chunk-WBH4KJWM.js";
16
+ import "./chunk-HCG7NDIL.js";
17
+ import "./chunk-I3VHW6XM.js";
18
+ import "./chunk-WZHLMU6T.js";
19
+ import "./chunk-CCU5CCRX.js";
20
+ import "./chunk-3II44CUJ.js";
21
+ import "./chunk-GWTFI3GA.js";
22
+ import "./chunk-BL3AZ3AP.js";
23
+ import "./chunk-YGLMRH5U.js";
24
+ import "./chunk-ITC2R2OT.js";
25
+ import "./chunk-IXFJORNH.js";
26
+ import "./chunk-VW4CWVYX.js";
28
27
  import "./chunk-2MNLRIOX.js";
29
- import "./chunk-WL2DSNJV.js";
30
- import "./chunk-AM4FKL4J.js";
31
- import "./chunk-JP7M7OU7.js";
32
- import "./chunk-UDE5C2XN.js";
33
- import "./chunk-MLGI2SRQ.js";
34
- import "./chunk-UKUIUS3E.js";
28
+ import "./chunk-Q22BMRPF.js";
29
+ import "./chunk-PL7AIAWS.js";
30
+ import "./chunk-FU3VCE5A.js";
31
+ import "./chunk-VDHA5SSQ.js";
32
+ import "./chunk-PFBXSVZF.js";
33
+ import "./chunk-U6MTGB46.js";
35
34
  import "./chunk-ZYJP6BOO.js";
36
35
  import "./chunk-QO6BVGS5.js";
37
- import "./chunk-3H3EPMFY.js";
38
- import "./chunk-BUECLQXK.js";
39
- import "./chunk-CFSFBKHP.js";
40
- import "./chunk-FMOEVAGT.js";
36
+ import "./chunk-5TVFLG3C.js";
37
+ import "./chunk-SPKA2LV6.js";
38
+ import "./chunk-7GAIJW62.js";
39
+ import "./chunk-6X3MY2JP.js";
41
40
  import "./chunk-622HUCZT.js";
42
- import "./chunk-SEUCZZCP.js";
43
- import "./chunk-E6H5ZEV3.js";
44
- import "./chunk-HUSH7LRI.js";
45
- import "./chunk-ZG7E72VI.js";
46
- import "./chunk-S7E2AHV3.js";
41
+ import "./chunk-N5I37JFB.js";
42
+ import "./chunk-TTEIDD5Q.js";
43
+ import "./chunk-LL7SGTRC.js";
44
+ import "./chunk-YYC2DZMG.js";
45
+ import "./chunk-PMMHSX4H.js";
47
46
  import "./chunk-ZFDZKNGG.js";
48
47
  import "./chunk-FWD7AL6N.js";
49
- import "./chunk-3FN2BIGB.js";
50
- import "./chunk-JTUKLCXS.js";
48
+ import "./chunk-QJM5XZ4K.js";
49
+ import "./chunk-DXUICABI.js";
51
50
  import "./chunk-4KHEMC32.js";
52
- import "./chunk-37AHZ7JX.js";
51
+ import "./chunk-3BBIDW3Y.js";
53
52
  import "./chunk-ROY4YAEQ.js";
54
- import "./chunk-VD32O6KZ.js";
55
- import "./chunk-RX3EMQGN.js";
56
- import "./chunk-WRBKLYSJ.js";
57
- import "./chunk-DYG5D3FD.js";
58
- import "./chunk-I2BGYNHD.js";
53
+ import "./chunk-CJDPSCMX.js";
54
+ import "./chunk-MFWF2NZJ.js";
55
+ import "./chunk-DNBP4GJN.js";
56
+ import "./chunk-763M6LX3.js";
57
+ import "./chunk-WAVNUTMT.js";
58
+ import "./chunk-M5CSVB23.js";
59
59
  import "./chunk-AWQ7BQTQ.js";
60
60
  import "./chunk-EUUUMY7J.js";
61
- import "./chunk-MN2PB6WB.js";
62
- import "./chunk-FPBGAT5D.js";
61
+ import "./chunk-YR2I5HGE.js";
62
+ import "./chunk-26MOFAJT.js";
63
63
  import "./chunk-LLNZGEFK.js";
64
- import "./chunk-QXTKSOFI.js";
64
+ import "./chunk-MF4W6FHU.js";
65
65
  import "./chunk-X2NL4KUO.js";
66
- import "./chunk-OPHB5ORL.js";
67
- import "./chunk-UCQ2VUTG.js";
68
- import "./chunk-DGWHAVRG.js";
69
- import "./chunk-6R7S775T.js";
66
+ import "./chunk-EQFYOOO6.js";
67
+ import "./chunk-M6ZFSTIZ.js";
68
+ import "./chunk-3EDSPMXN.js";
69
+ import "./chunk-7REDHC4N.js";
70
70
  import {
71
71
  UsageError,
72
72
  blank,
@@ -78,42 +78,42 @@ import {
78
78
  success,
79
79
  warn,
80
80
  writeJson
81
- } from "./chunk-SBR2WZXG.js";
82
- import "./chunk-II747OWE.js";
83
- import "./chunk-5W7DOMIU.js";
81
+ } from "./chunk-D7BUMOKU.js";
82
+ import "./chunk-FQ53GTII.js";
83
+ import "./chunk-VJFMUJWZ.js";
84
84
  import "./chunk-6JAEMMZ7.js";
85
- import "./chunk-5YL5OC2G.js";
85
+ import "./chunk-5QMJOE2K.js";
86
86
  import "./chunk-45ZUMF4E.js";
87
87
  import "./chunk-7KPKDHHI.js";
88
- import "./chunk-EESV6NU2.js";
89
- import "./chunk-OPG4DYX2.js";
88
+ import "./chunk-7FIMUFBP.js";
89
+ import "./chunk-T4LJ5UR2.js";
90
90
  import "./chunk-ICK36EGF.js";
91
91
  import "./chunk-BEXZ4XRV.js";
92
92
  import "./chunk-ETAZIGNT.js";
93
93
  import "./chunk-GSGDWJB5.js";
94
- import "./chunk-4PQHO74B.js";
94
+ import "./chunk-SLGJIWCY.js";
95
95
  import "./chunk-ERVIASGL.js";
96
96
  import "./chunk-VTMTIBKP.js";
97
97
  import "./chunk-H2V3N23D.js";
98
98
  import "./chunk-3JDU4VRL.js";
99
99
  import "./chunk-WTPZRR4I.js";
100
- import "./chunk-GPI3OWRE.js";
100
+ import "./chunk-YHB34BN6.js";
101
101
  import "./chunk-UTI5G6OJ.js";
102
- import "./chunk-OOGXZL7Z.js";
102
+ import "./chunk-5KJBWIDZ.js";
103
103
  import "./chunk-5ZSO4T2G.js";
104
- import "./chunk-XNCP4KYO.js";
104
+ import "./chunk-VQPDATQT.js";
105
105
  import "./chunk-UDZX2ZL4.js";
106
106
  import "./chunk-ZY55DO5P.js";
107
107
  import "./chunk-A2AOUBJS.js";
108
108
  import "./chunk-TFFGOFVZ.js";
109
- import "./chunk-3HOGFGKG.js";
110
- import "./chunk-7GX445AE.js";
111
- import "./chunk-37FBPMNE.js";
109
+ import "./chunk-D3KEPRRN.js";
110
+ import "./chunk-4XHAT7C5.js";
111
+ import "./chunk-S56YBYMN.js";
112
112
  import "./chunk-UVF45BVU.js";
113
113
  import "./chunk-VAX3UZOY.js";
114
114
  import "./chunk-LL6ED5IB.js";
115
115
  import "./chunk-4BW2SG2N.js";
116
- import "./chunk-4DJTQ6W4.js";
116
+ import "./chunk-JIKGT7DO.js";
117
117
  import "./chunk-4MIV244X.js";
118
118
  import "./chunk-OHX6MIUZ.js";
119
119
  import "./chunk-36JUQZVQ.js";
@@ -131,22 +131,22 @@ async function runPreflightCommand(args) {
131
131
  helpFor: { command: "preflight" }
132
132
  });
133
133
  }
134
- const { resolveValidateConfig, envNamesValidateTarget, verifyToken } = await import("./config-JU6OQC77.js");
135
- const { MetaClient } = await import("./meta-client-73PX6UGJ.js");
134
+ const { resolveValidateConfig, envNamesValidateTarget, verifyToken } = await import("./config-MZ5KG4EP.js");
135
+ const { MetaClient } = await import("./meta-client-TMHVBZFY.js");
136
136
  const fromEnv = envNamesValidateTarget(args.instance);
137
137
  if (fromEnv) refuseCredentialFlagsDisplacedByEnv(args);
138
- const credential = fromEnv ? void 0 : await (await import("./token-CMAB35GD.js")).getAccessToken(args);
138
+ const credential = fromEnv ? void 0 : await (await import("./token-7AWSJLKO.js")).getAccessToken(args);
139
139
  const config = credential === void 0 ? resolveValidateConfig({ instance: args.instance }) : validateTargetOf(credential);
140
140
  const host = new URL(config.instance).host;
141
141
  let who;
142
142
  try {
143
143
  who = await verifyToken(config, fromEnv ? "env" : "credential");
144
144
  } catch (err) {
145
- const { unansweredRead } = await import("./source-resolve-DMDZVPMM.js");
145
+ const { unansweredRead } = await import("./source-resolve-MKLNYFWG.js");
146
146
  throw unansweredRead(err, "check the credential", "workspace");
147
147
  }
148
148
  step(`Validating against ${host}${who.name ? ` (as ${who.name})` : ""}`);
149
- const { discoverToolchainPlugins } = await import("./toolchain-modules-3M7QDJBV.js");
149
+ const { discoverToolchainPlugins } = await import("./toolchain-modules-VU7SURVJ.js");
150
150
  const toolchain = await discoverToolchainPlugins(process.cwd(), { frozen: true });
151
151
  const { bundle } = await loadBundleText(args, { command: "preflight" });
152
152
  const client = new MetaClient(config);
@@ -174,8 +174,8 @@ function validateTargetOf(auth) {
174
174
  return { instance: auth.instance, token: auth.access_token, workspaceId: auth.workspaceId };
175
175
  }
176
176
  async function validateWithClient(args, client, bundle, plugins, credential) {
177
- const { runValidateLoop, runnableFunctionNames } = await import("./loop-UFHKSOQ4.js");
178
- const { anyDeclares } = await import("./toolchain-hooks-BGZBDFAT.js");
177
+ const { runValidateLoop, runnableFunctionNames } = await import("./loop-SUB6C2LK.js");
178
+ const { anyDeclares } = await import("./toolchain-hooks-4ZMQLBPQ.js");
179
179
  const wantsPluginInputs = anyDeclares(plugins, "onPreflight");
180
180
  const result = await runValidateLoop(client, bundle, {
181
181
  includeEngineRendering: wantsPluginInputs
@@ -207,7 +207,7 @@ async function validateWithClient(args, client, bundle, plugins, credential) {
207
207
  };
208
208
  if (!result.accepted) {
209
209
  if (credential !== void 0) {
210
- const { refuseUnreachableWorkspace } = await import("./workspace-binding-2TWZBHQY.js");
210
+ const { refuseUnreachableWorkspace } = await import("./workspace-binding-JE6YNDZJ.js");
211
211
  await refuseUnreachableWorkspace(credential);
212
212
  }
213
213
  warn("Import rejected by the engine:", "preflight.import-rejected", [result.importError ?? "(no message)"]);
@@ -250,7 +250,7 @@ async function validateWithClient(args, client, bundle, plugins, credential) {
250
250
  );
251
251
  failed = true;
252
252
  } else if (wantsPluginInputs && result.engineComparison !== void 0) {
253
- const { fireOnPreflight } = await import("./toolchain-hooks-BGZBDFAT.js");
253
+ const { fireOnPreflight } = await import("./toolchain-hooks-4ZMQLBPQ.js");
254
254
  const { readVersion } = await import("./cli.js");
255
255
  const outcome = await fireOnPreflight(plugins, {
256
256
  engineRendering: result.engineComparison.engineRendering,
@@ -287,7 +287,7 @@ async function validateWithClient(args, client, bundle, plugins, credential) {
287
287
  }
288
288
  let captured = null;
289
289
  if (args.capture) {
290
- const { captureFixtures } = await import("./capture-3JNUA6C2.js");
290
+ const { captureFixtures } = await import("./capture-GW5KNKMB.js");
291
291
  const written = captureFixtures(result.roundTrip, args.out);
292
292
  captured = written;
293
293
  if (written.length === 0) warn("nothing to capture (no objects round-tripped)", "preflight.nothing-captured");
@@ -319,4 +319,4 @@ function fmt(v) {
319
319
  export {
320
320
  runPreflightCommand
321
321
  };
322
- //# sourceMappingURL=preflight-command-EBQ6XQF3.js.map
322
+ //# sourceMappingURL=preflight-command-OHJXYND3.js.map