@xano/sdk 1.0.6 → 1.0.8-mesh0.1
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 +30 -0
- package/README.md +32 -4
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-67QIX45H.js → agent-file-refresh-YBE5LZFJ.js} +13 -13
- package/dist/agent-skill-command-DDHOBL3L.js +414 -0
- package/dist/{answer-shape-UCDUKPAN.js → answer-shape-UMQRXMCX.js} +5 -5
- package/dist/{backend-dir-3LIL6SCT.js → backend-dir-5GL5WFFV.js} +15 -15
- package/dist/{backend-slot-JREP27UD.js → backend-slot-TTRNOQF5.js} +4 -4
- package/dist/bin.js +54 -53
- package/dist/{branch-2IPHOAYS.js → branch-Q7CDJRU6.js} +12 -11
- package/dist/{branch-commands-KTKAXBAN.js → branch-commands-QI575RSG.js} +27 -26
- package/dist/bundle.js +5 -5
- package/dist/{chunk-LAOMN6QQ.js → chunk-2EQBS63A.js} +3 -3
- package/dist/{chunk-2FLIJGBZ.js → chunk-3UZQ5TMG.js} +47 -8
- package/dist/{chunk-FNLTFOUD.js → chunk-4AE3AVY3.js} +2 -2
- package/dist/{chunk-ENMBEXOP.js → chunk-4BPUM6DK.js} +3 -3
- package/dist/{chunk-AWQ7BQTQ.js → chunk-4GPIOIAC.js} +6 -1
- package/dist/{chunk-JRVQ7M7W.js → chunk-4HQE5CXQ.js} +8 -8
- package/dist/{chunk-YYLUBYXM.js → chunk-4JKXGPXB.js} +3 -3
- package/dist/{chunk-YYC2DZMG.js → chunk-4KBZ6ZEW.js} +6 -6
- package/dist/{chunk-EQFYOOO6.js → chunk-5GIOCDUM.js} +829 -893
- package/dist/{chunk-26MOFAJT.js → chunk-5QOV52V4.js} +6 -3
- package/dist/{chunk-Q22BMRPF.js → chunk-5Y5HWQ2P.js} +2 -2
- package/dist/{chunk-TTEIDD5Q.js → chunk-64FL5VXX.js} +4 -4
- package/dist/{chunk-T4LJ5UR2.js → chunk-6BOKCTCM.js} +52 -22
- package/dist/{chunk-ND43ZOS3.js → chunk-6P3ISGGI.js} +7 -7
- package/dist/{chunk-QJM5XZ4K.js → chunk-6PTITS3M.js} +8 -8
- package/dist/{chunk-N5I37JFB.js → chunk-6S263KTM.js} +2 -2
- package/dist/{chunk-3II44CUJ.js → chunk-6TMB3UUM.js} +24 -24
- package/dist/{chunk-5QMJOE2K.js → chunk-6ZFJEJXZ.js} +5 -3
- package/dist/{chunk-NPODGBVJ.js → chunk-75MKIQON.js} +4 -4
- package/dist/{chunk-SPITRSOF.js → chunk-76UAME77.js} +2 -2
- package/dist/{chunk-GWTFI3GA.js → chunk-7JKNWDYN.js} +2 -2
- package/dist/{chunk-6X6BJN6Y.js → chunk-7MPI7NIW.js} +3 -3
- package/dist/{chunk-UD2Z7K6W.js → chunk-AQ34CEDI.js} +4 -4
- package/dist/{chunk-PFBXSVZF.js → chunk-AQG4FFDT.js} +7 -7
- package/dist/{chunk-PMMHSX4H.js → chunk-B3NH5UBI.js} +4 -4
- package/dist/{chunk-SLGJIWCY.js → chunk-B5N6EWOM.js} +2 -2
- package/dist/chunk-BRANWM4U.js +853 -0
- package/dist/{chunk-ATJ2W7DC.js → chunk-BVPGV55J.js} +286 -126
- package/dist/{chunk-6X3MY2JP.js → chunk-C2GHFADU.js} +2 -2
- package/dist/{chunk-D7BUMOKU.js → chunk-C6KBZH7M.js} +82 -6
- package/dist/{chunk-5YQV35C2.js → chunk-CKJK2QTT.js} +7 -7
- package/dist/{chunk-IF4PEGVD.js → chunk-D57SMZVV.js} +11 -11
- package/dist/{chunk-AVS4WPPY.js → chunk-DER2CVNC.js} +2 -2
- package/dist/{chunk-GLY552SI.js → chunk-DESS5BLU.js} +128 -60
- package/dist/{chunk-UIVMR7UK.js → chunk-DY3EJWWH.js} +2 -2
- package/dist/{chunk-I3H3HCPY.js → chunk-EFJBGKRK.js} +34 -31
- package/dist/{chunk-SKEG3V2V.js → chunk-EKTIGGFO.js} +2 -2
- package/dist/{chunk-PL7AIAWS.js → chunk-F3IA3YWI.js} +4 -111
- package/dist/{chunk-FQ53GTII.js → chunk-F5RPNTN7.js} +6 -6
- package/dist/{chunk-GHQ4BVI4.js → chunk-F647T23K.js} +14 -14
- package/dist/{chunk-GW5RHGOB.js → chunk-FPQBPJPS.js} +9 -9
- package/dist/{chunk-ZDP6GDAB.js → chunk-GH6ZWSTH.js} +103 -94
- package/dist/{chunk-3BBIDW3Y.js → chunk-GN5SQMIQ.js} +5 -5
- package/dist/{chunk-SSITMX7I.js → chunk-H3ZBAR2L.js} +16 -14
- package/dist/{chunk-OIKLDDYC.js → chunk-HFOGQIII.js} +3 -3
- package/dist/{chunk-2WBH5HUY.js → chunk-HOKRELBK.js} +7 -7
- package/dist/{chunk-JXVJGF3Y.js → chunk-HQPL34O6.js} +2 -2
- package/dist/{chunk-ROY4YAEQ.js → chunk-HU7F56VF.js} +22 -2
- package/dist/{chunk-TECTL2NU.js → chunk-HVPSDQJB.js} +4 -4
- package/dist/{chunk-M5CSVB23.js → chunk-IB6SKACE.js} +11 -8
- package/dist/{chunk-YKP4ZKVO.js → chunk-IBTPQQI6.js} +3 -3
- package/dist/chunk-IXISAJ67.js +995 -0
- package/dist/{chunk-YGLMRH5U.js → chunk-JZ4WNPKY.js} +12 -12
- package/dist/{chunk-D3KEPRRN.js → chunk-LC3KQ5SO.js} +13 -1
- package/dist/chunk-LCOCRJ4K.js +116 -0
- package/dist/{local-engine-command-RYLGMQ2O.js → chunk-LDWK6F57.js} +22 -77
- package/dist/{chunk-7VR4IO5B.js → chunk-LI3UQFJY.js} +2 -2
- package/dist/{chunk-3EDSPMXN.js → chunk-LJM5CIY4.js} +5 -1
- package/dist/{chunk-Z4ZGTCCD.js → chunk-LZ2E76UO.js} +6 -6
- package/dist/{chunk-IXFJORNH.js → chunk-NFSUGVDY.js} +4 -4
- package/dist/{chunk-U35MTOXQ.js → chunk-NJHUQSDH.js} +3 -3
- package/dist/{chunk-LBJA7IEM.js → chunk-O376UAZS.js} +2 -2
- package/dist/{chunk-LD6ARK3A.js → chunk-OBJ7FQDX.js} +2 -2
- package/dist/{chunk-VJFMUJWZ.js → chunk-OHTHG3LL.js} +2 -2
- package/dist/{chunk-ITC2R2OT.js → chunk-P2IPFNP4.js} +7 -7
- package/dist/{chunk-WZHLMU6T.js → chunk-PBK257CI.js} +2 -2
- package/dist/{chunk-SPKA2LV6.js → chunk-PFW7WFAT.js} +4 -4
- package/dist/{chunk-GOLFAEUV.js → chunk-QC3MKMDK.js} +2 -2
- package/dist/{chunk-763M6LX3.js → chunk-QL3ZJWGG.js} +2 -2
- package/dist/{chunk-KPFS3RGM.js → chunk-QTMXJQZN.js} +4 -4
- package/dist/{chunk-BTVUYHWV.js → chunk-QXOBZSQD.js} +4 -4
- package/dist/{chunk-NDWVJ2QZ.js → chunk-R3LANPQZ.js} +3 -3
- package/dist/{chunk-QXYMDARD.js → chunk-R4NOZBOY.js} +4 -4
- package/dist/{chunk-JI3BLXWQ.js → chunk-RB3UNDOE.js} +11 -5
- package/dist/{chunk-CCU5CCRX.js → chunk-RGJ7UZFP.js} +8 -8
- package/dist/{chunk-U6MTGB46.js → chunk-S42TFTM5.js} +5 -5
- package/dist/{chunk-7GAIJW62.js → chunk-TG65NWUR.js} +2 -2
- package/dist/{chunk-ZJSTUD6D.js → chunk-TGHRAXKL.js} +8 -8
- package/dist/{chunk-YR2I5HGE.js → chunk-TR7EOUQE.js} +2 -2
- package/dist/{chunk-IYXL5NYU.js → chunk-TXPWOFJS.js} +2 -2
- package/dist/{chunk-A7MRZ4GF.js → chunk-U32NHVSS.js} +5 -5
- package/dist/{chunk-HCG7NDIL.js → chunk-UICFYANB.js} +5 -5
- package/dist/{chunk-5TVFLG3C.js → chunk-ULUUOUQX.js} +2 -2
- package/dist/{chunk-GZHLCUZ6.js → chunk-UM42ZIEU.js} +7 -7
- package/dist/{chunk-VDHA5SSQ.js → chunk-VD7YTLWL.js} +2 -2
- package/dist/{chunk-I3VHW6XM.js → chunk-VDG4UKGP.js} +18 -18
- package/dist/{chunk-EADVVTDK.js → chunk-VHV25AAO.js} +7 -7
- package/dist/{chunk-BL3AZ3AP.js → chunk-VJTTTIIB.js} +2 -2
- package/dist/{chunk-FU3VCE5A.js → chunk-VK76LFW2.js} +13 -9
- package/dist/{chunk-RIN4YY34.js → chunk-VL3JRW4S.js} +106 -69
- package/dist/{chunk-QZEAANWP.js → chunk-XC4E3PUJ.js} +8 -8
- package/dist/{chunk-XFBGXB7X.js → chunk-XFHLOYUZ.js} +163 -107
- package/dist/{chunk-JFBRXRJD.js → chunk-XMV3E7EC.js} +40 -40
- package/dist/{chunk-WBH4KJWM.js → chunk-XQO4A4Q4.js} +3 -3
- package/dist/{chunk-VW4CWVYX.js → chunk-YE7MHW45.js} +4 -4
- package/dist/{chunk-YHB34BN6.js → chunk-YEH5OIPF.js} +2 -1
- package/dist/{chunk-MBDFH7XB.js → chunk-YP76ZCQ5.js} +4 -4
- package/dist/{chunk-CHINR7WD.js → chunk-ZEUEYKQ6.js} +5 -5
- package/dist/{chunk-IMELQ2I6.js → chunk-ZO3QWFNV.js} +3 -3
- package/dist/cli.d.ts +32 -4
- package/dist/cli.js +51 -48
- package/dist/{codegen-command-R5IASBFC.js → codegen-command-AIZB3FUC.js} +69 -68
- package/dist/{commands-H7CPMMHH.js → commands-FOHIPDKZ.js} +3 -3
- package/dist/{completion-W5ZAI6TN.js → completion-XUBGMKGV.js} +9 -5
- package/dist/{config-MZ5KG4EP.js → config-544VCRKP.js} +8 -8
- package/dist/{deploy-command-34T2LKQ5.js → deploy-command-V5DMS4ZX.js} +56 -55
- package/dist/{deploy-source-YLQ7WMYR.js → deploy-source-2TSXX3VB.js} +34 -33
- package/dist/{dev-env-sync-TMJTNU3U.js → dev-env-sync-EQQ3AJGG.js} +54 -53
- package/dist/{diagnostics-OMN5Y2AH.js → diagnostics-FNVNRYMB.js} +2 -2
- package/dist/{display-name-hint-ZJGFNJKQ.js → display-name-hint-EZQK2PDU.js} +14 -13
- package/dist/{emit-D125xxty.d.ts → emit-8lcNcRrd.d.ts} +12 -12
- package/dist/env-example-refresh-4IBD3MBJ.js +134 -0
- package/dist/{env-pull-command-UTG6IC2K.js → env-pull-command-DBRHTBWT.js} +46 -45
- package/dist/{env-target-FZROWYFS.js → env-target-K23V5FZA.js} +13 -12
- package/dist/{env-var-command-VYDBQJJW.js → env-var-command-W7ZSG2Z3.js} +50 -49
- package/dist/{ephemeral-BIE6FMJV.js → ephemeral-H24NF6WP.js} +11 -10
- package/dist/{ephemeral-command-OZ26RGXF.js → ephemeral-command-JSCJSX22.js} +64 -63
- package/dist/{ephemeral-state-SNZOX2YK.js → ephemeral-state-YLZQIOBF.js} +11 -10
- package/dist/{generate-command-4HR7MR36.js → generate-command-M2C6ZZUQ.js} +84 -82
- package/dist/{gitignore-EWQBXNX2.js → gitignore-Z6B3GR2I.js} +19 -19
- package/dist/{guards-KYEOCVHN.js → guards-4VPSEOAI.js} +6 -4
- package/dist/{impersonate-command-WC7OGKUM.js → impersonate-command-P63YGMQM.js} +42 -41
- package/dist/{import-7Z4GCCPO.js → import-TXYVFYJS.js} +5 -5
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -8
- package/dist/{init-command-HAO3WXH3.js → init-command-EUJ6MUM2.js} +68 -53
- package/dist/{init-modules-NSKD4ASY.js → init-modules-GP3KBD4E.js} +8 -8
- package/dist/{init-web-MKFFOQUU.js → init-web-MSXDARRF.js} +3 -3
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +10 -10
- package/dist/{keep-data-merge-QR2TMKEO.js → keep-data-merge-V7NUOHLT.js} +28 -28
- package/dist/{lambda-config-reconcile-7FJXXV6V.js → lambda-config-reconcile-47X5C2E4.js} +6 -5
- package/dist/{landing-record-MWXFIRCP.js → landing-record-7UKEQ25N.js} +22 -22
- package/dist/{live-diff-5E2BQWQ7.js → live-diff-Y5VDHSZM.js} +3 -3
- package/dist/{local-engine-choice-VD5LNXJU.js → local-engine-choice-AFCKFASJ.js} +37 -36
- package/dist/local-engine-command-MTPDD4ID.js +85 -0
- package/dist/{local-engine-config-W3KB7RWM.js → local-engine-config-6CB6FOEJ.js} +3 -2
- package/dist/{local-engine-deploy-6O7NKZCA.js → local-engine-deploy-ID4JJXB5.js} +18 -16
- package/dist/local-engine-lookup-IC7BKAYP.js +43 -0
- package/dist/local-engine-mcp-bridge-3SOJMZ5T.js +423 -0
- package/dist/local-engine-mcp-command-WXZVCUJD.js +181 -0
- package/dist/{local-engine-process-ZLLZEIRF.js → local-engine-process-HG5BGG3F.js} +12 -9
- package/dist/{local-engine-state-OCW5YDD7.js → local-engine-state-JZHTKHDG.js} +4 -3
- package/dist/{local-engine-update-check-LVX4HBBI.js → local-engine-update-check-SKZR7YSC.js} +7 -6
- package/dist/{lock-commands-X2OECR4R.js → lock-commands-2I3X22S2.js} +57 -56
- package/dist/{login-command-RLLKD565.js → login-command-RVM2IFKQ.js} +33 -33
- package/dist/{logout-command-XDMSXCDO.js → logout-command-EPWRAN3N.js} +16 -15
- package/dist/{loop-SUB6C2LK.js → loop-67FOZNJN.js} +3 -3
- package/dist/{marketplace-command-2NHHY2X3.js → marketplace-command-HN35TMQO.js} +34 -34
- package/dist/{marketplace-resolve-OTZYT4FG.js → marketplace-resolve-PWEYJ2XS.js} +6 -6
- package/dist/{meta-client-TMHVBZFY.js → meta-client-52JNOTRR.js} +14 -13
- package/dist/{module-manifest-FNMW23IX.js → module-manifest-KY7J63HG.js} +4 -4
- package/dist/node.d.ts +4 -4
- package/dist/node.js +60 -59
- package/dist/operation-outcome-SZRJPLHR.js +53 -0
- package/dist/{output-target-MOLCTPBP.js → output-target-OEPSECGR.js} +20 -20
- package/dist/{plan-disclosure-CY7AF6KP.js → plan-disclosure-NPTMOR2Q.js} +17 -16
- package/dist/{plugin-contributions-WR26U7NT.js → plugin-contributions-PAGG6SUP.js} +6 -6
- package/dist/{plugin-prompt-ZUYQQIX4.js → plugin-prompt-2MX6LF6X.js} +5 -5
- package/dist/{plugin-questions-HAZOQ67R.js → plugin-questions-AP6VUTOB.js} +4 -4
- package/dist/{preflight-command-OHJXYND3.js → preflight-command-ZB7HRYVT.js} +61 -60
- package/dist/{profile-command-6JWT2BTL.js → profile-command-RX47NDY4.js} +34 -34
- package/dist/{profile-pointer-PDA5XBIB.js → profile-pointer-4HJQH5ZR.js} +5 -4
- package/dist/{project-dependency-GZWWGWEW.js → project-dependency-ORX45I74.js} +7 -7
- package/dist/{project-sdk-3W72H5QO.js → project-sdk-IYMFVQRC.js} +4 -4
- package/dist/promote-command-KOEKHI34.js +147 -0
- package/dist/{prompt-U37K5RPQ.js → prompt-ZZUYWFQX.js} +4 -4
- package/dist/{publish-command-BUS27HGB.js → publish-command-ARKUFNJ3.js} +61 -60
- package/dist/{pull-command-ZGUNP27P.js → pull-command-QHPQPFZX.js} +72 -71
- package/dist/{pull-superseded-EZBGYRZF.js → pull-superseded-UZ3MB53B.js} +4 -4
- package/dist/{release-command-BQ6OHS3P.js → release-command-KUQ5ZBMW.js} +67 -66
- package/dist/{release-ns-command-ATGVBVIU.js → release-ns-command-AKHCEYGS.js} +92 -91
- package/dist/{retry-command-QJ57WVW7.js → retry-command-VZYLYDVX.js} +10 -9
- package/dist/{routes-manifest-YR4ZIMLM.js → routes-manifest-RIZGSOZC.js} +4 -4
- package/dist/{routes-manifest-file-UALYSZLY.js → routes-manifest-file-6MSRYJTC.js} +8 -8
- package/dist/scaffold.js +4 -4
- package/dist/secrets-IV4N5HYI.js +20 -0
- package/dist/{secrets-file-LMS7KX3E.js → secrets-file-6HPZRMHS.js} +19 -19
- package/dist/{secrets-fill-command-QNBDGCGM.js → secrets-fill-command-ANBQVXOR.js} +55 -54
- package/dist/{seed-SZ6OS5DQ.js → seed-KEPIS7UZ.js} +6 -6
- package/dist/{source-resolve-MKLNYFWG.js → source-resolve-CI7JQVTM.js} +24 -22
- package/dist/{static-host-ONEHA4LI.js → static-host-JAOT3N3E.js} +5 -5
- package/dist/{status-command-XKIFKBGM.js → status-command-RS57KOKP.js} +53 -52
- package/dist/{store-Bg4Na6Sm.d.ts → store-CuD1k4kV.d.ts} +1 -1
- package/dist/{store-X6ZH7EC3.js → store-YFNDD6GZ.js} +8 -7
- package/dist/{sync-baseline-DOV5AGIO.js → sync-baseline-WDN3J7NI.js} +7 -5
- package/dist/{sync-contributions-HNVHDIQW.js → sync-contributions-WUL5TGW6.js} +10 -10
- package/dist/{sync-record-PRXHLK4S.js → sync-record-U65BCPSP.js} +14 -13
- package/dist/{table-DC36QA4Y.js → table-E5YTK7QX.js} +7 -7
- package/dist/{tables-command-UQLKTELN.js → tables-command-QYLUJV7Y.js} +40 -39
- package/dist/{tenant-EKNQGG5A.js → tenant-DAXJ4P4D.js} +12 -11
- package/dist/{tenant-command-2LWP2MPB.js → tenant-command-PAMMMYXG.js} +97 -96
- package/dist/{test-command-IU5MBBXY.js → test-command-METJGZ5E.js} +42 -41
- package/dist/{tests-RG2Y5EQ4.js → tests-CLDZWLKF.js} +6 -6
- package/dist/{token-7AWSJLKO.js → token-XBCHSFRV.js} +12 -11
- package/dist/{toolchain-hooks-4ZMQLBPQ.js → toolchain-hooks-3ZAAAWPL.js} +7 -7
- package/dist/{toolchain-modules-VU7SURVJ.js → toolchain-modules-H2X4YWST.js} +5 -5
- package/dist/{toolchain-peers-CIDNEEQV.js → toolchain-peers-AIKWKJH7.js} +8 -8
- package/dist/{tracked-backend-4BHSV7NC.js → tracked-backend-KTLIMNNQ.js} +37 -36
- package/dist/{update-check-A7FXIINW.js → update-check-5XQA5WRN.js} +52 -51
- package/dist/{upgrade-command-C5KBITFI.js → upgrade-command-ULPZNSVS.js} +58 -55
- package/dist/{whoami-command-7WQII2H4.js → whoami-command-IBLF4B3G.js} +15 -14
- package/dist/{workspace-Z46PUZNI.js → workspace-OB2PKO6N.js} +5 -5
- package/dist/{workspace-binding-JE6YNDZJ.js → workspace-binding-UEFR3SZX.js} +14 -13
- package/dist/{workspace-command-FC4IMLAE.js → workspace-command-JMVE42JJ.js} +99 -103
- package/dist/{workspace-env-N4ZPFT6A.js → workspace-env-D34C7PFJ.js} +16 -16
- package/dist/{workspace-export-3A5BZTPS.js → workspace-export-UHY22VBI.js} +5 -5
- package/dist/{writable-D7KCZI5N.js → writable-2A6MBSFD.js} +4 -4
- package/dist/{xano-LCI7VWPS.js → xano-6T6L7TTI.js} +5 -5
- package/dist/{xanosdk-import-P2A2KSXM.js → xanosdk-import-KACWOZ2Y.js} +6 -6
- package/dist/{xanosdk-project-6AGMW2SL.js → xanosdk-project-PTONYVWE.js} +16 -16
- package/guides/README.md +2 -2
- package/guides/cli.md +69 -0
- package/guides/codegen.md +23 -5
- package/guides/codes.md +5 -1
- package/guides/coverage.md +5 -0
- package/guides/deploying.md +45 -1
- package/guides/scaffold.md +61 -10
- package/llms/errors.md +1 -1
- package/llms/kinds-agent-mcp.md +1 -1
- package/llms-full.txt +3 -3
- package/llms.txt +1 -1
- package/manifest.json +67 -5
- package/package.json +5 -2
- package/skills/xano-backend/SKILL.md +119 -0
- package/dist/chunk-LL7SGTRC.js +0 -663
- package/dist/chunk-M6ZFSTIZ.js +0 -630
- package/dist/env-example-refresh-CQP3ZMKM.js +0 -133
- package/dist/operation-outcome-RN62735X.js +0 -51
- package/dist/promote-command-UYAMUXKB.js +0 -146
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LOOPBACK_HOSTS
|
|
3
|
+
} from "./chunk-LCOCRJ4K.js";
|
|
1
4
|
import {
|
|
2
5
|
readEnvVar
|
|
3
6
|
} from "./chunk-X2NL4KUO.js";
|
|
@@ -6,111 +9,6 @@ import {
|
|
|
6
9
|
import { existsSync, readdirSync } from "fs";
|
|
7
10
|
import { homedir } from "os";
|
|
8
11
|
import { isAbsolute, join, resolve } from "path";
|
|
9
|
-
|
|
10
|
-
// src/deploy/local-engine-handshake.ts
|
|
11
|
-
var LOOPBACK_HOSTS = ["127.0.0.1", "::1", "localhost"];
|
|
12
|
-
var ALLOWED_PROTOCOLS = ["http:", "https:"];
|
|
13
|
-
function isLoopbackUrl(url) {
|
|
14
|
-
let parsed;
|
|
15
|
-
try {
|
|
16
|
-
parsed = new URL(url);
|
|
17
|
-
} catch {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
if (!ALLOWED_PROTOCOLS.includes(parsed.protocol)) return false;
|
|
21
|
-
const host = parsed.hostname.replace(/^\[|\]$/g, "");
|
|
22
|
-
if (!LOOPBACK_HOSTS.includes(host)) return false;
|
|
23
|
-
return /^[0-9]+$/.test(parsed.port);
|
|
24
|
-
}
|
|
25
|
-
function assertLoopbackUrl(url, what) {
|
|
26
|
-
if (isLoopbackUrl(url)) return;
|
|
27
|
-
throw new Error(
|
|
28
|
-
`${what} reports a url this SDK will not send a token to: ${url}
|
|
29
|
-
A Xano Engine has to serve loopback over http on a port of its own \u2014 ${LOOPBACK_HOSTS.join(", ")} \u2014 and anything else is reachable from off this machine. Stop that engine and start a fresh one without binding it to all interfaces.`
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
function requireString(raw, key, source) {
|
|
33
|
-
const value = raw[key];
|
|
34
|
-
if (typeof value !== "string" || value === "") {
|
|
35
|
-
throw new Error(
|
|
36
|
-
`${source} is missing \`${key}\`, or gave it as something other than text.
|
|
37
|
-
That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local update\`.`
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
function requireNumber(raw, key, source) {
|
|
43
|
-
const value = raw[key];
|
|
44
|
-
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
45
|
-
throw new Error(
|
|
46
|
-
`${source} is missing \`${key}\`, or gave it as something other than a number.
|
|
47
|
-
That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local update\`.`
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
function readEngine(value, source) {
|
|
53
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
54
|
-
throw new Error(
|
|
55
|
-
`${source} did not print an engine description.
|
|
56
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
const raw = value;
|
|
60
|
-
return {
|
|
61
|
-
name: requireString(raw, "name", source),
|
|
62
|
-
url: requireString(raw, "url", source),
|
|
63
|
-
workspaceId: requireNumber(raw, "workspace_id", source),
|
|
64
|
-
token: requireString(raw, "access_token", source),
|
|
65
|
-
pid: requireNumber(raw, "pid", source),
|
|
66
|
-
signInUrl: requireString(raw, "sign_in_url", source),
|
|
67
|
-
loginLinkEndpoint: requireString(raw, "login_link_endpoint", source),
|
|
68
|
-
logPath: requireString(raw, "log", source)
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
var HANDSHAKE_SOURCE = "The engine's start handshake";
|
|
72
|
-
var LISTING_SOURCE = "The engine's list of running engines";
|
|
73
|
-
function parseEngineHandshake(stdout) {
|
|
74
|
-
let value;
|
|
75
|
-
try {
|
|
76
|
-
value = JSON.parse(stdout.trim());
|
|
77
|
-
} catch {
|
|
78
|
-
throw new Error(
|
|
79
|
-
`${HANDSHAKE_SOURCE} did not print an engine description.
|
|
80
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
const engine = readEngine(value, HANDSHAKE_SOURCE);
|
|
84
|
-
assertLoopbackUrl(engine.url, "The engine that just started");
|
|
85
|
-
return engine;
|
|
86
|
-
}
|
|
87
|
-
function parseEngineListing(stdout) {
|
|
88
|
-
const text = stdout.trim();
|
|
89
|
-
if (text === "") return [];
|
|
90
|
-
let value;
|
|
91
|
-
try {
|
|
92
|
-
value = JSON.parse(text);
|
|
93
|
-
} catch {
|
|
94
|
-
throw new Error(
|
|
95
|
-
`${LISTING_SOURCE} was not readable.
|
|
96
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
if (!Array.isArray(value)) {
|
|
100
|
-
throw new Error(
|
|
101
|
-
`${LISTING_SOURCE} was not a list.
|
|
102
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
return value.filter((entry) => !isForeignEngine(entry)).map((entry) => readEngine(entry, LISTING_SOURCE));
|
|
106
|
-
}
|
|
107
|
-
function isForeignEngine(entry) {
|
|
108
|
-
if (entry === null || typeof entry !== "object" || Array.isArray(entry)) return false;
|
|
109
|
-
const raw = entry;
|
|
110
|
-
return raw.workspace_id === void 0 && raw.access_token === void 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// src/deploy/local-engine-config.ts
|
|
114
12
|
var SUPPORTED_PLATFORMS = [
|
|
115
13
|
"darwin-arm64",
|
|
116
14
|
"linux-x64",
|
|
@@ -212,11 +110,6 @@ function resolveEngineSource(flagValue, env = process.env, pinned) {
|
|
|
212
110
|
}
|
|
213
111
|
|
|
214
112
|
export {
|
|
215
|
-
LOOPBACK_HOSTS,
|
|
216
|
-
isLoopbackUrl,
|
|
217
|
-
assertLoopbackUrl,
|
|
218
|
-
parseEngineHandshake,
|
|
219
|
-
parseEngineListing,
|
|
220
113
|
SUPPORTED_PLATFORMS,
|
|
221
114
|
resolveEnginePlatform,
|
|
222
115
|
LOCAL_ENGINE_HOME_ENV,
|
|
@@ -234,4 +127,4 @@ export {
|
|
|
234
127
|
engineOverrideFromEnv,
|
|
235
128
|
resolveEngineSource
|
|
236
129
|
};
|
|
237
|
-
//# sourceMappingURL=chunk-
|
|
130
|
+
//# sourceMappingURL=chunk-F3IA3YWI.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
parsePathParams,
|
|
8
8
|
queryKind,
|
|
9
9
|
warnUnboundReturn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OHTHG3LL.js";
|
|
11
11
|
import {
|
|
12
12
|
workspaceKind
|
|
13
13
|
} from "./chunk-6JAEMMZ7.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
encodeMcpOauth,
|
|
17
17
|
refuseUnknown,
|
|
18
18
|
standaloneDefKind
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6ZFJEJXZ.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveAuthRef
|
|
22
22
|
} from "./chunk-45ZUMF4E.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
registerSpec,
|
|
69
69
|
resolveEnumValue,
|
|
70
70
|
throwError
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-6BOKCTCM.js";
|
|
72
72
|
import {
|
|
73
73
|
assertCanonical,
|
|
74
74
|
assertStoredName,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
encodeExpression,
|
|
84
84
|
encodeRuntimeCondition,
|
|
85
85
|
tableKind
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-B5N6EWOM.js";
|
|
87
87
|
import {
|
|
88
88
|
brandDef
|
|
89
89
|
} from "./chunk-ERVIASGL.js";
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
} from "./chunk-WTPZRR4I.js";
|
|
100
100
|
import {
|
|
101
101
|
emitDiagnostic
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-YEH5OIPF.js";
|
|
103
103
|
import {
|
|
104
104
|
lockKey
|
|
105
105
|
} from "./chunk-5KJBWIDZ.js";
|
|
@@ -3058,4 +3058,4 @@ export {
|
|
|
3058
3058
|
serializeBundle,
|
|
3059
3059
|
emitBundle
|
|
3060
3060
|
};
|
|
3061
|
-
//# sourceMappingURL=chunk-
|
|
3061
|
+
//# sourceMappingURL=chunk-F5RPNTN7.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
confirm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HQPL34O6.js";
|
|
4
4
|
import {
|
|
5
5
|
discloseCanonicalMoves,
|
|
6
6
|
movesClause,
|
|
7
7
|
releaseCanonicalMoves
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZEUEYKQ6.js";
|
|
9
9
|
import {
|
|
10
10
|
exportWorkspaceBundle
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QC3MKMDK.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_BRANCH_LABEL,
|
|
14
14
|
deleteBranch,
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
liveBranchLabel,
|
|
18
18
|
requireBranch,
|
|
19
19
|
setLiveBranch
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-75MKIQON.js";
|
|
21
21
|
import {
|
|
22
22
|
sectionKind
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TXPWOFJS.js";
|
|
24
24
|
import {
|
|
25
25
|
assertOneName
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XQO4A4Q4.js";
|
|
27
27
|
import {
|
|
28
28
|
getAccessToken
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JZ4WNPKY.js";
|
|
30
30
|
import {
|
|
31
31
|
pipedYes
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-C2GHFADU.js";
|
|
33
33
|
import {
|
|
34
34
|
contextFlags
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6S263KTM.js";
|
|
36
36
|
import {
|
|
37
37
|
shellWord
|
|
38
38
|
} from "./chunk-FWD7AL6N.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
warn,
|
|
57
57
|
writeJson,
|
|
58
58
|
writeTargetPayload
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-C6KBZH7M.js";
|
|
60
60
|
import {
|
|
61
61
|
suggestAll
|
|
62
62
|
} from "./chunk-UTI5G6OJ.js";
|
|
@@ -139,7 +139,7 @@ async function runBranchCommand(args) {
|
|
|
139
139
|
const workspaceId = auth.workspaceId;
|
|
140
140
|
const target = { baseUrl: auth.instance, workspaceId };
|
|
141
141
|
const { branches, unaddressable } = await listBranchListing(auth, target).catch(async (err) => {
|
|
142
|
-
const { unansweredRead } = await import("./source-resolve-
|
|
142
|
+
const { unansweredRead } = await import("./source-resolve-CI7JQVTM.js");
|
|
143
143
|
throw unansweredRead(err, `list the branches of workspace ${workspaceId}`, "workspace");
|
|
144
144
|
});
|
|
145
145
|
if (verb === "list") {
|
|
@@ -161,7 +161,7 @@ async function runBranchCommand(args) {
|
|
|
161
161
|
const meant = near.map((n) => `Did you mean "${safeText(n)}"? \`xanosdk workspace branch delete ${shellWord(n)}${again}\` deletes it, after asking to confirm.`);
|
|
162
162
|
const branchesLine = known !== "" ? [`Its branches: ${known}.`] : [];
|
|
163
163
|
if (near.length > 0) {
|
|
164
|
-
const { SourceError } = await import("./source-resolve-
|
|
164
|
+
const { SourceError } = await import("./source-resolve-CI7JQVTM.js");
|
|
165
165
|
throw new SourceError([missed, ...meant, ...branchesLine].join("\n"), "gone", "workspace", near[0], near.length > 1 ? near : void 0);
|
|
166
166
|
}
|
|
167
167
|
warn(missed, "branch.not-found", branchesLine);
|
|
@@ -280,7 +280,7 @@ Check what is serving with \`xanosdk workspace branch list${contextFlags()}\`, t
|
|
|
280
280
|
}
|
|
281
281
|
if (args.expectLive !== void 0) {
|
|
282
282
|
const now = await listBranchListing(auth, target).catch(async (err) => {
|
|
283
|
-
const { unansweredRead } = await import("./source-resolve-
|
|
283
|
+
const { unansweredRead } = await import("./source-resolve-CI7JQVTM.js");
|
|
284
284
|
throw unansweredRead(err, `list the branches of workspace ${workspaceId}`, "workspace");
|
|
285
285
|
});
|
|
286
286
|
const drift = liveMismatch(now, args.expectLive);
|
|
@@ -424,4 +424,4 @@ export {
|
|
|
424
424
|
liveBranchMismatch,
|
|
425
425
|
staleSchemaRefs
|
|
426
426
|
};
|
|
427
|
-
//# sourceMappingURL=chunk-
|
|
427
|
+
//# sourceMappingURL=chunk-F647T23K.js.map
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveProjectEntry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LZ2E76UO.js";
|
|
4
4
|
import {
|
|
5
5
|
isUnusablePin,
|
|
6
6
|
readPin,
|
|
7
7
|
writePin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4JKXGPXB.js";
|
|
9
9
|
import {
|
|
10
10
|
ENGINE_RELEASES_URL_ENV,
|
|
11
11
|
EngineReleaseNotFoundError,
|
|
12
12
|
usesCustomReleaseManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HFOGQIII.js";
|
|
14
14
|
import {
|
|
15
15
|
LOCAL_ENGINE_OVERRIDE_ENV,
|
|
16
16
|
engineOverrideFromEnv,
|
|
17
17
|
resolveEnginePlatform,
|
|
18
18
|
resolveEngineSource
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F3IA3YWI.js";
|
|
20
20
|
import {
|
|
21
21
|
ORIGIN_READ_ONLY_BY_REFRESH
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6S263KTM.js";
|
|
23
23
|
import {
|
|
24
24
|
UsageError,
|
|
25
25
|
info,
|
|
26
26
|
warn
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-C6KBZH7M.js";
|
|
28
28
|
|
|
29
29
|
// src/emit/local-engine-choice.ts
|
|
30
30
|
function refuseCredentialFlagsForLocal(args, kinds) {
|
|
@@ -87,7 +87,7 @@ async function chooseLocalEngine(flagValue, dir, machineOutput) {
|
|
|
87
87
|
};
|
|
88
88
|
const platform = resolveEnginePlatform();
|
|
89
89
|
if (platform === void 0) return keep;
|
|
90
|
-
const check = await import("./local-engine-update-check-
|
|
90
|
+
const check = await import("./local-engine-update-check-SKZR7YSC.js");
|
|
91
91
|
const latest = await check.latestKnownVersion({ platform });
|
|
92
92
|
if (latest === void 0) return keep;
|
|
93
93
|
const decision = check.decideUpdate({
|
|
@@ -101,7 +101,7 @@ async function chooseLocalEngine(flagValue, dir, machineOutput) {
|
|
|
101
101
|
info(check.updateNoticeText(pin, latest));
|
|
102
102
|
return keep;
|
|
103
103
|
}
|
|
104
|
-
const { confirm } = await import("./prompt-
|
|
104
|
+
const { confirm } = await import("./prompt-ZZUYWFQX.js");
|
|
105
105
|
const yes = await confirm(check.updatePromptText(pin, latest), {
|
|
106
106
|
flag: "`xanosdk local update`",
|
|
107
107
|
refusal: { details: { updated: false }, rerun: "xanosdk local update" }
|
|
@@ -170,4 +170,4 @@ export {
|
|
|
170
170
|
pinAfterAcquire,
|
|
171
171
|
pinWrittenText
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-FPQBPJPS.js.map
|