@xano/sdk 1.0.6 → 1.0.7

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 (215) hide show
  1. package/CHANGELOG.md +20 -5
  2. package/README.md +30 -4
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-67QIX45H.js → agent-file-refresh-DGGSRPJ4.js} +12 -12
  5. package/dist/agent-skill-command-37DFYS7Q.js +414 -0
  6. package/dist/{answer-shape-UCDUKPAN.js → answer-shape-RBFDCNZ7.js} +4 -4
  7. package/dist/{backend-dir-3LIL6SCT.js → backend-dir-KDD43X7K.js} +14 -14
  8. package/dist/{backend-slot-JREP27UD.js → backend-slot-TBOVZXDE.js} +3 -3
  9. package/dist/bin.js +48 -47
  10. package/dist/{branch-2IPHOAYS.js → branch-7PIKNUD7.js} +11 -10
  11. package/dist/{branch-commands-KTKAXBAN.js → branch-commands-EGY7ZEZE.js} +23 -22
  12. package/dist/bundle.js +4 -4
  13. package/dist/{chunk-GWTFI3GA.js → chunk-26LHXLD3.js} +2 -2
  14. package/dist/{chunk-ENMBEXOP.js → chunk-2ACWDSAQ.js} +3 -3
  15. package/dist/{chunk-GOLFAEUV.js → chunk-2SD4LA22.js} +2 -2
  16. package/dist/{chunk-GZHLCUZ6.js → chunk-2XWVZRL6.js} +7 -7
  17. package/dist/{chunk-IF4PEGVD.js → chunk-2YER2J47.js} +11 -11
  18. package/dist/{chunk-N5I37JFB.js → chunk-3FRGNBOC.js} +2 -2
  19. package/dist/{chunk-YKP4ZKVO.js → chunk-46PATL23.js} +3 -3
  20. package/dist/{chunk-QJM5XZ4K.js → chunk-47XT6WQL.js} +8 -8
  21. package/dist/{chunk-AWQ7BQTQ.js → chunk-4GPIOIAC.js} +6 -1
  22. package/dist/{chunk-ND43ZOS3.js → chunk-567KK6XF.js} +7 -7
  23. package/dist/{chunk-EQFYOOO6.js → chunk-5GIOCDUM.js} +829 -893
  24. package/dist/{chunk-TTEIDD5Q.js → chunk-5SCPRXFB.js} +4 -4
  25. package/dist/{chunk-LAOMN6QQ.js → chunk-5ZG7V2VW.js} +3 -3
  26. package/dist/{chunk-JXVJGF3Y.js → chunk-7M6JP3FS.js} +2 -2
  27. package/dist/{chunk-JFBRXRJD.js → chunk-7XXWKTCE.js} +36 -36
  28. package/dist/{chunk-PL7AIAWS.js → chunk-A4R5CAY4.js} +4 -111
  29. package/dist/{chunk-SPKA2LV6.js → chunk-AKERAUNH.js} +4 -4
  30. package/dist/{chunk-26MOFAJT.js → chunk-ARWMVNDJ.js} +6 -3
  31. package/dist/{chunk-I3VHW6XM.js → chunk-B2URJBC4.js} +18 -18
  32. package/dist/{chunk-A7MRZ4GF.js → chunk-B3P25SDP.js} +4 -4
  33. package/dist/chunk-BRANWM4U.js +853 -0
  34. package/dist/{chunk-CHINR7WD.js → chunk-BSVQEKHO.js} +4 -4
  35. package/dist/{chunk-UD2Z7K6W.js → chunk-BZ6WTG3E.js} +4 -4
  36. package/dist/{chunk-D7BUMOKU.js → chunk-CH23ONYG.js} +76 -5
  37. package/dist/{chunk-763M6LX3.js → chunk-CNZASQPL.js} +2 -2
  38. package/dist/{chunk-TECTL2NU.js → chunk-CPN6WSBH.js} +4 -4
  39. package/dist/{chunk-5YQV35C2.js → chunk-CT3J5JRZ.js} +7 -7
  40. package/dist/{chunk-YYC2DZMG.js → chunk-D5OZRJ3T.js} +6 -6
  41. package/dist/{chunk-XFBGXB7X.js → chunk-DG3APBUJ.js} +149 -97
  42. package/dist/chunk-DIWF7L33.js +995 -0
  43. package/dist/{chunk-RIN4YY34.js → chunk-DXZTL7NA.js} +95 -58
  44. package/dist/{chunk-PMMHSX4H.js → chunk-EF4MHLEW.js} +4 -4
  45. package/dist/{chunk-ZDP6GDAB.js → chunk-ELPQTDW6.js} +101 -93
  46. package/dist/{chunk-Q22BMRPF.js → chunk-EPFDY5JU.js} +2 -2
  47. package/dist/{chunk-ZJSTUD6D.js → chunk-EU32BC5B.js} +8 -8
  48. package/dist/{chunk-3BBIDW3Y.js → chunk-FDTET7FZ.js} +3 -3
  49. package/dist/{chunk-YYLUBYXM.js → chunk-FENA7K7C.js} +3 -3
  50. package/dist/{chunk-QZEAANWP.js → chunk-GHMLRFRX.js} +8 -8
  51. package/dist/{chunk-MBDFH7XB.js → chunk-H2K4GFUS.js} +3 -3
  52. package/dist/{chunk-U35MTOXQ.js → chunk-HTQWAQRW.js} +3 -3
  53. package/dist/{chunk-ROY4YAEQ.js → chunk-HU7F56VF.js} +22 -2
  54. package/dist/{chunk-2FLIJGBZ.js → chunk-HZ6ADG3O.js} +47 -8
  55. package/dist/{chunk-GLY552SI.js → chunk-I6XRUU6U.js} +54 -54
  56. package/dist/{chunk-KPFS3RGM.js → chunk-IPNN2KRW.js} +3 -3
  57. package/dist/{chunk-LD6ARK3A.js → chunk-JOOKM7AH.js} +2 -2
  58. package/dist/{chunk-6X6BJN6Y.js → chunk-JOWY6HFL.js} +3 -3
  59. package/dist/{chunk-UIVMR7UK.js → chunk-JX6N73H3.js} +2 -2
  60. package/dist/{chunk-JRVQ7M7W.js → chunk-L472YIGG.js} +8 -8
  61. package/dist/{chunk-YR2I5HGE.js → chunk-L6HZ67P6.js} +2 -2
  62. package/dist/chunk-LCOCRJ4K.js +116 -0
  63. package/dist/{chunk-3EDSPMXN.js → chunk-LJM5CIY4.js} +5 -1
  64. package/dist/{chunk-NPODGBVJ.js → chunk-M2C54ZBC.js} +4 -4
  65. package/dist/{chunk-QXYMDARD.js → chunk-M3NEK3LT.js} +4 -4
  66. package/dist/{chunk-BL3AZ3AP.js → chunk-MBL7CXJ7.js} +2 -2
  67. package/dist/{chunk-7GAIJW62.js → chunk-MYZRMSPM.js} +2 -2
  68. package/dist/{chunk-GHQ4BVI4.js → chunk-N3YFCFCO.js} +13 -13
  69. package/dist/{chunk-M5CSVB23.js → chunk-NDJAKSE7.js} +11 -8
  70. package/dist/{chunk-Z4ZGTCCD.js → chunk-NV37YGOV.js} +6 -6
  71. package/dist/{chunk-GW5RHGOB.js → chunk-O56DQKPL.js} +9 -9
  72. package/dist/{chunk-U6MTGB46.js → chunk-ORGNLQN6.js} +5 -5
  73. package/dist/{chunk-I3H3HCPY.js → chunk-PEIBGH2V.js} +33 -30
  74. package/dist/{chunk-5TVFLG3C.js → chunk-PEX4QZVI.js} +2 -2
  75. package/dist/{chunk-HCG7NDIL.js → chunk-PV25BDCH.js} +5 -5
  76. package/dist/{chunk-VDHA5SSQ.js → chunk-PY722CHR.js} +2 -2
  77. package/dist/{chunk-VW4CWVYX.js → chunk-QGIZLFAS.js} +4 -4
  78. package/dist/{chunk-SSITMX7I.js → chunk-QRQ54LUI.js} +16 -14
  79. package/dist/{chunk-OIKLDDYC.js → chunk-RBU2YX22.js} +3 -3
  80. package/dist/{chunk-EADVVTDK.js → chunk-RRMH7WMY.js} +7 -7
  81. package/dist/{chunk-WZHLMU6T.js → chunk-S46ODQRA.js} +2 -2
  82. package/dist/{chunk-SPITRSOF.js → chunk-SDGV76HF.js} +2 -2
  83. package/dist/{chunk-ATJ2W7DC.js → chunk-SGK3PTTM.js} +281 -121
  84. package/dist/{chunk-3II44CUJ.js → chunk-TWVUYS63.js} +24 -24
  85. package/dist/{chunk-2WBH5HUY.js → chunk-U5M7T6CI.js} +7 -7
  86. package/dist/{chunk-6X3MY2JP.js → chunk-UYFUIHH3.js} +2 -2
  87. package/dist/{chunk-IMELQ2I6.js → chunk-V7MBRUK6.js} +3 -3
  88. package/dist/{chunk-NDWVJ2QZ.js → chunk-VAGSKUWC.js} +3 -3
  89. package/dist/{chunk-WBH4KJWM.js → chunk-VIJ5D3RC.js} +3 -3
  90. package/dist/{chunk-ITC2R2OT.js → chunk-VNDR2T35.js} +7 -7
  91. package/dist/{chunk-IXFJORNH.js → chunk-WNCW2RNB.js} +4 -4
  92. package/dist/{chunk-BTVUYHWV.js → chunk-WUEPP5HD.js} +4 -4
  93. package/dist/{local-engine-command-RYLGMQ2O.js → chunk-YCUDOF6Q.js} +22 -77
  94. package/dist/{chunk-YGLMRH5U.js → chunk-YH2JVJAO.js} +12 -12
  95. package/dist/{chunk-PFBXSVZF.js → chunk-ZGLNHA7T.js} +7 -7
  96. package/dist/{chunk-CCU5CCRX.js → chunk-ZJOAWRED.js} +8 -8
  97. package/dist/{chunk-FU3VCE5A.js → chunk-ZXRDD3Q2.js} +13 -9
  98. package/dist/cli.d.ts +25 -4
  99. package/dist/cli.js +45 -42
  100. package/dist/{codegen-command-R5IASBFC.js → codegen-command-T7TC7PQO.js} +58 -57
  101. package/dist/{commands-H7CPMMHH.js → commands-JDENTDJS.js} +2 -2
  102. package/dist/{completion-W5ZAI6TN.js → completion-YFD5OVJW.js} +8 -4
  103. package/dist/{config-MZ5KG4EP.js → config-YJFUTRJW.js} +7 -7
  104. package/dist/{deploy-command-34T2LKQ5.js → deploy-command-OEVEE6UG.js} +50 -49
  105. package/dist/{deploy-source-YLQ7WMYR.js → deploy-source-HYVZEYXV.js} +33 -32
  106. package/dist/{dev-env-sync-TMJTNU3U.js → dev-env-sync-EFDCJ6KU.js} +48 -47
  107. package/dist/{display-name-hint-ZJGFNJKQ.js → display-name-hint-SW3GB3V7.js} +13 -12
  108. package/dist/{emit-D125xxty.d.ts → emit-Dov_92kn.d.ts} +1 -1
  109. package/dist/{env-example-refresh-CQP3ZMKM.js → env-example-refresh-WNSOH534.js} +59 -58
  110. package/dist/{env-pull-command-UTG6IC2K.js → env-pull-command-UYEXMQ3P.js} +43 -42
  111. package/dist/{env-target-FZROWYFS.js → env-target-JBSLBKNX.js} +12 -11
  112. package/dist/{env-var-command-VYDBQJJW.js → env-var-command-BJNRAXNV.js} +49 -48
  113. package/dist/{ephemeral-BIE6FMJV.js → ephemeral-CEOGMIEA.js} +10 -9
  114. package/dist/{ephemeral-command-OZ26RGXF.js → ephemeral-command-IPSGBCS5.js} +61 -60
  115. package/dist/{ephemeral-state-SNZOX2YK.js → ephemeral-state-MTBASPRS.js} +10 -9
  116. package/dist/{generate-command-4HR7MR36.js → generate-command-XQXODBS6.js} +73 -71
  117. package/dist/{gitignore-EWQBXNX2.js → gitignore-RUVCIZO4.js} +18 -18
  118. package/dist/{impersonate-command-WC7OGKUM.js → impersonate-command-MA27O7S5.js} +41 -40
  119. package/dist/{import-7Z4GCCPO.js → import-XKRFHABE.js} +4 -4
  120. package/dist/index.d.ts +4 -4
  121. package/dist/{init-command-HAO3WXH3.js → init-command-6RDTCMAB.js} +61 -46
  122. package/dist/{init-modules-NSKD4ASY.js → init-modules-DHTBOCQT.js} +7 -7
  123. package/dist/{init-web-MKFFOQUU.js → init-web-ELBXSXDL.js} +2 -2
  124. package/dist/internal.d.ts +4 -4
  125. package/dist/internal.js +1 -1
  126. package/dist/{keep-data-merge-QR2TMKEO.js → keep-data-merge-TDJOIAVT.js} +23 -23
  127. package/dist/{lambda-config-reconcile-7FJXXV6V.js → lambda-config-reconcile-47X5C2E4.js} +6 -5
  128. package/dist/{landing-record-MWXFIRCP.js → landing-record-TPPYFQAS.js} +21 -21
  129. package/dist/{local-engine-choice-VD5LNXJU.js → local-engine-choice-S6VHPJRU.js} +36 -35
  130. package/dist/local-engine-command-4EZCGZ6M.js +85 -0
  131. package/dist/{local-engine-config-W3KB7RWM.js → local-engine-config-2EBL3QKA.js} +3 -2
  132. package/dist/{local-engine-deploy-6O7NKZCA.js → local-engine-deploy-FOPNWU7X.js} +17 -15
  133. package/dist/local-engine-lookup-GM3E3NPP.js +43 -0
  134. package/dist/local-engine-mcp-bridge-QKZHUGW3.js +423 -0
  135. package/dist/local-engine-mcp-command-BFQVLXZC.js +181 -0
  136. package/dist/{local-engine-process-ZLLZEIRF.js → local-engine-process-XUQPQENQ.js} +11 -8
  137. package/dist/{local-engine-state-OCW5YDD7.js → local-engine-state-JQPKGB65.js} +4 -3
  138. package/dist/{local-engine-update-check-LVX4HBBI.js → local-engine-update-check-S7UF6ZF5.js} +6 -5
  139. package/dist/{lock-commands-X2OECR4R.js → lock-commands-HJ6Y5QVS.js} +51 -50
  140. package/dist/{login-command-RLLKD565.js → login-command-JO55NZAS.js} +32 -32
  141. package/dist/{logout-command-XDMSXCDO.js → logout-command-MPRIRSJA.js} +15 -14
  142. package/dist/{marketplace-command-2NHHY2X3.js → marketplace-command-BM6G257N.js} +33 -33
  143. package/dist/{marketplace-resolve-OTZYT4FG.js → marketplace-resolve-AWH3RG57.js} +5 -5
  144. package/dist/{meta-client-TMHVBZFY.js → meta-client-AOSWODQQ.js} +13 -12
  145. package/dist/{module-manifest-FNMW23IX.js → module-manifest-GXI46PEF.js} +3 -3
  146. package/dist/node.d.ts +4 -4
  147. package/dist/node.js +50 -49
  148. package/dist/{operation-outcome-RN62735X.js → operation-outcome-4UKPXTNC.js} +25 -23
  149. package/dist/{output-target-MOLCTPBP.js → output-target-RAZ4KN5J.js} +19 -19
  150. package/dist/{plan-disclosure-CY7AF6KP.js → plan-disclosure-JR52DWXN.js} +13 -12
  151. package/dist/{plugin-contributions-WR26U7NT.js → plugin-contributions-E6XHLQWK.js} +5 -5
  152. package/dist/{plugin-prompt-ZUYQQIX4.js → plugin-prompt-IODX5EU6.js} +4 -4
  153. package/dist/{plugin-questions-HAZOQ67R.js → plugin-questions-AAAJ7POP.js} +3 -3
  154. package/dist/{preflight-command-OHJXYND3.js → preflight-command-7GKJBWOQ.js} +52 -51
  155. package/dist/{profile-command-6JWT2BTL.js → profile-command-CM6J7E2M.js} +33 -33
  156. package/dist/{profile-pointer-PDA5XBIB.js → profile-pointer-KTYXL6FU.js} +4 -3
  157. package/dist/{project-dependency-GZWWGWEW.js → project-dependency-OQ5575QQ.js} +6 -6
  158. package/dist/{project-sdk-3W72H5QO.js → project-sdk-2ESHHZVL.js} +3 -3
  159. package/dist/{promote-command-UYAMUXKB.js → promote-command-BDRPG6UU.js} +68 -67
  160. package/dist/{prompt-U37K5RPQ.js → prompt-MQPGU4ZI.js} +3 -3
  161. package/dist/{publish-command-BUS27HGB.js → publish-command-IEMYZ7LF.js} +55 -54
  162. package/dist/{pull-command-ZGUNP27P.js → pull-command-S5E2ABZ4.js} +61 -60
  163. package/dist/{pull-superseded-EZBGYRZF.js → pull-superseded-E34BZVLH.js} +3 -3
  164. package/dist/{release-command-BQ6OHS3P.js → release-command-7F5TBKO2.js} +58 -57
  165. package/dist/{release-ns-command-ATGVBVIU.js → release-ns-command-EK2ZQ4CC.js} +84 -83
  166. package/dist/{retry-command-QJ57WVW7.js → retry-command-GL5HCMVB.js} +9 -8
  167. package/dist/{routes-manifest-file-UALYSZLY.js → routes-manifest-file-LCIKPDAG.js} +5 -5
  168. package/dist/scaffold.js +4 -4
  169. package/dist/secrets-IV4N5HYI.js +20 -0
  170. package/dist/{secrets-file-LMS7KX3E.js → secrets-file-LXREYU3M.js} +18 -18
  171. package/dist/{secrets-fill-command-QNBDGCGM.js → secrets-fill-command-QHZS3KWM.js} +49 -48
  172. package/dist/{seed-SZ6OS5DQ.js → seed-FRKMDN2Z.js} +4 -4
  173. package/dist/{source-resolve-MKLNYFWG.js → source-resolve-BBHYTOXI.js} +23 -21
  174. package/dist/{static-host-ONEHA4LI.js → static-host-7LC7OZR4.js} +4 -4
  175. package/dist/{status-command-XKIFKBGM.js → status-command-TY253MJT.js} +52 -51
  176. package/dist/{store-Bg4Na6Sm.d.ts → store-Boba9OOh.d.ts} +1 -1
  177. package/dist/{store-X6ZH7EC3.js → store-VJ3OS6VO.js} +7 -6
  178. package/dist/{sync-contributions-HNVHDIQW.js → sync-contributions-63542VE4.js} +9 -9
  179. package/dist/{sync-record-PRXHLK4S.js → sync-record-RGHK7EAL.js} +13 -12
  180. package/dist/{table-DC36QA4Y.js → table-OAYGFGEN.js} +5 -5
  181. package/dist/{tables-command-UQLKTELN.js → tables-command-PZIVDAH3.js} +38 -37
  182. package/dist/{tenant-EKNQGG5A.js → tenant-Y3II4VY3.js} +11 -10
  183. package/dist/{tenant-command-2LWP2MPB.js → tenant-command-G6XON7CF.js} +86 -85
  184. package/dist/{test-command-IU5MBBXY.js → test-command-3FZOX7O3.js} +41 -40
  185. package/dist/{tests-RG2Y5EQ4.js → tests-KF6N6BZ7.js} +5 -5
  186. package/dist/{token-7AWSJLKO.js → token-DJJUW5HY.js} +11 -10
  187. package/dist/{toolchain-hooks-4ZMQLBPQ.js → toolchain-hooks-7PWCFLSU.js} +4 -4
  188. package/dist/{toolchain-modules-VU7SURVJ.js → toolchain-modules-OTNSKK52.js} +4 -4
  189. package/dist/{toolchain-peers-CIDNEEQV.js → toolchain-peers-KQ7TQ2AR.js} +7 -7
  190. package/dist/{tracked-backend-4BHSV7NC.js → tracked-backend-AJCGTO5Y.js} +36 -35
  191. package/dist/{update-check-A7FXIINW.js → update-check-4E5L6GAW.js} +46 -45
  192. package/dist/{upgrade-command-C5KBITFI.js → upgrade-command-BXMSQN4C.js} +52 -49
  193. package/dist/{whoami-command-7WQII2H4.js → whoami-command-NLCCIEUM.js} +14 -13
  194. package/dist/{workspace-Z46PUZNI.js → workspace-PNMJOXE4.js} +4 -4
  195. package/dist/{workspace-binding-JE6YNDZJ.js → workspace-binding-J5GWDFRI.js} +13 -12
  196. package/dist/{workspace-command-FC4IMLAE.js → workspace-command-MHIIY352.js} +79 -78
  197. package/dist/{workspace-env-N4ZPFT6A.js → workspace-env-LLRWCHSA.js} +15 -15
  198. package/dist/{workspace-export-3A5BZTPS.js → workspace-export-BIKAYHWJ.js} +4 -4
  199. package/dist/{writable-D7KCZI5N.js → writable-UOTO4WWC.js} +3 -3
  200. package/dist/{xanosdk-import-P2A2KSXM.js → xanosdk-import-S7A3CVBN.js} +5 -5
  201. package/dist/{xanosdk-project-6AGMW2SL.js → xanosdk-project-J4VCFRHP.js} +15 -15
  202. package/guides/README.md +2 -2
  203. package/guides/cli.md +69 -0
  204. package/guides/codegen.md +23 -5
  205. package/guides/codes.md +1 -0
  206. package/guides/coverage.md +5 -0
  207. package/guides/deploying.md +28 -0
  208. package/guides/scaffold.md +61 -10
  209. package/llms-full.txt +1 -1
  210. package/llms.txt +1 -1
  211. package/manifest.json +63 -5
  212. package/package.json +5 -2
  213. package/skills/xano-backend/SKILL.md +119 -0
  214. package/dist/chunk-LL7SGTRC.js +0 -663
  215. package/dist/chunk-M6ZFSTIZ.js +0 -630
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  XANO_DIR
3
- } from "./chunk-LL7SGTRC.js";
3
+ } from "./chunk-DIWF7L33.js";
4
4
  import {
5
5
  projectRootFrom
6
- } from "./chunk-ROY4YAEQ.js";
6
+ } from "./chunk-HU7F56VF.js";
7
7
  import {
8
8
  relForwardSlash
9
- } from "./chunk-D7BUMOKU.js";
9
+ } from "./chunk-CH23ONYG.js";
10
10
 
