@xano/sdk 1.0.13 → 1.0.15

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 (246) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +28 -28
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-DAFGNMQX.js → agent-file-refresh-ZRGNOA6Q.js} +12 -11
  5. package/dist/{agent-skill-command-6M46ZGOL.js → agent-skill-command-DV26SDA2.js} +51 -50
  6. package/dist/{answer-shape-CBUQRSXI.js → answer-shape-AVZSKBR6.js} +4 -4
  7. package/dist/{backend-dir-J2J7JNS6.js → backend-dir-NTMXWE5R.js} +11 -10
  8. package/dist/{backend-slot-X5AUX2TT.js → backend-slot-DZAUHLTS.js} +3 -3
  9. package/dist/bin.js +47 -46
  10. package/dist/{branch-YS2K3VOB.js → branch-IJTBZZFO.js} +8 -8
  11. package/dist/{branch-commands-BUKVE637.js → branch-commands-4PJEBNRK.js} +26 -25
  12. package/dist/{chunk-PCHIHVX6.js → chunk-2LF734YB.js} +4 -4
  13. package/dist/{chunk-ENBGJJJH.js → chunk-3GZMP7II.js} +9 -9
  14. package/dist/{chunk-R7XZW4SB.js → chunk-3H7R4ISR.js} +2 -2
  15. package/dist/{chunk-DB7P2SSK.js → chunk-45K2QZBR.js} +3 -3
  16. package/dist/{chunk-C2SAVXAB.js → chunk-4MX5LMPQ.js} +2 -2
  17. package/dist/{chunk-IZI3SYXH.js → chunk-5FJ4M4HB.js} +38 -38
  18. package/dist/{chunk-FBWMKHLO.js → chunk-5SJQAJLF.js} +3 -3
  19. package/dist/{chunk-E763QI3G.js → chunk-5SKWGCAJ.js} +2 -2
  20. package/dist/{chunk-JKGRQW6D.js → chunk-5W7S2SCA.js} +4 -4
  21. package/dist/{chunk-KICERNAP.js → chunk-66ZU2CD5.js} +4 -4
  22. package/dist/{chunk-F2NFNYCB.js → chunk-6EFXPTHT.js} +3 -3
  23. package/dist/{chunk-CTUIMNEM.js → chunk-6X73VFCX.js} +2 -2
  24. package/dist/{chunk-VTMTIBKP.js → chunk-74OPNM2Z.js} +2 -2
  25. package/dist/{chunk-DZUNF7IH.js → chunk-75QC66XI.js} +2 -2
  26. package/dist/{chunk-U4BGBU3R.js → chunk-7AKH4QDJ.js} +44 -44
  27. package/dist/{chunk-CGZSF756.js → chunk-7ZQ73AHJ.js} +28 -28
  28. package/dist/{chunk-5SMUND4J.js → chunk-A2N2C2WD.js} +6 -6
  29. package/dist/{chunk-XL7EA62X.js → chunk-AE5CRAKS.js} +5 -5
  30. package/dist/{chunk-5ONWBQ2C.js → chunk-ASQX477B.js} +7 -7
  31. package/dist/{chunk-JFPLHK6Y.js → chunk-AXMUYBWQ.js} +2 -2
  32. package/dist/{chunk-5XDKKE5Y.js → chunk-B6AFJVG4.js} +4 -4
  33. package/dist/{chunk-4CS4DKQC.js → chunk-BEKEOXNG.js} +2 -2
  34. package/dist/{chunk-ZSMHS7BU.js → chunk-CJGLAQRD.js} +4 -4
  35. package/dist/{chunk-M7DIIJPW.js → chunk-DBDTQR23.js} +4 -4
  36. package/dist/{chunk-RZABQ4YH.js → chunk-DGYXCIBV.js} +4 -4
  37. package/dist/{chunk-P6HXDOFG.js → chunk-DH6O5NQU.js} +13 -13
  38. package/dist/{chunk-I2AVVARA.js → chunk-ECQXASG3.js} +2 -2
  39. package/dist/{chunk-2BHYGUTI.js → chunk-EQXHUWUO.js} +2 -2
  40. package/dist/{chunk-EGEANMMK.js → chunk-FIERONKM.js} +2 -2
  41. package/dist/{chunk-A2AOUBJS.js → chunk-FKQX6KU7.js} +3 -2
  42. package/dist/{chunk-UECNKDDA.js → chunk-FOBVJ2UR.js} +8 -8
  43. package/dist/{chunk-GRWYO2MS.js → chunk-FXZEZAV2.js} +3 -3
  44. package/dist/{chunk-H6VVSGKN.js → chunk-G4WRZU5T.js} +7 -7
  45. package/dist/{chunk-K6BQPFRS.js → chunk-GBSHHNSD.js} +3 -3
  46. package/dist/{chunk-N3XSXGAL.js → chunk-GCINMMFL.js} +2 -2
  47. package/dist/{chunk-WZXEQUIM.js → chunk-GDJCWQIK.js} +2 -2
  48. package/dist/{chunk-ZACMAKZE.js → chunk-GIQIMWTK.js} +14 -14
  49. package/dist/{chunk-POZ6V4MU.js → chunk-GKQTXUOW.js} +2 -2
  50. package/dist/{chunk-D4VKPOD4.js → chunk-GRXX2TOJ.js} +13 -112
  51. package/dist/{chunk-YJK4NPXC.js → chunk-GVHWIDEJ.js} +3 -3
  52. package/dist/{chunk-UKC65HBQ.js → chunk-HCNIB3EC.js} +4 -4
  53. package/dist/{chunk-DILYWJVP.js → chunk-HXFLHA5K.js} +2 -2
  54. package/dist/{chunk-FLDFKG24.js → chunk-IKXXTRMN.js} +4 -4
  55. package/dist/{chunk-QWWQM4XZ.js → chunk-JAYHFXWH.js} +7 -7
  56. package/dist/{chunk-6LECAG3Y.js → chunk-JWASCOHO.js} +4 -4
  57. package/dist/{chunk-DPSR5GRE.js → chunk-K6SWZ6H4.js} +49 -49
  58. package/dist/{chunk-VA4JK4TW.js → chunk-KMKUH2IO.js} +3 -3
  59. package/dist/{chunk-UFFIU57H.js → chunk-LSJ3SQEU.js} +4 -4
  60. package/dist/{chunk-JHQAVWHW.js → chunk-M7O3T7IM.js} +2 -2
  61. package/dist/{chunk-BXVNRUDB.js → chunk-MGG4CHO4.js} +3 -3
  62. package/dist/{chunk-7NNLRNXE.js → chunk-MIS6F4HM.js} +4 -4
  63. package/dist/{chunk-6HTXQAMG.js → chunk-N72XNQNJ.js} +14 -14
  64. package/dist/{chunk-H7GMGZHI.js → chunk-NDV6CBR7.js} +2 -2
  65. package/dist/{chunk-6OOZJQJK.js → chunk-NNI5R6V6.js} +68 -68
  66. package/dist/{chunk-IFXPHVPY.js → chunk-NPYYDTXS.js} +3 -3
  67. package/dist/{chunk-DYGRTWAI.js → chunk-O44MJTLR.js} +3 -3
  68. package/dist/{chunk-HDANNK4A.js → chunk-OZWAITII.js} +9 -9
  69. package/dist/{chunk-ONNSFD73.js → chunk-P7GKTV7N.js} +10 -10
  70. package/dist/{chunk-373AVIL2.js → chunk-QAEBBTYR.js} +7 -7
  71. package/dist/{chunk-3ZVSOZZC.js → chunk-QRMKQYCB.js} +2 -2
  72. package/dist/{chunk-TANWE2ZY.js → chunk-QW7NGUYW.js} +80 -80
  73. package/dist/{chunk-U4DSFCH5.js → chunk-R3GPRNBT.js} +2 -2
  74. package/dist/{chunk-SBS2IYTN.js → chunk-RBTZEHXF.js} +3 -3
  75. package/dist/{chunk-XFQAA2SU.js → chunk-RVAEPPRH.js} +2 -2
  76. package/dist/{chunk-W5MKVFBQ.js → chunk-RXNMZM6H.js} +5 -5
  77. package/dist/{chunk-6QJORUHC.js → chunk-RYWNNJK5.js} +2 -2
  78. package/dist/{chunk-NZ7ML6LG.js → chunk-SH4RY6QX.js} +290 -98
  79. package/dist/{chunk-ZGNWMGN3.js → chunk-SHHXLI2K.js} +26 -8
  80. package/dist/{chunk-MLKJUEG3.js → chunk-SL55XKVL.js} +23 -23
  81. package/dist/{chunk-H5FAYLCR.js → chunk-SPLRKCFV.js} +2 -2
  82. package/dist/{chunk-XYVPF63S.js → chunk-SXMZNSQ6.js} +8 -8
  83. package/dist/{chunk-NMHTB346.js → chunk-TT6LN55R.js} +36 -10
  84. package/dist/{chunk-B5N6EWOM.js → chunk-TXFOQZUQ.js} +3 -3
  85. package/dist/{chunk-VFRL4G72.js → chunk-UNFQN3TT.js} +3 -3
  86. package/dist/{chunk-EKS7SAZS.js → chunk-UVHSMANV.js} +53 -61
  87. package/dist/{chunk-RQHXYL77.js → chunk-V7WCTXEH.js} +5 -7
  88. package/dist/{chunk-HEMWBHQS.js → chunk-VUWR5YLE.js} +13 -13
  89. package/dist/{chunk-O6PWEJUV.js → chunk-VXHXSGPU.js} +8 -8
  90. package/dist/chunk-VYJYDMY6.js +9 -0
  91. package/dist/{chunk-C4TZP5PQ.js → chunk-WS2X5BB2.js} +5 -5
  92. package/dist/{chunk-P5JF3U65.js → chunk-WS4BA75E.js} +37 -4
  93. package/dist/{chunk-HUEFVPYW.js → chunk-WXKSB2N3.js} +3 -3
  94. package/dist/{chunk-DFCYAEBE.js → chunk-XLP4CNSF.js} +3 -3
  95. package/dist/{chunk-OCNTMJSY.js → chunk-XPSDDTUZ.js} +3 -3
  96. package/dist/{chunk-OBRMA2VK.js → chunk-XY4OBD26.js} +3 -3
  97. package/dist/{chunk-XVOODRNK.js → chunk-Y5XAPLZS.js} +4 -4
  98. package/dist/{chunk-ZISPEBNM.js → chunk-YCKKL5PD.js} +60 -55
  99. package/dist/{chunk-XM56DAM7.js → chunk-YR3MNGWZ.js} +8 -8
  100. package/dist/{chunk-WQZCFVAD.js → chunk-ZC6H2ERE.js} +5 -5
  101. package/dist/{chunk-UDCKYLBW.js → chunk-ZDVVIJPU.js} +4 -4
  102. package/dist/{chunk-ENAUSLMP.js → chunk-ZF2CBXT5.js} +3 -3
  103. package/dist/{chunk-AUYXBKGR.js → chunk-ZOHEHIFS.js} +2 -2
  104. package/dist/{chunk-3RZ4UJWV.js → chunk-ZPJXWMHK.js} +4 -4
  105. package/dist/{chunk-A3CT26GX.js → chunk-ZRXDPCMN.js} +2 -2
  106. package/dist/{chunk-RAGFXELQ.js → chunk-ZYECXDVV.js} +5 -5
  107. package/dist/cli.js +45 -44
  108. package/dist/{codegen-command-BAFON45M.js → codegen-command-RDD4GL35.js} +63 -62
  109. package/dist/codegen.js +2 -2
  110. package/dist/{commands-IFRAGWGK.js → commands-5ILSWDSV.js} +2 -2
  111. package/dist/{completion-RTXCODHS.js → completion-UNKBVVDT.js} +2 -2
  112. package/dist/{config-EHFXNFSP.js → config-NTOASFCA.js} +3 -3
  113. package/dist/{deploy-command-JW7R3BPW.js → deploy-command-BYAZZF37.js} +52 -51
  114. package/dist/{deploy-source-ZUPLAL7L.js → deploy-source-QCPZWNJO.js} +27 -26
  115. package/dist/{dev-env-sync-W7OTV7OD.js → dev-env-sync-6MHK3UHC.js} +46 -45
  116. package/dist/{display-name-hint-BKPMISQU.js → display-name-hint-MYXCCAOP.js} +10 -10
  117. package/dist/{env-example-refresh-TS7WBVZQ.js → env-example-refresh-MQWHY7ZS.js} +64 -63
  118. package/dist/{env-pull-command-5IYXQ2WK.js → env-pull-command-KUIEKBTM.js} +42 -41
  119. package/dist/{env-target-TQBPLU2S.js → env-target-Y77RLRS5.js} +9 -9
  120. package/dist/{env-var-command-AKCWYZPB.js → env-var-command-BZWJD75C.js} +37 -36
  121. package/dist/{ephemeral-CART6DIR.js → ephemeral-VLPRDNEJ.js} +8 -8
  122. package/dist/{ephemeral-command-SJYH6XRS.js → ephemeral-command-SYKDPALW.js} +43 -42
  123. package/dist/{ephemeral-state-HPKSKC4Y.js → ephemeral-state-RUOU2GFS.js} +7 -7
  124. package/dist/{generate-command-FSCFZPOJ.js → generate-command-CSQDQZSW.js} +68 -67
  125. package/dist/{gitignore-6IJ66XME.js → gitignore-OQGYM7DO.js} +15 -14
  126. package/dist/{guards-RU4C7TFG.js → guards-JUYBDLZY.js} +6 -6
  127. package/dist/{impersonate-command-IH4HMSS3.js → impersonate-command-HSFCZBV6.js} +33 -32
  128. package/dist/{import-RUBCGLCA.js → import-T4ZTOTBT.js} +4 -4
  129. package/dist/index.d.ts +105 -109
  130. package/dist/index.js +11 -11
  131. package/dist/{init-command-STB4YSAK.js → init-command-6Z7QNVDY.js} +50 -51
  132. package/dist/{init-modules-YIZYPCMM.js → init-modules-BL2SR5RK.js} +7 -7
  133. package/dist/{init-web-OGKACAOC.js → init-web-DYE2FEXL.js} +2 -2
  134. package/dist/internal.d.ts +2 -2
  135. package/dist/internal.js +68 -62
  136. package/dist/{keep-data-merge-VRKS64JK.js → keep-data-merge-SHF75FC7.js} +24 -24
  137. package/dist/{lambda-config-reconcile-FXPDH2U5.js → lambda-config-reconcile-VOBVZPWS.js} +3 -3
  138. package/dist/{landing-record-5EFK7RI6.js → landing-record-7EOLEKH3.js} +17 -16
  139. package/dist/{live-diff-HARRGFV4.js → live-diff-M2OLXKM6.js} +6 -6
  140. package/dist/{local-engine-choice-TRTEJVMV.js → local-engine-choice-TOC3UYZZ.js} +30 -29
  141. package/dist/{local-engine-command-2FK2PE2P.js → local-engine-command-6KSRDZBR.js} +35 -34
  142. package/dist/{local-engine-deploy-ZZVHBI2X.js → local-engine-deploy-4N4NFZ4T.js} +11 -11
  143. package/dist/{local-engine-lookup-QFRKO35F.js → local-engine-lookup-AQTUGSBT.js} +2 -2
  144. package/dist/{local-engine-mcp-bridge-T2EFRRAF.js → local-engine-mcp-bridge-AMYRH4SY.js} +9 -9
  145. package/dist/{local-engine-mcp-command-FB7EOGG6.js → local-engine-mcp-command-XTP3EATV.js} +41 -48
  146. package/dist/{local-engine-process-XH35DURU.js → local-engine-process-OD5OSWDG.js} +6 -6
  147. package/dist/{local-engine-update-check-HAXE7BVG.js → local-engine-update-check-G3YCBXRE.js} +4 -4
  148. package/dist/{lock-commands-7PBZIRWR.js → lock-commands-437P6BHY.js} +50 -49
  149. package/dist/{login-command-2O6GRMTH.js → login-command-BNRDAVFV.js} +23 -22
  150. package/dist/{logout-command-RZXGW3O2.js → logout-command-FCGCHB7Y.js} +13 -12
  151. package/dist/{loop-QHZD37KX.js → loop-WOAEXMTC.js} +6 -6
  152. package/dist/{marketplace-command-NCMLGIMS.js → marketplace-command-SUBJZPJV.js} +33 -33
  153. package/dist/{marketplace-resolve-HPCRNV5O.js → marketplace-resolve-JR4BBJ6K.js} +5 -5
  154. package/dist/{meta-client-DYYM5F5G.js → meta-client-AYJS3RQ3.js} +10 -10
  155. package/dist/{module-manifest-EFE6JBZW.js → module-manifest-63I5GRK4.js} +3 -3
  156. package/dist/node.d.ts +2 -2
  157. package/dist/node.js +50 -49
  158. package/dist/{operation-outcome-SHNROAFA.js → operation-outcome-ORQPVJKB.js} +19 -19
  159. package/dist/{output-target-PSSR3E4N.js → output-target-KNHHNDM3.js} +16 -15
  160. package/dist/{plan-disclosure-WEMB5ZJ2.js → plan-disclosure-4DUFRGCP.js} +16 -16
  161. package/dist/{plugin-contributions-U5PAZKBE.js → plugin-contributions-YYEP7IWH.js} +4 -4
  162. package/dist/{plugin-prompt-O5PAMV5B.js → plugin-prompt-GKCQKNYI.js} +4 -4
  163. package/dist/{plugin-questions-ZVYNKDRB.js → plugin-questions-P7MA3TYI.js} +3 -3
  164. package/dist/{preflight-command-6F7JF3YQ.js → preflight-command-32GFVKSN.js} +56 -55
  165. package/dist/{profile-command-5AOGD6GV.js → profile-command-U2XTKOMF.js} +24 -23
  166. package/dist/{profile-pointer-VTOZDBHM.js → profile-pointer-JJ7K5O2R.js} +3 -3
  167. package/dist/{project-dependency-EZNTHMWI.js → project-dependency-X3KCWBK5.js} +6 -6
  168. package/dist/{project-sdk-ZGJM4WYQ.js → project-sdk-YHJZRCNB.js} +3 -3
  169. package/dist/promote-command-OO56IZBT.js +148 -0
  170. package/dist/{prompt-F7UVH4GP.js → prompt-QNMJIWNI.js} +3 -3
  171. package/dist/{publish-command-6VVSJPLI.js → publish-command-5ZVZ6IYT.js} +55 -54
  172. package/dist/{pull-command-GE2WUEUF.js → pull-command-LT5PCEIW.js} +66 -65
  173. package/dist/{pull-superseded-77UZ7CHH.js → pull-superseded-6HADGGC5.js} +3 -3
  174. package/dist/{release-command-55RTR674.js → release-command-RBUOXIH7.js} +60 -59
  175. package/dist/{release-ns-command-5XPZ2B6N.js → release-ns-command-LDN5DOKQ.js} +78 -77
  176. package/dist/{retry-command-S5QALD5Z.js → retry-command-LFZYEVRU.js} +7 -7
  177. package/dist/{routes-manifest-ET2TTSCL.js → routes-manifest-BMAOL6WN.js} +6 -6
  178. package/dist/{routes-manifest-file-42FTJHRY.js → routes-manifest-file-MPOVKD6N.js} +9 -9
  179. package/dist/scaffold.d.ts +0 -5
  180. package/dist/scaffold.js +2 -2
  181. package/dist/{secrets-file-N5IF265R.js → secrets-file-7QM3ORGX.js} +15 -14
  182. package/dist/{secrets-fill-command-35WKBURT.js → secrets-fill-command-OZ537VOD.js} +49 -48
  183. package/dist/{seed-5YLQRT2D.js → seed-ATGBOEJP.js} +6 -6
  184. package/dist/{source-resolve-JXGOVJD3.js → source-resolve-QYSWA3QR.js} +17 -17
  185. package/dist/{static-host-TQP3FXPI.js → static-host-MO4VDHL7.js} +4 -4
  186. package/dist/{status-command-G3DFRMU7.js → status-command-IEB4K7ME.js} +60 -34
  187. package/dist/{store-ZE5BXCOW.js → store-AJX4MC7Y.js} +5 -5
  188. package/dist/{store-BM7SQcUt.d.ts → store-DspGMsFY.d.ts} +112 -118
  189. package/dist/{sync-baseline-JGAAOS25.js → sync-baseline-IB7MABZO.js} +7 -7
  190. package/dist/{sync-contributions-7T4CSPVQ.js → sync-contributions-DLV5JZUK.js} +8 -8
  191. package/dist/{sync-record-ILWS44DG.js → sync-record-NE62ERA3.js} +9 -9
  192. package/dist/{table-V3LTQUY6.js → table-TFD4ZQXA.js} +8 -8
  193. package/dist/{tables-command-7NUOZBHX.js → tables-command-IMCVPUFY.js} +35 -34
  194. package/dist/{tenant-7WUS7Q6V.js → tenant-IIYECNWO.js} +9 -9
  195. package/dist/{tenant-command-JGEHRKN7.js → tenant-command-77KG76MU.js} +83 -82
  196. package/dist/{test-command-2LNEA6GK.js → test-command-NSPU4RUO.js} +32 -31
  197. package/dist/{tests-ENFUACKD.js → tests-JWQRHFCT.js} +5 -5
  198. package/dist/{token-DWNH44NW.js → token-BDHD7GU3.js} +9 -8
  199. package/dist/{toolchain-hooks-QIFGPGH2.js → toolchain-hooks-QHJRDCRW.js} +8 -8
  200. package/dist/{toolchain-modules-F4DUMWTO.js → toolchain-modules-LY7BMYG6.js} +4 -4
  201. package/dist/{toolchain-peers-K44IINPG.js → toolchain-peers-FQJBTKEB.js} +7 -7
  202. package/dist/{tracked-backend-ZFXVLBBJ.js → tracked-backend-BIR7YJCE.js} +30 -29
  203. package/dist/{update-check-KBHT63GJ.js → update-check-JDARCXAX.js} +48 -47
  204. package/dist/{upgrade-command-CI543AZP.js → upgrade-command-YCADQCIA.js} +51 -50
  205. package/dist/{whoami-command-77DXENWD.js → whoami-command-IZCTUPM4.js} +12 -11
  206. package/dist/{workspace-RI5C77BZ.js → workspace-TK52V7WO.js} +4 -4
  207. package/dist/{workspace-binding-PR57NBGH.js → workspace-binding-3UT6PP4B.js} +11 -10
  208. package/dist/{workspace-command-6HHVFQKW.js → workspace-command-46OCB6XT.js} +79 -78
  209. package/dist/{workspace-env-2APJEASO.js → workspace-env-PVPOWFNZ.js} +12 -11
  210. package/dist/{workspace-export-GHMUSX2P.js → workspace-export-PUEXKZNS.js} +4 -4
  211. package/dist/{writable-Y6CE2CGK.js → writable-LMMG4AFZ.js} +3 -3
  212. package/dist/{xano-2A2GT7EH.js → xano-EOUVXNQX.js} +7 -7
  213. package/dist/{xanosdk-import-HBQH3ZBS.js → xanosdk-import-XXJT365U.js} +5 -5
  214. package/dist/{xanosdk-project-W45IR3Q7.js → xanosdk-project-CJKRLQ6U.js} +13 -12
  215. package/guides/README.md +3 -3
  216. package/guides/authoring.md +11 -11
  217. package/guides/bundle.md +2 -2
  218. package/guides/cli.md +179 -176
  219. package/guides/codegen.md +17 -17
  220. package/guides/codes.md +3 -3
  221. package/guides/coverage.md +2 -2
  222. package/guides/deploying.md +123 -123
  223. package/guides/environment.md +30 -30
  224. package/guides/marketplace.md +24 -24
  225. package/guides/module-contract.md +9 -9
  226. package/guides/object-kinds.md +4 -4
  227. package/guides/project-structure.md +4 -4
  228. package/guides/scaffold.md +22 -22
  229. package/guides/typed-frontend.md +3 -3
  230. package/llms/client.md +4 -4
  231. package/llms/errors.md +2 -2
  232. package/llms/fields.md +1 -1
  233. package/llms/kinds-agent-mcp.md +1 -1
  234. package/llms/kinds-realtime.md +2 -2
  235. package/llms/lock.md +3 -3
  236. package/llms/statements-calls.md +1 -1
  237. package/llms/statements-catalog.md +57 -57
  238. package/llms/statements-runtime.md +2 -2
  239. package/llms/tests.md +3 -3
  240. package/llms/toolchain.md +2 -2
  241. package/llms-full.txt +113 -110
  242. package/llms.txt +35 -32
  243. package/manifest.json +82 -152
  244. package/package.json +1 -1
  245. package/skills/xano-backend/SKILL.md +7 -7
  246. package/dist/promote-command-O2NRRFLK.js +0 -147
