@xano/sdk 1.0.18 → 1.0.20

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 (236) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +5 -2
  3. package/dist/.build-fingerprint +1 -0
  4. package/dist/{agent-file-refresh-SGM3523M.js → agent-file-refresh-MOEDX5OL.js} +13 -12
  5. package/dist/{agent-skill-command-PZXX7LJD.js → agent-skill-command-A4QEVNTP.js} +49 -52
  6. package/dist/ai-models-command-SN2UKVC5.js +270 -0
  7. package/dist/{answer-shape-ZRQS7ZC4.js → answer-shape-BCGPH73R.js} +5 -5
  8. package/dist/{backend-dir-AZIVCH6Y.js → backend-dir-66VVLCUF.js} +16 -15
  9. package/dist/{backend-slot-7BATLL3X.js → backend-slot-WSWAHL2W.js} +3 -3
  10. package/dist/bin.js +53 -52
  11. package/dist/{branch-SJKKUCMZ.js → branch-6DBHVVUT.js} +11 -11
  12. package/dist/{branch-commands-JE5RDJPH.js → branch-commands-KUEGS6XL.js} +29 -29
  13. package/dist/bundle.js +3 -3
  14. package/dist/{chunk-77QKU5H6.js → chunk-2SWJ3267.js} +40 -22
  15. package/dist/{chunk-DCD3KJ4B.js → chunk-2VHEZDZZ.js} +35 -35
  16. package/dist/{chunk-HFH72FBC.js → chunk-34OZQNKR.js} +4 -4
  17. package/dist/chunk-37BT62SX.js +17 -0
  18. package/dist/{chunk-CF26RMO5.js → chunk-3H765RXT.js} +7 -7
  19. package/dist/{chunk-2IC3K22K.js → chunk-3HK7VELD.js} +2 -2
  20. package/dist/{chunk-XBCTTJSQ.js → chunk-3OR2RCXJ.js} +118 -94
  21. package/dist/{chunk-ZYZ7GRX3.js → chunk-4DVP42ZC.js} +2 -2
  22. package/dist/{chunk-NJCHWEPU.js → chunk-4GI22VPJ.js} +6 -6
  23. package/dist/{chunk-UIHLO3HJ.js → chunk-4PHCBKJI.js} +7 -7
  24. package/dist/{chunk-ROWYW3JF.js → chunk-4QRDNBPY.js} +2 -2
  25. package/dist/{chunk-SINL5WMI.js → chunk-4Y3SWNPE.js} +2 -2
  26. package/dist/{chunk-6SEPZQYB.js → chunk-4ZV4MDKP.js} +2 -2
  27. package/dist/{chunk-LLJL44WF.js → chunk-52VELHIH.js} +3 -3
  28. package/dist/{chunk-IFHFJR5O.js → chunk-5ABAIJVV.js} +6 -6
  29. package/dist/{chunk-MCISY4QC.js → chunk-5BLBX2Q5.js} +13 -10
  30. package/dist/chunk-5KSVMHFS.js +81 -0
  31. package/dist/{chunk-MOVRSULZ.js → chunk-5Z4WQQHC.js} +2 -2
  32. package/dist/{chunk-ZHFSIQ6E.js → chunk-6534P3VH.js} +25 -2
  33. package/dist/{chunk-Q6AKSLD2.js → chunk-6L32HAIP.js} +2 -2
  34. package/dist/chunk-6SXKKDGF.js +9 -0
  35. package/dist/{chunk-OTQF4B37.js → chunk-6TAYTKFM.js} +4 -4
  36. package/dist/{chunk-7UQZ7C4W.js → chunk-745NOWB7.js} +6 -6
  37. package/dist/{chunk-XAE4NIZ2.js → chunk-7J7YRAZB.js} +4 -4
  38. package/dist/{chunk-E34VGSCI.js → chunk-7LLVSTXY.js} +9 -1
  39. package/dist/{chunk-OJFBI5C6.js → chunk-7Z43XRBL.js} +14 -14
  40. package/dist/{chunk-BWD5H7AW.js → chunk-AD7YILOU.js} +10 -10
  41. package/dist/{chunk-AICWDCLJ.js → chunk-BBFHZMQA.js} +2 -2
  42. package/dist/{chunk-CRCYD6AK.js → chunk-BFM2P47R.js} +6 -6
  43. package/dist/{chunk-BQMX7PYG.js → chunk-C6ERQFEB.js} +4 -4
  44. package/dist/{chunk-54CJ74BH.js → chunk-C7KO5KKB.js} +4 -4
  45. package/dist/chunk-CBACTYIC.js +278 -0
  46. package/dist/{chunk-V2MIBJZU.js → chunk-CGLYG2VF.js} +2 -2
  47. package/dist/{chunk-Z73I7Q2H.js → chunk-CJ5WRCVE.js} +80 -2
  48. package/dist/{chunk-JTUMJXFN.js → chunk-CJIXD67B.js} +6 -6
  49. package/dist/{chunk-S4ZWOBRO.js → chunk-CP7OSHLK.js} +8 -8
  50. package/dist/{chunk-E3OLY3J4.js → chunk-CPR2F3WN.js} +9 -9
  51. package/dist/{chunk-WGKKDGSA.js → chunk-DAXFWXSV.js} +8 -8
  52. package/dist/{chunk-MSYMEP7Y.js → chunk-DJ7JH4UE.js} +7 -7
  53. package/dist/{chunk-XDGLYIB2.js → chunk-DORGB2Y2.js} +2 -2
  54. package/dist/{chunk-NEPSEJRV.js → chunk-E7YXNU57.js} +7 -7
  55. package/dist/{chunk-GA6HTO3O.js → chunk-EBSJUSID.js} +2 -2
  56. package/dist/{chunk-UBM7L5KL.js → chunk-EJXJE2H3.js} +49 -49
  57. package/dist/{chunk-O2BLNQEC.js → chunk-EME5G4YP.js} +2 -2
  58. package/dist/{chunk-RVWWNNZQ.js → chunk-EOWNLLLV.js} +4 -4
  59. package/dist/{chunk-QIT2GGNB.js → chunk-EPD5J3WA.js} +2 -2
  60. package/dist/{chunk-7B2KH733.js → chunk-EQ2KB5YF.js} +4 -13
  61. package/dist/{chunk-GT7PZCTK.js → chunk-FVBJKM6N.js} +3 -3
  62. package/dist/{chunk-F3IA3YWI.js → chunk-FVZ5C3PF.js} +22 -2
  63. package/dist/{chunk-LMCZQLM4.js → chunk-G3ZUGFIS.js} +9 -9
  64. package/dist/{chunk-RKTVXFBV.js → chunk-GUHJV7C5.js} +31 -3
  65. package/dist/{chunk-VVZFTYQ3.js → chunk-HGUQIBYY.js} +8 -8
  66. package/dist/{chunk-FCAKYFC6.js → chunk-HUXMRYUX.js} +3 -3
  67. package/dist/{chunk-G2XSDIYS.js → chunk-I52AKG2O.js} +4 -4
  68. package/dist/{chunk-VCFRALU7.js → chunk-I5YD7QPI.js} +28 -11
  69. package/dist/{chunk-YYBBJPCL.js → chunk-IUBGFCJJ.js} +14 -18
  70. package/dist/{chunk-UH5VQGNR.js → chunk-JXX2QXPP.js} +2 -2
  71. package/dist/{chunk-2DUYJR5N.js → chunk-KHX6VQ4M.js} +2 -2
  72. package/dist/{chunk-7SDCWYAQ.js → chunk-KMXXOJL2.js} +21 -19
  73. package/dist/{chunk-IFNSUPQL.js → chunk-KNLPGIRY.js} +8 -8
  74. package/dist/{chunk-ID7MIDLG.js → chunk-LLG33KGY.js} +26 -26
  75. package/dist/{chunk-WGGATSIP.js → chunk-LMX4VE4H.js} +2 -2
  76. package/dist/{chunk-DXUICABI.js → chunk-LZDH5COS.js} +21 -2
  77. package/dist/{chunk-E5M5P23K.js → chunk-M5GXZEX7.js} +21 -215
  78. package/dist/{chunk-OO2JDYQH.js → chunk-MAAQ4ZSN.js} +73 -73
  79. package/dist/{chunk-Q4LJCCH5.js → chunk-MGC5S6OE.js} +75 -9
  80. package/dist/{chunk-5Y5HWQ2P.js → chunk-MKRREVNB.js} +4 -4
  81. package/dist/{chunk-H4CS4WPM.js → chunk-OAWBNCME.js} +24 -24
  82. package/dist/{chunk-64UVVLDT.js → chunk-OG6WYZNA.js} +7 -7
  83. package/dist/{chunk-AJBOGO5U.js → chunk-OQMXCNN7.js} +59 -31
  84. package/dist/{chunk-EPB6FAR5.js → chunk-OSMPI45P.js} +3 -3
  85. package/dist/{chunk-3X4B5GWY.js → chunk-P3WIMLG2.js} +3 -3
  86. package/dist/{chunk-GJZMKMWO.js → chunk-PC7XEO7F.js} +2 -2
  87. package/dist/{chunk-MF4W6FHU.js → chunk-Q4R2ABFL.js} +1 -1
  88. package/dist/{chunk-SJW6R6P4.js → chunk-QBSSSKIC.js} +3 -3
  89. package/dist/{chunk-NH5Z2NOD.js → chunk-QZ2PC6B7.js} +3 -3
  90. package/dist/{chunk-LCOCRJ4K.js → chunk-RQGSZ7AR.js} +16 -2
  91. package/dist/{chunk-ZNHO535R.js → chunk-RSWPVU6X.js} +8 -8
  92. package/dist/chunk-RVBDZMCC.js +264 -0
  93. package/dist/{chunk-WLZSKD7E.js → chunk-SQVETROU.js} +3 -3
  94. package/dist/{chunk-HERXDPZS.js → chunk-SWQA6SZI.js} +113 -94
  95. package/dist/{chunk-EXY42CTV.js → chunk-T6GI2AFJ.js} +16 -16
  96. package/dist/{chunk-FRJB3NTE.js → chunk-T6KQYCAU.js} +3 -3
  97. package/dist/{chunk-YYDM4DNP.js → chunk-TDSRZDQP.js} +2 -2
  98. package/dist/{chunk-YQQSFS7S.js → chunk-TEZKQQDT.js} +46 -44
  99. package/dist/{chunk-X2IQOLQD.js → chunk-TN7ZBZRW.js} +3 -3
  100. package/dist/{chunk-X4G7FGHS.js → chunk-UN73LNM5.js} +4 -4
  101. package/dist/{chunk-RKNCISPM.js → chunk-VEA6EXJL.js} +3 -3
  102. package/dist/{chunk-6FCAFWD5.js → chunk-VO62TKK5.js} +3 -77
  103. package/dist/{chunk-HM5X73PY.js → chunk-WK5QDV25.js} +2 -2
  104. package/dist/{chunk-Q2KVGISJ.js → chunk-X3LYWTZ5.js} +3 -3
  105. package/dist/{chunk-CO7US54H.js → chunk-X7IBJLAD.js} +2 -2
  106. package/dist/{chunk-PKBC7G5H.js → chunk-XDIPEWLU.js} +25 -1
  107. package/dist/{chunk-OJ6YGRPV.js → chunk-YAZEB255.js} +3 -3
  108. package/dist/{chunk-RGPHFHJU.js → chunk-YFVD3LNL.js} +2 -2
  109. package/dist/{chunk-NAXUCAOK.js → chunk-YRLSJBSY.js} +71 -49
  110. package/dist/{chunk-35SI4GBM.js → chunk-YSSAJQH4.js} +3 -3
  111. package/dist/{chunk-UQNDODRU.js → chunk-Z7IINILG.js} +5 -5
  112. package/dist/{chunk-PRSNMSVG.js → chunk-ZCXWOGFL.js} +3 -3
  113. package/dist/cli.d.ts +10 -1
  114. package/dist/cli.js +48 -47
  115. package/dist/{codegen-command-YGGEC2DV.js → codegen-command-GGGU6YAP.js} +68 -67
  116. package/dist/{commands-Z2QZOORB.js → commands-EN4RLPOP.js} +2 -2
  117. package/dist/{completion-LFXXNQGR.js → completion-KH45QD3E.js} +2 -2
  118. package/dist/{config-7GGINOFY.js → config-AKHBFTKA.js} +8 -8
  119. package/dist/{deploy-command-SX4DWRVS.js → deploy-command-WOHYD22D.js} +55 -54
  120. package/dist/{deploy-source-T6BR3APS.js → deploy-source-QK7Y4Y3V.js} +34 -34
  121. package/dist/{dev-env-sync-4XFB63CM.js → dev-env-sync-AMFPULCP.js} +51 -50
  122. package/dist/{display-name-hint-5GLJGPQ6.js → display-name-hint-QMT562BI.js} +13 -13
  123. package/dist/{emit-DlOKIJER.d.ts → emit-BfHifhJy.d.ts} +120 -7
  124. package/dist/{env-example-refresh-N3JPECAZ.js → env-example-refresh-F5RTDVJ5.js} +69 -68
  125. package/dist/{env-pull-command-EAWIS3IW.js → env-pull-command-J2ARE33T.js} +52 -51
  126. package/dist/{env-target-RZBM6SOB.js → env-target-WA4BR6GW.js} +13 -13
  127. package/dist/{env-var-command-K2OASTSZ.js → env-var-command-WEC22FI5.js} +55 -55
  128. package/dist/{ephemeral-2DXWP3VK.js → ephemeral-MNHEWSZ6.js} +11 -11
  129. package/dist/{ephemeral-command-FZLJJICY.js → ephemeral-command-EJLS42VJ.js} +64 -63
  130. package/dist/{ephemeral-state-56XEDUJW.js → ephemeral-state-QTT5JHD5.js} +11 -11
  131. package/dist/{generate-command-IQVETHTK.js → generate-command-2WHFL4CB.js} +77 -76
  132. package/dist/{gitignore-3REKZPQI.js → gitignore-OKB3X335.js} +19 -18
  133. package/dist/{guards-LQ7PSXOL.js → guards-N4PUFKN5.js} +3 -2
  134. package/dist/{impersonate-command-K4775AUM.js → impersonate-command-EIWI3FBD.js} +44 -43
  135. package/dist/{import-VJQGIS33.js → import-7HFTOT7M.js} +5 -5
  136. package/dist/index.d.ts +142 -7
  137. package/dist/index.js +7 -6
  138. package/dist/{init-command-SODVHEI6.js → init-command-POIWZKZ4.js} +52 -51
  139. package/dist/{init-modules-WJOEK2YW.js → init-modules-S7BR4NIJ.js} +11 -9
  140. package/dist/{init-web-25QJ4JWB.js → init-web-YCPD6BYN.js} +2 -2
  141. package/dist/internal.d.ts +4 -4
  142. package/dist/internal.js +169 -30
  143. package/dist/{keep-data-merge-CHOKIJS5.js → keep-data-merge-NXP77QML.js} +32 -31
  144. package/dist/{landing-record-KJTRWFK6.js → landing-record-MK44WCRY.js} +23 -22
  145. package/dist/{live-diff-YOFOJCFX.js → live-diff-GZ6JUNP6.js} +5 -4
  146. package/dist/local-engine-ai-3XLJLOBP.js +47 -0
  147. package/dist/{local-engine-choice-4K5FTSHE.js → local-engine-choice-7QBML5XF.js} +43 -37
  148. package/dist/local-engine-command-N7VDPABW.js +93 -0
  149. package/dist/{local-engine-config-6CB6FOEJ.js → local-engine-config-MVNWKHZ4.js} +15 -3
  150. package/dist/{local-engine-deploy-XAEDT55W.js → local-engine-deploy-RYZZYEDQ.js} +21 -18
  151. package/dist/{local-engine-lookup-WBYTY2JE.js → local-engine-lookup-2VSUWEQY.js} +6 -6
  152. package/dist/{local-engine-mcp-bridge-3H5OXBWQ.js → local-engine-mcp-bridge-ECGTK7LF.js} +6 -6
  153. package/dist/{local-engine-mcp-command-FM4FOZ42.js → local-engine-mcp-command-A257D3WK.js} +52 -45
  154. package/dist/{local-engine-process-35B2KQED.js → local-engine-process-P5T2766M.js} +19 -11
  155. package/dist/local-engine-release-OK6GKULS.js +40 -0
  156. package/dist/{local-engine-state-JZHTKHDG.js → local-engine-state-BOKHLNRQ.js} +4 -4
  157. package/dist/{local-engine-update-check-VXJZSIJU.js → local-engine-update-check-C72LSVUQ.js} +7 -7
  158. package/dist/{lock-commands-BLCJIVCC.js → lock-commands-KMWLIGT2.js} +55 -54
  159. package/dist/{login-command-PTYSRF45.js → login-command-E2KMN6DV.js} +39 -33
  160. package/dist/{logout-command-BIO63CXY.js → logout-command-AIB446AQ.js} +16 -17
  161. package/dist/{loop-CLLBQSJF.js → loop-EMTBWN4X.js} +5 -4
  162. package/dist/{marketplace-command-TEUCQBL5.js → marketplace-command-YLBFUBHL.js} +42 -41
  163. package/dist/{marketplace-resolve-63QWMQZU.js → marketplace-resolve-LT76KHJD.js} +9 -7
  164. package/dist/{meta-client-JY7JXDU2.js → meta-client-AOPF5IQN.js} +15 -15
  165. package/dist/{module-manifest-NWJWAQLQ.js → module-manifest-B432UFBK.js} +3 -3
  166. package/dist/node.d.ts +5 -5
  167. package/dist/node.js +61 -60
  168. package/dist/{operation-outcome-ATGF6RR4.js → operation-outcome-GBSISFAP.js} +26 -26
  169. package/dist/{output-target-ZCM4XYQA.js → output-target-NHJLT4YI.js} +20 -19
  170. package/dist/{plan-disclosure-XTAEE4BE.js → plan-disclosure-5HM7CMRW.js} +19 -18
  171. package/dist/{plugin-contributions-DD6R6RL6.js → plugin-contributions-MEXUR7TY.js} +4 -4
  172. package/dist/{plugin-prompt-UX2TT5NS.js → plugin-prompt-XM4ATAWA.js} +4 -4
  173. package/dist/{plugin-questions-WE2F4ZC4.js → plugin-questions-VGU3B4LE.js} +3 -3
  174. package/dist/{preflight-command-AXBQADFL.js → preflight-command-O52GLYGA.js} +60 -59
  175. package/dist/{profile-command-JZ5PLHJH.js → profile-command-NOKUVV3M.js} +38 -37
  176. package/dist/{profile-pointer-RCPHVTJV.js → profile-pointer-DHOU26Q2.js} +5 -5
  177. package/dist/{profile-select-45G5VPJK.js → profile-select-ZANK43KE.js} +2 -2
  178. package/dist/project-config-SGRYMHBT.js +37 -0
  179. package/dist/{project-dependency-TPVV3YIX.js → project-dependency-WTH776QE.js} +10 -8
  180. package/dist/{project-sdk-DKZBK5H5.js → project-sdk-FYNY7RTO.js} +3 -3
  181. package/dist/promote-command-2NMTINVS.js +150 -0
  182. package/dist/{prompt-OYQHQWKI.js → prompt-JVYQH4OR.js} +3 -3
  183. package/dist/{publish-command-VBFNWVEF.js → publish-command-LB2XULJA.js} +65 -64
  184. package/dist/{pull-command-4YGZSRGU.js → pull-command-UVNPFY2E.js} +71 -70
  185. package/dist/{pull-superseded-3SSM3JFT.js → pull-superseded-7EZ7M54I.js} +3 -3
  186. package/dist/{release-command-SSRQMIT2.js → release-command-BGSDY3BE.js} +66 -65
  187. package/dist/{release-ns-command-ISFM36YJ.js → release-ns-command-IVXK7HEG.js} +93 -92
  188. package/dist/{retry-command-WP4ZI6CJ.js → retry-command-HG4IFE65.js} +10 -10
  189. package/dist/{routes-manifest-file-ZZS5TNGT.js → routes-manifest-file-3MDX3JB3.js} +4 -4
  190. package/dist/{secrets-file-JFCORQT7.js → secrets-file-NFNUKRGZ.js} +19 -18
  191. package/dist/{secrets-fill-command-5RJ2HSI5.js → secrets-fill-command-U5L7IKUO.js} +52 -51
  192. package/dist/{seed-W5FNE6IB.js → seed-M33F4OJW.js} +3 -3
  193. package/dist/{source-resolve-LP6MCOQX.js → source-resolve-MAMVIHDF.js} +24 -24
  194. package/dist/{static-host-3HPZKVKK.js → static-host-HCKD26Q3.js} +5 -5
  195. package/dist/{status-command-GXX4MZBC.js → status-command-VXIN37ET.js} +53 -78
  196. package/dist/{store-Dg9FLJkx.d.ts → store-Dt-5vOSe.d.ts} +149 -1
  197. package/dist/{store-B63BQV6R.js → store-ZWQFSXH5.js} +8 -8
  198. package/dist/{sync-baseline-LSGKNCKM.js → sync-baseline-XLRJQZCS.js} +7 -6
  199. package/dist/{sync-contributions-PQTTCY2O.js → sync-contributions-PGMYJKLG.js} +17 -13
  200. package/dist/{sync-record-AWFCSS4D.js → sync-record-UFEJDNLR.js} +13 -13
  201. package/dist/{table-WJ7YDJ6Q.js → table-JHPGUJ2Z.js} +6 -6
  202. package/dist/{tables-command-5MLGODGI.js → tables-command-FNBHVJG3.js} +41 -41
  203. package/dist/{tenant-IXIW3FOI.js → tenant-SSWC7B3V.js} +12 -12
  204. package/dist/{tenant-command-UDZUIOTO.js → tenant-command-PHNX3PXS.js} +96 -95
  205. package/dist/{test-command-7CUROW3U.js → test-command-DMMF3RMK.js} +44 -44
  206. package/dist/{tests-N4MMBABH.js → tests-ZFQWDWS2.js} +6 -6
  207. package/dist/{token-DTFJJYQH.js → token-IHOPB74T.js} +14 -13
  208. package/dist/{toolchain-hooks-IJWV3ZQS.js → toolchain-hooks-IRPM6LYL.js} +3 -3
  209. package/dist/{toolchain-modules-GQIMMMZL.js → toolchain-modules-V56JXU2E.js} +9 -5
  210. package/dist/{toolchain-peers-EMOYN4U7.js → toolchain-peers-NOIM44ED.js} +11 -9
  211. package/dist/{tracked-backend-2MG4D4ZJ.js → tracked-backend-VKWZKKBG.js} +39 -37
  212. package/dist/{update-check-H774KJVG.js → update-check-DZ4YVDNS.js} +51 -50
  213. package/dist/{upgrade-command-MLBXEIKR.js → upgrade-command-EP5WQWFA.js} +55 -54
  214. package/dist/{whoami-command-SYRDCTDK.js → whoami-command-UV6EEDBY.js} +15 -16
  215. package/dist/{workspace-RMSSZKNV.js → workspace-6LVJ3LZE.js} +5 -5
  216. package/dist/{workspace-binding-ZQSANRJF.js → workspace-binding-AUZIERMF.js} +14 -15
  217. package/dist/{workspace-command-X3ACS6X4.js → workspace-command-VXOY6KPE.js} +96 -95
  218. package/dist/{workspace-env-XA57JKVH.js → workspace-env-ZNGE3DFN.js} +17 -16
  219. package/dist/{workspace-export-3KMWNZDD.js → workspace-export-A4L6272C.js} +5 -5
  220. package/dist/{writable-X7BCN7XE.js → writable-762DMPHW.js} +3 -3
  221. package/dist/{xano-RLSNDM7O.js → xano-XZN5SRDH.js} +4 -3
  222. package/dist/{xanosdk-import-562F4G3K.js → xanosdk-import-FENZ7XMW.js} +6 -6
  223. package/dist/{xanosdk-project-J2JVTSVJ.js → xanosdk-project-K4RKLLNO.js} +16 -15
  224. package/guides/cli.md +3 -0
  225. package/guides/coverage.md +4 -4
  226. package/llms/kinds-agent-mcp.md +3 -1
  227. package/llms/statements-ai.md +21 -0
  228. package/llms/statements-catalog.md +1 -8
  229. package/llms-full.txt +33 -18
  230. package/llms.txt +7 -9
  231. package/manifest.json +651 -3
  232. package/package.json +2 -1
  233. package/skills/xano-backend/SKILL.md +2 -4
  234. package/dist/chunk-VYJYDMY6.js +0 -9
  235. package/dist/local-engine-command-CUBWYENJ.js +0 -86
  236. package/dist/promote-command-25OWDQVE.js +0 -149