11
11
  // src/emit/backend-dir.ts
12
12
  import { existsSync, readdirSync } from "fs";
@@ -67,4 +67,4 @@ export {
67
67
  backendDirIn,
68
68
  resolveBackendDir
69
69
  };
70
- //# sourceMappingURL=chunk-TTEIDD5Q.js.map
70
+ //# sourceMappingURL=chunk-5SCPRXFB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  classifyFailure
3
- } from "./chunk-JRVQ7M7W.js";
3
+ } from "./chunk-L472YIGG.js";
4
4
  import {
5
5
  describeWrite
6
6
  } from "./chunk-4KHEMC32.js";
@@ -14,7 +14,7 @@ import {
14
14
  warn,
15
15
  writeJson,
16
16
  writeTargetPayload
17
- } from "./chunk-D7BUMOKU.js";
17
+ } from "./chunk-CH23ONYG.js";
18
18
 
19
19
  // src/emit/operation-result.ts
20
20
  var SERVER_PROCESSING_BOUND_MS = 6e5;
@@ -253,4 +253,4 @@ export {
253
253
  OperationError,
254
254
  runOperation
255
255
  };
256
- //# sourceMappingURL=chunk-LAOMN6QQ.js.map
256
+ //# sourceMappingURL=chunk-5ZG7V2VW.js.map
@@ -6,7 +6,7 @@ import {
6
6
  UsageError,
7
7
  style,
8
8
  terminalText
9
- } from "./chunk-D7BUMOKU.js";
9
+ } from "./chunk-CH23ONYG.js";
10
10
 