@@ -3,24 +3,28 @@ import {
3
3
  reachableLines,
4
4
  readReachableWorkspaces,
5
5
  workspaceIdFix
6
- } from "./chunk-5ONWBQ2C.js";
6
+ } from "./chunk-ASQX477B.js";
7
7
  import {
8
8
  credentialRejected,
9
9
  getAccessToken
10
- } from "./chunk-NMHTB346.js";
10
+ } from "./chunk-TT6LN55R.js";
11
11
  import {
12
12
  CREDENTIAL_FILE_VERSION,
13
+ DEFAULT_AUTH_HOST,
13
14
  UPGRADE_REMEDY,
14
15
  credentialFileFlag,
16
+ decodeExpiry,
17
+ decodeIssuer,
18
+ isXanoOrigin,
15
19
  loginCommand,
16
20
  readCredentialFile,
17
21
  resolveAuthFilePath
18
- } from "./chunk-P5JF3U65.js";
22
+ } from "./chunk-WS4BA75E.js";
19
23
  import {
20
24
  fetchOrExplain,
21
25
  httpFailure,
22
26
  parseJsonAnswer
23
- } from "./chunk-DILYWJVP.js";
27
+ } from "./chunk-HXFLHA5K.js";
24
28
  import {
25
29
  profileSourceLabel,
26
30
  selectionDocument
@@ -32,7 +36,7 @@ import {
32
36
  stdoutStyle,
33
37
  warn,
34
38
  writeJson
35
- } from "./chunk-D4VKPOD4.js";
39
+ } from "./chunk-GRXX2TOJ.js";
36
40
  import {
37
41
  shellQuote
38
42
  } from "./chunk-5ZSO4T2G.js";
