@xano/sdk 1.0.3 → 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 +30 -4
- package/README.md +232 -334
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-MQKCS7QZ.js → agent-file-refresh-KVLR7M5Y.js} +13 -13
- package/dist/{answer-shape-LVV2SVBK.js → answer-shape-XGR2DGWY.js} +5 -5
- package/dist/{backend-dir-DGAQL4K5.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-R4PPN3Z7.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-ANHOEBTJ.js → chunk-3VX7VAQT.js} +4 -4
- package/dist/{chunk-FWXSTFN2.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-A4KBHTMK.js → chunk-57B56I4B.js} +29 -29
- package/dist/{chunk-OPHB5ORL.js → chunk-57HMNJGB.js} +120 -76
- package/dist/{chunk-JTM5D7CT.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-D3XOH7E7.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-ERJNHEFV.js → chunk-AGD7F7YI.js} +3 -3
- package/dist/{chunk-K3LE5B5E.js → chunk-AGSCOISO.js} +139 -139
- package/dist/{chunk-NPXM6ZQY.js → chunk-AMBEITWL.js} +4 -4
- package/dist/{chunk-5T2CTWTB.js → chunk-BBPAXOU6.js} +5 -5
- package/dist/{chunk-WGA25EV5.js → chunk-BMCZQZMI.js} +4 -4
- package/dist/{chunk-CJPLBFFY.js → chunk-CJ76PSJT.js} +9 -9
- package/dist/{chunk-6NYLVUSZ.js → chunk-CV54PASI.js} +53 -50
- package/dist/{chunk-XCPF7BEJ.js → chunk-DEVGLLNZ.js} +5 -5
- package/dist/{chunk-JTUKLCXS.js → chunk-DXUICABI.js} +1 -1
- package/dist/{chunk-LAKHO2B7.js → chunk-ES5A66IH.js} +8 -8
- package/dist/{chunk-UDE5C2XN.js → chunk-F3557PVM.js} +3 -3
- package/dist/{chunk-HHFPIJGL.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-46TUUNM3.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-OO63ZU46.js → chunk-K6PRKPFX.js} +8 -8
- package/dist/{chunk-W5ONYLOP.js → chunk-KQLACS4Q.js} +4 -4
- package/dist/{chunk-SEATQLFB.js → chunk-KUU7T4ZE.js} +31 -31
- package/dist/{chunk-KXYW3DRR.js → chunk-L3BDO2BI.js} +9 -9
- package/dist/{chunk-IRQCV3OT.js → chunk-LLS2WO2K.js} +4 -4
- package/dist/{chunk-7KLAMYMS.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-FSYVOCS7.js → chunk-MYLPOVX6.js} +12 -13
- package/dist/{chunk-ZH5R7NKN.js → chunk-N6BWB35H.js} +3 -3
- package/dist/{chunk-PWIXETG7.js → chunk-NGAODDLX.js} +5 -5
- package/dist/{chunk-Z5UCPWGU.js → chunk-NNB7VUCH.js} +23 -23
- package/dist/{chunk-QEZL5MPJ.js → chunk-NUU76247.js} +3 -3
- package/dist/{chunk-2CGPQ7IM.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-7KGASMCE.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-AMTJ4G32.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-F5KILDDO.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-FURLOAUM.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-ZZEIC5PT.js → chunk-TUEFTRC2.js} +5 -5
- package/dist/{chunk-EWCDPFW5.js → chunk-U6DR6464.js} +4 -4
- package/dist/{chunk-7TXBKK5G.js → chunk-UIEFE6FU.js} +7 -7
- package/dist/{chunk-3H3EPMFY.js → chunk-UJ6ZZJDD.js} +2 -2
- package/dist/{chunk-YTPGQV5C.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-ZVYN4FXD.js → chunk-YSLMMR2U.js} +14 -14
- package/dist/{chunk-ZTUNCVAR.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-UWY3R4TS.js → chunk-ZHGWR45B.js} +22 -22
- package/dist/cli.d.ts +20 -18
- package/dist/cli.js +50 -50
- package/dist/{codegen-command-SW2AP7KR.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-RD6W7PXN.js → deploy-command-HJZNYCUY.js} +57 -57
- package/dist/{deploy-source-ULSWF2V7.js → deploy-source-5COWTBOC.js} +34 -34
- package/dist/{dev-env-sync-E2GFIVC5.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-QYQEOUE3.js → env-pull-command-Z4RLVEGJ.js} +46 -46
- package/dist/{env-target-KUWQYHZ7.js → env-target-ZHQUS5BO.js} +13 -13
- package/dist/{env-var-command-2ZAVIPNY.js → env-var-command-FKQ4VVQ6.js} +47 -47
- package/dist/{ephemeral-BMFY55BQ.js → ephemeral-L4KUOGEU.js} +9 -9
- package/dist/{ephemeral-command-UKHBT3OW.js → ephemeral-command-GRPFI3TD.js} +47 -47
- package/dist/{ephemeral-state-6TY4JIPA.js → ephemeral-state-VLYU2BXR.js} +11 -11
- package/dist/{generate-command-YN3HZWHG.js → generate-command-XNODJFDQ.js} +68 -68
- package/dist/{gitignore-AU5X5F3I.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-ZKE77GFT.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-NPXBMJNG.js → init-command-TI3HCKXZ.js} +55 -55
- package/dist/{init-modules-5TSTLGH5.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-TDSELE5U.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-W7VQ4KV4.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-5MTGZIZ4.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-OBXAUSZX.js → lock-commands-PKDBNRSD.js} +55 -55
- package/dist/{login-command-CB3O3UDZ.js → login-command-V4U4FA5G.js} +27 -27
- package/dist/{logout-command-J5CP5HZZ.js → logout-command-TV3P545Z.js} +16 -16
- package/dist/{loop-UFHKSOQ4.js → loop-VKHGQ6MP.js} +6 -6
- package/dist/{marketplace-command-A5S25ZHF.js → marketplace-command-LEFOAEAV.js} +31 -31
- package/dist/{marketplace-resolve-GRXMK5YD.js → marketplace-resolve-ME7O7JBJ.js} +7 -7
- package/dist/{meta-client-FB73643X.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-6HNPK6KC.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-NZ75PSRL.js → preflight-command-VKJKXRRI.js} +63 -63
- package/dist/{profile-command-KIRI4GA4.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-JGCJZ26H.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-74HMEZ7E.js → publish-command-HGAB3H4A.js} +131 -60
- package/dist/{pull-command-VO5RRGZ5.js → pull-command-EUEWBRXZ.js} +66 -66
- package/dist/{pull-superseded-GGURV5J3.js → pull-superseded-TOT5S4QU.js} +3 -3
- package/dist/{release-command-ZHM5FA4M.js → release-command-WOVQAMUY.js} +64 -64
- package/dist/{release-ns-command-2TL26YOM.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-NBBR6DYS.js → secrets-file-YWZWVJ52.js} +16 -16
- package/dist/{secrets-fill-command-X3HQ4JYN.js → secrets-fill-command-HIHK3VH2.js} +54 -54
- package/dist/{seed-GJHJSEUE.js → seed-24DTEY5S.js} +7 -7
- package/dist/{source-resolve-NTI3JFO6.js → source-resolve-OWD3MIEO.js} +23 -23
- package/dist/{static-host-WM24RG25.js → static-host-UIR2OLPQ.js} +9 -9
- package/dist/{status-command-RVMOLYPR.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-KGCVRH2J.js → sync-contributions-RBB6JVOL.js} +9 -9
- package/dist/{table-ZBDPKMNH.js → table-MQFVYA4K.js} +8 -8
- package/dist/{tables-command-GAOXJPMA.js → tables-command-5Q4BSUNO.js} +39 -39
- package/dist/{tenant-GKXMOYLK.js → tenant-Q3LPVSSM.js} +10 -10
- package/dist/{tenant-command-FAJ7WZTH.js → tenant-command-BFVU2PEX.js} +84 -84
- package/dist/{test-command-53FRDZ32.js → test-command-F4VUU4QR.js} +40 -40
- package/dist/{tests-C55M5EQS.js → tests-5ZSDFVIJ.js} +6 -6
- package/dist/{token-44CKLYWD.js → token-TERSTNU4.js} +12 -12
- package/dist/{toolchain-hooks-BGZBDFAT.js → toolchain-hooks-QVUZ6HZ4.js} +2 -2
- package/dist/{toolchain-modules-MPPH633S.js → toolchain-modules-FD5ANV2U.js} +5 -5
- package/dist/tracked-backend-B4HTME4S.js +80 -0
- package/dist/{update-check-Q4HJHHL5.js → update-check-O4C2LCZH.js} +53 -53
- package/dist/{upgrade-command-C63HIBVH.js → upgrade-command-NVFWLMTA.js} +56 -56
- package/dist/{whoami-command-WC5EKB4W.js → whoami-command-YKNTISIV.js} +15 -15
- package/dist/{workspace-EJVWTIWX.js → workspace-GGVGE2S5.js} +5 -5
- package/dist/{workspace-binding-BRPPUSWG.js → workspace-binding-OS4ZOX4S.js} +14 -14
- package/dist/{workspace-command-Y6STVPYO.js → workspace-command-GTUNVN7K.js} +77 -77
- package/dist/{workspace-env-SIINWNMP.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-UKEO7R7O.js → xanosdk-import-E3WSIYUE.js} +9 -9
- package/dist/{xanosdk-project-MQTZKITV.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 +14 -14
- package/guides/marketplace.md +7 -4
- 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-WFKGILLY.js +0 -127
- package/dist/local-engine-choice-OXULXWEP.js +0 -79
- package/dist/operation-outcome-V4FUJI7V.js +0 -51
- package/dist/promote-command-IPDH5OBT.js +0 -141
- package/dist/tracked-backend-AJLHRGLF.js +0 -80
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
declaredDependencies,
|
|
3
3
|
readProjectManifest,
|
|
4
4
|
readToolchainBlock
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DXUICABI.js";
|
|
6
6
|
import {
|
|
7
7
|
localPackageName,
|
|
8
8
|
packageNameOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M7GJ6YUF.js";
|
|
10
10
|
import {
|
|
11
11
|
parseJsonAnswer,
|
|
12
12
|
serverMessage,
|
|
13
13
|
statusLabel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HLQH3AXB.js";
|
|
15
15
|
import {
|
|
16
16
|
readEnvVar
|
|
17
17
|
} from "./chunk-X2NL4KUO.js";
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
CliError,
|
|
20
20
|
EXIT_SOURCE_UNRESOLVABLE,
|
|
21
21
|
info
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XNZURZ7T.js";
|
|
23
23
|
import {
|
|
24
24
|
suggest
|
|
25
25
|
} from "./chunk-UTI5G6OJ.js";
|
|
26
26
|
|
|
27
27
|
// src/emit/marketplace-catalogue.ts
|
|
28
|
-
var DEFAULT_BASE_URL = "https://
|
|
28
|
+
var DEFAULT_BASE_URL = "https://xo2z-4vn5-mdxv.dev.xano.io";
|
|
29
29
|
var CATALOGUE_TIMEOUT_MS = 3e4;
|
|
30
30
|
function baseUrl() {
|
|
31
31
|
return readEnvVar("XANOSDK_MARKETPLACE_URL") ?? DEFAULT_BASE_URL;
|
|
@@ -76,8 +76,7 @@ function projectModule(raw) {
|
|
|
76
76
|
requirements: projectRequirements(raw.requirements),
|
|
77
77
|
register_snippet: asString(raw.register_snippet),
|
|
78
78
|
agent_prompt: asString(raw.agent_prompt),
|
|
79
|
-
listed: asBoolean(raw.listed)
|
|
80
|
-
deleted: asBoolean(raw.deleted)
|
|
79
|
+
listed: asBoolean(raw.listed)
|
|
81
80
|
};
|
|
82
81
|
}
|
|
83
82
|
var ModuleNotFoundError = class extends Error {
|
|
@@ -106,7 +105,7 @@ function isCatalogueOutage(err) {
|
|
|
106
105
|
async function read(path, params) {
|
|
107
106
|
let url;
|
|
108
107
|
try {
|
|
109
|
-
url = new URL(
|
|
108
|
+
url = new URL(baseUrl().replace(/\/+$/, "") + path);
|
|
110
109
|
} catch {
|
|
111
110
|
throw new Error(
|
|
112
111
|
`XANOSDK_MARKETPLACE_URL is not a valid URL: ${JSON.stringify(process.env.XANOSDK_MARKETPLACE_URL)}`
|
|
@@ -158,7 +157,7 @@ function expectArray(value, path) {
|
|
|
158
157
|
}
|
|
159
158
|
async function fetchCatalogue() {
|
|
160
159
|
const path = "/api:marketplace/plugins";
|
|
161
|
-
return expectArray(await read(path), path).filter((raw) => raw.
|
|
160
|
+
return expectArray(await read(path), path).filter((raw) => raw.listed !== false).map(projectModule);
|
|
162
161
|
}
|
|
163
162
|
var SEARCHED = ["title", "slug", "npm_package", "tagline", "description"];
|
|
164
163
|
async function searchCatalogue(query) {
|
|
@@ -285,7 +284,7 @@ async function resolveMarketplaceSpec(spec, command) {
|
|
|
285
284
|
const message = `\`${command}\`: could not reach the Xano SDK marketplace to confirm that ${name} is a module (${err instanceof Error ? err.message : String(err)}), so nothing was installed. An \`${FIRST_PARTY_SCOPE}\` module installs by its full name without it.`;
|
|
286
285
|
throw isCatalogueOutage(err) ? new CatalogueUnreachableError(message) : new Error(message);
|
|
287
286
|
}
|
|
288
|
-
if (mod.
|
|
287
|
+
if (mod.listed === false) {
|
|
289
288
|
throw new MarketplaceModuleNotFoundError(
|
|
290
289
|
`\`${command}\`: ${mod.npm_package ?? name} has been removed from the Xano SDK marketplace, so nothing was installed. Run \`xanosdk marketplace list\` for the modules that are published.`
|
|
291
290
|
);
|
|
@@ -341,7 +340,7 @@ async function resolveProjectModuleListing(spec, dir) {
|
|
|
341
340
|
} catch (err) {
|
|
342
341
|
return { pkg: spec, listing: err instanceof ModuleNotFoundError ? "unlisted" : "unknown" };
|
|
343
342
|
}
|
|
344
|
-
if (mod.
|
|
343
|
+
if (mod.listed === false && !known.has(mod.npm_package ?? spec)) return { pkg: spec, listing: "unlisted" };
|
|
345
344
|
const pkg = mod.npm_package ?? spec;
|
|
346
345
|
if (pkg !== spec) info(`${spec} is the marketplace module ${pkg}.`);
|
|
347
346
|
return { pkg, listing: known.has(pkg) ? "project" : "catalogue" };
|
|
@@ -360,7 +359,7 @@ async function unlistedModuleError(command, name) {
|
|
|
360
359
|
}
|
|
361
360
|
async function withCatalogueRerun(err, args, command) {
|
|
362
361
|
if (!isCatalogueOutage(err)) return err;
|
|
363
|
-
const { retryCommand } = await import("./retry-command-
|
|
362
|
+
const { retryCommand } = await import("./retry-command-JRGMZZAC.js");
|
|
364
363
|
const rerun = retryCommand(args, { command }).command;
|
|
365
364
|
return new CliError("SDK_ERROR", `${err.message}
|
|
366
365
|
Run \`${rerun}\` again once it answers.`, {
|
|
@@ -387,4 +386,4 @@ export {
|
|
|
387
386
|
unlistedModuleError,
|
|
388
387
|
withCatalogueRerun
|
|
389
388
|
};
|
|
390
|
-
//# sourceMappingURL=chunk-
|
|
389
|
+
//# sourceMappingURL=chunk-MYLPOVX6.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureExportGitignored
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3WHWOKU4.js";
|
|
4
4
|
import {
|
|
5
5
|
andList
|
|
6
6
|
} from "./chunk-622HUCZT.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
warn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XNZURZ7T.js";
|
|
11
11
|
|
|
12
12
|
// src/emit/output-target.ts
|
|
13
13
|
import { accessSync, chmodSync, constants, mkdirSync, statSync, writeFileSync } from "fs";
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
secretsPhrase,
|
|
126
126
|
assertWritableTarget
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-N6BWB35H.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
backendDirIn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AGD7F7YI.js";
|
|
4
4
|
import {
|
|
5
5
|
shellWord
|
|
6
6
|
} from "./chunk-FWD7AL6N.js";
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-EUUUMY7J.js";
|
|
10
10
|
import {
|
|
11
11
|
pointerRootFor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JZWUAEMO.js";
|
|
13
13
|
import {
|
|
14
14
|
UsageError,
|
|
15
15
|
setTypedCwd
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XNZURZ7T.js";
|
|
17
17
|
|
|
18
18
|
// src/emit/xanosdk-project.ts
|
|
19
19
|
import { existsSync, realpathSync, statSync } from "fs";
|
|
@@ -32,7 +32,7 @@ function projectDirFrom(start) {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
var RELATIVE_PATH_ARGS = ["out", "lockPath", "entryPath", "static", "bundle", "envFile", "secretsFile", "backendDir", "emit", "path"];
|
|
35
|
-
var PATH_VARS = ["XANO_CONFIG", "XANO_GLOBAL_CONFIG", "XANO_CLIENT_FILE", "XANOSDK_UPDATE_CACHE", "XANOSDK_PROVE_DIFF", "
|
|
35
|
+
var PATH_VARS = ["XANO_CONFIG", "XANO_GLOBAL_CONFIG", "XANO_CLIENT_FILE", "XANOSDK_UPDATE_CACHE", "XANOSDK_PROVE_DIFF", "XANOSDK_ENGINE_HOME", "XANOSDK_ENGINE_OVERRIDE"];
|
|
36
36
|
function enterProjectRoot(args, cwd = process.cwd(), positional) {
|
|
37
37
|
const here = resolve(cwd);
|
|
38
38
|
const at = positional === "verb-path" ? 1 : 0;
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
RELATIVE_PATH_ARGS,
|
|
155
155
|
enterProjectRoot
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=chunk-
|
|
157
|
+
//# sourceMappingURL=chunk-NGAODDLX.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
keptDuplicates,
|
|
3
3
|
replacedRegistrations,
|
|
4
4
|
reportSuperseded
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4QFBEKXI.js";
|
|
6
6
|
import {
|
|
7
7
|
rerenderEnvExample
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NUU76247.js";
|
|
9
9
|
import {
|
|
10
10
|
carriedSeedRows,
|
|
11
11
|
decodeBundle,
|
|
@@ -17,48 +17,48 @@ import {
|
|
|
17
17
|
verifyPulledTree,
|
|
18
18
|
withSourceIdentities,
|
|
19
19
|
writeDocumentationTokens
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LZDA6SVD.js";
|
|
21
21
|
import {
|
|
22
22
|
confirm
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AESE434J.js";
|
|
24
24
|
import {
|
|
25
25
|
fetchSourceArchive
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PIPIA7K7.js";
|
|
27
27
|
import {
|
|
28
28
|
decodeWorkspaceArchive,
|
|
29
29
|
encodeWorkspaceArchive
|
|
30
30
|
} from "./chunk-3DRXWLJ5.js";
|
|
31
31
|
import {
|
|
32
32
|
ensureSecretPathGitignored
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3WHWOKU4.js";
|
|
34
34
|
import {
|
|
35
35
|
readVersion,
|
|
36
36
|
refreshAgentGuidance
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-S5KQIFKJ.js";
|
|
38
38
|
import {
|
|
39
39
|
WORKSPACE_ENV_BASENAME,
|
|
40
40
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
41
41
|
namesInEnvExample,
|
|
42
42
|
readWorkspaceEnvFile
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LLS2WO2K.js";
|
|
44
44
|
import {
|
|
45
45
|
memoCredential,
|
|
46
46
|
refuseProfileForLocal,
|
|
47
47
|
selectBackend
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-KUU7T4ZE.js";
|
|
49
49
|
import {
|
|
50
50
|
getAccessToken
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-CJ76PSJT.js";
|
|
52
52
|
import {
|
|
53
53
|
requireBackendSlot
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-F3557PVM.js";
|
|
55
55
|
import {
|
|
56
56
|
contextFlags
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-G57RYMKB.js";
|
|
58
58
|
import {
|
|
59
59
|
backendDirIn,
|
|
60
60
|
resolveBackendDir
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-AGD7F7YI.js";
|
|
62
62
|
import {
|
|
63
63
|
CODEGEN_MARKER,
|
|
64
64
|
DECODE_MARKER,
|
|
@@ -73,15 +73,15 @@ import {
|
|
|
73
73
|
readDecodeRecord,
|
|
74
74
|
removeEmptiedDirs,
|
|
75
75
|
removeFiles
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-F6IKWAIU.js";
|
|
77
77
|
import {
|
|
78
78
|
readLockFile,
|
|
79
79
|
writeLockFile
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-SQPIECXD.js";
|
|
81
81
|
import {
|
|
82
82
|
decodeMarkerHead,
|
|
83
83
|
decodeMarkerWith
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-M6ZFSTIZ.js";
|
|
85
85
|
import {
|
|
86
86
|
CliError,
|
|
87
87
|
UsageError,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
terminalText,
|
|
95
95
|
warn,
|
|
96
96
|
writeJson
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-XNZURZ7T.js";
|
|
98
98
|
import {
|
|
99
99
|
WORKSPACE_SECRETS_BASENAME
|
|
100
100
|
} from "./chunk-3JDU4VRL.js";
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
lockKey,
|
|
105
105
|
lockNameForObject,
|
|
106
106
|
withObjects
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-OKNE3TWU.js";
|
|
108
108
|
import {
|
|
109
109
|
shellQuote
|
|
110
110
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -299,7 +299,7 @@ async function runPullCommand(args) {
|
|
|
299
299
|
step(`Reading ${raw}`);
|
|
300
300
|
const fetched = args.branch !== void 0 ? { archive: encodeWorkspaceArchive(JSON.stringify(await fetchWorkspaceBundle(await credential(), args.branch))), provenance: "workspace", label: `workspace branch "${args.branch.trim()}"` } : await fetchSourceArchive(credential, raw, cwd);
|
|
301
301
|
const bundle = decodeWorkspaceArchive(fetched.archive);
|
|
302
|
-
const keptName = source.kind === "workspace" || source.kind === "local
|
|
302
|
+
const keptName = source.kind === "workspace" || source.kind === "local" ? void 0 : projectWorkspaceName(join(cwd, backendDir, "index.ts"));
|
|
303
303
|
const project = decodeBundle(bundle, {
|
|
304
304
|
secretsFile: `${backendDir}/${WORKSPACE_SECRETS_BASENAME}`,
|
|
305
305
|
writesSecrets: args.noSecrets !== true,
|
|
@@ -420,7 +420,7 @@ async function runPullCommand(args) {
|
|
|
420
420
|
);
|
|
421
421
|
}
|
|
422
422
|
if (args.yes !== true) {
|
|
423
|
-
const { yesRerun } = await import("./retry-command-
|
|
423
|
+
const { yesRerun } = await import("./retry-command-JRGMZZAC.js");
|
|
424
424
|
const { rerun, note } = yesRerun(args, "pull");
|
|
425
425
|
const ok = await confirm(`Replace ${backendDir}/ from ${fetched.label}?`, {
|
|
426
426
|
flag: "--yes",
|
|
@@ -887,11 +887,11 @@ function envFillRemedy(kind, args, one = false) {
|
|
|
887
887
|
return `a release carries no env values, so fill ${them} in by hand, or read ${them} from a running backend with \`xanosdk env pull --from <backend>\`.`;
|
|
888
888
|
}
|
|
889
889
|
const from = raw === void 0 ? "" : ` --from ${shellQuote(raw)}`;
|
|
890
|
-
const flags = kind === "local
|
|
890
|
+
const flags = kind === "local" ? "" : contextFlags(args);
|
|
891
891
|
return `fill ${them} in, or run \`xanosdk env pull${from}${flags}\`.`;
|
|
892
892
|
}
|
|
893
893
|
async function needsYes(args, head, why, details) {
|
|
894
|
-
const { yesRerun } = await import("./retry-command-
|
|
894
|
+
const { yesRerun } = await import("./retry-command-JRGMZZAC.js");
|
|
895
895
|
const { rerun, note } = yesRerun(args, "pull");
|
|
896
896
|
return new CliError("SDK_USAGE", `${head} Re-run as \`${rerun}\` ${why}.${note}`, {
|
|
897
897
|
exitCode: 1,
|
|
@@ -920,4 +920,4 @@ export {
|
|
|
920
920
|
projectWorkspaceName,
|
|
921
921
|
envFillRemedy
|
|
922
922
|
};
|
|
923
|
-
//# sourceMappingURL=chunk-
|
|
923
|
+
//# sourceMappingURL=chunk-NNB7VUCH.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envExampleNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LZDA6SVD.js";
|
|
4
4
|
import {
|
|
5
5
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
6
6
|
renderWorkspaceEnvExample
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LLS2WO2K.js";
|
|
8
8
|
import {
|
|
9
9
|
atomicWrite
|
|
10
10
|
} from "./chunk-LLNZGEFK.js";
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
refreshEnvExample,
|
|
55
55
|
bundleEnvNames
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-NUU76247.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addDependency,
|
|
3
3
|
removeDependency
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3VX7VAQT.js";
|
|
5
5
|
import {
|
|
6
6
|
condenseNpmError,
|
|
7
7
|
npmViewVersion
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-FWD7AL6N.js";
|
|
12
12
|
import {
|
|
13
13
|
isLocalSpecifier
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MYLPOVX6.js";
|
|
15
15
|
import {
|
|
16
16
|
addArgs,
|
|
17
17
|
installSite,
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
moduleKind,
|
|
26
26
|
packageNameOf,
|
|
27
27
|
readInstalledManifest
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-M7GJ6YUF.js";
|
|
29
29
|
import {
|
|
30
30
|
UsageError,
|
|
31
31
|
spinner,
|
|
32
32
|
step,
|
|
33
33
|
success,
|
|
34
34
|
warn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XNZURZ7T.js";
|
|
36
36
|
|
|
37
37
|
// src/emit/init-modules.ts
|
|
38
38
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -448,7 +448,7 @@ async function sdkPeerSkewOf(dir, pkg) {
|
|
|
448
448
|
const manifest = readInstalledManifest(dir, pkg);
|
|
449
449
|
if (manifest === null) return null;
|
|
450
450
|
const [{ sdkPeerSkew }, { readVersion }] = await Promise.all([
|
|
451
|
-
import("./toolchain-modules-
|
|
451
|
+
import("./toolchain-modules-FD5ANV2U.js"),
|
|
452
452
|
import("./cli.js")
|
|
453
453
|
]);
|
|
454
454
|
const sdkVersion = readVersion();
|
|
@@ -480,4 +480,4 @@ export {
|
|
|
480
480
|
inProject,
|
|
481
481
|
installModules
|
|
482
482
|
};
|
|
483
|
-
//# sourceMappingURL=chunk-
|
|
483
|
+
//# sourceMappingURL=chunk-OGUMHW2X.js.map
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
httpFailure,
|
|
13
13
|
isTimeoutError,
|
|
14
14
|
statusLabel
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HLQH3AXB.js";
|
|
16
16
|
import {
|
|
17
17
|
pointerRootFor,
|
|
18
18
|
resolveProjectProfile
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JZWUAEMO.js";
|
|
20
20
|
import {
|
|
21
21
|
atomicWrite,
|
|
22
22
|
linkTarget
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_PROFILE,
|
|
26
26
|
resolveActiveProfile
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MF4W6FHU.js";
|
|
28
28
|
import {
|
|
29
29
|
readEnvVar
|
|
30
30
|
} from "./chunk-X2NL4KUO.js";
|
|
31
31
|
import {
|
|
32
32
|
UsageError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-XNZURZ7T.js";
|
|
34
34
|
import {
|
|
35
35
|
shellQuote
|
|
36
36
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -450,7 +450,7 @@ function resolveAuthFilePath(args, mode = "read") {
|
|
|
450
450
|
if (explicit !== void 0 && args.local && resolve(explicit) !== localAuthFilePath()) {
|
|
451
451
|
const named = args.authFile !== void 0 ? `\`--config ${explicit}\`` : `XANO_CONFIG=${explicit}`;
|
|
452
452
|
throw new UsageError(
|
|
453
|
-
`\`--local\` selects the project-local .xano/auth.json and ${named} names another credential file \u2014 they cannot both be the one this command uses. Drop \`--local\`` + (args.authFile !== void 0 ? `, or drop \`--config\`.` : `, or unset XANO_CONFIG.`)
|
|
453
|
+
`\`--local-auth\` selects the project-local .xano/auth.json and ${named} names another credential file \u2014 they cannot both be the one this command uses. Drop \`--local-auth\`` + (args.authFile !== void 0 ? `, or drop \`--config\`.` : `, or unset XANO_CONFIG.`)
|
|
454
454
|
);
|
|
455
455
|
}
|
|
456
456
|
if (explicit !== void 0) {
|
|
@@ -698,7 +698,7 @@ function credentialFileFlag(path) {
|
|
|
698
698
|
return abs === resolve(byEnv) ? "" : ` --config ${shellQuote(abs)}`;
|
|
699
699
|
}
|
|
700
700
|
if (abs === resolve(globalAuthFilePath())) return "";
|
|
701
|
-
if (abs === localAuthFilePath()) return " --local";
|
|
701
|
+
if (abs === localAuthFilePath()) return " --local-auth";
|
|
702
702
|
return ` --config ${shellQuote(abs)}`;
|
|
703
703
|
}
|
|
704
704
|
function loginCommand(profile, target = {}, extra = []) {
|
|
@@ -1189,4 +1189,4 @@ export {
|
|
|
1189
1189
|
addGitignoreRule,
|
|
1190
1190
|
gitSaysIgnored
|
|
1191
1191
|
};
|
|
1192
|
-
//# sourceMappingURL=chunk-
|
|
1192
|
+
//# sourceMappingURL=chunk-OJPZEUPH.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZSO4T2G.js";
|
|
4
4
|
import {
|
|
5
5
|
isPrivateLibraryRow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VQPDATQT.js";
|
|
7
7
|
import {
|
|
8
8
|
REFERENCEABLE_KIND_PAYLOAD_KEYS,
|
|
9
9
|
rawDeriveGuid
|
|
@@ -984,4 +984,4 @@ export {
|
|
|
984
984
|
withoutGuidSources,
|
|
985
985
|
mergeObserved
|
|
986
986
|
};
|
|
987
|
-
//# sourceMappingURL=chunk-
|
|
987
|
+
//# sourceMappingURL=chunk-OKNE3TWU.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
installedCliAt,
|
|
10
10
|
pathsShownFrom
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XNZURZ7T.js";
|
|
12
12
|
|
|
13
13
|
// src/emit/project-sdk.ts
|
|
14
14
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
installedCliCommand,
|
|
88
88
|
skewNote
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-OVV2HXJ6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exportWorkspaceBundle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XIABDKFQ.js";
|
|
4
4
|
import {
|
|
5
5
|
encodeWorkspaceArchive,
|
|
6
6
|
readArchiveEntries
|
|
@@ -10,23 +10,23 @@ import {
|
|
|
10
10
|
} from "./chunk-X4DVXBFY.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveSource
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JXKO6JT7.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadRelease
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3BJYQGAZ.js";
|
|
17
17
|
import {
|
|
18
18
|
backendDirIn
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AGD7F7YI.js";
|
|
20
20
|
import {
|
|
21
21
|
BARE,
|
|
22
22
|
UsageError,
|
|
23
23
|
isKindShaped,
|
|
24
24
|
parseSource,
|
|
25
25
|
relForwardSlash
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XNZURZ7T.js";
|
|
27
27
|
import {
|
|
28
28
|
calcSignatureJson
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XJU6UAFV.js";
|
|
30
30
|
|
|
31
31
|
// src/emit/deploy-source.ts
|
|
32
32
|
import { existsSync } from "fs";
|
|
@@ -36,7 +36,7 @@ var DEPLOY_SOURCE_KINDS = [
|
|
|
36
36
|
"ephemeral",
|
|
37
37
|
"tenant",
|
|
38
38
|
"workspace",
|
|
39
|
-
"local
|
|
39
|
+
"local"
|
|
40
40
|
];
|
|
41
41
|
var ENTRY_FILE = "index.ts";
|
|
42
42
|
function looksLikeSource(raw) {
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
gatedApiGroups,
|
|
145
145
|
asWorkspaceArchive
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-PIPIA7K7.js.map
|
|
@@ -26,7 +26,7 @@ function assertLoopbackUrl(url, what) {
|
|
|
26
26
|
if (isLoopbackUrl(url)) return;
|
|
27
27
|
throw new Error(
|
|
28
28
|
`${what} reports a url this SDK will not send a token to: ${url}
|
|
29
|
-
A
|
|
29
|
+
A Xano Engine has to serve loopback over http on a port of its own \u2014 ${LOOPBACK_HOSTS.join(", ")} \u2014 and anything else is reachable from off this machine. Stop that engine and start a fresh one without binding it to all interfaces.`
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
function requireString(raw, key, source) {
|
|
@@ -34,7 +34,7 @@ function requireString(raw, key, source) {
|
|
|
34
34
|
if (typeof value !== "string" || value === "") {
|
|
35
35
|
throw new Error(
|
|
36
36
|
`${source} is missing \`${key}\`, or gave it as something other than text.
|
|
37
|
-
That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local
|
|
37
|
+
That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local update\`.`
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
return value;
|
|
@@ -44,7 +44,7 @@ function requireNumber(raw, key, source) {
|
|
|
44
44
|
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
45
45
|
throw new Error(
|
|
46
46
|
`${source} is missing \`${key}\`, or gave it as something other than a number.
|
|
47
|
-
That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local
|
|
47
|
+
That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local update\`.`
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
return value;
|
|
@@ -53,7 +53,7 @@ function readEngine(value, source) {
|
|
|
53
53
|
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
54
54
|
throw new Error(
|
|
55
55
|
`${source} did not print an engine description.
|
|
56
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local
|
|
56
|
+
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
const raw = value;
|
|
@@ -77,7 +77,7 @@ function parseEngineHandshake(stdout) {
|
|
|
77
77
|
} catch {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`${HANDSHAKE_SOURCE} did not print an engine description.
|
|
80
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local
|
|
80
|
+
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
83
|
const engine = readEngine(value, HANDSHAKE_SOURCE);
|
|
@@ -93,13 +93,13 @@ function parseEngineListing(stdout) {
|
|
|
93
93
|
} catch {
|
|
94
94
|
throw new Error(
|
|
95
95
|
`${LISTING_SOURCE} was not readable.
|
|
96
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local
|
|
96
|
+
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
if (!Array.isArray(value)) {
|
|
100
100
|
throw new Error(
|
|
101
101
|
`${LISTING_SOURCE} was not a list.
|
|
102
|
-
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local
|
|
102
|
+
Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache clear\`, then \`xanosdk deploy --local\`.`
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
return value.filter((entry) => !isForeignEngine(entry)).map((entry) => readEngine(entry, LISTING_SOURCE));
|
|
@@ -120,7 +120,7 @@ function resolveEnginePlatform(platform = process.platform, arch = process.arch)
|
|
|
120
120
|
const pair = `${platform}-${arch}`;
|
|
121
121
|
return SUPPORTED_PLATFORMS.find((p) => p === pair);
|
|
122
122
|
}
|
|
123
|
-
var LOCAL_ENGINE_HOME_ENV = "
|
|
123
|
+
var LOCAL_ENGINE_HOME_ENV = "XANOSDK_ENGINE_HOME";
|
|
124
124
|
function localEngineHome(env = process.env) {
|
|
125
125
|
return readEnvVar(LOCAL_ENGINE_HOME_ENV, env) ?? join(homedir(), ".xanosdk", "local-engine");
|
|
126
126
|
}
|
|
@@ -145,7 +145,7 @@ function legacyRuntimeDirs(env = process.env, platform = process.platform) {
|
|
|
145
145
|
function localEngineBinDir(env = process.env) {
|
|
146
146
|
return join(localEngineHome(env), "bin");
|
|
147
147
|
}
|
|
148
|
-
var LOCAL_ENGINE_OVERRIDE_ENV = "
|
|
148
|
+
var LOCAL_ENGINE_OVERRIDE_ENV = "XANOSDK_ENGINE_OVERRIDE";
|
|
149
149
|
var OVERRIDE_VERSION = /^v?\d+\.\d+\.\d+$/;
|
|
150
150
|
function overrideSpec(value) {
|
|
151
151
|
if (OVERRIDE_VERSION.test(value)) {
|
|
@@ -172,7 +172,7 @@ var ARCHIVE_SUFFIX = /\.(tar\.gz|tgz|gz|tar|zip)$/i;
|
|
|
172
172
|
function engineOverrideRefusal(value, where, env = process.env) {
|
|
173
173
|
if (/^https?:\/\//i.test(value)) {
|
|
174
174
|
if (isTrustedEngineUrl(value)) return void 0;
|
|
175
|
-
return `${where} names an engine over plain http on a host that is not this machine. An engine is a program this command runs, so fetched that way anyone on the network path could swap it (and read
|
|
175
|
+
return `${where} names an engine over plain http on a host that is not this machine. An engine is a program this command runs, so fetched that way anyone on the network path could swap it (and read XANOSDK_ENGINE_TOKEN if it is set). Nothing was requested.
|
|
176
176
|
Serve the archive over https://, or over http:// from 127.0.0.1, ::1 or localhost.`;
|
|
177
177
|
}
|
|
178
178
|
const scheme = /^([a-z][a-z0-9+.-]*):\/\//i.exec(value);
|
|
@@ -195,7 +195,7 @@ Check the path \u2014 ${where} is read exactly as passed, with \`~\` and relativ
|
|
|
195
195
|
}
|
|
196
196
|
var MISSING_ARCHIVE = "There is no engine archive to read at";
|
|
197
197
|
function engineSourceRefusal(flagValue, env = process.env) {
|
|
198
|
-
if (flagValue !== void 0 && flagValue !== "") return engineOverrideRefusal(flagValue, "`--local
|
|
198
|
+
if (flagValue !== void 0 && flagValue !== "") return engineOverrideRefusal(flagValue, "`--local`", env);
|
|
199
199
|
const fromEnv = readEnvVar(LOCAL_ENGINE_OVERRIDE_ENV, env)?.trim();
|
|
200
200
|
if (fromEnv === void 0) return void 0;
|
|
201
201
|
return engineOverrideRefusal(fromEnv, LOCAL_ENGINE_OVERRIDE_ENV, env);
|
|
@@ -234,4 +234,4 @@ export {
|
|
|
234
234
|
engineOverrideFromEnv,
|
|
235
235
|
resolveEngineSource
|
|
236
236
|
};
|
|
237
|
-
//# sourceMappingURL=chunk-
|
|
237
|
+
//# sourceMappingURL=chunk-PL7AIAWS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
localEngineHome
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PL7AIAWS.js";
|
|
4
4
|
import {
|
|
5
5
|
filledAt,
|
|
6
6
|
withValidFilled
|
|
@@ -141,4 +141,4 @@ export {
|
|
|
141
141
|
clearEngineRecordsNamed,
|
|
142
142
|
clearEngineRecordsStillMatching
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=chunk-
|
|
144
|
+
//# sourceMappingURL=chunk-Q22BMRPF.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-X4DVXBFY.js";
|
|
7
7
|
import {
|
|
8
8
|
ImportHttpError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5XVBT6CQ.js";
|
|
10
10
|
import {
|
|
11
11
|
describeWrite
|
|
12
12
|
} from "./chunk-4KHEMC32.js";
|
|
@@ -26,16 +26,16 @@ import {
|
|
|
26
26
|
statusLabel,
|
|
27
27
|
transportTarget,
|
|
28
28
|
writeStatusAftermath
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HLQH3AXB.js";
|
|
30
30
|
import {
|
|
31
31
|
calcSignatureJson,
|
|
32
32
|
signatureHolds
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-XJU6UAFV.js";
|
|
34
34
|
import {
|
|
35
35
|
HOSTED_FILE_SCHEME,
|
|
36
36
|
HOSTED_ICON_KINDS,
|
|
37
37
|
HOSTED_ROW_PATH_PREFIX
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VQPDATQT.js";
|
|
39
39
|
|
|
40
40
|
// src/deploy/xanosdk-import.ts
|
|
41
41
|
var IMPORT_TIMEOUT_MS = 12e4;
|
|
@@ -461,7 +461,7 @@ async function post(auth, url, opts, action) {
|
|
|
461
461
|
const aftermath = !writes ? `A dry run writes nothing, so ${target} is untouched. Retry when the instance is reachable.` : opts.mode === "replace" ? `The request did not complete, so the import may or may not have landed, in whole or in part. A replace rewrites all of ${target}, so it is safe to run again once the instance is reachable.` : `The request did not complete, so the import may or may not have landed, in whole or in part.` + (opts.stateCheck !== void 0 ? ` ${opts.stateCheck}` : "");
|
|
462
462
|
const where = `${transportTarget(url)}${opts.label !== void 0 ? ` (${opts.label})` : ""}`;
|
|
463
463
|
if (res === void 0) {
|
|
464
|
-
const { classifyFailure } = await import("./operation-outcome-
|
|
464
|
+
const { classifyFailure } = await import("./operation-outcome-GNDD35WL.js");
|
|
465
465
|
if (writes && !isTimeoutError(failure) && classifyFailure(failure, { writeSent: true }) === "no") {
|
|
466
466
|
const untrusted = certificateFailureCode(failure) !== void 0;
|
|
467
467
|
throw new ImportNotSentError(
|
|
@@ -557,4 +557,4 @@ export {
|
|
|
557
557
|
withDefaultBranchPointer,
|
|
558
558
|
xanosdkImport
|
|
559
559
|
};
|
|
560
|
-
//# sourceMappingURL=chunk-
|
|
560
|
+
//# sourceMappingURL=chunk-QOLOQ35F.js.map
|