@xano/sdk 1.0.14 → 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.
- package/CHANGELOG.md +27 -0
- package/README.md +33 -37
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-3J6YRVFL.js → agent-file-refresh-DBHTEFYM.js} +12 -12
- package/dist/{agent-skill-command-VWDMQWCT.js → agent-skill-command-LHNTU7MH.js} +74 -73
- package/dist/{answer-shape-AVZSKBR6.js → answer-shape-ZRQS7ZC4.js} +5 -5
- package/dist/{backend-dir-ISP7RVF2.js → backend-dir-AXR43HNV.js} +11 -11
- package/dist/{backend-slot-DZAUHLTS.js → backend-slot-7BATLL3X.js} +4 -4
- package/dist/bin.js +64 -63
- package/dist/{branch-IJTBZZFO.js → branch-SJKKUCMZ.js} +9 -9
- package/dist/branch-commands-KGR52SZU.js +80 -0
- package/dist/bundle.d.ts +2 -2
- package/dist/bundle.js +15 -69
- package/dist/{capture-GW5KNKMB.js → capture-RYBJE25P.js} +5 -5
- package/dist/{chunk-Z3DQ7ULY.js → chunk-23GEFHRX.js} +236 -17
- package/dist/{chunk-3H7R4ISR.js → chunk-2DUYJR5N.js} +2 -2
- package/dist/{chunk-MFWF2NZJ.js → chunk-2H5BQRHF.js} +2 -2
- package/dist/{chunk-O44MJTLR.js → chunk-35SI4GBM.js} +3 -3
- package/dist/{chunk-QKHNJ7LE.js → chunk-3ZV23FVR.js} +5 -5
- package/dist/{chunk-HKI5Y5KW.js → chunk-47XIVDJ6.js} +14 -14
- package/dist/{chunk-ICK36EGF.js → chunk-4EVDCSEY.js} +2 -2
- package/dist/{chunk-FBSGFPZ4.js → chunk-4XGZ325S.js} +3 -3
- package/dist/{chunk-EYVIUX2T.js → chunk-4XYXUK5H.js} +76 -33
- package/dist/{chunk-MAXDJZQR.js → chunk-4ZBXS7YN.js} +8 -8
- package/dist/{chunk-ZMJRAMLA.js → chunk-52QAENY6.js} +14 -14
- package/dist/{chunk-2LF734YB.js → chunk-54CJ74BH.js} +4 -4
- package/dist/{chunk-3SZ7QRYA.js → chunk-57PGTPT3.js} +8 -8
- package/dist/{chunk-IKXXTRMN.js → chunk-64UVVLDT.js} +4 -4
- package/dist/{chunk-EQXHUWUO.js → chunk-6FCAFWD5.js} +2 -2
- package/dist/{chunk-4MX5LMPQ.js → chunk-6ODQ5GDZ.js} +2 -2
- package/dist/{chunk-HK554MDD.js → chunk-74YCPI4G.js} +7 -7
- package/dist/{chunk-Y5XAPLZS.js → chunk-7UQZ7C4W.js} +4 -4
- package/dist/{chunk-CJDPSCMX.js → chunk-7ZVQIKNL.js} +3 -3
- package/dist/{chunk-RVAEPPRH.js → chunk-AICWDCLJ.js} +2 -2
- package/dist/{chunk-WS4BA75E.js → chunk-AJBOGO5U.js} +4 -4
- package/dist/{chunk-2FDHIBEU.js → chunk-AJQFUJEQ.js} +8 -8
- package/dist/{chunk-2KOB4QPW.js → chunk-C7AYP4H6.js} +29 -20
- package/dist/{chunk-XCFQLP6G.js → chunk-DJMGDCVX.js} +8 -8
- package/dist/{chunk-VBSCWV5H.js → chunk-DLD4FVRP.js} +54 -54
- package/dist/{chunk-Q7DGTQ5G.js → chunk-E34VGSCI.js} +2 -1
- package/dist/{chunk-YR3MNGWZ.js → chunk-E5M5P23K.js} +8 -8
- package/dist/{chunk-HJZUI2ZU.js → chunk-EAZTRU75.js} +2 -2
- package/dist/{chunk-QX5XQEYB.js → chunk-EINZSVEU.js} +5 -5
- package/dist/{chunk-KMKUH2IO.js → chunk-EPB6FAR5.js} +5 -5
- package/dist/chunk-EUAU4QKI.js +67 -0
- package/dist/{chunk-IDOVZLPK.js → chunk-EXJ4Q5F6.js} +2 -2
- package/dist/{chunk-IHL2O7VY.js → chunk-F3JK5RIY.js} +3 -2
- package/dist/{chunk-W2QFR3ZJ.js → chunk-FIOC7RSU.js} +2 -2
- package/dist/{chunk-YEH5OIPF.js → chunk-FMXPV5JI.js} +39 -11
- package/dist/{chunk-GVHWIDEJ.js → chunk-FRJB3NTE.js} +10 -5
- package/dist/{chunk-VIRFG3WG.js → chunk-FTFAPKCW.js} +23 -7
- package/dist/{chunk-LL6ED5IB.js → chunk-FTS42N37.js} +2 -2
- package/dist/{chunk-MIS6F4HM.js → chunk-G2XSDIYS.js} +4 -4
- package/dist/{chunk-ZY55DO5P.js → chunk-G6BEJ3NA.js} +2 -2
- package/dist/{chunk-RYWNNJK5.js → chunk-GA6HTO3O.js} +2 -2
- package/dist/{chunk-JIKGT7DO.js → chunk-GE3JV5SI.js} +1 -1
- package/dist/{chunk-GCINMMFL.js → chunk-GJZMKMWO.js} +2 -2
- package/dist/{chunk-LW7TOIS7.js → chunk-GRZ62LLU.js} +8 -8
- package/dist/{chunk-6X73VFCX.js → chunk-GT7PZCTK.js} +2 -2
- package/dist/{chunk-HINRE3UM.js → chunk-HXPQXCOZ.js} +1821 -506
- package/dist/{chunk-ECQXASG3.js → chunk-IFHFJR5O.js} +2 -2
- package/dist/{chunk-P4OWRYE7.js → chunk-IOWNQEMW.js} +31 -31
- package/dist/{chunk-SUKO4SZG.js → chunk-ISIZFK5Q.js} +53 -47
- package/dist/{chunk-QJ25N4W6.js → chunk-IUJDUFT7.js} +4 -4
- package/dist/{chunk-L34DM6QB.js → chunk-JHAZK4RY.js} +3 -3
- package/dist/{chunk-YL3WVBR5.js → chunk-KGHJ74HF.js} +6 -6
- package/dist/{chunk-NUZXSIEA.js → chunk-L2O5KG5Q.js} +6 -6
- package/dist/{chunk-L4WG4BKJ.js → chunk-L3Q2QYIQ.js} +72 -72
- package/dist/{chunk-SAEIVQLP.js → chunk-LLBEPJBO.js} +3 -3
- package/dist/{chunk-NOW522B4.js → chunk-LWBGPPI5.js} +13 -13
- package/dist/{chunk-GOKRKTCX.js → chunk-MBSHONP3.js} +3 -3
- package/dist/{chunk-GKQTXUOW.js → chunk-MOVRSULZ.js} +2 -2
- package/dist/{chunk-QAEBBTYR.js → chunk-MSYMEP7Y.js} +7 -7
- package/dist/{chunk-Y453TW6J.js → chunk-NCERS5QH.js} +2 -2
- package/dist/{chunk-HXFLHA5K.js → chunk-NH5Z2NOD.js} +2 -2
- package/dist/{chunk-T3HNISBN.js → chunk-NJVY3GAX.js} +3 -3
- package/dist/{chunk-J62TYONQ.js → chunk-NQPPUNWP.js} +3 -3
- package/dist/{chunk-LJZIBT75.js → chunk-O7Z3LF44.js} +5 -5
- package/dist/{chunk-B7CPSWQX.js → chunk-OLXYZQR7.js} +7 -7
- package/dist/{chunk-7F3V6CFP.js → chunk-OQNYZ2OM.js} +3 -3
- package/dist/{chunk-DBDTQR23.js → chunk-OTQF4B37.js} +4 -4
- package/dist/{chunk-GBSHHNSD.js → chunk-PRSNMSVG.js} +3 -3
- package/dist/{chunk-DGYXCIBV.js → chunk-Q6AKSLD2.js} +2 -2
- package/dist/{chunk-YTQYP7UJ.js → chunk-Q7KXMIR3.js} +3 -3
- package/dist/{chunk-IWJ6GFST.js → chunk-QCVH32T2.js} +5 -5
- package/dist/{chunk-7FIMUFBP.js → chunk-QDPY7RN3.js} +3 -3
- package/dist/{chunk-DLDYQNGP.js → chunk-QIT2GGNB.js} +3 -3
- package/dist/{chunk-J3XLCYTQ.js → chunk-QSJH5AFU.js} +244 -173
- package/dist/{chunk-DERQSEB5.js → chunk-R7DS2TRZ.js} +38 -22
- package/dist/{chunk-BEKEOXNG.js → chunk-RGPHFHJU.js} +2 -2
- package/dist/{chunk-5FJ4M4HB.js → chunk-RHH6SCB4.js} +17 -32
- package/dist/{chunk-Z4BQPABS.js → chunk-RIT3WBBX.js} +4 -4
- package/dist/{chunk-45K2QZBR.js → chunk-RKNCISPM.js} +3 -3
- package/dist/{chunk-6LJS4M6P.js → chunk-RKTVXFBV.js} +5 -5
- package/dist/{chunk-AXNX4NWN.js → chunk-RLQX6LHW.js} +37 -37
- package/dist/{chunk-FIERONKM.js → chunk-ROWYW3JF.js} +2 -2
- package/dist/{chunk-LSJ3SQEU.js → chunk-RVWWNNZQ.js} +4 -4
- package/dist/{chunk-LPQZICYN.js → chunk-S7MVI4W7.js} +7 -7
- package/dist/{chunk-4MIV244X.js → chunk-SGEOXJIH.js} +9 -2
- package/dist/{chunk-QRMKQYCB.js → chunk-SINL5WMI.js} +2 -2
- package/dist/{chunk-Z6N5N4MN.js → chunk-SIW2HT2H.js} +21 -5
- package/dist/{chunk-IEDQT4Z3.js → chunk-SOAZIMWL.js} +12 -12
- package/dist/{chunk-RPBB7P4Q.js → chunk-SVQMDVND.js} +87 -16
- package/dist/{chunk-45ZUMF4E.js → chunk-TPUAXIPR.js} +2 -2
- package/dist/{chunk-HMYJOQXT.js → chunk-TXU34ELY.js} +25 -25
- package/dist/{chunk-MTBKTGZT.js → chunk-U4UAWGIT.js} +12 -8
- package/dist/{chunk-76SBT7KS.js → chunk-U56HK2RG.js} +7 -5
- package/dist/{chunk-RV2BDU7V.js → chunk-UDW2KAVF.js} +6 -6
- package/dist/{chunk-NDV6CBR7.js → chunk-UH5VQGNR.js} +2 -2
- package/dist/{chunk-75QC66XI.js → chunk-V2MIBJZU.js} +2 -2
- package/dist/{chunk-RDZBXTZ3.js → chunk-VAQPQXOI.js} +4 -4
- package/dist/{chunk-XPSDDTUZ.js → chunk-VCFRALU7.js} +3 -3
- package/dist/{chunk-5KJBWIDZ.js → chunk-VQDVEHDB.js} +2 -2
- package/dist/{chunk-6ILHYSLR.js → chunk-WAP5362D.js} +5 -5
- package/dist/{chunk-XY4OBD26.js → chunk-WGKKDGSA.js} +4 -4
- package/dist/{chunk-UQ2OD7D4.js → chunk-WVVUE7LU.js} +14 -7
- package/dist/{chunk-LB76VK6D.js → chunk-WXQ7BHVQ.js} +7 -7
- package/dist/{chunk-7REDHC4N.js → chunk-X5NF3ZXW.js} +69 -14
- package/dist/{chunk-5W7S2SCA.js → chunk-XAE4NIZ2.js} +4 -4
- package/dist/{chunk-SPLRKCFV.js → chunk-XDGLYIB2.js} +2 -2
- package/dist/{chunk-BSGU4HS6.js → chunk-XKMZYU5B.js} +96 -65
- package/dist/{chunk-OLQN4Z5R.js → chunk-Y3RH35KM.js} +47 -47
- package/dist/{chunk-YFQCDLCQ.js → chunk-YHT7TDSH.js} +14 -14
- package/dist/{chunk-KDEU5FUJ.js → chunk-YJXJOMXW.js} +3 -3
- package/dist/{chunk-N6LGLNAC.js → chunk-YPLHVRMS.js} +4 -4
- package/dist/{chunk-WS2X5BB2.js → chunk-YYBBJPCL.js} +5 -5
- package/dist/{chunk-ZOHEHIFS.js → chunk-YYDM4DNP.js} +2 -2
- package/dist/{chunk-MYIIBV6A.js → chunk-ZF4LCHCT.js} +5 -5
- package/dist/{chunk-GRXX2TOJ.js → chunk-ZHFSIQ6E.js} +2 -2
- package/dist/{chunk-CB67GIR3.js → chunk-ZJQFKBX7.js} +7 -7
- package/dist/{chunk-ZRXDPCMN.js → chunk-ZYZ7GRX3.js} +2 -2
- package/dist/{chunk-5TWLVFYB.js → chunk-ZZC5VSLP.js} +4 -4
- package/dist/cli.d.ts +3 -3
- package/dist/cli.js +62 -61
- package/dist/codegen-command-NAY6YAOD.js +183 -0
- package/dist/codegen.d.ts +3 -3
- package/dist/codegen.js +5 -5
- package/dist/{commands-5ILSWDSV.js → commands-Z2QZOORB.js} +3 -3
- package/dist/{completion-UNKBVVDT.js → completion-LFXXNQGR.js} +3 -3
- package/dist/{config-NTOASFCA.js → config-7GGINOFY.js} +4 -4
- package/dist/{deploy-command-WESYWFJN.js → deploy-command-PBM3S4ZL.js} +69 -68
- package/dist/{deploy-source-ZQQNMDFX.js → deploy-source-JW7DAN75.js} +32 -32
- package/dist/{dev-env-sync-4XJT7WOT.js → dev-env-sync-FHJTFH3V.js} +63 -62
- package/dist/{diagnostics-FNVNRYMB.js → diagnostics-T3RN3372.js} +2 -2
- package/dist/{display-name-hint-MYXCCAOP.js → display-name-hint-5GLJGPQ6.js} +11 -11
- package/dist/{emit-YLt3GfsZ.d.ts → emit-t-gDE1BL.d.ts} +181 -93
- package/dist/env-example-refresh-HHEGMFNH.js +136 -0
- package/dist/{env-pull-command-SK5FS477.js → env-pull-command-FFPNRVWD.js} +52 -52
- package/dist/{env-target-TEFSYACA.js → env-target-XHVRZXHX.js} +14 -14
- package/dist/{env-var-command-IJHKA2WJ.js → env-var-command-DJS62YRR.js} +41 -41
- package/dist/{ephemeral-VLPRDNEJ.js → ephemeral-2DXWP3VK.js} +9 -9
- package/dist/{ephemeral-command-WCO5J4SN.js → ephemeral-command-VLQIQ5TS.js} +52 -52
- package/dist/{ephemeral-state-RUOU2GFS.js → ephemeral-state-56XEDUJW.js} +12 -12
- package/dist/{generate-command-3WCOUOEQ.js → generate-command-PSDIIOTU.js} +89 -88
- package/dist/{gitignore-WYS3GMOX.js → gitignore-PMJ6MFNA.js} +15 -15
- package/dist/{guards-PPIBIMFZ.js → guards-YICHJKX3.js} +51 -15
- package/dist/{impersonate-command-UMYVQTCG.js → impersonate-command-IKV4KUYA.js} +37 -37
- package/dist/{import-T4ZTOTBT.js → import-VJQGIS33.js} +5 -5
- package/dist/index.d.ts +653 -222
- package/dist/index.js +29 -28
- package/dist/init-command-LEQIE6GC.js +143 -0
- package/dist/{init-modules-7KALFI5C.js → init-modules-G47Q7ABV.js} +8 -8
- package/dist/{init-web-DYE2FEXL.js → init-web-25QJ4JWB.js} +3 -3
- package/dist/internal.d.ts +55 -8
- package/dist/internal.js +692 -503
- package/dist/{io-PGTCBSIQ.js → io-47TFRYDB.js} +6 -6
- package/dist/{keep-data-merge-OVHCIEBG.js → keep-data-merge-XCPCX7BZ.js} +38 -38
- package/dist/{lambda-config-reconcile-VOBVZPWS.js → lambda-config-reconcile-CC5QIP6E.js} +3 -3
- package/dist/{landed-F7PCHGCK.js → landed-VIUFHLCJ.js} +5 -5
- package/dist/{landing-record-AIHNW4AZ.js → landing-record-JQ7HZDGI.js} +22 -22
- package/dist/{live-diff-UMSOGPX3.js → live-diff-KJ2TWWWT.js} +14 -14
- package/dist/{local-engine-choice-XDGTATKJ.js → local-engine-choice-DFAMYOIF.js} +35 -35
- package/dist/{local-engine-command-VQWNQ7UK.js → local-engine-command-5RP2J5QZ.js} +40 -40
- package/dist/{local-engine-deploy-4N4NFZ4T.js → local-engine-deploy-XAEDT55W.js} +12 -12
- package/dist/{local-engine-lookup-AQTUGSBT.js → local-engine-lookup-WBYTY2JE.js} +2 -2
- package/dist/{local-engine-mcp-bridge-AMYRH4SY.js → local-engine-mcp-bridge-3H5OXBWQ.js} +5 -5
- package/dist/{local-engine-mcp-command-AIMNMXQG.js → local-engine-mcp-command-JSYVVZKK.js} +42 -42
- package/dist/{local-engine-process-OD5OSWDG.js → local-engine-process-35B2KQED.js} +7 -7
- package/dist/{local-engine-update-check-G3YCBXRE.js → local-engine-update-check-VXJZSIJU.js} +5 -5
- package/dist/{lock-HDCHD2ON.js → lock-JBKTDEDO.js} +4 -4
- package/dist/{lock-commands-H3YV2D6M.js → lock-commands-7VO6YWOV.js} +67 -66
- package/dist/{login-command-NMM3JNDZ.js → login-command-WTZUBCW6.js} +27 -27
- package/dist/{logout-command-7DYC6G32.js → logout-command-5BJUNK3C.js} +17 -17
- package/dist/{loop-DJNIHC7O.js → loop-HILLODVH.js} +15 -15
- package/dist/{marketplace-command-UCSHDZGO.js → marketplace-command-NMOH4XOV.js} +30 -30
- package/dist/{marketplace-resolve-JR4BBJ6K.js → marketplace-resolve-63QWMQZU.js} +6 -6
- package/dist/{meta-client-CD3TXQP6.js → meta-client-MRAMWUKV.js} +15 -15
- package/dist/{module-manifest-63I5GRK4.js → module-manifest-NWJWAQLQ.js} +4 -4
- package/dist/node.d.ts +8 -8
- package/dist/node.js +71 -70
- package/dist/{operation-outcome-2ONIIDRU.js → operation-outcome-WK7UW6PJ.js} +24 -24
- package/dist/{output-target-67LHZKCO.js → output-target-5PYRCCK4.js} +16 -16
- package/dist/{plan-disclosure-T7DF4SRJ.js → plan-disclosure-6MG4YYJV.js} +28 -28
- package/dist/{plugin-contributions-YYEP7IWH.js → plugin-contributions-DD6R6RL6.js} +5 -5
- package/dist/{plugin-prompt-GKCQKNYI.js → plugin-prompt-UX2TT5NS.js} +5 -5
- package/dist/{plugin-questions-P7MA3TYI.js → plugin-questions-WE2F4ZC4.js} +4 -4
- package/dist/{preflight-command-TJ7FURXB.js → preflight-command-3BX2WW3S.js} +75 -74
- package/dist/{profile-command-LDPLTJEJ.js → profile-command-GSUX3UMB.js} +28 -28
- package/dist/{profile-pointer-JJ7K5O2R.js → profile-pointer-RCPHVTJV.js} +4 -4
- package/dist/{project-dependency-X3KCWBK5.js → project-dependency-TPVV3YIX.js} +7 -7
- package/dist/{project-sdk-YHJZRCNB.js → project-sdk-DKZBK5H5.js} +4 -4
- package/dist/promote-command-3LQTXWCD.js +149 -0
- package/dist/{prompt-QNMJIWNI.js → prompt-OYQHQWKI.js} +4 -4
- package/dist/{publish-command-IIRN6NWN.js → publish-command-3BQCV4NE.js} +72 -71
- package/dist/pull-command-B7OVWTZD.js +171 -0
- package/dist/{pull-superseded-6HADGGC5.js → pull-superseded-3SSM3JFT.js} +4 -4
- package/dist/{raw-where-gWGr-E4t.d.ts → raw-where-CinW0keO.d.ts} +32 -4
- package/dist/release-command-XSDICMJE.js +153 -0
- package/dist/{release-ns-command-YLCQPVH3.js → release-ns-command-EVAHK4CU.js} +96 -95
- package/dist/{retry-command-LFZYEVRU.js → retry-command-WP4ZI6CJ.js} +8 -8
- package/dist/{routes-manifest-R3TQRB24.js → routes-manifest-N73THJB3.js} +16 -16
- package/dist/routes-manifest-file-LDUDIVFJ.js +41 -0
- package/dist/scaffold.js +2 -2
- package/dist/{secrets-file-PCNAFXNV.js → secrets-file-7XWR7HW3.js} +15 -15
- package/dist/{secrets-fill-command-G7NQMRXU.js → secrets-fill-command-NKCGC75L.js} +66 -65
- package/dist/{seed-4CD55LB4.js → seed-YKTZDS2Q.js} +13 -13
- package/dist/{source-resolve-U4SJR7ZA.js → source-resolve-CQGDFQQC.js} +22 -22
- package/dist/{static-host-MO4VDHL7.js → static-host-3HPZKVKK.js} +5 -5
- package/dist/{status-command-CD72PXIT.js → status-command-TBMQ3GJP.js} +38 -38
- package/dist/{store-AJX4MC7Y.js → store-B63BQV6R.js} +6 -6
- package/dist/{store-BM7SQcUt.d.ts → store-in7gSpMS.d.ts} +297 -129
- package/dist/sync-baseline-GRS33AB5.js +38 -0
- package/dist/{sync-contributions-XK6LHISZ.js → sync-contributions-RKPLZPPO.js} +9 -9
- package/dist/{sync-record-NE62ERA3.js → sync-record-AWFCSS4D.js} +15 -15
- package/dist/{table-WPRAM4VW.js → table-ONGT3JGE.js} +12 -12
- package/dist/{tables-command-NMTKR52H.js → tables-command-UYQ277TJ.js} +41 -41
- package/dist/{tenant-IIYECNWO.js → tenant-IXIW3FOI.js} +10 -10
- package/dist/{tenant-command-XQAWT46C.js → tenant-command-7LWZUK2V.js} +104 -103
- package/dist/{test-command-W4AD4KT4.js → test-command-7KTT5EAF.js} +56 -45
- package/dist/{tests-JWQRHFCT.js → tests-N4MMBABH.js} +6 -6
- package/dist/{token-P3VQ6ITJ.js → token-3TCMW2AP.js} +13 -13
- package/dist/{toolchain-hooks-UAJBPSTC.js → toolchain-hooks-IJWV3ZQS.js} +18 -18
- package/dist/{toolchain-modules-S3MPHCUI.js → toolchain-modules-PBVBCPQJ.js} +5 -5
- package/dist/{toolchain-peers-FQJBTKEB.js → toolchain-peers-EMOYN4U7.js} +8 -8
- package/dist/{tracked-backend-WWEPNUD5.js → tracked-backend-YDUUQZQF.js} +34 -34
- package/dist/update-check-C6KDFGMT.js +141 -0
- package/dist/{upgrade-command-J6LRNHYF.js → upgrade-command-ZSBTSMBR.js} +68 -67
- package/dist/{whoami-command-KWRP2CII.js → whoami-command-L6ERHR5K.js} +16 -16
- package/dist/{workspace-3YNK4XO4.js → workspace-5DPSDM4A.js} +5 -5
- package/dist/{workspace-binding-TTDNXHO5.js → workspace-binding-MVOWGNYW.js} +15 -15
- package/dist/{workspace-command-W4ANGLCZ.js → workspace-command-PKQ5TDR7.js} +100 -99
- package/dist/{workspace-env-6LJGCTZA.js → workspace-env-UZJZUIYV.js} +18 -12
- package/dist/{workspace-export-PUEXKZNS.js → workspace-export-3KMWNZDD.js} +5 -5
- package/dist/{writable-LMMG4AFZ.js → writable-X7BCN7XE.js} +4 -4
- package/dist/xano-YB6Y2IJS.js +44 -0
- package/dist/{xanosdk-import-PNNMZ4SF.js → xanosdk-import-HHMQDK2I.js} +10 -10
- package/dist/{xanosdk-project-YW3BQY2E.js → xanosdk-project-CKEUNJU4.js} +13 -13
- package/dist/{xdo-D4OwfF2J.d.ts → xdo-DNGZGO1j.d.ts} +50 -12
- package/guides/authoring.md +1 -0
- package/guides/codes.md +33 -3
- package/guides/coverage.md +2 -2
- package/guides/object-kinds.md +1 -1
- package/guides/typed-frontend.md +9 -0
- package/llms/client.md +54 -36
- package/llms/errors.md +26 -6
- package/llms/fields.md +53 -30
- package/llms/filters.md +55 -46
- package/llms/kinds-agent-mcp.md +10 -9
- package/llms/kinds-core.md +19 -15
- package/llms/kinds-knowledge.md +4 -4
- package/llms/kinds-realtime.md +25 -23
- package/llms/lambda.md +42 -30
- package/llms/legacy.md +6 -7
- package/llms/lock.md +21 -17
- package/llms/object-kinds.md +9 -11
- package/llms/statements-calls.md +41 -20
- package/llms/statements-catalog.md +78 -71
- package/llms/statements-data.md +35 -25
- package/llms/statements-runtime.md +28 -18
- package/llms/tests.md +20 -7
- package/llms/toolchain.md +12 -9
- package/llms/triggers.md +14 -18
- package/llms/values.md +16 -9
- package/llms-full.txt +689 -549
- package/llms.txt +120 -137
- package/manifest.json +228 -246
- package/package.json +1 -1
- package/skills/xano-backend/SKILL.md +10 -12
- package/types/lambda-globals.d.ts +6 -1
- package/dist/branch-commands-75IYFTBS.js +0 -80
- package/dist/codegen-command-JWOW6HE5.js +0 -182
- package/dist/env-example-refresh-4V2OCDJE.js +0 -135
- package/dist/init-command-UR5MSXIH.js +0 -142
- package/dist/promote-command-RURHOLNR.js +0 -148
- package/dist/pull-command-ITO76ENU.js +0 -170
- package/dist/release-command-CVGIUD4M.js +0 -152
- package/dist/routes-manifest-file-GYNYFKAH.js +0 -41
- package/dist/sync-baseline-BJDKG4F2.js +0 -38
- package/dist/update-check-O7QC5TBB.js +0 -140
- package/dist/xano-Z3SRHYOR.js +0 -43
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
UsageError,
|
|
3
3
|
flagNames,
|
|
4
4
|
unknownFlag
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
159
|
+
//# sourceMappingURL=chunk-ROWYW3JF.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hasString,
|
|
3
3
|
listAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SINL5WMI.js";
|
|
5
5
|
import {
|
|
6
6
|
READ_AFTERMATH,
|
|
7
7
|
explainFetchFailure,
|
|
8
8
|
httpFailure,
|
|
9
9
|
readBodyText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NH5Z2NOD.js";
|
|
11
11
|
import {
|
|
12
12
|
detail,
|
|
13
13
|
info,
|
|
14
14
|
warn
|
|
15
|
-
} from "./chunk-
|
|
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-
|
|
171
|
+
//# sourceMappingURL=chunk-RVWWNNZQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exportWorkspaceBundle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2DUYJR5N.js";
|
|
4
4
|
import {
|
|
5
5
|
encodeWorkspaceArchive,
|
|
6
6
|
readArchiveEntries
|
|
@@ -10,23 +10,23 @@ import {
|
|
|
10
10
|
} from "./chunk-X4DVXBFY.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveSource
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-47XIVDJ6.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadRelease
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UH5VQGNR.js";
|
|
17
17
|
import {
|
|
18
18
|
backendDirIn
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YJXJOMXW.js";
|
|
20
20
|
import {
|
|
21
21
|
BARE,
|
|
22
22
|
UsageError,
|
|
23
23
|
isKindShaped,
|
|
24
24
|
parseSource,
|
|
25
25
|
relForwardSlash
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZHFSIQ6E.js";
|
|
27
27
|
import {
|
|
28
28
|
calcSignatureJson
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QDPY7RN3.js";
|
|
30
30
|
|
|
31
31
|
// src/emit/deploy-source.ts
|
|
32
32
|
import { existsSync } from "fs";
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
gatedApiGroups,
|
|
145
145
|
asWorkspaceArchive
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-S7MVI4W7.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
|
|
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-
|
|
169
|
+
//# sourceMappingURL=chunk-SGEOXJIH.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
notJsonError,
|
|
9
9
|
parseJsonAnswer,
|
|
10
10
|
unexpectedAnswerError
|
|
11
|
-
} from "./chunk-
|
|
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-
|
|
97
|
+
//# sourceMappingURL=chunk-SINL5WMI.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
describeEntry,
|
|
10
10
|
protoKeyed
|
|
11
|
-
} from "./chunk-
|
|
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
|
|
685
|
+
function auth(path, opts) {
|
|
686
686
|
assertNoRefOptions("auth", opts);
|
|
687
|
-
|
|
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(
|
|
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-
|
|
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-
|
|
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-
|
|
28
|
+
} from "./chunk-FIOC7RSU.js";
|
|
29
29
|
import {
|
|
30
30
|
f,
|
|
31
31
|
input
|
|
32
|
-
} from "./chunk-
|
|
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-
|
|
50
|
+
} from "./chunk-SIW2HT2H.js";
|
|
51
51
|
import {
|
|
52
52
|
REFERENCEABLE_KIND_PAYLOAD_KEYS
|
|
53
|
-
} from "./chunk-
|
|
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-
|
|
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 === "" ?
|
|
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-
|
|
2024
|
+
//# sourceMappingURL=chunk-SOAZIMWL.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
parsePathParams,
|
|
6
6
|
pathSegment
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
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 = "
|
|
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:
|
|
166
|
-
geo_multipoint:
|
|
167
|
-
geo_linestring:
|
|
168
|
-
geo_multilinestring:
|
|
169
|
-
geo_polygon:
|
|
170
|
-
geo_multipolygon:
|
|
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
|
|
688
|
-
*
|
|
689
|
-
*
|
|
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-
|
|
997
|
+
//# sourceMappingURL=chunk-SVQMDVND.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveRef
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
27
|
+
//# sourceMappingURL=chunk-TPUAXIPR.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
keptDuplicates,
|
|
3
3
|
replacedRegistrations,
|
|
4
4
|
reportSuperseded
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RGPHFHJU.js";
|
|
6
6
|
import {
|
|
7
7
|
rerenderEnvExample
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NQPPUNWP.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-
|
|
20
|
+
} from "./chunk-XKMZYU5B.js";
|
|
21
21
|
import {
|
|
22
22
|
ROUTES_MANIFEST_BASENAME
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SVQMDVND.js";
|
|
24
24
|
import {
|
|
25
25
|
syncDigests
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4XGZ325S.js";
|
|
27
27
|
import {
|
|
28
28
|
fetchSourceArchive
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-S7MVI4W7.js";
|
|
30
30
|
import {
|
|
31
31
|
confirm
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AICWDCLJ.js";
|
|
33
33
|
import {
|
|
34
34
|
recordSync,
|
|
35
35
|
syncBranchLabel
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EPB6FAR5.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-
|
|
43
|
+
} from "./chunk-ZZC5VSLP.js";
|
|
44
44
|
import {
|
|
45
45
|
readVersion,
|
|
46
46
|
refreshAgentGuidance
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QSJH5AFU.js";
|
|
48
48
|
import {
|
|
49
49
|
WORKSPACE_ENV_BASENAME,
|
|
50
50
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
51
51
|
namesInEnvExample,
|
|
52
52
|
readWorkspaceEnvFile
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-R7DS2TRZ.js";
|
|
54
54
|
import {
|
|
55
55
|
memoCredential,
|
|
56
56
|
refuseProfileForLocal,
|
|
57
57
|
selectBackend
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-LWBGPPI5.js";
|
|
59
59
|
import {
|
|
60
60
|
getAccessToken
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-57PGTPT3.js";
|
|
62
62
|
import {
|
|
63
63
|
readLockFile,
|
|
64
64
|
writeLockFile
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7ZVQIKNL.js";
|
|
66
66
|
import {
|
|
67
67
|
requireBackendSlot
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-V2MIBJZU.js";
|
|
69
69
|
import {
|
|
70
70
|
contextFlags
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-ZYZ7GRX3.js";
|
|
72
72
|
import {
|
|
73
73
|
backendDirIn,
|
|
74
74
|
resolveBackendDir
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-YJXJOMXW.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-
|
|
90
|
+
} from "./chunk-ISIZFK5Q.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-
|
|
97
|
+
} from "./chunk-RHH6SCB4.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-
|
|
110
|
+
} from "./chunk-ZHFSIQ6E.js";
|
|
111
111
|
import {
|
|
112
112
|
WORKSPACE_SECRETS_BASENAME
|
|
113
113
|
} from "./chunk-3JDU4VRL.js";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
lockKey,
|
|
118
118
|
lockNameForObject,
|
|
119
119
|
withObjects
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-VQDVEHDB.js";
|
|
121
121
|
import {
|
|
122
122
|
shellQuote
|
|
123
123
|
} from "./chunk-5ZSO4T2G.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-
|
|
322
|
+
const { discoverManifestModules } = await import("./routes-manifest-file-LDUDIVFJ.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-
|
|
443
|
+
const { yesRerun } = await import("./retry-command-WP4ZI6CJ.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-
|
|
918
|
+
const { yesRerun } = await import("./retry-command-WP4ZI6CJ.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-
|
|
947
|
+
//# sourceMappingURL=chunk-TXU34ELY.js.map
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
HEADER_NAME,
|
|
4
4
|
generated,
|
|
5
5
|
literalText
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HXPQXCOZ.js";
|
|
7
7
|
import {
|
|
8
8
|
fl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RLQX6LHW.js";
|
|
10
10
|
import {
|
|
11
11
|
c,
|
|
12
12
|
resp,
|
|
13
13
|
withFilters
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SIW2HT2H.js";
|
|
15
15
|
import {
|
|
16
16
|
describeEntry,
|
|
17
17
|
isTaggedArg
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SGEOXJIH.js";
|
|
19
19
|
|
|
20
20
|
// src/statements/respond.ts
|
|
21
21
|
var REDIRECT_STATUSES = [301, 302, 303, 307];
|
|
@@ -180,7 +180,11 @@ var expect = {
|
|
|
180
180
|
to_be_defined: (subject) => mk("to_be_defined", subject),
|
|
181
181
|
/** The subject is undefined. */
|
|
182
182
|
to_not_be_defined: (subject) => mk("to_not_be_defined", subject),
|
|
183
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* The subject is empty — only `""`, `[]`, or `{}`. `0`, `null` and `false`
|
|
185
|
+
* all FAIL, so use {@link to_be_null} for null and `to_equal(…, c.int(0))`
|
|
186
|
+
* for zero.
|
|
187
|
+
*/
|
|
184
188
|
to_be_empty: (subject) => mk("to_be_empty", subject),
|
|
185
189
|
/** The subject is `null`. */
|
|
186
190
|
to_be_null: (subject) => mk("to_be_null", subject),
|
|
@@ -194,9 +198,9 @@ var expect = {
|
|
|
194
198
|
to_be_in_the_future: (subject) => mk("to_be_in_the_future", subject),
|
|
195
199
|
/** The subject is a timestamp earlier than now. */
|
|
196
200
|
to_be_in_the_past: (subject) => mk("to_be_in_the_past", subject),
|
|
197
|
-
/** `subject
|
|
201
|
+
/** `subject == value` — a LOOSE compare: text `"5"` equals int `5`, and `5` equals `5.0`. To pin a type, assert on a filter like `withFilters(subject, fl.is_text())` instead. */
|
|
198
202
|
to_equal: (subject, value) => mk("to_equal", subject, value),
|
|
199
|
-
/** `subject
|
|
203
|
+
/** `subject != value` — the loose inverse of {@link to_equal} (`"5"` and `5` are NOT unequal). */
|
|
200
204
|
to_not_equal: (subject, value) => mk("to_not_equal", subject, value),
|
|
201
205
|
/** `subject > value`, both read as numbers. */
|
|
202
206
|
to_be_greater_than: (subject, value) => mk("to_be_greater_than", subject, value),
|
|
@@ -238,4 +242,4 @@ export {
|
|
|
238
242
|
TEST_EXPECT_TYPES,
|
|
239
243
|
expect
|
|
240
244
|
};
|
|
241
|
-
//# sourceMappingURL=chunk-
|
|
245
|
+
//# sourceMappingURL=chunk-U4UAWGIT.js.map
|