@@ -48,8 +52,12 @@ function asString(v) {
48
52
  function rejectedRemedy(auth, args) {
49
53
  const p = auth.profile;
50
54
  const command = rejectedFixCommand(auth, args);
55
+ const expired = expiredTokenNote(auth);
51
56
  if (p === void 0) {
52
- return auth.credentialType === "token" ? "The meta API token in XANO_META_TOKEN was rejected \u2014 replace it with a valid token for XANO_INSTANCE_URL." : "The environment's refresh credential was rejected \u2014 replace XANO_REFRESH_TOKEN, or unset it to use a stored profile.";
57
+ return auth.credentialType === "token" ? expired === void 0 ? "The meta API token in XANO_META_TOKEN was rejected \u2014 replace it with a valid token for XANO_INSTANCE_URL." : `The meta API token in XANO_META_TOKEN was rejected: ${expired} Sign in for real with \`${realLogin(auth)}\`, or replace it with a valid token for XANO_INSTANCE_URL.` : "The environment's refresh credential was rejected \u2014 replace XANO_REFRESH_TOKEN, or unset it to use a stored profile.";
58
+ }
59
+ if (expired !== void 0 && command !== null) {
60
+ return `The instance rejected the meta API token stored for profile "${p.name}" (${profileSourceLabel(p.source, p.defaultIn)}): ${expired} Sign in for real with \`${realLogin(auth)}\`, or replace it with \`${command}\`.`;
53
61
  }
54
62
  const what = auth.credentialType === "token" ? "meta API token" : "session";
55
63
  const head = `The instance rejected the ${what} stored for profile "${p.name}" (${profileSourceLabel(p.source, p.defaultIn)}). `;
@@ -59,6 +67,16 @@ function rejectedRemedy(auth, args) {
59
67
  }
60
68
  return auth.credentialType === "token" ? head + `Replace it with \`${command}\`.` : head + `Sign in again with \`${command}\`.`;
61
69
  }
70
+ function expiredTokenNote(auth) {
71
+ if (auth.credentialType !== "token") return void 0;
72
+ const exp = decodeExpiry(auth.access_token);
73
+ if (exp === void 0 || exp * 1e3 > Date.now()) return void 0;
74
+ return `it expired at ${new Date(exp * 1e3).toISOString()}. Temporary credentials, like the one agentic signup issues, last one day and cannot be refreshed.`;
75
+ }
76
+ function realLogin(auth) {
77
+ const iss = decodeIssuer(auth.access_token);
78
+ return iss === void 0 || iss === DEFAULT_AUTH_HOST || !isXanoOrigin(iss) ? "xanosdk login" : `xanosdk login --origin ${shellQuote(iss)}`;
79
+ }
62
80
  function asRejectedCredential(err, auth, args) {
63
81
  return credentialRejected(err, {
64
82
  profile: auth.profile?.name ?? null,
@@ -165,7 +183,7 @@ function prettyProfile(p) {
165
183
  }
166
184
  async function runWhoamiCommand(args) {
167
185
  const profile = await fetchProfile(args).catch(async (err) => {
168
- const { unansweredRead } = await import("./source-resolve-JXGOVJD3.js");
186
+ const { unansweredRead } = await import("./source-resolve-QYSWA3QR.js");
169
187
  throw unansweredRead(err, "read the signed-in user", "workspace");
170
188
  });
171
189
  if (isMachineOutput(args)) {
@@ -185,4 +203,4 @@ export {
185
203
  profileValue,
186
204
  runWhoamiCommand
187
205
  };
188
- //# sourceMappingURL=chunk-ZGNWMGN3.js.map
206
+ //# sourceMappingURL=chunk-SHHXLI2K.js.map
@@ -2,10 +2,10 @@ import {
2
2
  keptDuplicates,
3
3
  replacedRegistrations,
4
4
  reportSuperseded
5
- } from "./chunk-4CS4DKQC.js";
5
+ } from "./chunk-BEKEOXNG.js";
6
6
  import {
7
7
  rerenderEnvExample
8
- } from "./chunk-ENAUSLMP.js";
8
+ } from "./chunk-ZF2CBXT5.js";
9
9
  import {
10
10
  carriedSeedRows,
11
11
  decodeBundle,
@@ -17,62 +17,62 @@ import {
17
17
  verifyPulledTree,
18
18
  withSourceIdentities,
19
19
  writeDocumentationTokens
20
- } from "./chunk-U4BGBU3R.js";
20
+ } from "./chunk-7AKH4QDJ.js";
21
21
  import {
22
22
  ROUTES_MANIFEST_BASENAME
23
- } from "./chunk-U4DSFCH5.js";
23
+ } from "./chunk-R3GPRNBT.js";
24
24
  import {
25
25
  syncDigests
26
- } from "./chunk-JFPLHK6Y.js";
26
+ } from "./chunk-AXMUYBWQ.js";
27
27
  import {
28
28
  fetchSourceArchive
29
- } from "./chunk-5SMUND4J.js";
29
+ } from "./chunk-A2N2C2WD.js";
30
30
  import {
31
31
  confirm
32
- } from "./chunk-XFQAA2SU.js";
32
+ } from "./chunk-RVAEPPRH.js";
33
33
  import {
34
34
  recordSync,
35
35
  syncBranchLabel
36
- } from "./chunk-VA4JK4TW.js";
36
+ } from "./chunk-KMKUH2IO.js";
37
37
  import {
38
38
  decodeWorkspaceArchive,
39
39
  encodeWorkspaceArchive
40
40
  } from "./chunk-3DRXWLJ5.js";
