@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
@@ -9,50 +9,41 @@ import {
9
9
  staticRetryHint,
10
10
  unknownStaticOutcome,
11
11
  warnStaticTeardown
12
- } from "./chunk-MSYMEP7Y.js";
12
+ } from "./chunk-DJ7JH4UE.js";
13
+ import {
14
+ recordSync
15
+ } from "./chunk-OSMPI45P.js";
13
16
  import {
14
17
  objectDigests,
15
18
  syncDigests
16
- } from "./chunk-OJ6YGRPV.js";
19
+ } from "./chunk-YAZEB255.js";
17
20
  import {
18
21
  archiveSeedContent
19
- } from "./chunk-CRCYD6AK.js";
22
+ } from "./chunk-BFM2P47R.js";
20
23
  import {
21
24
  shownLabel
22
- } from "./chunk-EXY42CTV.js";
25
+ } from "./chunk-T6GI2AFJ.js";
23
26
  import {
24
27
  confirm,
25
28
  needsConfirmation
26
- } from "./chunk-AICWDCLJ.js";
29
+ } from "./chunk-BBFHZMQA.js";
27
30
  import {
28
31
  assertStorageModesKept,
29
32
  discloseCanonicalMoves,
30
33
  movesClause,
31
34
  storageChangesPayload
32
- } from "./chunk-UQNDODRU.js";
35
+ } from "./chunk-Z7IINILG.js";
33
36
  import {
34
37
  listTables,
35
38
  tableRowCounter,
36
39
  tableRowIds
37
- } from "./chunk-WLZSKD7E.js";
40
+ } from "./chunk-SQVETROU.js";
38
41
  import {
39
42
  landedRecordFor,
40
43
  landingLockPath,
41
44
  recordForeignLanding,
42
45
  recordLanding
43
- } from "./chunk-OJFBI5C6.js";
44
- import {
45
- recordSync
46
- } from "./chunk-EPB6FAR5.js";
47
- import {
48
- XANOSDK_IMPORT_CONFLICT_CODE,
49
- XANOSDK_IMPORT_UNIQUENESS_CODE,
50
- XanoSdkImportRefusal,
51
- xanosdkImport
52
- } from "./chunk-UIHLO3HJ.js";
53
- import {
54
- encodeWorkspaceArchive
55
- } from "./chunk-3DRXWLJ5.js";
46
+ } from "./chunk-7Z43XRBL.js";
56
47
  import {
57
48
  DEFAULT_BRANCH_LABEL,
58
49
  assertBranchAbsent,
@@ -62,7 +53,16 @@ import {
62
53
  listBranchListing,
63
54
  liveBranchLabel,
64
55
  setLiveBranch
65
- } from "./chunk-54CJ74BH.js";
56
+ } from "./chunk-C7KO5KKB.js";
57
+ import {
58
+ XANOSDK_IMPORT_CONFLICT_CODE,
59
+ XANOSDK_IMPORT_UNIQUENESS_CODE,
60
+ XanoSdkImportRefusal,
61
+ xanosdkImport
62
+ } from "./chunk-4PHCBKJI.js";
63
+ import {
64
+ encodeWorkspaceArchive
65
+ } from "./chunk-3DRXWLJ5.js";
66
66
  import {
67
67
  compareToLive,
68
68
  envValuesOf,
@@ -73,63 +73,63 @@ import {
73
73
  sharedSchemaChanges,
74
74
  storedColumnsAfter,
75
75
  uniqueIndexLabels
76
- } from "./chunk-3X4B5GWY.js";
76
+ } from "./chunk-P3WIMLG2.js";
77
77
  import {
78
78
  assertBundleFile,
79
79
  assertBundleInput,
80
80
  loadBundleText,
81
81
  resolveLockPath
82
- } from "./chunk-XBCTTJSQ.js";
82
+ } from "./chunk-3OR2RCXJ.js";
83
83
  import {
84
84
  LookupFailedError,
85
85
  isUnansweredLookup,
86
86
  unansweredCause
87
- } from "./chunk-ID7MIDLG.js";
87
+ } from "./chunk-LLG33KGY.js";
88
88
  import {
89
89
  isSignatureRefusal
90
- } from "./chunk-GA6HTO3O.js";
90
+ } from "./chunk-EBSJUSID.js";
91
91
  import {
92
92
  getAccessToken
93
- } from "./chunk-YQQSFS7S.js";
93
+ } from "./chunk-TEZKQQDT.js";
94
+ import {
95
+ ephemeralLandedOn
96
+ } from "./chunk-DAXFWXSV.js";
97
+ import {
98
+ seedRowsByTableGuid
99
+ } from "./chunk-LMX4VE4H.js";
94
100
  import {
95
101
  readLockFile
96
102
  } from "./chunk-7ZVQIKNL.js";
