@xano/sdk 1.0.15 → 1.0.16

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 (290) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +33 -37
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-ZRGNOA6Q.js → agent-file-refresh-DBHTEFYM.js} +12 -12
  5. package/dist/{agent-skill-command-DV26SDA2.js → agent-skill-command-LHNTU7MH.js} +74 -73
  6. package/dist/{answer-shape-AVZSKBR6.js → answer-shape-ZRQS7ZC4.js} +5 -5
  7. package/dist/{backend-dir-NTMXWE5R.js → backend-dir-AXR43HNV.js} +11 -11
  8. package/dist/{backend-slot-DZAUHLTS.js → backend-slot-7BATLL3X.js} +4 -4
  9. package/dist/bin.js +64 -63
  10. package/dist/{branch-IJTBZZFO.js → branch-SJKKUCMZ.js} +9 -9
  11. package/dist/branch-commands-KGR52SZU.js +80 -0
  12. package/dist/bundle.d.ts +2 -2
  13. package/dist/bundle.js +15 -69
  14. package/dist/{capture-GW5KNKMB.js → capture-RYBJE25P.js} +5 -5
  15. package/dist/{chunk-66ZU2CD5.js → chunk-23GEFHRX.js} +236 -17
  16. package/dist/{chunk-3H7R4ISR.js → chunk-2DUYJR5N.js} +2 -2
  17. package/dist/{chunk-MFWF2NZJ.js → chunk-2H5BQRHF.js} +2 -2
  18. package/dist/{chunk-O44MJTLR.js → chunk-35SI4GBM.js} +3 -3
  19. package/dist/{chunk-ZYECXDVV.js → chunk-3ZV23FVR.js} +5 -5
  20. package/dist/{chunk-N72XNQNJ.js → chunk-47XIVDJ6.js} +14 -14
  21. package/dist/{chunk-ICK36EGF.js → chunk-4EVDCSEY.js} +2 -2
  22. package/dist/{chunk-AXMUYBWQ.js → chunk-4XGZ325S.js} +3 -3
  23. package/dist/{chunk-P7GKTV7N.js → chunk-4XYXUK5H.js} +75 -32
  24. package/dist/{chunk-AE5CRAKS.js → chunk-4ZBXS7YN.js} +8 -8
  25. package/dist/{chunk-JWASCOHO.js → chunk-52QAENY6.js} +14 -14
  26. package/dist/{chunk-2LF734YB.js → chunk-54CJ74BH.js} +4 -4
  27. package/dist/{chunk-TT6LN55R.js → chunk-57PGTPT3.js} +8 -8
  28. package/dist/{chunk-IKXXTRMN.js → chunk-64UVVLDT.js} +4 -4
  29. package/dist/{chunk-EQXHUWUO.js → chunk-6FCAFWD5.js} +2 -2
  30. package/dist/{chunk-4MX5LMPQ.js → chunk-6ODQ5GDZ.js} +2 -2
  31. package/dist/{chunk-G4WRZU5T.js → chunk-74YCPI4G.js} +7 -7
  32. package/dist/{chunk-Y5XAPLZS.js → chunk-7UQZ7C4W.js} +4 -4
  33. package/dist/{chunk-CJDPSCMX.js → chunk-7ZVQIKNL.js} +3 -3
  34. package/dist/{chunk-RVAEPPRH.js → chunk-AICWDCLJ.js} +2 -2
  35. package/dist/{chunk-WS4BA75E.js → chunk-AJBOGO5U.js} +4 -4
  36. package/dist/{chunk-FOBVJ2UR.js → chunk-AJQFUJEQ.js} +8 -8
  37. package/dist/{chunk-DH6O5NQU.js → chunk-C7AYP4H6.js} +29 -20
  38. package/dist/{chunk-SXMZNSQ6.js → chunk-DJMGDCVX.js} +8 -8
  39. package/dist/{chunk-K6SWZ6H4.js → chunk-DLD4FVRP.js} +54 -54
  40. package/dist/{chunk-Q7DGTQ5G.js → chunk-E34VGSCI.js} +2 -1
  41. package/dist/{chunk-YR3MNGWZ.js → chunk-E5M5P23K.js} +8 -8
  42. package/dist/{chunk-HJZUI2ZU.js → chunk-EAZTRU75.js} +2 -2
  43. package/dist/{chunk-V7WCTXEH.js → chunk-EINZSVEU.js} +5 -5
  44. package/dist/{chunk-KMKUH2IO.js → chunk-EPB6FAR5.js} +5 -5
  45. package/dist/chunk-EUAU4QKI.js +67 -0
  46. package/dist/{chunk-IDOVZLPK.js → chunk-EXJ4Q5F6.js} +2 -2
  47. package/dist/{chunk-FKQX6KU7.js → chunk-F3JK5RIY.js} +2 -2
  48. package/dist/{chunk-W2QFR3ZJ.js → chunk-FIOC7RSU.js} +2 -2
  49. package/dist/{chunk-YEH5OIPF.js → chunk-FMXPV5JI.js} +39 -11
  50. package/dist/{chunk-GVHWIDEJ.js → chunk-FRJB3NTE.js} +10 -5
  51. package/dist/{chunk-VIRFG3WG.js → chunk-FTFAPKCW.js} +23 -7
  52. package/dist/{chunk-LL6ED5IB.js → chunk-FTS42N37.js} +2 -2
  53. package/dist/{chunk-MIS6F4HM.js → chunk-G2XSDIYS.js} +4 -4
  54. package/dist/{chunk-ZY55DO5P.js → chunk-G6BEJ3NA.js} +2 -2
  55. package/dist/{chunk-RYWNNJK5.js → chunk-GA6HTO3O.js} +2 -2
  56. package/dist/{chunk-JIKGT7DO.js → chunk-GE3JV5SI.js} +1 -1
  57. package/dist/{chunk-GCINMMFL.js → chunk-GJZMKMWO.js} +2 -2
  58. package/dist/{chunk-VXHXSGPU.js → chunk-GRZ62LLU.js} +8 -8
  59. package/dist/{chunk-6X73VFCX.js → chunk-GT7PZCTK.js} +2 -2
  60. package/dist/{chunk-SH4RY6QX.js → chunk-HXPQXCOZ.js} +1536 -413
  61. package/dist/{chunk-ECQXASG3.js → chunk-IFHFJR5O.js} +2 -2
  62. package/dist/{chunk-7ZQ73AHJ.js → chunk-IOWNQEMW.js} +31 -31
  63. package/dist/{chunk-YCKKL5PD.js → chunk-ISIZFK5Q.js} +53 -47
  64. package/dist/{chunk-HCNIB3EC.js → chunk-IUJDUFT7.js} +4 -4
  65. package/dist/{chunk-74OPNM2Z.js → chunk-JHAZK4RY.js} +3 -3
  66. package/dist/{chunk-OZWAITII.js → chunk-KGHJ74HF.js} +6 -6
  67. package/dist/{chunk-XLP4CNSF.js → chunk-L2O5KG5Q.js} +6 -6
  68. package/dist/{chunk-NNI5R6V6.js → chunk-L3Q2QYIQ.js} +72 -72
  69. package/dist/{chunk-UNFQN3TT.js → chunk-LLBEPJBO.js} +3 -3
  70. package/dist/{chunk-VUWR5YLE.js → chunk-LWBGPPI5.js} +13 -13
  71. package/dist/{chunk-RBTZEHXF.js → chunk-MBSHONP3.js} +3 -3
  72. package/dist/{chunk-GKQTXUOW.js → chunk-MOVRSULZ.js} +2 -2
  73. package/dist/{chunk-QAEBBTYR.js → chunk-MSYMEP7Y.js} +7 -7
  74. package/dist/{chunk-Y453TW6J.js → chunk-NCERS5QH.js} +2 -2
  75. package/dist/{chunk-HXFLHA5K.js → chunk-NH5Z2NOD.js} +2 -2
  76. package/dist/{chunk-T3HNISBN.js → chunk-NJVY3GAX.js} +3 -3
  77. package/dist/{chunk-ZF2CBXT5.js → chunk-NQPPUNWP.js} +3 -3
  78. package/dist/{chunk-5SKWGCAJ.js → chunk-O7Z3LF44.js} +5 -5
  79. package/dist/{chunk-ASQX477B.js → chunk-OLXYZQR7.js} +7 -7
  80. package/dist/{chunk-5SJQAJLF.js → chunk-OQNYZ2OM.js} +3 -3
  81. package/dist/{chunk-DBDTQR23.js → chunk-OTQF4B37.js} +4 -4
  82. package/dist/{chunk-GBSHHNSD.js → chunk-PRSNMSVG.js} +3 -3
  83. package/dist/{chunk-DGYXCIBV.js → chunk-Q6AKSLD2.js} +2 -2
  84. package/dist/{chunk-WXKSB2N3.js → chunk-Q7KXMIR3.js} +3 -3
  85. package/dist/{chunk-B6AFJVG4.js → chunk-QCVH32T2.js} +5 -5
  86. package/dist/{chunk-7FIMUFBP.js → chunk-QDPY7RN3.js} +3 -3
  87. package/dist/{chunk-MGG4CHO4.js → chunk-QIT2GGNB.js} +3 -3
  88. package/dist/{chunk-QW7NGUYW.js → chunk-QSJH5AFU.js} +244 -173
  89. package/dist/{chunk-3GZMP7II.js → chunk-R7DS2TRZ.js} +38 -22
  90. package/dist/{chunk-BEKEOXNG.js → chunk-RGPHFHJU.js} +2 -2
  91. package/dist/{chunk-5FJ4M4HB.js → chunk-RHH6SCB4.js} +17 -32
  92. package/dist/{chunk-M7O3T7IM.js → chunk-RIT3WBBX.js} +4 -4
  93. package/dist/{chunk-45K2QZBR.js → chunk-RKNCISPM.js} +3 -3
  94. package/dist/{chunk-NPYYDTXS.js → chunk-RKTVXFBV.js} +5 -5
  95. package/dist/{chunk-AXNX4NWN.js → chunk-RLQX6LHW.js} +37 -37
  96. package/dist/{chunk-FIERONKM.js → chunk-ROWYW3JF.js} +2 -2
  97. package/dist/{chunk-LSJ3SQEU.js → chunk-RVWWNNZQ.js} +4 -4
  98. package/dist/{chunk-A2N2C2WD.js → chunk-S7MVI4W7.js} +7 -7
  99. package/dist/{chunk-4MIV244X.js → chunk-SGEOXJIH.js} +9 -2
  100. package/dist/{chunk-QRMKQYCB.js → chunk-SINL5WMI.js} +2 -2
  101. package/dist/{chunk-Z6N5N4MN.js → chunk-SIW2HT2H.js} +21 -5
  102. package/dist/{chunk-IEDQT4Z3.js → chunk-SOAZIMWL.js} +12 -12
  103. package/dist/{chunk-R3GPRNBT.js → chunk-SVQMDVND.js} +87 -16
  104. package/dist/{chunk-45ZUMF4E.js → chunk-TPUAXIPR.js} +2 -2
  105. package/dist/{chunk-SL55XKVL.js → chunk-TXU34ELY.js} +25 -25
  106. package/dist/{chunk-GDJCWQIK.js → chunk-U4UAWGIT.js} +12 -8
  107. package/dist/{chunk-76SBT7KS.js → chunk-U56HK2RG.js} +7 -5
  108. package/dist/{chunk-RXNMZM6H.js → chunk-UDW2KAVF.js} +6 -6
  109. package/dist/{chunk-NDV6CBR7.js → chunk-UH5VQGNR.js} +2 -2
  110. package/dist/{chunk-75QC66XI.js → chunk-V2MIBJZU.js} +2 -2
  111. package/dist/{chunk-ZDVVIJPU.js → chunk-VAQPQXOI.js} +4 -4
  112. package/dist/{chunk-XPSDDTUZ.js → chunk-VCFRALU7.js} +3 -3
  113. package/dist/{chunk-5KJBWIDZ.js → chunk-VQDVEHDB.js} +2 -2
  114. package/dist/{chunk-6EFXPTHT.js → chunk-WAP5362D.js} +5 -5
  115. package/dist/{chunk-XY4OBD26.js → chunk-WGKKDGSA.js} +4 -4
  116. package/dist/{chunk-TXFOQZUQ.js → chunk-WVVUE7LU.js} +14 -7
  117. package/dist/{chunk-JAYHFXWH.js → chunk-WXQ7BHVQ.js} +7 -7
  118. package/dist/{chunk-7REDHC4N.js → chunk-X5NF3ZXW.js} +69 -14
  119. package/dist/{chunk-5W7S2SCA.js → chunk-XAE4NIZ2.js} +4 -4
  120. package/dist/{chunk-SPLRKCFV.js → chunk-XDGLYIB2.js} +2 -2
  121. package/dist/{chunk-7AKH4QDJ.js → chunk-XKMZYU5B.js} +96 -65
  122. package/dist/{chunk-UVHSMANV.js → chunk-Y3RH35KM.js} +47 -47
  123. package/dist/{chunk-GIQIMWTK.js → chunk-YHT7TDSH.js} +14 -14
  124. package/dist/{chunk-FXZEZAV2.js → chunk-YJXJOMXW.js} +3 -3
  125. package/dist/{chunk-ZPJXWMHK.js → chunk-YPLHVRMS.js} +4 -4
  126. package/dist/{chunk-WS2X5BB2.js → chunk-YYBBJPCL.js} +5 -5
  127. package/dist/{chunk-ZOHEHIFS.js → chunk-YYDM4DNP.js} +2 -2
  128. package/dist/{chunk-ZC6H2ERE.js → chunk-ZF4LCHCT.js} +5 -5
  129. package/dist/{chunk-GRXX2TOJ.js → chunk-ZHFSIQ6E.js} +2 -2
  130. package/dist/{chunk-SHHXLI2K.js → chunk-ZJQFKBX7.js} +7 -7
  131. package/dist/{chunk-ZRXDPCMN.js → chunk-ZYZ7GRX3.js} +2 -2
  132. package/dist/{chunk-CJGLAQRD.js → chunk-ZZC5VSLP.js} +4 -4
  133. package/dist/cli.d.ts +3 -3
  134. package/dist/cli.js +62 -61
  135. package/dist/codegen-command-NAY6YAOD.js +183 -0
  136. package/dist/codegen.d.ts +3 -3
  137. package/dist/codegen.js +5 -5
  138. package/dist/{commands-5ILSWDSV.js → commands-Z2QZOORB.js} +3 -3
  139. package/dist/{completion-UNKBVVDT.js → completion-LFXXNQGR.js} +3 -3
  140. package/dist/{config-NTOASFCA.js → config-7GGINOFY.js} +4 -4
  141. package/dist/{deploy-command-BYAZZF37.js → deploy-command-PBM3S4ZL.js} +69 -68
  142. package/dist/{deploy-source-QCPZWNJO.js → deploy-source-JW7DAN75.js} +32 -32
  143. package/dist/{dev-env-sync-6MHK3UHC.js → dev-env-sync-FHJTFH3V.js} +63 -62
  144. package/dist/{diagnostics-FNVNRYMB.js → diagnostics-T3RN3372.js} +2 -2
  145. package/dist/{display-name-hint-MYXCCAOP.js → display-name-hint-5GLJGPQ6.js} +11 -11
  146. package/dist/{emit-YLt3GfsZ.d.ts → emit-t-gDE1BL.d.ts} +181 -93
  147. package/dist/env-example-refresh-HHEGMFNH.js +136 -0
  148. package/dist/{env-pull-command-KUIEKBTM.js → env-pull-command-FFPNRVWD.js} +52 -52
  149. package/dist/{env-target-Y77RLRS5.js → env-target-XHVRZXHX.js} +14 -14
  150. package/dist/{env-var-command-BZWJD75C.js → env-var-command-DJS62YRR.js} +41 -41
  151. package/dist/{ephemeral-VLPRDNEJ.js → ephemeral-2DXWP3VK.js} +9 -9
  152. package/dist/{ephemeral-command-SYKDPALW.js → ephemeral-command-VLQIQ5TS.js} +52 -52
  153. package/dist/{ephemeral-state-RUOU2GFS.js → ephemeral-state-56XEDUJW.js} +12 -12
  154. package/dist/{generate-command-CSQDQZSW.js → generate-command-PSDIIOTU.js} +89 -88
  155. package/dist/{gitignore-OQGYM7DO.js → gitignore-PMJ6MFNA.js} +15 -15
  156. package/dist/{guards-JUYBDLZY.js → guards-YICHJKX3.js} +51 -15
  157. package/dist/{impersonate-command-HSFCZBV6.js → impersonate-command-IKV4KUYA.js} +37 -37
  158. package/dist/{import-T4ZTOTBT.js → import-VJQGIS33.js} +5 -5
  159. package/dist/index.d.ts +552 -117
  160. package/dist/index.js +29 -28
  161. package/dist/init-command-LEQIE6GC.js +143 -0
  162. package/dist/{init-modules-BL2SR5RK.js → init-modules-G47Q7ABV.js} +8 -8
  163. package/dist/{init-web-DYE2FEXL.js → init-web-25QJ4JWB.js} +3 -3
  164. package/dist/internal.d.ts +55 -8
  165. package/dist/internal.js +692 -503
  166. package/dist/{io-PGTCBSIQ.js → io-47TFRYDB.js} +6 -6
  167. package/dist/{keep-data-merge-SHF75FC7.js → keep-data-merge-XCPCX7BZ.js} +38 -38
  168. package/dist/{lambda-config-reconcile-VOBVZPWS.js → lambda-config-reconcile-CC5QIP6E.js} +3 -3
  169. package/dist/{landed-F7PCHGCK.js → landed-VIUFHLCJ.js} +5 -5
  170. package/dist/{landing-record-7EOLEKH3.js → landing-record-JQ7HZDGI.js} +22 -22
  171. package/dist/{live-diff-M2OLXKM6.js → live-diff-KJ2TWWWT.js} +14 -14
  172. package/dist/{local-engine-choice-TOC3UYZZ.js → local-engine-choice-DFAMYOIF.js} +35 -35
  173. package/dist/{local-engine-command-6KSRDZBR.js → local-engine-command-5RP2J5QZ.js} +40 -40
  174. package/dist/{local-engine-deploy-4N4NFZ4T.js → local-engine-deploy-XAEDT55W.js} +12 -12
  175. package/dist/{local-engine-lookup-AQTUGSBT.js → local-engine-lookup-WBYTY2JE.js} +2 -2
  176. package/dist/{local-engine-mcp-bridge-AMYRH4SY.js → local-engine-mcp-bridge-3H5OXBWQ.js} +5 -5
  177. package/dist/{local-engine-mcp-command-XTP3EATV.js → local-engine-mcp-command-JSYVVZKK.js} +42 -42
  178. package/dist/{local-engine-process-OD5OSWDG.js → local-engine-process-35B2KQED.js} +7 -7
  179. package/dist/{local-engine-update-check-G3YCBXRE.js → local-engine-update-check-VXJZSIJU.js} +5 -5
  180. package/dist/{lock-HDCHD2ON.js → lock-JBKTDEDO.js} +4 -4
  181. package/dist/{lock-commands-437P6BHY.js → lock-commands-7VO6YWOV.js} +67 -66
  182. package/dist/{login-command-BNRDAVFV.js → login-command-WTZUBCW6.js} +27 -27
  183. package/dist/{logout-command-FCGCHB7Y.js → logout-command-5BJUNK3C.js} +17 -17
  184. package/dist/{loop-WOAEXMTC.js → loop-HILLODVH.js} +15 -15
  185. package/dist/{marketplace-command-SUBJZPJV.js → marketplace-command-NMOH4XOV.js} +30 -30
  186. package/dist/{marketplace-resolve-JR4BBJ6K.js → marketplace-resolve-63QWMQZU.js} +6 -6
  187. package/dist/{meta-client-AYJS3RQ3.js → meta-client-MRAMWUKV.js} +15 -15
  188. package/dist/{module-manifest-63I5GRK4.js → module-manifest-NWJWAQLQ.js} +4 -4
  189. package/dist/node.d.ts +8 -8
  190. package/dist/node.js +71 -70
  191. package/dist/{operation-outcome-ORQPVJKB.js → operation-outcome-WK7UW6PJ.js} +24 -24
  192. package/dist/{output-target-KNHHNDM3.js → output-target-5PYRCCK4.js} +16 -16
  193. package/dist/{plan-disclosure-4DUFRGCP.js → plan-disclosure-6MG4YYJV.js} +28 -28
  194. package/dist/{plugin-contributions-YYEP7IWH.js → plugin-contributions-DD6R6RL6.js} +5 -5
  195. package/dist/{plugin-prompt-GKCQKNYI.js → plugin-prompt-UX2TT5NS.js} +5 -5
  196. package/dist/{plugin-questions-P7MA3TYI.js → plugin-questions-WE2F4ZC4.js} +4 -4
  197. package/dist/{preflight-command-32GFVKSN.js → preflight-command-3BX2WW3S.js} +75 -74
  198. package/dist/{profile-command-U2XTKOMF.js → profile-command-GSUX3UMB.js} +28 -28
  199. package/dist/{profile-pointer-JJ7K5O2R.js → profile-pointer-RCPHVTJV.js} +4 -4
  200. package/dist/{project-dependency-X3KCWBK5.js → project-dependency-TPVV3YIX.js} +7 -7
  201. package/dist/{project-sdk-YHJZRCNB.js → project-sdk-DKZBK5H5.js} +4 -4
  202. package/dist/promote-command-3LQTXWCD.js +149 -0
  203. package/dist/{prompt-QNMJIWNI.js → prompt-OYQHQWKI.js} +4 -4
  204. package/dist/{publish-command-5ZVZ6IYT.js → publish-command-3BQCV4NE.js} +72 -71
  205. package/dist/pull-command-B7OVWTZD.js +171 -0
  206. package/dist/{pull-superseded-6HADGGC5.js → pull-superseded-3SSM3JFT.js} +4 -4
  207. package/dist/{raw-where-gWGr-E4t.d.ts → raw-where-CinW0keO.d.ts} +32 -4
  208. package/dist/release-command-XSDICMJE.js +153 -0
  209. package/dist/{release-ns-command-LDN5DOKQ.js → release-ns-command-EVAHK4CU.js} +96 -95
  210. package/dist/{retry-command-LFZYEVRU.js → retry-command-WP4ZI6CJ.js} +8 -8
  211. package/dist/{routes-manifest-BMAOL6WN.js → routes-manifest-N73THJB3.js} +16 -16
  212. package/dist/routes-manifest-file-LDUDIVFJ.js +41 -0
  213. package/dist/scaffold.js +2 -2
  214. package/dist/{secrets-file-7QM3ORGX.js → secrets-file-7XWR7HW3.js} +15 -15
  215. package/dist/{secrets-fill-command-OZ537VOD.js → secrets-fill-command-NKCGC75L.js} +66 -65
  216. package/dist/{seed-ATGBOEJP.js → seed-YKTZDS2Q.js} +13 -13
  217. package/dist/{source-resolve-QYSWA3QR.js → source-resolve-CQGDFQQC.js} +22 -22
  218. package/dist/{static-host-MO4VDHL7.js → static-host-3HPZKVKK.js} +5 -5
  219. package/dist/{status-command-IEB4K7ME.js → status-command-TBMQ3GJP.js} +38 -38
  220. package/dist/{store-AJX4MC7Y.js → store-B63BQV6R.js} +6 -6
  221. package/dist/{store-DspGMsFY.d.ts → store-in7gSpMS.d.ts} +185 -11
  222. package/dist/sync-baseline-GRS33AB5.js +38 -0
  223. package/dist/{sync-contributions-DLV5JZUK.js → sync-contributions-RKPLZPPO.js} +9 -9
  224. package/dist/{sync-record-NE62ERA3.js → sync-record-AWFCSS4D.js} +15 -15
  225. package/dist/{table-TFD4ZQXA.js → table-ONGT3JGE.js} +12 -12
  226. package/dist/{tables-command-IMCVPUFY.js → tables-command-UYQ277TJ.js} +41 -41
  227. package/dist/{tenant-IIYECNWO.js → tenant-IXIW3FOI.js} +10 -10
  228. package/dist/{tenant-command-77KG76MU.js → tenant-command-7LWZUK2V.js} +104 -103
  229. package/dist/{test-command-NSPU4RUO.js → test-command-7KTT5EAF.js} +56 -45
  230. package/dist/{tests-JWQRHFCT.js → tests-N4MMBABH.js} +6 -6
  231. package/dist/{token-BDHD7GU3.js → token-3TCMW2AP.js} +13 -13
  232. package/dist/{toolchain-hooks-QHJRDCRW.js → toolchain-hooks-IJWV3ZQS.js} +18 -18
  233. package/dist/{toolchain-modules-LY7BMYG6.js → toolchain-modules-PBVBCPQJ.js} +5 -5
  234. package/dist/{toolchain-peers-FQJBTKEB.js → toolchain-peers-EMOYN4U7.js} +8 -8
  235. package/dist/{tracked-backend-BIR7YJCE.js → tracked-backend-YDUUQZQF.js} +34 -34
  236. package/dist/update-check-C6KDFGMT.js +141 -0
  237. package/dist/{upgrade-command-YCADQCIA.js → upgrade-command-ZSBTSMBR.js} +68 -67
  238. package/dist/{whoami-command-IZCTUPM4.js → whoami-command-L6ERHR5K.js} +16 -16
  239. package/dist/{workspace-TK52V7WO.js → workspace-5DPSDM4A.js} +5 -5
  240. package/dist/{workspace-binding-3UT6PP4B.js → workspace-binding-MVOWGNYW.js} +15 -15
  241. package/dist/{workspace-command-46OCB6XT.js → workspace-command-PKQ5TDR7.js} +100 -99
  242. package/dist/{workspace-env-PVPOWFNZ.js → workspace-env-UZJZUIYV.js} +18 -12
  243. package/dist/{workspace-export-PUEXKZNS.js → workspace-export-3KMWNZDD.js} +5 -5
  244. package/dist/{writable-LMMG4AFZ.js → writable-X7BCN7XE.js} +4 -4
  245. package/dist/xano-YB6Y2IJS.js +44 -0
  246. package/dist/{xanosdk-import-XXJT365U.js → xanosdk-import-HHMQDK2I.js} +10 -10
  247. package/dist/{xanosdk-project-CJKRLQ6U.js → xanosdk-project-CKEUNJU4.js} +13 -13
  248. package/dist/{xdo-D4OwfF2J.d.ts → xdo-DNGZGO1j.d.ts} +50 -12
  249. package/guides/authoring.md +1 -0
  250. package/guides/codes.md +33 -3
  251. package/guides/coverage.md +2 -2
  252. package/guides/object-kinds.md +1 -1
  253. package/guides/typed-frontend.md +9 -0
  254. package/llms/client.md +54 -36
  255. package/llms/errors.md +26 -6
  256. package/llms/fields.md +53 -30
  257. package/llms/filters.md +55 -46
  258. package/llms/kinds-agent-mcp.md +10 -9
  259. package/llms/kinds-core.md +19 -15
  260. package/llms/kinds-knowledge.md +4 -4
  261. package/llms/kinds-realtime.md +25 -23
  262. package/llms/lambda.md +42 -30
  263. package/llms/legacy.md +6 -7
  264. package/llms/lock.md +21 -17
  265. package/llms/object-kinds.md +9 -11
  266. package/llms/statements-calls.md +41 -20
  267. package/llms/statements-catalog.md +32 -25
  268. package/llms/statements-data.md +35 -25
  269. package/llms/statements-runtime.md +28 -18
  270. package/llms/tests.md +20 -7
  271. package/llms/toolchain.md +12 -9
  272. package/llms/triggers.md +14 -18
  273. package/llms/values.md +16 -9
  274. package/llms-full.txt +643 -503
  275. package/llms.txt +120 -137
  276. package/manifest.json +147 -95
  277. package/package.json +1 -1
  278. package/skills/xano-backend/SKILL.md +10 -12
  279. package/types/lambda-globals.d.ts +6 -1
  280. package/dist/branch-commands-4PJEBNRK.js +0 -80
  281. package/dist/codegen-command-RDD4GL35.js +0 -182
  282. package/dist/env-example-refresh-MQWHY7ZS.js +0 -135
  283. package/dist/init-command-6Z7QNVDY.js +0 -142
  284. package/dist/promote-command-OO56IZBT.js +0 -148
  285. package/dist/pull-command-LT5PCEIW.js +0 -170
  286. package/dist/release-command-RBUOXIH7.js +0 -152
  287. package/dist/routes-manifest-file-MPOVKD6N.js +0 -41
  288. package/dist/sync-baseline-IB7MABZO.js +0 -38
  289. package/dist/update-check-JDARCXAX.js +0 -140
  290. package/dist/xano-EOUVXNQX.js +0 -43
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  isTaggedValue
3
- } from "./chunk-Z6N5N4MN.js";
3
+ } from "./chunk-SIW2HT2H.js";
4
4
  import {
5
5
  describeEntry,
6
6
  protoKeyed
7
- } from "./chunk-4MIV244X.js";
7
+ } from "./chunk-SGEOXJIH.js";
8
8
 