41
41
  import {
42
42
  ensureSecretPathGitignored
43
- } from "./chunk-ZSMHS7BU.js";
43
+ } from "./chunk-CJGLAQRD.js";
44
44
  import {
45
45
  readVersion,
46
46
  refreshAgentGuidance
47
- } from "./chunk-TANWE2ZY.js";
47
+ } from "./chunk-QW7NGUYW.js";
48
48
  import {
49
49
  WORKSPACE_ENV_BASENAME,
50
50
  WORKSPACE_ENV_EXAMPLE_BASENAME,
51
51
  namesInEnvExample,
52
52
  readWorkspaceEnvFile
53
- } from "./chunk-ENBGJJJH.js";
53
+ } from "./chunk-3GZMP7II.js";
54
54
  import {
55
55
  memoCredential,
56
56
  refuseProfileForLocal,
57
57
  selectBackend
58
- } from "./chunk-HEMWBHQS.js";
58
+ } from "./chunk-VUWR5YLE.js";
59
59
  import {
60
60
  getAccessToken
61
- } from "./chunk-NMHTB346.js";
61
+ } from "./chunk-TT6LN55R.js";
62
62
  import {
63
63
  readLockFile,
64
64
  writeLockFile
65
65
  } from "./chunk-CJDPSCMX.js";
