@xano/sdk 1.0.4 → 1.0.5
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 +17 -5
- package/README.md +232 -334
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-LB6KIMFY.js → agent-file-refresh-KVLR7M5Y.js} +13 -13
- package/dist/{answer-shape-LVV2SVBK.js → answer-shape-XGR2DGWY.js} +5 -5
- package/dist/{backend-dir-WZADOK3L.js → backend-dir-IE4RMUFH.js} +12 -12
- package/dist/{backend-slot-NSCTWCUX.js → backend-slot-6HBWG5FN.js} +3 -3
- package/dist/bin.js +52 -52
- package/dist/{branch-ONWPJ4V6.js → branch-T2APKPVG.js} +9 -9
- package/dist/{branch-commands-ZT2MJIRS.js → branch-commands-HXXTCSOO.js} +26 -26
- package/dist/{capture-3JNUA6C2.js → capture-HBXFXZEW.js} +4 -4
- package/dist/{chunk-A6QTTJUI.js → chunk-3BJYQGAZ.js} +2 -2
- package/dist/{chunk-5W7DOMIU.js → chunk-3IYVHVM6.js} +2 -2
- package/dist/{chunk-S7E2AHV3.js → chunk-3VX7VAQT.js} +4 -4
- package/dist/{chunk-Y2ZLKBM6.js → chunk-3WHWOKU4.js} +4 -4
- package/dist/{chunk-LXNQWHZM.js → chunk-44CWK6YC.js} +3 -3
- package/dist/{chunk-KCAL4QYP.js → chunk-4GDEEY2U.js} +4 -4
- package/dist/{chunk-KTGRGWZW.js → chunk-4NEBBKOP.js} +7 -7
- package/dist/{chunk-UKUIUS3E.js → chunk-4QBGE3EO.js} +5 -5
- package/dist/{chunk-IVKRT476.js → chunk-4QFBEKXI.js} +2 -2
- package/dist/{chunk-OOXWYAA4.js → chunk-57A5ZKPO.js} +1 -1
- package/dist/{chunk-2B22WWKL.js → chunk-57B56I4B.js} +29 -29
- package/dist/{chunk-OPHB5ORL.js → chunk-57HMNJGB.js} +120 -76
- package/dist/{chunk-O5V3YH5P.js → chunk-5D6DGF3W.js} +8 -8
- package/dist/{chunk-E65QIWOO.js → chunk-5RLAF6RL.js} +4 -4
- package/dist/{chunk-MEE5RZ6G.js → chunk-5XVBT6CQ.js} +2 -2
- package/dist/{chunk-RX3EMQGN.js → chunk-5YBNXNKU.js} +2 -2
- package/dist/{chunk-NA3PXMEF.js → chunk-64WWE3EF.js} +1 -1
- package/dist/{chunk-2LVTBPW2.js → chunk-65SW2BA5.js} +3 -3
- package/dist/{chunk-ET5DSBAC.js → chunk-7DBM6XHR.js} +8 -8
- package/dist/{chunk-DIG3NITC.js → chunk-A4NNCI4O.js} +3 -3
- package/dist/{chunk-4APOHK7Y.js → chunk-AESE434J.js} +2 -2
- package/dist/{chunk-E6H5ZEV3.js → chunk-AGD7F7YI.js} +3 -3
- package/dist/{chunk-44B4V2LR.js → chunk-AGSCOISO.js} +139 -139
- package/dist/{chunk-MLGI2SRQ.js → chunk-AMBEITWL.js} +4 -4
- package/dist/{chunk-5T2CTWTB.js → chunk-BBPAXOU6.js} +5 -5
- package/dist/{chunk-5WGVIXMD.js → chunk-BMCZQZMI.js} +4 -4
- package/dist/{chunk-LUTMOHOW.js → chunk-CJ76PSJT.js} +9 -9
- package/dist/{chunk-D5ZEAF4G.js → chunk-CV54PASI.js} +53 -50
- package/dist/{chunk-MLPDSGJQ.js → chunk-DEVGLLNZ.js} +5 -5
- package/dist/{chunk-JTUKLCXS.js → chunk-DXUICABI.js} +1 -1
- package/dist/{chunk-C4FHQA7R.js → chunk-ES5A66IH.js} +8 -8
- package/dist/{chunk-UDE5C2XN.js → chunk-F3557PVM.js} +3 -3
- package/dist/{chunk-HUSH7LRI.js → chunk-F6IKWAIU.js} +21 -17
- package/dist/{chunk-II747OWE.js → chunk-FV55SRQU.js} +7 -7
- package/dist/{chunk-SEUCZZCP.js → chunk-G57RYMKB.js} +3 -3
- package/dist/{chunk-MNVDVR3M.js → chunk-GMVW6ZZK.js} +4 -4
- package/dist/{chunk-MN2PB6WB.js → chunk-HLQH3AXB.js} +3 -3
- package/dist/{chunk-HSEQYBDO.js → chunk-HOOOOJJP.js} +3 -3
- package/dist/{chunk-IXUPUFCG.js → chunk-I5VEROXW.js} +2 -2
- package/dist/{chunk-UI4OPTYR.js → chunk-IV446ZLJ.js} +2 -2
- package/dist/{chunk-CYB7UQA2.js → chunk-JQOX6HW4.js} +5 -5
- package/dist/{chunk-OPG4DYX2.js → chunk-JSEVKRVJ.js} +3 -3
- package/dist/{chunk-2AUV6NXK.js → chunk-JXKO6JT7.js} +36 -36
- package/dist/{chunk-FPBGAT5D.js → chunk-JZWUAEMO.js} +3 -3
- package/dist/{chunk-6R7S775T.js → chunk-K6CB5TKM.js} +2 -2
- package/dist/{chunk-MCTIKRMN.js → chunk-K6PRKPFX.js} +8 -8
- package/dist/{chunk-W5ONYLOP.js → chunk-KQLACS4Q.js} +4 -4
- package/dist/{chunk-LIVN53UV.js → chunk-KUU7T4ZE.js} +31 -31
- package/dist/{chunk-WFMVKY7I.js → chunk-L3BDO2BI.js} +9 -9
- package/dist/{chunk-664LSWE5.js → chunk-LLS2WO2K.js} +4 -4
- package/dist/{chunk-ESZ2FF57.js → chunk-LZDA6SVD.js} +46 -45
- package/dist/{chunk-UCQ2VUTG.js → chunk-M6ZFSTIZ.js} +2 -2
- package/dist/{chunk-DYG5D3FD.js → chunk-M7GJ6YUF.js} +2 -2
- package/dist/{chunk-XXZZGXW2.js → chunk-MEIJDRHU.js} +2 -2
- package/dist/{chunk-QXTKSOFI.js → chunk-MF4W6FHU.js} +1 -1
- package/dist/{chunk-3FN2BIGB.js → chunk-MYLPOVX6.js} +6 -6
- package/dist/{chunk-FJWZ5OVV.js → chunk-N6BWB35H.js} +3 -3
- package/dist/{chunk-T4DUFQ2S.js → chunk-NGAODDLX.js} +5 -5
- package/dist/{chunk-7PMVIHB3.js → chunk-NNB7VUCH.js} +23 -23
- package/dist/{chunk-6VBTPV2Y.js → chunk-NUU76247.js} +3 -3
- package/dist/{chunk-ZG7E72VI.js → chunk-OGUMHW2X.js} +6 -6
- package/dist/{chunk-I2BGYNHD.js → chunk-OJPZEUPH.js} +7 -7
- package/dist/{chunk-OOGXZL7Z.js → chunk-OKNE3TWU.js} +2 -2
- package/dist/{chunk-KUTFFHUM.js → chunk-OVV2HXJ6.js} +2 -2
- package/dist/{chunk-VRVKNY4A.js → chunk-PIPIA7K7.js} +8 -8
- package/dist/{chunk-AM4FKL4J.js → chunk-PL7AIAWS.js} +12 -12
- package/dist/{chunk-WL2DSNJV.js → chunk-Q22BMRPF.js} +2 -2
- package/dist/{chunk-IJ3SXSZM.js → chunk-QOLOQ35F.js} +6 -6
- package/dist/{chunk-BUECLQXK.js → chunk-QZTJ2556.js} +4 -4
- package/dist/{chunk-O7QOWS6M.js → chunk-RXCT3OCU.js} +12 -12
- package/dist/{chunk-WYEQFD6A.js → chunk-S5KQIFKJ.js} +122 -98
- package/dist/{chunk-CBYQ2ZN3.js → chunk-S5TEJIGP.js} +2 -2
- package/dist/{chunk-HMLGM2MW.js → chunk-SF2B7MZK.js} +3 -3
- package/dist/{chunk-PML67X22.js → chunk-SNGFEESM.js} +3 -3
- package/dist/{chunk-VD32O6KZ.js → chunk-SQPIECXD.js} +3 -3
- package/dist/{chunk-5YL5OC2G.js → chunk-SRX6B544.js} +5 -5
- package/dist/{chunk-CFSFBKHP.js → chunk-TEBS7FE6.js} +2 -2
- package/dist/{chunk-TTVAHCWP.js → chunk-TM5LRSBB.js} +2 -2
- package/dist/{chunk-JP7M7OU7.js → chunk-TUEFTRC2.js} +5 -5
- package/dist/{chunk-EWCDPFW5.js → chunk-U6DR6464.js} +4 -4
- package/dist/{chunk-QAEQGT5I.js → chunk-UIEFE6FU.js} +7 -7
- package/dist/{chunk-3H3EPMFY.js → chunk-UJ6ZZJDD.js} +2 -2
- package/dist/{chunk-3P3HXN76.js → chunk-V4IBHDIY.js} +11 -11
- package/dist/{chunk-XNCP4KYO.js → chunk-VQPDATQT.js} +1 -1
- package/dist/{chunk-4PQHO74B.js → chunk-VZ22VUAS.js} +2 -2
- package/dist/{chunk-BUJRS7XB.js → chunk-WYS6XVZ3.js} +2 -2
- package/dist/{chunk-QV3GXQRE.js → chunk-XIABDKFQ.js} +2 -2
- package/dist/{chunk-EESV6NU2.js → chunk-XJU6UAFV.js} +2 -2
- package/dist/{chunk-SBR2WZXG.js → chunk-XNZURZ7T.js} +59 -52
- package/dist/{chunk-WFG67AYS.js → chunk-Y6NO3DLQ.js} +3 -3
- package/dist/{chunk-37AHZ7JX.js → chunk-Y76ERHLK.js} +5 -5
- package/dist/{chunk-HHW5AWVD.js → chunk-YI76TURL.js} +30 -30
- package/dist/{chunk-OGBMUST4.js → chunk-YSLMMR2U.js} +14 -14
- package/dist/{chunk-45YPFB7B.js → chunk-Z2BRSQ6M.js} +49 -49
- package/dist/{chunk-D64XUF5Q.js → chunk-Z3SNX45M.js} +16 -16
- package/dist/{chunk-FMOEVAGT.js → chunk-Z4VN347O.js} +3 -3
- package/dist/{chunk-L2GLOJAO.js → chunk-ZHGWR45B.js} +22 -22
- package/dist/cli.d.ts +20 -18
- package/dist/cli.js +50 -50
- package/dist/{codegen-command-HTWIW56U.js → codegen-command-L2OO6OTE.js} +63 -63
- package/dist/{commands-CVFYC4GK.js → commands-2E4JB3DB.js} +2 -2
- package/dist/{completion-AUEQC4XJ.js → completion-LPJIH5VQ.js} +11 -11
- package/dist/{config-JU6OQC77.js → config-QDCRKEWD.js} +4 -4
- package/dist/{deploy-command-5WTFHMBT.js → deploy-command-HJZNYCUY.js} +57 -57
- package/dist/{deploy-source-5CET3A5D.js → deploy-source-5COWTBOC.js} +34 -34
- package/dist/{dev-env-sync-X636HLMK.js → dev-env-sync-GZ4QQJGV.js} +51 -51
- package/dist/{display-name-hint-DMORHANO.js → display-name-hint-AHCNH6TF.js} +11 -11
- package/dist/{emit-hOFbgzde.d.ts → emit-DqG6qddr.d.ts} +2 -2
- package/dist/env-example-refresh-DWQIOQYR.js +127 -0
- package/dist/{env-pull-command-WZZ7RL2E.js → env-pull-command-Z4RLVEGJ.js} +46 -46
- package/dist/{env-target-PO3MOLH5.js → env-target-ZHQUS5BO.js} +13 -13
- package/dist/{env-var-command-YKTJZFJN.js → env-var-command-FKQ4VVQ6.js} +47 -47
- package/dist/{ephemeral-BMFY55BQ.js → ephemeral-L4KUOGEU.js} +9 -9
- package/dist/{ephemeral-command-VDSQCOYL.js → ephemeral-command-GRPFI3TD.js} +47 -47
- package/dist/{ephemeral-state-6TY4JIPA.js → ephemeral-state-VLYU2BXR.js} +11 -11
- package/dist/{generate-command-3NTNRQRS.js → generate-command-XNODJFDQ.js} +68 -68
- package/dist/{gitignore-FWPEDX6C.js → gitignore-VWRSZX5F.js} +16 -16
- package/dist/{guards-EJU2ONAX.js → guards-OPSGB6LG.js} +5 -5
- package/dist/{hosted-file-PSHJB3HX.js → hosted-file-S7YUQAH6.js} +2 -2
- package/dist/{impersonate-command-QEJA72Q2.js → impersonate-command-AEKIZHHK.js} +40 -40
- package/dist/{import-TBTOTU52.js → import-PHSSFFLA.js} +5 -5
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -10
- package/dist/{init-command-27SFBW2F.js → init-command-TI3HCKXZ.js} +55 -55
- package/dist/{init-modules-HZRQFRLE.js → init-modules-SGSX7XEY.js} +9 -9
- package/dist/{init-web-Y2PBNJTQ.js → init-web-6HX3YLQP.js} +2 -2
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +24 -25
- package/dist/{io-ZUKAGFVE.js → io-TAF4WXYQ.js} +5 -5
- package/dist/{keep-data-merge-X5LDDCI3.js → keep-data-merge-GUGF7MVZ.js} +28 -28
- package/dist/{lambda-config-reconcile-OUZ4OYAB.js → lambda-config-reconcile-65U6I4KU.js} +3 -3
- package/dist/{landed-6VO7CX5P.js → landed-QA6PRTV2.js} +4 -4
- package/dist/{landing-record-QYECWLQ5.js → landing-record-FCAWLCZU.js} +22 -22
- package/dist/{live-diff-2S7E3SBZ.js → live-diff-IM4W3ELT.js} +5 -5
- package/dist/local-engine-choice-FPJAZSSD.js +79 -0
- package/dist/{local-engine-command-HMTQK7MN.js → local-engine-command-73NHWD6V.js} +92 -92
- package/dist/{local-engine-config-5U3SC434.js → local-engine-config-W3KB7RWM.js} +2 -2
- package/dist/{local-engine-deploy-TXAOYRGF.js → local-engine-deploy-Y4OAWL7K.js} +16 -16
- package/dist/{local-engine-process-6VZ7JJBP.js → local-engine-process-6YPJHKYM.js} +11 -11
- 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-X7TZGRFL.js} +7 -7
- package/dist/{lock-TS465GVY.js → lock-WXXC3QHL.js} +3 -3
- package/dist/{lock-commands-4VT3L5W5.js → lock-commands-PKDBNRSD.js} +55 -55
- package/dist/{login-command-O6WA4FYL.js → login-command-V4U4FA5G.js} +27 -27
- package/dist/{logout-command-6CPWGFY2.js → logout-command-TV3P545Z.js} +16 -16
- package/dist/{loop-UFHKSOQ4.js → loop-VKHGQ6MP.js} +6 -6
- package/dist/{marketplace-command-HKACSYKS.js → marketplace-command-LEFOAEAV.js} +30 -30
- package/dist/{marketplace-resolve-KLFYVRWS.js → marketplace-resolve-ME7O7JBJ.js} +7 -7
- package/dist/{meta-client-73PX6UGJ.js → meta-client-TEEECA5W.js} +14 -14
- package/dist/{module-manifest-GIKFNXPE.js → module-manifest-7YLGIRCY.js} +3 -3
- package/dist/node.d.ts +4 -4
- package/dist/node.js +56 -56
- package/dist/operation-outcome-GNDD35WL.js +51 -0
- package/dist/{output-target-SZMBNYF4.js → output-target-5FWX3NGZ.js} +17 -17
- package/dist/{plan-disclosure-BHYG7TZ7.js → plan-disclosure-QGL5UYQR.js} +16 -16
- package/dist/{plugin-contributions-X4V22PJQ.js → plugin-contributions-GNFTWDEB.js} +4 -4
- package/dist/{plugin-prompt-DKNQHW6Y.js → plugin-prompt-VEQGMZ4T.js} +4 -4
- package/dist/{plugin-questions-CQRVOWFK.js → plugin-questions-BGRL23GO.js} +3 -3
- package/dist/{preflight-command-EBQ6XQF3.js → preflight-command-VKJKXRRI.js} +63 -63
- package/dist/{profile-command-NPKBJYPM.js → profile-command-P7A3BH26.js} +29 -29
- package/dist/{profile-pointer-UOO7JNFG.js → profile-pointer-HG7IXE4I.js} +4 -4
- package/dist/{profile-select-74TRDEPD.js → profile-select-45G5VPJK.js} +2 -2
- package/dist/{project-dependency-RRMTWOPC.js → project-dependency-Z4CKOCJI.js} +8 -8
- package/dist/{project-sdk-FOR4IOXL.js → project-sdk-JWZWGXXR.js} +3 -3
- package/dist/promote-command-KHTIK44I.js +141 -0
- package/dist/{prompt-5GUQTCSP.js → prompt-SURZOUUW.js} +3 -3
- package/dist/{publish-command-LGLZBOCB.js → publish-command-HGAB3H4A.js} +131 -60
- package/dist/{pull-command-WQFPLITW.js → pull-command-EUEWBRXZ.js} +66 -66
- package/dist/{pull-superseded-GGURV5J3.js → pull-superseded-TOT5S4QU.js} +3 -3
- package/dist/{release-command-2OTNVMIL.js → release-command-WOVQAMUY.js} +64 -64
- package/dist/{release-ns-command-EIBN3JVM.js → release-ns-command-WOQE2BDQ.js} +87 -87
- package/dist/{retry-command-Y5YJGOH3.js → retry-command-JRGMZZAC.js} +8 -8
- package/dist/{routes-manifest-3BNZIVST.js → routes-manifest-URFMAWJE.js} +5 -5
- package/dist/scaffold.js +2 -2
- package/dist/{secrets-file-FUG7WCES.js → secrets-file-YWZWVJ52.js} +16 -16
- package/dist/{secrets-fill-command-QEOCUOAY.js → secrets-fill-command-HIHK3VH2.js} +54 -54
- package/dist/{seed-GJHJSEUE.js → seed-24DTEY5S.js} +7 -7
- package/dist/{source-resolve-DMDZVPMM.js → source-resolve-OWD3MIEO.js} +23 -23
- package/dist/{static-host-WM24RG25.js → static-host-UIR2OLPQ.js} +9 -9
- package/dist/{status-command-XUH5OGQX.js → status-command-JKTHH5QE.js} +53 -53
- package/dist/{store-MR7IKXKK.js → store-5YAQS6KU.js} +6 -6
- package/dist/{store-CfgPaVPO.d.ts → store-zxw2go0f.d.ts} +3 -3
- package/dist/sveltekit.d.ts +5 -5
- package/dist/sveltekit.js +1 -1
- package/dist/{sync-contributions-DHP7XSTX.js → sync-contributions-RBB6JVOL.js} +9 -9
- package/dist/{table-ZBDPKMNH.js → table-MQFVYA4K.js} +8 -8
- package/dist/{tables-command-X3JK7VSK.js → tables-command-5Q4BSUNO.js} +39 -39
- package/dist/{tenant-GKXMOYLK.js → tenant-Q3LPVSSM.js} +10 -10
- package/dist/{tenant-command-P27EQHBU.js → tenant-command-BFVU2PEX.js} +84 -84
- package/dist/{test-command-A4G2FP7G.js → test-command-F4VUU4QR.js} +40 -40
- package/dist/{tests-C55M5EQS.js → tests-5ZSDFVIJ.js} +6 -6
- package/dist/{token-CMAB35GD.js → token-TERSTNU4.js} +12 -12
- package/dist/{toolchain-hooks-BGZBDFAT.js → toolchain-hooks-QVUZ6HZ4.js} +2 -2
- package/dist/{toolchain-modules-3M7QDJBV.js → toolchain-modules-FD5ANV2U.js} +5 -5
- package/dist/tracked-backend-B4HTME4S.js +80 -0
- package/dist/{update-check-LNNKIMML.js → update-check-O4C2LCZH.js} +53 -53
- package/dist/{upgrade-command-7EUXML3P.js → upgrade-command-NVFWLMTA.js} +56 -56
- package/dist/{whoami-command-KNWFWAX6.js → whoami-command-YKNTISIV.js} +15 -15
- package/dist/{workspace-TGPYOODG.js → workspace-GGVGE2S5.js} +5 -5
- package/dist/{workspace-binding-2TWZBHQY.js → workspace-binding-OS4ZOX4S.js} +14 -14
- package/dist/{workspace-command-T7Z2BDHD.js → workspace-command-GTUNVN7K.js} +77 -77
- package/dist/{workspace-env-VA7XN3UX.js → workspace-env-467C5KHM.js} +13 -13
- package/dist/{workspace-export-AIGM6LC7.js → workspace-export-3XTVGQVM.js} +5 -5
- package/dist/{writable-FYJBTJOU.js → writable-7SSWUQJ3.js} +3 -3
- package/dist/{xano-BSHYVFSE.js → xano-6RS5XQZE.js} +7 -7
- package/dist/{xanosdk-import-J6SRBZHW.js → xanosdk-import-E3WSIYUE.js} +9 -9
- package/dist/{xanosdk-project-6KTCO47O.js → xanosdk-project-KH5TZ2KI.js} +14 -14
- package/guides/README.md +1 -0
- package/guides/authoring.md +3 -5
- package/guides/bundle.md +45 -0
- package/guides/cli.md +32 -30
- package/guides/codegen.md +5 -4
- package/guides/codes.md +9 -9
- package/guides/deploying.md +63 -58
- package/guides/environment.md +13 -13
- package/guides/project-structure.md +14 -0
- package/llms/client.md +3 -4
- package/llms/errors.md +1 -1
- package/llms/tests.md +2 -2
- package/llms-full.txt +14 -15
- package/llms.txt +8 -8
- package/manifest.json +110 -107
- package/package.json +4 -4
- package/dist/env-example-refresh-ZO6XAV44.js +0 -127
- 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/tracked-backend-PZGUWD5J.js +0 -80
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pinWrittenText
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZHGWR45B.js";
|
|
4
4
|
import {
|
|
5
5
|
acquireEngine,
|
|
6
6
|
restartMismatchedEngine
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YI76TURL.js";
|
|
8
8
|
import {
|
|
9
9
|
confirm
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AESE434J.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveProjectEntry
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-PIPIA7K7.js";
|
|
14
|
+
import "./chunk-XIABDKFQ.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-RXCT3OCU.js";
|
|
27
27
|
import {
|
|
28
28
|
diskBytes,
|
|
29
29
|
listLegacyCacheDirs,
|
|
@@ -32,72 +32,72 @@ import {
|
|
|
32
32
|
readEngineEntry,
|
|
33
33
|
readPin,
|
|
34
34
|
writePin
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-Z3SNX45M.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-JQOX6HW4.js";
|
|
43
43
|
import "./chunk-2TFRR6JV.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-HOOOOJJP.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-JXKO6JT7.js";
|
|
50
|
+
import "./chunk-3BJYQGAZ.js";
|
|
51
|
+
import "./chunk-5XVBT6CQ.js";
|
|
52
|
+
import "./chunk-V4IBHDIY.js";
|
|
53
|
+
import "./chunk-KQLACS4Q.js";
|
|
54
|
+
import "./chunk-4GDEEY2U.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-4QBGE3EO.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-UJ6ZZJDD.js";
|
|
72
|
+
import "./chunk-QZTJ2556.js";
|
|
73
|
+
import "./chunk-TEBS7FE6.js";
|
|
74
74
|
import {
|
|
75
75
|
yesRerun
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-Z4VN347O.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-G57RYMKB.js";
|
|
79
|
+
import "./chunk-AGD7F7YI.js";
|
|
80
|
+
import "./chunk-F6IKWAIU.js";
|
|
81
|
+
import "./chunk-OGUMHW2X.js";
|
|
82
|
+
import "./chunk-3VX7VAQT.js";
|
|
83
83
|
import "./chunk-ZFDZKNGG.js";
|
|
84
84
|
import "./chunk-FWD7AL6N.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-MYLPOVX6.js";
|
|
86
|
+
import "./chunk-DXUICABI.js";
|
|
87
87
|
import "./chunk-4KHEMC32.js";
|
|
88
88
|
import "./chunk-ROY4YAEQ.js";
|
|
89
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-5YBNXNKU.js";
|
|
90
90
|
import "./chunk-WRBKLYSJ.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-M7GJ6YUF.js";
|
|
92
|
+
import "./chunk-OJPZEUPH.js";
|
|
93
93
|
import "./chunk-AWQ7BQTQ.js";
|
|
94
94
|
import "./chunk-EUUUMY7J.js";
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-HLQH3AXB.js";
|
|
96
|
+
import "./chunk-JZWUAEMO.js";
|
|
97
97
|
import "./chunk-LLNZGEFK.js";
|
|
98
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-MF4W6FHU.js";
|
|
99
99
|
import "./chunk-X2NL4KUO.js";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-M6ZFSTIZ.js";
|
|
101
101
|
import "./chunk-DGWHAVRG.js";
|
|
102
102
|
import {
|
|
103
103
|
UsageError,
|
|
@@ -111,8 +111,8 @@ import {
|
|
|
111
111
|
unknownSubcommand,
|
|
112
112
|
warn,
|
|
113
113
|
writeJson
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-
|
|
114
|
+
} from "./chunk-XNZURZ7T.js";
|
|
115
|
+
import "./chunk-XJU6UAFV.js";
|
|
116
116
|
import "./chunk-H2V3N23D.js";
|
|
117
117
|
import "./chunk-3JDU4VRL.js";
|
|
118
118
|
import "./chunk-GPI3OWRE.js";
|
|
@@ -120,9 +120,9 @@ import {
|
|
|
120
120
|
suggest,
|
|
121
121
|
suggestAll
|
|
122
122
|
} from "./chunk-UTI5G6OJ.js";
|
|
123
|
-
import "./chunk-
|
|
123
|
+
import "./chunk-OKNE3TWU.js";
|
|
124
124
|
import "./chunk-5ZSO4T2G.js";
|
|
125
|
-
import "./chunk-
|
|
125
|
+
import "./chunk-VQPDATQT.js";
|
|
126
126
|
import "./chunk-TFFGOFVZ.js";
|
|
127
127
|
import "./chunk-LL6ED5IB.js";
|
|
128
128
|
import "./chunk-4BW2SG2N.js";
|
|
@@ -147,7 +147,7 @@ async function runLocalEngineCommand(args, opts = {}) {
|
|
|
147
147
|
case "cache":
|
|
148
148
|
return runCache(args, opts);
|
|
149
149
|
default:
|
|
150
|
-
throw unknownSubcommand("local
|
|
150
|
+
throw unknownSubcommand("local", args.subcommand, args.positionals);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
function cachedEngine(env, exclude = /* @__PURE__ */ new Set()) {
|
|
@@ -185,7 +185,7 @@ function startedFrom(record) {
|
|
|
185
185
|
function report(rows, args, orphans = []) {
|
|
186
186
|
if (orphans.length > 0) {
|
|
187
187
|
info(
|
|
188
|
-
`${orphans.length === 1 ? "A process" : `${orphans.length} processes`} a crashed
|
|
188
|
+
`${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
189
|
);
|
|
190
190
|
}
|
|
191
191
|
if (isMachineOutput(args)) {
|
|
@@ -195,7 +195,7 @@ function report(rows, args, orphans = []) {
|
|
|
195
195
|
}
|
|
196
196
|
const s = stdoutStyle();
|
|
197
197
|
if (rows.length === 0) {
|
|
198
|
-
process.stdout.write("No
|
|
198
|
+
process.stdout.write("No Xano Engine is running\n");
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
const lines = rows.map((row) => {
|
|
@@ -212,9 +212,9 @@ function reportMismatches(rows) {
|
|
|
212
212
|
const running = from.startsWith("engine ") ? from : `engine ${from}`;
|
|
213
213
|
warn(
|
|
214
214
|
`${row.name} is running ${running}, but the engine cached here is ${cached}.`,
|
|
215
|
-
"local
|
|
215
|
+
"local.stale",
|
|
216
216
|
[
|
|
217
|
-
`Deploy its project again with \`xanosdk deploy --local
|
|
217
|
+
`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
218
|
]
|
|
219
219
|
);
|
|
220
220
|
}
|
|
@@ -224,22 +224,22 @@ async function runStop(args, opts) {
|
|
|
224
224
|
const name = args.positionals[0];
|
|
225
225
|
if (args.all && name !== void 0 && name !== "") {
|
|
226
226
|
throw new UsageError(
|
|
227
|
-
`\`xanosdk local
|
|
228
|
-
{ hintFor: { command: "local
|
|
227
|
+
`\`xanosdk local stop\` takes a name or \`--all\`, not both \u2014 \`--all\` already covers "${name}". Drop one of them.`,
|
|
228
|
+
{ hintFor: { command: "local", subcommand: "stop" } }
|
|
229
229
|
);
|
|
230
230
|
}
|
|
231
231
|
if (args.all) return runStopAll(args, opts, env);
|
|
232
232
|
if (name === void 0 || name === "") {
|
|
233
233
|
throw new UsageError(
|
|
234
|
-
`\`xanosdk local
|
|
235
|
-
{ hintFor: { command: "local
|
|
234
|
+
`\`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.`,
|
|
235
|
+
{ hintFor: { command: "local", subcommand: "stop" } }
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
const assignment = /^([A-Za-z_][A-Za-z0-9_]*)=/.exec(name);
|
|
239
239
|
if (assignment !== null) {
|
|
240
240
|
throw new UsageError(
|
|
241
|
-
`"${assignment[1]}=\u2026" is not a
|
|
242
|
-
{ hintFor: { command: "local
|
|
241
|
+
`"${assignment[1]}=\u2026" is not a Xano Engine name. Run \`xanosdk local list\` to see what is running.`,
|
|
242
|
+
{ hintFor: { command: "local", subcommand: "stop" } }
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
return runStopNamed(name, args, opts, env);
|
|
@@ -250,8 +250,8 @@ async function runStopNamed(name, args, opts, env) {
|
|
|
250
250
|
if (!outcome.stopped) {
|
|
251
251
|
info(`"${name}" is not running \u2014 nothing to stop${clearedSuffix(outcome)}.`);
|
|
252
252
|
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
|
|
253
|
+
if (nearest !== void 0) detail(`Did you mean \`${nearest}\`? It is running: \`xanosdk local stop ${nearest}\`.`);
|
|
254
|
+
else detail("Run `xanosdk local list` to see what is running.");
|
|
255
255
|
if (isMachineOutput(args)) writeJson({ ...outcome, alreadyStopped: true, ...nearest === void 0 ? {} : { suggestion: nearest } });
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
@@ -287,25 +287,25 @@ function reportOrphanSweep(orphans) {
|
|
|
287
287
|
const n = orphans.stopped.length;
|
|
288
288
|
if (n > 0) {
|
|
289
289
|
success(
|
|
290
|
-
`Stopped ${n} process${n === 1 ? "" : "es"} a crashed
|
|
290
|
+
`Stopped ${n} process${n === 1 ? "" : "es"} a crashed Xano Engine left running (pid ${orphans.stopped.join(", ")}).`
|
|
291
291
|
);
|
|
292
292
|
}
|
|
293
293
|
if (orphans.stillRunning.length > 0) {
|
|
294
294
|
detail(
|
|
295
|
-
`Still exiting after the wait: pid ${orphans.stillRunning.join(", ")} \u2014 run \`xanosdk local
|
|
295
|
+
`Still exiting after the wait: pid ${orphans.stillRunning.join(", ")} \u2014 run \`xanosdk local stop --all\` again in a moment.`
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
function reportStopAll(outcome, staleProjects, args) {
|
|
300
300
|
for (const stop of outcome.stopped) {
|
|
301
301
|
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
|
|
302
|
+
else warn(`${stop.name} was listed as running but did not stop${clearedSuffix(stop)}.`, "local.stop-failed");
|
|
303
303
|
}
|
|
304
304
|
if (outcome.foreign.length > 0) {
|
|
305
305
|
warn(
|
|
306
306
|
`Left running, not started by xanosdk: ${outcome.foreign.join(", ")}`,
|
|
307
|
-
"local
|
|
308
|
-
["Name one explicitly \u2014 `xanosdk local
|
|
307
|
+
"local.foreign",
|
|
308
|
+
["Name one explicitly \u2014 `xanosdk local stop <name>` \u2014 to stop it anyway."]
|
|
309
309
|
);
|
|
310
310
|
}
|
|
311
311
|
reportOrphanSweep(outcome.orphans);
|
|
@@ -314,7 +314,7 @@ function reportStopAll(outcome, staleProjects, args) {
|
|
|
314
314
|
}
|
|
315
315
|
const swept = outcome.orphans.stopped.length + outcome.orphans.stillRunning.length;
|
|
316
316
|
if (outcome.stopped.length === 0 && outcome.foreign.length === 0 && swept === 0) {
|
|
317
|
-
info("No
|
|
317
|
+
info("No Xano Engine is running \u2014 nothing to stop.");
|
|
318
318
|
}
|
|
319
319
|
if (isMachineOutput(args)) {
|
|
320
320
|
writeJson({ ...outcome, staleProjects, alreadyStopped: outcome.stopped.length === 0 && swept === 0 });
|
|
@@ -342,20 +342,20 @@ async function resolveLiveEngine(named, opts, doing) {
|
|
|
342
342
|
if (entry === void 0) {
|
|
343
343
|
throw new SourceError(
|
|
344
344
|
`No engine is cached on this machine, so there is nothing here to ${doing}.
|
|
345
|
-
Run \`xanosdk deploy --local
|
|
345
|
+
Run \`xanosdk deploy --local\` to fetch one if you meant to use a Xano Engine.`,
|
|
346
346
|
"gone",
|
|
347
|
-
"local
|
|
347
|
+
"local"
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
350
|
const resolved = await resolveSource(
|
|
351
|
-
named === void 0 || named === "" ? { kind: "local
|
|
351
|
+
named === void 0 || named === "" ? { kind: "local" } : { kind: "local", name: named },
|
|
352
352
|
NO_CREDENTIAL,
|
|
353
353
|
// A lifecycle verb manages the engine itself; "deploy still reaches an
|
|
354
354
|
// ephemeral" answers a question nobody running it asked.
|
|
355
355
|
// The name is this verb's bare positional, so a near one is suggested bare.
|
|
356
356
|
{ env, listEngines: () => listEngines({ entry, env, run: opts.run }), deployFallback: false, bareName: true }
|
|
357
357
|
);
|
|
358
|
-
if (resolved.backend.kind !== "local") throw new Error("Internal: a
|
|
358
|
+
if (resolved.backend.kind !== "local") throw new Error("Internal: a Xano Engine resolved to a hosted backend.");
|
|
359
359
|
return resolved.backend.engine;
|
|
360
360
|
}
|
|
361
361
|
async function runUpdate(args, opts) {
|
|
@@ -367,7 +367,7 @@ async function runUpdate(args, opts) {
|
|
|
367
367
|
Unset it to move the pin, or keep deploying with it set to run that manager's latest.`
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
|
-
const read = readPin(dir, { warn: (message) => warn(message, "local
|
|
370
|
+
const read = readPin(dir, { warn: (message) => warn(message, "local.pin-unusable") });
|
|
371
371
|
if (read === void 0 && resolveProjectEntry(dir) === void 0) {
|
|
372
372
|
throw new Error(
|
|
373
373
|
`No package.json in ${dir}, and it is not a Xano SDK project, so there is no engine pin to move.
|
|
@@ -400,19 +400,19 @@ Run this from the project's root.`
|
|
|
400
400
|
...opts.spawn === void 0 ? {} : { spawn: opts.spawn }
|
|
401
401
|
});
|
|
402
402
|
const devEnv = replaced === void 0 ? void 0 : await repointDevEnvAfterRestart(dir, replaced);
|
|
403
|
-
success(`
|
|
403
|
+
success(`Xano Engine ${current ?? "(unpinned)"} \u2192 ${target}`);
|
|
404
404
|
info(pinWrittenText({ path: pin.path, version: target, created: pin.created, moved: current !== null }));
|
|
405
405
|
if (replaced !== void 0) {
|
|
406
406
|
info(`Restarted ${replaced.name} on ${target}. It starts empty \u2014 run your deploy to seed it.`);
|
|
407
407
|
if (replaced.url !== replaced.previousUrl) {
|
|
408
|
-
info("New
|
|
408
|
+
info("New Xano Engine URL:");
|
|
409
409
|
link(replaced.url);
|
|
410
410
|
}
|
|
411
411
|
if (devEnv !== void 0) {
|
|
412
412
|
detail(`Pointed ${devEnv.label} at the restarted engine (${devEnv.variable}) \u2014 restart your dev server to pick it up.`);
|
|
413
413
|
}
|
|
414
414
|
} else {
|
|
415
|
-
detail(`No engine is running for this project; the next \`xanosdk deploy --local
|
|
415
|
+
detail(`No engine is running for this project; the next \`xanosdk deploy --local\` starts ${target}.`);
|
|
416
416
|
}
|
|
417
417
|
if (isMachineOutput(args)) {
|
|
418
418
|
writeJson({
|
|
@@ -427,7 +427,7 @@ Run this from the project's root.`
|
|
|
427
427
|
}
|
|
428
428
|
async function repointDevEnvAfterRestart(dir, restarted) {
|
|
429
429
|
if (restarted.previousUrl === void 0) return void 0;
|
|
430
|
-
const { repointDevEnv } = await import("./dev-env-sync-
|
|
430
|
+
const { repointDevEnv } = await import("./dev-env-sync-GZ4QQJGV.js");
|
|
431
431
|
try {
|
|
432
432
|
return repointDevEnv(dir, restarted.previousUrl, restarted.url);
|
|
433
433
|
} catch (err) {
|
|
@@ -443,14 +443,14 @@ async function requestedEngineVersion(requested, opts, env, purpose) {
|
|
|
443
443
|
const clearing = purpose === "clear";
|
|
444
444
|
throw new UsageError(
|
|
445
445
|
(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
|
|
446
|
+
{ hintFor: { command: "local", subcommand: clearing ? "cache" : "update" } }
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
const platform = resolveEnginePlatform(opts.platform ?? process.platform, opts.arch ?? process.arch);
|
|
451
451
|
if (platform === void 0) {
|
|
452
452
|
throw new Error(
|
|
453
|
-
`There is no
|
|
453
|
+
`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
454
|
);
|
|
455
455
|
}
|
|
456
456
|
const fetch = opts.fetch === void 0 ? {} : { fetch: opts.fetch };
|
|
@@ -462,23 +462,23 @@ async function runCache(args, opts) {
|
|
|
462
462
|
if (action === "list") {
|
|
463
463
|
if (args.engineVersion !== void 0) {
|
|
464
464
|
throw new UsageError(
|
|
465
|
-
"`xanosdk local
|
|
466
|
-
{ helpFor: { command: "local
|
|
465
|
+
"`xanosdk local cache list` takes no `--version` \u2014 it lists every cached engine. `cache clear --version <v>` is the one that takes it.",
|
|
466
|
+
{ helpFor: { command: "local", subcommand: "cache" } }
|
|
467
467
|
);
|
|
468
468
|
}
|
|
469
469
|
if (args.legacyRuntime) {
|
|
470
470
|
throw new UsageError(
|
|
471
|
-
"`xanosdk local
|
|
472
|
-
{ helpFor: { command: "local
|
|
471
|
+
"`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.",
|
|
472
|
+
{ helpFor: { command: "local", subcommand: "cache" } }
|
|
473
473
|
);
|
|
474
474
|
}
|
|
475
475
|
return runCacheList(args, opts);
|
|
476
476
|
}
|
|
477
477
|
if (action === "clear") return runCacheClear(args, opts);
|
|
478
478
|
throw new UsageError(
|
|
479
|
-
`\`xanosdk local
|
|
479
|
+
`\`xanosdk local cache\`: ${action === void 0 || action === "" ? "no action given" : `unknown action "${action}"`} \u2014 it takes ${CACHE_ACTIONS.join(" or ")}.`,
|
|
480
480
|
{
|
|
481
|
-
helpFor: { command: "local
|
|
481
|
+
helpFor: { command: "local", subcommand: "cache" },
|
|
482
482
|
suggestion: action === void 0 ? void 0 : suggest(action, CACHE_ACTIONS)
|
|
483
483
|
}
|
|
484
484
|
);
|
|
@@ -506,7 +506,7 @@ async function runCacheList(args, opts) {
|
|
|
506
506
|
const runtime = runtimeRows(env);
|
|
507
507
|
if (entries.length === 0 && legacy.length === 0 && runtime.length === 0) {
|
|
508
508
|
if (isMachineOutput(args)) writeJson({ entries: [] });
|
|
509
|
-
else info("No
|
|
509
|
+
else info("No Xano Engine is cached \u2014 `xanosdk deploy --local` fetches one.");
|
|
510
510
|
return;
|
|
511
511
|
}
|
|
512
512
|
let running = [];
|
|
@@ -515,7 +515,7 @@ async function runCacheList(args, opts) {
|
|
|
515
515
|
try {
|
|
516
516
|
running = listEngines({ entry: binary, env, ...opts.run === void 0 ? {} : { run: opts.run } });
|
|
517
517
|
} catch (err) {
|
|
518
|
-
warn(`Could not list running engines, so none are shown: ${err.message.split("\n")[0]}`, "local
|
|
518
|
+
warn(`Could not list running engines, so none are shown: ${err.message.split("\n")[0]}`, "local.list-failed");
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
const using = enginesByDigest(running, env);
|
|
@@ -558,14 +558,14 @@ async function runCacheList(args, opts) {
|
|
|
558
558
|
});
|
|
559
559
|
printHuman(lines.join("\n") + "\n");
|
|
560
560
|
if (legacy.length > 0) {
|
|
561
|
-
detail("Old-layout directories are never run \u2014 `xanosdk local
|
|
561
|
+
detail("Old-layout directories are never run \u2014 `xanosdk local cache clear` removes them.");
|
|
562
562
|
}
|
|
563
563
|
if (runtime.some((r) => r.source === "runtime")) {
|
|
564
|
-
detail("The unpacked runtime is what the engines run from \u2014 `xanosdk local
|
|
564
|
+
detail("The unpacked runtime is what the engines run from \u2014 `xanosdk local cache clear` removes it with the engines.");
|
|
565
565
|
}
|
|
566
566
|
if (runtime.some((r) => r.source === "legacy-runtime")) {
|
|
567
567
|
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
|
|
568
|
+
"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
569
|
);
|
|
570
570
|
}
|
|
571
571
|
}
|
|
@@ -594,7 +594,7 @@ async function runCacheClear(args, opts) {
|
|
|
594
594
|
if (hits.length === 0) {
|
|
595
595
|
const cached = cachedEntries(env).map(entryLabel);
|
|
596
596
|
const near = requested === "override" ? [] : suggestAll(label ?? requested ?? "", cached.filter((c) => !c.startsWith("override")));
|
|
597
|
-
const clear = (v) => `\`xanosdk local
|
|
597
|
+
const clear = (v) => `\`xanosdk local cache clear --version ${v}\``;
|
|
598
598
|
info(
|
|
599
599
|
`${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
600
|
);
|
|
@@ -647,7 +647,7 @@ async function runCacheClear(args, opts) {
|
|
|
647
647
|
const bytesFreed = items.reduce((sum, item) => sum + item.bytes, 0);
|
|
648
648
|
for (const stop of stopped) {
|
|
649
649
|
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
|
|
650
|
+
else warn(`${stop.name} was listed as running but did not stop. Stop it with \`xanosdk local stop ${stop.name}\`.`, "local.stop-failed");
|
|
651
651
|
}
|
|
652
652
|
const what = [
|
|
653
653
|
...removed.length === 0 ? [] : [label ?? `${removed.length} cached engine director${removed.length === 1 ? "y" : "ies"}`],
|
|
@@ -664,12 +664,12 @@ async function runCacheClear(args, opts) {
|
|
|
664
664
|
}
|
|
665
665
|
if (runtimeBytes > 0 && !runtimeRemoved) {
|
|
666
666
|
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
|
|
667
|
+
`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.`,
|
|
668
|
+
"local.runtime-kept"
|
|
669
669
|
);
|
|
670
670
|
}
|
|
671
671
|
if (stopped.length > 0) {
|
|
672
|
-
detail("The next `xanosdk deploy --local
|
|
672
|
+
detail("The next `xanosdk deploy --local` fetches its engine again and restarts it.");
|
|
673
673
|
}
|
|
674
674
|
if (isMachineOutput(args)) {
|
|
675
675
|
writeJson({ stopped: stopped.map((o) => o.name), removed, runtimeRemoved, items, bytesFreed, alreadyGone: false });
|
|
@@ -687,7 +687,7 @@ function enginesStillRunning(env, run) {
|
|
|
687
687
|
async function clearLegacyRuntime(args, env) {
|
|
688
688
|
if (args.engineVersion !== void 0) {
|
|
689
689
|
throw new UsageError("`--legacy-runtime` clears the earlier runtime copy, not a cached version \u2014 drop `--version`.", {
|
|
690
|
-
hintFor: { command: "local
|
|
690
|
+
hintFor: { command: "local", subcommand: "cache" }
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
const dirs = legacyRuntimeDirs(env);
|
|
@@ -700,7 +700,7 @@ async function clearLegacyRuntime(args, env) {
|
|
|
700
700
|
if (!args.yes) {
|
|
701
701
|
const ok = await confirm(`Delete ${dirs.join(", ")} (${formatBytes(bytes)}), the runtime copy an earlier version left?`, {
|
|
702
702
|
flag: "--yes",
|
|
703
|
-
refusal: { details: { removed: [], bytesFreed: 0 }, ...yesRerun(args, "local
|
|
703
|
+
refusal: { details: { removed: [], bytesFreed: 0 }, ...yesRerun(args, "local cache clear --legacy-runtime") }
|
|
704
704
|
});
|
|
705
705
|
if (!ok) {
|
|
706
706
|
info("Nothing was deleted.");
|
|
@@ -724,8 +724,8 @@ function stopEnginesOn(doomed, everything, env, run) {
|
|
|
724
724
|
} catch (err) {
|
|
725
725
|
warn(
|
|
726
726
|
`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
|
|
727
|
+
Any engine still running on a removed version keeps running \u2014 stop it with \`xanosdk local stop <name>\`.`,
|
|
728
|
+
"local.list-failed"
|
|
729
729
|
);
|
|
730
730
|
return [];
|
|
731
731
|
}
|
|
@@ -758,4 +758,4 @@ export {
|
|
|
758
758
|
runLocalEngineCommand,
|
|
759
759
|
sweepOptions
|
|
760
760
|
};
|
|
761
|
-
//# sourceMappingURL=local-engine-command-
|
|
761
|
+
//# sourceMappingURL=local-engine-command-73NHWD6V.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,28 +3,28 @@ 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-YI76TURL.js";
|
|
7
|
+
import "./chunk-RXCT3OCU.js";
|
|
8
|
+
import "./chunk-Z3SNX45M.js";
|
|
9
|
+
import "./chunk-64WWE3EF.js";
|
|
10
|
+
import "./chunk-JQOX6HW4.js";
|
|
11
11
|
import "./chunk-2TFRR6JV.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HOOOOJJP.js";
|
|
13
|
+
import "./chunk-5XVBT6CQ.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-OJPZEUPH.js";
|
|
20
20
|
import "./chunk-AWQ7BQTQ.js";
|
|
21
21
|
import "./chunk-EUUUMY7J.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-HLQH3AXB.js";
|
|
23
|
+
import "./chunk-JZWUAEMO.js";
|
|
24
24
|
import "./chunk-LLNZGEFK.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-MF4W6FHU.js";
|
|
26
26
|
import "./chunk-X2NL4KUO.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-XNZURZ7T.js";
|
|
28
28
|
import "./chunk-GPI3OWRE.js";
|
|
29
29
|
import "./chunk-UTI5G6OJ.js";
|
|
30
30
|
import "./chunk-5ZSO4T2G.js";
|
|
@@ -37,4 +37,4 @@ export {
|
|
|
37
37
|
explainUnsupportedEngineImport,
|
|
38
38
|
restartMismatchedEngine
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=local-engine-deploy-
|
|
40
|
+
//# sourceMappingURL=local-engine-deploy-Y4OAWL7K.js.map
|
|
@@ -19,20 +19,20 @@ import {
|
|
|
19
19
|
stopAllEngines,
|
|
20
20
|
stopEngineNamed,
|
|
21
21
|
stopOrphanedEngineProcesses
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-RXCT3OCU.js";
|
|
23
|
+
import "./chunk-Z3SNX45M.js";
|
|
24
|
+
import "./chunk-64WWE3EF.js";
|
|
25
|
+
import "./chunk-JQOX6HW4.js";
|
|
26
|
+
import "./chunk-Q22BMRPF.js";
|
|
27
|
+
import "./chunk-PL7AIAWS.js";
|
|
28
28
|
import "./chunk-ZYJP6BOO.js";
|
|
29
29
|
import "./chunk-QO6BVGS5.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-DXUICABI.js";
|
|
31
|
+
import "./chunk-HLQH3AXB.js";
|
|
32
32
|
import "./chunk-LLNZGEFK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-MF4W6FHU.js";
|
|
34
34
|
import "./chunk-X2NL4KUO.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-XNZURZ7T.js";
|
|
36
36
|
import "./chunk-GPI3OWRE.js";
|
|
37
37
|
import "./chunk-UTI5G6OJ.js";
|
|
38
38
|
import "./chunk-5ZSO4T2G.js";
|
|
@@ -61,4 +61,4 @@ export {
|
|
|
61
61
|
stopEngineNamed,
|
|
62
62
|
stopOrphanedEngineProcesses
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=local-engine-process-
|
|
64
|
+
//# sourceMappingURL=local-engine-process-6YPJHKYM.js.map
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
projectKey,
|
|
12
12
|
readLocalEngineState,
|
|
13
13
|
setEngineRecord
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-Q22BMRPF.js";
|
|
15
|
+
import "./chunk-PL7AIAWS.js";
|
|
16
16
|
import "./chunk-ZYJP6BOO.js";
|
|
17
17
|
import "./chunk-QO6BVGS5.js";
|
|
18
18
|
import "./chunk-LLNZGEFK.js";
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
readLocalEngineState,
|
|
33
33
|
setEngineRecord
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=local-engine-state-
|
|
35
|
+
//# sourceMappingURL=local-engine-state-OCW5YDD7.js.map
|
package/dist/{local-engine-update-check-R5SPDVEJ.js → local-engine-update-check-X7TZGRFL.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeEngineVersion,
|
|
3
3
|
resolveEngineRelease
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JQOX6HW4.js";
|
|
5
5
|
import {
|
|
6
6
|
compareSemver,
|
|
7
7
|
parseSemver
|
|
8
8
|
} from "./chunk-2TFRR6JV.js";
|
|
9
9
|
import {
|
|
10
10
|
localEngineHome
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-PL7AIAWS.js";
|
|
12
|
+
import "./chunk-HLQH3AXB.js";
|
|
13
13
|
import {
|
|
14
14
|
atomicWrite
|
|
15
15
|
} from "./chunk-LLNZGEFK.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-MF4W6FHU.js";
|
|
17
17
|
import {
|
|
18
18
|
envFlagSet
|
|
19
19
|
} from "./chunk-X2NL4KUO.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XNZURZ7T.js";
|
|
21
21
|
import "./chunk-GPI3OWRE.js";
|
|
22
22
|
import "./chunk-UTI5G6OJ.js";
|
|
23
23
|
import "./chunk-5ZSO4T2G.js";
|
|
@@ -145,7 +145,7 @@ function updatePromptText(pin, latest) {
|
|
|
145
145
|
return `Engine ${withV(latest)} is available (this project is pinned to ${withV(pin)}). Update now? The engine restarts empty, so local rows are dropped and re-seeded, even with --keep-data.`;
|
|
146
146
|
}
|
|
147
147
|
function updateNoticeText(pin, latest) {
|
|
148
|
-
return `Engine ${withV(latest)} is available (pinned: ${withV(pin)}). Run \`xanosdk local
|
|
148
|
+
return `Engine ${withV(latest)} is available (pinned: ${withV(pin)}). Run \`xanosdk local update\` to move to it.`;
|
|
149
149
|
}
|
|
150
150
|
export {
|
|
151
151
|
UPDATE_CHECK_FAILURE_BACKOFF_MS,
|
|
@@ -159,4 +159,4 @@ export {
|
|
|
159
159
|
updateNoticeText,
|
|
160
160
|
updatePromptText
|
|
161
161
|
};
|
|
162
|
-
//# sourceMappingURL=local-engine-update-check-
|
|
162
|
+
//# sourceMappingURL=local-engine-update-check-X7TZGRFL.js.map
|