11
11
  // src/emit/prompt.ts
12
12
  import { createInterface } from "readline";
@@ -174,4 +174,4 @@ export {
174
174
  STDIN_IDLE_MS,
175
175
  readStdin
176
176
  };
177
- //# sourceMappingURL=chunk-JXVJGF3Y.js.map
177
+ //# sourceMappingURL=chunk-7M6JP3FS.js.map
@@ -1,22 +1,30 @@
1
1
  import {
2
2
  createOperation,
3
3
  runOperation
4
- } from "./chunk-LAOMN6QQ.js";
4
+ } from "./chunk-5ZG7V2VW.js";
5
5
  import {
6
6
  fetchWorkspaceBundle
7
- } from "./chunk-RIN4YY34.js";
7
+ } from "./chunk-DXZTL7NA.js";
8
8
  import {
9
9
  assertReleaseIdentitiesFree,
10
10
  pinnedCanonicalGuids,
11
11
  setLiveRollback
12
- } from "./chunk-GLY552SI.js";
12
+ } from "./chunk-I6XRUU6U.js";
13
+ import {
14
+ objectDigests,
15
+ syncDigests
16
+ } from "./chunk-JI3BLXWQ.js";
17
+ import {
18
+ asWorkspaceArchive,
19
+ resolveProjectEntry
20
+ } from "./chunk-NV37YGOV.js";
13
21
  import {
14
22
  liveBranchMismatch,
15
23
  liveMismatch
16
- } from "./chunk-GHQ4BVI4.js";
24
+ } from "./chunk-N3YFCFCO.js";
17
25
  import {
18
26
  confirm
19
- } from "./chunk-JXVJGF3Y.js";
27
+ } from "./chunk-7M6JP3FS.js";
20
28
  import {
21
29
  CONSTRAINT_FIX,
22
30
  CONSTRAINT_PHRASE,
@@ -35,35 +43,27 @@ import {
35
43
  releaseTableEffects,
36
44
  renameHint,
37
45
  tableEffectsPayload
38
- } from "./chunk-CHINR7WD.js";
46
+ } from "./chunk-BSVQEKHO.js";
39
47
  import {
40
48
  tableRowCounter
41
- } from "./chunk-MBDFH7XB.js";
49
+ } from "./chunk-H2K4GFUS.js";
42
50
  import {
43
51
  landingLockPath,
44
52
  recordForeignLanding
45
- } from "./chunk-IF4PEGVD.js";
53
+ } from "./chunk-2YER2J47.js";
46
54
  import {
47
55
  recordSync
48
- } from "./chunk-NDWVJ2QZ.js";
49
- import {
50
- objectDigests,
51
- syncDigests
52
- } from "./chunk-JI3BLXWQ.js";
56
+ } from "./chunk-VAGSKUWC.js";
53
57
  import {
54
- asWorkspaceArchive,
55
- resolveProjectEntry
56
- } from "./chunk-Z4ZGTCCD.js";
58
+ SettledWriteFailure,
59
+ classifyFailure
60
+ } from "./chunk-L472YIGG.js";
57
61
  import {
58
62
  exportWorkspaceBundle
59
- } from "./chunk-GOLFAEUV.js";
63
+ } from "./chunk-2SD4LA22.js";
60
64
  import {
61
65
  decodeWorkspaceArchive
62
66
  } from "./chunk-3DRXWLJ5.js";