66
66
  import {
67
67
  requireBackendSlot
68
- } from "./chunk-DZUNF7IH.js";
68
+ } from "./chunk-75QC66XI.js";
69
69
  import {
70
70
  contextFlags
71
- } from "./chunk-A3CT26GX.js";
71
+ } from "./chunk-ZRXDPCMN.js";
72
72
  import {
73
73
  backendDirIn,
74
74
  resolveBackendDir
75
- } from "./chunk-GRWYO2MS.js";
75
+ } from "./chunk-FXZEZAV2.js";
76
76
  import {
77
77
  CODEGEN_MARKER,
78
78
  DECODE_MARKER,
@@ -87,14 +87,14 @@ import {
87
87
  readDecodeRecord,
88
88
  removeEmptiedDirs,
89
89
  removeFiles
90
- } from "./chunk-ZISPEBNM.js";
90
+ } from "./chunk-YCKKL5PD.js";
91
91
  import {
92
92
  holdsProjectManifest
93
93
  } from "./chunk-HU7F56VF.js";
94
94
  import {
95
95
  decodeMarkerHead,
96
96
  decodeMarkerWith
97
- } from "./chunk-IZI3SYXH.js";
97
+ } from "./chunk-5FJ4M4HB.js";
98
98
  import {
99
99
  CliError,
100
100
  UsageError,
@@ -107,7 +107,7 @@ import {
107
107
  terminalText,
108
108
  warn,
109
109
  writeJson
110
- } from "./chunk-D4VKPOD4.js";
110
+ } from "./chunk-GRXX2TOJ.js";
111
111
  import {
112
112
  WORKSPACE_SECRETS_BASENAME
113
113
  } from "./chunk-3JDU4VRL.js";
