@xano/sdk 1.0.19 → 1.0.21

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 (235) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +5 -2
  3. package/dist/{agent-file-refresh-5IP25UYO.js → agent-file-refresh-5R5ALFEV.js} +13 -11
  4. package/dist/{agent-skill-command-BPM4S6C7.js → agent-skill-command-JBX7Z6AK.js} +49 -47
  5. package/dist/ai-models-command-I3FU6GYP.js +270 -0
  6. package/dist/{answer-shape-ZRQS7ZC4.js → answer-shape-BCGPH73R.js} +5 -5
  7. package/dist/{backend-dir-RLILKCMR.js → backend-dir-VOMHDVFP.js} +16 -14
  8. package/dist/{backend-slot-7BATLL3X.js → backend-slot-WSWAHL2W.js} +3 -3
  9. package/dist/bin.js +55 -51
  10. package/dist/{branch-SJKKUCMZ.js → branch-6DBHVVUT.js} +11 -11
  11. package/dist/{branch-commands-5HKCBRLN.js → branch-commands-JOSHDOXH.js} +29 -28
  12. package/dist/bundle.js +3 -3
  13. package/dist/chunk-37BT62SX.js +17 -0
  14. package/dist/{chunk-2IC3K22K.js → chunk-3HK7VELD.js} +2 -2
  15. package/dist/{chunk-ZYZ7GRX3.js → chunk-4DVP42ZC.js} +2 -2
  16. package/dist/{chunk-ROWYW3JF.js → chunk-4QRDNBPY.js} +2 -2
  17. package/dist/{chunk-KG3RDXN5.js → chunk-4TVHSC4V.js} +4 -4
  18. package/dist/{chunk-SINL5WMI.js → chunk-4Y3SWNPE.js} +2 -2
  19. package/dist/{chunk-6SEPZQYB.js → chunk-4ZV4MDKP.js} +2 -2
  20. package/dist/{chunk-IFHFJR5O.js → chunk-5ABAIJVV.js} +6 -6
  21. package/dist/chunk-5KSVMHFS.js +81 -0
  22. package/dist/{chunk-MOVRSULZ.js → chunk-5Z4WQQHC.js} +2 -2
  23. package/dist/{chunk-K23RUXSH.js → chunk-64F6ET45.js} +44 -16
  24. package/dist/{chunk-ZHFSIQ6E.js → chunk-6534P3VH.js} +25 -2
  25. package/dist/{chunk-Q6AKSLD2.js → chunk-6L32HAIP.js} +2 -2
  26. package/dist/chunk-6SXKKDGF.js +9 -0
  27. package/dist/{chunk-OTQF4B37.js → chunk-6TAYTKFM.js} +4 -4
  28. package/dist/{chunk-7UQZ7C4W.js → chunk-745NOWB7.js} +6 -6
  29. package/dist/{chunk-XAE4NIZ2.js → chunk-7J7YRAZB.js} +4 -4
  30. package/dist/{chunk-E34VGSCI.js → chunk-7LLVSTXY.js} +9 -1
  31. package/dist/{chunk-2HBJU76D.js → chunk-7SGMHGLI.js} +40 -22
  32. package/dist/{chunk-OTYK2V44.js → chunk-ANCNHQCH.js} +24 -24
  33. package/dist/{chunk-AICWDCLJ.js → chunk-BBFHZMQA.js} +2 -2
  34. package/dist/{chunk-54CJ74BH.js → chunk-C7KO5KKB.js} +4 -4
  35. package/dist/{chunk-V2MIBJZU.js → chunk-CGLYG2VF.js} +2 -2
  36. package/dist/{chunk-Z73I7Q2H.js → chunk-CJ5WRCVE.js} +80 -2
  37. package/dist/{chunk-WGKKDGSA.js → chunk-DAXFWXSV.js} +8 -8
  38. package/dist/{chunk-MSYMEP7Y.js → chunk-DJ7JH4UE.js} +7 -7
  39. package/dist/{chunk-XDGLYIB2.js → chunk-DORGB2Y2.js} +2 -2
  40. package/dist/{chunk-GA6HTO3O.js → chunk-EBSJUSID.js} +2 -2
  41. package/dist/{chunk-O2BLNQEC.js → chunk-EME5G4YP.js} +2 -2
  42. package/dist/{chunk-RVWWNNZQ.js → chunk-EOWNLLLV.js} +4 -4
  43. package/dist/{chunk-QIT2GGNB.js → chunk-EPD5J3WA.js} +2 -2
  44. package/dist/{chunk-WDWIXCGB.js → chunk-FJS5I6V4.js} +4 -4
  45. package/dist/{chunk-DO5VZIY4.js → chunk-FLM6TN7Q.js} +3 -3
  46. package/dist/{chunk-GT7PZCTK.js → chunk-FVBJKM6N.js} +3 -3
  47. package/dist/{chunk-F3IA3YWI.js → chunk-FVZ5C3PF.js} +22 -2
  48. package/dist/{chunk-PLOBHRGV.js → chunk-GODAKJ3L.js} +49 -49
  49. package/dist/{chunk-RKTVXFBV.js → chunk-GUHJV7C5.js} +31 -3
  50. package/dist/{chunk-B6ZHSM2D.js → chunk-HXVNBJVA.js} +73 -73
  51. package/dist/{chunk-G2XSDIYS.js → chunk-I52AKG2O.js} +4 -4
  52. package/dist/{chunk-VCFRALU7.js → chunk-I5YD7QPI.js} +28 -11
  53. package/dist/{chunk-ASUDP4OS.js → chunk-IA4FMPJ3.js} +8 -8
  54. package/dist/{chunk-YYBBJPCL.js → chunk-IUBGFCJJ.js} +14 -18
  55. package/dist/{chunk-L4L6YITX.js → chunk-IWFKPEWJ.js} +13 -10
  56. package/dist/{chunk-YP4QTC4F.js → chunk-J564PMKW.js} +6 -6
  57. package/dist/{chunk-AJPICYPW.js → chunk-JVMAWMO3.js} +113 -94
  58. package/dist/{chunk-UH5VQGNR.js → chunk-JXX2QXPP.js} +2 -2
  59. package/dist/{chunk-2DUYJR5N.js → chunk-KHX6VQ4M.js} +2 -2
  60. package/dist/{chunk-LRN6QX44.js → chunk-KL4PGJ2G.js} +3 -3
  61. package/dist/{chunk-BCN6OZLF.js → chunk-KU4HLYWT.js} +3 -3
  62. package/dist/{chunk-WGGATSIP.js → chunk-LMX4VE4H.js} +2 -2
  63. package/dist/{chunk-YT5UN2F4.js → chunk-LYR6W5LV.js} +14 -14
  64. package/dist/{chunk-DXUICABI.js → chunk-LZDH5COS.js} +21 -2
  65. package/dist/{chunk-2NUOFHPX.js → chunk-M42Y53Z4.js} +7 -7
  66. package/dist/{chunk-E5M5P23K.js → chunk-M5GXZEX7.js} +21 -215
  67. package/dist/{chunk-Q4LJCCH5.js → chunk-MGC5S6OE.js} +75 -9
  68. package/dist/{chunk-KVF7YQ2W.js → chunk-MJA5BP2M.js} +9 -9
  69. package/dist/{chunk-5Y5HWQ2P.js → chunk-MKRREVNB.js} +4 -4
  70. package/dist/{chunk-JORPZKBE.js → chunk-N2JZU6VR.js} +3 -3
  71. package/dist/{chunk-QK2WIASY.js → chunk-N3LPULRE.js} +7 -7
  72. package/dist/chunk-OF5YFPSK.js +278 -0
  73. package/dist/{chunk-D4N72H35.js → chunk-OFKFZSHS.js} +9 -9
  74. package/dist/{chunk-64UVVLDT.js → chunk-OG6WYZNA.js} +7 -7
  75. package/dist/{chunk-AJBOGO5U.js → chunk-OQMXCNN7.js} +59 -31
  76. package/dist/{chunk-EPB6FAR5.js → chunk-OSMPI45P.js} +3 -3
  77. package/dist/{chunk-QETVFGD7.js → chunk-OTUPQ7M3.js} +16 -16
  78. package/dist/{chunk-Q45RTKWW.js → chunk-OZVZ3KCH.js} +6 -6
  79. package/dist/{chunk-3X4B5GWY.js → chunk-P3WIMLG2.js} +3 -3
  80. package/dist/{chunk-JUCL5MUZ.js → chunk-PAWLPNBA.js} +8 -8
  81. package/dist/{chunk-GJZMKMWO.js → chunk-PC7XEO7F.js} +2 -2
  82. package/dist/{chunk-MF4W6FHU.js → chunk-Q4R2ABFL.js} +1 -1
  83. package/dist/{chunk-BT6CJNEO.js → chunk-Q77C32ZB.js} +4 -4
  84. package/dist/chunk-QHNSBURP.js +264 -0
  85. package/dist/{chunk-HUGNB6UN.js → chunk-QLXGLHK3.js} +71 -49
  86. package/dist/{chunk-NH5Z2NOD.js → chunk-QZ2PC6B7.js} +3 -3
  87. package/dist/{chunk-GTB7JL3M.js → chunk-QZXSPUNS.js} +6 -6
  88. package/dist/{chunk-LCOCRJ4K.js → chunk-RQGSZ7AR.js} +16 -2
  89. package/dist/{chunk-WLZSKD7E.js → chunk-SQVETROU.js} +3 -3
  90. package/dist/{chunk-554FJWNH.js → chunk-T2LFOMOP.js} +4 -4
  91. package/dist/{chunk-4HMF5TRB.js → chunk-T4HTNHXR.js} +8 -8
  92. package/dist/{chunk-FRJB3NTE.js → chunk-T6KQYCAU.js} +3 -3
  93. package/dist/{chunk-YYDM4DNP.js → chunk-TDSRZDQP.js} +2 -2
  94. package/dist/{chunk-RKNCISPM.js → chunk-VEA6EXJL.js} +3 -3
  95. package/dist/{chunk-KYQRIL4V.js → chunk-VJCUFHTQ.js} +26 -26
  96. package/dist/{chunk-6FCAFWD5.js → chunk-VO62TKK5.js} +3 -77
  97. package/dist/{chunk-3FNEHRJF.js → chunk-VV7FVGOX.js} +8 -8
  98. package/dist/{chunk-HM5X73PY.js → chunk-WK5QDV25.js} +2 -2
  99. package/dist/{chunk-5JUWB6XL.js → chunk-WXY24GKO.js} +7 -7
  100. package/dist/{chunk-XKHQLKUL.js → chunk-X7EK5PTK.js} +3 -3
  101. package/dist/{chunk-CO7US54H.js → chunk-X7IBJLAD.js} +2 -2
  102. package/dist/{chunk-E7VF2JVJ.js → chunk-XD5FOBMZ.js} +10 -10
  103. package/dist/{chunk-PKBC7G5H.js → chunk-XDIPEWLU.js} +25 -1
  104. package/dist/{chunk-NYIFU3BR.js → chunk-XWEDFVJ6.js} +21 -19
  105. package/dist/{chunk-OJ6YGRPV.js → chunk-YAZEB255.js} +3 -3
  106. package/dist/{chunk-UJ5HLRYH.js → chunk-YF7PDN6T.js} +35 -35
  107. package/dist/{chunk-RGPHFHJU.js → chunk-YFVD3LNL.js} +2 -2
  108. package/dist/{chunk-35SI4GBM.js → chunk-YSSAJQH4.js} +3 -3
  109. package/dist/{chunk-UQNDODRU.js → chunk-Z7IINILG.js} +5 -5
  110. package/dist/{chunk-PRSNMSVG.js → chunk-ZCXWOGFL.js} +3 -3
  111. package/dist/{chunk-5AHHO2QA.js → chunk-ZNGUETV7.js} +163 -97
  112. package/dist/cli.d.ts +10 -1
  113. package/dist/cli.js +48 -46
  114. package/dist/{codegen-command-OF3TPC66.js → codegen-command-ZXABRPVP.js} +68 -66
  115. package/dist/{commands-Z2QZOORB.js → commands-EN4RLPOP.js} +2 -2
  116. package/dist/{completion-LFXXNQGR.js → completion-KH45QD3E.js} +2 -2
  117. package/dist/{config-7GGINOFY.js → config-AKHBFTKA.js} +8 -8
  118. package/dist/{deploy-command-MGYR2TKC.js → deploy-command-KO5FATR6.js} +55 -53
  119. package/dist/{deploy-source-UHCHCI5Z.js → deploy-source-7GCMMZKV.js} +34 -33
  120. package/dist/{dev-env-sync-XWZVXEI2.js → dev-env-sync-LZ22CSKD.js} +51 -49
  121. package/dist/{display-name-hint-5GLJGPQ6.js → display-name-hint-QMT562BI.js} +13 -13
  122. package/dist/{emit-DlOKIJER.d.ts → emit-BfHifhJy.d.ts} +120 -7
  123. package/dist/{env-example-refresh-FACP4FQE.js → env-example-refresh-DWGV4DFX.js} +69 -67
  124. package/dist/{env-pull-command-SHK4TI6U.js → env-pull-command-5N5AUKJK.js} +52 -50
  125. package/dist/{env-target-ZQSPPN4A.js → env-target-CXZXMK3W.js} +13 -13
  126. package/dist/{env-var-command-Q2ZHKWAQ.js → env-var-command-4RGQALIH.js} +55 -54
  127. package/dist/{ephemeral-2DXWP3VK.js → ephemeral-MNHEWSZ6.js} +11 -11
  128. package/dist/{ephemeral-command-FKOSN56R.js → ephemeral-command-GIB63YX3.js} +64 -62
  129. package/dist/{ephemeral-state-56XEDUJW.js → ephemeral-state-QTT5JHD5.js} +11 -11
  130. package/dist/{generate-command-2JCMZ6CG.js → generate-command-GW42CN4I.js} +77 -75
  131. package/dist/{gitignore-Z5N6DEEV.js → gitignore-RDEUQHHG.js} +19 -17
  132. package/dist/{guards-LQ7PSXOL.js → guards-N4PUFKN5.js} +3 -2
  133. package/dist/{impersonate-command-R24VBFQA.js → impersonate-command-H72JM5IF.js} +44 -42
  134. package/dist/{import-VJQGIS33.js → import-7HFTOT7M.js} +5 -5
  135. package/dist/index.d.ts +142 -7
  136. package/dist/index.js +7 -6
  137. package/dist/{init-command-UOCNESZK.js → init-command-ERRMSKPB.js} +52 -50
  138. package/dist/{init-modules-5DYK7V4J.js → init-modules-UH7PPQTB.js} +11 -9
  139. package/dist/{init-web-25QJ4JWB.js → init-web-YCPD6BYN.js} +2 -2
  140. package/dist/internal.d.ts +4 -4
  141. package/dist/internal.js +169 -24
  142. package/dist/{keep-data-merge-HLIXZC77.js → keep-data-merge-BNX3HEHM.js} +32 -31
  143. package/dist/{landing-record-FYKDJIUF.js → landing-record-ZY4O7OLQ.js} +23 -21
  144. package/dist/{live-diff-YOFOJCFX.js → live-diff-GZ6JUNP6.js} +5 -4
  145. package/dist/local-engine-ai-YWAMTHME.js +47 -0
  146. package/dist/{local-engine-choice-4ZA2HZXH.js → local-engine-choice-PCM45R3A.js} +43 -36
  147. package/dist/local-engine-command-ACJ6YUP7.js +93 -0
  148. package/dist/{local-engine-config-6CB6FOEJ.js → local-engine-config-MVNWKHZ4.js} +15 -3
  149. package/dist/{local-engine-deploy-XAEDT55W.js → local-engine-deploy-IUHWB43Q.js} +21 -18
  150. package/dist/{local-engine-lookup-WBYTY2JE.js → local-engine-lookup-2VSUWEQY.js} +6 -6
  151. package/dist/{local-engine-mcp-bridge-3H5OXBWQ.js → local-engine-mcp-bridge-ECGTK7LF.js} +6 -6
  152. package/dist/{local-engine-mcp-command-SUAVS5UA.js → local-engine-mcp-command-EODMA3X5.js} +52 -44
  153. package/dist/{local-engine-process-35B2KQED.js → local-engine-process-P5T2766M.js} +19 -11
  154. package/dist/local-engine-release-OK6GKULS.js +40 -0
  155. package/dist/{local-engine-state-JZHTKHDG.js → local-engine-state-BOKHLNRQ.js} +4 -4
  156. package/dist/{local-engine-update-check-VXJZSIJU.js → local-engine-update-check-C72LSVUQ.js} +7 -7
  157. package/dist/{lock-commands-ZT6YTQYA.js → lock-commands-YBBTZB6M.js} +55 -53
  158. package/dist/{login-command-ONGJASKA.js → login-command-DJCCEN5O.js} +39 -32
  159. package/dist/{logout-command-PLYGFHBQ.js → logout-command-6FQLSD5H.js} +16 -16
  160. package/dist/{loop-CLLBQSJF.js → loop-EMTBWN4X.js} +5 -4
  161. package/dist/{marketplace-command-LNNAA7ZK.js → marketplace-command-2JZERTJW.js} +42 -40
  162. package/dist/{marketplace-resolve-63QWMQZU.js → marketplace-resolve-LT76KHJD.js} +9 -7
  163. package/dist/{meta-client-JND42QEJ.js → meta-client-KDTBLP6X.js} +15 -15
  164. package/dist/{module-manifest-NWJWAQLQ.js → module-manifest-B432UFBK.js} +3 -3
  165. package/dist/node.d.ts +5 -5
  166. package/dist/node.js +61 -59
  167. package/dist/{operation-outcome-U6IWKLBK.js → operation-outcome-POYID3M6.js} +26 -26
  168. package/dist/{output-target-QJSHZBVY.js → output-target-55RSDDTO.js} +20 -18
  169. package/dist/{plan-disclosure-XTAEE4BE.js → plan-disclosure-5HM7CMRW.js} +19 -18
  170. package/dist/{plugin-contributions-DD6R6RL6.js → plugin-contributions-MEXUR7TY.js} +4 -4
  171. package/dist/{plugin-prompt-UX2TT5NS.js → plugin-prompt-XM4ATAWA.js} +4 -4
  172. package/dist/{plugin-questions-WE2F4ZC4.js → plugin-questions-VGU3B4LE.js} +3 -3
  173. package/dist/{preflight-command-ZKUQSIL2.js → preflight-command-ZP7VVE5T.js} +60 -58
  174. package/dist/{profile-command-PJUA5ZMX.js → profile-command-EP7N7LNQ.js} +38 -36
  175. package/dist/{profile-pointer-RCPHVTJV.js → profile-pointer-DHOU26Q2.js} +5 -5
  176. package/dist/{profile-select-45G5VPJK.js → profile-select-ZANK43KE.js} +2 -2
  177. package/dist/project-config-SGRYMHBT.js +37 -0
  178. package/dist/{project-dependency-TPVV3YIX.js → project-dependency-WTH776QE.js} +10 -8
  179. package/dist/{project-sdk-DKZBK5H5.js → project-sdk-FYNY7RTO.js} +3 -3
  180. package/dist/promote-command-LX5UWQYG.js +150 -0
  181. package/dist/{prompt-OYQHQWKI.js → prompt-JVYQH4OR.js} +3 -3
  182. package/dist/{publish-command-JSYK6HOW.js → publish-command-DW5VLFJN.js} +65 -63
  183. package/dist/{pull-command-K5X367MA.js → pull-command-ZUDJRRXV.js} +71 -69
  184. package/dist/{pull-superseded-3SSM3JFT.js → pull-superseded-7EZ7M54I.js} +3 -3
  185. package/dist/{release-command-OC7MT4FV.js → release-command-Z3HXXLLO.js} +66 -64
  186. package/dist/{release-ns-command-EHNEAEDU.js → release-ns-command-JS3OUEFQ.js} +93 -91
  187. package/dist/{retry-command-WP4ZI6CJ.js → retry-command-HG4IFE65.js} +10 -10
  188. package/dist/{routes-manifest-file-A2PW7IQ7.js → routes-manifest-file-PIKQ3BIJ.js} +4 -4
  189. package/dist/{secrets-file-2RHMJFXQ.js → secrets-file-QLVCR2JD.js} +19 -17
  190. package/dist/{secrets-fill-command-HYMF6EZM.js → secrets-fill-command-BK7NVKPY.js} +52 -50
  191. package/dist/{seed-W5FNE6IB.js → seed-M33F4OJW.js} +3 -3
  192. package/dist/{source-resolve-PMA7SHZE.js → source-resolve-GGRHO6NW.js} +24 -24
  193. package/dist/{static-host-3HPZKVKK.js → static-host-HCKD26Q3.js} +5 -5
  194. package/dist/{status-command-CROHQRPI.js → status-command-3DISBMGH.js} +52 -51
  195. package/dist/{store-Dg9FLJkx.d.ts → store-Dt-5vOSe.d.ts} +149 -1
  196. package/dist/{store-B63BQV6R.js → store-ZWQFSXH5.js} +8 -8
  197. package/dist/{sync-baseline-LSGKNCKM.js → sync-baseline-XLRJQZCS.js} +7 -6
  198. package/dist/{sync-contributions-QDEWZ3IU.js → sync-contributions-GAV6PZEY.js} +17 -13
  199. package/dist/{sync-record-AWFCSS4D.js → sync-record-UFEJDNLR.js} +13 -13
  200. package/dist/{table-WJ7YDJ6Q.js → table-JHPGUJ2Z.js} +6 -6
  201. package/dist/{tables-command-BKVDHAGJ.js → tables-command-D7DSJAXI.js} +41 -40
  202. package/dist/{tenant-IXIW3FOI.js → tenant-SSWC7B3V.js} +12 -12
  203. package/dist/{tenant-command-Y7VCGDMY.js → tenant-command-6S5RU4PP.js} +96 -94
  204. package/dist/{test-command-2RAUNIU5.js → test-command-FSRARFF7.js} +44 -43
  205. package/dist/{tests-N4MMBABH.js → tests-ZFQWDWS2.js} +6 -6
  206. package/dist/{token-4I26OGWH.js → token-XTU3C2DI.js} +14 -12
  207. package/dist/{toolchain-hooks-IJWV3ZQS.js → toolchain-hooks-IRPM6LYL.js} +3 -3
  208. package/dist/{toolchain-modules-XM4JXHQC.js → toolchain-modules-YSM6DMDB.js} +9 -5
  209. package/dist/{toolchain-peers-EMOYN4U7.js → toolchain-peers-NOIM44ED.js} +11 -9
  210. package/dist/{tracked-backend-EZE6H3EZ.js → tracked-backend-7XW4KPIR.js} +39 -36
  211. package/dist/{update-check-QLB5DV3B.js → update-check-KKDYZG3X.js} +51 -49
  212. package/dist/{upgrade-command-4DCDBDB5.js → upgrade-command-LRJ7V3UW.js} +55 -53
  213. package/dist/{whoami-command-WI4VT3IN.js → whoami-command-FBRWLX5Q.js} +15 -15
  214. package/dist/{workspace-DIM3SBPV.js → workspace-DTM3ZNTM.js} +5 -5
  215. package/dist/{workspace-binding-43PBQEE4.js → workspace-binding-M7XSJIWC.js} +14 -14
  216. package/dist/{workspace-command-FWTHIFVI.js → workspace-command-3T6CT7UA.js} +96 -94
  217. package/dist/{workspace-env-5PJVWQ2O.js → workspace-env-RIKENQFC.js} +17 -15
  218. package/dist/{workspace-export-3KMWNZDD.js → workspace-export-A4L6272C.js} +5 -5
  219. package/dist/{writable-X7BCN7XE.js → writable-762DMPHW.js} +3 -3
  220. package/dist/{xano-RLSNDM7O.js → xano-XZN5SRDH.js} +4 -3
  221. package/dist/{xanosdk-import-VOJEAK5Q.js → xanosdk-import-L3ZZIT6I.js} +6 -6
  222. package/dist/{xanosdk-project-PV3ORVP5.js → xanosdk-project-YVLCGM3Y.js} +16 -14
  223. package/guides/cli.md +3 -0
  224. package/guides/coverage.md +4 -4
  225. package/llms/kinds-agent-mcp.md +3 -1
  226. package/llms/statements-ai.md +21 -0
  227. package/llms/statements-catalog.md +1 -8
  228. package/llms-full.txt +33 -15
  229. package/llms.txt +7 -6
  230. package/manifest.json +651 -3
  231. package/package.json +2 -38
  232. package/skills/xano-backend/SKILL.md +2 -2
  233. package/dist/.build-fingerprint +0 -1
  234. package/dist/local-engine-command-WQS4SD6N.js +0 -85
  235. package/dist/promote-command-NDYP66LD.js +0 -148
