@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
package/CHANGELOG.md CHANGED
@@ -8,6 +8,34 @@ one release and links to its full notes.
8
8
 
9
9
  ---
10
10
 
11
+ ## 1.0.20 — Xano AI in the SDK
12
+
13
+ _2026-11-11_ · [release notes](https://github.com/xano-sdk/sdk/releases/tag/v1.0.20)
14
+
15
+ This release brings Xano AI to the SDK. You can author the eight AI statements, run agents on Xano AI, and set where those models run, at the statement, agent or workspace level. Xano AI also works on a local Xano Engine with no key to copy. A new `ai models` command shows the current models, so an agent can pick one without waiting for an SDK release. It also fixes preflight against Xano Cloud's new table audit blocks.
16
+
17
+ - The eight Xano AI statements are authorable under `s.ai`
18
+ - Model fields accept any model and autocomplete the known ones
19
+ - `xanosdk ai models` prints the live Xano AI catalog
20
+ - Agents can run on Xano AI with a chosen model and location
21
+ - Set the workspace's Xano AI location in code
22
+ - Xano AI works on the local Xano Engine with no key to copy
23
+ - Preflight ignores Xano Cloud's default table audit blocks
24
+ - A downloaded Xano Engine names its license once
25
+
26
+ ---
27
+
28
+ ## 1.0.19 — Agentic signup paused
29
+
30
+ _2026-11-02_ · [release notes](https://github.com/xano-sdk/sdk/releases/tag/v1.0.19)
31
+
32
+ This release pauses the agentic signup flow. When nothing is signed in, the CLI, `status` and the agent docs go back to pointing at `xanosdk login`, a stored meta API token, or the CI environment variables. The removal is temporary.
33
+
34
+ - Agentic signup is paused
35
+ - ⚠️ `status` drops `agentSignup` and `suggest`
36
+
37
+ ---
38
+
11
39
  ## 1.0.18 — Preflight reads the default mesh0 block
12
40
 
13
41
  _2026-10-30_ · [release notes](https://github.com/xano-sdk/sdk/releases/tag/v1.0.18)
package/README.md CHANGED
@@ -179,6 +179,9 @@ brings one up and deploys into it; it is where a deploy goes by default.
179
179
  `impersonate` and `status` target the engine without a flag, and with no account.
180
180
  - **An MCP server for your agent.** `init` connects Claude Code and Cursor to it: they read tables and
181
181
  rows, seed data, and run functions and tests. Code still changes in `xano/` and ships with a deploy.
182
+ - **Xano AI, from your sign-in.** Signed in with `xanosdk login`, each deploy gives the engine's agents a
183
+ Xano AI credential that lasts as long as the engine (a day at most), billed to you (`--ai-billing instance`: the instance owner). Signed out,
184
+ the deploy still works and says how to turn Xano AI on.
182
185
 
183
186
  ```bash
184
187
  npx @xano/sdk local list # the engines running on this machine
@@ -248,8 +251,8 @@ export default workspace("blog")
248
251
  ```
249
252
 
250
253
  Tab-complete `s.` to discover the entire statement catalog: `s.db.*`, `s.math.*`,
251
- `s.array.*`, `s.text.*`, `s.storage.*`, `s.api.*`, `s.cloud.*`, control flow, AI agent runs,
252
- and more. **All 219 engine statement surfaces are authorable**: every field name matches
254
+ `s.array.*`, `s.text.*`, `s.storage.*`, `s.api.*`, `s.cloud.*`, control flow, Xano AI
255
+ (`s.ai.text.generate`, image, video, speech, embeddings, rerank), AI agent runs, and more. **All 227 engine statement surfaces are authorable**: every field name matches
253
256
  the Xano engine, and the emitted shape is checked against bytes a real engine stored. Where
254
257
  a surface has no stored instance behind it, it is built from the engine's own schema;
255
258
  [Coverage](https://github.com/xano-sdk/sdk/blob/main/guides/coverage.md) says which is which.
@@ -3,26 +3,28 @@ import {
3
3
  codingAgentDetected,
4
4
  isCI,
5
5
  refreshAgentFiles
6
- } from "./chunk-XKHQLKUL.js";
7
- import "./chunk-554FJWNH.js";
8
- import "./chunk-GTB7JL3M.js";
9
- import "./chunk-XAE4NIZ2.js";
6
+ } from "./chunk-X7EK5PTK.js";
7
+ import "./chunk-T2LFOMOP.js";
8
+ import "./chunk-QZXSPUNS.js";
9
+ import "./chunk-7J7YRAZB.js";
10
10
  import "./chunk-ZFDZKNGG.js";
11
11
  import "./chunk-FWD7AL6N.js";
12
- import "./chunk-YYBBJPCL.js";
13
- import "./chunk-DXUICABI.js";
14
- import "./chunk-NH5Z2NOD.js";
12
+ import "./chunk-IUBGFCJJ.js";
13
+ import "./chunk-37BT62SX.js";
15
14
  import "./chunk-4KHEMC32.js";
16
15
  import "./chunk-DNBP4GJN.js";
17
- import "./chunk-XDGLYIB2.js";
16
+ import "./chunk-DORGB2Y2.js";
18
17
  import "./chunk-WAVNUTMT.js";
18
+ import "./chunk-LZDH5COS.js";
19
19
  import "./chunk-LLNZGEFK.js";
20
- import "./chunk-MF4W6FHU.js";
20
+ import "./chunk-4Y3SWNPE.js";
21
+ import "./chunk-QZ2PC6B7.js";
22
+ import "./chunk-Q4R2ABFL.js";
21
23
  import "./chunk-X2NL4KUO.js";
22
24
  import "./chunk-6ODQ5GDZ.js";
23
25
  import "./chunk-RHH6SCB4.js";
24
26
  import "./chunk-LJM5CIY4.js";
25
- import "./chunk-ZHFSIQ6E.js";
27
+ import "./chunk-6534P3VH.js";
26
28
  import "./chunk-FMXPV5JI.js";
27
29
  import "./chunk-UTI5G6OJ.js";
28
30
  import "./chunk-5ZSO4T2G.js";
@@ -36,4 +38,4 @@ export {
36
38
  isCI,
37
39
  refreshAgentFiles
38
40
  };
39
- //# sourceMappingURL=agent-file-refresh-5IP25UYO.js.map
41
+ //# sourceMappingURL=agent-file-refresh-5R5ALFEV.js.map
@@ -1,64 +1,65 @@
1
1
  import {
2
2
  readVersion
3
- } from "./chunk-5AHHO2QA.js";
4
- import "./chunk-PRSNMSVG.js";
5
- import "./chunk-WDWIXCGB.js";
6
- import "./chunk-NYIFU3BR.js";
7
- import "./chunk-MOVRSULZ.js";
8
- import "./chunk-KYQRIL4V.js";
9
- import "./chunk-UH5VQGNR.js";
10
- import "./chunk-Q45RTKWW.js";
11
- import "./chunk-GA6HTO3O.js";
12
- import "./chunk-K23RUXSH.js";
13
- import "./chunk-JUCL5MUZ.js";
14
- import "./chunk-5Y5HWQ2P.js";
15
- import "./chunk-F3IA3YWI.js";
16
- import "./chunk-LCOCRJ4K.js";
17
- import "./chunk-OTQF4B37.js";
18
- import "./chunk-G2XSDIYS.js";
3
+ } from "./chunk-ZNGUETV7.js";
4
+ import "./chunk-ZCXWOGFL.js";
5
+ import "./chunk-FJS5I6V4.js";
6
+ import "./chunk-XWEDFVJ6.js";
7
+ import "./chunk-5Z4WQQHC.js";
8
+ import "./chunk-VJCUFHTQ.js";
9
+ import "./chunk-JXX2QXPP.js";
10
+ import "./chunk-6TAYTKFM.js";
11
+ import "./chunk-OZVZ3KCH.js";
12
+ import "./chunk-I52AKG2O.js";
19
13
  import "./chunk-2MNLRIOX.js";
20
- import "./chunk-7UQZ7C4W.js";
21
- import "./chunk-7ZVQIKNL.js";
22
- import "./chunk-XKHQLKUL.js";
23
- import "./chunk-V2MIBJZU.js";
24
- import "./chunk-5JUWB6XL.js";
25
- import "./chunk-WGKKDGSA.js";
14
+ import "./chunk-745NOWB7.js";
15
+ import "./chunk-EBSJUSID.js";
16
+ import "./chunk-64F6ET45.js";
17
+ import "./chunk-PAWLPNBA.js";
18
+ import "./chunk-DAXFWXSV.js";
19
+ import "./chunk-MKRREVNB.js";
26
20
  import "./chunk-ZYJP6BOO.js";
21
+ import "./chunk-FVZ5C3PF.js";
22
+ import "./chunk-RQGSZ7AR.js";
23
+ import "./chunk-LMX4VE4H.js";
24
+ import "./chunk-7ZVQIKNL.js";
25
+ import "./chunk-2H5BQRHF.js";
26
+ import "./chunk-X7EK5PTK.js";
27
+ import "./chunk-CGLYG2VF.js";
28
+ import "./chunk-WXY24GKO.js";
27
29
  import "./chunk-QO6BVGS5.js";
28
- import "./chunk-YYDM4DNP.js";
29
- import "./chunk-SINL5WMI.js";
30
- import "./chunk-GJZMKMWO.js";
30
+ import "./chunk-TDSRZDQP.js";
31
+ import "./chunk-PC7XEO7F.js";
31
32
  import "./chunk-622HUCZT.js";
32
- import "./chunk-ZYZ7GRX3.js";
33
- import "./chunk-AJBOGO5U.js";
33
+ import "./chunk-4DVP42ZC.js";
34
+ import "./chunk-OQMXCNN7.js";
34
35
  import {
35
36
  expandHome
36
37
  } from "./chunk-EUUUMY7J.js";
37
- import "./chunk-JORPZKBE.js";
38
+ import "./chunk-5ABAIJVV.js";
39
+ import "./chunk-4GPIOIAC.js";
40
+ import "./chunk-N2JZU6VR.js";
38
41
  import {
39
42
  AGENT_RULE_BACKENDS
40
- } from "./chunk-554FJWNH.js";
41
- import "./chunk-GTB7JL3M.js";
42
- import "./chunk-XAE4NIZ2.js";
43
+ } from "./chunk-T2LFOMOP.js";
44
+ import "./chunk-QZXSPUNS.js";
45
+ import "./chunk-HU7F56VF.js";
46
+ import "./chunk-7J7YRAZB.js";
43
47
  import "./chunk-ZFDZKNGG.js";
44
48
  import "./chunk-FWD7AL6N.js";
45
- import "./chunk-YYBBJPCL.js";
46
- import "./chunk-DXUICABI.js";
47
- import "./chunk-NH5Z2NOD.js";
49
+ import "./chunk-IUBGFCJJ.js";
50
+ import "./chunk-37BT62SX.js";
48
51
  import "./chunk-4KHEMC32.js";
49
- import "./chunk-WGGATSIP.js";
50
- import "./chunk-2H5BQRHF.js";
51
52
  import "./chunk-DNBP4GJN.js";
52
- import "./chunk-XDGLYIB2.js";
53
+ import "./chunk-DORGB2Y2.js";
53
54
  import "./chunk-WAVNUTMT.js";
54
- import "./chunk-IFHFJR5O.js";
55
+ import "./chunk-LZDH5COS.js";
55
56
  import "./chunk-LLNZGEFK.js";
56
- import "./chunk-HU7F56VF.js";
57
- import "./chunk-MF4W6FHU.js";
57
+ import "./chunk-4Y3SWNPE.js";
58
+ import "./chunk-QZ2PC6B7.js";
59
+ import "./chunk-Q4R2ABFL.js";
58
60
  import {
59
61
  readEnvVar
60
62
  } from "./chunk-X2NL4KUO.js";
61
- import "./chunk-4GPIOIAC.js";
62
63
  import "./chunk-6ODQ5GDZ.js";
63
64
  import "./chunk-RHH6SCB4.js";
64
65
  import "./chunk-LJM5CIY4.js";
@@ -70,17 +71,18 @@ import {
70
71
  success,
71
72
  unknownSubcommand,
72
73
  writeJson
73
- } from "./chunk-ZHFSIQ6E.js";
74
- import "./chunk-Q4LJCCH5.js";
74
+ } from "./chunk-6534P3VH.js";
75
+ import "./chunk-MGC5S6OE.js";
75
76
  import "./chunk-52QAENY6.js";