@@ -319,7 +319,7 @@ async function runPullCommand(args) {
319
319
  });
320
320
  refuseDuplicateSourceGuids(project);
321
321
  const seedRows = carriedSeedRows(fetched.archive, bundle.payload);
322
- const { discoverManifestModules } = await import("./routes-manifest-file-42FTJHRY.js");
322
+ const { discoverManifestModules } = await import("./routes-manifest-file-MPOVKD6N.js");
323
323
  const modules = await discoverManifestModules(cwd, join(cwd, backendDir, ROUTES_MANIFEST_BASENAME), readVersion());
324
324
  const placed = placeGeneratedFiles(project, backendDir, void 0, void 0, modules);
325
325
  const settings = source.kind === "release" ? keepProjectSettings(placed, backendDir, join(cwd, backendDir)) : { files: placed, kept: false, lost: [], from: WORKSPACE_SETTINGS_FILE };
@@ -440,7 +440,7 @@ async function runPullCommand(args) {
440
440
  );
441
441
  }
442
442
  if (args.yes !== true) {
443
- const { yesRerun } = await import("./retry-command-S5QALD5Z.js");
443
+ const { yesRerun } = await import("./retry-command-LFZYEVRU.js");
444
444
  const { rerun, note } = yesRerun(args, "pull");
445
445
  const ok = await confirm(`Replace ${backendDir}/ from ${fetched.label}?`, {
446
446
  flag: "--yes",
@@ -915,7 +915,7 @@ function envFillRemedy(kind, args, one = false) {
915
915
  return `fill ${them} in, or run \`xanosdk env pull${from}${flags}\`.`;
916
916
  }
917
917
  async function needsYes(args, head, why, details) {
918
- const { yesRerun } = await import("./retry-command-S5QALD5Z.js");
918
+ const { yesRerun } = await import("./retry-command-LFZYEVRU.js");
919
919
  const { rerun, note } = yesRerun(args, "pull");
920
920
  return new CliError("SDK_USAGE", `${head} Re-run as \`${rerun}\` ${why}.${note}`, {
921
921
  exitCode: 1,
@@ -944,4 +944,4 @@ export {
944
944
  projectWorkspaceName,
945
945
  envFillRemedy
946
946
  };
947
- //# sourceMappingURL=chunk-MLKJUEG3.js.map
947
+ //# sourceMappingURL=chunk-SL55XKVL.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WAVNUTMT.js";
4
4
  import {
5
5
  UsageError
6
- } from "./chunk-D4VKPOD4.js";
6
+ } from "./chunk-GRXX2TOJ.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-H5FAYLCR.js.map
182
+ //# sourceMappingURL=chunk-SPLRKCFV.js.map
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  BranchHttpError,
3
3
  BranchTakenError
4
- } from "./chunk-PCHIHVX6.js";
4
+ } from "./chunk-2LF734YB.js";
5
5
  import {
6
6
  SourceError
7
- } from "./chunk-6HTXQAMG.js";
7
+ } from "./chunk-N72XNQNJ.js";
8
8
  import {
9
9
  ReleaseHttpError
10
- } from "./chunk-H7GMGZHI.js";
10
+ } from "./chunk-NDV6CBR7.js";
11
11
  import {
12
12
  ImportHttpError
13
- } from "./chunk-6QJORUHC.js";
13
+ } from "./chunk-RYWNNJK5.js";
14
14
  import {
15
15
  TenantHttpError
16
- } from "./chunk-7NNLRNXE.js";
16
+ } from "./chunk-MIS6F4HM.js";
17
17
  import {
18
18
  TLS_CERTIFICATE_CODES,
19
19
  isTimeoutError,
20
20
  writeRefusedBy
21
- } from "./chunk-DILYWJVP.js";
21
+ } from "./chunk-HXFLHA5K.js";
22
22
  import {
23
23
  UsageError
24
- } from "./chunk-D4VKPOD4.js";
24
+ } from "./chunk-GRXX2TOJ.js";
25
25
 