@@ -9,50 +9,41 @@ import {
9
9
  staticRetryHint,
10
10
  unknownStaticOutcome,
11
11
  warnStaticTeardown
12
- } from "./chunk-MSYMEP7Y.js";
12
+ } from "./chunk-DJ7JH4UE.js";
13
+ import {
14
+ recordSync
15
+ } from "./chunk-OSMPI45P.js";
13
16
  import {
14
17
  objectDigests,
15
18
  syncDigests
16
- } from "./chunk-OJ6YGRPV.js";
19
+ } from "./chunk-YAZEB255.js";
17
20
  import {
18
21
  archiveSeedContent
19
- } from "./chunk-YP4QTC4F.js";
22
+ } from "./chunk-J564PMKW.js";
20
23
  import {
21
24
  shownLabel
22
- } from "./chunk-QETVFGD7.js";
25
+ } from "./chunk-OTUPQ7M3.js";
23
26
  import {
24
27
  confirm,
25
28
  needsConfirmation
26
- } from "./chunk-AICWDCLJ.js";
29
+ } from "./chunk-BBFHZMQA.js";
27
30
  import {
28
31
  assertStorageModesKept,
29
32
  discloseCanonicalMoves,
30
33
  movesClause,
31
34
  storageChangesPayload
32
- } from "./chunk-UQNDODRU.js";
35
+ } from "./chunk-Z7IINILG.js";
33
36
  import {
34
37
  listTables,
35
38
  tableRowCounter,
36
39
  tableRowIds
37
- } from "./chunk-WLZSKD7E.js";
40
+ } from "./chunk-SQVETROU.js";
38
41
  import {
39
42
  landedRecordFor,
40
43
  landingLockPath,
41
44
  recordForeignLanding,
42
45
  recordLanding
43
- } from "./chunk-YT5UN2F4.js";
44
- import {
45
- recordSync
46
- } from "./chunk-EPB6FAR5.js";
47
- import {
48
- XANOSDK_IMPORT_CONFLICT_CODE,
49
- XANOSDK_IMPORT_UNIQUENESS_CODE,
50
- XanoSdkImportRefusal,
51
- xanosdkImport
52
- } from "./chunk-2NUOFHPX.js";
53
- import {
54
- encodeWorkspaceArchive
55
- } from "./chunk-3DRXWLJ5.js";
46
+ } from "./chunk-LYR6W5LV.js";
56
47
  import {
57
48
  DEFAULT_BRANCH_LABEL,
58
49
  assertBranchAbsent,
@@ -62,7 +53,16 @@ import {
62
53
  listBranchListing,
63
54
  liveBranchLabel,
64
55
  setLiveBranch
65
- } from "./chunk-54CJ74BH.js";
56
+ } from "./chunk-C7KO5KKB.js";
57
+ import {
58
+ XANOSDK_IMPORT_CONFLICT_CODE,
59
+ XANOSDK_IMPORT_UNIQUENESS_CODE,
60
+ XanoSdkImportRefusal,
61
+ xanosdkImport
62
+ } from "./chunk-M42Y53Z4.js";
63
+ import {
64
+ encodeWorkspaceArchive
65
+ } from "./chunk-3DRXWLJ5.js";
66
66
  import {
67
67
  compareToLive,
68
68
  envValuesOf,
@@ -73,63 +73,63 @@ import {
73
73
  sharedSchemaChanges,
74
74
  storedColumnsAfter,
75
75
  uniqueIndexLabels
76
- } from "./chunk-3X4B5GWY.js";
76
+ } from "./chunk-P3WIMLG2.js";
77
77
  import {
78
78
  assertBundleFile,
79
79
  assertBundleInput,
80
80
  loadBundleText,
81
81
  resolveLockPath
82
- } from "./chunk-5AHHO2QA.js";
82
+ } from "./chunk-ZNGUETV7.js";
83
83
  import {
84
84
  LookupFailedError,
85
85
  isUnansweredLookup,
86
86
  unansweredCause
87
- } from "./chunk-KYQRIL4V.js";
87
+ } from "./chunk-VJCUFHTQ.js";
88
88
  import {
89
89
  isSignatureRefusal
90
- } from "./chunk-GA6HTO3O.js";
90
+ } from "./chunk-EBSJUSID.js";
91
91
  import {
92
92
  getAccessToken
93
- } from "./chunk-K23RUXSH.js";
93
+ } from "./chunk-64F6ET45.js";
94
+ import {
95
+ ephemeralLandedOn
96
+ } from "./chunk-DAXFWXSV.js";
97
+ import {
98
+ seedRowsByTableGuid
99
+ } from "./chunk-LMX4VE4H.js";
94
100
  import {
95
101
  readLockFile
96
102
  } from "./chunk-7ZVQIKNL.js";