63
- import {
64
- SettledWriteFailure,
65
- classifyFailure
66
- } from "./chunk-JRVQ7M7W.js";
67
67
  import {
68
68
  BranchTakenError,
69
69
  assertBranchAbsent,
@@ -74,16 +74,16 @@ import {
74
74
  listBranchListing,
75
75
  liveBranchLabel,
76
76
  setLiveBranch
77
- } from "./chunk-NPODGBVJ.js";
77
+ } from "./chunk-M2C54ZBC.js";
78
78
  import {
79
79
  envValuesOf
80
80
  } from "./chunk-IYXL5NYU.js";
81
81
  import {
82
82
  assertOneName
83
- } from "./chunk-WBH4KJWM.js";
83
+ } from "./chunk-VIJ5D3RC.js";
84
84
  import {
85
85
  resolveSource
86
- } from "./chunk-3II44CUJ.js";
86
+ } from "./chunk-TWVUYS63.js";
87
87
  import {
88
88
  ReleaseHttpError,
89
89
  UNPROMOTABLE_RELEASE_PARTS,
@@ -92,27 +92,27 @@ import {
92
92
  promotableReleaseName,
93
93
  unpromotableReleasePart,
94
94
  untenantDeployableReleasePart
95
- } from "./chunk-GWTFI3GA.js";
95
+ } from "./chunk-26LHXLD3.js";
96
96
  import {
97
97
  getAccessToken
98
- } from "./chunk-YGLMRH5U.js";
98
+ } from "./chunk-YH2JVJAO.js";
99
+ import {
100
+ readLockFile
101
+ } from "./chunk-CJDPSCMX.js";
99
102
  import {
100
103
  pipedYes,
101
104
  retryCommand,
102
105
  withheldNote
103
- } from "./chunk-6X3MY2JP.js";
106
+ } from "./chunk-UYFUIHH3.js";
104
107
  import {
105
108
  contextFlags
106
- } from "./chunk-N5I37JFB.js";
109
+ } from "./chunk-3FRGNBOC.js";
107
110
  import {
108
111
  shellWord
109
112
  } from "./chunk-FWD7AL6N.js";
