@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/dist/internal.js CHANGED
@@ -10,9 +10,6 @@ import {
10
10
  bundleCapabilities,
11
11
  capabilityReport
12
12
  } from "./chunk-X5NF3ZXW.js";
13
- import {
14
- AGENT_SIGNUP_URL
15
- } from "./chunk-VYJYDMY6.js";
16
13
  import {
17
14
  COMMANDS,
18
15
  FLAGS,
@@ -23,8 +20,8 @@ import {
23
20
  selectorValues,
24
21
  sourceSpellings,
25
22
  visibleFlags
26
- } from "./chunk-ZHFSIQ6E.js";
27
- import "./chunk-HM5X73PY.js";
23
+ } from "./chunk-6534P3VH.js";
24
+ import "./chunk-WK5QDV25.js";
28
25
  import {
29
26
  GENERATED_STATEMENT_NAMES,
30
27
  HEADER_DUPLICATES,
@@ -68,7 +65,7 @@ import {
68
65
  toolKind,
69
66
  triggerKind,
70
67
  workflowTestKind
71
- } from "./chunk-Q4LJCCH5.js";
68
+ } from "./chunk-MGC5S6OE.js";
72
69
  import {
73
70
  encodeQuery,
74
71
  encodeResponse,
@@ -77,8 +74,8 @@ import {
77
74
  import {
78
75
  encodeWorkspaceConfig,
79
76
  workspaceKind
80
- } from "./chunk-RKTVXFBV.js";
81
- import "./chunk-O2BLNQEC.js";
77
+ } from "./chunk-GUHJV7C5.js";
78
+ import "./chunk-EME5G4YP.js";
82
79
  import {
83
80
  resolveAuthRef
84
81
  } from "./chunk-TPUAXIPR.js";
@@ -104,13 +101,14 @@ import {
104
101
  isQueryExpressionFilter,
105
102
  microserviceKind,
106
103
  registerSpec
107
- } from "./chunk-Z73I7Q2H.js";
104
+ } from "./chunk-CJ5WRCVE.js";
108
105
  import "./chunk-4EVDCSEY.js";
109
106
  import {
110
107
  FILTER_NAMES,
111
108
  FILTER_SPECS
112
109
  } from "./chunk-RLQX6LHW.js";
113
110
  import "./chunk-U56HK2RG.js";
111
+ import "./chunk-6SXKKDGF.js";
114
112
  import {
115
113
  buildMiddlewareBlock,
116
114
  buildWorkspaceHistory,
@@ -172,7 +170,7 @@ import {
172
170
  STATEMENT_SURFACES,
173
171
  TOTAL_STATEMENTS,
174
172
  sPathOf
175
- } from "./chunk-E34VGSCI.js";
173
+ } from "./chunk-7LLVSTXY.js";
176
174
  import "./chunk-EAZTRU75.js";