9
9
  // src/values/obj.ts
10
10
  var IDENT = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
@@ -17,7 +17,7 @@ function serializeValue(v, path, followed) {
17
17
  }
18
18
  function grouped(rendered, chain, followed) {
19
19
  const tail = chain[chain.length - 1];
20
- return followed && tail !== void 0 && tail.arg.length > 0 ? `(${rendered})` : rendered;
20
+ return tail !== void 0 && (rendered[0] === "{" || followed && tail.arg.length > 0) ? `(${rendered})` : rendered;
21
21
  }
22
22
  function serializeEpochMs(v) {
23
23
  if (v.tag !== "const:epochms") return null;
@@ -106,6 +106,8 @@ function serializeFilters(v, path) {
106
106
  );
107
107
  }
108
108
  const args = f.arg.map((a, i) => {
109
+ const record = objSetRecord(a, path, false);
110
+ if (record?.[0] === "{") return record;
109
111
  if (a.filters.length > 0) {
110
112
  throw new Error(
111
113
  `obj(): the \`${f.name}\` filter on member \`${path}\` has an argument (#${i}) that carries its own filter chain (\`ref(\u2026, { safe: true })\` is one). In an expression a trailing \`|\` binds to the whole value, not to one argument, so this cannot be written without changing what it means. Compute the argument in a prior step (\`s.set_var\`) and reference it with \`ref\`.`
@@ -113,7 +115,7 @@ function serializeFilters(v, path) {
113
115
  }
114
116
  return serializeAtom(a, `${path}|${f.name}[${i}]`);
115
117
  });
116
- out += `|${f.name}${args.length > 0 ? `:${args.join(":")}` : ""}`;
118
+ out += `|${f.name === "null" ? "is_null" : f.name}${args.length > 0 ? `:${args.join(":")}` : ""}`;
117
119
  }
118
120
  return out;
119
121
  }
