@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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listTenants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4GDEEY2U.js";
|
|
4
4
|
import {
|
|
5
5
|
listEphemeral
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QZTJ2556.js";
|
|
7
7
|
import {
|
|
8
8
|
shellWord
|
|
9
9
|
} from "./chunk-FWD7AL6N.js";
|
|
10
10
|
import {
|
|
11
11
|
safeText
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XNZURZ7T.js";
|
|
13
13
|
|
|
14
14
|
// src/emit/display-name-hint.ts
|
|
15
15
|
function isShared(owner) {
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
displayNameHint,
|
|
118
118
|
selectorFix
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-KQLACS4Q.js.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readDeployed
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HOOOOJJP.js";
|
|
4
4
|
import {
|
|
5
5
|
isProjectDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NGAODDLX.js";
|
|
7
7
|
import {
|
|
8
8
|
LookupFailedError,
|
|
9
9
|
SourceError,
|
|
10
10
|
resolveSource
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JXKO6JT7.js";
|
|
12
12
|
import {
|
|
13
13
|
NotSignedInError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CJ76PSJT.js";
|
|
15
15
|
import {
|
|
16
16
|
otherCredentialRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V4IBHDIY.js";
|
|
18
18
|
import {
|
|
19
19
|
getEngineRecord
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Q22BMRPF.js";
|
|
21
21
|
import {
|
|
22
22
|
commandPath,
|
|
23
23
|
parseSlot,
|
|
24
24
|
refusedKind,
|
|
25
25
|
slotValueMissing
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-F3557PVM.js";
|
|
27
27
|
import {
|
|
28
28
|
getEnvironment,
|
|
29
29
|
readEphemeralState,
|
|
30
30
|
unreadableEphemeralState
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4QBGE3EO.js";
|
|
32
32
|
import {
|
|
33
33
|
ENV_CREDENTIAL_VARS,
|
|
34
34
|
ORIGIN_READ_ONLY_BY_REFRESH,
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
credentialFileFlagFor,
|
|
37
37
|
recordedByEnvCredential,
|
|
38
38
|
typedCredentialFlags
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-G57RYMKB.js";
|
|
40
40
|
import {
|
|
41
41
|
backendDirIn
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-AGD7F7YI.js";
|
|
43
43
|
import {
|
|
44
44
|
globalAuthFilePath,
|
|
45
45
|
localAuthFilePath,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
profileAddCommand,
|
|
48
48
|
readCredentialFile,
|
|
49
49
|
recordedCredentialPath
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-OJPZEUPH.js";
|
|
51
51
|
import {
|
|
52
52
|
UsageError,
|
|
53
53
|
displayPath,
|
|
54
54
|
pastePath,
|
|
55
55
|
sourceSpellings
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-XNZURZ7T.js";
|
|
57
57
|
import {
|
|
58
58
|
shellQuote
|
|
59
59
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -86,7 +86,7 @@ async function selectBackend(slot, raw, ctx) {
|
|
|
86
86
|
}
|
|
87
87
|
const decided = decide({ cwd, pointer, state, scope, engineRecorded: getEngineRecord(cwd, env) !== void 0 }, slot);
|
|
88
88
|
if ("refusal" in decided) {
|
|
89
|
-
const { reachableFirst } = await import("./env-target-
|
|
89
|
+
const { reachableFirst } = await import("./env-target-ZHQUS5BO.js");
|
|
90
90
|
throw await reachableFirst(decided.refusal, scope);
|
|
91
91
|
}
|
|
92
92
|
refuseUnservable(slot, decided.kind);
|
|
@@ -98,7 +98,7 @@ async function resolveBackend(slot, raw, ctx) {
|
|
|
98
98
|
if (source.kind === "file") {
|
|
99
99
|
throw new Error(`Internal: \`${commandPath(slot.command, slot.subcommand)}\` resolved a bundle file; read it before resolving a backend.`);
|
|
100
100
|
}
|
|
101
|
-
if (source.kind === "local
|
|
101
|
+
if (source.kind === "local") refuseProfileForLocal(ctx.profile, [source.kind], slot);
|
|
102
102
|
return resolveSource(source, credential, { ...ctx.deps, cwd: ctx.deps?.cwd ?? process.cwd() }).catch((err) => {
|
|
103
103
|
throw lookupRetry(err, slot);
|
|
104
104
|
});
|
|
@@ -108,9 +108,9 @@ function lookupRetry(err, slot) {
|
|
|
108
108
|
return err.withRerun(`xanosdk ${commandPath(slot.command, slot.subcommand)} \u2026`, " as you ran it");
|
|
109
109
|
}
|
|
110
110
|
function refuseProfileForLocal(profile, kinds, slot, flags = typedCredentialFlags()) {
|
|
111
|
-
if (kinds.some((k) => k !== "local
|
|
112
|
-
const why = "and a
|
|
113
|
-
const or = slot === void 0 ? "or
|
|
111
|
+
if (kinds.some((k) => k !== "local")) return;
|
|
112
|
+
const why = "and a Xano Engine takes none \u2014 it is reached with the engine's own bearer.";
|
|
113
|
+
const or = slot === void 0 ? "or add `--ephemeral` to deploy to a hosted backend." : `or ${nameOne(slot, "a hosted backend", true)}.`;
|
|
114
114
|
if (profile !== void 0) {
|
|
115
115
|
throw new UsageError(`\`--profile ${profile}\` selects a Xano credential, ${why} Drop \`--profile\`, ${or}`, hintOpts(slot));
|
|
116
116
|
}
|
|
@@ -118,7 +118,7 @@ function refuseProfileForLocal(profile, kinds, slot, flags = typedCredentialFlag
|
|
|
118
118
|
throw new UsageError(`\`--config ${flags.authFile}\` names a Xano credential file, ${why} Drop \`--config\`, ${or}`, hintOpts(slot));
|
|
119
119
|
}
|
|
120
120
|
if (flags.local === true) {
|
|
121
|
-
throw new UsageError(`\`--local\` selects the project-local Xano credential file, ${why} Drop \`--local\`, ${or}`, hintOpts(slot));
|
|
121
|
+
throw new UsageError(`\`--local-auth\` selects the project-local Xano credential file, ${why} Drop \`--local-auth\`, ${or}`, hintOpts(slot));
|
|
122
122
|
}
|
|
123
123
|
if (flags.authHost !== void 0) {
|
|
124
124
|
throw new UsageError(`\`--origin\` names a Xano sign-in server, ${why} ${ORIGIN_READ_ONLY_BY_REFRESH}`, hintOpts(slot));
|
|
@@ -141,15 +141,15 @@ function readTrackedBackend(opts) {
|
|
|
141
141
|
function decide(facts, slot) {
|
|
142
142
|
const { cwd, pointer, state, scope, engineRecorded } = facts;
|
|
143
143
|
const ephemeralHere = scope !== void 0 && getEnvironment(state, scope) !== void 0;
|
|
144
|
-
if (pointer === "local
|
|
145
|
-
return engineRecorded ? { kind: "local
|
|
144
|
+
if (pointer === "local") {
|
|
145
|
+
return engineRecorded ? { kind: "local", via: "pointer" } : { refusal: noEngineRecorded(slot) };
|
|
146
146
|
}
|
|
147
147
|
if (pointer === "ephemeral") {
|
|
148
148
|
if (scope === void 0) return { refusal: signedOut(slot, state) };
|
|
149
149
|
return ephemeralHere ? { kind: "ephemeral", via: "pointer" } : { refusal: untracked(cwd, state, scope, slot, true) };
|
|
150
150
|
}
|
|
151
151
|
if (ephemeralHere) return { kind: "ephemeral", via: "fallback" };
|
|
152
|
-
if (engineRecorded) return { kind: "local
|
|
152
|
+
if (engineRecorded) return { kind: "local", via: "fallback" };
|
|
153
153
|
if (scope !== void 0) return { refusal: untracked(cwd, state, scope, slot, false) };
|
|
154
154
|
return { refusal: nothingTracked(cwd, slot, Object.keys(state.environments).length > 0, state) };
|
|
155
155
|
}
|
|
@@ -173,7 +173,7 @@ function refuseUnservable(slot, kind) {
|
|
|
173
173
|
}
|
|
174
174
|
var KIND_PHRASE = {
|
|
175
175
|
ephemeral: "an ephemeral",
|
|
176
|
-
"local
|
|
176
|
+
"local": "a Xano Engine"
|
|
177
177
|
};
|
|
178
178
|
function hintOpts(slot) {
|
|
179
179
|
if (slot === void 0) return {};
|
|
@@ -184,7 +184,7 @@ function hintOpts(slot) {
|
|
|
184
184
|
function nameOne(slot, what = "a backend", hostedOnly = false) {
|
|
185
185
|
if (slot === void 0) return `name ${what} on the command explicitly`;
|
|
186
186
|
const spellings = sourceSpellings(
|
|
187
|
-
hostedOnly ? slot.selector.accepted.filter((k) => k !== "local
|
|
187
|
+
hostedOnly ? slot.selector.accepted.filter((k) => k !== "local" && k !== "file") : slot.selector.accepted
|
|
188
188
|
);
|
|
189
189
|
if (!slot.spelling.startsWith("--")) {
|
|
190
190
|
const verb = slot.subcommand === void 0 ? slot.command : `${slot.command} ${slot.subcommand}`;
|
|
@@ -195,8 +195,8 @@ function nameOne(slot, what = "a backend", hostedOnly = false) {
|
|
|
195
195
|
function bothDeploys(cwd) {
|
|
196
196
|
const flags = contextFlags();
|
|
197
197
|
const entry = cwd === void 0 ? "" : soleNestedEntry(cwd);
|
|
198
|
-
const hosted = /(^| )--local( |$)/.test(flags) ? "an ephemeral, with the project-local credential" : "an ephemeral";
|
|
199
|
-
return `\`xanosdk deploy${entry}
|
|
198
|
+
const hosted = /(^| )--local-auth( |$)/.test(flags) ? "an ephemeral, with the project-local credential" : "an ephemeral";
|
|
199
|
+
return `\`xanosdk deploy${entry} --local\` (a Xano Engine on this machine) or \`xanosdk deploy${entry} --ephemeral${flags}\` (${hosted})`;
|
|
200
200
|
}
|
|
201
201
|
function untracked(cwd, state, scope, slot, pointer) {
|
|
202
202
|
const other = otherCredentialRefusal(state, scope, `or ${nameOne(slot)}`, hintOpts(slot));
|
|
@@ -211,7 +211,7 @@ function untracked(cwd, state, scope, slot, pointer) {
|
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
213
|
return new SourceError(
|
|
214
|
-
`This project last deployed to an ephemeral, but the last one is gone (deleted or expired). Run \`xanosdk deploy${contextFlags()}\` to create one \u2014 or \`xanosdk deploy --local
|
|
214
|
+
`This project last deployed to an ephemeral, but the last one is gone (deleted or expired). Run \`xanosdk deploy --ephemeral${contextFlags()}\` to create one \u2014 or \`xanosdk deploy --local\` for a Xano Engine \u2014 or ${nameOne(slot)}.`,
|
|
215
215
|
"gone",
|
|
216
216
|
"ephemeral"
|
|
217
217
|
);
|
|
@@ -234,7 +234,7 @@ function nothingTracked(cwd, slot, ephemeralRecordedElsewhere, state) {
|
|
|
234
234
|
const flags = state === void 0 ? void 0 : recordedCredentialFlags(state);
|
|
235
235
|
const signIn = !ephemeralRecordedElsewhere ? "" : flags !== void 0 ? flags.env ? ` An ephemeral is recorded under ${flags.who} \u2014 set ${ENV_CREDENTIAL_VARS} for that workspace again to reach it.` : flags.signIn ? ` An ephemeral is recorded under ${flags.who}, which no credential file holds \u2014 add it again with ${flags.flags} to reach it.` : ` An ephemeral is recorded under ${flags.who}, and no credential is signed in \u2014 re-run with \`${flags.flags}\` to reach it.` : ` An ephemeral is recorded, but no credential is signed in to look it up \u2014 \`${runLogin()}\` reaches it.`;
|
|
236
236
|
return new NothingTrackedError(
|
|
237
|
-
`This project has no backend to default to: it has not deployed to an ephemeral under this credential or to a
|
|
237
|
+
`This project has no backend to default to: it has not deployed to an ephemeral under this credential or to a Xano Engine from this directory.${signIn} Deploy first with ${bothDeploys(cwd)}, or ${nameOne(slot)}.`,
|
|
238
238
|
hintOpts(slot)
|
|
239
239
|
);
|
|
240
240
|
}
|
|
@@ -295,11 +295,11 @@ function nestedTrackedBackends(cwd) {
|
|
|
295
295
|
return found;
|
|
296
296
|
}
|
|
297
297
|
function noEngineRecorded(slot) {
|
|
298
|
-
const named = slot === void 0 ? "name one on the command" : slot.spelling.startsWith("--") ? `name one with \`${slot.spelling} local
|
|
298
|
+
const named = slot === void 0 ? "name one on the command" : slot.spelling.startsWith("--") ? `name one with \`${slot.spelling} local:<name>\`` : `name one: \`xanosdk ${slot.subcommand === void 0 ? slot.command : `${slot.command} ${slot.subcommand}`} local:<name>\``;
|
|
299
299
|
return new SourceError(
|
|
300
|
-
`This project last deployed to a
|
|
300
|
+
`This project last deployed to a Xano Engine, but no engine is recorded for this directory. Run \`xanosdk deploy --local\` to stand one up, or \`xanosdk local list\` to see what is running and ${named}. \`xanosdk deploy --ephemeral${contextFlags()}\` still deploys to an ephemeral.`,
|
|
301
301
|
"gone",
|
|
302
|
-
"local
|
|
302
|
+
"local"
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
305
|
function signedOut(slot, state) {
|
|
@@ -368,4 +368,4 @@ export {
|
|
|
368
368
|
NothingTrackedError,
|
|
369
369
|
nestedBackendEntries
|
|
370
370
|
};
|
|
371
|
-
//# sourceMappingURL=chunk-
|
|
371
|
+
//# sourceMappingURL=chunk-KUU7T4ZE.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
confirm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AESE434J.js";
|
|
4
4
|
import {
|
|
5
5
|
ProfileNotFoundError,
|
|
6
6
|
describeRefreshAnswer,
|
|
7
7
|
environmentCredentialVars
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CJ76PSJT.js";
|
|
9
9
|
import {
|
|
10
10
|
yesRerun
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z4VN347O.js";
|
|
12
12
|
import {
|
|
13
13
|
OpenIdProvider,
|
|
14
14
|
assertCredentialFileRemovable,
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
resolveScope,
|
|
32
32
|
withCredentialLock,
|
|
33
33
|
writeOrRemoveCredentialFile
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OJPZEUPH.js";
|
|
35
35
|
import {
|
|
36
36
|
findProjectPointer,
|
|
37
37
|
resolveProjectProfile
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-JZWUAEMO.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveActiveProfile
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-MF4W6FHU.js";
|
|
42
42
|
import {
|
|
43
43
|
UsageError,
|
|
44
44
|
detail,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
success,
|
|
51
51
|
warn,
|
|
52
52
|
writeJson
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-XNZURZ7T.js";
|
|
54
54
|
import {
|
|
55
55
|
suggestAll
|
|
56
56
|
} from "./chunk-UTI5G6OJ.js";
|
|
@@ -288,7 +288,7 @@ function refuseIfOnlyInProjectFile(args, authFilePath, selection, names) {
|
|
|
288
288
|
}
|
|
289
289
|
if (held === null || !Object.prototype.hasOwnProperty.call(held.profiles, selection.name)) return;
|
|
290
290
|
throw new ProfileNotFoundError(
|
|
291
|
-
`Profile "${selection.name}" is not in ${authFilePath}, the file \`logout\` clears by default \u2014 it is stored in this project's ${local}. Run \`xanosdk logout --local -p ${selection.name}\` to sign out of it there.`,
|
|
291
|
+
`Profile "${selection.name}" is not in ${authFilePath}, the file \`logout\` clears by default \u2014 it is stored in this project's ${local}. Run \`xanosdk logout --local-auth -p ${selection.name}\` to sign out of it there.`,
|
|
292
292
|
selection,
|
|
293
293
|
names
|
|
294
294
|
);
|
|
@@ -429,4 +429,4 @@ export {
|
|
|
429
429
|
salvageRevocable,
|
|
430
430
|
signInAgain
|
|
431
431
|
};
|
|
432
|
-
//# sourceMappingURL=chunk-
|
|
432
|
+
//# sourceMappingURL=chunk-L3BDO2BI.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
backendDirFor,
|
|
3
3
|
backendDirIn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AGD7F7YI.js";
|
|
5
5
|
import {
|
|
6
6
|
XANO_DIR
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F6IKWAIU.js";
|
|
8
8
|
import {
|
|
9
9
|
projectRootFrom
|
|
10
10
|
} from "./chunk-ROY4YAEQ.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
LocalFileNotFoundError,
|
|
13
13
|
UsageError,
|
|
14
14
|
displayPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XNZURZ7T.js";
|
|
16
16
|
import {
|
|
17
17
|
isRepresentableName
|
|
18
18
|
} from "./chunk-GSGDWJB5.js";
|
|
@@ -242,4 +242,4 @@ export {
|
|
|
242
242
|
namesInEnvExample,
|
|
243
243
|
renderWorkspaceEnvFile
|
|
244
244
|
};
|
|
245
|
-
//# sourceMappingURL=chunk-
|
|
245
|
+
//# sourceMappingURL=chunk-LLS2WO2K.js.map
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
resolveThemeChoice,
|
|
9
9
|
sanitizeAppName,
|
|
10
10
|
templateVarsFor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CV54PASI.js";
|
|
12
12
|
import {
|
|
13
13
|
ROUTES_MANIFEST_BASENAME,
|
|
14
14
|
RouteManifestError,
|
|
15
15
|
planRouteManifest,
|
|
16
16
|
renderPlannedManifest
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TM5LRSBB.js";
|
|
18
18
|
import {
|
|
19
19
|
confirm
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AESE434J.js";
|
|
21
21
|
import {
|
|
22
22
|
CODEGEN_MODULE,
|
|
23
23
|
DecodeContext,
|
|
@@ -57,21 +57,21 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
archiveSeedContent,
|
|
59
59
|
fetchSourceArchive
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PIPIA7K7.js";
|
|
61
61
|
import {
|
|
62
62
|
assertBranchReadSupported,
|
|
63
63
|
exportWorkspaceBundle
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-XIABDKFQ.js";
|
|
65
65
|
import {
|
|
66
66
|
decodeWorkspaceArchive
|
|
67
67
|
} from "./chunk-3DRXWLJ5.js";
|
|
68
68
|
import {
|
|
69
69
|
listBranches,
|
|
70
70
|
requireBranch
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-5RLAF6RL.js";
|
|
72
72
|
import {
|
|
73
73
|
detectInstallMode
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-DEVGLLNZ.js";
|
|
75
75
|
import {
|
|
76
76
|
UNSUPPORTED_SECTIONS,
|
|
77
77
|
decodedCounts,
|
|
@@ -82,47 +82,47 @@ import {
|
|
|
82
82
|
sectionOmission,
|
|
83
83
|
subtractDefaults,
|
|
84
84
|
workspaceKeyOmission
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-MEIJDRHU.js";
|
|
86
86
|
import {
|
|
87
87
|
ensureWorkspaceEnvGitignored,
|
|
88
88
|
requireSecretPathGitignored
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-3WHWOKU4.js";
|
|
90
90
|
import {
|
|
91
91
|
loadDefault,
|
|
92
92
|
readVersion,
|
|
93
93
|
resolveKnowledge
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-S5KQIFKJ.js";
|
|
95
95
|
import {
|
|
96
96
|
WORKSPACE_ENV_BASENAME,
|
|
97
97
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
98
98
|
renderWorkspaceEnvExample,
|
|
99
99
|
renderWorkspaceEnvFile,
|
|
100
100
|
valueProblem
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-LLS2WO2K.js";
|
|
102
102
|
import {
|
|
103
103
|
memoCredential,
|
|
104
104
|
refuseProfileForLocal
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-KUU7T4ZE.js";
|
|
106
106
|
import {
|
|
107
107
|
getAccessToken
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-CJ76PSJT.js";
|
|
109
109
|
import {
|
|
110
110
|
getEngineRecord
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-Q22BMRPF.js";
|
|
112
112
|
import {
|
|
113
113
|
requireBackendSlot
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-F3557PVM.js";
|
|
115
115
|
import {
|
|
116
116
|
SECRETS_FILE_VERSION,
|
|
117
117
|
workspaceSecretsPathIn,
|
|
118
118
|
writeSecretsFile
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-AMBEITWL.js";
|
|
120
120
|
import {
|
|
121
121
|
yesRerun
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-Z4VN347O.js";
|
|
123
123
|
import {
|
|
124
124
|
contextFlags
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-G57RYMKB.js";
|
|
126
126
|
import {
|
|
127
127
|
PRESERVED_ON_REFRESH,
|
|
128
128
|
SHELL_FILES_IN_BACKEND,
|
|
@@ -137,27 +137,27 @@ import {
|
|
|
137
137
|
plannedAgentsMd,
|
|
138
138
|
readDecodeRecord,
|
|
139
139
|
scaffoldProject
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-F6IKWAIU.js";
|
|
141
141
|
import {
|
|
142
142
|
shellWord
|
|
143
143
|
} from "./chunk-FWD7AL6N.js";
|
|
144
144
|
import {
|
|
145
145
|
seedRowsByTableGuid
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-Y76ERHLK.js";
|
|
147
147
|
import {
|
|
148
148
|
readLockFile,
|
|
149
149
|
writeLockFile
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-SQPIECXD.js";
|
|
151
151
|
import {
|
|
152
152
|
readInstalledManifest
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-M7GJ6YUF.js";
|
|
154
154
|
import {
|
|
155
155
|
atomicWrite
|
|
156
156
|
} from "./chunk-LLNZGEFK.js";
|
|
157
157
|
import {
|
|
158
158
|
TEST_EXPECT_TYPES,
|
|
159
159
|
respond
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-S5TEJIGP.js";
|
|
161
161
|
import {
|
|
162
162
|
codegen_entry_exports,
|
|
163
163
|
raw
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
describeOrigin,
|
|
168
168
|
renderCodegenMarker,
|
|
169
169
|
renderCodegenReadme
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-57HMNJGB.js";
|
|
171
171
|
import {
|
|
172
172
|
SUPERSEDED_STATEMENTS,
|
|
173
173
|
supersededBy
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
terminalText,
|
|
189
189
|
warn,
|
|
190
190
|
writeJson
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-XNZURZ7T.js";
|
|
192
192
|
import {
|
|
193
193
|
TOOL_ANNOTATION_WIRE,
|
|
194
194
|
agentTrigger,
|
|
@@ -202,11 +202,11 @@ import {
|
|
|
202
202
|
s,
|
|
203
203
|
tableTrigger,
|
|
204
204
|
workspaceTrigger
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-FV55SRQU.js";
|
|
206
206
|
import {
|
|
207
207
|
parsePathParams,
|
|
208
208
|
unboundPathParams
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-3IYVHVM6.js";
|
|
210
210
|
import {
|
|
211
211
|
DEFAULT_DOCUMENTATION,
|
|
212
212
|
DEFAULT_PREFERENCES,
|
|
@@ -214,10 +214,10 @@ import {
|
|
|
214
214
|
} from "./chunk-6JAEMMZ7.js";
|
|
215
215
|
import {
|
|
216
216
|
MCP_OAUTH_ENV_REF
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-SRX6B544.js";
|
|
218
218
|
import {
|
|
219
219
|
PAYLOAD_ARRAY_KEYS
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-XJU6UAFV.js";
|
|
221
221
|
import {
|
|
222
222
|
CORS_UNMATCHABLE,
|
|
223
223
|
DECODE_ONLY_STATEMENTS,
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
searchConstrainsRows,
|
|
242
242
|
specLabel,
|
|
243
243
|
unmatchableOrigins
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-JSEVKRVJ.js";
|
|
245
245
|
import {
|
|
246
246
|
WORKSPACE_HISTORY_TYPES
|
|
247
247
|
} from "./chunk-ETAZIGNT.js";
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
isRuntimeConditionOp,
|
|
257
257
|
isSearchOp,
|
|
258
258
|
unusableColumns
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-VZ22VUAS.js";
|
|
260
260
|
import {
|
|
261
261
|
AUTHOR_KIND_NAME
|
|
262
262
|
} from "./chunk-VTMTIBKP.js";
|
|
@@ -281,13 +281,13 @@ import {
|
|
|
281
281
|
mergeObserved,
|
|
282
282
|
sdkKindName,
|
|
283
283
|
withObjects
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-OKNE3TWU.js";
|
|
285
285
|
import {
|
|
286
286
|
shellQuote
|
|
287
287
|
} from "./chunk-5ZSO4T2G.js";
|
|
288
288
|
import {
|
|
289
289
|
HOSTED_FILE_SCHEME
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-VQPDATQT.js";
|
|
291
291
|
import {
|
|
292
292
|
encodeMockMap,
|
|
293
293
|
encodeStatement
|
|
@@ -6258,7 +6258,7 @@ function reportMismatches(report, result) {
|
|
|
6258
6258
|
// src/emit/codegen-command.ts
|
|
6259
6259
|
var NO_BRANCH = {
|
|
6260
6260
|
ephemeral: "an ephemeral environment holds the logic it was deployed with, not a branch you can choose between afterwards \u2014 deploy from the branch you want, then read the ephemeral",
|
|
6261
|
-
"local
|
|
6261
|
+
"local": "a Xano Engine holds the logic it was deployed with, not a branch you can choose between afterwards \u2014 deploy from the branch you want, then read the engine",
|
|
6262
6262
|
tenant: "a tenant runs the release it was deployed with, not a branch you can choose between",
|
|
6263
6263
|
release: "a release is one archive already cut from one branch \u2014 cut another from the branch you need",
|
|
6264
6264
|
file: "a bundle file is one archive that was already exported from one branch \u2014 re-export it with `--branch` if you need a different one"
|
|
@@ -6282,7 +6282,7 @@ async function fetchBundle(args, source) {
|
|
|
6282
6282
|
credentialRead
|
|
6283
6283
|
};
|
|
6284
6284
|
}
|
|
6285
|
-
const { projectDirFrom } = await import("./xanosdk-project-
|
|
6285
|
+
const { projectDirFrom } = await import("./xanosdk-project-KH5TZ2KI.js");
|
|
6286
6286
|
const cwd = projectDirFrom(process.cwd()) ?? process.cwd();
|
|
6287
6287
|
const raw2 = "name" in source && source.name !== void 0 ? `${source.kind}:${source.name}` : source.kind;
|
|
6288
6288
|
step(`Reading ${raw2}`);
|
|
@@ -6302,7 +6302,7 @@ async function fetchBundle(args, source) {
|
|
|
6302
6302
|
function originName(source, provenance, cwd) {
|
|
6303
6303
|
const colon = provenance.indexOf(":");
|
|
6304
6304
|
if (colon !== -1) return provenance.slice(colon + 1);
|
|
6305
|
-
if (source.kind === "local
|
|
6305
|
+
if (source.kind === "local") return getEngineRecord(cwd)?.name ?? "local";
|
|
6306
6306
|
return provenance;
|
|
6307
6307
|
}
|
|
6308
6308
|
async function fetchWorkspaceBundle(auth, typedBranch) {
|
|
@@ -6640,7 +6640,7 @@ function missingDependency(err) {
|
|
|
6640
6640
|
return tsx ? "tsx" : void 0;
|
|
6641
6641
|
}
|
|
6642
6642
|
async function runInitFromCommand(args, source) {
|
|
6643
|
-
if (source.kind === "local
|
|
6643
|
+
if (source.kind === "local") {
|
|
6644
6644
|
refuseProfileForLocal(args.profile, [source.kind], requireBackendSlot("init", void 0, "from"));
|
|
6645
6645
|
}
|
|
6646
6646
|
const pathArg = args.positionals[0] ?? ".";
|
|
@@ -6743,7 +6743,7 @@ async function runInitFromCommand(args, source) {
|
|
|
6743
6743
|
for (const line of routesDeferred) warn(line, "routes.not-written");
|
|
6744
6744
|
if (seed !== void 0) reportSeedRows(seed.rows, seed.label, seed.provenance, XANO_DIR, contextFlags(args));
|
|
6745
6745
|
if (replace.lock !== void 0) {
|
|
6746
|
-
const { reconciledLock } = await import("./pull-command-
|
|
6746
|
+
const { reconciledLock } = await import("./pull-command-EUEWBRXZ.js");
|
|
6747
6747
|
writeLockFile(
|
|
6748
6748
|
replace.lock.path,
|
|
6749
6749
|
reconciledLock(replace.lock.model, replace.lock.reconciliation, bundle.payload)
|
|
@@ -6844,7 +6844,7 @@ async function planXanoReplace(out, files, payload, args, label, agentsMd) {
|
|
|
6844
6844
|
if (shell.length > 0 && !await confirmShellOverwrite(out, shell, args, label)) return "cancelled";
|
|
6845
6845
|
return { removals: void 0, removedEdited: [], rewrittenEdited: [], kept: [] };
|
|
6846
6846
|
}
|
|
6847
|
-
const { backendDirCleanliness, noneOfTheIdentities, pulledIdentities, reconcileLock } = await import("./pull-command-
|
|
6847
|
+
const { backendDirCleanliness, noneOfTheIdentities, pulledIdentities, reconcileLock } = await import("./pull-command-EUEWBRXZ.js");
|
|
6848
6848
|
const prefix = `${XANO_DIR}/`;
|
|
6849
6849
|
const incoming = new Map(
|
|
6850
6850
|
files.filter((f) => f.path.startsWith(prefix)).map((f) => [f.path.slice(prefix.length), f.content])
|
|
@@ -6892,7 +6892,7 @@ async function planXanoReplace(out, files, payload, args, label, agentsMd) {
|
|
|
6892
6892
|
list(lock.reconciliation.dropped.map((key) => displayLockKey(key)), "")
|
|
6893
6893
|
);
|
|
6894
6894
|
}
|
|
6895
|
-
const { keptDuplicates, replacedRegistrations, reportSuperseded } = await import("./pull-superseded-
|
|
6895
|
+
const { keptDuplicates, replacedRegistrations, reportSuperseded } = await import("./pull-superseded-TOT5S4QU.js");
|
|
6896
6896
|
const shown = relative(process.cwd(), xanoDir).split(sep).join("/") || XANO_DIR;
|
|
6897
6897
|
reportSuperseded(
|
|
6898
6898
|
keptDuplicates(xanoDir, incoming, kept, shown),
|
|
@@ -7113,7 +7113,8 @@ function summarize(args, project, verified, out, origin, install, mode, scaffold
|
|
|
7113
7113
|
const steps = cdHint + (install === "installed" || existsSync(join(out, "node_modules", "@xano", "sdk")) ? `` : ` npm install
|
|
7114
7114
|
`) + // An unverified tree: the check the warning above asks for is a step.
|
|
7115
7115
|
(verified === null ? ` npm run xano:check # confirm the tree compiles and the lock agrees
|
|
7116
|
-
` : ``) +
|
|
7116
|
+
` : ``) + ` npm run xano:deploy # run it on the Xano Engine, on this machine
|
|
7117
|
+
` + loginNextStep(pin, out) + ` npm run xano:deploy:ephemeral # build the frontend, then deploy \u2192 live ephemeral URL`;
|
|
7117
7118
|
detail(`Next steps:
|
|
7118
7119
|
` + steps.replace(/^ {2}/gm, " "));
|
|
7119
7120
|
for (const line of [
|
|
@@ -7133,8 +7134,8 @@ function refreshSelector(origin) {
|
|
|
7133
7134
|
return void 0;
|
|
7134
7135
|
case "workspace":
|
|
7135
7136
|
return "workspace";
|
|
7136
|
-
case "local
|
|
7137
|
-
return origin.origin === "local
|
|
7137
|
+
case "local":
|
|
7138
|
+
return origin.origin === "local" ? "local" : `local:${origin.origin}`;
|
|
7138
7139
|
default:
|
|
7139
7140
|
return `${origin.source}:${origin.origin}`;
|
|
7140
7141
|
}
|
|
@@ -7163,7 +7164,7 @@ function seedRowsLanding(source, flags = "") {
|
|
|
7163
7164
|
if (release === void 0) {
|
|
7164
7165
|
return `They stay on ${source}, and a table's \`seed\` option puts rows in code.`;
|
|
7165
7166
|
}
|
|
7166
|
-
return `They stay on the release: \`xanosdk deploy ${shellQuote(`release:${release}`)}${flags}\` lands them on this project's ephemeral, and \`xanosdk tenant deploy <tenant> ${shellQuote(release)}${flags}\` on a tenant (a promote writes no rows). A table's \`seed\` option puts rows in code.`;
|
|
7167
|
+
return `They stay on the release: \`xanosdk deploy ${shellQuote(`release:${release}`)} --ephemeral${flags}\` lands them on this project's ephemeral, and \`xanosdk tenant deploy <tenant> ${shellQuote(release)}${flags}\` on a tenant (a promote writes no rows). A table's \`seed\` option puts rows in code.`;
|
|
7167
7168
|
}
|
|
7168
7169
|
|
|
7169
7170
|
export {
|
|
@@ -7196,4 +7197,4 @@ export {
|
|
|
7196
7197
|
seedRowsListed,
|
|
7197
7198
|
seedRowsLanding
|
|
7198
7199
|
};
|
|
7199
|
-
//# sourceMappingURL=chunk-
|
|
7200
|
+
//# sourceMappingURL=chunk-LZDA6SVD.js.map
|
|
@@ -160,7 +160,7 @@ function decodeMarkerWith(previous, files) {
|
|
|
160
160
|
digests: Object.fromEntries(sorted.map((f) => [f.path, decodeDigest(f.content)]))
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
var SOURCE_KINDS = /* @__PURE__ */ new Set(["workspace", "ephemeral", "local
|
|
163
|
+
var SOURCE_KINDS = /* @__PURE__ */ new Set(["workspace", "ephemeral", "local", "tenant", "release"]);
|
|
164
164
|
function decodeMarkerHead(previous, command, provenance, sdkVersion, report) {
|
|
165
165
|
const colon = provenance.indexOf(":");
|
|
166
166
|
const kind = colon === -1 ? provenance : provenance.slice(0, colon);
|
|
@@ -627,4 +627,4 @@ export {
|
|
|
627
627
|
decodeMarkerWith,
|
|
628
628
|
decodeMarkerHead
|
|
629
629
|
};
|
|
630
|
-
//# sourceMappingURL=chunk-
|
|
630
|
+
//# sourceMappingURL=chunk-M6ZFSTIZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UsageError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XNZURZ7T.js";
|
|
4
4
|
|
|
5
5
|
// src/emit/module-manifest.ts
|
|
6
6
|
import { existsSync, readFileSync, statSync } from "fs";
|
|
@@ -165,4 +165,4 @@ export {
|
|
|
165
165
|
loadFile,
|
|
166
166
|
homepageOf
|
|
167
167
|
};
|
|
168
|
-
//# sourceMappingURL=chunk-
|
|
168
|
+
//# sourceMappingURL=chunk-M7GJ6YUF.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
identityNamesByGuid,
|
|
7
7
|
lockNameForObject,
|
|
8
8
|
sdkKindName
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OKNE3TWU.js";
|
|
10
10
|
|
|
11
11
|
// src/codegen/omissions.ts
|
|
12
12
|
function omissionSeverity(reason) {
|
|
@@ -240,4 +240,4 @@ export {
|
|
|
240
240
|
identityName,
|
|
241
241
|
reportObjectLabel
|
|
242
242
|
};
|
|
243
|
-
//# sourceMappingURL=chunk-
|
|
243
|
+
//# sourceMappingURL=chunk-MEIJDRHU.js.map
|