177
175
  import {
178
176
  toNestedFields
@@ -201,6 +199,89 @@ import "./chunk-OHX6MIUZ.js";
201
199
  import "./chunk-36JUQZVQ.js";
202
200
  import "./chunk-PZ5AY32C.js";
203
201
 
202
+ // src/statements/generated/xano-ai-models.generated.ts
203
+ var XANO_AI_TEXT_MODELS = [
204
+ "gemini-3.8-flash",
205
+ "gemini-4-argon",
206
+ "gemini-3.5-flash-lite",
207
+ "gemini-3.5-flash",
208
+ "claude-fable-5-1",
209
+ "claude-opus-5-5",
210
+ "claude-sonnet-5-5",
211
+ "claude-haiku-5-5"
212
+ ];
213
+ var XANO_AI_IMAGE_MODELS = [
214
+ "gemini-3.1-flash-image",
215
+ "gemini-3-pro-image",
216
+ "gemini-3.1-flash-lite-image",
217
+ "gemini-nano-banana-2.1"
218
+ ];
219
+ var XANO_AI_VIDEO_MODELS = [
220
+ "veo-3.1-fast-generate-001",
221
+ "veo-3.1-generate-001",
222
+ "veo-3.1-lite-generate-001"
223
+ ];
224
+ var XANO_AI_MUSIC_MODELS = [
225
+ "lyria-002",
226
+ "lyria-3-clip-preview",
227
+ "lyria-3-pro-preview"
228
+ ];
229
+ var XANO_AI_SPEECH_MODELS = [
230
+ "gemini-3.8-flash-tts",
231
+ "gemini-3.8-flash-lite-tts"
232
+ ];
233
+ var XANO_AI_SPEECH_VOICES = [
234
+ "Zephyr",
235
+ "Puck",
236
+ "Charon",
237
+ "Kore",
238
+ "Fenrir",
239
+ "Leda",
240
+ "Orus",
241
+ "Aoede",
242
+ "Callirrhoe",
243
+ "Autonoe",
244
+ "Enceladus",
245
+ "Iapetus",
246
+ "Umbriel",
247
+ "Algieba",
248
+ "Despina",
249
+ "Erinome",
250
+ "Algenib",
251
+ "Rasalgethi",
252
+ "Laomedeia",
253
+ "Achernar",
254
+ "Alnilam",
255
+ "Schedar",
256
+ "Gacrux",
257
+ "Pulcherrima",
258
+ "Achird",
259
+ "Zubenelgenubi",
260
+ "Vindemiatrix",
261
+ "Sadachbia",
262
+ "Sadaltager",
263
+ "Sulafat"
264
+ ];
265
+ var XANO_AI_TRANSCRIBE_MODELS = [
266
+ "gemini-3.5-transcribe"
267
+ ];
268
+ var XANO_AI_EMBEDDING_MODELS = [
269
+ "gemini-embedding-2",
270
+ "gemini-embedding-001"
271
+ ];
272
+ var XANO_AI_RERANK_MODELS = [];
273
+ var XANO_AI_SUGGESTIONS = {
274
+ "mvp:ai_text_generate:model": XANO_AI_TEXT_MODELS,
275
+ "mvp:ai_image_generate:model": XANO_AI_IMAGE_MODELS,
276
+ "mvp:ai_video_generate:model": XANO_AI_VIDEO_MODELS,
277
+ "mvp:ai_music_generate:model": XANO_AI_MUSIC_MODELS,
278
+ "mvp:ai_speech_generate:model": XANO_AI_SPEECH_MODELS,
279
+ "mvp:ai_speech_generate:voice": XANO_AI_SPEECH_VOICES,
280
+ "mvp:ai_speech_transcribe:model": XANO_AI_TRANSCRIBE_MODELS,
281
+ "mvp:ai_embedding_create:model": XANO_AI_EMBEDDING_MODELS,
282
+ "mvp:ai_rerank:model": XANO_AI_RERANK_MODELS
283
+ };
284
+
204
285
  // src/statements/byte-evidence.ts
205
286
  var UNCONFIRMED_STATEMENTS = /* @__PURE__ */ new Set([]);
206
287
  var UNCONFIRMED_NOTE = "Built from the engine's schema declaration, with no stored instance behind them to compare the emitted bytes against \u2014 every other statement has one. Fully authorable and not deprecated; the field schema may simply be less exact than the rest. If a deploy rejects one of these, read it as a shape question and pull the workspace back to see what the engine stored, rather than rewriting working code around it.";
@@ -362,6 +443,9 @@ var NAMESPACE_NOTES = {
362
443
  // lines down says it and a call omitting one does not compile. A warning that
363
444
  // restates the type costs every reader of this section and changes nothing an
364
445
  // agent writes.
446
+ // Rendered at the top of `llms/statements-ai.md`, which holds the whole `ai`
447
+ // namespace (see renderSections).
448
+ ai: "On the Xano AI model statements, `model` takes any string and autocompletes the known models; the suggestions come from a snapshot and can lag. For the current list, what each model allows and where it can run, run `npx @xano/sdk ai models --json` (`--all` adds unlisted models). It keys `statements` by short name: `text`\u2192`s.ai.text.generate`, `image`\u2192`s.ai.image.generate`, `video`\u2192`s.ai.video.generate`, `music`\u2192`s.ai.music.generate`, `speech`\u2192`s.ai.speech.generate`, `transcribe`\u2192`s.ai.speech.transcribe`, `embedding`\u2192`s.ai.embedding.create`, `rerank`\u2192`s.ai.rerank`; `agent.models` are the `xano-ai` agent models. Leave `model` out to run the statement's default. `s.ai.text.generate` needs `prompt` or `messages`. \u26A0 `save_to_files` on `s.ai.video.generate`, `s.ai.music.generate` and `s.ai.speech.generate` needs a paid plan (`s.ai.image.generate` does not).",
365
449
  array: '`by` is a `$this` expression, NOT a column name: `by: ref("$this.id")` (warns `stack.array-key-constant`). A predicate\'s `if` binds `$this` only; `$index` only in `partition` (warns `stack.array-index-unbound`).',
366
450
  debug: '`s.debug.stop` is a REAL terminator: it ends the request with HTTP 200 `{ payload, statement: "Stop & Debug" }` (use `s.precondition` for an error status). Also exported flat as `die()`; there is no `s.die`.',
367
451
  "(top-level)": '`s.throw` raises a named error `s.try_catch` catches; uncaught, it answers HTTP 200 `{ payload, statement: "Throw Error" }`, or its `status` (100\u2013599) when it sets one. Inside `s.db.transaction` a throw or failed precondition rolls it back.',
@@ -571,7 +655,44 @@ var STATEMENT_RESULTS = {
571
655
  // factory has no `as` param). Semantics live in llms/statements-runtime.md.
572
656
  "object.keys": { name: "as", type: "(string | number)[]", note: "an integer-like key comes back as a NUMBER (PHP coerces it), not a string" },
573
657
  "object.values": { name: "as", type: "unknown[]" },
574
- "object.entries": { name: "as", type: "{ key: string | number; value: unknown }[]", note: "each entry is a { key, value } OBJECT, NOT a [key, value] tuple; an integer-like key comes back as a number" }
658
+ "object.entries": { name: "as", type: "{ key: string | number; value: unknown }[]", note: "each entry is a { key, value } OBJECT, NOT a [key, value] tuple; an integer-like key comes back as a number" },
659
+ // ai.* — the eight Xano AI statements; mirrors the result types InferResponse traces.
660
+ "ai.text.generate": {
661
+ name: "as",
662
+ type: "{ text: string; json: unknown; model: string; finish_reason: string | null; usage: { input_tokens?: number; output_tokens?: number } }",
663
+ note: 'json is the parsed reply when response_format is "json" (throws if it does not parse), else null. finish_reason is stop | max_tokens | safety | ..., null when none. usage can be {}'
664
+ },
665
+ "ai.image.generate": {
666
+ name: "as",
667
+ type: "{ image: <file resource> | XanoFileRef; text: string; model: string; usage: { input_tokens?: number; output_tokens?: number } }",
668
+ note: 'image is the file resource (pass it to s.storage.create_image to keep it), or the stored file value when save_to_files is "public"/"private". text is "" when the model returns none'
669
+ },
670
+ "ai.video.generate": {
671
+ name: "as",
672
+ type: "{ video: <file resource> | XanoFileRef; model: string; duration: number }",
673
+ note: "video is the file resource, or the stored file value when save_to_files is set. duration in SECONDS"
674
+ },
675
+ "ai.speech.generate": {
676
+ name: "as",
677
+ type: "{ audio: <file resource> | XanoFileRef; model: string; usage: { input_tokens?: number; output_tokens?: number } }",
678
+ note: "audio is the file resource, or the stored file value when save_to_files is set"
679
+ },
680
+ "ai.music.generate": {
681
+ name: "as",
682
+ type: "{ audio: <file resource> | XanoFileRef; model: string; lyrics: string | null; description: string | null }",
683
+ note: "audio is the file resource, or the stored file value when save_to_files is set. lyrics/description are null when the model gives none (some never do)"
684
+ },
685
+ "ai.speech.transcribe": { name: "as", type: "{ text: string; model: string; usage: { input_tokens?: number; output_tokens?: number } }" },
686
+ "ai.embedding.create": {
687
+ name: "as",
688
+ type: "{ embeddings: number[][]; model: string; usage: { input_tokens?: number; output_tokens?: number } }",
689
+ note: "one vector per input, in input order; a single input still binds a list of one \u2014 read embeddings[0]"
690
+ },
691
+ "ai.rerank": {
692
+ name: "as",
693
+ type: "{ results: { index: number; id: string; score: number; content: string }[]; model: string }",
694
+ note: "results best first (top_n limits them). index is the position in documents; id is the document's id, or its index as a string when it had none"
695
+ }
575
696
  };
576
697
  var CONTEXT_FIELD_ENUMS = {
577
698
  "mvp:precondition:error_type": PRECONDITION_ERROR_TYPES,
@@ -595,6 +716,8 @@ function fieldsOf(spec) {
595
716
  const curated = CONTEXT_FIELD_ENUMS[`${spec.name}:${r.field}`];
596
717
  if (r.enum !== void 0) f.enum = r.enum;
597
718
  else if (curated) f.enum = [...curated];
719
+ const examples = r.open && r.route.kind === "input" ? XANO_AI_SUGGESTIONS[`${spec.name}:${r.route.name}`] : void 0;
720
+ if (examples?.length) f.examples = [...examples];
598
721
  return f;
599
722
  });
600
723
  }
@@ -992,7 +1115,7 @@ function renderSections(m) {
992
1115
  "Per-surface detail is in the topic files below: open the one whose condition matches the task.",
993
1116
  "Per-entry detail (a statement's field schema with engine defaults, a filter's full argument",
994
1117
  "list, the `storedName` mapping) is in the shipped `manifest.json` \u2014 do a TARGETED lookup;",
995
- "it is ~70k tokens, so never read it whole. A program imports it as `@xano/sdk/manifest.json`",
1118
+ "it is ~80k tokens, so never read it whole. A program imports it as `@xano/sdk/manifest.json`",
996
1119
  '(Node ESM needs `with { type: "json" }`). Its top-level keys are `' + Object.keys(m).join("`, `") + "`. `statements` and `filters` are ARRAYS, not maps \u2014 SELECT, do not index:",
997
1120
  ` jq '.statements[] | select(.sPath=="db.get")' manifest.json`,
998
1121
  ` jq '.filters[] | select(.name=="json_decode")' manifest.json`,
@@ -1379,9 +1502,6 @@ function renderSections(m) {
1379
1502
  " browser consent no agent can complete. Set all three of `$XANO_INSTANCE_URL`,",
1380
1503
  " `$XANO_WORKSPACE_ID`, `$XANO_META_TOKEN` and run `deploy`/`promote` directly: no disk, no",
1381
1504
  " rotation, so it survives repeated runs.",
1382
- " - Not signed in: ask the human whether they have a Xano account; never guess. No: sign",
1383
- ` them up via ${AGENT_SIGNUP_URL}; it returns this triple once they confirm by email. Yes: the`,
1384
- " human runs `login`.",
1385
1505
  " - The triple outranks every other credential (`--config`, `$XANO_PROFILE` and",
1386
1506
  " `$XANO_REFRESH_TOKEN` included, each named on stderr when displaced). Setting SOME of the",
1387
1507
  " three is a hard error, so a misspelled secret cannot fall through to whatever credential",
@@ -1772,8 +1892,10 @@ function renderSections(m) {
1772
1892
  "- `s.mcp.oauth.request({ request, as? })` \u2014 a pending sign-in's verified details for your `loginUrl` page to show before the user approves: `{ client_name, client_logo, callback_host, client_verified, server_name }`. Does not consume it.",
1773
1893
  "- `s.mcp.oauth.revoke({ mcp_server, user_id? | grant_id? | all?, as? })` \u2014 end hosted sign-ins on a server: EXACTLY ONE of `user_id`, `grant_id`, `all: c.bool(true)`, else `export()` fails (`mcp.oauth-revoke-target`). Binds `{ revoked }`.",
1774
1894
  "- `agent({ name, guid?, description?, docs?, enabled?, canonical?, tags?, history?, llm, tools?, output? })` \u2014 an LLM orchestrator. No top-level `instructions`/`prompt`/`spec` \u2014 the prompt lives under `llm`. Invoke from a stack with `s.ai.agent.run({ agent, args })`.",
1775
- ' - `llm` (REQUIRED): typed provider settings, a discriminated union on `type` (`"xano-free" | "anthropic" | "openai" | "google-genai"`). Shared fields: `systemPrompt?`, `maxSteps?` (default `5`), and `prompt?` XOR `messages?` (mutually exclusive; both is a type error and throws); plus provider fields (`apiKey?`, `model?`, `temperature?`, `reasoningEffort?`, \u2026). String fields accept Twig placeholders \u2014 `{{ $args.x }}` for run inputs (the `args` of `s.ai.agent.run`), `{{ $env.NAME }}` for env vars.',
1895
+ ' - `llm` (REQUIRED): typed provider settings, a discriminated union on `type` (`"xano-free" | "xano-ai" | "anthropic" | "openai" | "google-genai"`). Shared fields: `systemPrompt?`, `maxSteps?` (default `5`), and `prompt?` XOR `messages?` (mutually exclusive; both is a type error and throws); plus provider fields (`apiKey?`, `model?`, `temperature?`, `reasoningEffort?`, \u2026). String fields accept Twig placeholders \u2014 `{{ $args.x }}` for run inputs (the `args` of `s.ai.agent.run`), `{{ $env.NAME }}` for env vars.',
1776
1896
  " - `xano-free` runs only on Xano's cloud: on the Xano Engine on this machine a run fails `ERROR_FATAL` `The free model is not available in this process.` \u2014 use a keyed provider there.",
1897
+ ' - `xano-ai` on the Xano Engine on this machine: each `deploy` (and the restart `local update` makes) gives the engine a Xano AI credential from the `xanosdk login` sign-in \u2014 the profile the project pins, `XANO_PROFILE`, or the default. It lasts as long as the engine runs, A DAY AT MOST, and the next deploy renews it with no restart. Billed to the signed-in user; `--ai-billing instance`, or `"aiBilling": "instance"` under `"xanosdk"."@xano/sdk"` in package.json, bills the owner of the instance signed in to (the flag wins). Without a usable sign-in (none, a pasted meta token, one without Xano AI access) the deploy still succeeds and prints why Xano AI is off and the fix; `--json` carries `ai: { status, billing, expiresAt?, reason? }`. An engine started by an SDK before this needs `xanosdk local stop <name>`, then a deploy.',
1898
+ ' - `xano-ai` runs Xano AI models, with no `apiKey`: `model?` must be a literal name (a `{{ \u2026 }}` or expression THROWS, since the run would use the default model), and `location?` is `"" | "us" | "global" | "eu"` (or a `{{ \u2026 }}` template), set on the agent, not per run (which location wins: `llms/statements-ai.md`). \u26A0 A literal `model` the gateway does not list for agents (`agent.models` in `ai models`) runs the default model instead, with no error.',
1777
1899
  " - `tools?`: same `ToolsetToolEntry[]` as `mcpServer` \u2014 bare `tool()` handles, or a `{ tool, enabled?, auth? }` wrapper when one needs `enabled`/`auth`. A tool reading `auth()` needs the wrapper naming its auth table (see `mcpServer`'s `tools?`).",
1778
1900
  ' - `output?`: `{ schema: Record<string, input.*>, enabled? }` \u2014 structured-output schema. With `tools`, the run executes them first, then shapes its answer into the schema. `schema` is a named-field record authored with the `input.*` catalog, exactly like a `defineFunction`/`query` `input:` map. e.g. `output: { schema: { priority: input.enum(["low","high"]), summary: input.text() } }`. When you pass the agent *handle* to `s.ai.agent.run({ agent })`, `.result` is typed from this schema; `resultShape` only overrides that, or types an agent referenced by bare name.',
1779
1901
  ' - **Run + read recipe (`s.ai.agent.run`):** bind the run to a var (`s.ai.agent.run({ agent, args, as: "run" })`) \u2014 it produces a rich envelope, and the completion is at **`.result`**. Read one structured field with a dotted ref (`response: ref("run.result.priority")`) or the whole completion (`ref("run.result")`, typed from `output.schema`). `args` is a plain object of run inputs (`{ topic: inp("topic") }` \u2014 raw literals are fine, e.g. `{ max_steps: 3 }`) surfaced to the agent as `{{ $args.topic }}`. `.toolCalls` is the FINAL step\'s calls only (often `[]`); every call is a `.steps[].content[]` entry of `type: "tool-call"`. `allowToolExecution` defaults to true. \u26A0 `c.bool(false)` does not hide the tools: the model still emits a call, the call never executes, and the run ends with an empty `result` (warns `stack.agent-tools-off`).',
@@ -2157,7 +2279,7 @@ function renderSections(m) {
2157
2279
  lines.push(
2158
2280
  "Reachable through the `s` namespace: `s.<path>({...})`. Declarative statements",
2159
2281
  "take one typed args object (field names match the engine); every surface's field",
2160
- "signature is in `llms/statements-catalog.md`. Specials (`[special]`) are",
2282
+ "signature is in `llms/statements-catalog.md` (`s.ai.*`: `llms/statements-ai.md`). Specials (`[special]`) are",
2161
2283
  "hand-authored: control flow is below, the rest are in the `llms/statements-*` topic files.",
2162
2284
  "Fields marked `value` take a `Value` (`c.*`/`ref`/`inp`); `comparison` takes an",
2163
2285
  "`expr(...)`. A `\u2192 as: <type>` suffix names what the statement's `as:` output var",
@@ -2470,34 +2592,44 @@ function renderSections(m) {
2470
2592
  "- `s.workflow_test.call({ workflowTest, datasource?, as? })` \u2014 run another workflow test from inside one, which is the only place it runs (see Gotchas in `llms.txt`). NO `input`; `datasource?` has the kind's clone caveat.",
2471
2593
  ""
2472
2594
  ];
2595
+ const AI_NAMESPACE = "ai";
2473
2596
  const groups = /* @__PURE__ */ new Map();
2474
2597
  for (const s of m.statements) {
2475
2598
  if (s.legacy) continue;
2476
2599
  const ns = s.sPath.includes(".") ? s.sPath.slice(0, s.sPath.indexOf(".")) : "(top-level)";
2477
2600
  (groups.get(ns) ?? groups.set(ns, []).get(ns)).push(s);
2478
2601
  }
2602
+ const catalogLine = (s) => {
2603
+ const call = `s.${s.sPath}`;
2604
+ const flags = [s.declarative ? null : "special", s.registered ? null : "unregistered", s.output ? "output" : null].filter(Boolean).join(", ");
2605
+ const flagSuffix = flags ? ` [${flags}]` : "";
2606
+ const resultSuffix = s.result ? ` \u2192 ${s.result.name}: ${s.result.type}${s.result.note ? ` (${s.result.note})` : ""}` : "";
2607
+ if (s.fields) {
2608
+ const args = s.fields.map((f) => fieldLine(f, s.sPath)).join("; ");
2609
+ return `- \`${call}({ ${args} })\`${flagSuffix}${resultSuffix}`;
2610
+ }
2611
+ return `- \`${call}\`${flagSuffix}${resultSuffix}`;
2612
+ };
2479
2613
  const stmtCatalog = [
2480
2614
  "`[special]`: hand-written signature (`llms.txt` Specials, `llms/statements-*`). `[output]`: the engine's output flag; in-place mutators carrying it (`s.math.add`, `bitwise.*`) still take no `as`.",
2481
2615
  ""
2482
2616
  ];
2483
2617
  for (const ns of [...groups.keys()].sort()) {
2618
+ if (ns === AI_NAMESPACE) continue;
2484
2619
  stmtCatalog.push(`### ${ns}`, "");
2485
2620
  const note = NAMESPACE_NOTES[ns];
2486
2621
  if (note) stmtCatalog.push(note, "");
2487
- for (const s of groups.get(ns)) {
2488
- const call = `s.${s.sPath}`;
2489
- const flags = [s.declarative ? null : "special", s.registered ? null : "unregistered", s.output ? "output" : null].filter(Boolean).join(", ");
2490
- const flagSuffix = flags ? ` [${flags}]` : "";
2491
- const resultSuffix = s.result ? ` \u2192 ${s.result.name}: ${s.result.type}${s.result.note ? ` (${s.result.note})` : ""}` : "";
2492
- if (s.fields) {
2493
- const args = s.fields.map((f) => fieldLine(f, s.sPath)).join("; ");
2494
- stmtCatalog.push(`- \`${call}({ ${args} })\`${flagSuffix}${resultSuffix}`);
2495
- } else {
2496
- stmtCatalog.push(`- \`${call}\`${flagSuffix}${resultSuffix}`);
2497
- }
2498
- }
2622
+ for (const s of groups.get(ns)) stmtCatalog.push(catalogLine(s));
2499
2623
  stmtCatalog.push("");
2500
2624
  }
2625
+ const xanoAi = [
2626
+ NAMESPACE_NOTES[AI_NAMESPACE] ?? "",
2627
+ "",
2628
+ '- **Where a call runs (`location`)**, on these statements and on a `xano-ai` agent: its own `location` wins; blank inherits the workspace\'s Xano AI location; blank there too sends none, and the gateway runs the model at its default. An explicit `"global"` opts out of a workspace `"eu"`. A statement refuses, before sending anything, a location its model cannot run at (the model\'s `locations` in `ai models`); an agent\'s location is refused by the gateway instead.',
2629
+ '- **The workspace\'s Xano AI location:** `workspaceConfig({ settings: { ai_settings: { providers: { "xano-ai": { location: "eu" } } } } })`, `"" | "us" | "global" | "eu"`, lowercase (anything else THROWS). A deploy that omits the `xano-ai` block keeps the live location; an empty block or `location: ""` clears it. A merge (`deploy --to`) writes no workspace settings, and `--branch <label>` leaves them alone.',
2630
+ "",
2631
+ ...(groups.get(AI_NAMESPACE) ?? []).map(catalogLine)
2632
+ ];
2501
2633
  const legacy = [];
2502
2634
  const legacyValues = m.values.constructors.filter((v) => v.legacy);
2503
2635
  const legacyStatements = m.statements.filter((s) => s.legacy);
@@ -2582,6 +2714,7 @@ function renderSections(m) {
2582
2714
  stmtRuntime,
2583
2715
  stmtCalls,
2584
2716
  stmtCatalog,
2717
+ xanoAi,
2585
2718
  values,
2586
2719
  fields,
2587
2720
  filters,
@@ -2730,8 +2863,14 @@ function renderDocs(m) {
2730
2863
  {
2731
2864
  path: "llms/statements-catalog.md",
2732
2865
  title: "Statement catalog",
2733
- readWhen: "Read for the field signature of a specific statement \u2014 every surface, grouped by `s.*` namespace.",
2866
+ readWhen: "Read for the field signature of a specific statement \u2014 every surface but `s.ai.*`, grouped by `s.*` namespace.",
2734
2867
  body: s.stmtCatalog
2868
+ },
2869
+ {
2870
+ path: "llms/statements-ai.md",
2871
+ title: "AI statements",
2872
+ readWhen: "Read when the stack calls `s.ai.*` (a Xano AI model, an external MCP server) or you choose where a Xano AI call runs.",
2873
+ body: s.xanoAi
2735
2874
  }
2736
2875
  ];
2737
2876
  const nav = [
@@ -1,23 +1,23 @@
1
+ import {
2
+ exportWorkspaceBundle
3
+ } from "./chunk-KHX6VQ4M.js";
1
4
  import {
2
5
  assertStorageModesKept,
3
6
  discloseTableEffects,
4
7
  droppedAndAdded,
5
8
  tableEffectFields,
6
9
  tableEffectsOf
7
- } from "./chunk-UQNDODRU.js";
8
- import "./chunk-CO7US54H.js";
10
+ } from "./chunk-Z7IINILG.js";
11
+ import "./chunk-X7IBJLAD.js";
9
12
  import {
10
13
  tableRowCounter
11
- } from "./chunk-WLZSKD7E.js";
14
+ } from "./chunk-SQVETROU.js";
12
15
  import {
13
16
  XANOSDK_IMPORT_UNIQUENESS_CODE,
14
17
  XanoSdkImportRefusal,
15
18
  detectXanoSdkImportRoute,
16
19
  xanosdkImport
17
- } from "./chunk-UIHLO3HJ.js";
18
- import {
19
- exportWorkspaceBundle
20
- } from "./chunk-2DUYJR5N.js";
20
+ } from "./chunk-4PHCBKJI.js";
21
21
  import {
22
22
  encodeWorkspaceArchive
23
23
  } from "./chunk-3DRXWLJ5.js";
@@ -30,32 +30,32 @@ import {
30
30
  sectionKind,
31
31
  storedColumnsAfter,
32
32
  tableAdditions
33
- } from "./chunk-3X4B5GWY.js";
34
- import "./chunk-UH5VQGNR.js";
35
- import "./chunk-GA6HTO3O.js";
36
- import "./chunk-G2XSDIYS.js";
33
+ } from "./chunk-P3WIMLG2.js";
34
+ import "./chunk-JXX2QXPP.js";
35
+ import "./chunk-I52AKG2O.js";
37
36
  import "./chunk-2MNLRIOX.js";
38
- import "./chunk-7UQZ7C4W.js";
39
- import "./chunk-SINL5WMI.js";
40
- import "./chunk-ZYZ7GRX3.js";
41
- import "./chunk-AJBOGO5U.js";
37
+ import "./chunk-745NOWB7.js";
38
+ import "./chunk-EBSJUSID.js";
39
+ import {
40
+ seedRowsByTableGuid
41
+ } from "./chunk-LMX4VE4H.js";
42
+ import "./chunk-4DVP42ZC.js";
43
+ import "./chunk-OQMXCNN7.js";
42
44
  import "./chunk-EUUUMY7J.js";
45
+ import "./chunk-5ABAIJVV.js";
46
+ import "./chunk-4GPIOIAC.js";
47
+ import "./chunk-HU7F56VF.js";
43
48
  import {
44
49
  shellWord
45
50
  } from "./chunk-FWD7AL6N.js";
46
- import {
47
- UNTRUSTED_CERTIFICATE
48
- } from "./chunk-NH5Z2NOD.js";
49
51
  import "./chunk-4KHEMC32.js";
50
- import {
51
- seedRowsByTableGuid
52
- } from "./chunk-WGGATSIP.js";
53
- import "./chunk-IFHFJR5O.js";
54
52
  import "./chunk-LLNZGEFK.js";
55
- import "./chunk-HU7F56VF.js";
56
- import "./chunk-MF4W6FHU.js";
53
+ import "./chunk-4Y3SWNPE.js";
54
+ import {
55
+ UNTRUSTED_CERTIFICATE
56
+ } from "./chunk-QZ2PC6B7.js";
57
+ import "./chunk-Q4R2ABFL.js";
57
58
  import "./chunk-X2NL4KUO.js";
58
- import "./chunk-4GPIOIAC.js";
59
59
  import "./chunk-3YW23UFH.js";
60
60
  import {
61
61
  CliError,
@@ -63,11 +63,12 @@ import {
63
63
  displayPath,
64
64
  warn,
65
65
  withSpinner
66
- } from "./chunk-ZHFSIQ6E.js";
67
- import "./chunk-RKTVXFBV.js";
66
+ } from "./chunk-6534P3VH.js";
67
+ import "./chunk-GUHJV7C5.js";
68
68
  import "./chunk-QDPY7RN3.js";
69
69
  import "./chunk-RLQX6LHW.js";
70
70
  import "./chunk-U56HK2RG.js";
71
+ import "./chunk-6SXKKDGF.js";
71
72
  import "./chunk-WAP5362D.js";
72
73
  import "./chunk-FSHW3GQU.js";
73
74
  import "./chunk-ERVIASGL.js";
@@ -88,7 +89,7 @@ import "./chunk-G6BEJ3NA.js";
88
89
  import "./chunk-F3JK5RIY.js";
89
90
  import "./chunk-TFFGOFVZ.js";
90
91
  import "./chunk-EHP3WPEG.js";
91
- import "./chunk-PKBC7G5H.js";
92
+ import "./chunk-XDIPEWLU.js";
92
93
  import "./chunk-EAZTRU75.js";
93
94
  import "./chunk-FTFAPKCW.js";
94
95
  import "./chunk-SIW2HT2H.js";
@@ -200,7 +201,7 @@ async function unreachableProbeError(err, req) {
200
201
  }
201
202
  const serverError = typeof status === "number" && (status >= 500 || status === 429) && answered !== null;
202
203
  if (reach === null && !serverError || req.rerun === void 0) return err;
203
- const { LookupFailedError, rateLimitedCause } = await import("./source-resolve-LP6MCOQX.js");
204
+ const { LookupFailedError, rateLimitedCause } = await import("./source-resolve-MAMVIHDF.js");
204
205
  const failed = new LookupFailedError(
205
206
  reach !== null ? `Could not reach ${req.label} to ask whether it can merge (${reach[1]}). ${reach[1].includes(UNTRUSTED_CERTIFICATE) ? "A certificate problem" : "A network failure"} \u2014 nothing was sent and its data is untouched` : `${req.label[0].toUpperCase()}${req.label.slice(1)} answered the check whether it can merge with ${status === 429 ? "its rate limit" : "a server error"} (${answered[1].replace(/\.$/, "")}). ${status === 429 ? `${rateLimitedCause()}: nothing` : "Nothing"} was sent and its data is untouched`,
206
207
  "unreachable",
@@ -213,7 +214,7 @@ async function unreachableProbeError(err, req) {
213
214
  }
214
215
  async function unansweredReadError(err, req) {
215
216
  if (req.rerun === void 0) return err;
216
- const { LookupFailedError, isRateLimited, isServerError, isTransportFailure, unansweredCause } = await import("./source-resolve-LP6MCOQX.js");
217
+ const { LookupFailedError, isRateLimited, isServerError, isTransportFailure, unansweredCause } = await import("./source-resolve-MAMVIHDF.js");
217
218
  const transport = isTransportFailure(err);
218
219
  if (!transport && !isServerError(err)) return err;
219
220
  const first = ((err instanceof Error ? err.message : String(err)).trim().split("\n")[0] ?? "").replace(/[.:]$/, "");
@@ -1116,4 +1117,4 @@ export {
1116
1117
  unansweredReadError,
1117
1118
  unreachableProbeError
1118
1119
  };
1119
- //# sourceMappingURL=keep-data-merge-CHOKIJS5.js.map
1120
+ //# sourceMappingURL=keep-data-merge-NXP77QML.js.map
@@ -6,39 +6,40 @@ import {
6
6
  recordForeignLanding,
7
7
  recordLanding,
8
8
  unvouchedIdentities
9
- } from "./chunk-OJFBI5C6.js";
10
- import "./chunk-7ZVQIKNL.js";
11
- import "./chunk-WGKKDGSA.js";
9
+ } from "./chunk-7Z43XRBL.js";
10
+ import "./chunk-DAXFWXSV.js";
12
11
  import "./chunk-ZYJP6BOO.js";
12
+ import "./chunk-7ZVQIKNL.js";
13
+ import "./chunk-2H5BQRHF.js";
13
14
  import "./chunk-QO6BVGS5.js";
14
- import "./chunk-YYDM4DNP.js";
15
- import "./chunk-ZYZ7GRX3.js";
16
- import "./chunk-AJBOGO5U.js";
15
+ import "./chunk-TDSRZDQP.js";
16
+ import "./chunk-4DVP42ZC.js";
17
+ import "./chunk-OQMXCNN7.js";
17
18
  import "./chunk-EUUUMY7J.js";
18
- import "./chunk-Q2KVGISJ.js";
19
- import "./chunk-7B2KH733.js";
20
- import "./chunk-JTUMJXFN.js";
21
- import "./chunk-XAE4NIZ2.js";
19
+ import "./chunk-5ABAIJVV.js";
20
+ import "./chunk-4GPIOIAC.js";
21
+ import "./chunk-X3LYWTZ5.js";
22
+ import "./chunk-EQ2KB5YF.js";
23
+ import "./chunk-CJIXD67B.js";
24
+ import "./chunk-HU7F56VF.js";
25
+ import "./chunk-7J7YRAZB.js";
22
26
  import "./chunk-ZFDZKNGG.js";
23
27
  import "./chunk-FWD7AL6N.js";
24
- import "./chunk-YYBBJPCL.js";
25
- import "./chunk-DXUICABI.js";
26
- import "./chunk-NH5Z2NOD.js";
28
+ import "./chunk-IUBGFCJJ.js";
29
+ import "./chunk-37BT62SX.js";
27
30
  import "./chunk-4KHEMC32.js";
28
- import "./chunk-2H5BQRHF.js";
29
31
  import "./chunk-DNBP4GJN.js";
30
- import "./chunk-XDGLYIB2.js";
32
+ import "./chunk-DORGB2Y2.js";
31
33
  import "./chunk-WAVNUTMT.js";
32
- import "./chunk-IFHFJR5O.js";
34
+ import "./chunk-LZDH5COS.js";
33
35
  import "./chunk-LLNZGEFK.js";
34
- import "./chunk-HU7F56VF.js";
35
- import "./chunk-MF4W6FHU.js";
36
+ import "./chunk-4Y3SWNPE.js";
37
+ import "./chunk-QZ2PC6B7.js";
38
+ import "./chunk-Q4R2ABFL.js";
36
39
  import "./chunk-X2NL4KUO.js";
37
- import "./chunk-4GPIOIAC.js";
38
40
  import "./chunk-RHH6SCB4.js";
39
41
  import "./chunk-LJM5CIY4.js";
40
- import "./chunk-VYJYDMY6.js";
41
- import "./chunk-ZHFSIQ6E.js";
42
+ import "./chunk-6534P3VH.js";
42
43
  import "./chunk-FMXPV5JI.js";
43
44
  import "./chunk-UTI5G6OJ.js";
44
45
  import "./chunk-VQDVEHDB.js";
@@ -60,4 +61,4 @@ export {
60
61
  recordLanding,
61
62
  unvouchedIdentities
62
63
  };
63
- //# sourceMappingURL=landing-record-KJTRWFK6.js.map
64
+ //# sourceMappingURL=landing-record-MK44WCRY.js.map
@@ -19,8 +19,9 @@ import {
19
19
  tableAdditions,
20
20
  uniqueIndexLabels,
21
21
  vectorSize
22
- } from "./chunk-3X4B5GWY.js";
23
- import "./chunk-RKTVXFBV.js";
22
+ } from "./chunk-P3WIMLG2.js";
23
+ import "./chunk-GUHJV7C5.js";
24
+ import "./chunk-6SXKKDGF.js";
24
25
  import "./chunk-WAP5362D.js";
25
26
  import "./chunk-ERVIASGL.js";
26
27
  import "./chunk-JHAZK4RY.js";
@@ -29,7 +30,7 @@ import "./chunk-VQDVEHDB.js";
29
30
  import "./chunk-5ZSO4T2G.js";
30
31
  import "./chunk-VQPDATQT.js";
31
32
  import "./chunk-F3JK5RIY.js";
32
- import "./chunk-PKBC7G5H.js";
33
+ import "./chunk-XDIPEWLU.js";
33
34
  import "./chunk-EAZTRU75.js";
34
35
  import "./chunk-FTFAPKCW.js";
35
36
  import "./chunk-SIW2HT2H.js";
@@ -63,4 +64,4 @@ export {
63
64
  uniqueIndexLabels,
64
65
  vectorSize
65
66
  };
66
- //# sourceMappingURL=live-diff-YOFOJCFX.js.map
67
+ //# sourceMappingURL=live-diff-GZ6JUNP6.js.map
@@ -0,0 +1,47 @@
1
+ import {
2
+ ENGINE_TOKEN_ROUTE,
3
+ aiOutcomeDocument,
4
+ aiOutcomeLine,
5
+ readOrCreateMachineId,
6
+ requestEngineAiCredential
7
+ } from "./chunk-CBACTYIC.js";
8
+ import "./chunk-TEZKQQDT.js";
9
+ import "./chunk-DAXFWXSV.js";
10
+ import "./chunk-ZYJP6BOO.js";
11
+ import "./chunk-FVZ5C3PF.js";
12
+ import "./chunk-RQGSZ7AR.js";
13
+ import "./chunk-2H5BQRHF.js";
14
+ import "./chunk-QO6BVGS5.js";
15
+ import "./chunk-TDSRZDQP.js";
16
+ import "./chunk-OQMXCNN7.js";
17
+ import "./chunk-EUUUMY7J.js";
18
+ import "./chunk-5ABAIJVV.js";
19
+ import "./chunk-4GPIOIAC.js";
20
+ import "./chunk-HU7F56VF.js";
21
+ import "./chunk-FWD7AL6N.js";
22
+ import "./chunk-LLNZGEFK.js";
23
+ import "./chunk-4Y3SWNPE.js";
24
+ import "./chunk-QZ2PC6B7.js";
25
+ import "./chunk-Q4R2ABFL.js";
26
+ import "./chunk-X2NL4KUO.js";
27
+ import "./chunk-6534P3VH.js";
28
+ import "./chunk-FMXPV5JI.js";
29
+ import "./chunk-UTI5G6OJ.js";
30
+ import "./chunk-VQDVEHDB.js";
31
+ import "./chunk-5ZSO4T2G.js";
32
+ import "./chunk-VQPDATQT.js";
33
+ import "./chunk-TFFGOFVZ.js";
34
+ import "./chunk-FTS42N37.js";
35
+ import "./chunk-4BW2SG2N.js";
36
+ import "./chunk-SGEOXJIH.js";
37
+ import "./chunk-OHX6MIUZ.js";
38
+ import "./chunk-36JUQZVQ.js";
39
+ import "./chunk-PZ5AY32C.js";
40
+ export {
41
+ ENGINE_TOKEN_ROUTE,
42
+ aiOutcomeDocument,
43
+ aiOutcomeLine,
44
+ readOrCreateMachineId,
45
+ requestEngineAiCredential
46
+ };
47
+ //# sourceMappingURL=local-engine-ai-3XLJLOBP.js.map