@@ -214,4 +216,4 @@ function obj(fields) {
214
216
  export {
215
217
  obj
216
218
  };
217
- //# sourceMappingURL=chunk-76SBT7KS.js.map
219
+ //# sourceMappingURL=chunk-U56HK2RG.js.map
@@ -4,25 +4,25 @@ import {
4
4
  sectionKind,
5
5
  tableAdditions,
6
6
  vectorSize
7
- } from "./chunk-M7O3T7IM.js";
7
+ } from "./chunk-RIT3WBBX.js";
8
8
  import {
9
9
  ReleaseHttpError
10
- } from "./chunk-NDV6CBR7.js";
10
+ } from "./chunk-UH5VQGNR.js";
11
11
  import {
12
12
  TenantHttpError
13
- } from "./chunk-MIS6F4HM.js";
13
+ } from "./chunk-G2XSDIYS.js";
14
14
  import {
15
15
  CliError,
16
16
  detail,
17
17
  warn,
18
18
  withoutUrls
19
- } from "./chunk-GRXX2TOJ.js";
19
+ } from "./chunk-ZHFSIQ6E.js";
20
20
  import {
21
21
  suggest
22
22
  } from "./chunk-UTI5G6OJ.js";
23
23
  import {
24
24
  authoredFieldType
25
- } from "./chunk-JIKGT7DO.js";
25
+ } from "./chunk-GE3JV5SI.js";
26
26
 
