@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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertOneName,
|
|
3
3
|
noteRunArgs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZCXWOGFL.js";
|
|
5
5
|
import {
|
|
6
6
|
WORKSPACE_ENV_FILE,
|
|
7
7
|
classifyEnv,
|
|
@@ -10,13 +10,26 @@ import {
|
|
|
10
10
|
namesInEnvExample,
|
|
11
11
|
readEnvFile,
|
|
12
12
|
readWorkspaceEnvFileContents
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FJS5I6V4.js";
|
|
14
14
|
import {
|
|
15
15
|
readTrackedBackend
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XWEDFVJ6.js";
|
|
17
17
|
import {
|
|
18
18
|
isExpired
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-745NOWB7.js";
|
|
20
|
+
import {
|
|
21
|
+
allLandings,
|
|
22
|
+
getEnvironment,
|
|
23
|
+
readEphemeralState
|
|
24
|
+
} from "./chunk-DAXFWXSV.js";
|
|
25
|
+
import {
|
|
26
|
+
buildSeedContentFiles,
|
|
27
|
+
collectNonPublicSeedValues,
|
|
28
|
+
hostedFileArchivePath,
|
|
29
|
+
hostedFileResolver,
|
|
30
|
+
isMissingFile,
|
|
31
|
+
registerSeedHostedFiles
|
|
32
|
+
} from "./chunk-LMX4VE4H.js";
|
|
20
33
|
import {
|
|
21
34
|
readLockFile,
|
|
22
35
|
readLockFileReport,
|
|
@@ -24,31 +37,33 @@ import {
|
|
|
24
37
|
} from "./chunk-7ZVQIKNL.js";
|
|
25
38
|
import {
|
|
26
39
|
isCI
|
|
27
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-X7EK5PTK.js";
|
|
28
41
|
import {
|
|
29
42
|
backendSlotForFlag,
|
|
30
43
|
slotValueMissing
|
|
31
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CGLYG2VF.js";
|
|
32
45
|
import {
|
|
33
46
|
defaultWorkspaceSecretsPath,
|
|
34
47
|
readSecretsFile
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import {
|
|
37
|
-
allLandings,
|
|
38
|
-
getEnvironment,
|
|
39
|
-
readEphemeralState
|
|
40
|
-
} from "./chunk-WGKKDGSA.js";
|
|
48
|
+
} from "./chunk-WXY24GKO.js";
|
|
41
49
|
import {
|
|
42
50
|
isUnwritableError,
|
|
43
51
|
unwritableError
|
|
44
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-TDSRZDQP.js";
|
|
45
53
|
import {
|
|
46
54
|
contextFlags,
|
|
47
55
|
setHintContext
|
|
48
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-4DVP42ZC.js";
|
|
49
57
|
import {
|
|
50
58
|
expandHome
|
|
51
59
|
} from "./chunk-EUUUMY7J.js";
|
|
60
|
+
import {
|
|
61
|
+
writeData
|
|
62
|
+
} from "./chunk-4GPIOIAC.js";
|
|
63
|
+
import {
|
|
64
|
+
holdsProjectManifest,
|
|
65
|
+
projectRootFrom
|
|
66
|
+
} from "./chunk-HU7F56VF.js";
|
|
52
67
|
import {
|
|
53
68
|
shellWord
|
|
54
69
|
} from "./chunk-FWD7AL6N.js";
|
|
@@ -56,28 +71,13 @@ import {
|
|
|
56
71
|
inCredentialScope,
|
|
57
72
|
lastResolvedAuth,
|
|
58
73
|
pinnedWorkspaceMissed
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import {
|
|
61
|
-
buildSeedContentFiles,
|
|
62
|
-
collectNonPublicSeedValues,
|
|
63
|
-
hostedFileArchivePath,
|
|
64
|
-
hostedFileResolver,
|
|
65
|
-
isMissingFile,
|
|
66
|
-
registerSeedHostedFiles
|
|
67
|
-
} from "./chunk-WGGATSIP.js";
|
|
68
|
-
import {
|
|
69
|
-
holdsProjectManifest,
|
|
70
|
-
projectRootFrom
|
|
71
|
-
} from "./chunk-HU7F56VF.js";
|
|
74
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
72
75
|
import {
|
|
73
76
|
assertValidProfileName
|
|
74
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-Q4R2ABFL.js";
|
|
75
78
|
import {
|
|
76
79
|
readEnvVar
|
|
77
80
|
} from "./chunk-X2NL4KUO.js";
|
|
78
|
-
import {
|
|
79
|
-
writeData
|
|
80
|
-
} from "./chunk-4GPIOIAC.js";
|
|
81
81
|
import {
|
|
82
82
|
bundleCapabilities,
|
|
83
83
|
capabilityReport
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
warn,
|
|
137
137
|
withCliPrefix,
|
|
138
138
|
writeJson
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-6534P3VH.js";
|
|
140
140
|
import {
|
|
141
141
|
KNOWLEDGE_DIR,
|
|
142
142
|
KNOWLEDGE_FILE,
|
|
@@ -144,13 +144,13 @@ import {
|
|
|
144
144
|
isOsMetadataFile,
|
|
145
145
|
registerAllKinds,
|
|
146
146
|
serializeBundle
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-MGC5S6OE.js";
|
|
148
148
|
import {
|
|
149
149
|
Xano,
|
|
150
150
|
checkDrillMaybeNull,
|
|
151
151
|
checkFilterOperands,
|
|
152
152
|
standaloneDefKind
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-EME5G4YP.js";
|
|
154
154
|
import {
|
|
155
155
|
knowledgeBodiesAllEmpty
|
|
156
156
|
} from "./chunk-QDPY7RN3.js";
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
checkUncheckedWorkflowTestCalls,
|
|
188
188
|
checkZipPasswordKeys,
|
|
189
189
|
isQueryExpressionFilter
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-CJ5WRCVE.js";
|
|
191
191
|
import {
|
|
192
192
|
FILTER_NAMES
|
|
193
193
|
} from "./chunk-RLQX6LHW.js";
|
|
@@ -1350,6 +1350,40 @@ async function loadBundleText(args, target, opts = {}) {
|
|
|
1350
1350
|
throw missingArgument("file", target);
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
+
// src/util/user-agent.ts
|
|
1354
|
+
var runCommand;
|
|
1355
|
+
function noteUserAgentCommand(command) {
|
|
1356
|
+
runCommand = command;
|
|
1357
|
+
}
|
|
1358
|
+
function underCi(env) {
|
|
1359
|
+
const v = env.CI?.trim().toLowerCase();
|
|
1360
|
+
return v !== void 0 && v !== "" && v !== "0" && v !== "false";
|
|
1361
|
+
}
|
|
1362
|
+
function userAgent(version, opts = {}) {
|
|
1363
|
+
const command = "command" in opts ? opts.command : runCommand;
|
|
1364
|
+
const parts = [
|
|
1365
|
+
...command === void 0 ? [] : [command],
|
|
1366
|
+
`node ${opts.node ?? process.versions.node}`,
|
|
1367
|
+
`${opts.platform ?? process.platform} ${opts.arch ?? process.arch}`,
|
|
1368
|
+
...underCi(opts.env ?? process.env) ? ["ci"] : []
|
|
1369
|
+
];
|
|
1370
|
+
return `xanosdk/${version} (${parts.join("; ")})`;
|
|
1371
|
+
}
|
|
1372
|
+
function userAgentFetch(fetchImpl, version) {
|
|
1373
|
+
return (input, init) => {
|
|
1374
|
+
const headers = new Headers(init?.headers ?? (input instanceof Request ? input.headers : void 0));
|
|
1375
|
+
if (headers.has("user-agent")) return fetchImpl(input, init);
|
|
1376
|
+
headers.set("user-agent", userAgent(version));
|
|
1377
|
+
return fetchImpl(input, { ...init, headers });
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
var installed = false;
|
|
1381
|
+
function installUserAgent(version) {
|
|
1382
|
+
if (installed) return;
|
|
1383
|
+
installed = true;
|
|
1384
|
+
globalThis.fetch = userAgentFetch(globalThis.fetch.bind(globalThis), version);
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1353
1387
|
// src/emit/cli.ts
|
|
1354
1388
|
installNodeLambdaChecks();
|
|
1355
1389
|
function wholeNumber(raw) {
|
|
@@ -1363,6 +1397,7 @@ function parsePort(raw) {
|
|
|
1363
1397
|
return n;
|
|
1364
1398
|
}
|
|
1365
1399
|
var NOUN_COMMANDS = /* @__PURE__ */ new Set([
|
|
1400
|
+
"ai",
|
|
1366
1401
|
"profile",
|
|
1367
1402
|
"env",
|
|
1368
1403
|
"secrets",
|
|
@@ -1379,6 +1414,11 @@ function helpTargetFor(command, subcommand) {
|
|
|
1379
1414
|
if (command === void 0 || !isCommand(command)) return void 0;
|
|
1380
1415
|
return subcommand !== void 0 && getSubcommand(command, subcommand) !== void 0 ? { command, subcommand } : { command };
|
|
1381
1416
|
}
|
|
1417
|
+
function knownCommand(args) {
|
|
1418
|
+
const target = helpTargetFor(args.command, args.subcommand);
|
|
1419
|
+
if (target === void 0) return void 0;
|
|
1420
|
+
return target.subcommand === void 0 ? target.command : `${target.command} ${target.subcommand}`;
|
|
1421
|
+
}
|
|
1382
1422
|
function selectorValueMissing(key, spelling, command, subcommand) {
|
|
1383
1423
|
const slot = backendSlotForFlag(command, subcommand, key);
|
|
1384
1424
|
if (slot !== void 0) return slotValueMissing(slot);
|
|
@@ -1483,6 +1523,7 @@ function parseArgs(argv) {
|
|
|
1483
1523
|
let keepData = false;
|
|
1484
1524
|
let on;
|
|
1485
1525
|
let kind;
|
|
1526
|
+
let aiBilling;
|
|
1486
1527
|
let concurrency;
|
|
1487
1528
|
let test = false;
|
|
1488
1529
|
let expiresHours;
|
|
@@ -1658,6 +1699,10 @@ function parseArgs(argv) {
|
|
|
1658
1699
|
kind = parseKind(valueAfter());
|
|
1659
1700
|
} else if (arg.startsWith("--kind=")) {
|
|
1660
1701
|
kind = parseKind(arg.slice("--kind=".length));
|
|
1702
|
+
} else if (arg === "--ai-billing") {
|
|
1703
|
+
aiBilling = parseAiBilling(valueAfter());
|
|
1704
|
+
} else if (arg.startsWith("--ai-billing=")) {
|
|
1705
|
+
aiBilling = parseAiBilling(arg.slice("--ai-billing=".length));
|
|
1661
1706
|
} else if (arg === "--concurrency") {
|
|
1662
1707
|
concurrency = parseConcurrency(numberAfter());
|
|
1663
1708
|
} else if (arg.startsWith("--concurrency=")) {
|
|
@@ -2073,6 +2118,13 @@ function parseArgs(argv) {
|
|
|
2073
2118
|
});
|
|
2074
2119
|
};
|
|
2075
2120
|
if (aiSeen) refuseUnlessDeclared("ai", "--ai", "it only chooses whether `init` writes AGENTS.md.");
|
|
2121
|
+
if (aiBilling !== void 0) {
|
|
2122
|
+
refuseUnlessDeclared(
|
|
2123
|
+
"ai-billing",
|
|
2124
|
+
"--ai-billing",
|
|
2125
|
+
"it chooses who a Xano Engine's Xano AI usage is billed to, so only `deploy` and `local update`, which start one, take it."
|
|
2126
|
+
);
|
|
2127
|
+
}
|
|
2076
2128
|
if (profileSeen && profile !== void 0) {
|
|
2077
2129
|
if (command !== void 0 && !isAuthenticatedCommand(command, subcommand)) {
|
|
2078
2130
|
const path2 = subcommand === void 0 ? command : `${command} ${subcommand}`;
|
|
@@ -2344,6 +2396,7 @@ function parseArgs(argv) {
|
|
|
2344
2396
|
keepData,
|
|
2345
2397
|
on,
|
|
2346
2398
|
kind,
|
|
2399
|
+
...aiBilling === void 0 ? {} : { aiBilling },
|
|
2347
2400
|
concurrency,
|
|
2348
2401
|
test,
|
|
2349
2402
|
expiresHours,
|
|
@@ -2472,6 +2525,12 @@ function parseFormat(raw) {
|
|
|
2472
2525
|
if (raw === "json" || raw === "multidoc") return raw;
|
|
2473
2526
|
throw new UsageError(`--format must be "json" or "multidoc" (got "${raw ?? ""}").`);
|
|
2474
2527
|
}
|
|
2528
|
+
function parseAiBilling(raw) {
|
|
2529
|
+
if (raw === "user" || raw === "instance") return raw;
|
|
2530
|
+
throw new UsageError(
|
|
2531
|
+
`--ai-billing must be "user" (bill yourself, the default) or "instance" (bill the owner of the instance you signed in to) (got "${raw ?? ""}").`
|
|
2532
|
+
);
|
|
2533
|
+
}
|
|
2475
2534
|
function parseKind(raw) {
|
|
2476
2535
|
if (raw === "unit" || raw === "workflow") return raw;
|
|
2477
2536
|
throw new UsageError(`--kind must be "unit" or "workflow" (got "${raw ?? ""}").`);
|
|
@@ -2590,7 +2649,7 @@ async function tsxRemedy(file) {
|
|
|
2590
2649
|
);
|
|
2591
2650
|
if (!declared) return fallback;
|
|
2592
2651
|
const { detectPackageManager } = await import("./package-manager-K762W7XT.js");
|
|
2593
|
-
const { inProject } = await import("./init-modules-
|
|
2652
|
+
const { inProject } = await import("./init-modules-UH7PPQTB.js");
|
|
2594
2653
|
return `This project's package.json declares it, but its dependencies are not installed \u2014 run \`${inProject(dir)}${detectPackageManager(dir)} install\` first.`;
|
|
2595
2654
|
}
|
|
2596
2655
|
if (dirname2(dir) === dir) return fallback;
|
|
@@ -3138,6 +3197,7 @@ function run(argv) {
|
|
|
3138
3197
|
noteRunScope(void 0);
|
|
3139
3198
|
runArgs = void 0;
|
|
3140
3199
|
noteRunArgs(void 0);
|
|
3200
|
+
noteUserAgentCommand(void 0);
|
|
3141
3201
|
offeredPull = void 0;
|
|
3142
3202
|
mergeExcusedEnv = void 0;
|
|
3143
3203
|
mergeExcusedDocToken = void 0;
|
|
@@ -3211,7 +3271,7 @@ async function explainUnreachableWorkspace(err) {
|
|
|
3211
3271
|
let verdict = unreachableVerdicts.get(auth);
|
|
3212
3272
|
if (verdict === void 0) {
|
|
3213
3273
|
verdict = (async () => {
|
|
3214
|
-
const { readReachableWorkspaces, unreachableWorkspaceMessage } = await import("./workspace-binding-
|
|
3274
|
+
const { readReachableWorkspaces, unreachableWorkspaceMessage } = await import("./workspace-binding-M7XSJIWC.js");
|
|
3215
3275
|
const all = await readReachableWorkspaces(auth, 15e3);
|
|
3216
3276
|
if (all === void 0 || all.length === 0 || all.some((w) => w.id === auth.workspaceId)) return void 0;
|
|
3217
3277
|
return new UsageError(unreachableWorkspaceMessage(auth, all));
|
|
@@ -3225,7 +3285,7 @@ async function explainRejectedCredential(err) {
|
|
|
3225
3285
|
if (!(err instanceof Error) || resolved === void 0) return err;
|
|
3226
3286
|
const [first = "", ...rest] = err.message.split("\n");
|
|
3227
3287
|
if (!/\(401\b[^)]*\)|\banswered (HTTP )?401\b/.test(first) || /\brejected\b/.test(err.message)) return err;
|
|
3228
|
-
const { asRejectedCredential, rejectedRemedy } = await import("./whoami-command-
|
|
3288
|
+
const { asRejectedCredential, rejectedRemedy } = await import("./whoami-command-FBRWLX5Q.js");
|
|
3229
3289
|
const { auth, args } = resolved;
|
|
3230
3290
|
err.message = [first, rejectedRemedy(auth, args), ...rest].join("\n");
|
|
3231
3291
|
if (failureCode(err) === "SDK_ERROR") asRejectedCredential(err, auth, args);
|
|
@@ -3263,10 +3323,10 @@ function withoutSecretValue(args) {
|
|
|
3263
3323
|
}
|
|
3264
3324
|
async function nameLookupRerun(failure) {
|
|
3265
3325
|
if (!(failure instanceof Error) || runArgs?.argv === void 0) return failure;
|
|
3266
|
-
const { LookupFailedError, rateLimitedFailure } = await import("./source-resolve-
|
|
3326
|
+
const { LookupFailedError, rateLimitedFailure } = await import("./source-resolve-GGRHO6NW.js");
|
|
3267
3327
|
const err = rateLimitedFailure(failure);
|
|
3268
3328
|
if (!(err instanceof LookupFailedError)) return err;
|
|
3269
|
-
const { retryCommand, withheldNote } = await import("./deploy-command-
|
|
3329
|
+
const { retryCommand, withheldNote } = await import("./deploy-command-KO5FATR6.js");
|
|
3270
3330
|
if (runArgs.command === "env" && runArgs.subcommand === "set") {
|
|
3271
3331
|
const retry2 = retryCommand(withoutSecretValue(runArgs));
|
|
3272
3332
|
return err.withRerun(
|
|
@@ -3321,7 +3381,7 @@ function isPathlessRun(args) {
|
|
|
3321
3381
|
return PATHLESS_COMMANDS.has(command) || PATHLESS_VERBS[command]?.has(args.subcommand ?? "") === true;
|
|
3322
3382
|
}
|
|
3323
3383
|
async function atProjectRoot(args, command, positional) {
|
|
3324
|
-
const { enterProjectRoot } = await import("./xanosdk-project-
|
|
3384
|
+
const { enterProjectRoot } = await import("./xanosdk-project-YVLCGM3Y.js");
|
|
3325
3385
|
const entered = enterProjectRoot(args, process.cwd(), positional);
|
|
3326
3386
|
if (entered === void 0) return command(args);
|
|
3327
3387
|
if (isPathlessRun(args)) {
|
|
@@ -3422,7 +3482,7 @@ async function dispatch(rawArgv) {
|
|
|
3422
3482
|
if (typed[0] === "init") {
|
|
3423
3483
|
const web = typed.indexOf("--web", 1);
|
|
3424
3484
|
if (web !== -1) {
|
|
3425
|
-
const { runInitWebCommand } = await import("./init-web-
|
|
3485
|
+
const { runInitWebCommand } = await import("./init-web-YCPD6BYN.js");
|
|
3426
3486
|
return runInitWebCommand([...typed.slice(1, web), ...typed.slice(web + 1)]);
|
|
3427
3487
|
}
|
|
3428
3488
|
}
|
|
@@ -3440,7 +3500,7 @@ async function dispatch(rawArgv) {
|
|
|
3440
3500
|
throw unknownSubcommand(helpRequest.command, helpRequest.unknownSubcommand, helpRequest.positionals ?? []);
|
|
3441
3501
|
}
|
|
3442
3502
|
if (argv.includes("--json")) {
|
|
3443
|
-
const { helpDocument } = await import("./commands-
|
|
3503
|
+
const { helpDocument } = await import("./commands-EN4RLPOP.js");
|
|
3444
3504
|
writeJson({ version: readVersion(), ...helpDocument(helpRequest) });
|
|
3445
3505
|
return;
|
|
3446
3506
|
}
|
|
@@ -3461,7 +3521,8 @@ async function dispatch(rawArgv) {
|
|
|
3461
3521
|
setHintContext(args);
|
|
3462
3522
|
runArgs = args;
|
|
3463
3523
|
noteRunArgs(args);
|
|
3464
|
-
|
|
3524
|
+
noteUserAgentCommand(knownCommand(args));
|
|
3525
|
+
if (isMachineOutput(args)) (await import("./update-check-KKDYZG3X.js")).routeUpdateNoticeToDocument();
|
|
3465
3526
|
const { command } = args;
|
|
3466
3527
|
const out = args.out === "-" ? void 0 : args.out;
|
|
3467
3528
|
if (command === void 0) {
|
|
@@ -3482,11 +3543,11 @@ async function dispatch(rawArgv) {
|
|
|
3482
3543
|
return;
|
|
3483
3544
|
}
|
|
3484
3545
|
if (command === "init") {
|
|
3485
|
-
const { runInitCommand } = await import("./init-command-
|
|
3546
|
+
const { runInitCommand } = await import("./init-command-ERRMSKPB.js");
|
|
3486
3547
|
return runInitCommand(args);
|
|
3487
3548
|
}
|
|
3488
3549
|
if (command === "completion") {
|
|
3489
|
-
const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS, UNSUPPORTED_SHELLS } = await import("./completion-
|
|
3550
|
+
const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS, UNSUPPORTED_SHELLS } = await import("./completion-KH45QD3E.js");
|
|
3490
3551
|
const shell = args.positionals[0];
|
|
3491
3552
|
if (shell === void 0) throw missingArgument("shell", { command: "completion" });
|
|
3492
3553
|
if (!isCompletionShell(shell)) {
|
|
@@ -3505,115 +3566,119 @@ async function dispatch(rawArgv) {
|
|
|
3505
3566
|
return runCompletionCommand(shell);
|
|
3506
3567
|
}
|
|
3507
3568
|
if (command === "agent-skill") {
|
|
3508
|
-
const { runAgentSkillCommand } = await import("./agent-skill-command-
|
|
3569
|
+
const { runAgentSkillCommand } = await import("./agent-skill-command-JBX7Z6AK.js");
|
|
3509
3570
|
return runAgentSkillCommand(args);
|
|
3510
3571
|
}
|
|
3511
3572
|
if (command === "upgrade") {
|
|
3512
|
-
const { runUpgradeCommand } = await import("./upgrade-command-
|
|
3573
|
+
const { runUpgradeCommand } = await import("./upgrade-command-LRJ7V3UW.js");
|
|
3513
3574
|
return runUpgradeCommand(args);
|
|
3514
3575
|
}
|
|
3515
3576
|
if (command === "lock") {
|
|
3516
|
-
const { runLockCommand } = await import("./lock-commands-
|
|
3577
|
+
const { runLockCommand } = await import("./lock-commands-YBBTZB6M.js");
|
|
3517
3578
|
const verb = args.positionals[0];
|
|
3518
|
-
const { isProjectDir } = await import("./xanosdk-project-
|
|
3579
|
+
const { isProjectDir } = await import("./xanosdk-project-YVLCGM3Y.js");
|
|
3519
3580
|
const here = verb !== "prune" && args.lockPath === void 0 && args.entryPath === void 0 && existsSync3("xano.lock") && !isProjectDir(process.cwd()) ? { ...args, lockPath: "xano.lock" } : args;
|
|
3520
3581
|
return atProjectRoot(here, runLockCommand, verb === "prune" || verb === "import" ? "verb-path" : void 0);
|
|
3521
3582
|
}
|
|
3522
3583
|
if (command === "login") {
|
|
3523
|
-
const { runLoginCommand } = await import("./login-command-
|
|
3584
|
+
const { runLoginCommand } = await import("./login-command-DJCCEN5O.js");
|
|
3524
3585
|
return runLoginCommand(args);
|
|
3525
3586
|
}
|
|
3526
3587
|
if (command === "logout") {
|
|
3527
|
-
const { runLogoutCommand } = await import("./logout-command-
|
|
3588
|
+
const { runLogoutCommand } = await import("./logout-command-6FQLSD5H.js");
|
|
3528
3589
|
return runLogoutCommand(args);
|
|
3529
3590
|
}
|
|
3530
3591
|
if (command === "deploy") {
|
|
3531
|
-
const { runDeployCommand } = await import("./deploy-command-
|
|
3592
|
+
const { runDeployCommand } = await import("./deploy-command-KO5FATR6.js");
|
|
3532
3593
|
return atProjectRoot(args, runDeployCommand, entryPositional(args));
|
|
3533
3594
|
}
|
|
3534
3595
|
if (command === "ephemeral") {
|
|
3535
|
-
const { runEphemeralCommand } = await import("./ephemeral-command-
|
|
3596
|
+
const { runEphemeralCommand } = await import("./ephemeral-command-GIB63YX3.js");
|
|
3536
3597
|
return atProjectRoot(args, runEphemeralCommand);
|
|
3537
3598
|
}
|
|
3538
3599
|
if (command === "local") {
|
|
3539
|
-
const { runLocalEngineCommand } = await import("./local-engine-command-
|
|
3600
|
+
const { runLocalEngineCommand } = await import("./local-engine-command-ACJ6YUP7.js");
|
|
3540
3601
|
const readsProject = ["token", "stop", "update", "mcp"].includes(args.subcommand ?? "");
|
|
3541
3602
|
return readsProject ? atProjectRoot(args, runLocalEngineCommand) : runLocalEngineCommand(args);
|
|
3542
3603
|
}
|
|
3543
3604
|
if (command === "env") {
|
|
3544
3605
|
if (args.subcommand === "set" || args.subcommand === "unset") {
|
|
3545
|
-
const { runEnvVarCommand } = await import("./env-var-command-
|
|
3606
|
+
const { runEnvVarCommand } = await import("./env-var-command-4RGQALIH.js");
|
|
3546
3607
|
return atProjectRoot(args, (a) => runEnvVarCommand(a, args.subcommand));
|
|
3547
3608
|
}
|
|
3548
3609
|
if (args.subcommand !== "pull") throw unknownSubcommand("env", args.subcommand);
|
|
3549
|
-
const { runEnvPullCommand } = await import("./env-pull-command-
|
|
3610
|
+
const { runEnvPullCommand } = await import("./env-pull-command-5N5AUKJK.js");
|
|
3550
3611
|
return atProjectRoot(args, runEnvPullCommand);
|
|
3551
3612
|
}
|
|
3552
3613
|
if (command === "secrets") {
|
|
3553
3614
|
if (args.subcommand !== "fill") throw unknownSubcommand("secrets", args.subcommand);
|
|
3554
|
-
const { runSecretsFillCommand } = await import("./secrets-fill-command-
|
|
3615
|
+
const { runSecretsFillCommand } = await import("./secrets-fill-command-BK7NVKPY.js");
|
|
3555
3616
|
return atProjectRoot(args, runSecretsFillCommand, entryPositional(args));
|
|
3556
3617
|
}
|
|
3557
3618
|
if (command === "release") {
|
|
3558
|
-
const { runReleaseCommand: runReleaseNs } = await import("./release-ns-command-
|
|
3619
|
+
const { runReleaseCommand: runReleaseNs } = await import("./release-ns-command-JS3OUEFQ.js");
|
|
3559
3620
|
return atProjectRoot(args, runReleaseNs);
|
|
3560
3621
|
}
|
|
3561
3622
|
if (command === "pull") {
|
|
3562
|
-
const { runPullCommand } = await import("./pull-command-
|
|
3623
|
+
const { runPullCommand } = await import("./pull-command-ZUDJRRXV.js");
|
|
3563
3624
|
const first = args.positionals[0];
|
|
3564
3625
|
const file = first !== void 0 && !isKindShaped(first) && (/\.json$/i.test(first) || /[\\/]/.test(first));
|
|
3565
3626
|
return file ? runPullCommand(args) : atProjectRoot(args, runPullCommand);
|
|
3566
3627
|
}
|
|
3567
3628
|
if (command === "generate") {
|
|
3568
|
-
const { runGenerateCommand } = await import("./generate-command-
|
|
3629
|
+
const { runGenerateCommand } = await import("./generate-command-GW42CN4I.js");
|
|
3569
3630
|
return runGenerateCommand(args);
|
|
3570
3631
|
}
|
|
3571
3632
|
if (command === "tables") {
|
|
3572
|
-
const { runTablesCommand } = await import("./tables-command-
|
|
3633
|
+
const { runTablesCommand } = await import("./tables-command-D7DSJAXI.js");
|
|
3573
3634
|
return atProjectRoot(args, runTablesCommand);
|
|
3574
3635
|
}
|
|
3575
3636
|
if (command === "impersonate") {
|
|
3576
|
-
const { runImpersonateCommand } = await import("./impersonate-command-
|
|
3637
|
+
const { runImpersonateCommand } = await import("./impersonate-command-H72JM5IF.js");
|
|
3577
3638
|
return atProjectRoot(args, runImpersonateCommand);
|
|
3578
3639
|
}
|
|
3579
3640
|
if (command === "promote") {
|
|
3580
|
-
const { runPromoteCommand } = await import("./promote-command-
|
|
3641
|
+
const { runPromoteCommand } = await import("./promote-command-LX5UWQYG.js");
|
|
3581
3642
|
return atProjectRoot(args, runPromoteCommand);
|
|
3582
3643
|
}
|
|
3583
3644
|
if (command === "publish") {
|
|
3584
|
-
const { runPublishCommand } = await import("./publish-command-
|
|
3645
|
+
const { runPublishCommand } = await import("./publish-command-DW5VLFJN.js");
|
|
3585
3646
|
return atProjectRoot(args, runPublishCommand, "path");
|
|
3586
3647
|
}
|
|
3587
3648
|
if (command === "tenant") {
|
|
3588
|
-
const { runTenantCommand } = await import("./tenant-command-
|
|
3649
|
+
const { runTenantCommand } = await import("./tenant-command-6S5RU4PP.js");
|
|
3589
3650
|
return atProjectRoot(args, runTenantCommand);
|
|
3590
3651
|
}
|
|
3591
3652
|
if (command === "test") {
|
|
3592
|
-
const { runTestCommand } = await import("./test-command-
|
|
3653
|
+
const { runTestCommand } = await import("./test-command-FSRARFF7.js");
|
|
3593
3654
|
return atProjectRoot(args, runTestCommand);
|
|
3594
3655
|
}
|
|
3595
3656
|
if (command === "workspace") {
|
|
3596
|
-
const { runWorkspaceCommand } = await import("./workspace-command-
|
|
3657
|
+
const { runWorkspaceCommand } = await import("./workspace-command-3T6CT7UA.js");
|
|
3597
3658
|
return runWorkspaceCommand(args);
|
|
3598
3659
|
}
|
|
3599
3660
|
if (command === "status") {
|
|
3600
|
-
const { runStatusCommand } = await import("./status-command-
|
|
3661
|
+
const { runStatusCommand } = await import("./status-command-3DISBMGH.js");
|
|
3601
3662
|
return runStatusCommand(args);
|
|
3602
3663
|
}
|
|
3603
3664
|
if (command === "whoami") {
|
|
3604
|
-
const { runWhoamiCommand } = await import("./whoami-command-
|
|
3665
|
+
const { runWhoamiCommand } = await import("./whoami-command-FBRWLX5Q.js");
|
|
3605
3666
|
return runWhoamiCommand(args);
|
|
3606
3667
|
}
|
|
3607
3668
|
if (command === "profile") {
|
|
3608
|
-
const { runProfileCommand } = await import("./profile-command-
|
|
3669
|
+
const { runProfileCommand } = await import("./profile-command-EP7N7LNQ.js");
|
|
3609
3670
|
return runProfileCommand(args);
|
|
3610
3671
|
}
|
|
3672
|
+
if (command === "ai") {
|
|
3673
|
+
const { runAiCommand } = await import("./ai-models-command-I3FU6GYP.js");
|
|
3674
|
+
return runAiCommand(args);
|
|
3675
|
+
}
|
|
3611
3676
|
if (command === "marketplace") {
|
|
3612
3677
|
if (!["list", "search", "details", "install", "reinstall", "remove"].includes(args.subcommand ?? "")) {
|
|
3613
3678
|
throw unknownSubcommand("marketplace", args.subcommand);
|
|
3614
3679
|
}
|
|
3615
|
-
const marketplace = await import("./marketplace-command-
|
|
3616
|
-
const { withCatalogueRerun } = await import("./marketplace-resolve-
|
|
3680
|
+
const marketplace = await import("./marketplace-command-2JZERTJW.js");
|
|
3681
|
+
const { withCatalogueRerun } = await import("./marketplace-resolve-LT76KHJD.js");
|
|
3617
3682
|
try {
|
|
3618
3683
|
if (args.subcommand === "list") return await marketplace.runMarketplaceListCommand(args);
|
|
3619
3684
|
if (args.subcommand === "search") return await marketplace.runMarketplaceSearchCommand(args);
|
|
@@ -3626,7 +3691,7 @@ async function dispatch(rawArgv) {
|
|
|
3626
3691
|
}
|
|
3627
3692
|
}
|
|
3628
3693
|
if (command === "preflight") {
|
|
3629
|
-
const { runPreflightCommand } = await import("./preflight-command-
|
|
3694
|
+
const { runPreflightCommand } = await import("./preflight-command-ZP7VVE5T.js");
|
|
3630
3695
|
return runPreflightCommand(args);
|
|
3631
3696
|
}
|
|
3632
3697
|
if (command !== "compile" && command !== "export" && command !== "paths" && command !== "routes") {
|
|
@@ -3641,12 +3706,12 @@ async function dispatch(rawArgv) {
|
|
|
3641
3706
|
if (command === "paths" || command === "routes") {
|
|
3642
3707
|
return runPaths(args);
|
|
3643
3708
|
}
|
|
3644
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
3709
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
|
|
3645
3710
|
const toolchain = await discoverToolchainPlugins(process.cwd(), {
|
|
3646
3711
|
frozen: args.frozenLock === true || args.check === true
|
|
3647
3712
|
});
|
|
3648
3713
|
if (out && !args.check) {
|
|
3649
|
-
const { assertWritableTarget } = await import("./output-target-
|
|
3714
|
+
const { assertWritableTarget } = await import("./output-target-55RSDDTO.js");
|
|
3650
3715
|
assertWritableTarget(out, "--out");
|
|
3651
3716
|
}
|
|
3652
3717
|
const { bundle: json, bundleObject, omittedSeedTables, lock: lockOutcome, declaredEnvNames } = await compileBundle(args);
|
|
@@ -3664,7 +3729,7 @@ async function dispatch(rawArgv) {
|
|
|
3664
3729
|
"export.hosted-files-omitted"
|
|
3665
3730
|
);
|
|
3666
3731
|
}
|
|
3667
|
-
const { runBundleHooks } = await import("./toolchain-hooks-
|
|
3732
|
+
const { runBundleHooks } = await import("./toolchain-hooks-IRPM6LYL.js");
|
|
3668
3733
|
await runBundleHooks(
|
|
3669
3734
|
toolchain.loaded,
|
|
3670
3735
|
{
|
|
@@ -3677,15 +3742,15 @@ async function dispatch(rawArgv) {
|
|
|
3677
3742
|
},
|
|
3678
3743
|
""
|
|
3679
3744
|
);
|
|
3680
|
-
const { refreshEnvExample, bundleEnvNames: bundleEnvNames2 } = await import("./env-example-refresh-
|
|
3681
|
-
const { backendDirFor } = await import("./backend-dir-
|
|
3745
|
+
const { refreshEnvExample, bundleEnvNames: bundleEnvNames2 } = await import("./env-example-refresh-DWGV4DFX.js");
|
|
3746
|
+
const { backendDirFor } = await import("./backend-dir-VOMHDVFP.js");
|
|
3682
3747
|
const declaredSet = new Set(declaredEnvNames);
|
|
3683
3748
|
const templateDir = backendDirFor(args.file);
|
|
3684
3749
|
const ownsTemplate = isWithin(resolve2(args.file), templateDir) && (dirname2(resolve2(args.file)) === templateDir || !existsSync3(join3(templateDir, "index.ts")));
|
|
3685
3750
|
const templateEnv = Object.fromEntries(
|
|
3686
3751
|
Object.entries(bundleEnvNames2(bundleObject)).filter(([name]) => declaredSet.has(name))
|
|
3687
3752
|
);
|
|
3688
|
-
const { skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-
|
|
3753
|
+
const { skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-FYNY7RTO.js");
|
|
3689
3754
|
const projectSdk = skewedProjectSdk(dirname2(resolve2(args.file)), readVersion());
|
|
3690
3755
|
const regenerate = projectSdk === void 0 ? `xanosdk export ${shellWord(pastePath(args.file))} --out ${NULL_DEVICE}` : installedCliCommand(projectSdk.root, (path) => `export ${path(args.file)} --out ${NULL_DEVICE}`);
|
|
3691
3756
|
if (args.check) {
|
|
@@ -3736,15 +3801,15 @@ async function dispatch(rawArgv) {
|
|
|
3736
3801
|
info(`${hadEnvExample ? "Updated" : "Wrote"} ${displayPath(refreshed)} to list the env names this source declares.`);
|
|
3737
3802
|
}
|
|
3738
3803
|
if (out) {
|
|
3739
|
-
const { secretsCarriedBy } = await import("./live-diff-
|
|
3740
|
-
const { writeExportFile } = await import("./output-target-
|
|
3804
|
+
const { secretsCarriedBy } = await import("./live-diff-GZ6JUNP6.js");
|
|
3805
|
+
const { writeExportFile } = await import("./output-target-55RSDDTO.js");
|
|
3741
3806
|
const written = lockOutcome?.changed ? `Only ${lockOutcome.path} was written` : void 0;
|
|
3742
3807
|
writeExportFile(out, json + "\n", secretsCarriedBy(bundleObject), "--out", written);
|
|
3743
3808
|
reportWrote(args, out, lockOutcome);
|
|
3744
3809
|
} else {
|
|
3745
3810
|
process.stdout.write(json + "\n");
|
|
3746
|
-
const { secretsCarriedBy } = await import("./live-diff-
|
|
3747
|
-
const { secretsPhrase } = await import("./output-target-
|
|
3811
|
+
const { secretsCarriedBy } = await import("./live-diff-GZ6JUNP6.js");
|
|
3812
|
+
const { secretsPhrase } = await import("./output-target-55RSDDTO.js");
|
|
3748
3813
|
const secrets = secretsCarriedBy(bundleObject);
|
|
3749
3814
|
if (secrets.length > 0) {
|
|
3750
3815
|
warn(
|
|
@@ -3763,11 +3828,11 @@ async function refreshAgentGuidance(args) {
|
|
|
3763
3828
|
if (args.noRefresh) return;
|
|
3764
3829
|
if (args.check || args.frozenLock || args.dryRun) return;
|
|
3765
3830
|
try {
|
|
3766
|
-
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-
|
|
3831
|
+
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-FYNY7RTO.js");
|
|
3767
3832
|
const entryProject = args.file === void 0 ? void 0 : installedSdk(dirname2(resolve2(args.file)))?.root;
|
|
3768
3833
|
const projectDir = existsSync3(join3(process.cwd(), "AGENTS.md")) || entryProject === void 0 ? process.cwd() : entryProject;
|
|
3769
3834
|
const projectSdk = skewedProjectSdk(projectDir, readVersion());
|
|
3770
|
-
const { refreshAgentFiles } = await import("./agent-file-refresh-
|
|
3835
|
+
const { refreshAgentFiles } = await import("./agent-file-refresh-5R5ALFEV.js");
|
|
3771
3836
|
if (projectSdk !== void 0) {
|
|
3772
3837
|
const stale = refreshAgentFiles({ projectDir, sdkVersion: readVersion(), write: false });
|
|
3773
3838
|
const file = args.file;
|
|
@@ -4001,7 +4066,7 @@ async function runPaths(args) {
|
|
|
4001
4066
|
const lockPath = resolveLockPath(args, file);
|
|
4002
4067
|
resetLockOverrides();
|
|
4003
4068
|
const lockModel = existsSync3(lockPath) ? readLockFile(lockPath) : void 0;
|
|
4004
|
-
const toolchain = args.emit !== void 0 ? await (await import("./toolchain-modules-
|
|
4069
|
+
const toolchain = args.emit !== void 0 ? await (await import("./toolchain-modules-YSM6DMDB.js")).discoverToolchainPlugins(emitProjectDir(args.emit, file), {
|
|
4005
4070
|
frozen: args.strict === true,
|
|
4006
4071
|
// A module outside its SDK peer range keeps its block and is named,
|
|
4007
4072
|
// as any other skip is; it does not abort every `dev` and `build`.
|
|
@@ -4065,7 +4130,7 @@ async function runPaths(args) {
|
|
|
4065
4130
|
if (machine && args.emit !== "-") writeJson(emitDoc(false));
|
|
4066
4131
|
return;
|
|
4067
4132
|
}
|
|
4068
|
-
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-
|
|
4133
|
+
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-PIKQ3BIJ.js");
|
|
4069
4134
|
const loaded = toolchain?.loaded ?? [];
|
|
4070
4135
|
const skipped = toolchain?.skipped ?? [];
|
|
4071
4136
|
const rendered = renderManifestFile(
|
|
@@ -4087,22 +4152,22 @@ async function runPaths(args) {
|
|
|
4087
4152
|
writeData(process.stdout, source);
|
|
4088
4153
|
return;
|
|
4089
4154
|
}
|
|
4090
|
-
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-
|
|
4155
|
+
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-FYNY7RTO.js");
|
|
4091
4156
|
const emitDir = dirname2(resolve2(args.emit));
|
|
4092
4157
|
const projectSdk = skewedProjectSdk(installedSdk(emitDir) !== void 0 ? emitDir : dirname2(resolve2(file)), readVersion());
|
|
4093
4158
|
if (projectSdk !== void 0 && existsSync3(args.emit) && readFileSync3(args.emit, "utf8") !== source) {
|
|
4094
4159
|
const emit2 = args.emit;
|
|
4095
|
-
const
|
|
4160
|
+
const installed2 = installedCliCommand(
|
|
4096
4161
|
projectSdk.root,
|
|
4097
4162
|
(path) => `routes ${path(file)} --emit ${path(emit2)}${args.strict ? " --strict" : ""}`
|
|
4098
4163
|
);
|
|
4099
4164
|
if (args.strict) {
|
|
4100
4165
|
throw new CliError(
|
|
4101
4166
|
DRIFT,
|
|
4102
|
-
`--strict: ${displayPath(emit2)} differs from what this CLI (@xano/sdk ${readVersion()}) renders, and the project has ${projectSdk.version} installed, whose wording the table follows \u2014 so this CLI cannot tell a stale table from a current one. Run \`${
|
|
4167
|
+
`--strict: ${displayPath(emit2)} differs from what this CLI (@xano/sdk ${readVersion()}) renders, and the project has ${projectSdk.version} installed, whose wording the table follows \u2014 so this CLI cannot tell a stale table from a current one. Run \`${installed2}\` to check it with the installed CLI.`
|
|
4103
4168
|
);
|
|
4104
4169
|
}
|
|
4105
|
-
warn(skewNote(emit2, readVersion(), projectSdk.version,
|
|
4170
|
+
warn(skewNote(emit2, readVersion(), projectSdk.version, installed2), "routes.cli-skew");
|
|
4106
4171
|
if (machine) writeJson(emitDoc(false, counts));
|
|
4107
4172
|
return;
|
|
4108
4173
|
}
|
|
@@ -4150,7 +4215,7 @@ async function refreshRouteManifest(entry, emit2, projectDir) {
|
|
|
4150
4215
|
resetLockOverrides();
|
|
4151
4216
|
const lockPath = join3(dirname2(resolve2(entry)), "xano.lock");
|
|
4152
4217
|
const lockModel = existsSync3(lockPath) ? readLockFile(lockPath) : void 0;
|
|
4153
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
4218
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
|
|
4154
4219
|
const toolchain = existsSync3(emit2) ? await discoverToolchainPlugins(projectDir, { frozen: false, configuring: true, peerSkew: "skip" }) : void 0;
|
|
4155
4220
|
const def = await loadDefault(entry);
|
|
4156
4221
|
if (!Xano.isXano(def)) return { manifest: "absent", lockOrphans: 0 };
|
|
@@ -4162,12 +4227,12 @@ async function refreshRouteManifest(entry, emit2, projectDir) {
|
|
|
4162
4227
|
} finally {
|
|
4163
4228
|
setDiagnosticSink(previousSink);
|
|
4164
4229
|
}
|
|
4165
|
-
const { pulledIdentities } = await import("./pull-command-
|
|
4230
|
+
const { pulledIdentities } = await import("./pull-command-ZUDJRRXV.js");
|
|
4166
4231
|
const live = pulledIdentities(payload);
|
|
4167
4232
|
const lockOrphans = lockModel === void 0 ? 0 : Object.keys(lockModel.objects).filter((k) => k !== WORKSPACE_KEY && !live.has(k)).length;
|
|
4168
4233
|
if (!existsSync3(emit2)) return { manifest: "absent", lockOrphans };
|
|
4169
4234
|
const { planRouteManifest, RouteManifestError } = await import("./routes-manifest-N73THJB3.js");
|
|
4170
|
-
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-
|
|
4235
|
+
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-PIKQ3BIJ.js");
|
|
4171
4236
|
const plan = planRouteManifest(payload, (kind, name) => lockModel?.objects[lockKey(kind, name)]?.canonical);
|
|
4172
4237
|
if (plan.unresolved.length > 0) return { manifest: "skipped", lockOrphans };
|
|
4173
4238
|
const current = readFileSync3(emit2, "utf8");
|
|
@@ -4717,7 +4782,7 @@ async function refineGonePullHint(err) {
|
|
|
4717
4782
|
if (offer === void 0 || auth === void 0 || !(err instanceof Error) || !err.message.includes(offer.clause)) return;
|
|
4718
4783
|
let gone;
|
|
4719
4784
|
try {
|
|
4720
|
-
const { lookupEphemeral } = await import("./source-resolve-
|
|
4785
|
+
const { lookupEphemeral } = await import("./source-resolve-GGRHO6NW.js");
|
|
4721
4786
|
gone = await lookupEphemeral(auth, offer.name) === null;
|
|
4722
4787
|
} catch {
|
|
4723
4788
|
return;
|
|
@@ -4892,6 +4957,7 @@ export {
|
|
|
4892
4957
|
DOC_TOKEN_REMEDY,
|
|
4893
4958
|
refuseCompileValueFlags,
|
|
4894
4959
|
loadBundleText,
|
|
4960
|
+
installUserAgent,
|
|
4895
4961
|
expandShortAttached,
|
|
4896
4962
|
envNameRule,
|
|
4897
4963
|
parseArgs,
|
|
@@ -4928,4 +4994,4 @@ export {
|
|
|
4928
4994
|
docTokenRefusalIfReplaced,
|
|
4929
4995
|
envRefusalIfReplaced
|
|
4930
4996
|
};
|
|
4931
|
-
//# sourceMappingURL=chunk-
|
|
4997
|
+
//# sourceMappingURL=chunk-ZNGUETV7.js.map
|