26
26
  // src/emit/operation-outcome.ts
27
27
  var SettledWriteFailure = class extends Error {
@@ -82,4 +82,4 @@ export {
82
82
  SettledWriteFailure,
83
83
  classifyFailure
84
84
  };
85
- //# sourceMappingURL=chunk-XYVPF63S.js.map
85
+ //# sourceMappingURL=chunk-SXMZNSQ6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readEphemeralState
3
- } from "./chunk-OBRMA2VK.js";
3
+ } from "./chunk-XY4OBD26.js";
4
4
  import {
5
5
  OpenIdProvider,
6
6
  addProfileHint,
@@ -30,7 +30,7 @@ import {
30
30
  withCredentialLock,
31
31
  writeCredentialFile,
32
32
  writeOrRemoveCredentialFile
33
- } from "./chunk-P5JF3U65.js";
33
+ } from "./chunk-WS4BA75E.js";
34
34
  import {
35
35
  expandHome,
36
36
  readPathEnvVar
@@ -40,11 +40,11 @@ import {
40
40
  noteResolvedAuth,
41
41
  retryAfterSeconds,
42
42
  serverMessage
43
- } from "./chunk-DILYWJVP.js";
43
+ } from "./chunk-HXFLHA5K.js";
44
44
  import {
45
45
  POINTER_FILE,
46
46
  findProjectPointer
47
- } from "./chunk-I2AVVARA.js";
47
+ } from "./chunk-ECQXASG3.js";
48
48
  import {
49
49
  DEFAULT_PROFILE,
50
50
  ENV_PROFILE,
@@ -60,6 +60,9 @@ import {
60
60
  registerSecret,
61
61
  tokenTextProblem
62
62
  } from "./chunk-4GPIOIAC.js";
63
+ import {
64
+ AGENT_SIGNUP_URL
65
+ } from "./chunk-VYJYDMY6.js";
63
66
  import {
64
67
  EXIT_SOURCE_UNRESOLVABLE,
65
68
  UsageError,
@@ -70,7 +73,7 @@ import {
70
73
  quotedNames,
71
74
  safeText,
72
75
  warn
73
- } from "./chunk-D4VKPOD4.js";
76
+ } from "./chunk-GRXX2TOJ.js";
74
77
  import {
75
78
  suggest
76
79
  } from "./chunk-UTI5G6OJ.js";
@@ -381,7 +384,7 @@ The refresh token may be expired or already spent \u2014 refresh tokens rotate o
381
384
  );
382
385
  }
383
386
  assertHttpsOrigin(instance, "instance");
384
- const { resolveScopedWorkspaceId } = await import("./workspace-RI5C77BZ.js");
387
+ const { resolveScopedWorkspaceId } = await import("./workspace-TK52V7WO.js");
385
388
  const workspaceId = await resolveScopedWorkspaceId({ access_token: set.access_token, instance });
386
389
  return { access_token: set.access_token, instance, workspaceId, credentialType: "oauth-refresh" };
387
390
  }