27
27
  // src/emit/plan-disclosure.ts
28
28
  var NO_TABLE_EFFECTS = {
@@ -677,4 +677,4 @@ export {
677
677
  CONSTRAINT_PHRASE,
678
678
  CONSTRAINT_FIX
679
679
  };
680
- //# sourceMappingURL=chunk-RXNMZM6H.js.map
680
+ //# sourceMappingURL=chunk-UDW2KAVF.js.map
@@ -10,7 +10,7 @@ import {
10
10
  safeHttpFailure,
11
11
  statusLabel,
12
12
  writeStatusAftermath
13
- } from "./chunk-HXFLHA5K.js";
13
+ } from "./chunk-NH5Z2NOD.js";
14
14
 
15
15
  // src/deploy/release.ts
16
16
  var TIMEOUT_MS = 3e4;
@@ -405,4 +405,4 @@ export {
405
405
  exportRelease,
406
406
  deleteRelease
407
407
  };
408
- //# sourceMappingURL=chunk-NDV6CBR7.js.map
408
+ //# sourceMappingURL=chunk-UH5VQGNR.js.map
@@ -7,7 +7,7 @@ import {
7
7
  isKindShaped,
8
8
  parseSource,
9
9
  sourceSpellings
10
- } from "./chunk-GRXX2TOJ.js";
10
+ } from "./chunk-ZHFSIQ6E.js";
11
11
 