97
103
  import {
98
- ephemeralLandedOn
99
- } from "./chunk-WGKKDGSA.js";
104
+ destinationKey,
105
+ groupNames,
106
+ isEphemeralDestinationKey,
107
+ landedIdentities,
108
+ landedKeyForRow,
109
+ storedColumnsOf,
110
+ withStoredColumns
111
+ } from "./chunk-2H5BQRHF.js";
100
112
  import {
101
113
  pipedYes,
102
114
  retryCommand,
103
115
  withheldNote
104
- } from "./chunk-GJZMKMWO.js";
116
+ } from "./chunk-PC7XEO7F.js";
105
117
  import {
106
118
  contextFlags
107
- } from "./chunk-ZYZ7GRX3.js";
119
+ } from "./chunk-4DVP42ZC.js";
108
120
  import {
109
121
  backendDirIn
110
- } from "./chunk-Q2KVGISJ.js";
122
+ } from "./chunk-X3LYWTZ5.js";
111
123
  import {
112
124
  shellWord
113
125
  } from "./chunk-FWD7AL6N.js";
114
- import {
115
- TransportError,
116
- isTimeoutError
117
- } from "./chunk-NH5Z2NOD.js";
118
126
  import {
119
127
  describeWrite
120
128
  } from "./chunk-4KHEMC32.js";
