@xano/sdk 1.0.19 → 1.0.21
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 +28 -0
- package/README.md +5 -2
- package/dist/{agent-file-refresh-5IP25UYO.js → agent-file-refresh-5R5ALFEV.js} +13 -11
- package/dist/{agent-skill-command-BPM4S6C7.js → agent-skill-command-JBX7Z6AK.js} +49 -47
- package/dist/ai-models-command-I3FU6GYP.js +270 -0
- package/dist/{answer-shape-ZRQS7ZC4.js → answer-shape-BCGPH73R.js} +5 -5
- package/dist/{backend-dir-RLILKCMR.js → backend-dir-VOMHDVFP.js} +16 -14
- package/dist/{backend-slot-7BATLL3X.js → backend-slot-WSWAHL2W.js} +3 -3
- package/dist/bin.js +55 -51
- package/dist/{branch-SJKKUCMZ.js → branch-6DBHVVUT.js} +11 -11
- package/dist/{branch-commands-5HKCBRLN.js → branch-commands-JOSHDOXH.js} +29 -28
- package/dist/bundle.js +3 -3
- package/dist/chunk-37BT62SX.js +17 -0
- package/dist/{chunk-2IC3K22K.js → chunk-3HK7VELD.js} +2 -2
- package/dist/{chunk-ZYZ7GRX3.js → chunk-4DVP42ZC.js} +2 -2
- package/dist/{chunk-ROWYW3JF.js → chunk-4QRDNBPY.js} +2 -2
- package/dist/{chunk-KG3RDXN5.js → chunk-4TVHSC4V.js} +4 -4
- package/dist/{chunk-SINL5WMI.js → chunk-4Y3SWNPE.js} +2 -2
- package/dist/{chunk-6SEPZQYB.js → chunk-4ZV4MDKP.js} +2 -2
- package/dist/{chunk-IFHFJR5O.js → chunk-5ABAIJVV.js} +6 -6
- package/dist/chunk-5KSVMHFS.js +81 -0
- package/dist/{chunk-MOVRSULZ.js → chunk-5Z4WQQHC.js} +2 -2
- package/dist/{chunk-K23RUXSH.js → chunk-64F6ET45.js} +44 -16
- package/dist/{chunk-ZHFSIQ6E.js → chunk-6534P3VH.js} +25 -2
- package/dist/{chunk-Q6AKSLD2.js → chunk-6L32HAIP.js} +2 -2
- package/dist/chunk-6SXKKDGF.js +9 -0
- package/dist/{chunk-OTQF4B37.js → chunk-6TAYTKFM.js} +4 -4
- package/dist/{chunk-7UQZ7C4W.js → chunk-745NOWB7.js} +6 -6
- package/dist/{chunk-XAE4NIZ2.js → chunk-7J7YRAZB.js} +4 -4
- package/dist/{chunk-E34VGSCI.js → chunk-7LLVSTXY.js} +9 -1
- package/dist/{chunk-2HBJU76D.js → chunk-7SGMHGLI.js} +40 -22
- package/dist/{chunk-OTYK2V44.js → chunk-ANCNHQCH.js} +24 -24
- package/dist/{chunk-AICWDCLJ.js → chunk-BBFHZMQA.js} +2 -2
- package/dist/{chunk-54CJ74BH.js → chunk-C7KO5KKB.js} +4 -4
- package/dist/{chunk-V2MIBJZU.js → chunk-CGLYG2VF.js} +2 -2
- package/dist/{chunk-Z73I7Q2H.js → chunk-CJ5WRCVE.js} +80 -2
- package/dist/{chunk-WGKKDGSA.js → chunk-DAXFWXSV.js} +8 -8
- package/dist/{chunk-MSYMEP7Y.js → chunk-DJ7JH4UE.js} +7 -7
- package/dist/{chunk-XDGLYIB2.js → chunk-DORGB2Y2.js} +2 -2
- package/dist/{chunk-GA6HTO3O.js → chunk-EBSJUSID.js} +2 -2
- package/dist/{chunk-O2BLNQEC.js → chunk-EME5G4YP.js} +2 -2
- package/dist/{chunk-RVWWNNZQ.js → chunk-EOWNLLLV.js} +4 -4
- package/dist/{chunk-QIT2GGNB.js → chunk-EPD5J3WA.js} +2 -2
- package/dist/{chunk-WDWIXCGB.js → chunk-FJS5I6V4.js} +4 -4
- package/dist/{chunk-DO5VZIY4.js → chunk-FLM6TN7Q.js} +3 -3
- package/dist/{chunk-GT7PZCTK.js → chunk-FVBJKM6N.js} +3 -3
- package/dist/{chunk-F3IA3YWI.js → chunk-FVZ5C3PF.js} +22 -2
- package/dist/{chunk-PLOBHRGV.js → chunk-GODAKJ3L.js} +49 -49
- package/dist/{chunk-RKTVXFBV.js → chunk-GUHJV7C5.js} +31 -3
- package/dist/{chunk-B6ZHSM2D.js → chunk-HXVNBJVA.js} +73 -73
- package/dist/{chunk-G2XSDIYS.js → chunk-I52AKG2O.js} +4 -4
- package/dist/{chunk-VCFRALU7.js → chunk-I5YD7QPI.js} +28 -11
- package/dist/{chunk-ASUDP4OS.js → chunk-IA4FMPJ3.js} +8 -8
- package/dist/{chunk-YYBBJPCL.js → chunk-IUBGFCJJ.js} +14 -18
- package/dist/{chunk-L4L6YITX.js → chunk-IWFKPEWJ.js} +13 -10
- package/dist/{chunk-YP4QTC4F.js → chunk-J564PMKW.js} +6 -6
- package/dist/{chunk-AJPICYPW.js → chunk-JVMAWMO3.js} +113 -94
- package/dist/{chunk-UH5VQGNR.js → chunk-JXX2QXPP.js} +2 -2
- package/dist/{chunk-2DUYJR5N.js → chunk-KHX6VQ4M.js} +2 -2
- package/dist/{chunk-LRN6QX44.js → chunk-KL4PGJ2G.js} +3 -3
- package/dist/{chunk-BCN6OZLF.js → chunk-KU4HLYWT.js} +3 -3
- package/dist/{chunk-WGGATSIP.js → chunk-LMX4VE4H.js} +2 -2
- package/dist/{chunk-YT5UN2F4.js → chunk-LYR6W5LV.js} +14 -14
- package/dist/{chunk-DXUICABI.js → chunk-LZDH5COS.js} +21 -2
- package/dist/{chunk-2NUOFHPX.js → chunk-M42Y53Z4.js} +7 -7
- package/dist/{chunk-E5M5P23K.js → chunk-M5GXZEX7.js} +21 -215
- package/dist/{chunk-Q4LJCCH5.js → chunk-MGC5S6OE.js} +75 -9
- package/dist/{chunk-KVF7YQ2W.js → chunk-MJA5BP2M.js} +9 -9
- package/dist/{chunk-5Y5HWQ2P.js → chunk-MKRREVNB.js} +4 -4
- package/dist/{chunk-JORPZKBE.js → chunk-N2JZU6VR.js} +3 -3
- package/dist/{chunk-QK2WIASY.js → chunk-N3LPULRE.js} +7 -7
- package/dist/chunk-OF5YFPSK.js +278 -0
- package/dist/{chunk-D4N72H35.js → chunk-OFKFZSHS.js} +9 -9
- package/dist/{chunk-64UVVLDT.js → chunk-OG6WYZNA.js} +7 -7
- package/dist/{chunk-AJBOGO5U.js → chunk-OQMXCNN7.js} +59 -31
- package/dist/{chunk-EPB6FAR5.js → chunk-OSMPI45P.js} +3 -3
- package/dist/{chunk-QETVFGD7.js → chunk-OTUPQ7M3.js} +16 -16
- package/dist/{chunk-Q45RTKWW.js → chunk-OZVZ3KCH.js} +6 -6
- package/dist/{chunk-3X4B5GWY.js → chunk-P3WIMLG2.js} +3 -3
- package/dist/{chunk-JUCL5MUZ.js → chunk-PAWLPNBA.js} +8 -8
- package/dist/{chunk-GJZMKMWO.js → chunk-PC7XEO7F.js} +2 -2
- package/dist/{chunk-MF4W6FHU.js → chunk-Q4R2ABFL.js} +1 -1
- package/dist/{chunk-BT6CJNEO.js → chunk-Q77C32ZB.js} +4 -4
- package/dist/chunk-QHNSBURP.js +264 -0
- package/dist/{chunk-HUGNB6UN.js → chunk-QLXGLHK3.js} +71 -49
- package/dist/{chunk-NH5Z2NOD.js → chunk-QZ2PC6B7.js} +3 -3
- package/dist/{chunk-GTB7JL3M.js → chunk-QZXSPUNS.js} +6 -6
- package/dist/{chunk-LCOCRJ4K.js → chunk-RQGSZ7AR.js} +16 -2
- package/dist/{chunk-WLZSKD7E.js → chunk-SQVETROU.js} +3 -3
- package/dist/{chunk-554FJWNH.js → chunk-T2LFOMOP.js} +4 -4
- package/dist/{chunk-4HMF5TRB.js → chunk-T4HTNHXR.js} +8 -8
- package/dist/{chunk-FRJB3NTE.js → chunk-T6KQYCAU.js} +3 -3
- package/dist/{chunk-YYDM4DNP.js → chunk-TDSRZDQP.js} +2 -2
- package/dist/{chunk-RKNCISPM.js → chunk-VEA6EXJL.js} +3 -3
- package/dist/{chunk-KYQRIL4V.js → chunk-VJCUFHTQ.js} +26 -26
- package/dist/{chunk-6FCAFWD5.js → chunk-VO62TKK5.js} +3 -77
- package/dist/{chunk-3FNEHRJF.js → chunk-VV7FVGOX.js} +8 -8
- package/dist/{chunk-HM5X73PY.js → chunk-WK5QDV25.js} +2 -2
- package/dist/{chunk-5JUWB6XL.js → chunk-WXY24GKO.js} +7 -7
- package/dist/{chunk-XKHQLKUL.js → chunk-X7EK5PTK.js} +3 -3
- package/dist/{chunk-CO7US54H.js → chunk-X7IBJLAD.js} +2 -2
- package/dist/{chunk-E7VF2JVJ.js → chunk-XD5FOBMZ.js} +10 -10
- package/dist/{chunk-PKBC7G5H.js → chunk-XDIPEWLU.js} +25 -1
- package/dist/{chunk-NYIFU3BR.js → chunk-XWEDFVJ6.js} +21 -19
- package/dist/{chunk-OJ6YGRPV.js → chunk-YAZEB255.js} +3 -3
- package/dist/{chunk-UJ5HLRYH.js → chunk-YF7PDN6T.js} +35 -35
- package/dist/{chunk-RGPHFHJU.js → chunk-YFVD3LNL.js} +2 -2
- package/dist/{chunk-35SI4GBM.js → chunk-YSSAJQH4.js} +3 -3
- package/dist/{chunk-UQNDODRU.js → chunk-Z7IINILG.js} +5 -5
- package/dist/{chunk-PRSNMSVG.js → chunk-ZCXWOGFL.js} +3 -3
- package/dist/{chunk-5AHHO2QA.js → chunk-ZNGUETV7.js} +163 -97
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +48 -46
- package/dist/{codegen-command-OF3TPC66.js → codegen-command-ZXABRPVP.js} +68 -66
- package/dist/{commands-Z2QZOORB.js → commands-EN4RLPOP.js} +2 -2
- package/dist/{completion-LFXXNQGR.js → completion-KH45QD3E.js} +2 -2
- package/dist/{config-7GGINOFY.js → config-AKHBFTKA.js} +8 -8
- package/dist/{deploy-command-MGYR2TKC.js → deploy-command-KO5FATR6.js} +55 -53
- package/dist/{deploy-source-UHCHCI5Z.js → deploy-source-7GCMMZKV.js} +34 -33
- package/dist/{dev-env-sync-XWZVXEI2.js → dev-env-sync-LZ22CSKD.js} +51 -49
- package/dist/{display-name-hint-5GLJGPQ6.js → display-name-hint-QMT562BI.js} +13 -13
- package/dist/{emit-DlOKIJER.d.ts → emit-BfHifhJy.d.ts} +120 -7
- package/dist/{env-example-refresh-FACP4FQE.js → env-example-refresh-DWGV4DFX.js} +69 -67
- package/dist/{env-pull-command-SHK4TI6U.js → env-pull-command-5N5AUKJK.js} +52 -50
- package/dist/{env-target-ZQSPPN4A.js → env-target-CXZXMK3W.js} +13 -13
- package/dist/{env-var-command-Q2ZHKWAQ.js → env-var-command-4RGQALIH.js} +55 -54
- package/dist/{ephemeral-2DXWP3VK.js → ephemeral-MNHEWSZ6.js} +11 -11
- package/dist/{ephemeral-command-FKOSN56R.js → ephemeral-command-GIB63YX3.js} +64 -62
- package/dist/{ephemeral-state-56XEDUJW.js → ephemeral-state-QTT5JHD5.js} +11 -11
- package/dist/{generate-command-2JCMZ6CG.js → generate-command-GW42CN4I.js} +77 -75
- package/dist/{gitignore-Z5N6DEEV.js → gitignore-RDEUQHHG.js} +19 -17
- package/dist/{guards-LQ7PSXOL.js → guards-N4PUFKN5.js} +3 -2
- package/dist/{impersonate-command-R24VBFQA.js → impersonate-command-H72JM5IF.js} +44 -42
- package/dist/{import-VJQGIS33.js → import-7HFTOT7M.js} +5 -5
- package/dist/index.d.ts +142 -7
- package/dist/index.js +7 -6
- package/dist/{init-command-UOCNESZK.js → init-command-ERRMSKPB.js} +52 -50
- package/dist/{init-modules-5DYK7V4J.js → init-modules-UH7PPQTB.js} +11 -9
- package/dist/{init-web-25QJ4JWB.js → init-web-YCPD6BYN.js} +2 -2
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +169 -24
- package/dist/{keep-data-merge-HLIXZC77.js → keep-data-merge-BNX3HEHM.js} +32 -31
- package/dist/{landing-record-FYKDJIUF.js → landing-record-ZY4O7OLQ.js} +23 -21
- package/dist/{live-diff-YOFOJCFX.js → live-diff-GZ6JUNP6.js} +5 -4
- package/dist/local-engine-ai-YWAMTHME.js +47 -0
- package/dist/{local-engine-choice-4ZA2HZXH.js → local-engine-choice-PCM45R3A.js} +43 -36
- package/dist/local-engine-command-ACJ6YUP7.js +93 -0
- package/dist/{local-engine-config-6CB6FOEJ.js → local-engine-config-MVNWKHZ4.js} +15 -3
- package/dist/{local-engine-deploy-XAEDT55W.js → local-engine-deploy-IUHWB43Q.js} +21 -18
- package/dist/{local-engine-lookup-WBYTY2JE.js → local-engine-lookup-2VSUWEQY.js} +6 -6
- package/dist/{local-engine-mcp-bridge-3H5OXBWQ.js → local-engine-mcp-bridge-ECGTK7LF.js} +6 -6
- package/dist/{local-engine-mcp-command-SUAVS5UA.js → local-engine-mcp-command-EODMA3X5.js} +52 -44
- package/dist/{local-engine-process-35B2KQED.js → local-engine-process-P5T2766M.js} +19 -11
- package/dist/local-engine-release-OK6GKULS.js +40 -0
- package/dist/{local-engine-state-JZHTKHDG.js → local-engine-state-BOKHLNRQ.js} +4 -4
- package/dist/{local-engine-update-check-VXJZSIJU.js → local-engine-update-check-C72LSVUQ.js} +7 -7
- package/dist/{lock-commands-ZT6YTQYA.js → lock-commands-YBBTZB6M.js} +55 -53
- package/dist/{login-command-ONGJASKA.js → login-command-DJCCEN5O.js} +39 -32
- package/dist/{logout-command-PLYGFHBQ.js → logout-command-6FQLSD5H.js} +16 -16
- package/dist/{loop-CLLBQSJF.js → loop-EMTBWN4X.js} +5 -4
- package/dist/{marketplace-command-LNNAA7ZK.js → marketplace-command-2JZERTJW.js} +42 -40
- package/dist/{marketplace-resolve-63QWMQZU.js → marketplace-resolve-LT76KHJD.js} +9 -7
- package/dist/{meta-client-JND42QEJ.js → meta-client-KDTBLP6X.js} +15 -15
- package/dist/{module-manifest-NWJWAQLQ.js → module-manifest-B432UFBK.js} +3 -3
- package/dist/node.d.ts +5 -5
- package/dist/node.js +61 -59
- package/dist/{operation-outcome-U6IWKLBK.js → operation-outcome-POYID3M6.js} +26 -26
- package/dist/{output-target-QJSHZBVY.js → output-target-55RSDDTO.js} +20 -18
- package/dist/{plan-disclosure-XTAEE4BE.js → plan-disclosure-5HM7CMRW.js} +19 -18
- package/dist/{plugin-contributions-DD6R6RL6.js → plugin-contributions-MEXUR7TY.js} +4 -4
- package/dist/{plugin-prompt-UX2TT5NS.js → plugin-prompt-XM4ATAWA.js} +4 -4
- package/dist/{plugin-questions-WE2F4ZC4.js → plugin-questions-VGU3B4LE.js} +3 -3
- package/dist/{preflight-command-ZKUQSIL2.js → preflight-command-ZP7VVE5T.js} +60 -58
- package/dist/{profile-command-PJUA5ZMX.js → profile-command-EP7N7LNQ.js} +38 -36
- package/dist/{profile-pointer-RCPHVTJV.js → profile-pointer-DHOU26Q2.js} +5 -5
- package/dist/{profile-select-45G5VPJK.js → profile-select-ZANK43KE.js} +2 -2
- package/dist/project-config-SGRYMHBT.js +37 -0
- package/dist/{project-dependency-TPVV3YIX.js → project-dependency-WTH776QE.js} +10 -8
- package/dist/{project-sdk-DKZBK5H5.js → project-sdk-FYNY7RTO.js} +3 -3
- package/dist/promote-command-LX5UWQYG.js +150 -0
- package/dist/{prompt-OYQHQWKI.js → prompt-JVYQH4OR.js} +3 -3
- package/dist/{publish-command-JSYK6HOW.js → publish-command-DW5VLFJN.js} +65 -63
- package/dist/{pull-command-K5X367MA.js → pull-command-ZUDJRRXV.js} +71 -69
- package/dist/{pull-superseded-3SSM3JFT.js → pull-superseded-7EZ7M54I.js} +3 -3
- package/dist/{release-command-OC7MT4FV.js → release-command-Z3HXXLLO.js} +66 -64
- package/dist/{release-ns-command-EHNEAEDU.js → release-ns-command-JS3OUEFQ.js} +93 -91
- package/dist/{retry-command-WP4ZI6CJ.js → retry-command-HG4IFE65.js} +10 -10
- package/dist/{routes-manifest-file-A2PW7IQ7.js → routes-manifest-file-PIKQ3BIJ.js} +4 -4
- package/dist/{secrets-file-2RHMJFXQ.js → secrets-file-QLVCR2JD.js} +19 -17
- package/dist/{secrets-fill-command-HYMF6EZM.js → secrets-fill-command-BK7NVKPY.js} +52 -50
- package/dist/{seed-W5FNE6IB.js → seed-M33F4OJW.js} +3 -3
- package/dist/{source-resolve-PMA7SHZE.js → source-resolve-GGRHO6NW.js} +24 -24
- package/dist/{static-host-3HPZKVKK.js → static-host-HCKD26Q3.js} +5 -5
- package/dist/{status-command-CROHQRPI.js → status-command-3DISBMGH.js} +52 -51
- package/dist/{store-Dg9FLJkx.d.ts → store-Dt-5vOSe.d.ts} +149 -1
- package/dist/{store-B63BQV6R.js → store-ZWQFSXH5.js} +8 -8
- package/dist/{sync-baseline-LSGKNCKM.js → sync-baseline-XLRJQZCS.js} +7 -6
- package/dist/{sync-contributions-QDEWZ3IU.js → sync-contributions-GAV6PZEY.js} +17 -13
- package/dist/{sync-record-AWFCSS4D.js → sync-record-UFEJDNLR.js} +13 -13
- package/dist/{table-WJ7YDJ6Q.js → table-JHPGUJ2Z.js} +6 -6
- package/dist/{tables-command-BKVDHAGJ.js → tables-command-D7DSJAXI.js} +41 -40
- package/dist/{tenant-IXIW3FOI.js → tenant-SSWC7B3V.js} +12 -12
- package/dist/{tenant-command-Y7VCGDMY.js → tenant-command-6S5RU4PP.js} +96 -94
- package/dist/{test-command-2RAUNIU5.js → test-command-FSRARFF7.js} +44 -43
- package/dist/{tests-N4MMBABH.js → tests-ZFQWDWS2.js} +6 -6
- package/dist/{token-4I26OGWH.js → token-XTU3C2DI.js} +14 -12
- package/dist/{toolchain-hooks-IJWV3ZQS.js → toolchain-hooks-IRPM6LYL.js} +3 -3
- package/dist/{toolchain-modules-XM4JXHQC.js → toolchain-modules-YSM6DMDB.js} +9 -5
- package/dist/{toolchain-peers-EMOYN4U7.js → toolchain-peers-NOIM44ED.js} +11 -9
- package/dist/{tracked-backend-EZE6H3EZ.js → tracked-backend-7XW4KPIR.js} +39 -36
- package/dist/{update-check-QLB5DV3B.js → update-check-KKDYZG3X.js} +51 -49
- package/dist/{upgrade-command-4DCDBDB5.js → upgrade-command-LRJ7V3UW.js} +55 -53
- package/dist/{whoami-command-WI4VT3IN.js → whoami-command-FBRWLX5Q.js} +15 -15
- package/dist/{workspace-DIM3SBPV.js → workspace-DTM3ZNTM.js} +5 -5
- package/dist/{workspace-binding-43PBQEE4.js → workspace-binding-M7XSJIWC.js} +14 -14
- package/dist/{workspace-command-FWTHIFVI.js → workspace-command-3T6CT7UA.js} +96 -94
- package/dist/{workspace-env-5PJVWQ2O.js → workspace-env-RIKENQFC.js} +17 -15
- package/dist/{workspace-export-3KMWNZDD.js → workspace-export-A4L6272C.js} +5 -5
- package/dist/{writable-X7BCN7XE.js → writable-762DMPHW.js} +3 -3
- package/dist/{xano-RLSNDM7O.js → xano-XZN5SRDH.js} +4 -3
- package/dist/{xanosdk-import-VOJEAK5Q.js → xanosdk-import-L3ZZIT6I.js} +6 -6
- package/dist/{xanosdk-project-PV3ORVP5.js → xanosdk-project-YVLCGM3Y.js} +16 -14
- package/guides/cli.md +3 -0
- package/guides/coverage.md +4 -4
- package/llms/kinds-agent-mcp.md +3 -1
- package/llms/statements-ai.md +21 -0
- package/llms/statements-catalog.md +1 -8
- package/llms-full.txt +33 -15
- package/llms.txt +7 -6
- package/manifest.json +651 -3
- package/package.json +2 -38
- package/skills/xano-backend/SKILL.md +2 -2
- package/dist/.build-fingerprint +0 -1
- package/dist/local-engine-command-WQS4SD6N.js +0 -85
- package/dist/promote-command-NDYP66LD.js +0 -148
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openBrowser
|
|
3
3
|
} from "./chunk-FQOF7E2E.js";
|
|
4
|
-
import {
|
|
5
|
-
passwordHashesWarning,
|
|
6
|
-
passwordOrigin
|
|
7
|
-
} from "./chunk-3FNEHRJF.js";
|
|
8
4
|
import {
|
|
9
5
|
isAwaited,
|
|
10
6
|
microserviceLine,
|
|
11
7
|
readyRatio,
|
|
12
8
|
waitForMicroservices
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EOWNLLLV.js";
|
|
10
|
+
import {
|
|
11
|
+
passwordHashesWarning,
|
|
12
|
+
passwordOrigin
|
|
13
|
+
} from "./chunk-VV7FVGOX.js";
|
|
14
14
|
import {
|
|
15
15
|
EXIT_STATIC_FAILED,
|
|
16
16
|
assertStaticHostExists,
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
staticRetryHint,
|
|
26
26
|
unknownStaticOutcome,
|
|
27
27
|
warnStaticTeardown
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-DJ7JH4UE.js";
|
|
29
29
|
import {
|
|
30
30
|
HostedFilesUnresolvedError,
|
|
31
31
|
ImportNotSentError,
|
|
32
32
|
XanoSdkImportRefusal,
|
|
33
33
|
xanosdkImport
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-M42Y53Z4.js";
|
|
35
35
|
import {
|
|
36
36
|
archiveHostedFiles,
|
|
37
37
|
decodeWorkspaceArchive,
|
|
@@ -48,23 +48,13 @@ import {
|
|
|
48
48
|
missingLockDir,
|
|
49
49
|
refuseCompileValueFlags,
|
|
50
50
|
refuseValueFlagsBesideBundle
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZNGUETV7.js";
|
|
52
52
|
import {
|
|
53
53
|
recordDeployed
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-5Z4WQQHC.js";
|
|
55
55
|
import {
|
|
56
56
|
lookupEphemeral
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import {
|
|
59
|
-
getAccessToken
|
|
60
|
-
} from "./chunk-K23RUXSH.js";
|
|
61
|
-
import {
|
|
62
|
-
otherCredentialRefusal
|
|
63
|
-
} from "./chunk-JUCL5MUZ.js";
|
|
64
|
-
import {
|
|
65
|
-
engineNameForProject,
|
|
66
|
-
getEngineRecord
|
|
67
|
-
} from "./chunk-5Y5HWQ2P.js";
|
|
57
|
+
} from "./chunk-VJCUFHTQ.js";
|
|
68
58
|
import {
|
|
69
59
|
createEphemeral,
|
|
70
60
|
getEphemeral,
|
|
@@ -75,10 +65,13 @@ import {
|
|
|
75
65
|
namedEphemeral,
|
|
76
66
|
renameEphemeral,
|
|
77
67
|
waitUntilReady
|
|
78
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-745NOWB7.js";
|
|
79
69
|
import {
|
|
80
|
-
|
|
81
|
-
} from "./chunk-
|
|
70
|
+
getAccessToken
|
|
71
|
+
} from "./chunk-64F6ET45.js";
|
|
72
|
+
import {
|
|
73
|
+
otherCredentialRefusal
|
|
74
|
+
} from "./chunk-PAWLPNBA.js";
|
|
82
75
|
import {
|
|
83
76
|
environmentKey,
|
|
84
77
|
ephemeralLandedOn,
|
|
@@ -89,41 +82,48 @@ import {
|
|
|
89
82
|
readEphemeralState,
|
|
90
83
|
recordStaticUrl,
|
|
91
84
|
setEnvironment
|
|
92
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-DAXFWXSV.js";
|
|
86
|
+
import {
|
|
87
|
+
engineNameForProject,
|
|
88
|
+
getEngineRecord
|
|
89
|
+
} from "./chunk-MKRREVNB.js";
|
|
93
90
|
import {
|
|
94
91
|
selectDeployArm
|
|
95
92
|
} from "./chunk-ZYJP6BOO.js";
|
|
93
|
+
import {
|
|
94
|
+
readLockFile
|
|
95
|
+
} from "./chunk-7ZVQIKNL.js";
|
|
96
|
+
import {
|
|
97
|
+
storedColumnsOf,
|
|
98
|
+
withStoredColumns
|
|
99
|
+
} from "./chunk-2H5BQRHF.js";
|
|
96
100
|
import {
|
|
97
101
|
pipedYes,
|
|
98
102
|
retryCommand,
|
|
99
103
|
withheldNote,
|
|
100
104
|
yesRerun
|
|
101
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-PC7XEO7F.js";
|
|
102
106
|
import {
|
|
103
107
|
andList
|
|
104
108
|
} from "./chunk-622HUCZT.js";
|
|
105
109
|
import {
|
|
106
110
|
contextFlags,
|
|
107
111
|
credentialFileOf
|
|
108
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-4DVP42ZC.js";
|
|
113
|
+
import {
|
|
114
|
+
describeWrite,
|
|
115
|
+
noteLanded
|
|
116
|
+
} from "./chunk-4KHEMC32.js";
|
|
109
117
|
import {
|
|
110
118
|
SENT_AFTERMATH,
|
|
111
119
|
TransportError,
|
|
112
120
|
certificateFailureCode,
|
|
113
121
|
closeSentence,
|
|
114
122
|
withoutReadAftermath
|
|
115
|
-
} from "./chunk-
|
|
116
|
-
import {
|
|
117
|
-
describeWrite,
|
|
118
|
-
noteLanded
|
|
119
|
-
} from "./chunk-4KHEMC32.js";
|
|
120
|
-
import {
|
|
121
|
-
storedColumnsOf,
|
|
122
|
-
withStoredColumns
|
|
123
|
-
} from "./chunk-2H5BQRHF.js";
|
|
123
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
124
124
|
import {
|
|
125
125
|
DEFAULT_PROFILE
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-Q4R2ABFL.js";
|
|
127
127
|
import {
|
|
128
128
|
CliError,
|
|
129
129
|
EXIT_OUTCOME_UNKNOWN,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
withSpinner,
|
|
152
152
|
writeJson,
|
|
153
153
|
writeTargetPayload
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-6534P3VH.js";
|
|
155
155
|
import {
|
|
156
156
|
codePinnedTables
|
|
157
157
|
} from "./chunk-VQDVEHDB.js";
|
|
@@ -204,7 +204,7 @@ function deriveDisplay(bundleText, cwd, source) {
|
|
|
204
204
|
return basename(cwd) || "xanosdk-app";
|
|
205
205
|
}
|
|
206
206
|
async function assertNoSeedLeaks(dir, values, opts = {}) {
|
|
207
|
-
const { assertStaticDir, findSeedLeaks, StaticDirError } = await import("./static-host-
|
|
207
|
+
const { assertStaticDir, findSeedLeaks, StaticDirError } = await import("./static-host-HCKD26Q3.js");
|
|
208
208
|
try {
|
|
209
209
|
assertStaticDir(dir, "--static", void 0, opts);
|
|
210
210
|
} catch (err) {
|
|
@@ -266,7 +266,7 @@ async function runDeployedTests(auth, summary, args) {
|
|
|
266
266
|
try {
|
|
267
267
|
return await runTestsOrThrow(auth, summary, args, settled, notRun);
|
|
268
268
|
} catch (err) {
|
|
269
|
-
const { isSuiteUnreachable, suiteUnreachableCheck } = await import("./test-command-
|
|
269
|
+
const { isSuiteUnreachable, suiteUnreachableCheck } = await import("./test-command-FSRARFF7.js");
|
|
270
270
|
const message = err instanceof Error ? err.message : String(err);
|
|
271
271
|
const reason = isSuiteUnreachable(err) ? `${message.split("\n")[0] ?? message}
|
|
272
272
|
${suiteUnreachableCheck(
|
|
@@ -291,12 +291,12 @@ function testRunAllCommand(summary, args) {
|
|
|
291
291
|
return `xanosdk test run-all --on ${on}${kind}${concurrency}${flags}`;
|
|
292
292
|
}
|
|
293
293
|
async function testSummaryOf(outcomes, notRun = []) {
|
|
294
|
-
const { suiteCounts, testRow } = await import("./test-command-
|
|
294
|
+
const { suiteCounts, testRow } = await import("./test-command-FSRARFF7.js");
|
|
295
295
|
return { ...suiteCounts(outcomes, notRun), tests: outcomes.map(testRow) };
|
|
296
296
|
}
|
|
297
297
|
async function runTestsOrThrow(auth, summary, args, settled, notRun) {
|
|
298
|
-
const { runSuite, printTally, noTestsFound, EXIT_TESTS_FAILED } = await import("./test-command-
|
|
299
|
-
const { qualifiedName } = await import("./tests-
|
|
298
|
+
const { runSuite, printTally, noTestsFound, EXIT_TESTS_FAILED } = await import("./test-command-FSRARFF7.js");
|
|
299
|
+
const { qualifiedName } = await import("./tests-ZFQWDWS2.js");
|
|
300
300
|
if (summary.url === void 0) {
|
|
301
301
|
warn("Skipped --test: the ephemeral reported no base URL to run against.", "deploy.tests-not-run");
|
|
302
302
|
return void 0;
|
|
@@ -339,15 +339,15 @@ async function ignoreBackendSecretFilesRead(args) {
|
|
|
339
339
|
if (args.bundle !== void 0 || args.file === void 0) return;
|
|
340
340
|
const paths = [];
|
|
341
341
|
if (args.envFile === void 0) {
|
|
342
|
-
const { defaultWorkspaceEnvPath } = await import("./workspace-env-
|
|
342
|
+
const { defaultWorkspaceEnvPath } = await import("./workspace-env-RIKENQFC.js");
|
|
343
343
|
paths.push(defaultWorkspaceEnvPath(args.file));
|
|
344
344
|
}
|
|
345
345
|
if (args.secretsFile === void 0) {
|
|
346
|
-
const { defaultWorkspaceSecretsPath } = await import("./secrets-file-
|
|
346
|
+
const { defaultWorkspaceSecretsPath } = await import("./secrets-file-QLVCR2JD.js");
|
|
347
347
|
paths.push(defaultWorkspaceSecretsPath(args.file));
|
|
348
348
|
}
|
|
349
|
-
const { gitSaysIgnored } = await import("./store-
|
|
350
|
-
const { ensureSecretPathGitignored, refuseIfTracked, secretPathLabel } = await import("./gitignore-
|
|
349
|
+
const { gitSaysIgnored } = await import("./store-ZWQFSXH5.js");
|
|
350
|
+
const { ensureSecretPathGitignored, refuseIfTracked, secretPathLabel } = await import("./gitignore-RDEUQHHG.js");
|
|
351
351
|
for (const path of paths) {
|
|
352
352
|
if (!existsSync(path)) continue;
|
|
353
353
|
if (gitSaysIgnored(path) !== false) continue;
|
|
@@ -416,14 +416,14 @@ function shipsStoredFiles(bundle) {
|
|
|
416
416
|
return Array.isArray(payload?.vault) && payload.vault.length > 0;
|
|
417
417
|
}
|
|
418
418
|
async function soleTrackedEphemeral() {
|
|
419
|
-
const { readEphemeralState: readEphemeralState2 } = await import("./ephemeral-state-
|
|
419
|
+
const { readEphemeralState: readEphemeralState2 } = await import("./ephemeral-state-QTT5JHD5.js");
|
|
420
420
|
const names = new Set(Object.values(readEphemeralState2(process.cwd()).environments).map((r) => r.name));
|
|
421
421
|
return names.size === 1 ? [...names][0] : void 0;
|
|
422
422
|
}
|
|
423
423
|
async function runDeployToDestination(args, to) {
|
|
424
|
-
const { requireBackendSlot, parseSlot } = await import("./backend-slot-
|
|
425
|
-
const { resolveSource, describeBackend } = await import("./source-resolve-
|
|
426
|
-
const { looksLikeSource, resolveProjectEntry } = await import("./deploy-source-
|
|
424
|
+
const { requireBackendSlot, parseSlot } = await import("./backend-slot-WSWAHL2W.js");
|
|
425
|
+
const { resolveSource, describeBackend } = await import("./source-resolve-GGRHO6NW.js");
|
|
426
|
+
const { looksLikeSource, resolveProjectEntry } = await import("./deploy-source-7GCMMZKV.js");
|
|
427
427
|
const dest = parseSlot(requireBackendSlot("deploy", void 0, "to"), to, to.trim() === "ephemeral" ? await soleTrackedEphemeral() : void 0);
|
|
428
428
|
if (dest.kind !== "workspace" && dest.kind !== "tenant") {
|
|
429
429
|
throw new Error(`Internal: \`deploy --to\` parsed ${withArticle(dest.kind)}, which its slot does not accept.`);
|
|
@@ -432,7 +432,7 @@ async function runDeployToDestination(args, to) {
|
|
|
432
432
|
const flags = contextFlags(args);
|
|
433
433
|
const release = /^release:(.*)$/.exec(args.file)?.[1];
|
|
434
434
|
const releaseWord = release === void 0 || release === "" ? "<name>" : shellQuote(release);
|
|
435
|
-
const { pipedYes: pipedYes2 } = await import("./retry-command-
|
|
435
|
+
const { pipedYes: pipedYes2 } = await import("./retry-command-HG4IFE65.js");
|
|
436
436
|
const yes = args.dryRun === true ? "" : pipedYes2(args);
|
|
437
437
|
const tenantLanding = `\`xanosdk tenant deploy ${dest.kind === "tenant" ? shellQuote(dest.name) : "<tenant>"} ${releaseWord}${yes}${flags}\``;
|
|
438
438
|
const landing = `${args.branch === void 0 ? "" : ` --branch ${shellQuote(args.branch)}`}${args.setLive === true ? " --set-live" : ""}`;
|
|
@@ -473,7 +473,7 @@ async function runDeployToDestination(args, to) {
|
|
|
473
473
|
}
|
|
474
474
|
const named = describeBackend(resolved);
|
|
475
475
|
if (dest.kind === "tenant" && !isEphemeral && resolved.backend.kind === "hosted") {
|
|
476
|
-
const { tenantHasWorkspace } = await import("./tenant-
|
|
476
|
+
const { tenantHasWorkspace } = await import("./tenant-SSWC7B3V.js");
|
|
477
477
|
if (!await tenantHasWorkspace(resolved.backend.auth, resolved.target.base)) {
|
|
478
478
|
throw tenantWithoutWorkspace(dest.name, named, typed, args);
|
|
479
479
|
}
|
|
@@ -498,7 +498,7 @@ async function runDeployToDestination(args, to) {
|
|
|
498
498
|
)
|
|
499
499
|
);
|
|
500
500
|
};
|
|
501
|
-
const { runReleaseCommand } = await import("./release-command-
|
|
501
|
+
const { runReleaseCommand } = await import("./release-command-Z3HXXLLO.js");
|
|
502
502
|
return runReleaseCommand(args, {
|
|
503
503
|
base: resolved.target.base,
|
|
504
504
|
workspaceId: resolved.target.workspaceId,
|
|
@@ -623,7 +623,7 @@ async function assertLocalEngineUsable(args, dest) {
|
|
|
623
623
|
{ hintFor: { command: "deploy" } }
|
|
624
624
|
);
|
|
625
625
|
}
|
|
626
|
-
const { engineSourceRefusal, MISSING_ARCHIVE, resolveEnginePlatform, SUPPORTED_PLATFORMS } = await import("./local-engine-config-
|
|
626
|
+
const { engineSourceRefusal, MISSING_ARCHIVE, resolveEnginePlatform, SUPPORTED_PLATFORMS } = await import("./local-engine-config-MVNWKHZ4.js");
|
|
627
627
|
const sourceRefusal = engineSourceRefusal(dest.downloadUrl);
|
|
628
628
|
if (sourceRefusal !== void 0) {
|
|
629
629
|
const Refusal = sourceRefusal.startsWith(MISSING_ARCHIVE) ? LocalFileNotFoundError : UsageError;
|
|
@@ -638,10 +638,12 @@ async function assertLocalEngineUsable(args, dest) {
|
|
|
638
638
|
async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
639
639
|
const { startedAt } = ctx;
|
|
640
640
|
const dir = process.cwd();
|
|
641
|
+
const { resolveAiBilling } = await import("./project-config-SGRYMHBT.js");
|
|
642
|
+
const aiBilling = resolveAiBilling(args.aiBilling, dir);
|
|
641
643
|
const fetchedSource = sourceCredential !== void 0 && args.file !== void 0 ? { credential: sourceCredential, spec: args.file } : void 0;
|
|
642
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
644
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
|
|
643
645
|
const toolchain = await discoverToolchainPlugins(dir, { frozen: args.frozenLock === true });
|
|
644
|
-
const { archive, shownSource, bundleObject, bundleText, content, passwordColumns, classifiedLock, commitLock, nonPublicSeedValues } = fetchedSource ? await import("./deploy-source-
|
|
646
|
+
const { archive, shownSource, bundleObject, bundleText, content, passwordColumns, classifiedLock, commitLock, nonPublicSeedValues } = fetchedSource ? await import("./deploy-source-7GCMMZKV.js").then(async (m) => {
|
|
645
647
|
const f = await m.fetchSourceArchive(fetchedSource.credential, fetchedSource.spec, dir);
|
|
646
648
|
const decoded = decodeWorkspaceArchive(f.archive);
|
|
647
649
|
noteReleaseCarriesNoEnv(fetchedSource.spec, m.gatedApiGroups(decoded));
|
|
@@ -684,7 +686,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
684
686
|
}
|
|
685
687
|
step(`Deploying ${shownSource} \u2192 Xano Engine`);
|
|
686
688
|
{
|
|
687
|
-
const { runBundleHooks } = await import("./toolchain-hooks-
|
|
689
|
+
const { runBundleHooks } = await import("./toolchain-hooks-IRPM6LYL.js");
|
|
688
690
|
const { readVersion } = await import("./cli.js");
|
|
689
691
|
await runBundleHooks(
|
|
690
692
|
toolchain.loaded,
|
|
@@ -702,23 +704,31 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
702
704
|
"; nothing was deployed"
|
|
703
705
|
);
|
|
704
706
|
}
|
|
705
|
-
const { chooseLocalEngine, explainOverrideFailure, pinAfterAcquire } = await import("./local-engine-choice-
|
|
707
|
+
const { chooseLocalEngine, explainOverrideFailure, pinAfterAcquire } = await import("./local-engine-choice-PCM45R3A.js");
|
|
706
708
|
const choice = await chooseLocalEngine(dest.downloadUrl, dir, isMachineOutput(args));
|
|
707
|
-
const { ensureProjectEngine } = await import("./local-engine-deploy-
|
|
709
|
+
const { ensureProjectEngine } = await import("./local-engine-deploy-IUHWB43Q.js");
|
|
710
|
+
const { ENGINE_LICENSE_NOTICE } = await import("./local-engine-release-OK6GKULS.js");
|
|
708
711
|
const pin = pinAfterAcquire(choice, dir);
|
|
712
|
+
let downloadedEngine = false;
|
|
709
713
|
const flags = { keepData: args.keepData, reset: args.reset };
|
|
710
|
-
const { engine, reused, previousUrl, hadRecord, priorFilled, engineVersion, replaced, sweptOrphans } = await withSpinner(
|
|
714
|
+
const { engine, reused, previousUrl, hadRecord, priorFilled, engineVersion, replaced, sweptOrphans, ai } = await withSpinner(
|
|
711
715
|
"Preparing the Xano Engine\u2026",
|
|
712
716
|
() => ensureProjectEngine({
|
|
713
717
|
dir,
|
|
714
718
|
source: choice.source,
|
|
719
|
+
// Never fails the deploy: a credential that cannot be had is an `off` outcome.
|
|
720
|
+
ai: { billing: aiBilling },
|
|
715
721
|
rerun: rerunOf(args).command,
|
|
716
722
|
rerunNote: rerunOf(args).note,
|
|
717
723
|
onAcquired: pin.onAcquired,
|
|
724
|
+
onDownloaded: () => {
|
|
725
|
+
downloadedEngine = true;
|
|
726
|
+
},
|
|
718
727
|
carryFilled: (ctx2) => ctx2.reused && ctx2.priorFilled !== void 0 && ctx2.priorFilled.url === ctx2.url
|
|
719
728
|
}).catch((err) => explainOverrideFailure(choice, err))
|
|
720
729
|
);
|
|
721
730
|
pin.announce();
|
|
731
|
+
if (downloadedEngine) info(ENGINE_LICENSE_NOTICE);
|
|
722
732
|
if (sweptOrphans !== void 0) {
|
|
723
733
|
info(
|
|
724
734
|
`Stopped ${sweptOrphans.length === 1 ? "a process" : `${sweptOrphans.length} processes`} a crashed Xano Engine left running (pid ${sweptOrphans.join(", ")}).`
|
|
@@ -729,6 +739,8 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
729
739
|
`Replaced Xano Engine ${replaced.name} (${replaced.from ?? "an unrecorded version"} \u2192 ${replaced.to ?? "the resolved engine"}). It starts empty, so this deploy seeds it.`
|
|
730
740
|
);
|
|
731
741
|
}
|
|
742
|
+
const { aiOutcomeDocument, aiOutcomeLine } = await import("./local-engine-ai-YWAMTHME.js");
|
|
743
|
+
if (ai !== void 0) info(aiOutcomeLine(ai));
|
|
732
744
|
const arm = selectDeployArm({
|
|
733
745
|
...flags,
|
|
734
746
|
created: !reused,
|
|
@@ -753,7 +765,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
753
765
|
};
|
|
754
766
|
try {
|
|
755
767
|
if (arm.arm === "merge") {
|
|
756
|
-
const { mergeKeepingData } = await import("./keep-data-merge-
|
|
768
|
+
const { mergeKeepingData } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
757
769
|
merged = await mergeKeepingData({
|
|
758
770
|
auth: bearer,
|
|
759
771
|
baseUrl: engine.url,
|
|
@@ -795,10 +807,10 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
795
807
|
}
|
|
796
808
|
} catch (err) {
|
|
797
809
|
if (err instanceof XanoSdkImportRefusal && err.retryable) {
|
|
798
|
-
const { importInProgressError } = await import("./keep-data-merge-
|
|
810
|
+
const { importInProgressError } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
799
811
|
throw importInProgressError(`Xano Engine ${engine.name}`, rerunOf(args), err);
|
|
800
812
|
}
|
|
801
|
-
const { explainUnsupportedEngineImport } = await import("./local-engine-deploy-
|
|
813
|
+
const { explainUnsupportedEngineImport } = await import("./local-engine-deploy-IUHWB43Q.js");
|
|
802
814
|
const unsupported = explainUnsupportedEngineImport(err, engineVersion, {
|
|
803
815
|
latest: await latestEngineRelease(err),
|
|
804
816
|
resetRerun: arm.arm === "merge" ? `${rerunOf(args).command} --reset` : void 0
|
|
@@ -817,7 +829,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
817
829
|
throw unsupported ?? err;
|
|
818
830
|
}
|
|
819
831
|
commitLock?.();
|
|
820
|
-
const { markEngineFilled } = await import("./local-engine-state-
|
|
832
|
+
const { markEngineFilled } = await import("./local-engine-state-BOKHLNRQ.js");
|
|
821
833
|
markEngineFilled(dir, engine.url);
|
|
822
834
|
const urlChanged = !reused || previousUrl !== engine.url;
|
|
823
835
|
if (urlChanged) {
|
|
@@ -865,6 +877,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
865
877
|
...choice.override === void 0 ? {} : { override: choice.override }
|
|
866
878
|
},
|
|
867
879
|
created: !reused,
|
|
880
|
+
...ai === void 0 ? {} : { ai: aiOutcomeDocument(ai) },
|
|
868
881
|
...dataFields(arm),
|
|
869
882
|
...mergeLossFields(merged),
|
|
870
883
|
...staticSummary === void 0 ? {} : { static: staticSummary }
|
|
@@ -918,7 +931,7 @@ async function publishStaticToLocalEngine(args, dir, engine, engineVersion) {
|
|
|
918
931
|
}
|
|
919
932
|
}
|
|
920
933
|
async function parseDeploySource(raw) {
|
|
921
|
-
const { requireBackendSlot, parseSlot } = await import("./backend-slot-
|
|
934
|
+
const { requireBackendSlot, parseSlot } = await import("./backend-slot-WSWAHL2W.js");
|
|
922
935
|
const source = parseSlot(requireBackendSlot("deploy", void 0, "subject"), raw);
|
|
923
936
|
if (source.kind === "file") throw new Error(`Internal: "${raw}" parsed as a bundle path on the fetch arm.`);
|
|
924
937
|
return source;
|
|
@@ -1112,21 +1125,27 @@ async function runDeploy(args) {
|
|
|
1112
1125
|
refuseStaticHostAReplaceClears(args, args.to !== void 0 ? args.replace : !args.keepData || args.reset);
|
|
1113
1126
|
assertNoOrphanFlags(args);
|
|
1114
1127
|
warnSecretLookingStaticEnv(args.staticEnv);
|
|
1128
|
+
if (args.aiBilling !== void 0 && !args.localEngine) {
|
|
1129
|
+
throw new UsageError(
|
|
1130
|
+
`\`--ai-billing\` chooses who a Xano Engine's Xano AI usage is billed to, and ${args.to !== void 0 ? "`--to`" : "`--ephemeral`"} deploys to a hosted backend, which bills Xano AI to its own instance. Drop \`--ai-billing\`, or deploy to the Xano Engine (\`xanosdk deploy\`).`,
|
|
1131
|
+
{ hintFor: { command: "deploy" } }
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1115
1134
|
if (args.to !== void 0) return runDeployToDestination(args, args.to);
|
|
1116
1135
|
assertNoDestinationFlags(args);
|
|
1117
1136
|
const startedAt = Date.now();
|
|
1118
1137
|
if (args.reset && !args.keepData) {
|
|
1119
1138
|
info("`--reset` changes nothing here: it only overrides `--keep-data`, and without it a deploy already replaces the environment.");
|
|
1120
1139
|
}
|
|
1121
|
-
const { looksLikeSource, resolveProjectEntry, fetchSourceArchive, passwordSeedColumns, archiveSeedContent, gatedApiGroups } = await import("./deploy-source-
|
|
1140
|
+
const { looksLikeSource, resolveProjectEntry, fetchSourceArchive, passwordSeedColumns, archiveSeedContent, gatedApiGroups } = await import("./deploy-source-7GCMMZKV.js");
|
|
1122
1141
|
const fetching = args.file !== void 0 && looksLikeSource(args.file);
|
|
1123
1142
|
const sourceSpec = fetching ? await parseDeploySource(args.file) : void 0;
|
|
1124
1143
|
if (sourceSpec !== void 0) refuseValueFlagsForSource(args, args.file, sourceSpec);
|
|
1125
1144
|
if (destination.kind === "local") {
|
|
1126
1145
|
refuseSameEngine(sourceSpec, process.cwd());
|
|
1127
|
-
const { refuseProfileForLocal } = await import("./tracked-backend-
|
|
1146
|
+
const { refuseProfileForLocal } = await import("./tracked-backend-7XW4KPIR.js");
|
|
1128
1147
|
refuseProfileForLocal(args.profile, sourceSpec === void 0 ? ["local"] : ["local", sourceSpec.kind], void 0, {});
|
|
1129
|
-
const { refuseCredentialFlagsForLocal } = await import("./local-engine-choice-
|
|
1148
|
+
const { refuseCredentialFlagsForLocal } = await import("./local-engine-choice-PCM45R3A.js");
|
|
1130
1149
|
refuseCredentialFlagsForLocal(args, sourceSpec === void 0 ? ["local"] : ["local", sourceSpec.kind]);
|
|
1131
1150
|
}
|
|
1132
1151
|
if (!fetching) {
|
|
@@ -1142,7 +1161,7 @@ async function runDeploy(args) {
|
|
|
1142
1161
|
}
|
|
1143
1162
|
refuseMissingStaticDir(args);
|
|
1144
1163
|
if (destination.kind === "local") {
|
|
1145
|
-
const { memoCredential } = await import("./tracked-backend-
|
|
1164
|
+
const { memoCredential } = await import("./tracked-backend-7XW4KPIR.js");
|
|
1146
1165
|
return deployToLocalEngine(
|
|
1147
1166
|
args,
|
|
1148
1167
|
destination,
|
|
@@ -1154,7 +1173,7 @@ async function runDeploy(args) {
|
|
|
1154
1173
|
const auth = await getAccessToken(args);
|
|
1155
1174
|
refuseSameEphemeral(sourceSpec, auth, process.cwd(), contextFlags(args), args.keepData && !args.reset);
|
|
1156
1175
|
await noteRunScopeFor(auth);
|
|
1157
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
1176
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
|
|
1158
1177
|
const toolchain = await discoverToolchainPlugins(process.cwd(), {
|
|
1159
1178
|
frozen: args.frozenLock === true
|
|
1160
1179
|
});
|
|
@@ -1198,7 +1217,7 @@ async function runDeploy(args) {
|
|
|
1198
1217
|
);
|
|
1199
1218
|
}
|
|
1200
1219
|
{
|
|
1201
|
-
const { runBundleHooks } = await import("./toolchain-hooks-
|
|
1220
|
+
const { runBundleHooks } = await import("./toolchain-hooks-IRPM6LYL.js");
|
|
1202
1221
|
const { readVersion } = await import("./cli.js");
|
|
1203
1222
|
await runBundleHooks(
|
|
1204
1223
|
toolchain.loaded,
|
|
@@ -1288,9 +1307,9 @@ async function runDeploy(args) {
|
|
|
1288
1307
|
}).finally(() => noteLanded(void 0));
|
|
1289
1308
|
if (staticSummary !== void 0) summary.static = staticSummary;
|
|
1290
1309
|
if (summary.ephemeral !== void 0) {
|
|
1291
|
-
const { landingLockPath, recordLanding, recordForeignLanding } = await import("./landing-record-
|
|
1310
|
+
const { landingLockPath, recordLanding, recordForeignLanding } = await import("./landing-record-ZY4O7OLQ.js");
|
|
1292
1311
|
const dest = { kind: "ephemeral", name: summary.ephemeral.name };
|
|
1293
|
-
const { storedColumnsAfter } = await import("./live-diff-
|
|
1312
|
+
const { storedColumnsAfter } = await import("./live-diff-GZ6JUNP6.js");
|
|
1294
1313
|
const sent = JSON.parse(bundle);
|
|
1295
1314
|
const stored = summary.data === "kept" ? removedOut.storedColumns : storedColumnsAfter(sent, void 0, /* @__PURE__ */ new Map(), "rebuild");
|
|
1296
1315
|
if (fetching || args.bundle !== void 0) {
|
|
@@ -1352,7 +1371,7 @@ async function runDeploy(args) {
|
|
|
1352
1371
|
async function syncDevEnvAfterDeploy(args, summary, cwd = process.cwd(), opts = {}) {
|
|
1353
1372
|
if (args.noDevEnv || summary.url === void 0) return;
|
|
1354
1373
|
if (opts.staticServing === true || summary.static !== void 0 && summary.static.error === void 0) {
|
|
1355
|
-
const { staleDevEnv } = await import("./dev-env-sync-
|
|
1374
|
+
const { staleDevEnv } = await import("./dev-env-sync-LZ22CSKD.js");
|
|
1356
1375
|
let stale;
|
|
1357
1376
|
try {
|
|
1358
1377
|
stale = staleDevEnv(cwd, summary.url);
|
|
@@ -1366,7 +1385,7 @@ async function syncDevEnvAfterDeploy(args, summary, cwd = process.cwd(), opts =
|
|
|
1366
1385
|
}
|
|
1367
1386
|
return;
|
|
1368
1387
|
}
|
|
1369
|
-
const { syncDevEnv } = await import("./dev-env-sync-
|
|
1388
|
+
const { syncDevEnv } = await import("./dev-env-sync-LZ22CSKD.js");
|
|
1370
1389
|
try {
|
|
1371
1390
|
const written = syncDevEnv(cwd, summary.url);
|
|
1372
1391
|
if (written === void 0) return;
|
|
@@ -1466,22 +1485,22 @@ function rerunOf(args) {
|
|
|
1466
1485
|
return { command: retry.command, note: withheldNote(retry.withheld) };
|
|
1467
1486
|
}
|
|
1468
1487
|
async function latestEngineRelease(err) {
|
|
1469
|
-
const { ImportHttpError } = await import("./import-
|
|
1488
|
+
const { ImportHttpError } = await import("./import-7HFTOT7M.js");
|
|
1470
1489
|
if (!(err instanceof ImportHttpError) || err.status !== 501) return void 0;
|
|
1471
|
-
const { resolveEnginePlatform } = await import("./local-engine-config-
|
|
1490
|
+
const { resolveEnginePlatform } = await import("./local-engine-config-MVNWKHZ4.js");
|
|
1472
1491
|
const platform = resolveEnginePlatform();
|
|
1473
1492
|
if (platform === void 0) return void 0;
|
|
1474
|
-
const { latestKnownVersion } = await import("./local-engine-update-check-
|
|
1493
|
+
const { latestKnownVersion } = await import("./local-engine-update-check-C72LSVUQ.js");
|
|
1475
1494
|
return latestKnownVersion({ platform });
|
|
1476
1495
|
}
|
|
1477
1496
|
async function mergeGuards(args, lock, outgoing) {
|
|
1478
1497
|
const interactive = process.stdin.isTTY === true && !isMachineOutput(args);
|
|
1479
|
-
const pinned = outgoing === void 0 ? [] : (await import("./release-command-
|
|
1498
|
+
const pinned = outgoing === void 0 ? [] : (await import("./release-command-Z3HXXLLO.js")).pinnedCanonicalGuids(outgoing.bundle, lock, outgoing.compiled);
|
|
1480
1499
|
const guards = {
|
|
1481
1500
|
...pinned.length > 0 ? { pinned } : {},
|
|
1482
1501
|
allowForeignDeletes: args.yes === true,
|
|
1483
1502
|
...interactive ? {
|
|
1484
|
-
confirm: async (q) => (await import("./prompt-
|
|
1503
|
+
confirm: async (q) => (await import("./prompt-JVYQH4OR.js")).confirm(q, {
|
|
1485
1504
|
flag: "--yes",
|
|
1486
1505
|
refusal: { details: { deployed: false }, ...yesRerun(args, "deploy") }
|
|
1487
1506
|
})
|
|
@@ -1497,7 +1516,7 @@ async function mergeGuards(args, lock, outgoing) {
|
|
|
1497
1516
|
for (const guid of e.replaced ?? []) replaced.set(guid, key.slice("dbo:".length));
|
|
1498
1517
|
}
|
|
1499
1518
|
const { orphanFixUps, resolveLockPath, composedChildren } = await import("./cli.js");
|
|
1500
|
-
const { clearReplacedCommand } = await import("./keep-data-merge-
|
|
1519
|
+
const { clearReplacedCommand } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1501
1520
|
const lockPath = resolveLockPath(args, entry);
|
|
1502
1521
|
const run = (line) => (line ?? "").replace(/^(renamed|deleted)\? run: /, "");
|
|
1503
1522
|
const keys = Object.keys(lock.objects);
|
|
@@ -1736,9 +1755,9 @@ Re-run as \`${rerun}\` to answer yes without being asked.${note}`,
|
|
|
1736
1755
|
{ exitCode: 1, details: { reason: "needs-confirmation", ...details } }
|
|
1737
1756
|
);
|
|
1738
1757
|
}
|
|
1739
|
-
const { confirm } = await import("./prompt-
|
|
1758
|
+
const { confirm } = await import("./prompt-JVYQH4OR.js");
|
|
1740
1759
|
if (await confirm(question, { flag: "--yes", refusal: { details, rerun, note } })) return;
|
|
1741
|
-
const { KeepDataDeclined } = await import("./keep-data-merge-
|
|
1760
|
+
const { KeepDataDeclined } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1742
1761
|
throw new KeepDataDeclined(label, "deployed");
|
|
1743
1762
|
}
|
|
1744
1763
|
function recordedEntry(file) {
|
|
@@ -1773,7 +1792,7 @@ async function refuseOtherProfileEphemeral(state, auth) {
|
|
|
1773
1792
|
{ hintFor: { command: "deploy" } }
|
|
1774
1793
|
);
|
|
1775
1794
|
if (refusal === void 0) return;
|
|
1776
|
-
const { reachableFirst } = await import("./env-target-
|
|
1795
|
+
const { reachableFirst } = await import("./env-target-CXZXMK3W.js");
|
|
1777
1796
|
throw await reachableFirst(refusal, auth);
|
|
1778
1797
|
}
|
|
1779
1798
|
async function refuseKeepDataElsewhere(state, auth) {
|
|
@@ -1787,7 +1806,7 @@ async function refuseKeepDataElsewhere(state, auth) {
|
|
|
1787
1806
|
{ hintFor: { command: "deploy" } }
|
|
1788
1807
|
);
|
|
1789
1808
|
if (refusal === void 0) return;
|
|
1790
|
-
const { reachableFirst } = await import("./env-target-
|
|
1809
|
+
const { reachableFirst } = await import("./env-target-CXZXMK3W.js");
|
|
1791
1810
|
throw await reachableFirst(refusal, auth);
|
|
1792
1811
|
}
|
|
1793
1812
|
async function reconcileRename(err, auth, name, display) {
|
|
@@ -1822,7 +1841,7 @@ If no deploy is running in this project, its guard was left behind: remove \`${s
|
|
|
1822
1841
|
}
|
|
1823
1842
|
async function deployEphemeral(auth, ctx) {
|
|
1824
1843
|
const dir = process.cwd();
|
|
1825
|
-
const { assertReadWritable } = await import("./writable-
|
|
1844
|
+
const { assertReadWritable } = await import("./writable-762DMPHW.js");
|
|
1826
1845
|
assertReadWritable(ephemeralStatePath(dir));
|
|
1827
1846
|
const guard = await takeCreateGuard(dir, ctx.args);
|
|
1828
1847
|
try {
|
|
@@ -1841,7 +1860,7 @@ async function deployEphemeralGuarded(auth, ctx, createGuard) {
|
|
|
1841
1860
|
};
|
|
1842
1861
|
const parentWorkspaceId = auth.workspaceId;
|
|
1843
1862
|
const dir = process.cwd();
|
|
1844
|
-
const { assertReadWritable, assertWritable } = await import("./writable-
|
|
1863
|
+
const { assertReadWritable, assertWritable } = await import("./writable-762DMPHW.js");
|
|
1845
1864
|
assertReadWritable(ephemeralStatePath(dir));
|
|
1846
1865
|
if (ctx.lockPath !== void 0) assertWritable(ctx.lockPath, "build without a lock with `--no-lock`");
|
|
1847
1866
|
const state = readEphemeralState(dir);
|
|
@@ -1899,7 +1918,7 @@ async function deployEphemeralGuarded(auth, ctx, createGuard) {
|
|
|
1899
1918
|
}).finally(() => creating?.clear()).catch(async (err) => {
|
|
1900
1919
|
if (isEphemeralDisabled(err)) throw ephemeralDisabledError(source);
|
|
1901
1920
|
if (err.status === 404) {
|
|
1902
|
-
const { refuseUnreachableWorkspace } = await import("./workspace-binding-
|
|
1921
|
+
const { refuseUnreachableWorkspace } = await import("./workspace-binding-M7XSJIWC.js");
|
|
1903
1922
|
await refuseUnreachableWorkspace(auth);
|
|
1904
1923
|
}
|
|
1905
1924
|
throw unknownCreateOutcome(err, display, flags, retryCommand(args, { creates: true }));
|
|
@@ -1967,7 +1986,7 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
1967
1986
|
if (arm.arm === "replace") refuseStaticHostAReplaceClears(args, true);
|
|
1968
1987
|
else await assertStaticHostExists(args, auth, { baseUrl, workspaceId: 1 });
|
|
1969
1988
|
if (arm.arm === "replace") {
|
|
1970
|
-
const { gateForeignReplace } = await import("./keep-data-merge-
|
|
1989
|
+
const { gateForeignReplace } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1971
1990
|
const { allowForeignDeletes, confirm } = await mergeGuards(args, void 0);
|
|
1972
1991
|
await gateForeignReplace({
|
|
1973
1992
|
auth,
|
|
@@ -2039,7 +2058,7 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
2039
2058
|
let merged;
|
|
2040
2059
|
try {
|
|
2041
2060
|
if (arm.arm === "merge") {
|
|
2042
|
-
const { mergeKeepingData } = await import("./keep-data-merge-
|
|
2061
|
+
const { mergeKeepingData } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
2043
2062
|
merged = await mergeKeepingData({
|
|
2044
2063
|
auth,
|
|
2045
2064
|
baseUrl,
|
|
@@ -2093,11 +2112,11 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
2093
2112
|
if (!lockCommitted) ctx.warnOrphansUncommitted?.();
|
|
2094
2113
|
if (err instanceof Error && err.name === "KeepDataDeclined") throw err;
|
|
2095
2114
|
if (err instanceof XanoSdkImportRefusal && err.retryable) {
|
|
2096
|
-
const { importInProgressError } = await import("./keep-data-merge-
|
|
2115
|
+
const { importInProgressError } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
2097
2116
|
const retry = retryCommand(args);
|
|
2098
2117
|
throw importInProgressError(namedEphemeral(target), { command: retry.command, note: withheldNote(retry.withheld) }, err);
|
|
2099
2118
|
}
|
|
2100
|
-
const { withSignatureHint } = await import("./release-command-
|
|
2119
|
+
const { withSignatureHint } = await import("./release-command-Z3HXXLLO.js");
|
|
2101
2120
|
importFailure = withSignatureHint(err, args.bundle);
|
|
2102
2121
|
}
|
|
2103
2122
|
if (arm.arm === "merge" && renamedTo !== void 0) target = { ...target, display: renamedTo };
|
|
@@ -2261,7 +2280,7 @@ ${createdButFailedNote(target.name, unknown, args, landedUnresolved, { futile })
|
|
|
2261
2280
|
};
|
|
2262
2281
|
}
|
|
2263
2282
|
async function deployStaticTo(dir, auth, target, env, explicit, host, skipLiveness, routing, dirLabel, opts = {}) {
|
|
2264
|
-
const { deployStaticHost } = await import("./static-host-
|
|
2283
|
+
const { deployStaticHost } = await import("./static-host-HCKD26Q3.js");
|
|
2265
2284
|
const where = target.label && target.label !== "" ? target.label : `workspace #${target.workspaceId}`;
|
|
2266
2285
|
if (target.announced !== true) step(`Deploying static frontend ${dir} \u2192 ${where}${host ? ` (host: ${host})` : ""}`);
|
|
2267
2286
|
const sh = await describeWrite(
|
|
@@ -2391,4 +2410,4 @@ export {
|
|
|
2391
2410
|
unknownCreateOutcome,
|
|
2392
2411
|
deployStaticTo
|
|
2393
2412
|
};
|
|
2394
|
-
//# sourceMappingURL=chunk-
|
|
2413
|
+
//# sourceMappingURL=chunk-JVMAWMO3.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
safeHttpFailure,
|
|
11
11
|
statusLabel,
|
|
12
12
|
writeStatusAftermath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
14
14
|
|
|
15
15
|
// src/deploy/release.ts
|
|
16
16
|
var TIMEOUT_MS = 3e4;
|
|
@@ -405,4 +405,4 @@ export {
|
|
|
405
405
|
exportRelease,
|
|
406
406
|
deleteRelease
|
|
407
407
|
};
|
|
408
|
-
//# sourceMappingURL=chunk-
|
|
408
|
+
//# sourceMappingURL=chunk-JXX2QXPP.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
serverMessage,
|
|
10
10
|
statusLabel,
|
|
11
11
|
transportTarget
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
13
13
|
import {
|
|
14
14
|
withArticle
|
|
15
15
|
} from "./chunk-36JUQZVQ.js";
|
|
@@ -110,4 +110,4 @@ export {
|
|
|
110
110
|
assertBranchReadSupported,
|
|
111
111
|
exportWorkspaceBundle
|
|
112
112
|
};
|
|
113
|
-
//# sourceMappingURL=chunk-
|
|
113
|
+
//# sourceMappingURL=chunk-KHX6VQ4M.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envExampleNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLXGLHK3.js";
|
|
4
4
|
import {
|
|
5
5
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
6
6
|
renderWorkspaceEnvExample
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FJS5I6V4.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-KL4PGJ2G.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classifyFailure
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XD5FOBMZ.js";
|
|
4
4
|
import {
|
|
5
5
|
describeWrite
|
|
6
6
|
} from "./chunk-4KHEMC32.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
warn,
|
|
15
15
|
writeJson,
|
|
16
16
|
writeTargetPayload
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6534P3VH.js";
|
|
18
18
|
|
|
19
19
|
// src/emit/operation-result.ts
|
|
20
20
|
var SERVER_PROCESSING_BOUND_MS = 6e5;
|
|
@@ -253,4 +253,4 @@ export {
|
|
|
253
253
|
OperationError,
|
|
254
254
|
runOperation
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-KU4HLYWT.js.map
|