12
12
  // src/emit/backend-slot.ts
13
13
  function commandPath(command, subcommand) {
@@ -124,4 +124,4 @@ export {
124
124
  refusedKind,
125
125
  parseSlot
126
126
  };
127
- //# sourceMappingURL=chunk-75QC66XI.js.map
127
+ //# sourceMappingURL=chunk-V2MIBJZU.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  contextFlags
3
- } from "./chunk-ZRXDPCMN.js";
3
+ } from "./chunk-ZYZ7GRX3.js";
4
4
  import {
5
5
  backendDirFor,
6
6
  backendDirIn
7
- } from "./chunk-FXZEZAV2.js";
7
+ } from "./chunk-YJXJOMXW.js";
8
8
  import {
9
9
  atomicWrite
10
10
  } from "./chunk-LLNZGEFK.js";
@@ -15,7 +15,7 @@ import {
15
15
  LocalFileNotFoundError,
16
16
  displayPath,
17
17
  relForwardSlash
18
- } from "./chunk-GRXX2TOJ.js";
18
+ } from "./chunk-ZHFSIQ6E.js";
19
19
  import {
20
20
  normalizeDocumentationScopeKey
21
21
  } from "./chunk-3JDU4VRL.js";
@@ -127,4 +127,4 @@ export {
127
127
  entryWordOf,
128
128
  readSecretsFile
129
129
  };