package/CHANGELOG.md CHANGED
@@ -8,6 +8,17 @@ one release and links to its full notes.
8
8
 
9
9
  ---
10
10
 
11
+ ## 1.0.18 — Preflight reads the default mesh0 block
12
+
13
+ _2026-10-30_ · [release notes](https://github.com/xano-sdk/sdk/releases/tag/v1.0.18)
14
+
15
+ Preflight no longer fails every object against an engine that writes the new per-object `mesh0` telemetry block, and the engine object-kind catalog drops two kinds the engine removed. Take this release before the engine's per-object `mesh0` change reaches your instance: every earlier `@xano/sdk` reports a round-trip difference on every object there.
16
+
17
+ - Preflight reads a default `mesh0` block as absent
18
+ - `run.job` and `run.service` leave the engine kind catalog
19
+
20
+ ---
21
+
11
22
  ## 1.0.17 — Fewer false limits
12
23
 
13
24
  _2026-10-23_ · [release notes](https://github.com/xano-sdk/sdk/releases/tag/v1.0.17)
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.
@@ -0,0 +1 @@
1
+ f149162a2ee07de28b92d53906b0b0275dc094dc9e5ac3751db5cf20fe274d0a
@@ -3,27 +3,28 @@ import {
3
3
  codingAgentDetected,
4
4
  isCI,
5
5
  refreshAgentFiles
6
- } from "./chunk-LLJL44WF.js";
7
- import "./chunk-7B2KH733.js";
8
- import "./chunk-JTUMJXFN.js";
9
- import "./chunk-XAE4NIZ2.js";
6
+ } from "./chunk-52VELHIH.js";
7
+ import "./chunk-EQ2KB5YF.js";
8
+ import "./chunk-CJIXD67B.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-VYJYDMY6.js";
26
- import "./chunk-ZHFSIQ6E.js";
27
+ import "./chunk-6534P3VH.js";
27
28
  import "./chunk-FMXPV5JI.js";
28
29
  import "./chunk-UTI5G6OJ.js";
29
30
  import "./chunk-5ZSO4T2G.js";
@@ -37,4 +38,4 @@ export {
37
38
  isCI,
38
39
  refreshAgentFiles
39
40
  };
40
- //# sourceMappingURL=agent-file-refresh-SGM3523M.js.map
41
+ //# sourceMappingURL=agent-file-refresh-MOEDX5OL.js.map
@@ -1,71 +1,69 @@
1
1
  import {
2
2
  readVersion
3
- } from "./chunk-XBCTTJSQ.js";
4
- import "./chunk-PRSNMSVG.js";
5
- import "./chunk-X4G7FGHS.js";
6
- import "./chunk-7SDCWYAQ.js";
7
- import "./chunk-MOVRSULZ.js";
8
- import "./chunk-ID7MIDLG.js";
9
- import "./chunk-UH5VQGNR.js";
10
- import "./chunk-NJCHWEPU.js";
11
- import "./chunk-GA6HTO3O.js";
12
- import "./chunk-YQQSFS7S.js";
13
- import "./chunk-S4ZWOBRO.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-3OR2RCXJ.js";
4
+ import "./chunk-ZCXWOGFL.js";
5
+ import "./chunk-UN73LNM5.js";
6
+ import "./chunk-KMXXOJL2.js";
7
+ import "./chunk-5Z4WQQHC.js";
8
+ import "./chunk-LLG33KGY.js";
9
+ import "./chunk-JXX2QXPP.js";
10
+ import "./chunk-6TAYTKFM.js";
11
+ import "./chunk-4GI22VPJ.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-LLJL44WF.js";
23
- import "./chunk-V2MIBJZU.js";
24
- import "./chunk-NEPSEJRV.js";
25
- import "./chunk-WGKKDGSA.js";
14
+ import "./chunk-745NOWB7.js";
15
+ import "./chunk-EBSJUSID.js";
16
+ import "./chunk-TEZKQQDT.js";
17
+ import "./chunk-CP7OSHLK.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-52VELHIH.js";
27
+ import "./chunk-CGLYG2VF.js";
28
+ import "./chunk-E7YXNU57.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-Q2KVGISJ.js";
38
+ import "./chunk-5ABAIJVV.js";
39
+ import "./chunk-4GPIOIAC.js";
40
+ import "./chunk-X3LYWTZ5.js";
38
41
  import {
39
42
  AGENT_RULE_BACKENDS
40
- } from "./chunk-7B2KH733.js";
41
- import "./chunk-JTUMJXFN.js";
42
- import "./chunk-XAE4NIZ2.js";
43
+ } from "./chunk-EQ2KB5YF.js";
44
+ import "./chunk-CJIXD67B.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";
65
66
  import "./chunk-X5NF3ZXW.js";
