@xano/sdk 1.0.15 → 1.0.17

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 +33 -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-QTFMNYPY.js} +12 -12
  5. package/dist/{agent-skill-command-DV26SDA2.js → agent-skill-command-XZVBG34H.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-DCT3T6HP.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-OEMOFAKC.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-3H7R4ISR.js → chunk-2DUYJR5N.js} +2 -2
  16. package/dist/{chunk-MFWF2NZJ.js → chunk-2H5BQRHF.js} +2 -2
  17. package/dist/{chunk-GDJCWQIK.js → chunk-2IC3K22K.js} +12 -8
  18. package/dist/{chunk-O44MJTLR.js → chunk-35SI4GBM.js} +3 -3
  19. package/dist/{chunk-VUWR5YLE.js → chunk-3QQFP3AD.js} +13 -13
  20. package/dist/{chunk-ICK36EGF.js → chunk-4EVDCSEY.js} +2 -2
  21. package/dist/{chunk-GIQIMWTK.js → chunk-4LT5AVHF.js} +14 -14
  22. package/dist/{chunk-AXMUYBWQ.js → chunk-4XGZ325S.js} +3 -3
  23. package/dist/{chunk-JWASCOHO.js → chunk-52QAENY6.js} +14 -14
  24. package/dist/{chunk-2LF734YB.js → chunk-54CJ74BH.js} +4 -4
  25. package/dist/{chunk-ASQX477B.js → chunk-573RRKNT.js} +7 -7
  26. package/dist/{chunk-3GZMP7II.js → chunk-5AVFVC22.js} +38 -22
  27. package/dist/{chunk-IKXXTRMN.js → chunk-64UVVLDT.js} +4 -4
  28. package/dist/{chunk-RBTZEHXF.js → chunk-6DSA6W4O.js} +3 -3
  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-ZF2CBXT5.js → chunk-7NKC4MBT.js} +3 -3
  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-FOBVJ2UR.js → chunk-ACFBRMCS.js} +8 -8
  35. package/dist/{chunk-RVAEPPRH.js → chunk-AICWDCLJ.js} +2 -2
  36. package/dist/{chunk-WS4BA75E.js → chunk-AJBOGO5U.js} +4 -4
  37. package/dist/{chunk-AE5CRAKS.js → chunk-ANUBTY3C.js} +8 -8
  38. package/dist/{chunk-UVHSMANV.js → chunk-C6RBLPFY.js} +47 -47
  39. package/dist/{chunk-SHHXLI2K.js → chunk-CNNGNK46.js} +7 -7
  40. package/dist/{chunk-7ZQ73AHJ.js → chunk-CWC6HE66.js} +31 -31
  41. package/dist/{chunk-A2N2C2WD.js → chunk-DNUU4IEM.js} +7 -7
  42. package/dist/{chunk-Q7DGTQ5G.js → chunk-E34VGSCI.js} +2 -1
  43. package/dist/{chunk-YR3MNGWZ.js → chunk-E5M5P23K.js} +8 -8
  44. package/dist/{chunk-HJZUI2ZU.js → chunk-EAZTRU75.js} +2 -2
  45. package/dist/{chunk-KMKUH2IO.js → chunk-EPB6FAR5.js} +5 -5
  46. package/dist/{chunk-B6AFJVG4.js → chunk-ES6FBPLY.js} +5 -5
  47. package/dist/chunk-EUAU4QKI.js +67 -0
  48. package/dist/{chunk-IDOVZLPK.js → chunk-EXJ4Q5F6.js} +2 -2
  49. package/dist/{chunk-FKQX6KU7.js → chunk-F3JK5RIY.js} +2 -2
  50. package/dist/{chunk-W2QFR3ZJ.js → chunk-FIOC7RSU.js} +2 -2
  51. package/dist/{chunk-YEH5OIPF.js → chunk-FMXPV5JI.js} +39 -11
  52. package/dist/{chunk-GVHWIDEJ.js → chunk-FRJB3NTE.js} +10 -5
  53. package/dist/{chunk-TXFOQZUQ.js → chunk-FSHW3GQU.js} +14 -7
  54. package/dist/{chunk-VIRFG3WG.js → chunk-FTFAPKCW.js} +23 -7
  55. package/dist/{chunk-LL6ED5IB.js → chunk-FTS42N37.js} +2 -2
  56. package/dist/{chunk-HCNIB3EC.js → chunk-FYPTWYCU.js} +4 -4
  57. package/dist/{chunk-MIS6F4HM.js → chunk-G2XSDIYS.js} +4 -4
  58. package/dist/{chunk-ZY55DO5P.js → chunk-G6BEJ3NA.js} +2 -2
  59. package/dist/{chunk-RYWNNJK5.js → chunk-GA6HTO3O.js} +2 -2
  60. package/dist/{chunk-ZYECXDVV.js → chunk-GBPIFCWL.js} +5 -5
  61. package/dist/{chunk-JIKGT7DO.js → chunk-GE3JV5SI.js} +1 -1
  62. package/dist/{chunk-GCINMMFL.js → chunk-GJZMKMWO.js} +2 -2
  63. package/dist/{chunk-6X73VFCX.js → chunk-GT7PZCTK.js} +2 -2
  64. package/dist/{chunk-TT6LN55R.js → chunk-GUC73LRA.js} +8 -8
  65. package/dist/{chunk-ZC6H2ERE.js → chunk-GYM22X2X.js} +5 -5
  66. package/dist/{chunk-V7WCTXEH.js → chunk-H3R4PAOI.js} +5 -5
  67. package/dist/{chunk-QW7NGUYW.js → chunk-H5OM5G3O.js} +244 -173
  68. package/dist/{chunk-WXKSB2N3.js → chunk-HM5X73PY.js} +3 -3
  69. package/dist/{chunk-K6SWZ6H4.js → chunk-HMV2VGTU.js} +54 -54
  70. package/dist/{chunk-G4WRZU5T.js → chunk-HXFUCPZO.js} +7 -7
  71. package/dist/{chunk-ECQXASG3.js → chunk-IFHFJR5O.js} +2 -2
  72. package/dist/{chunk-7AKH4QDJ.js → chunk-J2KY2VNC.js} +96 -65
  73. package/dist/{chunk-74OPNM2Z.js → chunk-JHAZK4RY.js} +3 -3
  74. package/dist/{chunk-JAYHFXWH.js → chunk-LWGCUB2A.js} +7 -7
  75. package/dist/{chunk-CJGLAQRD.js → chunk-LXJ72GY2.js} +4 -4
  76. package/dist/{chunk-OZWAITII.js → chunk-M2IB6N4V.js} +6 -6
  77. package/dist/{chunk-GKQTXUOW.js → chunk-MOVRSULZ.js} +2 -2
  78. package/dist/{chunk-QAEBBTYR.js → chunk-MSYMEP7Y.js} +7 -7
  79. package/dist/{chunk-Y453TW6J.js → chunk-NCERS5QH.js} +2 -2
  80. package/dist/{chunk-T3HNISBN.js → chunk-NDRIMFSH.js} +3 -3
  81. package/dist/{chunk-HXFLHA5K.js → chunk-NH5Z2NOD.js} +2 -2
  82. package/dist/{chunk-FXZEZAV2.js → chunk-NLWYNVJV.js} +3 -3
  83. package/dist/{chunk-66ZU2CD5.js → chunk-O2BLNQEC.js} +236 -17
  84. package/dist/{chunk-5SKWGCAJ.js → chunk-O7Z3LF44.js} +5 -5
  85. package/dist/{chunk-DBDTQR23.js → chunk-OTQF4B37.js} +4 -4
  86. package/dist/{chunk-SL55XKVL.js → chunk-PCY4IPXK.js} +25 -25
  87. package/dist/{chunk-ZDVVIJPU.js → chunk-PODT53SQ.js} +4 -4
  88. package/dist/{chunk-GBSHHNSD.js → chunk-PRSNMSVG.js} +3 -3
  89. package/dist/{chunk-UNFQN3TT.js → chunk-Q3CBDXKL.js} +3 -3
  90. package/dist/{chunk-P7GKTV7N.js → chunk-Q4LJCCH5.js} +75 -32
  91. package/dist/{chunk-DGYXCIBV.js → chunk-Q6AKSLD2.js} +2 -2
  92. package/dist/{chunk-7FIMUFBP.js → chunk-QDPY7RN3.js} +3 -3
  93. package/dist/{chunk-MGG4CHO4.js → chunk-QIT2GGNB.js} +3 -3
  94. package/dist/{chunk-VXHXSGPU.js → chunk-QTOW6YXL.js} +8 -8
  95. package/dist/{chunk-5SJQAJLF.js → chunk-QYZSNN35.js} +3 -3
  96. package/dist/{chunk-NNI5R6V6.js → chunk-R7Y6S7FF.js} +72 -72
  97. package/dist/{chunk-BEKEOXNG.js → chunk-RGPHFHJU.js} +2 -2
  98. package/dist/{chunk-YCKKL5PD.js → chunk-RH3NQTGQ.js} +53 -47
  99. package/dist/{chunk-5FJ4M4HB.js → chunk-RHH6SCB4.js} +17 -32
  100. package/dist/{chunk-M7O3T7IM.js → chunk-RIT3WBBX.js} +4 -4
  101. package/dist/{chunk-45K2QZBR.js → chunk-RKNCISPM.js} +3 -3
  102. package/dist/{chunk-NPYYDTXS.js → chunk-RKTVXFBV.js} +5 -5
  103. package/dist/{chunk-AXNX4NWN.js → chunk-RLQX6LHW.js} +37 -37
  104. package/dist/{chunk-FIERONKM.js → chunk-ROWYW3JF.js} +2 -2
  105. package/dist/{chunk-LSJ3SQEU.js → chunk-RVWWNNZQ.js} +4 -4
  106. package/dist/{chunk-4MIV244X.js → chunk-SGEOXJIH.js} +9 -2
  107. package/dist/{chunk-QRMKQYCB.js → chunk-SINL5WMI.js} +2 -2
  108. package/dist/{chunk-Z6N5N4MN.js → chunk-SIW2HT2H.js} +21 -5
  109. package/dist/{chunk-IEDQT4Z3.js → chunk-SOAZIMWL.js} +12 -12
  110. package/dist/{chunk-R3GPRNBT.js → chunk-SVQMDVND.js} +87 -16
  111. package/dist/{chunk-45ZUMF4E.js → chunk-TPUAXIPR.js} +2 -2
  112. package/dist/{chunk-76SBT7KS.js → chunk-U56HK2RG.js} +7 -5
  113. package/dist/{chunk-RXNMZM6H.js → chunk-UDW2KAVF.js} +6 -6
  114. package/dist/{chunk-NDV6CBR7.js → chunk-UH5VQGNR.js} +2 -2
  115. package/dist/{chunk-75QC66XI.js → chunk-V2MIBJZU.js} +2 -2
  116. package/dist/{chunk-N72XNQNJ.js → chunk-V4466NNS.js} +14 -14
  117. package/dist/{chunk-XPSDDTUZ.js → chunk-VCFRALU7.js} +3 -3
  118. package/dist/{chunk-5KJBWIDZ.js → chunk-VQDVEHDB.js} +2 -2
  119. package/dist/{chunk-6EFXPTHT.js → chunk-WAP5362D.js} +5 -5
  120. package/dist/{chunk-DH6O5NQU.js → chunk-WDN4QIJ4.js} +29 -20
  121. package/dist/{chunk-XLP4CNSF.js → chunk-WGGATSIP.js} +6 -6
  122. package/dist/{chunk-XY4OBD26.js → chunk-WGKKDGSA.js} +4 -4
  123. package/dist/{chunk-ZPJXWMHK.js → chunk-WLZSKD7E.js} +4 -4
  124. package/dist/{chunk-7REDHC4N.js → chunk-X5NF3ZXW.js} +69 -14
  125. package/dist/{chunk-5W7S2SCA.js → chunk-XAE4NIZ2.js} +4 -4
  126. package/dist/{chunk-SPLRKCFV.js → chunk-XDGLYIB2.js} +2 -2
  127. package/dist/{chunk-WS2X5BB2.js → chunk-YYBBJPCL.js} +5 -5
  128. package/dist/{chunk-ZOHEHIFS.js → chunk-YYDM4DNP.js} +2 -2
  129. package/dist/{chunk-SH4RY6QX.js → chunk-Z73I7Q2H.js} +1536 -413
  130. package/dist/{chunk-GRXX2TOJ.js → chunk-ZHFSIQ6E.js} +2 -2
  131. package/dist/{chunk-SXMZNSQ6.js → chunk-ZQUBCGGR.js} +8 -8
  132. package/dist/{chunk-ZRXDPCMN.js → chunk-ZYZ7GRX3.js} +2 -2
  133. package/dist/cli.d.ts +3 -3
  134. package/dist/cli.js +62 -61
  135. package/dist/codegen-command-HCHTNHDF.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-LYZ76OBA.js} +69 -68
  142. package/dist/{deploy-source-QCPZWNJO.js → deploy-source-AJESF6J2.js} +32 -32
  143. package/dist/{dev-env-sync-6MHK3UHC.js → dev-env-sync-PZEIRCFC.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-DlOKIJER.d.ts} +185 -96
  147. package/dist/env-example-refresh-HLE2HRV4.js +136 -0
  148. package/dist/{env-pull-command-KUIEKBTM.js → env-pull-command-OTTZHTLK.js} +52 -52
  149. package/dist/{env-target-Y77RLRS5.js → env-target-VXOMKCMO.js} +14 -14
  150. package/dist/{env-var-command-BZWJD75C.js → env-var-command-TDVSO3JY.js} +41 -41
  151. package/dist/{ephemeral-VLPRDNEJ.js → ephemeral-2DXWP3VK.js} +9 -9
  152. package/dist/{ephemeral-command-SYKDPALW.js → ephemeral-command-AX5TRR23.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-LMSKMR4J.js} +89 -88
  155. package/dist/{gitignore-OQGYM7DO.js → gitignore-GKM5G2DJ.js} +15 -15
  156. package/dist/{guards-JUYBDLZY.js → guards-LQ7PSXOL.js} +51 -15
  157. package/dist/{impersonate-command-HSFCZBV6.js → impersonate-command-QTEOBL5N.js} +37 -37
  158. package/dist/{import-T4ZTOTBT.js → import-VJQGIS33.js} +5 -5
  159. package/dist/index.d.ts +597 -118
  160. package/dist/index.js +29 -28
  161. package/dist/init-command-OMZVE54Z.js +143 -0
  162. package/dist/{init-modules-BL2SR5RK.js → init-modules-OTISW6LL.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 +696 -506
  166. package/dist/{io-PGTCBSIQ.js → io-47TFRYDB.js} +6 -6
  167. package/dist/{keep-data-merge-SHF75FC7.js → keep-data-merge-ECLY5DYP.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-RVE5WLFS.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-CMG5V7RL.js} +35 -35
  173. package/dist/{local-engine-command-6KSRDZBR.js → local-engine-command-UMY37AZL.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-AV2T3U4B.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-PSKHBOKS.js} +67 -66
  182. package/dist/{login-command-BNRDAVFV.js → login-command-M7RKU3DR.js} +27 -27
  183. package/dist/{logout-command-FCGCHB7Y.js → logout-command-DAC3XKLT.js} +17 -17
  184. package/dist/{loop-WOAEXMTC.js → loop-HILLODVH.js} +15 -15
  185. package/dist/{marketplace-command-SUBJZPJV.js → marketplace-command-2M33OTSN.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-FC4DWPAC.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-3V4G7QD3.js} +24 -24
  192. package/dist/{output-target-KNHHNDM3.js → output-target-LTU4L3IA.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-724B7Y73.js} +75 -74
  198. package/dist/{profile-command-U2XTKOMF.js → profile-command-REIJ4F3Y.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-5FK2NFHG.js +149 -0
  203. package/dist/{prompt-QNMJIWNI.js → prompt-OYQHQWKI.js} +4 -4
  204. package/dist/{publish-command-5ZVZ6IYT.js → publish-command-VEDUWLVB.js} +72 -71
  205. package/dist/pull-command-UXNEJSDI.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-BCKJ4BUN.js +153 -0
  209. package/dist/{release-ns-command-LDN5DOKQ.js → release-ns-command-VFI4PPSX.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-R3JLJ5CA.js +41 -0
  213. package/dist/scaffold.js +2 -2
  214. package/dist/{secrets-file-7QM3ORGX.js → secrets-file-GF46TDY7.js} +15 -15
  215. package/dist/{secrets-fill-command-OZ537VOD.js → secrets-fill-command-HKNROT6W.js} +66 -65
  216. package/dist/{seed-ATGBOEJP.js → seed-W5FNE6IB.js} +13 -13
  217. package/dist/{source-resolve-QYSWA3QR.js → source-resolve-QYSVNJMY.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-RLXDDCZA.js} +38 -38
  220. package/dist/{store-AJX4MC7Y.js → store-B63BQV6R.js} +6 -6
  221. package/dist/{store-DspGMsFY.d.ts → store-Dg9FLJkx.d.ts} +185 -11
  222. package/dist/sync-baseline-GRS33AB5.js +38 -0
  223. package/dist/{sync-contributions-DLV5JZUK.js → sync-contributions-BV7DFWBZ.js} +9 -9
  224. package/dist/{sync-record-NE62ERA3.js → sync-record-AWFCSS4D.js} +15 -15
  225. package/dist/{table-TFD4ZQXA.js → table-WJ7YDJ6Q.js} +12 -12
  226. package/dist/{tables-command-IMCVPUFY.js → tables-command-EXHXLLN6.js} +41 -41
  227. package/dist/{tenant-IIYECNWO.js → tenant-IXIW3FOI.js} +10 -10
  228. package/dist/{tenant-command-77KG76MU.js → tenant-command-D5H7MR3C.js} +104 -103
  229. package/dist/{test-command-NSPU4RUO.js → test-command-ORMWZXC3.js} +56 -45
  230. package/dist/{tests-JWQRHFCT.js → tests-N4MMBABH.js} +6 -6
  231. package/dist/{token-BDHD7GU3.js → token-EFSD6WSQ.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-BC37MYYD.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-IPEGNGNI.js} +34 -34
  236. package/dist/update-check-4YTFF7NB.js +141 -0
  237. package/dist/{upgrade-command-YCADQCIA.js → upgrade-command-J4CPYEGO.js} +68 -67
  238. package/dist/{whoami-command-IZCTUPM4.js → whoami-command-XGVTKQSL.js} +16 -16
  239. package/dist/{workspace-TK52V7WO.js → workspace-JGUNVFRE.js} +5 -5
  240. package/dist/{workspace-binding-3UT6PP4B.js → workspace-binding-MQ2QIWOJ.js} +15 -15
  241. package/dist/{workspace-command-46OCB6XT.js → workspace-command-LSEG62RA.js} +100 -99
  242. package/dist/{workspace-env-PVPOWFNZ.js → workspace-env-7U7OLRUO.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-RLSNDM7O.js +44 -0
  246. package/dist/{xanosdk-import-XXJT365U.js → xanosdk-import-Y5SBF4LP.js} +10 -10
  247. package/dist/{xanosdk-project-CJKRLQ6U.js → xanosdk-project-5XARMFZ7.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 +56 -32
  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 +15 -19
  273. package/llms/values.md +16 -9
  274. package/llms-full.txt +647 -506
  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
@@ -2,7 +2,7 @@ import {
2
2
  UsageError,
3
3
  flagNames,
4
4
  unknownFlag
5
- } from "./chunk-GRXX2TOJ.js";
5
+ } from "./chunk-ZHFSIQ6E.js";
6
6
 
7
7
  // src/emit/plugin-questions.ts
8
8
  function hostLabel(host) {
@@ -156,4 +156,4 @@ export {
156
156
  assertNoFlagCollisions,
157
157
  resolvePluginAnswers
158
158
  };
159
- //# sourceMappingURL=chunk-FIERONKM.js.map
159
+ //# sourceMappingURL=chunk-ROWYW3JF.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  hasString,
3
3
  listAnswer
4
- } from "./chunk-QRMKQYCB.js";
4
+ } from "./chunk-SINL5WMI.js";
5
5
  import {
6
6
  READ_AFTERMATH,
7
7
  explainFetchFailure,
8
8
  httpFailure,
9
9
  readBodyText
10
- } from "./chunk-HXFLHA5K.js";
10
+ } from "./chunk-NH5Z2NOD.js";
11
11
  import {
12
12
  detail,
13
13
  info,
14
14
  warn
15
- } from "./chunk-GRXX2TOJ.js";
15
+ } from "./chunk-ZHFSIQ6E.js";
16
16
 
17
17
  // src/deploy/microservice-status.ts
18
18
  var TIMEOUT_MS = 3e4;
@@ -168,4 +168,4 @@ export {
168
168
  readyRatio,
169
169
  printMicroserviceSection
170
170
  };
171
- //# sourceMappingURL=chunk-LSJ3SQEU.js.map
171
+ //# sourceMappingURL=chunk-RVWWNNZQ.js.map
@@ -61,7 +61,14 @@ function numberRemedy(v) {
61
61
  }
62
62
  function valueArgMessage(statement, name, v) {
63
63
  const plain = Array.isArray(v) || typeof v === "object" && v !== null;
64
- return `Statement "${label(statement)}": argument "${name}" must be a tagged value (\`c.*\`, \`ref()\`, \`inp()\`, \u2026) \u2014 got ${describeArg(v)}.` + (plain ? " A plain JS value stores an empty slot that deploys clean and then fails every request \u2014 an array of rows is `c.array([{ \u2026 }])` (plain JSON inside), a record is `c.obj({ \u2026 })`." : typeof v === "number" ? numberRemedy(v) : typeof v === "string" ? ` Wrap it: \`c.text(${JSON.stringify(v)})\`.` : typeof v === "boolean" ? ` Wrap it: \`c.bool(${v})\`.` : "");
64
+ return `Statement "${label(statement)}": argument "${name}" must be a tagged value (\`c.*\`, \`ref()\`, \`inp()\`, \u2026) \u2014 got ${describeArg(v)}.` + (plain ? " A plain JS value stores an empty slot that deploys clean and then fails every request \u2014 " + // `c.obj`/`c.array` take plain JSON only and refuse a tagged member, so
65
+ // pointing a record of `inp()`s at them just trades one error for another.
66
+ (holdsTaggedMember(v) ? Array.isArray(v) ? 'it holds values (`inp()`/`ref()`/\u2026), which `c.array` refuses: build the list inside `obj({ list: [ \u2026 ] })`, bind it with `s.set_var`, and pass `ref("<var>.list")`.' : "it holds values (`inp()`/`ref()`/\u2026), so wrap it with `obj({ \u2026 })` (`c.obj` takes plain JSON only)." : "an array of rows is `c.array([{ \u2026 }])` (plain JSON inside), a record is `c.obj({ \u2026 })`.") : typeof v === "number" ? numberRemedy(v) : typeof v === "string" ? ` Wrap it: \`c.text(${JSON.stringify(v)})\`.` : typeof v === "boolean" ? ` Wrap it: \`c.bool(${v})\`.` : "");
67
+ }
68
+ function holdsTaggedMember(v, depth = 0) {
69
+ if (depth > 32 || v === null || typeof v !== "object") return false;
70
+ const members = Array.isArray(v) ? v : Object.values(v);
71
+ return members.some((m) => isTaggedArg(m) || holdsTaggedMember(m, depth + 1));
65
72
  }
66
73
  function assertOneOf(statement, name, v, allowed) {
67
74
  if (v === void 0) return;
@@ -159,4 +166,4 @@ export {
159
166
  isVarName,
160
167
  assertNewVarName
161
168
  };
162
- //# sourceMappingURL=chunk-4MIV244X.js.map
169
+ //# sourceMappingURL=chunk-SGEOXJIH.js.map
@@ -8,7 +8,7 @@ import {
8
8
  notJsonError,
9
9
  parseJsonAnswer,
10
10
  unexpectedAnswerError
11
- } from "./chunk-HXFLHA5K.js";
11
+ } from "./chunk-NH5Z2NOD.js";
12
12
 
13
13
  // src/deploy/answer-shape.ts
14
14
  function isRecord(v) {
@@ -94,4 +94,4 @@ export {
94
94
  multidocAnswer,
95
95
  writeTransportFailure
96
96
  };
97
- //# sourceMappingURL=chunk-QRMKQYCB.js.map
97
+ //# sourceMappingURL=chunk-SINL5WMI.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  describeEntry,
10
10
  protoKeyed
11
- } from "./chunk-4MIV244X.js";
11
+ } from "./chunk-SGEOXJIH.js";
12
12
  import {
13
13
  article,
14
14
  withArticle
@@ -682,9 +682,15 @@ function col(name, opts) {
682
682
  assertNoRefOptions("col", opts);
683
683
  return val(name, "col");
684
684
  }
685
- function auth(path = "", opts) {
685
+ function auth(path, opts) {
686
686
  assertNoRefOptions("auth", opts);
687
- return val(refPath("auth", path), "auth");
687
+ const read = refPath("auth", path);
688
+ if (read === "") {
689
+ throw new Error(
690
+ 'auth() was given an empty path \u2014 the engine cannot read the bare identity. Pass a path: auth("id") (the row id), auth("extras") (the whole extras map) or auth("extras.<key>") (one claim).'
691
+ );
692
+ }
693
+ return val(read, "auth");
688
694
  }
689
695
  function drill(base, path) {
690
696
  if (path === "") return base;
@@ -1007,11 +1013,21 @@ function assertPlainPattern(part, partMask, lead, index, bodyMask, caller) {
1007
1013
  if (propMask.trim() === "" || isIdentifierName(propMask.trim()) || isQuotedShorthand(prop)) continue;
1008
1014
  const what = /^\s*\.\.\./.test(propMask) ? "a rest element" : hasTopLevel(propMask, ":") ? "a renamed or nested property" : hasTopLevel(propMask, "=") ? "a default (it never applies)" : "a computed or quoted key";
1009
1015
  const alias = hasTopLevel(propMask, ":") ? patternNames(`{${propMask}}`, `{${prop}}`)[0] : void 0;
1016
+ const key = /^\s*([^\s:]+)\s*:/.exec(prop)?.[1];
1017
+ if (index === 1 && key && alias?.startsWith(key) && /^[0-9]+$/.test(alias.slice(key.length))) {
1018
+ throw new Error(
1019
+ `${caller}: capture key \`${key}\` shares its name with a module-scope binding, so the loader rewrote \`{ ${key} }\` to \`${prop}\` (\`${alias}\` is not in your source). Use \`capture: { ${capturedKey(key)}: ${key} }\`.`
1020
+ );
1021
+ }
1010
1022
  throw new Error(
1011
1023
  `${caller}: \`${prop}\` in the parameter pattern \`${pattern}\` is ${what}, but ${notReal}` + (alias === void 0 ? `, so the pattern does nothing at runtime.` : isFreeIdentifier(alias) ? `, so \`${alias}\` is never defined: the body throws, and the engine returns that failure as text in the value slot with HTTP 200.` : `, so \`${alias}\` reads the global of that name instead \u2014 a wrong value with HTTP 200.`) + ` ${fix}`
1012
1024
  );
1013
1025
  }
1014
1026
  }
1027
+ function capturedKey(name) {
1028
+ const bare = name.replace(/^\$+/, "");
1029
+ return bare === "" ? "captured" : `captured${bare[0].toUpperCase()}${bare.slice(1)}`;
1030
+ }
1015
1031
  function closingBracket(mask, from) {
1016
1032
  let depth = 0;
1017
1033
  for (let i = from; i < mask.length; i++) {
@@ -1496,7 +1512,7 @@ function assertNoClosure(code, source) {
1496
1512
  if (/^=(?![=>])/.test(after) && /[{};]$|^$/.test(before)) continue;
1497
1513
  if (isClassMemberName(mask, start, name.length)) continue;
1498
1514
  throw new Error(
1499
- `${source}: the lambda body reads \`${name}\`, which it does not declare \u2014 it comes from the scope the function was WRITTEN in, and only the body's text reaches the engine. There \`${name}\` is not defined: the body throws, and the engine returns that failure as TEXT in the value slot with HTTP 200 \u2014 a wrong value, not an error. Inline the value as a literal, pass it through the stack (\`$var.${name}\` after a \`s.set_var\`, or an input as \`$input.${name}\`), or carry it in with \`lam.fn(body, { capture: { ${name} } })\`.`
1515
+ `${source}: the lambda body reads \`${name}\`, which it does not declare \u2014 it comes from the scope the function was WRITTEN in, and only the body's text reaches the engine. There \`${name}\` is not defined: the body throws, and the engine returns that failure as TEXT in the value slot with HTTP 200 \u2014 a wrong value, not an error. Inline the value as a literal, pass it through the stack (\`$var.${name}\` after a \`s.set_var\`, or an input as \`$input.${name}\`), or carry it in with \`lam.fn((\u2026, { ${capturedKey(name)} }) => \u2026, { capture: { ${capturedKey(name)}: ${name} } })\`.`
1500
1516
  );
1501
1517
  }
1502
1518
  }
@@ -1741,4 +1757,4 @@ export {
1741
1757
  filter,
1742
1758
  withFilters
1743
1759
  };
1744
- //# sourceMappingURL=chunk-Z6N5N4MN.js.map
1760
+ //# sourceMappingURL=chunk-SIW2HT2H.js.map
@@ -4,14 +4,14 @@ import {
4
4
  import {
5
5
  FIELD_METHODS
6
6
  } from "./chunk-3YW23UFH.js";
7
- import {
8
- obj
9
- } from "./chunk-76SBT7KS.js";
10
7
  import {
11
8
  FILTER_NAMES,
12
9
  FILTER_REQUIRED_ARGS,
13
10
  fl
14
- } from "./chunk-AXNX4NWN.js";
11
+ } from "./chunk-RLQX6LHW.js";
12
+ import {
13
+ obj
14
+ } from "./chunk-U56HK2RG.js";
15
15
  import {
16
16
  WORKSPACE_SECRETS_FILE
17
17
  } from "./chunk-3JDU4VRL.js";
@@ -25,11 +25,11 @@ import {
25
25
  isDeadResultItem,
26
26
  isEmptyCustomize,
27
27
  normalize
28
- } from "./chunk-W2QFR3ZJ.js";
28
+ } from "./chunk-FIOC7RSU.js";
29
29
  import {
30
30
  f,
31
31
  input
32
- } from "./chunk-VIRFG3WG.js";
32
+ } from "./chunk-FTFAPKCW.js";
33
33
  import {
34
34
  TAGS,
35
35
  auth,
@@ -47,10 +47,10 @@ import {
47
47
  sys,
48
48
  toolset,
49
49
  withFilters
50
- } from "./chunk-Z6N5N4MN.js";
50
+ } from "./chunk-SIW2HT2H.js";
51
51
  import {
52
52
  REFERENCEABLE_KIND_PAYLOAD_KEYS
53
- } from "./chunk-LL6ED5IB.js";
53
+ } from "./chunk-FTS42N37.js";
54
54
  import {
55
55
  CATALOG_BY_TYPE,
56
56
  COLUMN_CONTEXT,
@@ -59,7 +59,7 @@ import {
59
59
  defaultNullable,
60
60
  encodeField,
61
61
  parseMethod
62
- } from "./chunk-JIKGT7DO.js";
62
+ } from "./chunk-GE3JV5SI.js";
63
63
 