130
- //# sourceMappingURL=chunk-ZDVVIJPU.js.map
130
+ //# sourceMappingURL=chunk-VAQPQXOI.js.map
@@ -4,7 +4,7 @@ import {
4
4
  readEngineEntry,
5
5
  readPin,
6
6
  verifiedEngineExecutable
7
- } from "./chunk-EQXHUWUO.js";
7
+ } from "./chunk-6FCAFWD5.js";
8
8
  import {
9
9
  clearEngineRecordsNamed,
10
10
  listEngineRecords
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  fetchOrExplain,
24
24
  httpFailureError
25
- } from "./chunk-HXFLHA5K.js";
25
+ } from "./chunk-NH5Z2NOD.js";
26
26
 
27
27
  // src/deploy/local-engine-process.ts
28
28
  import { spawn as nodeSpawn, spawnSync } from "child_process";
@@ -432,4 +432,4 @@ export {
432
432
  findOrphanedEngineProcesses,
433
433
  stopOrphanedEngineProcesses
434
434
  };
435
- //# sourceMappingURL=chunk-XPSDDTUZ.js.map
435
+ //# sourceMappingURL=chunk-VCFRALU7.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  REFERENCEABLE_KIND_PAYLOAD_KEYS,
9
9
  rawDeriveGuid
10
- } from "./chunk-LL6ED5IB.js";
10
+ } from "./chunk-FTS42N37.js";
11
11
  import {
12
12
  getLockedGuid
13
13
  } from "./chunk-4BW2SG2N.js";
@@ -1062,4 +1062,4 @@ export {
1062
1062
  withoutGuidSources,
1063
1063
  mergeObserved
1064
1064
  };
1065
- //# sourceMappingURL=chunk-5KJBWIDZ.js.map
1065
+ //# sourceMappingURL=chunk-VQDVEHDB.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  defaultHistory,
3
3
  emptyMiddleware
4
- } from "./chunk-74OPNM2Z.js";
4
+ } from "./chunk-JHAZK4RY.js";
5
5
  import {
6
6
  RAW_ENVELOPE,
7
7
  encodeStatement,
8
8
  registerStatement
9
- } from "./chunk-FKQX6KU7.js";
9
+ } from "./chunk-F3JK5RIY.js";
10
10
  import {
11
11
  isTaggedValue
12
- } from "./chunk-Z6N5N4MN.js";
12
+ } from "./chunk-SIW2HT2H.js";
13
13
  import {
14
14
  resolveRef
15
- } from "./chunk-LL6ED5IB.js";
15
+ } from "./chunk-FTS42N37.js";
16
16
 
17
17
  // src/kinds/history.ts
18
18
  var CONTAINER_DEFAULT_ENABLED = {
@@ -188,4 +188,4 @@ export {
188
188
  assertStoredName,
189
189
  assertNameAsStored
190
190
  };
191
- //# sourceMappingURL=chunk-6EFXPTHT.js.map
191
+ //# sourceMappingURL=chunk-WAP5362D.js.map
@@ -7,14 +7,14 @@ import {
7
7
  } from "./chunk-QO6BVGS5.js";
8
8
  import {
9
9
  unreadableError
10
- } from "./chunk-ZOHEHIFS.js";
10
+ } from "./chunk-YYDM4DNP.js";
11
11
  import {
12
12
  ensureGitignored
13
- } from "./chunk-WS4BA75E.js";
13
+ } from "./chunk-AJBOGO5U.js";
14
14
  import {
15
15
  destinationKey,
16
16
  nextLandedRecord
17
- } from "./chunk-MFWF2NZJ.js";
17
+ } from "./chunk-2H5BQRHF.js";
18
18
  import {
19
19
  atomicWrite
20
20
  } from "./chunk-LLNZGEFK.js";
@@ -301,4 +301,4 @@ export {
301
301
  recordEphemeralLanding,
302
302
  clearEphemeralLanding
303
303
  };
304
- //# sourceMappingURL=chunk-XY4OBD26.js.map
304
+ //# sourceMappingURL=chunk-WGKKDGSA.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  encodeTags,
6
6
  registerKind
7
- } from "./chunk-74OPNM2Z.js";
7
+ } from "./chunk-JHAZK4RY.js";
8
8
  import {
9
9
  nearestKey
10
10
  } from "./chunk-WTPZRR4I.js";
@@ -13,33 +13,33 @@ import {
13
13
  emitDiagnostic,
14
14
  numberedList,
15
15
  problemCount
16
- } from "./chunk-YEH5OIPF.js";
16
+ } from "./chunk-FMXPV5JI.js";
17
17
  import {
18
18
  isHostedFile
19
19
  } from "./chunk-VQPDATQT.js";
20
20
  import {
21
21
  RAW_WHERE,
22
22
  isRawWhere
23
- } from "./chunk-ZY55DO5P.js";
23
+ } from "./chunk-G6BEJ3NA.js";
24
24
  import {
25
25
  annotate,
26
26
  encodeStatement,
27
27
  registerStatement
28
- } from "./chunk-FKQX6KU7.js";
28
+ } from "./chunk-F3JK5RIY.js";
29
29
  import {
30
30
  COLUMN_CONTEXT,
31
31
  COLUMN_NULLABLE_TYPES,
32
32
  authoredFieldType,
33
33
  encodeField,
34
34
  isListColumn
35
- } from "./chunk-JIKGT7DO.js";
35
+ } from "./chunk-GE3JV5SI.js";
36
36
  import {
37
37
  argsOrEmpty,
38
38
  assertArg,
39
39
  assertStatements,
40
40
  describeEntry,
41
41
  isTaggedArg
42
- } from "./chunk-4MIV244X.js";
42
+ } from "./chunk-SGEOXJIH.js";
43
43
 
44
44
  // src/util/known-keys.ts