66
- import {
67
- AGENT_SIGNUP_URL
68
- } from "./chunk-VYJYDMY6.js";
69
67
  import {
70
68
  UsageError,
71
69
  detail,
@@ -73,17 +71,18 @@ import {
73
71
  success,
74
72
  unknownSubcommand,
75
73
  writeJson
76
- } from "./chunk-ZHFSIQ6E.js";
77
- import "./chunk-Q4LJCCH5.js";
74
+ } from "./chunk-6534P3VH.js";
75
+ import "./chunk-MGC5S6OE.js";
78
76
  import "./chunk-52QAENY6.js";
79
- import "./chunk-RKTVXFBV.js";
80
- import "./chunk-O2BLNQEC.js";
77
+ import "./chunk-GUHJV7C5.js";
78
+ import "./chunk-EME5G4YP.js";
81
79
  import "./chunk-TPUAXIPR.js";
82
80
  import "./chunk-QDPY7RN3.js";
83
- import "./chunk-Z73I7Q2H.js";
81
+ import "./chunk-CJ5WRCVE.js";
84
82
  import "./chunk-4EVDCSEY.js";
85
83
  import "./chunk-RLQX6LHW.js";
86
84
  import "./chunk-U56HK2RG.js";
85
+ import "./chunk-6SXKKDGF.js";
87
86
  import "./chunk-WAP5362D.js";
