@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
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HU7F56VF.js";
|
|
4
4
|
import {
|
|
5
5
|
LocalFileNotFoundError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6534P3VH.js";
|
|
7
7
|
import {
|
|
8
8
|
buildContentEnvelope
|
|
9
9
|
} from "./chunk-QDPY7RN3.js";
|
|
@@ -404,4 +404,4 @@ export {
|
|
|
404
404
|
collectNonPublicSeedValues,
|
|
405
405
|
seedRowsByTableGuid
|
|
406
406
|
};
|
|
407
|
-
//# sourceMappingURL=chunk-
|
|
407
|
+
//# sourceMappingURL=chunk-LMX4VE4H.js.map
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
forgetPrunedInLockFile,
|
|
3
|
-
readLockFile,
|
|
4
|
-
recordLandingInLockFile,
|
|
5
|
-
writeLockFile
|
|
6
|
-
} from "./chunk-7ZVQIKNL.js";
|
|
7
1
|
import {
|
|
8
2
|
clearEphemeralLanding,
|
|
9
3
|
ephemeralLandedOn,
|
|
10
4
|
ephemeralStatePath,
|
|
11
5
|
recordEphemeralLanding
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
contextFlags
|
|
15
|
-
} from "./chunk-ZYZ7GRX3.js";
|
|
6
|
+
} from "./chunk-DAXFWXSV.js";
|
|
16
7
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
forgetPrunedInLockFile,
|
|
9
|
+
readLockFile,
|
|
10
|
+
recordLandingInLockFile,
|
|
11
|
+
writeLockFile
|
|
12
|
+
} from "./chunk-7ZVQIKNL.js";
|
|
19
13
|
import {
|
|
20
14
|
destinationKey,
|
|
21
15
|
isEphemeralDestinationKey,
|
|
@@ -24,11 +18,17 @@ import {
|
|
|
24
18
|
withStoredColumns,
|
|
25
19
|
withoutLanding
|
|
26
20
|
} from "./chunk-2H5BQRHF.js";
|
|
21
|
+
import {
|
|
22
|
+
contextFlags
|
|
23
|
+
} from "./chunk-4DVP42ZC.js";
|
|
24
|
+
import {
|
|
25
|
+
backendDirIn
|
|
26
|
+
} from "./chunk-N2JZU6VR.js";
|
|
27
27
|
import {
|
|
28
28
|
displayPath,
|
|
29
29
|
info,
|
|
30
30
|
warn
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6534P3VH.js";
|
|
32
32
|
import {
|
|
33
33
|
displayLockKey
|
|
34
34
|
} from "./chunk-VQDVEHDB.js";
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
holdsLanding,
|
|
261
261
|
forgetLanding
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-LYR6W5LV.js.map
|
|
@@ -2,6 +2,12 @@ import {
|
|
|
2
2
|
assertWritable,
|
|
3
3
|
atomicWrite
|
|
4
4
|
} from "./chunk-LLNZGEFK.js";
|
|
5
|
+
import {
|
|
6
|
+
isRecord
|
|
7
|
+
} from "./chunk-4Y3SWNPE.js";
|
|
8
|
+
import {
|
|
9
|
+
UsageError
|
|
10
|
+
} from "./chunk-6534P3VH.js";
|
|
5
11
|
|
|
6
12
|
// src/emit/project-config.ts
|
|
7
13
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -78,6 +84,17 @@ function writeToolchainConfig(projectDir, block) {
|
|
|
78
84
|
atomicWrite(path, next);
|
|
79
85
|
return true;
|
|
80
86
|
}
|
|
87
|
+
var AI_BILLING_FIELD = "aiBilling";
|
|
88
|
+
function resolveAiBilling(flag, projectDir) {
|
|
89
|
+
if (flag !== void 0) return flag;
|
|
90
|
+
const own = readToolchainBlock(projectDir)[SDK_PACKAGE];
|
|
91
|
+
if (!isRecord(own) || !(AI_BILLING_FIELD in own)) return "user";
|
|
92
|
+
const value = own[AI_BILLING_FIELD];
|
|
93
|
+
if (value === "user" || value === "instance") return value;
|
|
94
|
+
throw new UsageError(
|
|
95
|
+
`The "${AI_BILLING_FIELD}" setting under "xanosdk"."${SDK_PACKAGE}" in ${join(projectDir, "package.json")} is ${JSON.stringify(value)}. It must be "user" or "instance" \u2014 or pass \`--ai-billing user|instance\` for this run.`
|
|
96
|
+
);
|
|
97
|
+
}
|
|
81
98
|
|
|
82
99
|
export {
|
|
83
100
|
SDK_PACKAGE,
|
|
@@ -87,6 +104,8 @@ export {
|
|
|
87
104
|
readToolchainConfig,
|
|
88
105
|
readToolchainBlock,
|
|
89
106
|
composeToolchainConfig,
|
|
90
|
-
writeToolchainConfig
|
|
107
|
+
writeToolchainConfig,
|
|
108
|
+
AI_BILLING_FIELD,
|
|
109
|
+
resolveAiBilling
|
|
91
110
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-LZDH5COS.js.map
|
|
@@ -6,7 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-X4DVXBFY.js";
|
|
7
7
|
import {
|
|
8
8
|
ImportHttpError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EBSJUSID.js";
|
|
10
|
+
import {
|
|
11
|
+
describeWrite
|
|
12
|
+
} from "./chunk-4KHEMC32.js";
|
|
10
13
|
import {
|
|
11
14
|
TransportError,
|
|
12
15
|
certificateFailureCode,
|
|
@@ -23,10 +26,7 @@ import {
|
|
|
23
26
|
statusLabel,
|
|
24
27
|
transportTarget,
|
|
25
28
|
writeStatusAftermath
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
describeWrite
|
|
29
|
-
} from "./chunk-4KHEMC32.js";
|
|
29
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
30
30
|
import {
|
|
31
31
|
calcSignatureJson,
|
|
32
32
|
signatureHolds
|
|
@@ -461,7 +461,7 @@ async function post(auth, url, opts, action) {
|
|
|
461
461
|
const aftermath = !writes ? `A dry run writes nothing, so ${target} is untouched. Retry when the instance is reachable.` : opts.mode === "replace" ? `The request did not complete, so the import may or may not have landed, in whole or in part. A replace rewrites all of ${target}, so it is safe to run again once the instance is reachable.` : `The request did not complete, so the import may or may not have landed, in whole or in part.` + (opts.stateCheck !== void 0 ? ` ${opts.stateCheck}` : "");
|
|
462
462
|
const where = `${transportTarget(url)}${opts.label !== void 0 ? ` (${opts.label})` : ""}`;
|
|
463
463
|
if (res === void 0) {
|
|
464
|
-
const { classifyFailure } = await import("./operation-outcome-
|
|
464
|
+
const { classifyFailure } = await import("./operation-outcome-POYID3M6.js");
|
|
465
465
|
if (writes && !isTimeoutError(failure) && classifyFailure(failure, { writeSent: true }) === "no") {
|
|
466
466
|
const untrusted = certificateFailureCode(failure) !== void 0;
|
|
467
467
|
throw new ImportNotSentError(
|
|
@@ -557,4 +557,4 @@ export {
|
|
|
557
557
|
withDefaultBranchPointer,
|
|
558
558
|
xanosdkImport
|
|
559
559
|
};
|
|
560
|
-
//# sourceMappingURL=chunk-
|
|
560
|
+
//# sourceMappingURL=chunk-M42Y53Z4.js.map
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
engineVersion,
|
|
3
|
-
engineVersionToken,
|
|
4
|
-
listEngines,
|
|
5
|
-
resolveRecordedEngine,
|
|
6
|
-
startEngine,
|
|
7
|
-
stopEngineNamed,
|
|
8
|
-
stopOrphanedEngineProcesses
|
|
9
|
-
} from "./chunk-VCFRALU7.js";
|
|
10
|
-
import {
|
|
11
|
-
RELEASE_VERSION,
|
|
12
2
|
readEngineEntry,
|
|
13
3
|
stageEngine,
|
|
14
4
|
verifiedEngineExecutable
|
|
15
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VO62TKK5.js";
|
|
16
6
|
import {
|
|
17
7
|
sha256Hex
|
|
18
8
|
} from "./chunk-64WWE3EF.js";
|
|
@@ -20,45 +10,27 @@ import {
|
|
|
20
10
|
normalizeEngineVersion,
|
|
21
11
|
resolveEngineRelease,
|
|
22
12
|
usesCustomReleaseManager
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
compareSemver,
|
|
26
|
-
parseSemver
|
|
27
|
-
} from "./chunk-2TFRR6JV.js";
|
|
28
|
-
import {
|
|
29
|
-
recordDeployed
|
|
30
|
-
} from "./chunk-MOVRSULZ.js";
|
|
31
|
-
import {
|
|
32
|
-
ImportHttpError
|
|
33
|
-
} from "./chunk-GA6HTO3O.js";
|
|
34
|
-
import {
|
|
35
|
-
engineNameForProject,
|
|
36
|
-
getEngineRecord,
|
|
37
|
-
setEngineRecord
|
|
38
|
-
} from "./chunk-5Y5HWQ2P.js";
|
|
13
|
+
} from "./chunk-FVBJKM6N.js";
|
|
39
14
|
import {
|
|
40
15
|
SUPPORTED_PLATFORMS,
|
|
41
16
|
expandArchivePath,
|
|
42
17
|
isTrustedEngineUrl,
|
|
43
18
|
resolveEnginePlatform
|
|
44
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FVZ5C3PF.js";
|
|
45
20
|
import {
|
|
46
|
-
|
|
47
|
-
|
|
21
|
+
registerSecret,
|
|
22
|
+
tokenTextProblem
|
|
23
|
+
} from "./chunk-4GPIOIAC.js";
|
|
48
24
|
import {
|
|
49
25
|
TransportError,
|
|
50
26
|
fetchOrExplain
|
|
51
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
52
28
|
import {
|
|
53
29
|
readEnvVar
|
|
54
30
|
} from "./chunk-X2NL4KUO.js";
|
|
55
|
-
import {
|
|
56
|
-
registerSecret,
|
|
57
|
-
tokenTextProblem
|
|
58
|
-
} from "./chunk-4GPIOIAC.js";
|
|
59
31
|
import {
|
|
60
32
|
UsageError
|
|
61
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6534P3VH.js";
|
|
62
34
|
|
|
63
35
|
// src/deploy/local-engine-release.ts
|
|
64
36
|
import { readFileSync } from "fs";
|
|
@@ -273,6 +245,7 @@ Check the path \u2014 it is read exactly as passed to \`--local\`, with \`~\` an
|
|
|
273
245
|
);
|
|
274
246
|
}
|
|
275
247
|
}
|
|
248
|
+
var ENGINE_LICENSE_NOTICE = "Xano Engine is free to run under the Xano Engine License: https://docs.xano.com/legal/xano-engine-license";
|
|
276
249
|
async function acquireEngine(opts) {
|
|
277
250
|
try {
|
|
278
251
|
return await acquireEngineUnclassified(opts);
|
|
@@ -301,12 +274,12 @@ Deploy from one of those machines, or drop \`--local\`: \`xanosdk deploy\` reach
|
|
|
301
274
|
);
|
|
302
275
|
}
|
|
303
276
|
if (opts.spec.kind === "release") {
|
|
304
|
-
return acquireRelease(opts.spec.version, platform, env, opts.fetch);
|
|
277
|
+
return acquireRelease(opts.spec.version, platform, env, opts.fetch, opts.onDownloaded);
|
|
305
278
|
}
|
|
306
279
|
const entry = await acquireOverride(opts.spec.source, env, opts.fetch ?? defaultFetch);
|
|
307
280
|
return { entry, version: void 0 };
|
|
308
281
|
}
|
|
309
|
-
async function acquireRelease(requested, platform, env, fetch) {
|
|
282
|
+
async function acquireRelease(requested, platform, env, fetch, onDownloaded) {
|
|
310
283
|
const pinned = requested === void 0 || requested === "latest" ? void 0 : normalizeEngineVersion(requested);
|
|
311
284
|
const cacheByVersion = !usesCustomReleaseManager(env);
|
|
312
285
|
if (pinned !== void 0 && cacheByVersion) {
|
|
@@ -365,6 +338,7 @@ Re-run to rule out a truncated download; if it disagrees again, the archive is n
|
|
|
365
338
|
env
|
|
366
339
|
});
|
|
367
340
|
verifiedEngineExecutable(entry, env);
|
|
341
|
+
onDownloaded?.(asset.version);
|
|
368
342
|
return { entry, version: asset.version };
|
|
369
343
|
}
|
|
370
344
|
async function acquireOverride(source, env, fetch) {
|
|
@@ -432,183 +406,15 @@ Re-run to rule out a truncated download; if it disagrees again, the artifact is
|
|
|
432
406
|
return entry;
|
|
433
407
|
}
|
|
434
408
|
|
|
435
|
-
// src/deploy/local-engine-deploy.ts
|
|
436
|
-
async function ensureProjectEngine(opts) {
|
|
437
|
-
try {
|
|
438
|
-
return await ensureProjectEngineUnnoted(opts);
|
|
439
|
-
} catch (err) {
|
|
440
|
-
throw withDeployFallbackNote(err);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
var DEPLOY_FALLBACK_NOTE = "Meanwhile `xanosdk deploy --ephemeral` still deploys to an ephemeral.";
|
|
444
|
-
function withDeployFallbackNote(err) {
|
|
445
|
-
if (!(err instanceof Error) || err.message.includes(DEPLOY_FALLBACK_NOTE)) return err;
|
|
446
|
-
err.message = `${err.message.trimEnd()}
|
|
447
|
-
${DEPLOY_FALLBACK_NOTE}`;
|
|
448
|
-
return err;
|
|
449
|
-
}
|
|
450
|
-
async function ensureProjectEngineUnnoted(opts) {
|
|
451
|
-
const env = opts.env ?? process.env;
|
|
452
|
-
const acquired = await acquireEngine({
|
|
453
|
-
spec: opts.source,
|
|
454
|
-
env,
|
|
455
|
-
...opts.rerun === void 0 ? {} : { rerun: opts.rerun },
|
|
456
|
-
...opts.rerunNote === void 0 || opts.rerunNote === "" ? {} : { rerunNote: opts.rerunNote },
|
|
457
|
-
...opts.fetch === void 0 ? {} : { fetch: opts.fetch }
|
|
458
|
-
});
|
|
459
|
-
const { entry, version } = acquired;
|
|
460
|
-
opts.onAcquired?.(acquired);
|
|
461
|
-
const shownVersion = version ?? overrideVersion(entry, env, opts.run);
|
|
462
|
-
const { record, name, live, replaced } = reconcileLive(opts.dir, entry, shownVersion, env, opts.run);
|
|
463
|
-
const sweep = opts.sweepOrphans ?? (opts.spawn === void 0 ? () => stopOrphanedEngineProcesses({ env }).stopped : void 0);
|
|
464
|
-
const sweptOrphans = live === void 0 && sweep !== void 0 ? sweep() : [];
|
|
465
|
-
const engine = live ?? await startEngine({
|
|
466
|
-
entry,
|
|
467
|
-
name,
|
|
468
|
-
env,
|
|
469
|
-
...shownVersion === void 0 ? {} : { version: shownVersion },
|
|
470
|
-
...opts.spawn === void 0 ? {} : { spawn: opts.spawn }
|
|
471
|
-
});
|
|
472
|
-
const reused = live !== void 0;
|
|
473
|
-
const hadRecord = record !== void 0;
|
|
474
|
-
const priorFilled = record?.filled;
|
|
475
|
-
const carry = opts.carryFilled?.({ reused, hadRecord, priorFilled, url: engine.url }) === true;
|
|
476
|
-
writeRecord(opts.dir, engine, entry, shownVersion, reused && carry ? priorFilled : void 0, env);
|
|
477
|
-
if (!reused) recordDeployed(opts.dir, "local");
|
|
478
|
-
return {
|
|
479
|
-
engine,
|
|
480
|
-
reused,
|
|
481
|
-
previousUrl: record?.url,
|
|
482
|
-
entry,
|
|
483
|
-
version,
|
|
484
|
-
engineVersion: shownVersion,
|
|
485
|
-
...replaced === void 0 ? {} : { replaced },
|
|
486
|
-
...sweptOrphans.length === 0 ? {} : { sweptOrphans },
|
|
487
|
-
hadRecord,
|
|
488
|
-
priorFilled
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
async function restartMismatchedEngine(opts) {
|
|
492
|
-
const env = opts.env ?? process.env;
|
|
493
|
-
const { entry, version } = opts.acquired;
|
|
494
|
-
const shownVersion = version ?? overrideVersion(entry, env, opts.run);
|
|
495
|
-
const { record, name, replaced } = reconcileLive(opts.dir, entry, shownVersion, env, opts.run);
|
|
496
|
-
if (replaced === void 0) return void 0;
|
|
497
|
-
const engine = await startEngine({
|
|
498
|
-
entry,
|
|
499
|
-
name,
|
|
500
|
-
env,
|
|
501
|
-
...shownVersion === void 0 ? {} : { version: shownVersion },
|
|
502
|
-
...opts.spawn === void 0 ? {} : { spawn: opts.spawn }
|
|
503
|
-
});
|
|
504
|
-
writeRecord(opts.dir, engine, entry, shownVersion, void 0, env);
|
|
505
|
-
return { ...replaced, url: engine.url, previousUrl: record?.url };
|
|
506
|
-
}
|
|
507
|
-
function reconcileLive(dir, entry, shownVersion, env, run) {
|
|
508
|
-
const record = getEngineRecord(dir, env);
|
|
509
|
-
const name = record?.name ?? engineNameForProject(dir);
|
|
510
|
-
const running = listEngines({ entry, env, ...run === void 0 ? {} : { run } });
|
|
511
|
-
const found = reuseCandidate(name, record, running);
|
|
512
|
-
if (found === void 0 || record?.engineDigest === entry.digest) return { record, name, live: found };
|
|
513
|
-
stopMismatched(found.name, record, entry, env, run);
|
|
514
|
-
return { record, name, live: void 0, replaced: { name: found.name, from: record?.engineVersion, to: shownVersion } };
|
|
515
|
-
}
|
|
516
|
-
function writeRecord(dir, engine, entry, shownVersion, filled, env) {
|
|
517
|
-
setEngineRecord(
|
|
518
|
-
dir,
|
|
519
|
-
{
|
|
520
|
-
name: engine.name,
|
|
521
|
-
url: engine.url,
|
|
522
|
-
workspaceId: engine.workspaceId,
|
|
523
|
-
project: dir,
|
|
524
|
-
engineUrl: entry.url,
|
|
525
|
-
engineDigest: entry.digest,
|
|
526
|
-
...shownVersion === void 0 ? {} : { engineVersion: shownVersion },
|
|
527
|
-
startedAt: Date.now(),
|
|
528
|
-
...filled === void 0 ? {} : { filled }
|
|
529
|
-
},
|
|
530
|
-
env
|
|
531
|
-
);
|
|
532
|
-
}
|
|
533
|
-
function overrideVersion(entry, env, run) {
|
|
534
|
-
let out;
|
|
535
|
-
try {
|
|
536
|
-
out = engineVersion({ entry, env, ...run === void 0 ? {} : { run } });
|
|
537
|
-
} catch {
|
|
538
|
-
return void 0;
|
|
539
|
-
}
|
|
540
|
-
return engineVersionToken(out);
|
|
541
|
-
}
|
|
542
|
-
function stopMismatched(name, record, entry, env, run) {
|
|
543
|
-
const seam = run === void 0 ? {} : { run };
|
|
544
|
-
const attempt = (binary) => {
|
|
545
|
-
try {
|
|
546
|
-
return stopEngineNamed(name, { entry: binary, env, ...seam }).stopped;
|
|
547
|
-
} catch {
|
|
548
|
-
return false;
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
if (attempt(entry)) return;
|
|
552
|
-
const previous = recordedBinary(record, env);
|
|
553
|
-
if (previous !== void 0 && previous.digest !== entry.digest && attempt(previous)) return;
|
|
554
|
-
throw new Error(
|
|
555
|
-
`The Xano Engine "${name}" already serving this project is not the engine this deploy resolved to, and it could not be stopped` + (previous === void 0 ? `` : ` by either engine version`) + `.
|
|
556
|
-
Stop it with \`xanosdk local stop ${name}\` (or end the process), then deploy again.`
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
function recordedBinary(record, env) {
|
|
560
|
-
const version = record?.engineVersion;
|
|
561
|
-
if (version === void 0 || !RELEASE_VERSION.test(version)) return void 0;
|
|
562
|
-
try {
|
|
563
|
-
return readEngineEntry({ version }, env);
|
|
564
|
-
} catch {
|
|
565
|
-
return void 0;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
function reuseCandidate(name, record, running) {
|
|
569
|
-
if (record !== void 0) {
|
|
570
|
-
const resolved = resolveRecordedEngine(record, running);
|
|
571
|
-
if (resolved.state === "unusable") throw new Error(resolved.reason);
|
|
572
|
-
return resolved.state === "live" ? resolved.engine : void 0;
|
|
573
|
-
}
|
|
574
|
-
const engine = running.find((e) => e.name === name);
|
|
575
|
-
if (engine === void 0) return void 0;
|
|
576
|
-
assertLoopbackUrl(engine.url, "The engine already serving this project");
|
|
577
|
-
return engine;
|
|
578
|
-
}
|
|
579
|
-
function explainUnsupportedEngineImport(err, engineVersion2, ctx = {}) {
|
|
580
|
-
if (!(err instanceof ImportHttpError) || err.status !== 501) return void 0;
|
|
581
|
-
const which = engineVersion2 === void 0 ? "The Xano Engine" : `Xano Engine ${engineVersion2}`;
|
|
582
|
-
const newer = newerRelease(engineVersion2, ctx.latest);
|
|
583
|
-
if (newer !== void 0) {
|
|
584
|
-
return new Error(
|
|
585
|
-
`${which} does not support this import (HTTP 501): it is older than this SDK needs. Nothing was written. Deploy with ${newer} \u2014 \`xanosdk local update\` moves this project's pin to it, or pass \`--local=${newer}\` for one deploy.`,
|
|
586
|
-
{ cause: err }
|
|
587
|
-
);
|
|
588
|
-
}
|
|
589
|
-
if (ctx.resetRerun !== void 0) {
|
|
590
|
-
return new Error(
|
|
591
|
-
`${which} cannot apply this merge (HTTP 501): keeping the rows through this schema change is not available on the Xano Engine yet. Nothing was written. Deploy with \`${ctx.resetRerun}\` instead \u2014 it replaces the workspace and writes every table's seed rows, so rows entered since the last deploy are lost.`,
|
|
592
|
-
{ cause: err }
|
|
593
|
-
);
|
|
594
|
-
}
|
|
595
|
-
return new Error(
|
|
596
|
-
`${which} does not support this import (HTTP 501). Nothing was written. \`xanosdk deploy --ephemeral\` deploys to an ephemeral meanwhile.`,
|
|
597
|
-
{ cause: err }
|
|
598
|
-
);
|
|
599
|
-
}
|
|
600
|
-
function newerRelease(current, latest) {
|
|
601
|
-
if (current === void 0 || latest === void 0) return void 0;
|
|
602
|
-
const a = parseSemver(current);
|
|
603
|
-
const b = parseSemver(latest);
|
|
604
|
-
return a !== null && b !== null && compareSemver(b, a) > 0 ? latest : void 0;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
409
|
export {
|
|
410
|
+
LOCAL_ENGINE_TOKEN_ENV,
|
|
411
|
+
MAX_ENGINE_BYTES,
|
|
412
|
+
displayDownloadUrl,
|
|
413
|
+
unresolvedOn5xx,
|
|
414
|
+
parsePublishedChecksum,
|
|
415
|
+
extractEngineExecutable,
|
|
416
|
+
ENGINE_LICENSE_NOTICE,
|
|
608
417
|
acquireEngine,
|
|
609
|
-
|
|
610
|
-
DEPLOY_FALLBACK_NOTE,
|
|
611
|
-
restartMismatchedEngine,
|
|
612
|
-
explainUnsupportedEngineImport
|
|
418
|
+
namingRerun
|
|
613
419
|
};
|
|
614
|
-
//# sourceMappingURL=chunk-
|
|
420
|
+
//# sourceMappingURL=chunk-M5GXZEX7.js.map
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-52QAENY6.js";
|
|
11
11
|
import {
|
|
12
12
|
workspaceKind
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GUHJV7C5.js";
|
|
14
14
|
import {
|
|
15
15
|
Xano,
|
|
16
16
|
encodeMcpOauth,
|
|
17
17
|
refuseUnknown,
|
|
18
18
|
standaloneDefKind
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EME5G4YP.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveAuthRef
|
|
22
22
|
} from "./chunk-TPUAXIPR.js";
|
|
@@ -65,10 +65,13 @@ import {
|
|
|
65
65
|
registerSpec,
|
|
66
66
|
resolveEnumValue,
|
|
67
67
|
throwError
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-CJ5WRCVE.js";
|
|
69
69
|
import {
|
|
70
70
|
obj
|
|
71
71
|
} from "./chunk-U56HK2RG.js";
|
|
72
|
+
import {
|
|
73
|
+
XANO_AI_LOCATIONS
|
|
74
|
+
} from "./chunk-6SXKKDGF.js";
|
|
72
75
|
import {
|
|
73
76
|
assertCanonical,
|
|
74
77
|
assertStoredName,
|
|
@@ -1332,7 +1335,23 @@ var s = {
|
|
|
1332
1335
|
}
|
|
1333
1336
|
},
|
|
1334
1337
|
// AI agent + cloud jobs.
|
|
1335
|
-
|
|
1338
|
+
// The eight Xano AI statements are the generated factories, typed: each
|
|
1339
|
+
// binds the result the engine returns, so `ref("<as>.<field>")` traces.
|
|
1340
|
+
ai: {
|
|
1341
|
+
...generated.ai,
|
|
1342
|
+
agent: { run: aiAgentRun },
|
|
1343
|
+
text: { ...generated.ai.text, generate: generated.ai.text.generate },
|
|
1344
|
+
image: { ...generated.ai.image, generate: generated.ai.image.generate },
|
|
1345
|
+
video: { ...generated.ai.video, generate: generated.ai.video.generate },
|
|
1346
|
+
music: { ...generated.ai.music, generate: generated.ai.music.generate },
|
|
1347
|
+
speech: {
|
|
1348
|
+
...generated.ai.speech,
|
|
1349
|
+
generate: generated.ai.speech.generate,
|
|
1350
|
+
transcribe: generated.ai.speech.transcribe
|
|
1351
|
+
},
|
|
1352
|
+
embedding: { ...generated.ai.embedding, create: generated.ai.embedding.create },
|
|
1353
|
+
rerank: generated.ai.rerank
|
|
1354
|
+
},
|
|
1336
1355
|
cloud: { ...generated.cloud, job: cloudJobNs },
|
|
1337
1356
|
// Array map/union, expect.to_throw, auth-token, raw-input/post-process merge
|
|
1338
1357
|
// into their generated namespaces.
|
|
@@ -2228,6 +2247,7 @@ function resource(def) {
|
|
|
2228
2247
|
}
|
|
2229
2248
|
|
|
2230
2249
|
// src/kinds/agent.ts
|
|
2250
|
+
var TEMPLATED = /\{\{|\{%/;
|
|
2231
2251
|
function buildProviderConfig(llm) {
|
|
2232
2252
|
let config;
|
|
2233
2253
|
switch (llm.type) {
|
|
@@ -2285,6 +2305,22 @@ function buildProviderConfig(llm) {
|
|
|
2285
2305
|
dynamicRetrievalConfig: llm.dynamicRetrieval ?? ""
|
|
2286
2306
|
};
|
|
2287
2307
|
break;
|
|
2308
|
+
case "xano-ai":
|
|
2309
|
+
config = {
|
|
2310
|
+
model: llm.model ?? "",
|
|
2311
|
+
temperature: llm.temperature ?? 1,
|
|
2312
|
+
useSearchGrounding: llm.searchGrounding ?? false,
|
|
2313
|
+
thinkingConfig: {
|
|
2314
|
+
includeThoughts: llm.includeThoughts ?? false,
|
|
2315
|
+
thinkingBudget: llm.thinkingBudget ?? 0
|
|
2316
|
+
},
|
|
2317
|
+
baseURL: llm.baseURL ?? "",
|
|
2318
|
+
headers: llm.headers ?? "",
|
|
2319
|
+
safetySettings: llm.safetySettings ?? "",
|
|
2320
|
+
dynamicRetrievalConfig: llm.dynamicRetrieval ?? "",
|
|
2321
|
+
...llm.location !== void 0 ? { location: llm.location } : {}
|
|
2322
|
+
};
|
|
2323
|
+
break;
|
|
2288
2324
|
}
|
|
2289
2325
|
return llm.extraConfig ? { ...config, ...llm.extraConfig } : config;
|
|
2290
2326
|
}
|
|
@@ -2292,8 +2328,30 @@ var LLM_KEYS = {
|
|
|
2292
2328
|
anthropic: ["sendReasoning", "thinkingTokens"],
|
|
2293
2329
|
openai: ["reasoningEffort", "organization", "project", "compatibility"],
|
|
2294
2330
|
"google-genai": ["searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"],
|
|
2295
|
-
"xano-free": ["searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"]
|
|
2331
|
+
"xano-free": ["searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"],
|
|
2332
|
+
"xano-ai": ["model", "location", "searchGrounding", "thinkingBudget", "includeThoughts", "safetySettings", "dynamicRetrieval"]
|
|
2296
2333
|
};
|
|
2334
|
+
function assertXanoAiSettings(owner, llm) {
|
|
2335
|
+
const where = `${owner} llm (xano-ai)`;
|
|
2336
|
+
const model = llm.model;
|
|
2337
|
+
if (model !== void 0 && (typeof model !== "string" || TEMPLATED.test(model))) {
|
|
2338
|
+
throw new Error(
|
|
2339
|
+
`${where}: \`model\` must be a literal model name \u2014 got ${typeof model === "string" ? JSON.stringify(model) : "a value expression"}. The run picks the model before it renders templates, so a \`{{ \u2026 }}\` or expression never matches and every run would use the default model instead. Write the name, e.g. \`model: "gemini-3.8-flash"\` (\`xanosdk ai models\` lists them).`
|
|
2340
|
+
);
|
|
2341
|
+
}
|
|
2342
|
+
const location = llm.location;
|
|
2343
|
+
if (location === void 0) return;
|
|
2344
|
+
if (typeof location !== "string") {
|
|
2345
|
+
throw new Error(
|
|
2346
|
+
`${where}: \`location\` is a value expression; it takes "" | "us" | "global" | "eu", or a \`{{ $env.NAME }}\` / \`{{ $args.name }}\` template the run renders.`
|
|
2347
|
+
);
|
|
2348
|
+
}
|
|
2349
|
+
if (!XANO_AI_LOCATIONS.includes(location) && !TEMPLATED.test(location)) {
|
|
2350
|
+
throw new Error(
|
|
2351
|
+
`${where}: \`location\` is ${JSON.stringify(location)}; it takes "" | "us" | "global" | "eu" (or a {{ \u2026 }} template).`
|
|
2352
|
+
);
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2297
2355
|
function buildAgentSettings(def, owner = "agent") {
|
|
2298
2356
|
const llm = def.llm;
|
|
2299
2357
|
const provider = Object.hasOwn(LLM_KEYS, llm.type) ? LLM_KEYS[llm.type] : void 0;
|
|
@@ -2305,20 +2363,28 @@ function buildAgentSettings(def, owner = "agent") {
|
|
|
2305
2363
|
);
|
|
2306
2364
|
}
|
|
2307
2365
|
if (provider) {
|
|
2308
|
-
|
|
2366
|
+
const xanoHosted = llm.type === "xano-free" || llm.type === "xano-ai";
|
|
2367
|
+
const known = [
|
|
2309
2368
|
"type",
|
|
2310
2369
|
"systemPrompt",
|
|
2311
2370
|
"maxSteps",
|
|
2312
2371
|
"extraConfig",
|
|
2313
2372
|
"prompt",
|
|
2314
2373
|
"messages",
|
|
2315
|
-
...
|
|
2374
|
+
...xanoHosted ? [] : ["apiKey", "model"],
|
|
2316
2375
|
"temperature",
|
|
2317
2376
|
"baseURL",
|
|
2318
2377
|
"headers",
|
|
2319
2378
|
...provider
|
|
2320
|
-
]
|
|
2379
|
+
];
|
|
2380
|
+
if (xanoHosted && Object.hasOwn(llm, "apiKey")) {
|
|
2381
|
+
throw new Error(
|
|
2382
|
+
`${owner} llm (${llm.type}): unknown key "apiKey" \u2014 ${llm.type} runs on Xano's credential and takes no key; remove it, or use a keyed provider (anthropic, openai, google-genai). Expected one of: ${known.join(", ")}.`
|
|
2383
|
+
);
|
|
2384
|
+
}
|
|
2385
|
+
assertKnownKeys(`${owner} llm (${llm.type})`, llm, known);
|
|
2321
2386
|
}
|
|
2387
|
+
if (llm.type === "xano-ai") assertXanoAiSettings(owner, llm);
|
|
2322
2388
|
for (const key of ["temperature", "thinkingTokens", "thinkingBudget"]) {
|
|
2323
2389
|
const v = llm[key];
|
|
2324
2390
|
if (v === void 0 || v === "") continue;
|
|
@@ -3101,4 +3167,4 @@ export {
|
|
|
3101
3167
|
serializeBundle,
|
|
3102
3168
|
emitBundle
|
|
3103
3169
|
};
|
|
3104
|
-
//# sourceMappingURL=chunk-
|
|
3170
|
+
//# sourceMappingURL=chunk-MGC5S6OE.js.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectSdkVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6L32HAIP.js";
|
|
4
4
|
import {
|
|
5
5
|
compareSemver,
|
|
6
6
|
parseSemver
|
|
7
7
|
} from "./chunk-2TFRR6JV.js";
|
|
8
8
|
import {
|
|
9
9
|
readVersion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZNGUETV7.js";
|
|
11
11
|
import {
|
|
12
12
|
readPathEnvVar
|
|
13
13
|
} from "./chunk-EUUUMY7J.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
registerSecret
|
|
16
|
+
} from "./chunk-4GPIOIAC.js";
|
|
17
17
|
import {
|
|
18
18
|
atomicWrite
|
|
19
19
|
} from "./chunk-LLNZGEFK.js";
|
|
20
|
+
import {
|
|
21
|
+
serverMessage
|
|
22
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
20
23
|
import {
|
|
21
24
|
envFlagSet,
|
|
22
25
|
readEnvVar
|
|
23
26
|
} from "./chunk-X2NL4KUO.js";
|
|
24
|
-
import {
|
|
25
|
-
registerSecret
|
|
26
|
-
} from "./chunk-4GPIOIAC.js";
|
|
27
27
|
import {
|
|
28
28
|
blank,
|
|
29
29
|
noteRunWarning,
|
|
30
30
|
style,
|
|
31
31
|
warn
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6534P3VH.js";
|
|
33
33
|
|
|
34
34
|
// src/emit/update-check.ts
|
|
35
35
|
import { existsSync, readFileSync, mkdirSync } from "fs";
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
runExitedClean,
|
|
352
352
|
maybeNotifyUpdate
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-MJA5BP2M.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
localEngineHome
|
|
3
|
-
} from "./chunk-F3IA3YWI.js";
|
|
4
1
|
import {
|
|
5
2
|
filledAt,
|
|
6
3
|
withValidFilled
|
|
7
4
|
} from "./chunk-ZYJP6BOO.js";
|
|
5
|
+
import {
|
|
6
|
+
localEngineHome
|
|
7
|
+
} from "./chunk-FVZ5C3PF.js";
|
|
8
8
|
import {
|
|
9
9
|
withFileLockSync
|
|
10
10
|
} from "./chunk-QO6BVGS5.js";
|
|
@@ -141,4 +141,4 @@ export {
|
|
|
141
141
|
clearEngineRecordsNamed,
|
|
142
142
|
clearEngineRecordsStillMatching
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=chunk-
|
|
144
|
+
//# sourceMappingURL=chunk-MKRREVNB.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
XANO_DIR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T2LFOMOP.js";
|
|
4
4
|
import {
|
|
5
5
|
projectRootFrom
|
|
6
6
|
} from "./chunk-HU7F56VF.js";
|
|
7
7
|
import {
|
|
8
8
|
relForwardSlash
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6534P3VH.js";
|
|
10
10
|
|
|
11
11
|
// src/emit/backend-dir.ts
|
|
12
12
|
import { existsSync, readdirSync } from "fs";
|
|
@@ -67,4 +67,4 @@ export {
|
|
|
67
67
|
backendDirIn,
|
|
68
68
|
resolveBackendDir
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-N2JZU6VR.js.map
|