121
129
  import {
122
- seedRowsByTableGuid
123
- } from "./chunk-WGGATSIP.js";
124
- import {
125
- destinationKey,
126
- groupNames,
127
- isEphemeralDestinationKey,
128
- landedIdentities,
129
- landedKeyForRow,
130
- storedColumnsOf,
131
- withStoredColumns
132
- } from "./chunk-2H5BQRHF.js";
130
+ TransportError,
131
+ isTimeoutError
132
+ } from "./chunk-QZ2PC6B7.js";
133
133
  import {
134
134
  CliError,
135
135
  EXIT_OUTCOME_UNKNOWN,
@@ -149,7 +149,7 @@ import {
149
149
  warn,
150
150
  writeJson,
151
151
  writeTargetPayload
152
- } from "./chunk-ZHFSIQ6E.js";
152
+ } from "./chunk-6534P3VH.js";
153
153
  import {
154
154
  calcSignatureJson,
155
155
  signatureHolds
@@ -637,7 +637,7 @@ function isTransientReadFailure(err) {
637
637
  return isUnansweredLookup(err);
638
638
  }
639
639
  async function readLive(auth, dest, branch) {
640
- const { exportWorkspaceBundle } = await import("./workspace-export-3KMWNZDD.js");
640
+ const { exportWorkspaceBundle } = await import("./workspace-export-A4L6272C.js");
641
641
  let failure;
642
642
  for (let attempt = 0; attempt <= LIVE_READ_RETRY_PAUSES_MS.length; attempt++) {
643
643
  try {
@@ -744,7 +744,7 @@ function targetIsEmpty(live) {
744
744
  async function convergedWithLive(live, req, outgoingBundle, pinned) {
745
745
  if (live === void 0 || req.mode !== "merge") return false;
746
746
  if (req.records === true || req.truncate === true) return false;
747
- const { compareToLive: compareToLive2 } = await import("./live-diff-YOFOJCFX.js");
747
+ const { compareToLive: compareToLive2 } = await import("./live-diff-GZ6JUNP6.js");
748
748
  let result;
749
749
  try {
750
750
  result = compareToLive2(
@@ -765,7 +765,7 @@ async function convergedWithLive(live, req, outgoingBundle, pinned) {
765
765
  async function unchangedWithLive(live, req, outgoingBundle, pinned) {
766
766
  if (live === void 0 || req.mode !== "merge") return void 0;
767
767
  if (req.records === true || req.truncate === true) return void 0;
768
- const { compareToLive: compareToLive2, declaredLabels, payloadOf: payloadOf2, SETTINGS_LABEL } = await import("./live-diff-YOFOJCFX.js");
768
+ const { compareToLive: compareToLive2, declaredLabels, payloadOf: payloadOf2, SETTINGS_LABEL } = await import("./live-diff-GZ6JUNP6.js");
769
769
  try {
770
770
  const outgoing = JSON.parse(outgoingBundle);
771
771
  const result = compareToLive2(outgoing, live, new Set(pinned.map((p) => `${p.payloadKey}:${p.name}`)), {
@@ -793,7 +793,7 @@ function markUnchanged(presented, unchanged, noun) {
793
793
  }
794
794
  var REPLACE_DROPS = "which deletes every table's rows there (only seed rows come back)";
795
795
  async function replaceCommandHint(args) {
796
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-SX4DWRVS.js");
796
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-WOHYD22D.js");
797
797
  const valued = /* @__PURE__ */ new Set(["--branch", "--backup-branch", "--expect-live"]);
798
798
  const dropped = /* @__PURE__ */ new Set(["--prune", "--reset-data", "--seed", "--set-live", "--dry-run", "--replace", "--yes", "-y"]);
799
799
  const argv = [];
@@ -824,7 +824,7 @@ function landingTableFields(losses) {
824
824
  };
825
825
  }
826
826
  async function warnAboutLiveLosses(live, req, outgoingBundle, setWhere = "workspace", fromBundle = false, replaceHint = "`xanosdk deploy <source> --to <destination> --replace`.", noun = "workspace", failure, stored) {
827
- const { NO_TABLE_EFFECTS, tableEffectsOf, discloseTableEffects, tableEffectFields, alteringChanges, droppedAndAdded } = await import("./plan-disclosure-XTAEE4BE.js");
827
+ const { NO_TABLE_EFFECTS, tableEffectsOf, discloseTableEffects, tableEffectFields, alteringChanges, droppedAndAdded } = await import("./plan-disclosure-5HM7CMRW.js");
828
828
  const none = {
829
829
  ...tableEffectFields(NO_TABLE_EFFECTS),
830
830
  renamedTables: [],
@@ -843,7 +843,7 @@ async function warnAboutLiveLosses(live, req, outgoingBundle, setWhere = "worksp
843
843
  blank();
844
844
  return none;
845
845
  }
846
- const { diffAgainstLive, tableAdditions } = await import("./live-diff-YOFOJCFX.js");
846
+ const { diffAgainstLive, tableAdditions } = await import("./live-diff-GZ6JUNP6.js");
847
847
  let diff;
848
848
  let additions;
849
849
  try {
@@ -1273,10 +1273,10 @@ function refuseOrReport(args, message, result, details, code = "SDK_SHARED_SCHEM
1273
1273
  return result;
1274
1274
  }
1275
1275
  async function assertWorkspaceUnchanged(args, ctx) {
1276
- const { readSyncBaseline } = await import("./sync-record-AWFCSS4D.js");
1276
+ const { readSyncBaseline } = await import("./sync-record-UFEJDNLR.js");
1277
1277
  const baseline = readSyncBaseline(ctx.lockPath, ctx.target);
1278
1278
  if (baseline === void 0) return [];
1279
- const { directedComparison } = await import("./sync-baseline-LSGKNCKM.js");
1279
+ const { directedComparison } = await import("./sync-baseline-XLRJQZCS.js");
1280
1280
  let compared;
1281
1281
  try {
1282
1282
  compared = directedComparison(
@@ -1609,7 +1609,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
1609
1609
  const held = guidsOf(live);
1610
1610
  const codePinned = codePinnedTables(outgoingDoc, lock, classified);
1611
1611
  const { orphanFixUps } = await import("./cli.js");
1612
- const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-CHOKIJS5.js");
1612
+ const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-NXP77QML.js");
1613
1613
  const run = (line) => (line ?? "").replace(/^(renamed|deleted)\? run: /, "");
1614
1614
  const out = [];
1615
1615
  const seen = /* @__PURE__ */ new Set();
@@ -1653,7 +1653,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
1653
1653
  return out;
1654
1654
  }
1655
1655
  async function pendingRenameRefusal(frame, pending, prune, branch) {
1656
- const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-CHOKIJS5.js");
1656
+ const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-NXP77QML.js");
1657
1657
  const one = pending.length === 1;
1658
1658
  const lines = pending.flatMap(
1659
1659
  (p) => pendingRenameLines(
@@ -2109,7 +2109,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2109
2109
  assertBundleFile(args, { command: "deploy" });
2110
2110
  const auth = opts.auth ?? await getAccessToken(args);
2111
2111
  const withSeed = req.mode === "replace" || req.records === true;
2112
- const { discoverToolchainPlugins } = await import("./toolchain-modules-GQIMMMZL.js");
2112
+ const { discoverToolchainPlugins } = await import("./toolchain-modules-V56JXU2E.js");
2113
2113
  const toolchain = await discoverToolchainPlugins(process.cwd(), { frozen: args.frozenLock === true });
2114
2114
  const loaded = await loadBundleText(
2115
2115
  args.dryRun ? { ...args, lockReadOnly: true } : args,
@@ -2135,15 +2135,15 @@ async function runReleaseCommand(args, dest, opts = {}) {
2135
2135
  });
2136
2136
  };
2137
2137
  if (!args.dryRun && args.file !== void 0) {
2138
- const { ignoreBackendSecretFilesRead } = await import("./deploy-command-SX4DWRVS.js");
2138
+ const { ignoreBackendSecretFilesRead } = await import("./deploy-command-WOHYD22D.js");
2139
2139
  await ignoreBackendSecretFilesRead(args);
2140
2140
  }
2141
2141
  if (args.static !== void 0) {
2142
- const { assertNoSeedLeaks } = await import("./deploy-command-SX4DWRVS.js");
2142
+ const { assertNoSeedLeaks } = await import("./deploy-command-WOHYD22D.js");
2143
2143
  await assertNoSeedLeaks(args.static, nonPublicSeedValues);
2144
2144
  }
2145
2145
  {
2146
- const { runBundleHooks } = await import("./toolchain-hooks-IJWV3ZQS.js");
2146
+ const { runBundleHooks } = await import("./toolchain-hooks-IRPM6LYL.js");
2147
2147
  const { readVersion } = await import("./cli.js");
2148
2148
  await runBundleHooks(
2149
2149
  toolchain.loaded,
@@ -2249,8 +2249,8 @@ async function runReleaseCommand(args, dest, opts = {}) {
2249
2249
  pinned: pinned.map((p) => p.guid).filter((g) => g !== void 0)
2250
2250
  }).catch(async (err) => {
2251
2251
  if (err instanceof XanoSdkImportRefusal && err.retryable) {
2252
- const { importInProgressError } = await import("./keep-data-merge-CHOKIJS5.js");
2253
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2252
+ const { importInProgressError } = await import("./keep-data-merge-NXP77QML.js");
2253
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2254
2254
  const retry = retryCommand2(args);
2255
2255
  throw importInProgressError(
2256
2256
  describeWriteTarget({ base: destBase, workspaceId, label: destShownLabel }),
@@ -2384,10 +2384,10 @@ async function runReleaseCommand(args, dest, opts = {}) {
2384
2384
  });
2385
2385
  })() : [];
2386
2386
  if (req.mode === "merge" && destIsTenant && live !== void 0 && !dryRunUpToDate) {
2387
- const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-CHOKIJS5.js");
2387
+ const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-NXP77QML.js");
2388
2388
  const triggers = liveTableTriggers(live);
2389
2389
  if (triggers.length > 0) {
2390
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2390
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2391
2391
  const replace = retryCommand2(args, { add: ["--replace"], drop: ["--prune", "--yes", "-y"] });
2392
2392
  throw tableTriggerMergeError(destNoun, triggers, {
2393
2393
  command: replace.command,
@@ -2396,7 +2396,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2396
2396
  }
2397
2397
  }
2398
2398
  if (req.mode === "merge" && live !== void 0 && !dryRunUpToDate && losses.storageChanges.length > 0) {
2399
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2399
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2400
2400
  const replace = retryCommand2(args, { add: ["--replace"], drop: ["--prune", "--yes", "-y"] });
2401
2401
  await assertStorageModesKept(losses.storageChanges, tableRowCounter(auth, { workspaceId, base: destBase }), {
2402
2402
  target: destNoun,
@@ -2483,7 +2483,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2483
2483
  assertLiveWorkspaceWasRead(live, destNoun, scopeBranch, liveRead.failure, liveKind);
2484
2484
  reportPlannedCanonicalMoves(canonicalMoves, "will", movesWhen);
2485
2485
  if (req.branch !== void 0 && args.setLive && !args.yes && process.stdin.isTTY !== true) {
2486
- const { yesRerun } = await import("./retry-command-WP4ZI6CJ.js");
2486
+ const { yesRerun } = await import("./retry-command-HG4IFE65.js");
2487
2487
  const { rerun, note } = yesRerun(args, "deploy");
2488
2488
  throw needsConfirmation(
2489
2489
  `Make "${req.branch}" the live branch?${movesClause(canonicalMoves)} (or drop --set-live to stage it)`,
@@ -2523,7 +2523,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
2523
2523
  syncBaseline: null,
2524
2524
  ...seeded.length > 0 ? { seedRows: seeded } : {}
2525
2525
  });
2526
- const { yesRerun } = await import("./retry-command-WP4ZI6CJ.js");
2526
+ const { yesRerun } = await import("./retry-command-HG4IFE65.js");
2527
2527
  const { rerun, note } = yesRerun(args, "deploy");
2528
2528
  const ok = await confirm(`Apply this plan to ${destNoun}?${seedOverwriteClause(seeded)}${movesClause(canonicalMoves, movesWhen === void 0 ? "It" : "Once live, it")}`, {
2529
2529
  flag: "--yes",
@@ -2570,7 +2570,7 @@ Retry, or drop \`--backup-branch\` to deploy without one.`,
2570
2570
  );
2571
2571
  } catch (err) {
2572
2572
  if (err instanceof XanoSdkImportRefusal) {
2573
- const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-WP4ZI6CJ.js");
2573
+ const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
2574
2574
  const retry = retryCommand2(args);
2575
2575
  reportApplyRefusal(
2576
2576
  err,
@@ -2767,7 +2767,7 @@ Retry, or drop \`--backup-branch\` to deploy without one.`,
2767
2767
  if (isMachineOutput(args)) writeJson(summary);
2768
2768
  assertStaticMatchesServedUrls(servedDifferences, planContext);
2769
2769
  }
2770
- const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-SX4DWRVS.js");
2770
+ const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-WOHYD22D.js");
2771
2771
  const env = buildStaticEnv(destBase, args.staticEnv);
2772
2772
  const explicit = Object.keys(args.staticEnv).length > 0;
2773
2773
  const to = dest?.kind === "tenant" ? `${dest.type === "ephemeral" ? "ephemeral" : "tenant"}:${dest.name ?? ""}` : "workspace";
@@ -2819,14 +2819,14 @@ function setLiveRollback(previous, args) {
2819
2819
  async function assertReleaseIdentitiesFree(args, auth, opts) {
2820
2820
  const tenant = opts.tenant;
2821
2821
  const target = tenant === void 0 ? { baseUrl: auth.instance, workspaceId: auth.workspaceId } : { baseUrl: tenant.base, workspaceId: tenant.workspaceId };
2822
- const { detectXanoSdkImportRoute } = await import("./xanosdk-import-562F4G3K.js");
2822
+ const { detectXanoSdkImportRoute } = await import("./xanosdk-import-FENZ7XMW.js");
2823
2823
  let capable;
2824
2824
  try {
2825
2825
  capable = await detectXanoSdkImportRoute(auth, target);
2826
2826
  } catch (err) {
2827
2827
  if (err?.status === 501) capable = false;
2828
2828
  else {
2829
- const { unreachableProbeError } = await import("./keep-data-merge-CHOKIJS5.js");
2829
+ const { unreachableProbeError } = await import("./keep-data-merge-NXP77QML.js");
2830
2830
  const retry = retryCommand(args, {
2831
2831
  add: pipedYes(args) === "" ? [] : ["--yes"],
2832
2832
  command: [opts.verb, ...args.positionals.map(shellWord)].join(" ")
@@ -2915,4 +2915,4 @@ export {
2915
2915
  setLiveRollback,
2916
2916
  assertReleaseIdentitiesFree
2917
2917
  };
2918
- //# sourceMappingURL=chunk-OO2JDYQH.js.map
2918
+ //# sourceMappingURL=chunk-MAAQ4ZSN.js.map
@@ -10,13 +10,13 @@ import {
10
10
  } from "./chunk-52QAENY6.js";
11
11
  import {
12
12
  workspaceKind
13
- } from "./chunk-RKTVXFBV.js";
13
+ } from "./chunk-GUHJV7C5.js";
14
14
  import {
15
15
  Xano,
16
16
  encodeMcpOauth,
17
17
  refuseUnknown,
18
18
  standaloneDefKind
19
- } from "./chunk-O2BLNQEC.js";
19
+ } from "./chunk-EME5G4YP.js";
20
20
  import {
21
21
  resolveAuthRef
22
22
  } from "./chunk-TPUAXIPR.js";
@@ -65,10 +65,13 @@ import {
65
65
  registerSpec,
66
66
  resolveEnumValue,
67
67
  throwError
68
- } from "./chunk-Z73I7Q2H.js";
68
+ } from "./chunk-CJ5WRCVE.js";
69
69
  import {
70
70
  obj
71
71
  } from "./chunk-U56HK2RG.js";
72
+ import {
73
+ XANO_AI_LOCATIONS
74
+ } from "./chunk-6SXKKDGF.js";
72
75
  import {
73
76
  assertCanonical,
74
77
  assertStoredName,
@@ -1332,7 +1335,23 @@ var s = {
1332
1335
  }
1333
1336
  },
1334
1337
  // AI agent + cloud jobs.
1335
- ai: { ...generated.ai, agent: { run: aiAgentRun } },
1338
+ // The eight Xano AI statements are the generated factories, typed: each
1339
+ // binds the result the engine returns, so `ref("<as>.<field>")` traces.
1340
+ ai: {
1341
+ ...generated.ai,
1342
+ agent: { run: aiAgentRun },
1343
+ text: { ...generated.ai.text, generate: generated.ai.text.generate },
1344
+ image: { ...generated.ai.image, generate: generated.ai.image.generate },
1345
+ video: { ...generated.ai.video, generate: generated.ai.video.generate },
1346
+ music: { ...generated.ai.music, generate: generated.ai.music.generate },
1347
+ speech: {
1348
+ ...generated.ai.speech,
1349
+ generate: generated.ai.speech.generate,
1350
+ transcribe: generated.ai.speech.transcribe
1351
+ },
1352
+ embedding: { ...generated.ai.embedding, create: generated.ai.embedding.create },
1353
+ rerank: generated.ai.rerank
1354
+ },
1336
1355
  cloud: { ...generated.cloud, job: cloudJobNs },
1337
1356
  // Array map/union, expect.to_throw, auth-token, raw-input/post-process merge
1338
1357
  // into their generated namespaces.
@@ -2228,6 +2247,7 @@ function resource(def) {
2228
2247
  }
2229
2248
 
2230
2249
  // src/kinds/agent.ts
2250
+ var TEMPLATED = /\{\{|\{%/;
2231
2251
  function buildProviderConfig(llm) {
2232
2252
  let config;
2233
2253
  switch (llm.type) {
@@ -2285,6 +2305,22 @@ function buildProviderConfig(llm) {
2285
2305
  dynamicRetrievalConfig: llm.dynamicRetrieval ?? ""
2286
2306
  };
2287
2307
  break;
2308
+ case "xano-ai":
2309
+ config = {
2310
+ model: llm.model ?? "",
2311
+ temperature: llm.temperature ?? 1,
2312
+ useSearchGrounding: llm.searchGrounding ?? false,
2313
+ thinkingConfig: {
2314
+ includeThoughts: llm.includeThoughts ?? false,
2315
+ thinkingBudget: llm.thinkingBudget ?? 0
2316
+ },
2317
+ baseURL: llm.baseURL ?? "",
2318
+ headers: llm.headers ?? "",
2319
+ safetySettings: llm.safetySettings ?? "",
2320
+ dynamicRetrievalConfig: llm.dynamicRetrieval ?? "",
2321
+ ...llm.location !== void 0 ? { location: llm.location } : {}
2322
+ };
2323
+ break;
2288
2324
  }
2289
2325
  return llm.extraConfig ? { ...config, ...llm.extraConfig } : config;
2290
2326
  }
@@ -2292,8 +2328,30 @@ var LLM_KEYS = {
2292
2328
  anthropic: ["sendReasoning", "thinkingTokens"],
2293
2329
  openai: ["reasoningEffort", "organization", "project", "compatibility"],
2294
2330
  "google-genai": ["searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"],
2295
- "xano-free": ["searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"]
2331
+ "xano-free": ["searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"],
2332
+ "xano-ai": ["model", "location", "searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"]
2296
2333
  };
2334
+ function assertXanoAiSettings(owner, llm) {
2335
+ const where = `${owner} llm (xano-ai)`;
2336
+ const model = llm.model;
2337
+ if (model !== void 0 && (typeof model !== "string" || TEMPLATED.test(model))) {
2338
+ throw new Error(
2339
+ `${where}: \`model\` must be a literal model name \u2014 got ${typeof model === "string" ? JSON.stringify(model) : "a value expression"}. The run picks the model before it renders templates, so a \`{{ \u2026 }}\` or expression never matches and every run would use the default model instead. Write the name, e.g. \`model: "gemini-3.8-flash"\` (\`xanosdk ai models\` lists them).`
2340
+ );
2341
+ }
2342
+ const location = llm.location;
2343
+ if (location === void 0) return;
2344
+ if (typeof location !== "string") {
2345
+ throw new Error(
2346
+ `${where}: \`location\` is a value expression; it takes "" | "us" | "global" | "eu", or a \`{{ $env.NAME }}\` / \`{{ $args.name }}\` template the run renders.`
2347
+ );
2348
+ }
2349
+ if (!XANO_AI_LOCATIONS.includes(location) && !TEMPLATED.test(location)) {
2350
+ throw new Error(
2351
+ `${where}: \`location\` is ${JSON.stringify(location)}; it takes "" | "us" | "global" | "eu" (or a {{ \u2026 }} template).`
2352
+ );
2353
+ }
2354
+ }
2297
2355
  function buildAgentSettings(def, owner = "agent") {
2298
2356
  const llm = def.llm;
2299
2357
  const provider = Object.hasOwn(LLM_KEYS, llm.type) ? LLM_KEYS[llm.type] : void 0;
@@ -2305,20 +2363,28 @@ function buildAgentSettings(def, owner = "agent") {
2305
2363
  );
2306
2364
  }
2307
2365
  if (provider) {
2308
- assertKnownKeys(`${owner} llm (${llm.type})`, llm, [
2366
+ const xanoHosted = llm.type === "xano-free" || llm.type === "xano-ai";
2367
+ const known = [
2309
2368
  "type",
2310
2369
  "systemPrompt",
2311
2370
  "maxSteps",
2312
2371
  "extraConfig",
2313
2372
  "prompt",
2314
2373
  "messages",
2315
- ...llm.type === "xano-free" ? [] : ["apiKey", "model"],
2374
+ ...xanoHosted ? [] : ["apiKey", "model"],
2316
2375
  "temperature",
2317
2376
  "baseURL",
2318
2377
  "headers",
2319
2378
  ...provider
2320
- ]);
2379
+ ];
2380
+ if (xanoHosted && Object.hasOwn(llm, "apiKey")) {
2381
+ throw new Error(
2382
+ `${owner} llm (${llm.type}): unknown key "apiKey" \u2014 ${llm.type} runs on Xano's credential and takes no key; remove it, or use a keyed provider (anthropic, openai, google-genai). Expected one of: ${known.join(", ")}.`
2383
+ );
2384
+ }
2385
+ assertKnownKeys(`${owner} llm (${llm.type})`, llm, known);
2321
2386
  }
2387
+ if (llm.type === "xano-ai") assertXanoAiSettings(owner, llm);
2322
2388
  for (const key of ["temperature", "thinkingTokens", "thinkingBudget"]) {
2323
2389
  const v = llm[key];
2324
2390
  if (v === void 0 || v === "") continue;
@@ -3101,4 +3167,4 @@ export {
3101
3167
  serializeBundle,
3102
3168
  emitBundle
3103
3169
  };
3104
- //# sourceMappingURL=chunk-Q4LJCCH5.js.map
3170
+ //# sourceMappingURL=chunk-MGC5S6OE.js.map
@@ -1,10 +1,10 @@
1
- import {
2
- localEngineHome
3
- } from "./chunk-F3IA3YWI.js";
4
1
  import {
5
2
  filledAt,
6
3
  withValidFilled
7
4
  } from "./chunk-ZYJP6BOO.js";
5
+ import {
6
+ localEngineHome
7
+ } from "./chunk-FVZ5C3PF.js";
8
8
  import {
9
9
  withFileLockSync
10
10
  } from "./chunk-QO6BVGS5.js";
@@ -141,4 +141,4 @@ export {
141
141
  clearEngineRecordsNamed,
142
142
  clearEngineRecordsStillMatching
143
143
  };
144
- //# sourceMappingURL=chunk-5Y5HWQ2P.js.map
144
+ //# sourceMappingURL=chunk-MKRREVNB.js.map