88
87
  import "./chunk-GSGDWJB5.js";
89
88
  import "./chunk-FSHW3GQU.js";
@@ -214,8 +213,6 @@ which needs a Xano account.
214
213
 
215
214
  These need the user. Stop and ask, then continue once they are done:
216
215
 
217
- - A Xano account: ask whether they have one; do not guess. If not, sign them up via
218
- ${AGENT_SIGNUP_URL} (their email only; they confirm from an emailed link).
219
216
  - Signing in: \`npx @xano/sdk login\` opens a browser consent. Ask the user to run it
220
217
  in their own terminal. Do not run it yourself.
221
218
 
@@ -413,4 +410,4 @@ function report(verb, outcomes, args) {
413
410
  export {
414
411
  runAgentSkillCommand
415
412
  };
416
- //# sourceMappingURL=agent-skill-command-PZXX7LJD.js.map
413
+ //# sourceMappingURL=agent-skill-command-A4QEVNTP.js.map
@@ -0,0 +1,270 @@
1
+ import {
2
+ environmentCredentialVars
3
+ } from "./chunk-TEZKQQDT.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-SN2UKVC5.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,29 +2,30 @@ import {
2
2
  backendDirFor,
3
3
  backendDirIn,
4
4
  resolveBackendDir
5
- } from "./chunk-Q2KVGISJ.js";
6
- import "./chunk-7B2KH733.js";
7
- import "./chunk-JTUMJXFN.js";
8
- import "./chunk-XAE4NIZ2.js";
5
+ } from "./chunk-X3LYWTZ5.js";
6
+ import "./chunk-EQ2KB5YF.js";
7
+ import "./chunk-CJIXD67B.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-VYJYDMY6.js";
27
- import "./chunk-ZHFSIQ6E.js";
28
+ import "./chunk-6534P3VH.js";
28
29
  import "./chunk-FMXPV5JI.js";
29
30
  import "./chunk-UTI5G6OJ.js";
30
31
  import "./chunk-5ZSO4T2G.js";
@@ -38,4 +39,4 @@ export {
38
39
  projectRootFrom,
39
40
  resolveBackendDir
40
41
  };
41
- //# sourceMappingURL=backend-dir-AZIVCH6Y.js.map
42
+ //# sourceMappingURL=backend-dir-66VVLCUF.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