110
- import {
111
- readLockFile
112
- } from "./chunk-CJDPSCMX.js";
113
113
  import {
114
114
  withoutReadAftermath
115
- } from "./chunk-YR2I5HGE.js";
115
+ } from "./chunk-L6HZ67P6.js";
116
116
  import {
117
117
  CliError,
118
118
  LocalFileNotFoundError,
@@ -130,7 +130,7 @@ import {
130
130
  success,
131
131
  warn,
132
132
  withoutUrls
133
- } from "./chunk-D7BUMOKU.js";
133
+ } from "./chunk-CH23ONYG.js";
134
134
  import {
135
135
  envNamesRead
136
136
  } from "./chunk-T4LJ5UR2.js";
@@ -472,7 +472,7 @@ async function runPromoteCommand(args) {
472
472
  discloseWriteTarget(destination);
473
473
  const lockPath = landingLockPath(args, args.entryPath === void 0 ? {} : { entryFile: args.entryPath });
474
474
  if (lockPath === void 0 && args.noLock !== true) {
475
- const { nestedBackendEntries } = await import("./tracked-backend-4BHSV7NC.js");
475
+ const { nestedBackendEntries } = await import("./tracked-backend-AJCGTO5Y.js");
476
476
  const nested = nestedBackendEntries(process.cwd());
477
477
  if (nested.length > 0) {
478
478
  warn(
@@ -935,7 +935,7 @@ Nothing was switched. Serve it deliberately with \`xanosdk workspace branch set-
935
935
  }
936
936
  }
937
937
  async function unansweredBranchRead(err, args, what) {
938
- const { LookupFailedError, isServerError, isTransportFailure, unansweredCause } = await import("./source-resolve-MKLNYFWG.js");
938
+ const { LookupFailedError, isServerError, isTransportFailure, unansweredCause } = await import("./source-resolve-BBHYTOXI.js");
939
939
  const transport = isTransportFailure(err);
940
940
  if (!transport && !isServerError(err)) return err;
941
941
  const first = what !== void 0 ? `could not read ${what}` : ((err instanceof Error ? err.message : String(err)).trim().split("\n")[0] ?? "").replace(/[.:]$/, "");
@@ -961,4 +961,4 @@ export {
961
961
  reportNotRun,
962
962
  runPromoteCommand
963
963
  };
964
- //# sourceMappingURL=chunk-JFBRXRJD.js.map
964
+ //# sourceMappingURL=chunk-7XXWKTCE.js.map
@@ -1,3 +1,6 @@
1
+ import {
2
+ LOOPBACK_HOSTS
3
+ } from "./chunk-LCOCRJ4K.js";
1
4
  import {
2
5
  readEnvVar
3
6
  } from "./chunk-X2NL4KUO.js";
@@ -6,111 +9,6 @@ import {
6
9
  import { existsSync, readdirSync } from "fs";
7
10
  import { homedir } from "os";
8
11
  import { isAbsolute, join, resolve } from "path";
9
-
10
- // src/deploy/local-engine-handshake.ts
11
- var LOOPBACK_HOSTS = ["127.0.0.1", "::1", "localhost"];
12
- var ALLOWED_PROTOCOLS = ["http:", "https:"];
13
- function isLoopbackUrl(url) {
14
- let parsed;
15
- try {
16
- parsed = new URL(url);
17
- } catch {
18
- return false;
19
- }
20
- if (!ALLOWED_PROTOCOLS.includes(parsed.protocol)) return false;
21
- const host = parsed.hostname.replace(/^\[|\]$/g, "");
22
- if (!LOOPBACK_HOSTS.includes(host)) return false;
23
- return /^[0-9]+$/.test(parsed.port);
24
- }
25
- function assertLoopbackUrl(url, what) {
26
- if (isLoopbackUrl(url)) return;
27
- throw new Error(
28
- `${what} reports a url this SDK will not send a token to: ${url}
29
- A Xano Engine has to serve loopback over http on a port of its own \u2014 ${LOOPBACK_HOSTS.join(", ")} \u2014 and anything else is reachable from off this machine. Stop that engine and start a fresh one without binding it to all interfaces.`
30
- );
31
- }
32
- function requireString(raw, key, source) {
33
- const value = raw[key];
34
- if (typeof value !== "string" || value === "") {
35
- throw new Error(
36
- `${source} is missing \`${key}\`, or gave it as something other than text.
37
- That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local update\`.`
38
- );
39
- }
40
- return value;
41
- }
42
- function requireNumber(raw, key, source) {
43
- const value = raw[key];
44
- if (typeof value !== "number" || !Number.isFinite(value)) {
45
- throw new Error(
46
- `${source} is missing \`${key}\`, or gave it as something other than a number.
47
- That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local update\`.`
48
- );
49
- }
50
- return value;
51
- }
52
- function readEngine(value, source) {
53
- if (value === null || typeof value !== "object" || Array.isArray(value)) {
54
- throw new Error(
55
- `${source} did not print an engine description.
56
- Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
57
- );
58
- }
59
- const raw = value;
60
- return {
61
- name: requireString(raw, "name", source),
62
- url: requireString(raw, "url", source),
63
- workspaceId: requireNumber(raw, "workspace_id", source),
64
- token: requireString(raw, "access_token", source),
65
- pid: requireNumber(raw, "pid", source),
66
- signInUrl: requireString(raw, "sign_in_url", source),
67
- loginLinkEndpoint: requireString(raw, "login_link_endpoint", source),
68
- logPath: requireString(raw, "log", source)
69
- };
70
- }
71
- var HANDSHAKE_SOURCE = "The engine's start handshake";
72
- var LISTING_SOURCE = "The engine's list of running engines";
73
- function parseEngineHandshake(stdout) {
74
- let value;
75
- try {
76
- value = JSON.parse(stdout.trim());
77
- } catch {
78
- throw new Error(
79
- `${HANDSHAKE_SOURCE} did not print an engine description.
80
- Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
81
- );
82
- }
83
- const engine = readEngine(value, HANDSHAKE_SOURCE);
84
- assertLoopbackUrl(engine.url, "The engine that just started");
85
- return engine;
86
- }
87
- function parseEngineListing(stdout) {
88
- const text = stdout.trim();
89
- if (text === "") return [];
90
- let value;
91
- try {
92
- value = JSON.parse(text);
93
- } catch {
94
- throw new Error(
95
- `${LISTING_SOURCE} was not readable.
96
- Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
97
- );
98
- }
99
- if (!Array.isArray(value)) {
100
- throw new Error(
101
- `${LISTING_SOURCE} was not a list.
102
- Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
103
- );
104
- }
105
- return value.filter((entry) => !isForeignEngine(entry)).map((entry) => readEngine(entry, LISTING_SOURCE));
106
- }
107
- function isForeignEngine(entry) {
108
- if (entry === null || typeof entry !== "object" || Array.isArray(entry)) return false;
109
- const raw = entry;
110
- return raw.workspace_id === void 0 && raw.access_token === void 0;
111
- }
112
-
113
- // src/deploy/local-engine-config.ts
114
12
  var SUPPORTED_PLATFORMS = [
115
13
  "darwin-arm64",
116
14
  "linux-x64",
@@ -212,11 +110,6 @@ function resolveEngineSource(flagValue, env = process.env, pinned) {
212
110
  }
213
111
 
214
112
  export {
215
- LOOPBACK_HOSTS,
216
- isLoopbackUrl,
217
- assertLoopbackUrl,
218
- parseEngineHandshake,
219
- parseEngineListing,
220
113
  SUPPORTED_PLATFORMS,
221
114
  resolveEnginePlatform,
222
115
  LOCAL_ENGINE_HOME_ENV,
@@ -234,4 +127,4 @@ export {
234
127
  engineOverrideFromEnv,
235
128
  resolveEngineSource
236
129
  };
237
- //# sourceMappingURL=chunk-PL7AIAWS.js.map
130
+ //# sourceMappingURL=chunk-A4R5CAY4.js.map
@@ -4,17 +4,17 @@ import {
4
4
  listAnswer,
5
5
  recordAnswer,
6
6
  writeTransportFailure
7
- } from "./chunk-7GAIJW62.js";
7
+ } from "./chunk-MYZRMSPM.js";
8
8
  import {
9
9
  contextFlags
10
- } from "./chunk-N5I37JFB.js";
10
+ } from "./chunk-3FRGNBOC.js";
11
11
  import {
12
12
  TransportError,
13
13
  fetchOrExplain,
14
14
  httpFailure,
15
15
  readBodyText,
16
16
  withWriteStatusAftermath
17
- } from "./chunk-YR2I5HGE.js";
17
+ } from "./chunk-L6HZ67P6.js";
18
18
  import {
19
19
  shellQuote
20
20
  } from "./chunk-5ZSO4T2G.js";