97
103
  import {
98
- ephemeralLandedOn
99
- } from "./chunk-WGKKDGSA.js";
104
+ destinationKey,
105
+ groupNames,
106
+ isEphemeralDestinationKey,
107
+ landedIdentities,
108
+ landedKeyForRow,
109
+ storedColumnsOf,
110
+ withStoredColumns
111
+ } from "./chunk-2H5BQRHF.js";
100
112
  import {
101
113
  pipedYes,
102
114
  retryCommand,
103
115
  withheldNote
104
- } from "./chunk-GJZMKMWO.js";
116
+ } from "./chunk-PC7XEO7F.js";
105
117
  import {
106
118
  contextFlags
107
- } from "./chunk-ZYZ7GRX3.js";
119
+ } from "./chunk-4DVP42ZC.js";
108
120
  import {
109
121
  backendDirIn
110
- } from "./chunk-JORPZKBE.js";
122
+ } from "./chunk-N2JZU6VR.js";
111
123
  import {
112
124
  shellWord
113
125
  } from "./chunk-FWD7AL6N.js";
114
- import {
115
- TransportError,
116
- isTimeoutError
117
- } from "./chunk-NH5Z2NOD.js";
118
126
  import {
119
127
  describeWrite
120
128
  } from "./chunk-4KHEMC32.js";