@@ -499,7 +502,7 @@ async function warnIfUnpinnedMachineDefault(file, selection, pin, saved, path) {
499
502
  if (selection.source !== "file-default" && selection.source !== "implicit") return;
500
503
  const stored = file === null ? [] : profileNames(file);
501
504
  if (stored.length < 2) return;
502
- const { projectDirFrom } = await import("./xanosdk-project-W45IR3Q7.js");
505
+ const { projectDirFrom } = await import("./xanosdk-project-CJKRLQ6U.js");
503
506
  if (projectDirFrom(process.cwd()) === void 0) return;
504
507
  const target = targetOf(saved);
505
508
  credentialWarning(
@@ -587,10 +590,17 @@ var NotSignedInError = class extends Error {
587
590
  * only the default is missing.
588
591
  */
589
592
  storedProfiles;
590
- constructor(message, missingProfile, storedProfiles = []) {
593
+ /**
594
+ * No credential file and no credential variable: nothing has ever signed in
595
+ * on this machine, so the human is likely new to Xano and agentic signup
596
+ * leads the remedy. `status` reports it as `suggest: "signup"`.
597
+ */
598
+ firstRun;
599
+ constructor(message, missingProfile, storedProfiles = [], firstRun = false) {
591
600
  super(message);
592
601
  if (missingProfile !== void 0) this.missingProfile = missingProfile;
593
602
  this.storedProfiles = storedProfiles;
603
+ this.firstRun = firstRun;
594
604
  }
595
605
  };
596
606
  var ProfileNotFoundError = class extends NotSignedInError {
@@ -643,8 +653,19 @@ Run ${addProfileHint(selection.name, target)} to add it.`,
643
653
  );
644
654
  }
645
655
  if (available.length === 0) {
656
+ const firstRun = !existsSync(path) && !hasCredentialEnv();
657
+ const login = `\`${loginCommand(DEFAULT_PROFILE, target)}\``;
658
+ const signup = `ask for their email and get them a free account; they confirm from an emailed link: ${AGENT_SIGNUP_URL}`;
659
+ const decision = firstRun ? `Nothing has signed in on this machine, so your human is likely new to Xano. Offer a free account: ask for their email and sign them up; they confirm from an emailed link: ${AGENT_SIGNUP_URL}
660
+ If they say they already have a Xano account, they run ${login} instead.` : `Ask your human whether they already have a Xano account. Don't guess from context.
661
+ - Yes: they run ${login}.
662
+ - No: ${signup}`;
646
663
  return new NotSignedInError(
647
- `Not signed in (no credential at ${path}). Run \`${loginCommand(DEFAULT_PROFILE, target)}\` to sign in, or store a meta API token with \`xanosdk profile add <name>${credentialFileFlag(path)} --instance <url> --workspace-id <id>\`. For CI, set XANO_INSTANCE_URL, XANO_WORKSPACE_ID and XANO_META_TOKEN together.`
664
+ `Not signed in (no credential at ${path}). ${decision}
665
+ Other ways in: store a meta API token with \`xanosdk profile add <name>${credentialFileFlag(path)} --instance <url> --workspace-id <id>\`, or for CI set XANO_INSTANCE_URL, XANO_WORKSPACE_ID and XANO_META_TOKEN together.`,
666
+ void 0,
667
+ [],
668
+ firstRun
648
669
  );
649
670
  }
650
671
  const have = `Stored profiles: ${quotedNames(available)}.`;
@@ -687,6 +708,11 @@ Run ${addProfileHint(selection.name, target)} to sign in as it, or \`xanosdk pro
687
708
  if (near !== void 0) Object.defineProperty(err, "suggestion", { value: near, enumerable: true });
688
709
  return err;
689
710
  }
711
+ function hasCredentialEnv() {
712
+ return ["XANO_INSTANCE_URL", "XANO_WORKSPACE_ID", "XANO_META_TOKEN", "XANO_REFRESH_TOKEN", "XANO_CLIENT_ID"].some(
713
+ (name) => readEnvVar(name) !== void 0
714
+ );
715
+ }
690
716
  function shadowedInShared(path, name) {
691
717
  if (resolvePath(path) !== localAuthFilePath()) return void 0;
692
718
  const shared = globalAuthFilePath();
@@ -862,4 +888,4 @@ export {
862
888
  notSignedIn,
863
889
  assertStoredAuthHost
864
890
  };
865
- //# sourceMappingURL=chunk-NMHTB346.js.map
891
+ //# sourceMappingURL=chunk-TT6LN55R.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  encodeTags,
6
6
  registerKind
7
- } from "./chunk-VTMTIBKP.js";
7
+ } from "./chunk-74OPNM2Z.js";
8
8
  import {
9
9
  nearestKey
10
10
  } from "./chunk-WTPZRR4I.js";
@@ -25,7 +25,7 @@ import {
25
25
  annotate,
26
26
  encodeStatement,
27
27
  registerStatement
28
- } from "./chunk-A2AOUBJS.js";
28
+ } from "./chunk-FKQX6KU7.js";
29
29
  import {
30
30
  COLUMN_CONTEXT,
31
31
  COLUMN_NULLABLE_TYPES,
@@ -1272,4 +1272,4 @@ export {
1272
1272
  assertSeedUnique,
1273
1273
  isNonPublicColumn
1274
1274
  };
1275
- //# sourceMappingURL=chunk-B5N6EWOM.js.map
1275
+ //# sourceMappingURL=chunk-TXFOQZUQ.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ensureExportGitignored
3
- } from "./chunk-ZSMHS7BU.js";
3
+ } from "./chunk-CJGLAQRD.js";
4
4
  import {
5
5
  andList
6
6
  } from "./chunk-622HUCZT.js";
7
7
  import {
8
8
  UsageError,
9
9
  warn
10
- } from "./chunk-D4VKPOD4.js";
10
+ } from "./chunk-GRXX2TOJ.js";
11
11
 
12
12
  // src/emit/output-target.ts
13
13
  import { accessSync, chmodSync, constants, mkdirSync, statSync, writeFileSync } from "fs";
@@ -125,4 +125,4 @@ export {
125
125
  secretsPhrase,
126
126
  assertWritableTarget
127
127
  };
128
- //# sourceMappingURL=chunk-VFRL4G72.js.map
128
+ //# sourceMappingURL=chunk-UNFQN3TT.js.map