@@ -283,4 +283,4 @@ export {
283
283
  waitUntilReady,
284
284
  isUnansweredPoll
285
285
  };
286
- //# sourceMappingURL=chunk-SPKA2LV6.js.map
286
+ //# sourceMappingURL=chunk-AKERAUNH.js.map
@@ -1,12 +1,15 @@
1
1
  import {
2
2
  atomicWrite
3
3
  } from "./chunk-LLNZGEFK.js";
4
+ import {
5
+ holdsProjectManifest
6
+ } from "./chunk-HU7F56VF.js";
4
7
  import {
5
8
  assertValidProfileName
6
9
  } from "./chunk-MF4W6FHU.js";
7
10
  import {
8
11
  UsageError
9
- } from "./chunk-D7BUMOKU.js";
12
+ } from "./chunk-CH23ONYG.js";
10
13
  import {
11
14
  shellQuote
12
15
  } from "./chunk-5ZSO4T2G.js";
@@ -53,7 +56,7 @@ function walkUp(startDir) {
53
56
  for (; ; ) {
54
57
  const candidate = join(dir, POINTER_FILE);
55
58
  if (existsSync(candidate)) return { pointer: candidate, root: dir, bounded: true };
56
- if (existsSync(join(dir, "package.json"))) return { root: dir, bounded: true };
59
+ if (holdsProjectManifest(dir)) return { root: dir, bounded: true };
57
60
  if (existsSync(join(dir, ".git"))) return { root: dir, bounded: true };
58
61
  const parent = dirname(dir);
59
62
  if (parent === dir || dir === home) return { root: start, bounded: false };
@@ -156,4 +159,4 @@ export {
156
159
  pointerRootFor,
157
160
  projectRootFor
158
161
  };
159
- //# sourceMappingURL=chunk-26MOFAJT.js.map
162
+ //# sourceMappingURL=chunk-ARWMVNDJ.js.map
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  readDeployed
3
- } from "./chunk-WZHLMU6T.js";
4
- import {
5
- isProjectDir
6
- } from "./chunk-CCU5CCRX.js";
3
+ } from "./chunk-S46ODQRA.js";
7
4
  import {
8
5
  LookupFailedError,
9
6
  SourceError,
10
7
  resolveSource
11
- } from "./chunk-3II44CUJ.js";
8
+ } from "./chunk-TWVUYS63.js";
9
+ import {
10
+ isProjectDir
11
+ } from "./chunk-ZJOAWRED.js";
12
12
  import {
13
13
  NotSignedInError
14
- } from "./chunk-YGLMRH5U.js";
14
+ } from "./chunk-YH2JVJAO.js";
15
15
  import {
16
16
  otherCredentialRefusal
17
- } from "./chunk-ITC2R2OT.js";
17
+ } from "./chunk-VNDR2T35.js";
18
18
  import {
19
19
  getEngineRecord
20
- } from "./chunk-Q22BMRPF.js";
20
+ } from "./chunk-EPFDY5JU.js";
21
21
  import {
22
22
  commandPath,
23
23
  parseSlot,
24
24
  refusedKind,
25
25
  slotValueMissing
26
- } from "./chunk-VDHA5SSQ.js";
26
+ } from "./chunk-PY722CHR.js";
27
27
  import {
28
28
  getEnvironment,
29
29
  readEphemeralState,
30
30
  unreadableEphemeralState
31
- } from "./chunk-U6MTGB46.js";
31
+ } from "./chunk-ORGNLQN6.js";
32
32
  import {
33
33
  ENV_CREDENTIAL_VARS,
34
34
  ORIGIN_READ_ONLY_BY_REFRESH,
@@ -36,10 +36,7 @@ import {
36
36
  credentialFileFlagFor,
37
37
  recordedByEnvCredential,
38
38
  typedCredentialFlags
39
- } from "./chunk-N5I37JFB.js";
40
- import {
41
- backendDirIn
42
- } from "./chunk-TTEIDD5Q.js";
39
+ } from "./chunk-3FRGNBOC.js";
43
40
  import {
44
41
  globalAuthFilePath,
45
42
  localAuthFilePath,
@@ -47,13 +44,16 @@ import {
47
44
  profileAddCommand,
48
45
  readCredentialFile,
49
46
  recordedCredentialPath
50
- } from "./chunk-M5CSVB23.js";
47
+ } from "./chunk-NDJAKSE7.js";
48
+ import {
49
+ backendDirIn
50
+ } from "./chunk-5SCPRXFB.js";
51
51
  import {
52
52
  UsageError,
53
53
  displayPath,
54
54
  pastePath,
55
55
  sourceSpellings
56
- } from "./chunk-D7BUMOKU.js";
56
+ } from "./chunk-CH23ONYG.js";
57
57
  import {
58
58
  shellQuote
59
59
  } from "./chunk-5ZSO4T2G.js";