121
129
  import {
122
- seedRowsByTableGuid
123
- } from "./chunk-WGGATSIP.js";
124
- import {
125
- destinationKey,
126
- groupNames,
127
- isEphemeralDestinationKey,
128
- landedIdentities,
129
- landedKeyForRow,
130
- storedColumnsOf,
131
- withStoredColumns
132
- } from "./chunk-2H5BQRHF.js";
130
+ TransportError,
131
+ isTimeoutError
132
+ } from "./chunk-QZ2PC6B7.js";
133
133
  import {
134
134
  CliError,
135
135
  EXIT_OUTCOME_UNKNOWN,
@@ -149,7 +149,7 @@ import {
149
149
  warn,
150
150
  writeJson,
151
151
  writeTargetPayload
152
- } from "./chunk-ZHFSIQ6E.js";
152
+ } from "./chunk-6534P3VH.js";
153
153
  import {
154
154
  calcSignatureJson,
155
155
  signatureHolds
@@ -637,7 +637,7 @@ function isTransientReadFailure(err) {
637
637
  return isUnansweredLookup(err);
638
638
  }
639
639
  async function readLive(auth, dest, branch) {
640
- const { exportWorkspaceBundle } = await import("./workspace-export-3KMWNZDD.js");
640
+ const { exportWorkspaceBundle } = await import("./workspace-export-A4L6272C.js");
641
641
  let failure;
642
642
  for (let attempt = 0; attempt <= LIVE_READ_RETRY_PAUSES_MS.length; attempt++) {
643
643
  try {
@@ -744,7 +744,7 @@ function targetIsEmpty(live) {
744
744
  async function convergedWithLive(live, req, outgoingBundle, pinned) {
745
745
  if (live === void 0 || req.mode !== "merge") return false;
746
746
  if (req.records === true || req.truncate === true) return false;
747
- const { compareToLive: compareToLive2 } = await import("./live-diff-YOFOJCFX.js");
747
+ const { compareToLive: compareToLive2 } = await import("./live-diff-GZ6JUNP6.js");
748
748
  let result;
749
749
  try {
750
750
  result = compareToLive2(
@@ -765,7 +765,7 @@ async function convergedWithLive(live, req, outgoingBundle, pinned) {
765
765
  async function unchangedWithLive(live, req, outgoingBundle, pinned) {
766
766
  if (live === void 0 || req.mode !== "merge") return void 0;
767
767
  if (req.records === true || req.truncate === true) return void 0;
768
- const { compareToLive: compareToLive2, declaredLabels, payloadOf: payloadOf2, SETTINGS_LABEL } = await import("./live-diff-YOFOJCFX.js");
768
+ const { compareToLive: compareToLive2, declaredLabels, payloadOf: payloadOf2, SETTINGS_LABEL } = await import("./live-diff-GZ6JUNP6.js");
769
769
  try {
770
770
  const outgoing = JSON.parse(outgoingBundle);
771
771
  const result = compareToLive2(outgoing, live, new Set(pinned.map((p) => `${p.payloadKey}:${p.name}`)), {
@@ -793,7 +793,7 @@ function markUnchanged(presented, unchanged, noun) {
793
793
  }
794
794
  var REPLACE_DROPS = "which deletes every table's rows there (only seed rows come back)";
795
795
  async function replaceCommandHint(args) {
796
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-MGYR2TKC.js");
796
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-KO5FATR6.js");
797
797
  const valued = /* @__PURE__ */ new Set(["--branch", "--backup-branch", "--expect-live"]);
798
798
  const dropped = /* @__PURE__ */ new Set(["--prune", "--reset-data", "--seed", "--set-live", "--dry-run", "--replace", "--yes", "-y"]);
799
799
  const argv = [];
@@ -824,7 +824,7 @@ function landingTableFields(losses) {
824
824
  };
825
825
  }
826
826
  async function warnAboutLiveLosses(live, req, outgoingBundle, setWhere = "workspace", fromBundle = false, replaceHint = "`xanosdk deploy <source> --to <destination> --replace`.", noun = "workspace", failure, stored) {
827
- const { NO_TABLE_EFFECTS, tableEffectsOf, discloseTableEffects, tableEffectFields, alteringChanges, droppedAndAdded } = await import("./plan-disclosure-XTAEE4BE.js");
827
+ const { NO_TABLE_EFFECTS, tableEffectsOf, discloseTableEffects, tableEffectFields, alteringChanges, droppedAndAdded } = await import("./plan-disclosure-5HM7CMRW.js");
828
828
  const none = {
829
829
  ...tableEffectFields(NO_TABLE_EFFECTS),
830
830
  renamedTables: [],
@@ -843,7 +843,7 @@ async function warnAboutLiveLosses(live, req, outgoingBundle, setWhere = "worksp
843
843
  blank();
844
844
  return none;
845
845
  }
846
- const { diffAgainstLive, tableAdditions } = await import("./live-diff-YOFOJCFX.js");
846
+ const { diffAgainstLive, tableAdditions } = await import("./live-diff-GZ6JUNP6.js");
847
847
  let diff;
848
848
  let additions;
849
849
  try {
@@ -1273,10 +1273,10 @@ function refuseOrReport(args, message, result, details, code = "SDK_SHARED_SCHEM
1273
1273
  return result;
1274
1274
  }
1275
1275
  async function assertWorkspaceUnchanged(args, ctx) {
1276
- const { readSyncBaseline } = await import("./sync-record-AWFCSS4D.js");
1276
+ const { readSyncBaseline } = await import("./sync-record-UFEJDNLR.js");
1277
1277
  const baseline = readSyncBaseline(ctx.lockPath, ctx.target);
1278
1278
  if (baseline === void 0) return [];
1279
- const { directedComparison } = await import("./sync-baseline-LSGKNCKM.js");
1279
+ const { directedComparison } = await import("./sync-baseline-XLRJQZCS.js");
1280
1280
  let compared;
1281
1281
  try {
1282
1282
  compared = directedComparison(
@@ -1609,7 +1609,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
1609
1609
  const held = guidsOf(live);
1610
1610
  const codePinned = codePinnedTables(outgoingDoc, lock, classified);
1611
1611
  const { orphanFixUps } = await import("./cli.js");
1612
- const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-HLIXZC77.js");
1612
+ const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-BNX3HEHM.js");
1613
1613
  const run = (line) => (line ?? "").replace(/^(renamed|deleted)\? run: /, "");
1614
1614
  const out = [];
1615
1615
  const seen = /* @__PURE__ */ new Set();
@@ -1653,7 +1653,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
1653
1653
  return out;
1654
1654
  }
1655
1655
  async function pendingRenameRefusal(frame, pending, prune, branch) {
1656
- const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-HLIXZC77.js");
1656
+ const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-BNX3HEHM.js");
1657
1657
  const one = pending.length === 1;
1658
1658
  const lines = pending.flatMap(
1659
1659
  (p) => pendingRenameLines(
@@ -2109,7 +2109,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2109
2109
  assertBundleFile(args, { command: "deploy" });
2110
2110
  const auth = opts.auth ?? await getAccessToken(args);
2111
2111
  const withSeed = req.mode === "replace" || req.records === true;
2112
- const { discoverToolchainPlugins } = await import("./toolchain-modules-XM4JXHQC.js");
2112
+ const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
2113
2113
  const toolchain = await discoverToolchainPlugins(process.cwd(), { frozen: args.frozenLock === true });
2114
2114
  const loaded = await loadBundleText(
2115
2115
  args.dryRun ? { ...args, lockReadOnly: true } : args,
@@ -2135,15 +2135,15 @@ async function runReleaseCommand(args, dest, opts = {}) {
2135
2135
  });
2136
2136
  };
2137
2137
  if (!args.dryRun && args.file !== void 0) {
2138
- const { ignoreBackendSecretFilesRead } = await import("./deploy-command-MGYR2TKC.js");
2138
+ const { ignoreBackendSecretFilesRead } = await import("./deploy-command-KO5FATR6.js");
2139
2139
  await ignoreBackendSecretFilesRead(args);
2140
2140
  }
2141
2141
  if (args.static !== void 0) {
2142
- const { assertNoSeedLeaks } = await import("./deploy-command-MGYR2TKC.js");
2142
+ const { assertNoSeedLeaks } = await import("./deploy-command-KO5FATR6.js");
2143
2143
  await assertNoSeedLeaks(args.static, nonPublicSeedValues);
2144
2144
  }
2145
2145
  {
2146
- const { runBundleHooks } = await import("./toolchain-hooks-IJWV3ZQS.js");
2146
+ const { runBundleHooks } = await import("./toolchain-hooks-IRPM6LYL.js");
2147
2147
  const { readVersion } = await import("./cli.js");
2148
2148
  await runBundleHooks(
2149
2149
  toolchain.loaded,
@@ -2249,8 +2249,8 @@ async function runReleaseCommand(args, dest, opts = {}) {
2249
2249
  pinned: pinned.map((p) => p.guid).filter((g) => g !== void 0)
2250
2250
  }).catch(async (err) => {
2251
2251
  if (err instanceof XanoSdkImportRefusal && err.retryable) {
2252
- const { importInProgressError } = await import("./keep-data-merge-HLIXZC77.js");
2253
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2252
+ const { importInProgressError } = await import("./keep-data-merge-BNX3HEHM.js");
2253
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2254
2254
  const retry = retryCommand2(args);
2255
2255
  throw importInProgressError(
2256
2256
  describeWriteTarget({ base: destBase, workspaceId, label: destShownLabel }),
@@ -2384,10 +2384,10 @@ async function runReleaseCommand(args, dest, opts = {}) {
2384
2384
  });
2385
2385
  })() : [];
2386
2386
  if (req.mode === "merge" && destIsTenant && live !== void 0 && !dryRunUpToDate) {
2387
- const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-HLIXZC77.js");
2387
+ const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-BNX3HEHM.js");
2388
2388
  const triggers = liveTableTriggers(live);
2389
2389
  if (triggers.length > 0) {
2390
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2390
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2391
2391
  const replace = retryCommand2(args, { add: ["--replace"], drop: ["--prune", "--yes", "-y"] });
2392
2392
  throw tableTriggerMergeError(destNoun, triggers, {
2393
2393
  command: replace.command,
@@ -2396,7 +2396,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2396
2396
  }
2397
2397
  }
2398
2398
  if (req.mode === "merge" && live !== void 0 && !dryRunUpToDate && losses.storageChanges.length > 0) {
2399
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2399
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2400
2400
  const replace = retryCommand2(args, { add: ["--replace"], drop: ["--prune", "--yes", "-y"] });
2401
2401
  await assertStorageModesKept(losses.storageChanges, tableRowCounter(auth, { workspaceId, base: destBase }), {
2402
2402
  target: destNoun,
@@ -2483,7 +2483,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2483
2483
  assertLiveWorkspaceWasRead(live, destNoun, scopeBranch, liveRead.failure, liveKind);
2484
2484
  reportPlannedCanonicalMoves(canonicalMoves, "will", movesWhen);
2485
2485
  if (req.branch !== void 0 && args.setLive && !args.yes && process.stdin.isTTY !== true) {
2486
- const { yesRerun } = await import("./retry-command-WP4ZI6CJ.js");
2486
+ const { yesRerun } = await import("./retry-command-HG4IFE65.js");
2487
2487
  const { rerun, note } = yesRerun(args, "deploy");
2488
2488
  throw needsConfirmation(
2489
2489
  `Make "${req.branch}" the live branch?${movesClause(canonicalMoves)} (or drop --set-live to stage it)`,
@@ -2523,7 +2523,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2523
2523
  syncBaseline: null,
2524
2524
  ...seeded.length > 0 ? { seedRows: seeded } : {}
2525
2525
  });
2526
- const { yesRerun } = await import("./retry-command-WP4ZI6CJ.js");
2526
+ const { yesRerun } = await import("./retry-command-HG4IFE65.js");
2527
2527
  const { rerun, note } = yesRerun(args, "deploy");
2528
2528
  const ok = await confirm(`Apply this plan to ${destNoun}?${seedOverwriteClause(seeded)}${movesClause(canonicalMoves, movesWhen === void 0 ? "It" : "Once live, it")}`, {
2529
2529
  flag: "--yes",
@@ -2570,7 +2570,7 @@ Retry, or drop \`--backup-branch\` to deploy without one.`,
2570
2570
  );
2571
2571
  } catch (err) {
2572
2572
  if (err instanceof XanoSdkImportRefusal) {
2573
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2573
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2574
2574
  const retry = retryCommand2(args);
2575
2575
  reportApplyRefusal(
2576
2576
  err,
@@ -2767,7 +2767,7 @@ Retry, or drop \`--backup-branch\` to deploy without one.`,
2767
2767
  if (isMachineOutput(args)) writeJson(summary);
2768
2768
  assertStaticMatchesServedUrls(servedDifferences, planContext);
2769
2769
  }
2770
- const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-MGYR2TKC.js");
2770
+ const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-KO5FATR6.js");
2771
2771
  const env = buildStaticEnv(destBase, args.staticEnv);
2772
2772
  const explicit = Object.keys(args.staticEnv).length > 0;
2773
2773
  const to = dest?.kind === "tenant" ? `${dest.type === "ephemeral" ? "ephemeral" : "tenant"}:${dest.name ?? ""}` : "workspace";
@@ -2819,14 +2819,14 @@ function setLiveRollback(previous, args) {
2819
2819
  async function assertReleaseIdentitiesFree(args, auth, opts) {
2820
2820
  const tenant = opts.tenant;
2821
2821
  const target = tenant === void 0 ? { baseUrl: auth.instance, workspaceId: auth.workspaceId } : { baseUrl: tenant.base, workspaceId: tenant.workspaceId };
2822
- const { detectXanoSdkImportRoute } = await import("./xanosdk-import-VOJEAK5Q.js");
2822
+ const { detectXanoSdkImportRoute } = await import("./xanosdk-import-L3ZZIT6I.js");
2823
2823
  let capable;
2824
2824
  try {
2825
2825
  capable = await detectXanoSdkImportRoute(auth, target);
2826
2826
  } catch (err) {
2827
2827
  if (err?.status === 501) capable = false;
2828
2828
  else {
2829
- const { unreachableProbeError } = await import("./keep-data-merge-HLIXZC77.js");
2829
+ const { unreachableProbeError } = await import("./keep-data-merge-BNX3HEHM.js");
2830
2830
  const retry = retryCommand(args, {
2831
2831
  add: pipedYes(args) === "" ? [] : ["--yes"],
2832
2832
  command: [opts.verb, ...args.positionals.map(shellWord)].join(" ")
@@ -2915,4 +2915,4 @@ export {
2915
2915
  setLiveRollback,
2916
2916
  assertReleaseIdentitiesFree
2917
2917
  };
2918
- //# sourceMappingURL=chunk-B6ZHSM2D.js.map
2918
+ //# sourceMappingURL=chunk-HXVNBJVA.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  impersonateEphemeral,
6
6
  projectTenant
7
- } from "./chunk-7UQZ7C4W.js";
7
+ } from "./chunk-745NOWB7.js";
8
8
  import {
9
9
  deleteAnswer,
10
10
  hasString,
@@ -12,7 +12,7 @@ import {
12
12
  listAnswer,
13
13
  recordAnswer,
14
14
  writeTransportFailure
15
- } from "./chunk-SINL5WMI.js";
15
+ } from "./chunk-4Y3SWNPE.js";
16
16
  import {
17
17
  SENT_AFTERMATH,
18
18
  fetchOrExplain,
@@ -20,7 +20,7 @@ import {
20
20
  readBodyText,
21
21
  safeHttpFailure,
22
22
  writeStatusAftermath
23
- } from "./chunk-NH5Z2NOD.js";
23
+ } from "./chunk-QZ2PC6B7.js";
24
24
 
25
25
  // src/deploy/tenant.ts
26
26
  var TIMEOUT_MS = 3e4;
@@ -219,4 +219,4 @@ export {
219
219
  deleteTenant,
220
220
  impersonateTenant
221
221
  };
222
- //# sourceMappingURL=chunk-G2XSDIYS.js.map
222
+ //# sourceMappingURL=chunk-I52AKG2O.js.map
@@ -1,28 +1,30 @@
1
+ import {
2
+ readPin
3
+ } from "./chunk-5KSVMHFS.js";
1
4
  import {
2
5
  listOverrideEntries,
3
6
  listReleaseEntries,
4
7
  readEngineEntry,
5
- readPin,
6
8
  verifiedEngineExecutable
7
- } from "./chunk-6FCAFWD5.js";
9
+ } from "./chunk-VO62TKK5.js";
8
10
  import {
9
11
  clearEngineRecordsNamed,
10
12
  listEngineRecords
11
- } from "./chunk-5Y5HWQ2P.js";
13
+ } from "./chunk-MKRREVNB.js";
12
14
  import {
13
15
  engineCacheDir,
14
16
  engineRunHome,
15
17
  localEngineHome
16
- } from "./chunk-F3IA3YWI.js";
18
+ } from "./chunk-FVZ5C3PF.js";
17
19
  import {
18
20
  assertLoopbackUrl,
19
21
  parseEngineHandshake,
20
22
  parseEngineListing
21
- } from "./chunk-LCOCRJ4K.js";
23
+ } from "./chunk-RQGSZ7AR.js";
22
24
  import {
23
25
  fetchOrExplain,
24
26
  httpFailureError
25
- } from "./chunk-NH5Z2NOD.js";
27
+ } from "./chunk-QZ2PC6B7.js";
26
28
 
27
29
  // src/deploy/local-engine-process.ts
28
30
  import { spawn as nodeSpawn, spawnSync } from "child_process";
@@ -52,9 +54,11 @@ var defaultRun = (executable, args, options) => {
52
54
  };
53
55
  };
54
56
  function redactSecrets(text) {
55
- return text.replace(/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*/g, "[redacted]").replace(/(\bkey=)[^&\s"']+/gi, "$1[redacted]").replace(/(\bBearer\s+)\S+/gi, "$1[redacted]");
57
+ return text.replace(/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*/g, "[redacted]").replace(/\bxai_[A-Za-z0-9_-]+/g, "[redacted]").replace(/(\bkey=)[^&\s"']+/gi, "$1[redacted]").replace(/(\bBearer\s+)\S+/gi, "$1[redacted]");
56
58
  }
57
- function engineChildEnv(env = process.env) {
59
+ var ENGINE_AI_TOKEN_FILE_ENV = "XANO_AI_GATEWAY_TOKEN_FILE";
60
+ var ENGINE_AI_GATEWAY_URL_ENV = "XANO_AI_GATEWAY_URL";
61
+ function engineChildEnv(env = process.env, ai) {
58
62
  const built = {};
59
63
  for (const key of ENGINE_ENV_ALLOWLIST) {
60
64
  const value = env[key];
@@ -62,6 +66,10 @@ function engineChildEnv(env = process.env) {
62
66
  }
63
67
  built.PATH = env.PATH ?? "";
64
68
  built.HOME = engineRunHome(env);
69
+ if (ai !== void 0) {
70
+ built[ENGINE_AI_TOKEN_FILE_ENV] = ai.tokenFile;
71
+ if (ai.gatewayUrl !== void 0) built[ENGINE_AI_GATEWAY_URL_ENV] = ai.gatewayUrl;
72
+ }
65
73
  return built;
66
74
  }
67
75
  function engineLogPath(name, env = process.env) {
@@ -80,11 +88,17 @@ function engineOwnLogs(env = process.env) {
80
88
  }
81
89
  var FIRST_TTL_RELEASE = [0, 1, 15];
82
90
  function engineExpiresEphemerals(version) {
83
- const parts = /^v?(\d+)\.(\d+)\.(\d+)/.exec(version?.trim() ?? "")?.slice(1).map(Number);
91
+ const parts = releaseParts(version);
84
92
  if (parts === void 0) return false;
85
93
  for (let i = 0; i < 3; i++) if (parts[i] !== FIRST_TTL_RELEASE[i]) return parts[i] > FIRST_TTL_RELEASE[i];
86
94
  return true;
87
95
  }
96
+ function engineRunsUntilStopped(version) {
97
+ return releaseParts(version) !== void 0;
98
+ }
99
+ function releaseParts(version) {
100
+ return /^v?(\d+)\.(\d+)\.(\d+)/.exec(version?.trim() ?? "")?.slice(1).map(Number);
101
+ }
88
102
  async function startEngine(opts) {
89
103
  const env = opts.env ?? process.env;
90
104
  const spawn = opts.spawn ?? defaultSpawn;
@@ -119,7 +133,7 @@ async function startEngine(opts) {
119
133
  // stdin ignored: nothing here answers a prompt, and an inherited stdin is
120
134
  // a detached process competing with the CLI for the terminal.
121
135
  stdio: ["ignore", "pipe", "pipe"],
122
- env: engineChildEnv(env)
136
+ env: engineChildEnv(env, opts.ai)
123
137
  }
124
138
  );
125
139
  return new Promise((resolve, reject) => {
@@ -413,10 +427,13 @@ export {
413
427
  HANDSHAKE_TIMEOUT_MS,
414
428
  MAX_HANDSHAKE_BYTES,
415
429
  ENGINE_ENV_ALLOWLIST,
430
+ ENGINE_AI_TOKEN_FILE_ENV,
431
+ ENGINE_AI_GATEWAY_URL_ENV,
416
432
  engineChildEnv,
417
433
  engineLogPath,
418
434
  engineOwnLogs,
419
435
  engineExpiresEphemerals,
436
+ engineRunsUntilStopped,
420
437
  startEngine,
421
438
  bootFailure,
422
439
  cachedEngineEntry,
@@ -432,4 +449,4 @@ export {
432
449
  findOrphanedEngineProcesses,
433
450
  stopOrphanedEngineProcesses
434
451
  };
435
- //# sourceMappingURL=chunk-VCFRALU7.js.map
452
+ //# sourceMappingURL=chunk-I5YD7QPI.js.map
@@ -3,11 +3,11 @@ import {
3
3
  reachableLines,
4
4
  readReachableWorkspaces,
5
5
  workspaceIdFix
6
- } from "./chunk-QK2WIASY.js";
6
+ } from "./chunk-N3LPULRE.js";
7
7
  import {
8
8
  credentialRejected,
9
9
  getAccessToken
10
- } from "./chunk-K23RUXSH.js";
10
+ } from "./chunk-64F6ET45.js";
11
11
  import {
12
12
  CREDENTIAL_FILE_VERSION,
13
13
  DEFAULT_AUTH_HOST,
@@ -19,16 +19,16 @@ import {
19
19
  loginCommand,
20
20
  readCredentialFile,
21
21
  resolveAuthFilePath
22
- } from "./chunk-AJBOGO5U.js";
22
+ } from "./chunk-OQMXCNN7.js";
23
23
  import {
24
24
  fetchOrExplain,
25
25
  httpFailure,
26
26
  parseJsonAnswer
27
- } from "./chunk-NH5Z2NOD.js";
27
+ } from "./chunk-QZ2PC6B7.js";
28
28
  import {
29
29
  profileSourceLabel,
30
30
  selectionDocument
31
- } from "./chunk-MF4W6FHU.js";
31
+ } from "./chunk-Q4R2ABFL.js";
32
32
  import {
33
33
  formatFields,
34
34
  isMachineOutput,
@@ -36,7 +36,7 @@ import {
36
36
  stdoutStyle,
37
37
  warn,
38
38
  writeJson
39
- } from "./chunk-ZHFSIQ6E.js";
39
+ } from "./chunk-6534P3VH.js";
40
40
  import {
41
41
  shellQuote
42
42
  } from "./chunk-5ZSO4T2G.js";
@@ -183,7 +183,7 @@ function prettyProfile(p) {
183
183
  }
184
184
  async function runWhoamiCommand(args) {
185
185
  const profile = await fetchProfile(args).catch(async (err) => {
186
- const { unansweredRead } = await import("./source-resolve-PMA7SHZE.js");
186
+ const { unansweredRead } = await import("./source-resolve-GGRHO6NW.js");
187
187
  throw unansweredRead(err, "read the signed-in user", "workspace");
188
188
  });
189
189
  if (isMachineOutput(args)) {
@@ -203,4 +203,4 @@ export {
203
203
  profileValue,
204
204
  runWhoamiCommand
205
205
  };
206
- //# sourceMappingURL=chunk-ASUDP4OS.js.map
206
+ //# sourceMappingURL=chunk-IA4FMPJ3.js.map
@@ -1,17 +1,22 @@
1
+ import {
2
+ asRecord,
3
+ asString,
4
+ asStringArray
5
+ } from "./chunk-37BT62SX.js";
6
+ import {
7
+ localPackageName,
8
+ packageNameOf
9
+ } from "./chunk-DORGB2Y2.js";
1
10
  import {
2
11
  declaredDependencies,
3
12
  readProjectManifest,
4
13
  readToolchainBlock
5
- } from "./chunk-DXUICABI.js";
14
+ } from "./chunk-LZDH5COS.js";
6
15
  import {
7
16
  parseJsonAnswer,
8
17
  serverMessage,
9
18
  statusLabel
10
- } from "./chunk-NH5Z2NOD.js";
11
- import {
12
- localPackageName,
13
- packageNameOf
14
- } from "./chunk-XDGLYIB2.js";
19
+ } from "./chunk-QZ2PC6B7.js";
15
20
  import {
16
21
  readEnvVar
17
22
  } from "./chunk-X2NL4KUO.js";
@@ -19,7 +24,7 @@ import {
19
24
  CliError,
20
25
  EXIT_SOURCE_UNRESOLVABLE,
21
26
  info
22
- } from "./chunk-ZHFSIQ6E.js";
27
+ } from "./chunk-6534P3VH.js";
23
28
  import {
24
29
  suggest
25
30
  } from "./chunk-UTI5G6OJ.js";
@@ -30,18 +35,9 @@ var CATALOGUE_TIMEOUT_MS = 3e4;
30
35
  function baseUrl() {
31
36
  return readEnvVar("XANOSDK_MARKETPLACE_URL") ?? DEFAULT_BASE_URL;
32
37
  }
33
- function asString(v) {
34
- return typeof v === "string" && v !== "" ? v : void 0;
35
- }
36
- function asStringArray(v) {
37
- return Array.isArray(v) ? v.filter((x) => typeof x === "string" && x !== "") : [];
38
- }
39
38
  function asBoolean(v) {
40
39
  return typeof v === "boolean" ? v : void 0;
41
40
  }
42
- function asRecord(v) {
43
- return typeof v === "object" && v !== null && !Array.isArray(v) ? v : void 0;
44
- }
45
41
  function projectRow(raw) {
46
42
  return {
47
43
  id: typeof raw.id === "number" ? raw.id : void 0,
@@ -359,7 +355,7 @@ async function unlistedModuleError(command, name) {
359
355
  }
360
356
  async function withCatalogueRerun(err, args, command) {
361
357
  if (!isCatalogueOutage(err)) return err;
362
- const { retryCommand } = await import("./retry-command-WP4ZI6CJ.js");
358
+ const { retryCommand } = await import("./retry-command-HG4IFE65.js");
363
359
  const rerun = retryCommand(args, { command }).command;
364
360
  return new CliError("SDK_ERROR", `${err.message}
365
361
  Run \`${rerun}\` again once it answers.`, {
@@ -386,4 +382,4 @@ export {
386
382
  unlistedModuleError,
387
383
  withCatalogueRerun
388
384
  };
389
- //# sourceMappingURL=chunk-YYBBJPCL.js.map
385
+ //# sourceMappingURL=chunk-IUBGFCJJ.js.map