45
45
  function assertKnownKeys(where, v, known) {
@@ -521,6 +521,13 @@ function assertIndexFieldTypes(def) {
521
521
  if ((type === "hash" || type === "vector") && index.fields.length !== 1) {
522
522
  throw new Error(`${at}: a ${type} index covers exactly one column \u2014 the deploy fails on ${index.fields.length}. Declare one index per column.`);
523
523
  }
524
+ if (type === "search" && (index.name === void 0 || index.name === "")) {
525
+ emitDiagnostic({
526
+ severity: "warning",
527
+ code: "table.search-index-unnamed",
528
+ message: `${at}: a search index is queried by its \`name\` (\`col("$<name>")\` + \`qf.search_rank\`), so without one it deploys but can never be searched. Give it \`name: "<name>"\` and match rows with \`where: cmp(col("$<name>"), "search", <term>)\`.`
529
+ });
530
+ }
524
531
  const ops = INDEX_OPS[type];
525
532
  const xdo = def.useXdo === true;
526
533
  const plainIndex = type === "btree" || type === "btree|unique" || type === "hash";
@@ -1272,4 +1279,4 @@ export {
1272
1279
  assertSeedUnique,
1273
1280
  isNonPublicColumn
1274
1281
  };
1275
- //# sourceMappingURL=chunk-TXFOQZUQ.js.map
1282
+ //# sourceMappingURL=chunk-WVVUE7LU.js.map
@@ -2,7 +2,7 @@ import {
2
2
  environmentKey,
3
3
  getEnvironment,
4
4
  readEphemeralState
5
- } from "./chunk-XY4OBD26.js";
5
+ } from "./chunk-WGKKDGSA.js";
6
6
  import {
7
7
  andList
8
8
  } from "./chunk-622HUCZT.js";
@@ -12,17 +12,17 @@ import {
12
12
  credentialFileFlagFor,
13
13
  credentialFileOf,
14
14
  recordedByEnvCredential
15
- } from "./chunk-ZRXDPCMN.js";
15
+ } from "./chunk-ZYZ7GRX3.js";
16
16
  import {
17
17
  loginCommand,
18
18
  profileAddCommand,
19
19
  recordedCredentialPath,
20
20
  recordedProfileStored
21
- } from "./chunk-WS4BA75E.js";
21
+ } from "./chunk-AJBOGO5U.js";
22
22
  import {
23
23
  findPointerFile,
24
24
  readPointerFile
25
- } from "./chunk-ECQXASG3.js";
25
+ } from "./chunk-IFHFJR5O.js";
26
26
  import {
27
27
  DEFAULT_PROFILE
28
28
  } from "./chunk-MF4W6FHU.js";
@@ -33,7 +33,7 @@ import {
33
33
  CliError,
34
34
  EXIT_SOURCE_UNRESOLVABLE,
35
35
  UsageError
36
- } from "./chunk-GRXX2TOJ.js";
36
+ } from "./chunk-ZHFSIQ6E.js";
37
37
 
38
38
  // src/emit/env-target.ts
39
39
  var ENV_CREDENTIAL_NAMES = ["XANO_INSTANCE_URL", "XANO_WORKSPACE_ID", "XANO_META_TOKEN", "XANO_REFRESH_TOKEN", "XANO_CLIENT_ID"];
@@ -142,7 +142,7 @@ var SENDS_ELSEWHERE = /* @__PURE__ */ new WeakSet();
142
142
  async function reachableFirst(refusal, auth) {
143
143
  if (!(refusal instanceof Error) || !SENDS_ELSEWHERE.has(refusal)) return refusal;
144
144
  if (auth === void 0 || !("access_token" in auth)) return refusal;
145
- const { refuseUnreachableWorkspace } = await import("./workspace-binding-3UT6PP4B.js");
145
+ const { refuseUnreachableWorkspace } = await import("./workspace-binding-MVOWGNYW.js");
146
146
  try {
147
147
  await refuseUnreachableWorkspace(auth);
148
148
  } catch (unreachable) {
@@ -167,4 +167,4 @@ export {
167
167
  otherCredentialRefusal,
168
168
  reachableFirst
169
169
  };
170
- //# sourceMappingURL=chunk-JAYHFXWH.js.map
170
+ //# sourceMappingURL=chunk-WXQ7BHVQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sdkKindName
3
- } from "./chunk-5KJBWIDZ.js";
3
+ } from "./chunk-VQDVEHDB.js";
4
4
 
5
5
  // src/validate/capabilities.ts