76
- import "./chunk-RKTVXFBV.js";
77
- import "./chunk-O2BLNQEC.js";
77
+ import "./chunk-GUHJV7C5.js";
78
+ import "./chunk-EME5G4YP.js";
78
79
  import "./chunk-TPUAXIPR.js";
79
80
  import "./chunk-QDPY7RN3.js";
80
- import "./chunk-Z73I7Q2H.js";
81
+ import "./chunk-CJ5WRCVE.js";
81
82
  import "./chunk-4EVDCSEY.js";
82
83
  import "./chunk-RLQX6LHW.js";
83
84
  import "./chunk-U56HK2RG.js";
85
+ import "./chunk-6SXKKDGF.js";
84
86
  import "./chunk-WAP5362D.js";
85
87
  import "./chunk-GSGDWJB5.js";
86
88
  import "./chunk-FSHW3GQU.js";
@@ -408,4 +410,4 @@ function report(verb, outcomes, args) {
408
410
  export {
409
411
  runAgentSkillCommand
410
412
  };
411
- //# sourceMappingURL=agent-skill-command-BPM4S6C7.js.map
413
+ //# sourceMappingURL=agent-skill-command-JBX7Z6AK.js.map
@@ -0,0 +1,270 @@
1
+ import {
2
+ environmentCredentialVars
3
+ } from "./chunk-64F6ET45.js";
4
+ import "./chunk-DAXFWXSV.js";
5
+ import "./chunk-ZYJP6BOO.js";
6
+ import "./chunk-2H5BQRHF.js";
7
+ import "./chunk-QO6BVGS5.js";
8
+ import "./chunk-TDSRZDQP.js";
9
+ import {
10
+ DEFAULT_AUTH_HOST,
11
+ readCredentialFile,
12
+ readProfile,
13
+ resolveAuthFilePath
14
+ } from "./chunk-OQMXCNN7.js";
15
+ import "./chunk-EUUUMY7J.js";
16
+ import {
17
+ findProjectPointer
18
+ } from "./chunk-5ABAIJVV.js";
19
+ import "./chunk-4GPIOIAC.js";
20
+ import "./chunk-HU7F56VF.js";
21
+ import "./chunk-FWD7AL6N.js";
22
+ import {
23
+ asRecord,
24
+ asString,
25
+ asStringArray
26
+ } from "./chunk-37BT62SX.js";
27
+ import "./chunk-LLNZGEFK.js";
28
+ import {
29
+ parseJsonAnswer,
30
+ serverMessage,
31
+ statusLabel
32
+ } from "./chunk-QZ2PC6B7.js";
33
+ import {
34
+ resolveActiveProfile
35
+ } from "./chunk-Q4R2ABFL.js";
36
+ import {
37
+ readEnvVar
38
+ } from "./chunk-X2NL4KUO.js";
39
+ import {
40
+ CliError,
41
+ EXIT_SOURCE_UNRESOLVABLE,
42
+ isMachineOutput,
43
+ printHuman,
44
+ safeText,
45
+ stdoutStyle,
46
+ unknownSubcommand,
47
+ writeJson
48
+ } from "./chunk-6534P3VH.js";
49
+ import {
50
+ AI_STATEMENTS
51
+ } from "./chunk-6SXKKDGF.js";
52
+ import "./chunk-FMXPV5JI.js";
53
+ import "./chunk-UTI5G6OJ.js";
54
+ import "./chunk-VQDVEHDB.js";
55
+ import "./chunk-5ZSO4T2G.js";
56
+ import "./chunk-VQPDATQT.js";
57
+ import "./chunk-TFFGOFVZ.js";
58
+ import "./chunk-FTS42N37.js";
59
+ import "./chunk-4BW2SG2N.js";
60
+ import "./chunk-SGEOXJIH.js";
61
+ import "./chunk-OHX6MIUZ.js";
62
+ import "./chunk-36JUQZVQ.js";
63
+ import "./chunk-PZ5AY32C.js";
64
+
65
+ // src/emit/ai-catalog.ts
66
+ var AI_CATALOG_PATH = "/api:xano-ai/catalog";
67
+ var AI_CATALOG_URL_ENV = "XANOSDK_AI_CATALOG_URL";
68
+ var AI_CATALOG_TIMEOUT_MS = 3e4;
69
+ var AI_CATALOG_VERSION = 1;
70
+ function resolveAiCatalogHost(savedAuthHost) {
71
+ return (readEnvVar(AI_CATALOG_URL_ENV) ?? savedAuthHost ?? DEFAULT_AUTH_HOST).replace(/\/+$/, "");
72
+ }
73
+ function failure(state, host, message, exitCode, cause) {
74
+ return new CliError("SDK_ERROR", message, { details: { state, host }, exitCode, cause });
75
+ }
76
+ function projectEntry(raw) {
77
+ const model = asString(raw.model);
78
+ if (model === void 0) return void 0;
79
+ return {
80
+ model,
81
+ label: asString(raw.label) ?? model,
82
+ tier: asString(raw.tier) ?? "",
83
+ stage: asString(raw.stage) ?? "",
84
+ suggested: raw.suggested === true,
85
+ // Absent reads as listed: an unlisted entry is one the host marked so.
86
+ listed: raw.listed !== false,
87
+ price: asString(raw.price) ?? "",
88
+ location: asString(raw.location) ?? "",
89
+ locations: asStringArray(raw.locations),
90
+ options: { ...asRecord(raw.options) ?? {} }
91
+ };
92
+ }
93
+ function projectEntries(v) {
94
+ if (!Array.isArray(v)) return [];
95
+ return v.flatMap((e) => {
96
+ const rec = asRecord(e);
97
+ const entry = rec === void 0 ? void 0 : projectEntry(rec);
98
+ return entry === void 0 ? [] : [entry];
99
+ });
100
+ }
101
+ function projectAiCatalog(body) {
102
+ const raw = asRecord(body) ?? {};
103
+ const statements = asRecord(raw.statements) ?? {};
104
+ const agent = asRecord(raw.agent) ?? {};
105
+ return {
106
+ version: typeof raw.version === "number" ? raw.version : 1,
107
+ generated_at: asString(raw.generated_at),
108
+ available: raw.available === true,
109
+ fetched: raw.fetched === true,
110
+ statements: Object.fromEntries(AI_STATEMENTS.map((s) => [s, projectEntries(statements[s])])),
111
+ agent: { default: asString(agent.default), models: asStringArray(agent.models) }
112
+ };
113
+ }
114
+ async function fetchAiCatalog(host) {
115
+ let url;
116
+ try {
117
+ url = new URL(host.replace(/\/+$/, "") + AI_CATALOG_PATH);
118
+ } catch {
119
+ throw new Error(`The Xano AI catalog host is not a valid URL: ${JSON.stringify(host)}. Check ${AI_CATALOG_URL_ENV}.`);
120
+ }
121
+ let res;
122
+ let text;
123
+ try {
124
+ res = await fetch(url.href, {
125
+ headers: { accept: "application/json" },
126
+ signal: AbortSignal.timeout(AI_CATALOG_TIMEOUT_MS)
127
+ });
128
+ text = await res.text();
129
+ } catch (err) {
130
+ const why = err instanceof Error && (err.name === "TimeoutError" || err.name === "AbortError") ? `no answer within ${AI_CATALOG_TIMEOUT_MS / 1e3}s` : err instanceof Error ? err.message : String(err);
131
+ throw failure("unreachable", host, `Could not reach the Xano AI catalog at ${host}: ${why}.`, EXIT_SOURCE_UNRESOLVABLE, err);
132
+ }
133
+ if (!res.ok) {
134
+ const detail = serverMessage(text);
135
+ throw failure(
136
+ "http",
137
+ host,
138
+ `The Xano AI catalog at ${host} returned ${statusLabel(res)}` + (detail !== void 0 ? `:
139
+ ${detail}` : "."),
140
+ res.status >= 500 ? EXIT_SOURCE_UNRESOLVABLE : 1
141
+ );
142
+ }
143
+ return projectAiCatalog(parseJsonAnswer(text, "Reading the Xano AI catalog", url.href));
144
+ }
145
+ function assertAiCatalogReady(catalog, host) {
146
+ if (catalog.version !== AI_CATALOG_VERSION) {
147
+ throw failure(
148
+ "unsupported",
149
+ host,
150
+ `The Xano AI catalog at ${host} is version ${catalog.version}; this SDK reads version ${AI_CATALOG_VERSION}. Upgrade @xano/sdk to read it.`,
151
+ 1
152
+ );
153
+ }
154
+ if (!catalog.available) {
155
+ throw failure("unavailable", host, `Xano AI is not offered on this Xano (${host}).`, 1);
156
+ }
157
+ if (!catalog.fetched) {
158
+ throw failure(
159
+ "not-fetched",
160
+ host,
161
+ `The Xano AI catalog at ${host} is not ready: catalog not fetched yet, try again in a minute.`,
162
+ EXIT_SOURCE_UNRESOLVABLE
163
+ );
164
+ }
165
+ }
166
+
167
+ // src/emit/ai-models-command.ts
168
+ async function runAiCommand(args) {
169
+ switch (args.subcommand) {
170
+ case "models":
171
+ return runAiModelsCommand(args);
172
+ default:
173
+ throw unknownSubcommand("ai", args.subcommand, args.positionals);
174
+ }
175
+ }
176
+ function activeOAuthHints(args) {
177
+ try {
178
+ if (environmentCredentialVars().vars.length > 0) return {};
179
+ const path = resolveAuthFilePath(args);
180
+ const file = readCredentialFile(path);
181
+ if (file === null) return {};
182
+ const selection = resolveActiveProfile({
183
+ flag: args.profile,
184
+ fileDefault: file.default,
185
+ readPointer: () => findProjectPointer(process.cwd())?.profile
186
+ });
187
+ const record = readProfile(file, selection.name, path);
188
+ if (record?.type !== "oauth") return {};
189
+ return { authHost: record.auth_host, gatewayUrl: record.ai_gateway_url };
190
+ } catch {
191
+ return {};
192
+ }
193
+ }
194
+ function visible(catalog, all) {
195
+ return Object.fromEntries(
196
+ AI_STATEMENTS.map((s) => [s, all ? catalog.statements[s] : catalog.statements[s].filter((e) => e.listed)])
197
+ );
198
+ }
199
+ async function runAiModelsCommand(args) {
200
+ const hints = activeOAuthHints(args);
201
+ const host = resolveAiCatalogHost(hints.authHost);
202
+ const catalog = await fetchAiCatalog(host);
203
+ assertAiCatalogReady(catalog, host);
204
+ const statements = visible(catalog, args.all);
205
+ if (isMachineOutput(args)) {
206
+ writeJson({
207
+ version: 1,
208
+ source: "live",
209
+ host,
210
+ generated_at: catalog.generated_at ?? null,
211
+ available: catalog.available,
212
+ ...hints.gatewayUrl === void 0 ? {} : { gateway_url: hints.gatewayUrl },
213
+ statements,
214
+ agent: { default: catalog.agent.default ?? null, models: catalog.agent.models }
215
+ });
216
+ return;
217
+ }
218
+ printHuman(renderCatalog(catalog, statements, host, hints.gatewayUrl, args.all));
219
+ }
220
+ function optionValue(v) {
221
+ if (typeof v === "string" || typeof v === "number" || typeof v === "boolean") return String(v);
222
+ if (Array.isArray(v) && v.every((x) => typeof x === "string" || typeof x === "number")) return v.join(", ");
223
+ return void 0;
224
+ }
225
+ function renderEntry(e, s) {
226
+ const marks = [e.suggested ? s.green("suggested") : void 0, e.listed ? void 0 : s.yellow("unlisted")].filter((m) => m !== void 0).join(" ");
227
+ const out = [` ${s.bold(safeText(e.model))} ${safeText(e.label)}${marks === "" ? "" : ` ${marks}`}`];
228
+ const facts = [
229
+ e.tier !== "" ? `tier ${e.tier}` : void 0,
230
+ e.stage !== "" ? `stage ${e.stage}` : void 0,
231
+ e.location !== "" ? `runs at ${e.location}` : void 0,
232
+ e.locations.length > 0 ? `locations ${e.locations.join(", ")}` : void 0
233
+ ].filter((f) => f !== void 0);
234
+ if (facts.length > 0) out.push(` ${s.dim(safeText(facts.join(" \xB7 ")))}`);
235
+ const options = Object.entries(e.options).flatMap(([k, v]) => {
236
+ const value = optionValue(v);
237
+ return value === void 0 ? [] : [`${k} ${value}`];
238
+ });
239
+ if (options.length > 0) out.push(` ${s.dim(safeText(`options: ${options.join(" \xB7 ")}`))}`);
240
+ if (e.price !== "") out.push(` ${s.dim(safeText(`list price: ${e.price}`))}`);
241
+ return out;
242
+ }
243
+ function renderCatalog(catalog, statements, host, gatewayUrl, all) {
244
+ const s = stdoutStyle();
245
+ const out = [""];
246
+ out.push(` ${s.bold("Xano AI models")} ${s.dim(`\xB7 the hub catalog from ${safeText(host)}`)}`);
247
+ if (gatewayUrl !== void 0) out.push(` ${s.dim(`Your instance's gateway: ${safeText(gatewayUrl)}`)}`);
248
+ if (catalog.generated_at !== void 0) out.push(` ${s.dim(`Generated ${safeText(catalog.generated_at)}`)}`);
249
+ for (const statement of AI_STATEMENTS) {
250
+ out.push("", ` ${s.bold(s.cyan(statement))}`);
251
+ const entries = statements[statement];
252
+ if (entries.length === 0) out.push(` ${s.dim("(no models)")}`);
253
+ for (const e of entries) out.push(...renderEntry(e, s));
254
+ }
255
+ if (catalog.agent.models.length > 0 || catalog.agent.default !== void 0) {
256
+ out.push("", ` ${s.bold(s.cyan("agent"))}`);
257
+ if (catalog.agent.default !== void 0) out.push(` default ${safeText(catalog.agent.default)}`);
258
+ if (catalog.agent.models.length > 0) out.push(` models ${safeText(catalog.agent.models.join(", "))}`);
259
+ }
260
+ const hidden = AI_STATEMENTS.reduce((n, st) => n + catalog.statements[st].filter((e) => !e.listed).length, 0);
261
+ if (!all && hidden > 0) {
262
+ out.push("", ` ${s.dim(`${hidden} unlisted model${hidden === 1 ? "" : "s"} hidden. xanosdk ai models --all shows them.`)}`);
263
+ }
264
+ return out.join("\n") + "\n\n";
265
+ }
266
+ export {
267
+ runAiCommand,
268
+ runAiModelsCommand
269
+ };
270
+ //# sourceMappingURL=ai-models-command-I3FU6GYP.js.map
@@ -8,11 +8,11 @@ import {
8
8
  parseAnswer,
9
9
  recordAnswer,
10
10
  writeTransportFailure
11
- } from "./chunk-SINL5WMI.js";
12
- import "./chunk-NH5Z2NOD.js";
13
- import "./chunk-MF4W6FHU.js";
11
+ } from "./chunk-4Y3SWNPE.js";
12
+ import "./chunk-QZ2PC6B7.js";
13
+ import "./chunk-Q4R2ABFL.js";
14
14
  import "./chunk-X2NL4KUO.js";
15
- import "./chunk-ZHFSIQ6E.js";
15
+ import "./chunk-6534P3VH.js";
16
16
  import "./chunk-FMXPV5JI.js";
17
17
  import "./chunk-UTI5G6OJ.js";
18
18
  import "./chunk-5ZSO4T2G.js";
@@ -30,4 +30,4 @@ export {
30
30
  recordAnswer,
31
31
  writeTransportFailure
32
32
  };
33
- //# sourceMappingURL=answer-shape-ZRQS7ZC4.js.map
33
+ //# sourceMappingURL=answer-shape-BCGPH73R.js.map
@@ -2,28 +2,30 @@ import {
2
2
  backendDirFor,
3
3
  backendDirIn,
4
4
  resolveBackendDir
5
- } from "./chunk-JORPZKBE.js";
6
- import "./chunk-554FJWNH.js";
7
- import "./chunk-GTB7JL3M.js";
8
- import "./chunk-XAE4NIZ2.js";
5
+ } from "./chunk-N2JZU6VR.js";
6
+ import "./chunk-T2LFOMOP.js";
7
+ import "./chunk-QZXSPUNS.js";
8
+ import {
9
+ projectRootFrom
10
+ } from "./chunk-HU7F56VF.js";
11
+ import "./chunk-7J7YRAZB.js";
9
12
  import "./chunk-ZFDZKNGG.js";