@@ -86,7 +86,7 @@ async function selectBackend(slot, raw, ctx) {
86
86
  }
87
87
  const decided = decide({ cwd, pointer, state, scope, engineRecorded: getEngineRecord(cwd, env) !== void 0 }, slot);
88
88
  if ("refusal" in decided) {
89
- const { reachableFirst } = await import("./env-target-FZROWYFS.js");
89
+ const { reachableFirst } = await import("./env-target-JBSLBKNX.js");
90
90
  throw await reachableFirst(decided.refusal, scope);
91
91
  }
92
92
  refuseUnservable(slot, decided.kind);
@@ -368,4 +368,4 @@ export {
368
368
  NothingTrackedError,
369
369
  nestedBackendEntries
370
370
  };
371
- //# sourceMappingURL=chunk-I3VHW6XM.js.map
371
+ //# sourceMappingURL=chunk-B2URJBC4.js.map
@@ -2,7 +2,7 @@ import {
2
2
  composeRoutesManifest,
3
3
  fireRoutesManifest,
4
4
  parseModuleSections
5
- } from "./chunk-KPFS3RGM.js";
5
+ } from "./chunk-IPNN2KRW.js";
6
6
  import {
7
7
  ROUTES_MANIFEST_BASENAME,
8
8
  renderPlannedManifest,
@@ -10,12 +10,12 @@ import {
10
10
  } from "./chunk-LBJA7IEM.js";
11
11
  import {
12
12
  warn
13
- } from "./chunk-D7BUMOKU.js";
13
+ } from "./chunk-CH23ONYG.js";
14
14
 
15
15
  // src/emit/routes-manifest-file.ts
16
16
  import { existsSync, readFileSync, statSync } from "fs";
17
17
  async function discoverManifestModules(projectDir, manifestPath, sdkVersion) {
18
- const { discoverToolchainPlugins } = await import("./toolchain-modules-VU7SURVJ.js");
18
+ const { discoverToolchainPlugins } = await import("./toolchain-modules-OTNSKK52.js");
19
19
  const { loaded, skipped } = await discoverToolchainPlugins(projectDir, { frozen: false, peerSkew: "skip" });
20
20
  return {
21
21
  loaded,
@@ -75,4 +75,4 @@ export {
75
75
  renderManifestFile,
76
76
  reportModuleFailures
77
77
  };
78
- //# sourceMappingURL=chunk-A7MRZ4GF.js.map
78
+ //# sourceMappingURL=chunk-B3P25SDP.js.map