64
64
  // src/codegen/report.ts
65
65
  var AUDIENCE_ORDER = [
@@ -986,7 +986,7 @@ function parseReference(token) {
986
986
  case "db":
987
987
  return path === "" ? null : { expr: call("col", lit(path)), built: col(path), symbols: ["col"] };
988
988
  case "auth":
989
- return path === "" ? { expr: call("auth"), built: auth(), symbols: ["auth"] } : { expr: call("auth", lit(path)), built: auth(path), symbols: ["auth"] };
989
+ return path === "" ? null : { expr: call("auth", lit(path)), built: auth(path), symbols: ["auth"] };
990
990
  default:
991
991
  return null;
992
992
  }
@@ -1271,7 +1271,7 @@ function decodeBase(v, regexPiped) {
1271
1271
  case "input":
1272
1272
  return propose(call("inp", lit(v.value)), inp(v.value), "inp");
1273
1273
  case "auth":
1274
- return propose(call("auth", lit(v.value)), auth(v.value), "auth");
1274
+ return propose(call("auth", lit(v.value)), attempt(() => auth(v.value)), "auth");
1275
1275
  case "col":
1276
1276
  return propose(call("col", lit(v.value)), col(v.value), "col");
1277
1277
  case "trycatch":
@@ -2021,4 +2021,4 @@ export {
2021
2021
  decodeTableSchema,
2022
2022
  decodeResponse
2023
2023
  };
2024
- //# sourceMappingURL=chunk-IEDQT4Z3.js.map
2024
+ //# sourceMappingURL=chunk-SOAZIMWL.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  parsePathParams,
6
6
  pathSegment
7
- } from "./chunk-JWASCOHO.js";
7
+ } from "./chunk-52QAENY6.js";
8
8
  import {
9
9
  linkedTableOf,
10
10
  tableRefOf
@@ -13,7 +13,7 @@ import {
13
13
  COLUMN_NULLABLE_TYPES,
14
14
  INPUT_NULLABLE_TYPES,
15
15
  isListColumn
16
- } from "./chunk-JIKGT7DO.js";
16
+ } from "./chunk-GE3JV5SI.js";
17
17
 