10
13
  import "./chunk-FWD7AL6N.js";
11
- import "./chunk-YYBBJPCL.js";
12
- import "./chunk-DXUICABI.js";
13
- import "./chunk-NH5Z2NOD.js";
14
+ import "./chunk-IUBGFCJJ.js";
15
+ import "./chunk-37BT62SX.js";
14
16
  import "./chunk-4KHEMC32.js";
15
17
  import "./chunk-DNBP4GJN.js";
16
- import "./chunk-XDGLYIB2.js";
18
+ import "./chunk-DORGB2Y2.js";
17
19
  import "./chunk-WAVNUTMT.js";
20
+ import "./chunk-LZDH5COS.js";
18
21
  import "./chunk-LLNZGEFK.js";
19
- import {
20
- projectRootFrom
21
- } from "./chunk-HU7F56VF.js";
22
- import "./chunk-MF4W6FHU.js";
22
+ import "./chunk-4Y3SWNPE.js";
23
+ import "./chunk-QZ2PC6B7.js";
24
+ import "./chunk-Q4R2ABFL.js";
23
25
  import "./chunk-X2NL4KUO.js";
24
26
  import "./chunk-RHH6SCB4.js";
25
27
  import "./chunk-LJM5CIY4.js";
26
- import "./chunk-ZHFSIQ6E.js";
28
+ import "./chunk-6534P3VH.js";
27
29
  import "./chunk-FMXPV5JI.js";
