@xano/sdk 1.0.4 → 1.0.6
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 +32 -5
- package/README.md +250 -342
- package/dist/.build-fingerprint +1 -1
- package/dist/agent-file-refresh-67QIX45H.js +39 -0
- package/dist/{answer-shape-LVV2SVBK.js → answer-shape-UCDUKPAN.js} +6 -6
- package/dist/{backend-dir-WZADOK3L.js → backend-dir-3LIL6SCT.js} +16 -15
- package/dist/{backend-slot-NSCTWCUX.js → backend-slot-JREP27UD.js} +4 -4
- package/dist/bin.js +59 -58
- package/dist/{branch-ONWPJ4V6.js → branch-2IPHOAYS.js} +10 -10
- package/dist/{branch-commands-ZT2MJIRS.js → branch-commands-KTKAXBAN.js} +31 -32
- package/dist/bundle.js +9 -39
- package/dist/{capture-3JNUA6C2.js → capture-GW5KNKMB.js} +4 -4
- package/dist/{chunk-FPBGAT5D.js → chunk-26MOFAJT.js} +3 -3
- package/dist/{chunk-O7QOWS6M.js → chunk-2FLIJGBZ.js} +12 -12
- package/dist/{chunk-QAEQGT5I.js → chunk-2WBH5HUY.js} +7 -7
- package/dist/{chunk-37AHZ7JX.js → chunk-3BBIDW3Y.js} +6 -6
- package/dist/{chunk-DGWHAVRG.js → chunk-3EDSPMXN.js} +12 -1
- package/dist/{chunk-2AUV6NXK.js → chunk-3II44CUJ.js} +36 -36
- package/dist/{chunk-7GX445AE.js → chunk-4XHAT7C5.js} +2 -2
- package/dist/{chunk-OOXWYAA4.js → chunk-57A5ZKPO.js} +1 -1
- package/dist/{chunk-OOGXZL7Z.js → chunk-5KJBWIDZ.js} +84 -6
- package/dist/{chunk-5YL5OC2G.js → chunk-5QMJOE2K.js} +6 -6
- package/dist/{chunk-3H3EPMFY.js → chunk-5TVFLG3C.js} +2 -2
- package/dist/{chunk-WFMVKY7I.js → chunk-5YQV35C2.js} +9 -9
- package/dist/{chunk-NA3PXMEF.js → chunk-64WWE3EF.js} +1 -1
- package/dist/{chunk-FMOEVAGT.js → chunk-6X3MY2JP.js} +3 -3
- package/dist/{chunk-2LVTBPW2.js → chunk-6X6BJN6Y.js} +3 -3
- package/dist/{chunk-DYG5D3FD.js → chunk-763M6LX3.js} +16 -2
- package/dist/{chunk-EESV6NU2.js → chunk-7FIMUFBP.js} +2 -2
- package/dist/{chunk-CFSFBKHP.js → chunk-7GAIJW62.js} +2 -2
- package/dist/{chunk-6R7S775T.js → chunk-7REDHC4N.js} +2 -2
- package/dist/chunk-7VR4IO5B.js +44 -0
- package/dist/chunk-A7MRZ4GF.js +78 -0
- package/dist/{chunk-D5ZEAF4G.js → chunk-ATJ2W7DC.js} +81 -58
- package/dist/{chunk-BUJRS7XB.js → chunk-AVS4WPPY.js} +2 -2
- package/dist/{chunk-MEE5RZ6G.js → chunk-BL3AZ3AP.js} +2 -2
- package/dist/chunk-BTVUYHWV.js +111 -0
- package/dist/{chunk-T4DUFQ2S.js → chunk-CCU5CCRX.js} +5 -5
- package/dist/{chunk-5T2CTWTB.js → chunk-CHINR7WD.js} +6 -6
- package/dist/{chunk-VD32O6KZ.js → chunk-CJDPSCMX.js} +45 -5
- package/dist/{chunk-3HOGFGKG.js → chunk-D3KEPRRN.js} +2 -2
- package/dist/{chunk-SBR2WZXG.js → chunk-D7BUMOKU.js} +60 -53
- package/dist/{chunk-WRBKLYSJ.js → chunk-DNBP4GJN.js} +4 -3
- package/dist/{chunk-JTUKLCXS.js → chunk-DXUICABI.js} +1 -1
- package/dist/{chunk-XMDDBEEM.js → chunk-E763QI3G.js} +2 -2
- package/dist/{chunk-KTGRGWZW.js → chunk-EADVVTDK.js} +7 -7
- package/dist/{chunk-FJWZ5OVV.js → chunk-ENMBEXOP.js} +3 -3
- package/dist/{chunk-OPHB5ORL.js → chunk-EQFYOOO6.js} +171 -92
- package/dist/{chunk-WOGJB2F6.js → chunk-FNLTFOUD.js} +4 -9
- package/dist/{chunk-II747OWE.js → chunk-FQ53GTII.js} +10 -10
- package/dist/{chunk-JP7M7OU7.js → chunk-FU3VCE5A.js} +46 -27
- package/dist/{chunk-OGBMUST4.js → chunk-GHQ4BVI4.js} +14 -14
- package/dist/{chunk-45YPFB7B.js → chunk-GLY552SI.js} +84 -57
- package/dist/{chunk-QV3GXQRE.js → chunk-GOLFAEUV.js} +2 -2
- package/dist/{chunk-L2GLOJAO.js → chunk-GW5RHGOB.js} +22 -22
- package/dist/{chunk-A6QTTJUI.js → chunk-GWTFI3GA.js} +2 -2
- package/dist/{chunk-MCTIKRMN.js → chunk-GZHLCUZ6.js} +8 -8
- package/dist/{chunk-664LSWE5.js → chunk-HCG7NDIL.js} +4 -4
- package/dist/{chunk-7PMVIHB3.js → chunk-I3H3HCPY.js} +50 -29
- package/dist/{chunk-LIVN53UV.js → chunk-I3VHW6XM.js} +31 -31
- package/dist/{chunk-C4FHQA7R.js → chunk-IF4PEGVD.js} +8 -8
- package/dist/{chunk-WFG67AYS.js → chunk-IMELQ2I6.js} +3 -3
- package/dist/{chunk-3P3HXN76.js → chunk-ITC2R2OT.js} +11 -11
- package/dist/{chunk-W5ONYLOP.js → chunk-IXFJORNH.js} +4 -4
- package/dist/{chunk-HMLGM2MW.js → chunk-IYXL5NYU.js} +260 -32
- package/dist/{chunk-2B22WWKL.js → chunk-JFBRXRJD.js} +59 -35
- package/dist/chunk-JI3BLXWQ.js +107 -0
- package/dist/{chunk-4DJTQ6W4.js → chunk-JIKGT7DO.js} +2 -1
- package/dist/{chunk-O5V3YH5P.js → chunk-JRVQ7M7W.js} +8 -8
- package/dist/{chunk-4APOHK7Y.js → chunk-JXVJGF3Y.js} +2 -2
- package/dist/chunk-KPFS3RGM.js +257 -0
- package/dist/{chunk-PML67X22.js → chunk-LAOMN6QQ.js} +3 -3
- package/dist/{chunk-TTVAHCWP.js → chunk-LBJA7IEM.js} +370 -45
- package/dist/{chunk-KUTFFHUM.js → chunk-LD6ARK3A.js} +2 -2
- package/dist/{chunk-HUSH7LRI.js → chunk-LL7SGTRC.js} +36 -33
- package/dist/{chunk-I2BGYNHD.js → chunk-M5CSVB23.js} +7 -7
- package/dist/{chunk-UCQ2VUTG.js → chunk-M6ZFSTIZ.js} +2 -2
- package/dist/{chunk-MNVDVR3M.js → chunk-MBDFH7XB.js} +4 -4
- package/dist/{chunk-QXTKSOFI.js → chunk-MF4W6FHU.js} +1 -1
- package/dist/{chunk-RX3EMQGN.js → chunk-MFWF2NZJ.js} +12 -5
- package/dist/{chunk-SEUCZZCP.js → chunk-N5I37JFB.js} +3 -3
- package/dist/{chunk-IJ3SXSZM.js → chunk-ND43ZOS3.js} +6 -6
- package/dist/chunk-NDWVJ2QZ.js +67 -0
- package/dist/{chunk-E65QIWOO.js → chunk-NPODGBVJ.js} +4 -4
- package/dist/{chunk-CYB7UQA2.js → chunk-OIKLDDYC.js} +5 -5
- package/dist/{chunk-MLGI2SRQ.js → chunk-PFBXSVZF.js} +4 -4
- package/dist/{chunk-AM4FKL4J.js → chunk-PL7AIAWS.js} +12 -12
- package/dist/{chunk-S7E2AHV3.js → chunk-PMMHSX4H.js} +26 -9
- package/dist/{chunk-WL2DSNJV.js → chunk-Q22BMRPF.js} +2 -2
- package/dist/{chunk-3FN2BIGB.js → chunk-QJM5XZ4K.js} +6 -6
- package/dist/{chunk-EWCDPFW5.js → chunk-QXYMDARD.js} +4 -4
- package/dist/{chunk-MLPDSGJQ.js → chunk-QZEAANWP.js} +5 -5
- package/dist/{chunk-ESZ2FF57.js → chunk-RIN4YY34.js} +88 -74
- package/dist/{chunk-37FBPMNE.js → chunk-S56YBYMN.js} +5 -2
- package/dist/{chunk-CBYQ2ZN3.js → chunk-SKEG3V2V.js} +2 -2
- package/dist/{chunk-4PQHO74B.js → chunk-SLGJIWCY.js} +4 -4
- package/dist/{chunk-IVKRT476.js → chunk-SPITRSOF.js} +2 -2
- package/dist/{chunk-BUECLQXK.js → chunk-SPKA2LV6.js} +4 -4
- package/dist/{chunk-HHW5AWVD.js → chunk-SSITMX7I.js} +30 -30
- package/dist/{chunk-OPG4DYX2.js → chunk-T4LJ5UR2.js} +29 -7
- package/dist/{chunk-LXNQWHZM.js → chunk-TECTL2NU.js} +4 -4
- package/dist/{chunk-E6H5ZEV3.js → chunk-TTEIDD5Q.js} +3 -3
- package/dist/{chunk-6VBTPV2Y.js → chunk-U35MTOXQ.js} +3 -3
- package/dist/{chunk-UKUIUS3E.js → chunk-U6MTGB46.js} +5 -5
- package/dist/{chunk-Y2ZLKBM6.js → chunk-UD2Z7K6W.js} +4 -4
- package/dist/{chunk-IXUPUFCG.js → chunk-UIVMR7UK.js} +2 -2
- package/dist/{chunk-UDE5C2XN.js → chunk-VDHA5SSQ.js} +3 -3
- package/dist/{chunk-5W7DOMIU.js → chunk-VJFMUJWZ.js} +4 -4
- package/dist/{chunk-XNCP4KYO.js → chunk-VQPDATQT.js} +1 -1
- package/dist/{chunk-KCAL4QYP.js → chunk-VW4CWVYX.js} +4 -4
- package/dist/chunk-WAVNUTMT.js +9 -0
- package/dist/{chunk-DIG3NITC.js → chunk-WBH4KJWM.js} +3 -3
- package/dist/{chunk-HSEQYBDO.js → chunk-WZHLMU6T.js} +3 -3
- package/dist/{chunk-WYEQFD6A.js → chunk-XFBGXB7X.js} +173 -105
- package/dist/{chunk-UI4OPTYR.js → chunk-Y453TW6J.js} +2 -2
- package/dist/{chunk-LUTMOHOW.js → chunk-YGLMRH5U.js} +9 -9
- package/dist/{chunk-GPI3OWRE.js → chunk-YHB34BN6.js} +2 -1
- package/dist/{chunk-5WGVIXMD.js → chunk-YKP4ZKVO.js} +14 -10
- package/dist/{chunk-MN2PB6WB.js → chunk-YR2I5HGE.js} +3 -3
- package/dist/{chunk-ZG7E72VI.js → chunk-YYC2DZMG.js} +7 -7
- package/dist/{chunk-D64XUF5Q.js → chunk-YYLUBYXM.js} +16 -16
- package/dist/{chunk-VRVKNY4A.js → chunk-Z4ZGTCCD.js} +8 -8
- package/dist/{chunk-44B4V2LR.js → chunk-ZDP6GDAB.js} +142 -142
- package/dist/{chunk-ET5DSBAC.js → chunk-ZJSTUD6D.js} +8 -8
- package/dist/cli.d.ts +36 -26
- package/dist/cli.js +57 -56
- package/dist/{codegen-command-HTWIW56U.js → codegen-command-R5IASBFC.js} +78 -72
- package/dist/codegen.d.ts +2 -2
- package/dist/codegen.js +2 -2
- package/dist/{commands-CVFYC4GK.js → commands-H7CPMMHH.js} +3 -3
- package/dist/{completion-AUEQC4XJ.js → completion-W5ZAI6TN.js} +12 -12
- package/dist/{config-JU6OQC77.js → config-MZ5KG4EP.js} +5 -5
- package/dist/{deploy-command-5WTFHMBT.js → deploy-command-34T2LKQ5.js} +64 -63
- package/dist/deploy-source-YLQ7WMYR.js +82 -0
- package/dist/{dev-env-sync-X636HLMK.js → dev-env-sync-TMJTNU3U.js} +58 -57
- package/dist/{diagnostics-LSMGB4TY.js → diagnostics-OMN5Y2AH.js} +2 -2
- package/dist/{display-name-hint-DMORHANO.js → display-name-hint-ZJGFNJKQ.js} +12 -12
- package/dist/{emit-hOFbgzde.d.ts → emit-D125xxty.d.ts} +67 -21
- package/dist/env-example-refresh-CQP3ZMKM.js +133 -0
- package/dist/{env-pull-command-WZZ7RL2E.js → env-pull-command-UTG6IC2K.js} +53 -53
- package/dist/{env-target-PO3MOLH5.js → env-target-FZROWYFS.js} +14 -14
- package/dist/{env-var-command-YKTJZFJN.js → env-var-command-VYDBQJJW.js} +51 -50
- package/dist/{ephemeral-BMFY55BQ.js → ephemeral-BIE6FMJV.js} +10 -10
- package/dist/{ephemeral-command-VDSQCOYL.js → ephemeral-command-OZ26RGXF.js} +54 -54
- package/dist/{ephemeral-state-6TY4JIPA.js → ephemeral-state-SNZOX2YK.js} +12 -12
- package/dist/{generate-command-3NTNRQRS.js → generate-command-4HR7MR36.js} +87 -79
- package/dist/{gitignore-FWPEDX6C.js → gitignore-EWQBXNX2.js} +20 -19
- package/dist/{guards-EJU2ONAX.js → guards-KYEOCVHN.js} +7 -7
- package/dist/{hosted-file-PSHJB3HX.js → hosted-file-S7YUQAH6.js} +2 -2
- package/dist/{impersonate-command-QEJA72Q2.js → impersonate-command-WC7OGKUM.js} +44 -43
- package/dist/{import-TBTOTU52.js → import-7Z4GCCPO.js} +6 -6
- package/dist/index.d.ts +14 -20
- package/dist/index.js +14 -14
- package/dist/init-command-HAO3WXH3.js +128 -0
- package/dist/{init-modules-HZRQFRLE.js → init-modules-NSKD4ASY.js} +12 -11
- package/dist/{init-web-Y2PBNJTQ.js → init-web-MKFFOQUU.js} +3 -3
- package/dist/internal.d.ts +5 -5
- package/dist/internal.js +61 -35
- package/dist/{io-ZUKAGFVE.js → io-PGTCBSIQ.js} +7 -5
- package/dist/{keep-data-merge-X5LDDCI3.js → keep-data-merge-QR2TMKEO.js} +33 -34
- package/dist/{lambda-config-reconcile-OUZ4OYAB.js → lambda-config-reconcile-7FJXXV6V.js} +4 -4
- package/dist/{landed-6VO7CX5P.js → landed-F7PCHGCK.js} +4 -4
- package/dist/{landing-record-QYECWLQ5.js → landing-record-MWXFIRCP.js} +26 -25
- package/dist/{live-diff-2S7E3SBZ.js → live-diff-5E2BQWQ7.js} +10 -9
- package/dist/local-engine-choice-VD5LNXJU.js +80 -0
- package/dist/{local-engine-command-HMTQK7MN.js → local-engine-command-RYLGMQ2O.js} +96 -95
- package/dist/{local-engine-config-5U3SC434.js → local-engine-config-W3KB7RWM.js} +2 -2
- package/dist/{local-engine-deploy-TXAOYRGF.js → local-engine-deploy-6O7NKZCA.js} +17 -17
- package/dist/{local-engine-process-6VZ7JJBP.js → local-engine-process-ZLLZEIRF.js} +12 -12
- package/dist/{local-engine-state-TJWPWCC4.js → local-engine-state-OCW5YDD7.js} +3 -3
- package/dist/{local-engine-update-check-R5SPDVEJ.js → local-engine-update-check-LVX4HBBI.js} +8 -8
- package/dist/{lock-TS465GVY.js → lock-HDCHD2ON.js} +5 -3
- package/dist/{lock-commands-4VT3L5W5.js → lock-commands-X2OECR4R.js} +62 -61
- package/dist/{login-command-O6WA4FYL.js → login-command-RLLKD565.js} +31 -30
- package/dist/{logout-command-6CPWGFY2.js → logout-command-XDMSXCDO.js} +17 -17
- package/dist/{loop-UFHKSOQ4.js → loop-SUB6C2LK.js} +9 -10
- package/dist/{marketplace-command-HKACSYKS.js → marketplace-command-2NHHY2X3.js} +89 -53
- package/dist/{marketplace-resolve-KLFYVRWS.js → marketplace-resolve-OTZYT4FG.js} +9 -8
- package/dist/{meta-client-73PX6UGJ.js → meta-client-TMHVBZFY.js} +15 -15
- package/dist/{module-manifest-GIKFNXPE.js → module-manifest-FNMW23IX.js} +7 -4
- package/dist/node.d.ts +5 -5
- package/dist/node.js +63 -63
- package/dist/operation-outcome-RN62735X.js +51 -0
- package/dist/{output-target-SZMBNYF4.js → output-target-MOLCTPBP.js} +21 -20
- package/dist/{package-manager-PRAHUSCN.js → package-manager-K762W7XT.js} +2 -2
- package/dist/{plan-disclosure-BHYG7TZ7.js → plan-disclosure-CY7AF6KP.js} +21 -22
- package/dist/{plugin-contributions-X4V22PJQ.js → plugin-contributions-WR26U7NT.js} +6 -6
- package/dist/{plugin-prompt-DKNQHW6Y.js → plugin-prompt-ZUYQQIX4.js} +5 -5
- package/dist/{plugin-questions-CQRVOWFK.js → plugin-questions-HAZOQ67R.js} +4 -4
- package/dist/plugin.d.ts +254 -10
- package/dist/{preflight-command-EBQ6XQF3.js → preflight-command-OHJXYND3.js} +70 -70
- package/dist/{profile-command-NPKBJYPM.js → profile-command-6JWT2BTL.js} +33 -32
- package/dist/{profile-pointer-UOO7JNFG.js → profile-pointer-PDA5XBIB.js} +5 -5
- package/dist/{profile-select-74TRDEPD.js → profile-select-45G5VPJK.js} +2 -2
- package/dist/{project-dependency-RRMTWOPC.js → project-dependency-GZWWGWEW.js} +13 -10
- package/dist/{project-sdk-FOR4IOXL.js → project-sdk-3W72H5QO.js} +4 -4
- package/dist/promote-command-UYAMUXKB.js +146 -0
- package/dist/{prompt-5GUQTCSP.js → prompt-U37K5RPQ.js} +4 -4
- package/dist/{publish-command-LGLZBOCB.js → publish-command-BUS27HGB.js} +138 -66
- package/dist/pull-command-ZGUNP27P.js +168 -0
- package/dist/{pull-superseded-GGURV5J3.js → pull-superseded-EZBGYRZF.js} +4 -4
- package/dist/{raw-where-EoWl5fqY.d.ts → raw-where-ZMLND6AG.d.ts} +20 -3
- package/dist/release-command-BQ6OHS3P.js +150 -0
- package/dist/{release-ns-command-EIBN3JVM.js → release-ns-command-ATGVBVIU.js} +94 -94
- package/dist/{retry-command-Y5YJGOH3.js → retry-command-QJ57WVW7.js} +9 -9
- package/dist/{routes-manifest-3BNZIVST.js → routes-manifest-YR4ZIMLM.js} +16 -8
- package/dist/routes-manifest-file-UALYSZLY.js +41 -0
- package/dist/scaffold.js +3 -3
- package/dist/{secrets-file-FUG7WCES.js → secrets-file-LMS7KX3E.js} +20 -19
- package/dist/{secrets-fill-command-QEOCUOAY.js → secrets-fill-command-QNBDGCGM.js} +61 -60
- package/dist/{seed-GJHJSEUE.js → seed-SZ6OS5DQ.js} +9 -9
- package/dist/{source-resolve-DMDZVPMM.js → source-resolve-MKLNYFWG.js} +24 -24
- package/dist/{static-host-WM24RG25.js → static-host-ONEHA4LI.js} +10 -10
- package/dist/{status-command-XUH5OGQX.js → status-command-XKIFKBGM.js} +57 -56
- package/dist/{store-CfgPaVPO.d.ts → store-Bg4Na6Sm.d.ts} +4 -4
- package/dist/{store-MR7IKXKK.js → store-X6ZH7EC3.js} +7 -7
- package/dist/sveltekit.d.ts +5 -5
- package/dist/sveltekit.js +1 -1
- package/dist/sync-baseline-DOV5AGIO.js +36 -0
- package/dist/{sync-contributions-DHP7XSTX.js → sync-contributions-HNVHDIQW.js} +21 -13
- package/dist/sync-record-PRXHLK4S.js +42 -0
- package/dist/{table-ZBDPKMNH.js → table-DC36QA4Y.js} +10 -10
- package/dist/{tables-command-X3JK7VSK.js → tables-command-UQLKTELN.js} +44 -43
- package/dist/{tenant-GKXMOYLK.js → tenant-EKNQGG5A.js} +11 -11
- package/dist/{tenant-command-P27EQHBU.js → tenant-command-2LWP2MPB.js} +105 -100
- package/dist/{test-command-A4G2FP7G.js → test-command-IU5MBBXY.js} +44 -43
- package/dist/{tests-C55M5EQS.js → tests-RG2Y5EQ4.js} +7 -7
- package/dist/{token-CMAB35GD.js → token-7AWSJLKO.js} +13 -13
- package/dist/toolchain-hooks-4ZMQLBPQ.js +46 -0
- package/dist/{toolchain-modules-3M7QDJBV.js → toolchain-modules-VU7SURVJ.js} +9 -6
- package/dist/toolchain-peers-CIDNEEQV.js +28 -0
- package/dist/tracked-backend-4BHSV7NC.js +81 -0
- package/dist/{update-check-LNNKIMML.js → update-check-A7FXIINW.js} +60 -59
- package/dist/{upgrade-command-7EUXML3P.js → upgrade-command-C5KBITFI.js} +64 -63
- package/dist/{whoami-command-KNWFWAX6.js → whoami-command-7WQII2H4.js} +16 -16
- package/dist/{workspace-TGPYOODG.js → workspace-Z46PUZNI.js} +6 -6
- package/dist/{workspace-binding-2TWZBHQY.js → workspace-binding-JE6YNDZJ.js} +15 -15
- package/dist/{workspace-command-T7Z2BDHD.js → workspace-command-FC4IMLAE.js} +119 -88
- package/dist/{workspace-env-VA7XN3UX.js → workspace-env-N4ZPFT6A.js} +17 -16
- package/dist/{workspace-export-AIGM6LC7.js → workspace-export-3A5BZTPS.js} +6 -6
- package/dist/{writable-FYJBTJOU.js → writable-D7KCZI5N.js} +4 -4
- package/dist/{xano-BSHYVFSE.js → xano-LCI7VWPS.js} +9 -9
- package/dist/{xanosdk-import-J6SRBZHW.js → xanosdk-import-P2A2KSXM.js} +10 -10
- package/dist/xanosdk-project-6AGMW2SL.js +42 -0
- package/guides/README.md +1 -0
- package/guides/authoring.md +3 -5
- package/guides/bundle.md +45 -0
- package/guides/cli.md +36 -34
- package/guides/codegen.md +5 -4
- package/guides/codes.md +16 -11
- package/guides/deploying.md +115 -58
- package/guides/environment.md +13 -13
- package/guides/marketplace.md +21 -0
- package/guides/module-contract.md +80 -4
- package/guides/project-structure.md +14 -0
- package/guides/typed-frontend.md +37 -0
- package/llms/client.md +14 -5
- package/llms/errors.md +1 -1
- package/llms/filters.md +4 -0
- package/llms/kinds-core.md +1 -1
- package/llms/statements-data.md +3 -2
- package/llms/tests.md +2 -2
- package/llms/toolchain.md +12 -0
- package/llms-full.txt +47 -21
- package/llms.txt +10 -10
- package/manifest.json +110 -107
- package/package.json +4 -4
- package/dist/agent-file-refresh-LB6KIMFY.js +0 -38
- package/dist/chunk-XXZZGXW2.js +0 -243
- package/dist/deploy-source-5CET3A5D.js +0 -81
- package/dist/env-example-refresh-ZO6XAV44.js +0 -127
- package/dist/init-command-27SFBW2F.js +0 -126
- package/dist/local-engine-choice-6BSPEG3E.js +0 -79
- package/dist/operation-outcome-2P4BVSEV.js +0 -51
- package/dist/promote-command-4F2NAE6P.js +0 -141
- package/dist/pull-command-WQFPLITW.js +0 -162
- package/dist/release-command-2OTNVMIL.js +0 -147
- package/dist/toolchain-hooks-BGZBDFAT.js +0 -96
- package/dist/tracked-backend-PZGUWD5J.js +0 -80
- package/dist/xanosdk-project-6KTCO47O.js +0 -41
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chooseLocalEngine,
|
|
3
|
+
explainOverrideFailure,
|
|
4
|
+
pinAfterAcquire,
|
|
5
|
+
pinWrittenText,
|
|
6
|
+
refuseCredentialFlagsForLocal
|
|
7
|
+
} from "./chunk-GW5RHGOB.js";
|
|
8
|
+
import "./chunk-Z4ZGTCCD.js";
|
|
9
|
+
import "./chunk-GOLFAEUV.js";
|
|
10
|
+
import "./chunk-3DRXWLJ5.js";
|
|
11
|
+
import "./chunk-X4DVXBFY.js";
|
|
12
|
+
import "./chunk-YYLUBYXM.js";
|
|
13
|
+
import "./chunk-64WWE3EF.js";
|
|
14
|
+
import "./chunk-OIKLDDYC.js";
|
|
15
|
+
import "./chunk-3II44CUJ.js";
|
|
16
|
+
import "./chunk-GWTFI3GA.js";
|
|
17
|
+
import "./chunk-BL3AZ3AP.js";
|
|
18
|
+
import "./chunk-ITC2R2OT.js";
|
|
19
|
+
import "./chunk-IXFJORNH.js";
|
|
20
|
+
import "./chunk-VW4CWVYX.js";
|
|
21
|
+
import "./chunk-2MNLRIOX.js";
|
|
22
|
+
import "./chunk-Q22BMRPF.js";
|
|
23
|
+
import "./chunk-PL7AIAWS.js";
|
|
24
|
+
import "./chunk-U6MTGB46.js";
|
|
25
|
+
import "./chunk-ZYJP6BOO.js";
|
|
26
|
+
import "./chunk-QO6BVGS5.js";
|
|
27
|
+
import "./chunk-5TVFLG3C.js";
|
|
28
|
+
import "./chunk-SPKA2LV6.js";
|
|
29
|
+
import "./chunk-7GAIJW62.js";
|
|
30
|
+
import "./chunk-6X3MY2JP.js";
|
|
31
|
+
import "./chunk-622HUCZT.js";
|
|
32
|
+
import "./chunk-N5I37JFB.js";
|
|
33
|
+
import "./chunk-TTEIDD5Q.js";
|
|
34
|
+
import "./chunk-LL7SGTRC.js";
|
|
35
|
+
import "./chunk-YYC2DZMG.js";
|
|
36
|
+
import "./chunk-PMMHSX4H.js";
|
|
37
|
+
import "./chunk-ZFDZKNGG.js";
|
|
38
|
+
import "./chunk-FWD7AL6N.js";
|
|
39
|
+
import "./chunk-QJM5XZ4K.js";
|
|
40
|
+
import "./chunk-DXUICABI.js";
|
|
41
|
+
import "./chunk-4KHEMC32.js";
|
|
42
|
+
import "./chunk-ROY4YAEQ.js";
|
|
43
|
+
import "./chunk-MFWF2NZJ.js";
|
|
44
|
+
import "./chunk-DNBP4GJN.js";
|
|
45
|
+
import "./chunk-763M6LX3.js";
|
|
46
|
+
import "./chunk-WAVNUTMT.js";
|
|
47
|
+
import "./chunk-M5CSVB23.js";
|
|
48
|
+
import "./chunk-AWQ7BQTQ.js";
|
|
49
|
+
import "./chunk-EUUUMY7J.js";
|
|
50
|
+
import "./chunk-YR2I5HGE.js";
|
|
51
|
+
import "./chunk-26MOFAJT.js";
|
|
52
|
+
import "./chunk-LLNZGEFK.js";
|
|
53
|
+
import "./chunk-MF4W6FHU.js";
|
|
54
|
+
import "./chunk-X2NL4KUO.js";
|
|
55
|
+
import "./chunk-M6ZFSTIZ.js";
|
|
56
|
+
import "./chunk-3EDSPMXN.js";
|
|
57
|
+
import "./chunk-D7BUMOKU.js";
|
|
58
|
+
import "./chunk-7FIMUFBP.js";
|
|
59
|
+
import "./chunk-H2V3N23D.js";
|
|
60
|
+
import "./chunk-3JDU4VRL.js";
|
|
61
|
+
import "./chunk-YHB34BN6.js";
|
|
62
|
+
import "./chunk-UTI5G6OJ.js";
|
|
63
|
+
import "./chunk-5KJBWIDZ.js";
|
|
64
|
+
import "./chunk-5ZSO4T2G.js";
|
|
65
|
+
import "./chunk-VQPDATQT.js";
|
|
66
|
+
import "./chunk-TFFGOFVZ.js";
|
|
67
|
+
import "./chunk-LL6ED5IB.js";
|
|
68
|
+
import "./chunk-4BW2SG2N.js";
|
|
69
|
+
import "./chunk-4MIV244X.js";
|
|
70
|
+
import "./chunk-OHX6MIUZ.js";
|
|
71
|
+
import "./chunk-36JUQZVQ.js";
|
|
72
|
+
import "./chunk-PZ5AY32C.js";
|
|
73
|
+
export {
|
|
74
|
+
chooseLocalEngine,
|
|
75
|
+
explainOverrideFailure,
|
|
76
|
+
pinAfterAcquire,
|
|
77
|
+
pinWrittenText,
|
|
78
|
+
refuseCredentialFlagsForLocal
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=local-engine-choice-VD5LNXJU.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pinWrittenText
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GW5RHGOB.js";
|
|
4
4
|
import {
|
|
5
5
|
acquireEngine,
|
|
6
6
|
restartMismatchedEngine
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SSITMX7I.js";
|
|
8
8
|
import {
|
|
9
9
|
confirm
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JXVJGF3Y.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveProjectEntry
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-Z4ZGTCCD.js";
|
|
14
|
+
import "./chunk-GOLFAEUV.js";
|
|
15
15
|
import "./chunk-3DRXWLJ5.js";
|
|
16
16
|
import "./chunk-X4DVXBFY.js";
|
|
17
17
|
import {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
stopAllEngines,
|
|
24
24
|
stopEngineNamed,
|
|
25
25
|
stopOrphanedEngineProcesses
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2FLIJGBZ.js";
|
|
27
27
|
import {
|
|
28
28
|
diskBytes,
|
|
29
29
|
listLegacyCacheDirs,
|
|
@@ -32,73 +32,74 @@ import {
|
|
|
32
32
|
readEngineEntry,
|
|
33
33
|
readPin,
|
|
34
34
|
writePin
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-YYLUBYXM.js";
|
|
36
|
+
import "./chunk-64WWE3EF.js";
|
|
37
37
|
import {
|
|
38
38
|
ENGINE_RELEASES_URL_ENV,
|
|
39
39
|
normalizeEngineVersion,
|
|
40
40
|
resolveEngineRelease,
|
|
41
41
|
usesCustomReleaseManager
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OIKLDDYC.js";
|
|
43
43
|
import "./chunk-2TFRR6JV.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-WZHLMU6T.js";
|
|
45
45
|
import {
|
|
46
46
|
NO_CREDENTIAL,
|
|
47
47
|
SourceError,
|
|
48
48
|
resolveSource
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-3II44CUJ.js";
|
|
50
|
+
import "./chunk-GWTFI3GA.js";
|
|
51
|
+
import "./chunk-BL3AZ3AP.js";
|
|
52
|
+
import "./chunk-ITC2R2OT.js";
|
|
53
|
+
import "./chunk-IXFJORNH.js";
|
|
54
|
+
import "./chunk-VW4CWVYX.js";
|
|
55
55
|
import "./chunk-2MNLRIOX.js";
|
|
56
56
|
import {
|
|
57
57
|
clearEngineRecordsNamed,
|
|
58
58
|
clearEngineRecordsStillMatching,
|
|
59
59
|
listEngineRecords
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-Q22BMRPF.js";
|
|
61
61
|
import {
|
|
62
62
|
SUPPORTED_PLATFORMS,
|
|
63
63
|
engineRunHome,
|
|
64
64
|
legacyRuntimeDirs,
|
|
65
65
|
localEngineBinDir,
|
|
66
66
|
resolveEnginePlatform
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-PL7AIAWS.js";
|
|
68
|
+
import "./chunk-U6MTGB46.js";
|
|
69
69
|
import "./chunk-ZYJP6BOO.js";
|
|
70
70
|
import "./chunk-QO6BVGS5.js";
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-5TVFLG3C.js";
|
|
72
|
+
import "./chunk-SPKA2LV6.js";
|
|
73
|
+
import "./chunk-7GAIJW62.js";
|
|
74
74
|
import {
|
|
75
75
|
yesRerun
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-6X3MY2JP.js";
|
|
77
77
|
import "./chunk-622HUCZT.js";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-N5I37JFB.js";
|
|
79
|
+
import "./chunk-TTEIDD5Q.js";
|
|
80
|
+
import "./chunk-LL7SGTRC.js";
|
|
81
|
+
import "./chunk-YYC2DZMG.js";
|
|
82
|
+
import "./chunk-PMMHSX4H.js";
|
|
83
83
|
import "./chunk-ZFDZKNGG.js";
|
|
84
84
|
import "./chunk-FWD7AL6N.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-QJM5XZ4K.js";
|
|
86
|
+
import "./chunk-DXUICABI.js";
|
|
87
87
|
import "./chunk-4KHEMC32.js";
|
|
88
88
|
import "./chunk-ROY4YAEQ.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-MFWF2NZJ.js";
|
|
90
|
+
import "./chunk-DNBP4GJN.js";
|
|
91
|
+
import "./chunk-763M6LX3.js";
|
|
92
|
+
import "./chunk-WAVNUTMT.js";
|
|
93
|
+
import "./chunk-M5CSVB23.js";
|
|
93
94
|
import "./chunk-AWQ7BQTQ.js";
|
|
94
95
|
import "./chunk-EUUUMY7J.js";
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-YR2I5HGE.js";
|
|
97
|
+
import "./chunk-26MOFAJT.js";
|
|
97
98
|
import "./chunk-LLNZGEFK.js";
|
|
98
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-MF4W6FHU.js";
|
|
99
100
|
import "./chunk-X2NL4KUO.js";
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-M6ZFSTIZ.js";
|
|
102
|
+
import "./chunk-3EDSPMXN.js";
|
|
102
103
|
import {
|
|
103
104
|
UsageError,
|
|
104
105
|
detail,
|
|
@@ -111,18 +112,18 @@ import {
|
|
|
111
112
|
unknownSubcommand,
|
|
112
113
|
warn,
|
|
113
114
|
writeJson
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-
|
|
115
|
+
} from "./chunk-D7BUMOKU.js";
|
|
116
|
+
import "./chunk-7FIMUFBP.js";
|
|
116
117
|
import "./chunk-H2V3N23D.js";
|
|
117
118
|
import "./chunk-3JDU4VRL.js";
|
|
118
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-YHB34BN6.js";
|
|
119
120
|
import {
|
|
120
121
|
suggest,
|
|
121
122
|
suggestAll
|
|
122
123
|
} from "./chunk-UTI5G6OJ.js";
|
|
123
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-5KJBWIDZ.js";
|
|
124
125
|
import "./chunk-5ZSO4T2G.js";
|
|
125
|
-
import "./chunk-
|
|
126
|
+
import "./chunk-VQPDATQT.js";
|
|
126
127
|
import "./chunk-TFFGOFVZ.js";
|
|
127
128
|
import "./chunk-LL6ED5IB.js";
|
|
128
129
|
import "./chunk-4BW2SG2N.js";
|
|
@@ -147,7 +148,7 @@ async function runLocalEngineCommand(args, opts = {}) {
|
|
|
147
148
|
case "cache":
|
|
148
149
|
return runCache(args, opts);
|
|
149
150
|
default:
|
|
150
|
-
throw unknownSubcommand("local
|
|
151
|
+
throw unknownSubcommand("local", args.subcommand, args.positionals);
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
154
|
function cachedEngine(env, exclude = /* @__PURE__ */ new Set()) {
|
|
@@ -185,7 +186,7 @@ function startedFrom(record) {
|
|
|
185
186
|
function report(rows, args, orphans = []) {
|
|
186
187
|
if (orphans.length > 0) {
|
|
187
188
|
info(
|
|
188
|
-
`${orphans.length === 1 ? "A process" : `${orphans.length} processes`} a crashed
|
|
189
|
+
`${orphans.length === 1 ? "A process" : `${orphans.length} processes`} a crashed Xano Engine left running (pid ${orphans.join(", ")}) \u2014 \`xanosdk local stop --all\` stops ${orphans.length === 1 ? "it" : "them"}.`
|
|
189
190
|
);
|
|
190
191
|
}
|
|
191
192
|
if (isMachineOutput(args)) {
|
|
@@ -195,7 +196,7 @@ function report(rows, args, orphans = []) {
|
|
|
195
196
|
}
|
|
196
197
|
const s = stdoutStyle();
|
|
197
198
|
if (rows.length === 0) {
|
|
198
|
-
process.stdout.write("No
|
|
199
|
+
process.stdout.write("No Xano Engine is running\n");
|
|
199
200
|
return;
|
|
200
201
|
}
|
|
201
202
|
const lines = rows.map((row) => {
|
|
@@ -212,9 +213,9 @@ function reportMismatches(rows) {
|
|
|
212
213
|
const running = from.startsWith("engine ") ? from : `engine ${from}`;
|
|
213
214
|
warn(
|
|
214
215
|
`${row.name} is running ${running}, but the engine cached here is ${cached}.`,
|
|
215
|
-
"local
|
|
216
|
+
"local.stale",
|
|
216
217
|
[
|
|
217
|
-
`Deploy its project again with \`xanosdk deploy --local
|
|
218
|
+
`Deploy its project again with \`xanosdk deploy --local\` to restart it on that project's pinned engine, or stop it with \`xanosdk local stop ${row.name}\`.`
|
|
218
219
|
]
|
|
219
220
|
);
|
|
220
221
|
}
|
|
@@ -224,22 +225,22 @@ async function runStop(args, opts) {
|
|
|
224
225
|
const name = args.positionals[0];
|
|
225
226
|
if (args.all && name !== void 0 && name !== "") {
|
|
226
227
|
throw new UsageError(
|
|
227
|
-
`\`xanosdk local
|
|
228
|
-
{ hintFor: { command: "local
|
|
228
|
+
`\`xanosdk local stop\` takes a name or \`--all\`, not both \u2014 \`--all\` already covers "${name}". Drop one of them.`,
|
|
229
|
+
{ hintFor: { command: "local", subcommand: "stop" } }
|
|
229
230
|
);
|
|
230
231
|
}
|
|
231
232
|
if (args.all) return runStopAll(args, opts, env);
|
|
232
233
|
if (name === void 0 || name === "") {
|
|
233
234
|
throw new UsageError(
|
|
234
|
-
`\`xanosdk local
|
|
235
|
-
{ hintFor: { command: "local
|
|
235
|
+
`\`xanosdk local stop\` needs the name of an engine, or \`--all\` for every engine xanosdk started on this machine, across projects. Run \`xanosdk local list\` to see them.`,
|
|
236
|
+
{ hintFor: { command: "local", subcommand: "stop" } }
|
|
236
237
|
);
|
|
237
238
|
}
|
|
238
239
|
const assignment = /^([A-Za-z_][A-Za-z0-9_]*)=/.exec(name);
|
|
239
240
|
if (assignment !== null) {
|
|
240
241
|
throw new UsageError(
|
|
241
|
-
`"${assignment[1]}=\u2026" is not a
|
|
242
|
-
{ hintFor: { command: "local
|
|
242
|
+
`"${assignment[1]}=\u2026" is not a Xano Engine name. Run \`xanosdk local list\` to see what is running.`,
|
|
243
|
+
{ hintFor: { command: "local", subcommand: "stop" } }
|
|
243
244
|
);
|
|
244
245
|
}
|
|
245
246
|
return runStopNamed(name, args, opts, env);
|
|
@@ -250,8 +251,8 @@ async function runStopNamed(name, args, opts, env) {
|
|
|
250
251
|
if (!outcome.stopped) {
|
|
251
252
|
info(`"${name}" is not running \u2014 nothing to stop${clearedSuffix(outcome)}.`);
|
|
252
253
|
const nearest = entry === void 0 ? void 0 : nearestRunning(name, entry, env, opts);
|
|
253
|
-
if (nearest !== void 0) detail(`Did you mean \`${nearest}\`? It is running: \`xanosdk local
|
|
254
|
-
else detail("Run `xanosdk local
|
|
254
|
+
if (nearest !== void 0) detail(`Did you mean \`${nearest}\`? It is running: \`xanosdk local stop ${nearest}\`.`);
|
|
255
|
+
else detail("Run `xanosdk local list` to see what is running.");
|
|
255
256
|
if (isMachineOutput(args)) writeJson({ ...outcome, alreadyStopped: true, ...nearest === void 0 ? {} : { suggestion: nearest } });
|
|
256
257
|
return;
|
|
257
258
|
}
|
|
@@ -287,25 +288,25 @@ function reportOrphanSweep(orphans) {
|
|
|
287
288
|
const n = orphans.stopped.length;
|
|
288
289
|
if (n > 0) {
|
|
289
290
|
success(
|
|
290
|
-
`Stopped ${n} process${n === 1 ? "" : "es"} a crashed
|
|
291
|
+
`Stopped ${n} process${n === 1 ? "" : "es"} a crashed Xano Engine left running (pid ${orphans.stopped.join(", ")}).`
|
|
291
292
|
);
|
|
292
293
|
}
|
|
293
294
|
if (orphans.stillRunning.length > 0) {
|
|
294
295
|
detail(
|
|
295
|
-
`Still exiting after the wait: pid ${orphans.stillRunning.join(", ")} \u2014 run \`xanosdk local
|
|
296
|
+
`Still exiting after the wait: pid ${orphans.stillRunning.join(", ")} \u2014 run \`xanosdk local stop --all\` again in a moment.`
|
|
296
297
|
);
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
function reportStopAll(outcome, staleProjects, args) {
|
|
300
301
|
for (const stop of outcome.stopped) {
|
|
301
302
|
if (stop.stopped) success(`Stopped ${stop.name}${clearedSuffix(stop)}`);
|
|
302
|
-
else warn(`${stop.name} was listed as running but did not stop${clearedSuffix(stop)}.`, "local
|
|
303
|
+
else warn(`${stop.name} was listed as running but did not stop${clearedSuffix(stop)}.`, "local.stop-failed");
|
|
303
304
|
}
|
|
304
305
|
if (outcome.foreign.length > 0) {
|
|
305
306
|
warn(
|
|
306
307
|
`Left running, not started by xanosdk: ${outcome.foreign.join(", ")}`,
|
|
307
|
-
"local
|
|
308
|
-
["Name one explicitly \u2014 `xanosdk local
|
|
308
|
+
"local.foreign",
|
|
309
|
+
["Name one explicitly \u2014 `xanosdk local stop <name>` \u2014 to stop it anyway."]
|
|
309
310
|
);
|
|
310
311
|
}
|
|
311
312
|
reportOrphanSweep(outcome.orphans);
|
|
@@ -314,7 +315,7 @@ function reportStopAll(outcome, staleProjects, args) {
|
|
|
314
315
|
}
|
|
315
316
|
const swept = outcome.orphans.stopped.length + outcome.orphans.stillRunning.length;
|
|
316
317
|
if (outcome.stopped.length === 0 && outcome.foreign.length === 0 && swept === 0) {
|
|
317
|
-
info("No
|
|
318
|
+
info("No Xano Engine is running \u2014 nothing to stop.");
|
|
318
319
|
}
|
|
319
320
|
if (isMachineOutput(args)) {
|
|
320
321
|
writeJson({ ...outcome, staleProjects, alreadyStopped: outcome.stopped.length === 0 && swept === 0 });
|
|
@@ -342,20 +343,20 @@ async function resolveLiveEngine(named, opts, doing) {
|
|
|
342
343
|
if (entry === void 0) {
|
|
343
344
|
throw new SourceError(
|
|
344
345
|
`No engine is cached on this machine, so there is nothing here to ${doing}.
|
|
345
|
-
Run \`xanosdk deploy --local
|
|
346
|
+
Run \`xanosdk deploy --local\` to fetch one if you meant to use a Xano Engine.`,
|
|
346
347
|
"gone",
|
|
347
|
-
"local
|
|
348
|
+
"local"
|
|
348
349
|
);
|
|
349
350
|
}
|
|
350
351
|
const resolved = await resolveSource(
|
|
351
|
-
named === void 0 || named === "" ? { kind: "local
|
|
352
|
+
named === void 0 || named === "" ? { kind: "local" } : { kind: "local", name: named },
|
|
352
353
|
NO_CREDENTIAL,
|
|
353
354
|
// A lifecycle verb manages the engine itself; "deploy still reaches an
|
|
354
355
|
// ephemeral" answers a question nobody running it asked.
|
|
355
356
|
// The name is this verb's bare positional, so a near one is suggested bare.
|
|
356
357
|
{ env, listEngines: () => listEngines({ entry, env, run: opts.run }), deployFallback: false, bareName: true }
|
|
357
358
|
);
|
|
358
|
-
if (resolved.backend.kind !== "local") throw new Error("Internal: a
|
|
359
|
+
if (resolved.backend.kind !== "local") throw new Error("Internal: a Xano Engine resolved to a hosted backend.");
|
|
359
360
|
return resolved.backend.engine;
|
|
360
361
|
}
|
|
361
362
|
async function runUpdate(args, opts) {
|
|
@@ -367,7 +368,7 @@ async function runUpdate(args, opts) {
|
|
|
367
368
|
Unset it to move the pin, or keep deploying with it set to run that manager's latest.`
|
|
368
369
|
);
|
|
369
370
|
}
|
|
370
|
-
const read = readPin(dir, { warn: (message) => warn(message, "local
|
|
371
|
+
const read = readPin(dir, { warn: (message) => warn(message, "local.pin-unusable") });
|
|
371
372
|
if (read === void 0 && resolveProjectEntry(dir) === void 0) {
|
|
372
373
|
throw new Error(
|
|
373
374
|
`No package.json in ${dir}, and it is not a Xano SDK project, so there is no engine pin to move.
|
|
@@ -400,19 +401,19 @@ Run this from the project's root.`
|
|
|
400
401
|
...opts.spawn === void 0 ? {} : { spawn: opts.spawn }
|
|
401
402
|
});
|
|
402
403
|
const devEnv = replaced === void 0 ? void 0 : await repointDevEnvAfterRestart(dir, replaced);
|
|
403
|
-
success(`
|
|
404
|
+
success(`Xano Engine ${current ?? "(unpinned)"} \u2192 ${target}`);
|
|
404
405
|
info(pinWrittenText({ path: pin.path, version: target, created: pin.created, moved: current !== null }));
|
|
405
406
|
if (replaced !== void 0) {
|
|
406
407
|
info(`Restarted ${replaced.name} on ${target}. It starts empty \u2014 run your deploy to seed it.`);
|
|
407
408
|
if (replaced.url !== replaced.previousUrl) {
|
|
408
|
-
info("New
|
|
409
|
+
info("New Xano Engine URL:");
|
|
409
410
|
link(replaced.url);
|
|
410
411
|
}
|
|
411
412
|
if (devEnv !== void 0) {
|
|
412
413
|
detail(`Pointed ${devEnv.label} at the restarted engine (${devEnv.variable}) \u2014 restart your dev server to pick it up.`);
|
|
413
414
|
}
|
|
414
415
|
} else {
|
|
415
|
-
detail(`No engine is running for this project; the next \`xanosdk deploy --local
|
|
416
|
+
detail(`No engine is running for this project; the next \`xanosdk deploy --local\` starts ${target}.`);
|
|
416
417
|
}
|
|
417
418
|
if (isMachineOutput(args)) {
|
|
418
419
|
writeJson({
|
|
@@ -427,7 +428,7 @@ Run this from the project's root.`
|
|
|
427
428
|
}
|
|
428
429
|
async function repointDevEnvAfterRestart(dir, restarted) {
|
|
429
430
|
if (restarted.previousUrl === void 0) return void 0;
|
|
430
|
-
const { repointDevEnv } = await import("./dev-env-sync-
|
|
431
|
+
const { repointDevEnv } = await import("./dev-env-sync-TMJTNU3U.js");
|
|
431
432
|
try {
|
|
432
433
|
return repointDevEnv(dir, restarted.previousUrl, restarted.url);
|
|
433
434
|
} catch (err) {
|
|
@@ -443,14 +444,14 @@ async function requestedEngineVersion(requested, opts, env, purpose) {
|
|
|
443
444
|
const clearing = purpose === "clear";
|
|
444
445
|
throw new UsageError(
|
|
445
446
|
(err instanceof Error ? err.message : String(err)) + (clearing ? " `cache clear` also takes `override`, or an override's `src-\u2026` id from `cache list`." : ""),
|
|
446
|
-
{ hintFor: { command: "local
|
|
447
|
+
{ hintFor: { command: "local", subcommand: clearing ? "cache" : "update" } }
|
|
447
448
|
);
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
451
|
const platform = resolveEnginePlatform(opts.platform ?? process.platform, opts.arch ?? process.arch);
|
|
451
452
|
if (platform === void 0) {
|
|
452
453
|
throw new Error(
|
|
453
|
-
`There is no
|
|
454
|
+
`There is no Xano Engine build for ${opts.platform ?? process.platform} ${opts.arch ?? process.arch} \u2014 it runs on ${SUPPORTED_PLATFORMS.join(", ")} and nothing else, so there is no engine to ${purpose}. \`xanosdk deploy --ephemeral\` reaches an ephemeral from anywhere.`
|
|
454
455
|
);
|
|
455
456
|
}
|
|
456
457
|
const fetch = opts.fetch === void 0 ? {} : { fetch: opts.fetch };
|
|
@@ -462,23 +463,23 @@ async function runCache(args, opts) {
|
|
|
462
463
|
if (action === "list") {
|
|
463
464
|
if (args.engineVersion !== void 0) {
|
|
464
465
|
throw new UsageError(
|
|
465
|
-
"`xanosdk local
|
|
466
|
-
{ helpFor: { command: "local
|
|
466
|
+
"`xanosdk local cache list` takes no `--version` \u2014 it lists every cached engine. `cache clear --version <v>` is the one that takes it.",
|
|
467
|
+
{ helpFor: { command: "local", subcommand: "cache" } }
|
|
467
468
|
);
|
|
468
469
|
}
|
|
469
470
|
if (args.legacyRuntime) {
|
|
470
471
|
throw new UsageError(
|
|
471
|
-
"`xanosdk local
|
|
472
|
-
{ helpFor: { command: "local
|
|
472
|
+
"`xanosdk local cache list` takes no `--legacy-runtime` \u2014 it lists the earlier runtime copy when there is one. `cache clear --legacy-runtime` is the one that takes it.",
|
|
473
|
+
{ helpFor: { command: "local", subcommand: "cache" } }
|
|
473
474
|
);
|
|
474
475
|
}
|
|
475
476
|
return runCacheList(args, opts);
|
|
476
477
|
}
|
|
477
478
|
if (action === "clear") return runCacheClear(args, opts);
|
|
478
479
|
throw new UsageError(
|
|
479
|
-
`\`xanosdk local
|
|
480
|
+
`\`xanosdk local cache\`: ${action === void 0 || action === "" ? "no action given" : `unknown action "${action}"`} \u2014 it takes ${CACHE_ACTIONS.join(" or ")}.`,
|
|
480
481
|
{
|
|
481
|
-
helpFor: { command: "local
|
|
482
|
+
helpFor: { command: "local", subcommand: "cache" },
|
|
482
483
|
suggestion: action === void 0 ? void 0 : suggest(action, CACHE_ACTIONS)
|
|
483
484
|
}
|
|
484
485
|
);
|
|
@@ -506,7 +507,7 @@ async function runCacheList(args, opts) {
|
|
|
506
507
|
const runtime = runtimeRows(env);
|
|
507
508
|
if (entries.length === 0 && legacy.length === 0 && runtime.length === 0) {
|
|
508
509
|
if (isMachineOutput(args)) writeJson({ entries: [] });
|
|
509
|
-
else info("No
|
|
510
|
+
else info("No Xano Engine is cached \u2014 `xanosdk deploy --local` fetches one.");
|
|
510
511
|
return;
|
|
511
512
|
}
|
|
512
513
|
let running = [];
|
|
@@ -515,7 +516,7 @@ async function runCacheList(args, opts) {
|
|
|
515
516
|
try {
|
|
516
517
|
running = listEngines({ entry: binary, env, ...opts.run === void 0 ? {} : { run: opts.run } });
|
|
517
518
|
} catch (err) {
|
|
518
|
-
warn(`Could not list running engines, so none are shown: ${err.message.split("\n")[0]}`, "local
|
|
519
|
+
warn(`Could not list running engines, so none are shown: ${err.message.split("\n")[0]}`, "local.list-failed");
|
|
519
520
|
}
|
|
520
521
|
}
|
|
521
522
|
const using = enginesByDigest(running, env);
|
|
@@ -558,14 +559,14 @@ async function runCacheList(args, opts) {
|
|
|
558
559
|
});
|
|
559
560
|
printHuman(lines.join("\n") + "\n");
|
|
560
561
|
if (legacy.length > 0) {
|
|
561
|
-
detail("Old-layout directories are never run \u2014 `xanosdk local
|
|
562
|
+
detail("Old-layout directories are never run \u2014 `xanosdk local cache clear` removes them.");
|
|
562
563
|
}
|
|
563
564
|
if (runtime.some((r) => r.source === "runtime")) {
|
|
564
|
-
detail("The unpacked runtime is what the engines run from \u2014 `xanosdk local
|
|
565
|
+
detail("The unpacked runtime is what the engines run from \u2014 `xanosdk local cache clear` removes it with the engines.");
|
|
565
566
|
}
|
|
566
567
|
if (runtime.some((r) => r.source === "legacy-runtime")) {
|
|
567
568
|
detail(
|
|
568
|
-
"An earlier runtime copy was left in your own cache directory by an earlier version, and nothing runs from it \u2014 `xanosdk local
|
|
569
|
+
"An earlier runtime copy was left in your own cache directory by an earlier version, and nothing runs from it \u2014 `xanosdk local cache clear --legacy-runtime` removes it."
|
|
569
570
|
);
|
|
570
571
|
}
|
|
571
572
|
}
|
|
@@ -594,7 +595,7 @@ async function runCacheClear(args, opts) {
|
|
|
594
595
|
if (hits.length === 0) {
|
|
595
596
|
const cached = cachedEntries(env).map(entryLabel);
|
|
596
597
|
const near = requested === "override" ? [] : suggestAll(label ?? requested ?? "", cached.filter((c) => !c.startsWith("override")));
|
|
597
|
-
const clear = (v) => `\`xanosdk local
|
|
598
|
+
const clear = (v) => `\`xanosdk local cache clear --version ${v}\``;
|
|
598
599
|
info(
|
|
599
600
|
`${requested === "override" ? "No override engine is cached" : `${label} is not cached`} \u2014 nothing to clear. ` + (cached.length === 0 ? "No engine is cached." : `Cached: ${cached.join(", ")}.`) + (near.length === 0 ? "" : ` Did you mean ${near.join(" or ")}? ${near.map(clear).join(" or ")}.`)
|
|
600
601
|
);
|
|
@@ -647,7 +648,7 @@ async function runCacheClear(args, opts) {
|
|
|
647
648
|
const bytesFreed = items.reduce((sum, item) => sum + item.bytes, 0);
|
|
648
649
|
for (const stop of stopped) {
|
|
649
650
|
if (stop.stopped) success(`Stopped ${stop.name} \u2014 it ran on an engine being removed`);
|
|
650
|
-
else warn(`${stop.name} was listed as running but did not stop. Stop it with \`xanosdk local
|
|
651
|
+
else warn(`${stop.name} was listed as running but did not stop. Stop it with \`xanosdk local stop ${stop.name}\`.`, "local.stop-failed");
|
|
651
652
|
}
|
|
652
653
|
const what = [
|
|
653
654
|
...removed.length === 0 ? [] : [label ?? `${removed.length} cached engine director${removed.length === 1 ? "y" : "ies"}`],
|
|
@@ -664,12 +665,12 @@ async function runCacheClear(args, opts) {
|
|
|
664
665
|
}
|
|
665
666
|
if (runtimeBytes > 0 && !runtimeRemoved) {
|
|
666
667
|
warn(
|
|
667
|
-
`Kept the unpacked runtime (${formatBytes(runtimeBytes)}): ${stillRunning.join(", ")} ${stillRunning.length === 1 ? "is" : "are"} still running on it. Stop every engine (\`xanosdk local
|
|
668
|
-
"local
|
|
668
|
+
`Kept the unpacked runtime (${formatBytes(runtimeBytes)}): ${stillRunning.join(", ")} ${stillRunning.length === 1 ? "is" : "are"} still running on it. Stop every engine (\`xanosdk local stop --all\`), then run \`xanosdk local cache clear\` again.`,
|
|
669
|
+
"local.runtime-kept"
|
|
669
670
|
);
|
|
670
671
|
}
|
|
671
672
|
if (stopped.length > 0) {
|
|
672
|
-
detail("The next `xanosdk deploy --local
|
|
673
|
+
detail("The next `xanosdk deploy --local` fetches its engine again and restarts it.");
|
|
673
674
|
}
|
|
674
675
|
if (isMachineOutput(args)) {
|
|
675
676
|
writeJson({ stopped: stopped.map((o) => o.name), removed, runtimeRemoved, items, bytesFreed, alreadyGone: false });
|
|
@@ -687,7 +688,7 @@ function enginesStillRunning(env, run) {
|
|
|
687
688
|
async function clearLegacyRuntime(args, env) {
|
|
688
689
|
if (args.engineVersion !== void 0) {
|
|
689
690
|
throw new UsageError("`--legacy-runtime` clears the earlier runtime copy, not a cached version \u2014 drop `--version`.", {
|
|
690
|
-
hintFor: { command: "local
|
|
691
|
+
hintFor: { command: "local", subcommand: "cache" }
|
|
691
692
|
});
|
|
692
693
|
}
|
|
693
694
|
const dirs = legacyRuntimeDirs(env);
|
|
@@ -700,7 +701,7 @@ async function clearLegacyRuntime(args, env) {
|
|
|
700
701
|
if (!args.yes) {
|
|
701
702
|
const ok = await confirm(`Delete ${dirs.join(", ")} (${formatBytes(bytes)}), the runtime copy an earlier version left?`, {
|
|
702
703
|
flag: "--yes",
|
|
703
|
-
refusal: { details: { removed: [], bytesFreed: 0 }, ...yesRerun(args, "local
|
|
704
|
+
refusal: { details: { removed: [], bytesFreed: 0 }, ...yesRerun(args, "local cache clear --legacy-runtime") }
|
|
704
705
|
});
|
|
705
706
|
if (!ok) {
|
|
706
707
|
info("Nothing was deleted.");
|
|
@@ -724,8 +725,8 @@ function stopEnginesOn(doomed, everything, env, run) {
|
|
|
724
725
|
} catch (err) {
|
|
725
726
|
warn(
|
|
726
727
|
`Could not list running engines, so none were stopped: ${err.message.split("\n")[0]}
|
|
727
|
-
Any engine still running on a removed version keeps running \u2014 stop it with \`xanosdk local
|
|
728
|
-
"local
|
|
728
|
+
Any engine still running on a removed version keeps running \u2014 stop it with \`xanosdk local stop <name>\`.`,
|
|
729
|
+
"local.list-failed"
|
|
729
730
|
);
|
|
730
731
|
return [];
|
|
731
732
|
}
|
|
@@ -758,4 +759,4 @@ export {
|
|
|
758
759
|
runLocalEngineCommand,
|
|
759
760
|
sweepOptions
|
|
760
761
|
};
|
|
761
|
-
//# sourceMappingURL=local-engine-command-
|
|
762
|
+
//# sourceMappingURL=local-engine-command-RYLGMQ2O.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
localEngineHome,
|
|
16
16
|
resolveEnginePlatform,
|
|
17
17
|
resolveEngineSource
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PL7AIAWS.js";
|
|
19
19
|
import "./chunk-X2NL4KUO.js";
|
|
20
20
|
import "./chunk-PZ5AY32C.js";
|
|
21
21
|
export {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
resolveEnginePlatform,
|
|
37
37
|
resolveEngineSource
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=local-engine-config-
|
|
39
|
+
//# sourceMappingURL=local-engine-config-W3KB7RWM.js.map
|
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
ensureProjectEngine,
|
|
4
4
|
explainUnsupportedEngineImport,
|
|
5
5
|
restartMismatchedEngine
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-SSITMX7I.js";
|
|
7
|
+
import "./chunk-2FLIJGBZ.js";
|
|
8
|
+
import "./chunk-YYLUBYXM.js";
|
|
9
|
+
import "./chunk-64WWE3EF.js";
|
|
10
|
+
import "./chunk-OIKLDDYC.js";
|
|
11
11
|
import "./chunk-2TFRR6JV.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WZHLMU6T.js";
|
|
13
|
+
import "./chunk-BL3AZ3AP.js";
|
|
14
|
+
import "./chunk-Q22BMRPF.js";
|
|
15
|
+
import "./chunk-PL7AIAWS.js";
|
|
16
16
|
import "./chunk-ZYJP6BOO.js";
|
|
17
17
|
import "./chunk-QO6BVGS5.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DXUICABI.js";
|
|
19
|
+
import "./chunk-M5CSVB23.js";
|
|
20
20
|
import "./chunk-AWQ7BQTQ.js";
|
|
21
21
|
import "./chunk-EUUUMY7J.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-YR2I5HGE.js";
|
|
23
|
+
import "./chunk-26MOFAJT.js";
|
|
24
24
|
import "./chunk-LLNZGEFK.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-MF4W6FHU.js";
|
|
26
26
|
import "./chunk-X2NL4KUO.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-D7BUMOKU.js";
|
|
28
|
+
import "./chunk-YHB34BN6.js";
|
|
29
29
|
import "./chunk-UTI5G6OJ.js";
|
|
30
30
|
import "./chunk-5ZSO4T2G.js";
|
|
31
31
|
import "./chunk-TFFGOFVZ.js";
|
|
@@ -37,4 +37,4 @@ export {
|
|
|
37
37
|
explainUnsupportedEngineImport,
|
|
38
38
|
restartMismatchedEngine
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=local-engine-deploy-
|
|
40
|
+
//# sourceMappingURL=local-engine-deploy-6O7NKZCA.js.map
|