18
18
  // src/emit/route-inputs.ts
19
19
  var SCALAR_TYPES = /* @__PURE__ */ new Set([
@@ -158,16 +158,15 @@ var OBJECT_MEMBERS = /* @__PURE__ */ new Set([
158
158
  "isPrototypeOf",
159
159
  "propertyIsEnumerable"
160
160
  ]);
161
- var FILE_REF = "{ path?: string; name?: string; type?: string; size?: number; access?: string; meta?: unknown; url?: string }";
162
- var FILE_UPLOAD = "{ readonly __fileUpload?: never }";
163
- var POSITION = "{ lng: number; lat: number }";
161
+ var FILE_REF = "{ path?: string; name?: string; type?: string; size?: number; mime?: string; access?: string; meta?: unknown; url?: string }";
162
+ var FILE_UPLOAD = "Blob";
164
163
  var GEO = {
165
- geo_point: `{ type: "point"; data: ${POSITION} }`,
166
- geo_multipoint: `{ type: "points"; data: ${POSITION}[] }`,
167
- geo_linestring: `{ type: "path"; data: ${POSITION}[] }`,
168
- geo_multilinestring: `{ type: "paths"; data: ${POSITION}[][] }`,
169
- geo_polygon: `{ type: "poly"; data: ${POSITION}[] }`,
170
- geo_multipolygon: `{ type: "polys"; data: ${POSITION}[][] }`
164
+ geo_point: "string",
165
+ geo_multipoint: "string",
166
+ geo_linestring: "string",
167
+ geo_multilinestring: "string",
168
+ geo_polygon: "string",
169
+ geo_multipolygon: "string"
171
170
  };
172
171
  var SCALAR = {
173
172
  text: "string",
@@ -431,7 +430,7 @@ export type RouteName = keyof typeof ROUTES;
431
430
  ${rows2.length > 1 ? MANY_ROUTES : ""}
432
431
  ${rows2.length > 1 ? UNION_OVERLOAD : ""}${ambiguousOverloads ? `${ambiguousOverloads}
433
432
  ` : ""}${overloadsFor("routePath", rows2.map((r) => ({ name: r.key, params: r.params })))}
434
- ${implementation(ambiguousKeys.length > 0)}${realtimeSection}${mcp.length > 0 ? renderMcp(mcp) : ""}${renderRouteInputTypes(inputs)}`;
433
+ ${implementation(ambiguousKeys.length > 0)}${rows2.length > 0 ? ROUTE_QUERY : ""}${realtimeSection}${mcp.length > 0 ? renderMcp(mcp) : ""}${renderRouteInputTypes(inputs)}`;
435
434
  }
436
435
  var UNION_OVERLOAD = `/** A union of route names (e.g. a \`key: RouteName\` parameter): params checked at runtime. */
437
436
  export function routePath<N extends RouteName>(name: ManyRoutes<N>, params?: Record<string, string | number>): string;
@@ -524,6 +523,78 @@ function fillParams(
524
523
  return filled;
525
524
  }
526
525
  `;
526
+ var ROUTE_QUERY = `
527
+ /**
528
+ * The GET query string for a route's inputs, without the leading "?" \u2014
529
+ * \`routePath(name, params) + "?" + routeQuery(name, input)\`. The same encoding
530
+ * as the SDK's \`query.toSearchParams\`, inlined so a frontend needs no SDK
531
+ * import: a list of scalars sends \`k[]=a&k[]=b\`, an object \`k[sub]=v\`, a list
532
+ * of objects \`k[0][sub]=v\`, a list holding a list one JSON value; \`null\`,
533
+ * \`undefined\` and an empty list or object are left out. The route's \`{param}\`
534
+ * inputs are dropped \u2014 they ride in the path. Throws on a value with no
535
+ * query-string form (a non-finite number, a non-plain object, a cycle).
536
+ */
537
+ export function routeQuery<N extends RouteName>(
538
+ name: N,
539
+ input: N extends keyof RouteInputs ? RouteInputs[N] : Record<string, unknown>,
540
+ ): string {
541
+ const route = own(ROUTES as Record<string, { verb: string; path: string }>, name as string);
542
+ if (route === undefined) throw new Error(\`routeQuery: unknown route "\${String(name)}".\`);
543
+ if (input === null || typeof input !== "object" || Array.isArray(input)) {
544
+ throw new TypeError(\`routeQuery("\${String(name)}") takes the inputs as a { name: value } record.\`);
545
+ }
546
+ const pathParams = new Set((route.path.match(/\\{[^}]+\\}/g) ?? []).map((p) => p.slice(1, -1)));
547
+ const pairs: string[] = [];
548
+ // The containers on the path to the value being encoded: a value holding one is a cycle.
549
+ const ancestors: unknown[] = [];
550
+ // application/x-www-form-urlencoded, byte for byte what URLSearchParams writes.
551
+ const form = (s: string): string =>
552
+ encodeURIComponent(s).replace(/%20/g, "+").replace(/[!'()~]/g, (ch) => \`%\${ch.charCodeAt(0).toString(16).toUpperCase()}\`);
553
+ const fail = (path: string, why: string): never => {
554
+ throw new TypeError(\`routeQuery: param "\${path}" \${why}\`);
555
+ };
556
+ const isScalar = (v: unknown): v is string | number | boolean =>
557
+ typeof v === "string" || typeof v === "number" || typeof v === "boolean";
558
+ const encode = (path: string, value: unknown, out: string[]): boolean => {
559
+ if (value === null || value === undefined) return false;
560
+ if (isScalar(value)) {
561
+ if (typeof value === "number" && !Number.isFinite(value)) fail(path, \`is \${value} \u2014 not a finite value\`);
562
+ out.push(\`\${form(path)}=\${form(String(value))}\`);
563
+ return true;
564
+ }
565
+ const proto: unknown = typeof value === "object" ? Object.getPrototypeOf(value) : 0;
566
+ if (path !== "" && !Array.isArray(value) && proto !== Object.prototype && proto !== null) {
567
+ fail(path, "is not a scalar, list or plain object");
568
+ }
569
+ if (ancestors.includes(value)) fail(path, "contains itself \u2014 a cycle has no query-string encoding");
570
+ ancestors.push(value);
571
+ let sent = false;
572
+ if (Array.isArray(value) && value.some(Array.isArray)) {
573
+ value.forEach((item: unknown, index) => encode(\`\${path}[\${index}]\`, item, []));
574
+ out.push(\`\${form(path)}=\${form(JSON.stringify(value))}\`);
575
+ sent = true;
576
+ } else if (Array.isArray(value)) {
577
+ const plain = value.every(isScalar);
578
+ value.forEach((item: unknown, index) => {
579
+ if (!encode(\`\${path}[\${plain ? "" : index}]\`, item, out)) {
580
+ fail(\`\${path}[\${index}]\`, \`is \${item === null || item === undefined ? String(item) : "empty"}: a list item that sends nothing would move every later one up. Remove it, or give it a value\`);
581
+ }
582
+ sent = true;
583
+ });
584
+ } else {
585
+ for (const [key, member] of Object.entries(value as Record<string, unknown>)) {
586
+ if (path === "" && pathParams.has(key)) continue;
587
+ if (key === "" || /[[\\]]/.test(key)) fail(path !== "" ? \`\${path}[\${key}]\` : key, "is empty or holds \`[\`/\`]\` \u2014 a query string cannot carry that name");
588
+ if (encode(path !== "" ? \`\${path}[\${key}]\` : key, member, out)) sent = true;
589
+ }
590
+ }
591
+ ancestors.pop();
592
+ return sent;
593
+ };
594
+ encode("", input, pairs);
595
+ return pairs.join("&");
596
+ }
597
+ `;
527
598
  function implementation(ambiguous) {
528
599
  const params = ambiguous ? "params?: Record<string, string | number> | string" : "params?: Record<string, string | number>";
529
600
  const hint = ambiguous ? `
@@ -684,9 +755,9 @@ export function mcpPath(
684
755
  * on the base URL is lifted to after \`/x2/mcp\`, where the endpoint registers it,
685
756
  * so \`mcpUrl(name, window.XANO_HOST)\` is right as-is.
686
757
  *
687
- * Give it to an MCP client or show it to a user. The endpoint refuses any
688
- * request carrying a browser \`Origin\` (403 "Forbidden: Origin not allowed"), so
689
- * page JS cannot call it directly.
758
+ * Give it to an MCP client or show it to a user. The endpoint is CORS-open on
759
+ * both backends \u2014 it serves every browser \`Origin\` \u2014 so do not treat the URL as
760
+ * a browser boundary; gate each tool with \`auth\`/\`oauth\`.
690
761
  */
691
762
  export function mcpUrl(
692
763
  server: McpServerName,
@@ -923,4 +994,4 @@ export {
923
994
  routesListing,
924
995
  formatRoutesListing
925
996
  };
926
- //# sourceMappingURL=chunk-R3GPRNBT.js.map
997
+ //# sourceMappingURL=chunk-SVQMDVND.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveRef
3
- } from "./chunk-LL6ED5IB.js";
3
+ } from "./chunk-FTS42N37.js";
4
4
 
5
5
  // src/refs/auth.ts
6
6
  function resolveAuthRef(hostLabel, host, auth) {
@@ -24,4 +24,4 @@ function resolveAuthRef(hostLabel, host, auth) {
24
24
  export {
25
25
  resolveAuthRef
26
26
  };
27
- //# sourceMappingURL=chunk-45ZUMF4E.js.map
27
+ //# sourceMappingURL=chunk-TPUAXIPR.js.map
@@ -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,13 +1,13 @@
1
1
  import {
2
2
  findRelease,
3
3
  listReleases
4
- } from "./chunk-NDV6CBR7.js";
4
+ } from "./chunk-UH5VQGNR.js";
5
5
  import {
6
6
  isSignatureRefusal
7
- } from "./chunk-RYWNNJK5.js";
7
+ } from "./chunk-GA6HTO3O.js";
8
8
  import {
9
9
  resolveEphemeralName
10
- } from "./chunk-JAYHFXWH.js";
10
+ } from "./chunk-LWGCUB2A.js";
11
11
  import {
12
12
  clearEngineRecordsNamed,
13
13
  getEngineRecord,
@@ -25,26 +25,26 @@ import {
25
25
  selectorFix,
26
26
  sentenceCase,
27
27
  sharedDisplayHint
28
- } from "./chunk-DBDTQR23.js";
28
+ } from "./chunk-OTQF4B37.js";
29
29
  import {
30
30
  getTenant,
31
31
  tenantHasWorkspace
32
- } from "./chunk-MIS6F4HM.js";
32
+ } from "./chunk-G2XSDIYS.js";
33
33
  import {
34
34
  getEphemeral,
35
35
  isExpired
36
- } from "./chunk-Y5XAPLZS.js";
36
+ } from "./chunk-7UQZ7C4W.js";
37
37
  import {
38
38
  clearEnvironment,
39
39
  getEnvironment,
40
40
  readEphemeralState
41
- } from "./chunk-XY4OBD26.js";
41
+ } from "./chunk-WGKKDGSA.js";
42
42
  import {
43
43
  pipedYes
44
- } from "./chunk-GCINMMFL.js";
44
+ } from "./chunk-GJZMKMWO.js";
45
45
  import {
46
46
  contextFlags
47
- } from "./chunk-ZRXDPCMN.js";
47
+ } from "./chunk-ZYZ7GRX3.js";
48
48
  import {
49
49
  TransportError,
50
50
  UNTRUSTED_CERTIFICATE,
@@ -52,12 +52,12 @@ import {
52
52
  certificateFailureCode,
53
53
  isTimeoutError,
54
54
  lastRateLimitRetryAfter
55
- } from "./chunk-HXFLHA5K.js";
55
+ } from "./chunk-NH5Z2NOD.js";
56
56
  import {
57
57
  CliError,
58
58
  EXIT_SOURCE_UNRESOLVABLE,
59
59
  safeText
60
- } from "./chunk-GRXX2TOJ.js";
60
+ } from "./chunk-ZHFSIQ6E.js";
61
61
  import {
62
62
  suggest,
63
63
  suggestAll
@@ -561,13 +561,13 @@ function engineNotRunning(name, clearedProjects, deployFallback = true, nearest,
561
561
  }
562
562
  function defaultSweep(env) {
563
563
  return async () => {
564
- const { stopOrphanedEngineProcesses } = await import("./local-engine-process-OD5OSWDG.js");
564
+ const { stopOrphanedEngineProcesses } = await import("./local-engine-process-35B2KQED.js");
565
565
  return stopOrphanedEngineProcesses({ env }).stopped;
566
566
  };
567
567
  }
568
568
  function defaultEnumeration(env, cwd) {
569
569
  return async () => {
570
- const { cachedEngineEntry, listEngines } = await import("./local-engine-process-OD5OSWDG.js");
570
+ const { cachedEngineEntry, listEngines } = await import("./local-engine-process-35B2KQED.js");
571
571
  const entry = cachedEngineEntry(env, cwd);
572
572
  return entry === void 0 ? void 0 : listEngines({ entry, env });
573
573
  };
@@ -598,4 +598,4 @@ export {
598
598
  releaseNames,
599
599
  resolveSource
600
600
  };
601
- //# sourceMappingURL=chunk-N72XNQNJ.js.map
601
+ //# sourceMappingURL=chunk-V4466NNS.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