28
30
  import "./chunk-UTI5G6OJ.js";
29
31
  import "./chunk-5ZSO4T2G.js";
@@ -37,4 +39,4 @@ export {
37
39
  projectRootFrom,
38
40
  resolveBackendDir
39
41
  };
40
- //# sourceMappingURL=backend-dir-RLILKCMR.js.map
42
+ //# sourceMappingURL=backend-dir-VOMHDVFP.js.map
@@ -7,8 +7,8 @@ import {
7
7
  refusedKind,
8
8
  requireBackendSlot,
9
9
  slotValueMissing
10
- } from "./chunk-V2MIBJZU.js";
11
- import "./chunk-ZHFSIQ6E.js";
10
+ } from "./chunk-CGLYG2VF.js";
11
+ import "./chunk-6534P3VH.js";
12
12
  import "./chunk-FMXPV5JI.js";
13
13
  import "./chunk-UTI5G6OJ.js";
14
14
  import "./chunk-5ZSO4T2G.js";
@@ -25,4 +25,4 @@ export {
25
25
  requireBackendSlot,
26
26
  slotValueMissing
27
27
  };
28
- //# sourceMappingURL=backend-slot-7BATLL3X.js.map
28
+ //# sourceMappingURL=backend-slot-WSWAHL2W.js.map