6
6
  var CAPABILITIES = {
@@ -14,7 +14,11 @@ var CAPABILITIES = {
14
14
  },
15
15
  premiumInstance: {
16
16
  label: "a premium instance",
17
- effect: "`s.await` (awaiting an async function run) and direct SQL"
17
+ effect: "`s.await` (awaiting an async function run), an `async-shared` run, and direct SQL"
18
+ },
19
+ asyncDedicated: {
20
+ label: "dedicated async workers",
21
+ effect: "an `async-dedicated` `s.function.run` or `s.ai.agent.run`"
18
22
  },
19
23
  directQuery: {
20
24
  label: "direct-query support",
@@ -46,7 +50,11 @@ var CAPABILITIES = {
46
50
  attachment: { label: "attachment storage", effect: "`s.storage.create_attachment`" },
47
51
  privateStorage: {
48
52
  label: "private file storage",
49
- effect: "`s.storage.sign_private_url`"
53
+ effect: "`s.storage.sign_private_url`",
54
+ // Measured: every call answers 403 "Not supported. Please upgrade your Xano
55
+ // instance." on the local engine, 200 with a signed URL on an ephemeral.
56
+ localEngine: "the local Xano Engine refuses it (403 `Not supported`) \u2014 exercise it on an ephemeral (`deploy --ephemeral`)",
57
+ localEngineRefusal: '403 "Not supported. Please upgrade your Xano instance."'
50
58
  },
51
59
  webflow: { label: "the Webflow integration", effect: "`s.webflow.request`" },
52
60
  datadog: { label: "the Datadog integration", effect: "every `s.datadog.*` statement" }
@@ -74,6 +82,7 @@ var STATEMENT_CAPABILITIES = {
74
82
  "mvp:dbo_direct_query": ["premiumInstance", "directQuery"],
75
83
  "mvp:microservice_request": ["microservice"],
76
84
  "mvp:realtime_publish": ["realtimeV2"],
85
+ "mvp:realtime_kick": ["realtimeV2"],
77
86
  // Files. The zip family is gated on the instance not being FREE; the readers
78
87
  // below are gated on raw file access, which is a separate flag.
79
88
  "mvp:zip_add_file_resource": ["paidInstance"],
@@ -100,17 +109,37 @@ var STATEMENT_CAPABILITIES = {
100
109
  "mvp:datadog_metric": ["datadog"],
101
110
  "mvp:datadog_metric_bulk": ["datadog"]
102
111
  };
112
+ var ASYNC_RUN_STATEMENTS = /* @__PURE__ */ new Set(["mvp:function", "mvp:call_agent"]);
113
+ var ASYNC_MODE_CAPABILITIES = {
114
+ "async-shared": "premiumInstance",
115
+ "async-dedicated": "asyncDedicated"
116
+ };
103
117
  var STATEMENT_EFFECTS = {
104
118
  "mvp:async_function_await": "`s.await` (awaiting an async function run)",
105
- "mvp:dbo_direct_query": "direct SQL"
119
+ "mvp:call_agent@async-shared": "an `async-shared` `s.ai.agent.run`",
120
+ "mvp:dbo_direct_query": "direct SQL",
121
+ "mvp:function@async-shared": "an `async-shared` `s.function.run`"
106
122
  };
107
- function effectOf(id, names) {
108
- const parts = [...names].sort().map((n) => Object.hasOwn(STATEMENT_EFFECTS, n) ? STATEMENT_EFFECTS[n] : void 0);
109
- return parts.every((p) => p !== void 0) && parts.length > 0 && id === "premiumInstance" ? parts.join(" and ") : CAPABILITIES[id].effect;
123
+ function effectOf(id, keys) {
124
+ const parts = [...keys].sort().map((n) => Object.hasOwn(STATEMENT_EFFECTS, n) ? STATEMENT_EFFECTS[n] : void 0);
125
+ if (id !== "premiumInstance" || parts.length === 0 || !parts.every((p) => p !== void 0)) return CAPABILITIES[id].effect;
126
+ return parts.length === 1 ? parts[0] : `${parts.slice(0, -1).join(", ")} and ${parts[parts.length - 1]}`;
127
+ }
128
+ function localEngineNote(cap) {
129
+ return {
130
+ ...cap.localEngine !== void 0 ? { localEngine: cap.localEngine } : {},
131
+ ...cap.localEngineRefusal !== void 0 ? { localEngineRefusal: cap.localEngineRefusal } : {}
132
+ };
110
133
  }
111
134
  function bundleCapabilities(bundle) {
112
135
  const statements = /* @__PURE__ */ new Map();
113
136
  const objects = /* @__PURE__ */ new Map();
137
+ const effects = /* @__PURE__ */ new Map();
138
+ const need = (id, name, effect, context) => {
139
+ (statements.get(id) ?? statements.set(id, /* @__PURE__ */ new Set()).get(id)).add(name);
140
+ (effects.get(id) ?? effects.set(id, /* @__PURE__ */ new Set()).get(id)).add(effect);
141
+ if (context !== "") (objects.get(id) ?? objects.set(id, /* @__PURE__ */ new Set()).get(id)).add(context);
142
+ };
114
143
  const walk = (node, context, key, section) => {
115
144
  if (Array.isArray(node)) {
116
145
  for (const item of node) walk(item, context, key, section);
@@ -123,9 +152,10 @@ function bundleCapabilities(bundle) {
123
152
  const nextContext = own === void 0 ? context : section && key !== void 0 ? `${sdkKindName(key, obj)} "${own}"` : own;
124
153
  if (typeof name === "string") {
125
154
  const ids = Object.hasOwn(STATEMENT_CAPABILITIES, name) ? STATEMENT_CAPABILITIES[name] : void 0;
126
- for (const id of ids ?? []) {
127
- (statements.get(id) ?? statements.set(id, /* @__PURE__ */ new Set()).get(id)).add(name);
128
- if (context !== "") (objects.get(id) ?? objects.set(id, /* @__PURE__ */ new Set()).get(id)).add(context);
155
+ for (const id of ids ?? []) need(id, name, name, context);
156
+ const mode = ASYNC_RUN_STATEMENTS.has(name) ? obj.runtime?.mode : void 0;
157
+ if (typeof mode === "string" && Object.hasOwn(ASYNC_MODE_CAPABILITIES, mode)) {
158
+ need(ASYNC_MODE_CAPABILITIES[mode], name, `${name}@${mode}`, context);
129
159
  }
130
160
  }
131
161
  for (const [k, value] of Object.entries(obj)) walk(value, nextContext, k, key === "payload");
@@ -134,15 +164,40 @@ function bundleCapabilities(bundle) {
134
164
  return [...statements.entries()].map(([id, names]) => ({
135
165
  id,
136
166
  label: CAPABILITIES[id].label,
137
- effect: effectOf(id, names),
167
+ effect: effectOf(id, effects.get(id) ?? /* @__PURE__ */ new Set()),
138
168
  statements: [...names].sort(),
139
- objects: [...objects.get(id) ?? []].sort()
169
+ objects: [...objects.get(id) ?? []].sort(),
170
+ ...localEngineNote(CAPABILITIES[id])
140
171
  })).sort((a, b) => a.label.localeCompare(b.label));
141
172
  }
173
+ function capabilityReport(needs, opts) {
174
+ if (needs.length === 0) return { info: void 0, unavailable: [] };
175
+ const unavailable = [];
176
+ const lines = needs.map((need) => {
177
+ const where = need.objects.length ? ` (e.g. ${need.objects[0]}${need.objects.length > 1 ? ` +${need.objects.length - 1} more` : ""})` : "";
178
+ if (opts.localEngine && need.localEngineRefusal !== void 0) {
179
+ unavailable.push({
180
+ id: need.id,
181
+ message: `${need.label} is unavailable on the local Xano Engine: ${need.effect} returns ${need.localEngineRefusal} there${where}. Exercise it on an ephemeral (\`deploy --ephemeral\`).`
182
+ });
183
+ return `${need.label} \u2014 ${need.effect}${where}; unavailable on the local Xano Engine`;
184
+ }
185
+ return `${need.label} \u2014 ${need.effect}${where}${need.localEngine !== void 0 ? `; \u26A0 ${need.localEngine}` : ""}`;
186
+ });
187
+ return {
188
+ info: {
189
+ heading: `This bundle needs ${needs.length} instance capabilit${needs.length === 1 ? "y" : "ies"}:`,
190
+ lines,
191
+ footer: "Check these against the plan of anything you promote to; the deploy cannot."
192
+ },
193
+ unavailable
194
+ };
195
+ }
142
196
 
143
197
  export {
144
198
  CAPABILITIES,
145
199
  STATEMENT_CAPABILITIES,
146
- bundleCapabilities
200
+ bundleCapabilities,
201
+ capabilityReport
147
202
  };
148
- //# sourceMappingURL=chunk-7REDHC4N.js.map
203
+ //# sourceMappingURL=chunk-X5NF3ZXW.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-FWD7AL6N.js";
9
9
  import {
10
10
  isLocalSpecifier
11
- } from "./chunk-WS2X5BB2.js";
11
+ } from "./chunk-YYBBJPCL.js";
12
12
  import {
13
13
  trackLocalWrite
14
14
  } from "./chunk-4KHEMC32.js";
@@ -24,10 +24,10 @@ import {
24
24
  localPathOf,
25
25
  packageNameOf,
26
26
  readInstalledManifestState
27
- } from "./chunk-SPLRKCFV.js";
27
+ } from "./chunk-XDGLYIB2.js";
28
28
  import {
29
29
  UsageError
30
- } from "./chunk-GRXX2TOJ.js";
30
+ } from "./chunk-ZHFSIQ6E.js";
31
31
 
32
32
  // src/emit/project-dependency.ts
33
33
  import { existsSync, readFileSync } from "fs";
@@ -169,4 +169,4 @@ export {
169
169
  removeDependency,
170
170
  recordedDependency
171
171
  };
172
- //# sourceMappingURL=chunk-5W7S2SCA.js.map
172
+ //# sourceMappingURL=chunk-XAE4NIZ2.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WAVNUTMT.js";
4
4
  import {
5
5
  UsageError
6
- } from "./chunk-GRXX2TOJ.js";
6
+ } from "./chunk-ZHFSIQ6E.js";
7
7
 
8
8
  // src/emit/module-manifest.ts
9
9
  import { existsSync, readFileSync, statSync } from "fs";
@@ -179,4 +179,4 @@ export {
179
179
  loadFile,
180
180
  homepageOf
181
181
  };
182
- //# sourceMappingURL=chunk-SPLRKCFV.js.map
182
+ //# sourceMappingURL=chunk-XDGLYIB2.js.map