@xano/sdk 1.0.19 → 1.0.20
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/README.md +5 -2
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-5IP25UYO.js → agent-file-refresh-MOEDX5OL.js} +13 -11
- package/dist/{agent-skill-command-BPM4S6C7.js → agent-skill-command-A4QEVNTP.js} +49 -47
- package/dist/ai-models-command-SN2UKVC5.js +270 -0
- package/dist/{answer-shape-ZRQS7ZC4.js → answer-shape-BCGPH73R.js} +5 -5
- package/dist/{backend-dir-RLILKCMR.js → backend-dir-66VVLCUF.js} +16 -14
- package/dist/{backend-slot-7BATLL3X.js → backend-slot-WSWAHL2W.js} +3 -3
- package/dist/bin.js +53 -51
- package/dist/{branch-SJKKUCMZ.js → branch-6DBHVVUT.js} +11 -11
- package/dist/{branch-commands-5HKCBRLN.js → branch-commands-KUEGS6XL.js} +29 -28
- package/dist/bundle.js +3 -3
- package/dist/{chunk-2HBJU76D.js → chunk-2SWJ3267.js} +40 -22
- package/dist/{chunk-UJ5HLRYH.js → chunk-2VHEZDZZ.js} +35 -35
- package/dist/{chunk-BT6CJNEO.js → chunk-34OZQNKR.js} +4 -4
- package/dist/chunk-37BT62SX.js +17 -0
- package/dist/{chunk-QK2WIASY.js → chunk-3H765RXT.js} +7 -7
- package/dist/{chunk-2IC3K22K.js → chunk-3HK7VELD.js} +2 -2
- package/dist/{chunk-5AHHO2QA.js → chunk-3OR2RCXJ.js} +118 -94
- package/dist/{chunk-ZYZ7GRX3.js → chunk-4DVP42ZC.js} +2 -2
- package/dist/{chunk-Q45RTKWW.js → chunk-4GI22VPJ.js} +6 -6
- package/dist/{chunk-2NUOFHPX.js → chunk-4PHCBKJI.js} +7 -7
- package/dist/{chunk-ROWYW3JF.js → chunk-4QRDNBPY.js} +2 -2
- package/dist/{chunk-SINL5WMI.js → chunk-4Y3SWNPE.js} +2 -2
- package/dist/{chunk-6SEPZQYB.js → chunk-4ZV4MDKP.js} +2 -2
- package/dist/{chunk-XKHQLKUL.js → chunk-52VELHIH.js} +3 -3
- package/dist/{chunk-IFHFJR5O.js → chunk-5ABAIJVV.js} +6 -6
- package/dist/{chunk-L4L6YITX.js → chunk-5BLBX2Q5.js} +13 -10
- package/dist/chunk-5KSVMHFS.js +81 -0
- package/dist/{chunk-MOVRSULZ.js → chunk-5Z4WQQHC.js} +2 -2
- 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-YT5UN2F4.js → chunk-7Z43XRBL.js} +14 -14
- package/dist/{chunk-E7VF2JVJ.js → chunk-AD7YILOU.js} +10 -10
- package/dist/{chunk-AICWDCLJ.js → chunk-BBFHZMQA.js} +2 -2
- package/dist/{chunk-YP4QTC4F.js → chunk-BFM2P47R.js} +6 -6
- package/dist/{chunk-KG3RDXN5.js → chunk-C6ERQFEB.js} +4 -4
- package/dist/{chunk-54CJ74BH.js → chunk-C7KO5KKB.js} +4 -4
- package/dist/chunk-CBACTYIC.js +278 -0
- package/dist/{chunk-V2MIBJZU.js → chunk-CGLYG2VF.js} +2 -2
- package/dist/{chunk-Z73I7Q2H.js → chunk-CJ5WRCVE.js} +80 -2
- package/dist/{chunk-GTB7JL3M.js → chunk-CJIXD67B.js} +6 -6
- package/dist/{chunk-JUCL5MUZ.js → chunk-CP7OSHLK.js} +8 -8
- package/dist/{chunk-D4N72H35.js → chunk-CPR2F3WN.js} +9 -9
- 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-5JUWB6XL.js → chunk-E7YXNU57.js} +7 -7
- package/dist/{chunk-GA6HTO3O.js → chunk-EBSJUSID.js} +2 -2
- package/dist/{chunk-PLOBHRGV.js → chunk-EJXJE2H3.js} +49 -49
- 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-554FJWNH.js → chunk-EQ2KB5YF.js} +4 -4
- package/dist/{chunk-GT7PZCTK.js → chunk-FVBJKM6N.js} +3 -3
- package/dist/{chunk-F3IA3YWI.js → chunk-FVZ5C3PF.js} +22 -2
- package/dist/{chunk-KVF7YQ2W.js → chunk-G3ZUGFIS.js} +9 -9
- package/dist/{chunk-RKTVXFBV.js → chunk-GUHJV7C5.js} +31 -3
- package/dist/{chunk-ASUDP4OS.js → chunk-HGUQIBYY.js} +8 -8
- package/dist/{chunk-DO5VZIY4.js → chunk-HUXMRYUX.js} +3 -3
- package/dist/{chunk-G2XSDIYS.js → chunk-I52AKG2O.js} +4 -4
- package/dist/{chunk-VCFRALU7.js → chunk-I5YD7QPI.js} +28 -11
- package/dist/{chunk-YYBBJPCL.js → chunk-IUBGFCJJ.js} +14 -18
- package/dist/{chunk-UH5VQGNR.js → chunk-JXX2QXPP.js} +2 -2
- package/dist/{chunk-2DUYJR5N.js → chunk-KHX6VQ4M.js} +2 -2
- package/dist/{chunk-NYIFU3BR.js → chunk-KMXXOJL2.js} +21 -19
- package/dist/{chunk-4HMF5TRB.js → chunk-KNLPGIRY.js} +8 -8
- package/dist/{chunk-KYQRIL4V.js → chunk-LLG33KGY.js} +26 -26
- package/dist/{chunk-WGGATSIP.js → chunk-LMX4VE4H.js} +2 -2
- package/dist/{chunk-DXUICABI.js → chunk-LZDH5COS.js} +21 -2
- package/dist/{chunk-E5M5P23K.js → chunk-M5GXZEX7.js} +21 -215
- package/dist/{chunk-B6ZHSM2D.js → chunk-MAAQ4ZSN.js} +73 -73
- package/dist/{chunk-Q4LJCCH5.js → chunk-MGC5S6OE.js} +75 -9
- package/dist/{chunk-5Y5HWQ2P.js → chunk-MKRREVNB.js} +4 -4
- package/dist/{chunk-OTYK2V44.js → chunk-OAWBNCME.js} +24 -24
- 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-3X4B5GWY.js → chunk-P3WIMLG2.js} +3 -3
- package/dist/{chunk-GJZMKMWO.js → chunk-PC7XEO7F.js} +2 -2
- package/dist/{chunk-MF4W6FHU.js → chunk-Q4R2ABFL.js} +1 -1
- package/dist/{chunk-LRN6QX44.js → chunk-QBSSSKIC.js} +3 -3
- package/dist/{chunk-NH5Z2NOD.js → chunk-QZ2PC6B7.js} +3 -3
- package/dist/{chunk-LCOCRJ4K.js → chunk-RQGSZ7AR.js} +16 -2
- package/dist/{chunk-3FNEHRJF.js → chunk-RSWPVU6X.js} +8 -8
- package/dist/chunk-RVBDZMCC.js +264 -0
- package/dist/{chunk-WLZSKD7E.js → chunk-SQVETROU.js} +3 -3
- package/dist/{chunk-AJPICYPW.js → chunk-SWQA6SZI.js} +113 -94
- package/dist/{chunk-QETVFGD7.js → chunk-T6GI2AFJ.js} +16 -16
- package/dist/{chunk-FRJB3NTE.js → chunk-T6KQYCAU.js} +3 -3
- package/dist/{chunk-YYDM4DNP.js → chunk-TDSRZDQP.js} +2 -2
- package/dist/{chunk-K23RUXSH.js → chunk-TEZKQQDT.js} +44 -16
- package/dist/{chunk-BCN6OZLF.js → chunk-TN7ZBZRW.js} +3 -3
- package/dist/{chunk-WDWIXCGB.js → chunk-UN73LNM5.js} +4 -4
- package/dist/{chunk-RKNCISPM.js → chunk-VEA6EXJL.js} +3 -3
- package/dist/{chunk-6FCAFWD5.js → chunk-VO62TKK5.js} +3 -77
- package/dist/{chunk-HM5X73PY.js → chunk-WK5QDV25.js} +2 -2
- package/dist/{chunk-JORPZKBE.js → chunk-X3LYWTZ5.js} +3 -3
- package/dist/{chunk-CO7US54H.js → chunk-X7IBJLAD.js} +2 -2
- package/dist/{chunk-PKBC7G5H.js → chunk-XDIPEWLU.js} +25 -1
- package/dist/{chunk-OJ6YGRPV.js → chunk-YAZEB255.js} +3 -3
- package/dist/{chunk-RGPHFHJU.js → chunk-YFVD3LNL.js} +2 -2
- package/dist/{chunk-HUGNB6UN.js → chunk-YRLSJBSY.js} +71 -49
- 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/cli.d.ts +10 -1
- package/dist/cli.js +48 -46
- package/dist/{codegen-command-OF3TPC66.js → codegen-command-GGGU6YAP.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-WOHYD22D.js} +55 -53
- package/dist/{deploy-source-UHCHCI5Z.js → deploy-source-QK7Y4Y3V.js} +34 -33
- package/dist/{dev-env-sync-XWZVXEI2.js → dev-env-sync-AMFPULCP.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-F5RTDVJ5.js} +69 -67
- package/dist/{env-pull-command-SHK4TI6U.js → env-pull-command-J2ARE33T.js} +52 -50
- package/dist/{env-target-ZQSPPN4A.js → env-target-WA4BR6GW.js} +13 -13
- package/dist/{env-var-command-Q2ZHKWAQ.js → env-var-command-WEC22FI5.js} +55 -54
- package/dist/{ephemeral-2DXWP3VK.js → ephemeral-MNHEWSZ6.js} +11 -11
- package/dist/{ephemeral-command-FKOSN56R.js → ephemeral-command-EJLS42VJ.js} +64 -62
- package/dist/{ephemeral-state-56XEDUJW.js → ephemeral-state-QTT5JHD5.js} +11 -11
- package/dist/{generate-command-2JCMZ6CG.js → generate-command-2WHFL4CB.js} +77 -75
- package/dist/{gitignore-Z5N6DEEV.js → gitignore-OKB3X335.js} +19 -17
- package/dist/{guards-LQ7PSXOL.js → guards-N4PUFKN5.js} +3 -2
- package/dist/{impersonate-command-R24VBFQA.js → impersonate-command-EIWI3FBD.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-POIWZKZ4.js} +52 -50
- package/dist/{init-modules-5DYK7V4J.js → init-modules-S7BR4NIJ.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-NXP77QML.js} +32 -31
- package/dist/{landing-record-FYKDJIUF.js → landing-record-MK44WCRY.js} +23 -21
- package/dist/{live-diff-YOFOJCFX.js → live-diff-GZ6JUNP6.js} +5 -4
- package/dist/local-engine-ai-3XLJLOBP.js +47 -0
- package/dist/{local-engine-choice-4ZA2HZXH.js → local-engine-choice-7QBML5XF.js} +43 -36
- package/dist/local-engine-command-N7VDPABW.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-RYZZYEDQ.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-A257D3WK.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-KMWLIGT2.js} +55 -53
- package/dist/{login-command-ONGJASKA.js → login-command-E2KMN6DV.js} +39 -32
- package/dist/{logout-command-PLYGFHBQ.js → logout-command-AIB446AQ.js} +16 -16
- package/dist/{loop-CLLBQSJF.js → loop-EMTBWN4X.js} +5 -4
- package/dist/{marketplace-command-LNNAA7ZK.js → marketplace-command-YLBFUBHL.js} +42 -40
- package/dist/{marketplace-resolve-63QWMQZU.js → marketplace-resolve-LT76KHJD.js} +9 -7
- package/dist/{meta-client-JND42QEJ.js → meta-client-AOPF5IQN.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-GBSISFAP.js} +26 -26
- package/dist/{output-target-QJSHZBVY.js → output-target-NHJLT4YI.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-O52GLYGA.js} +60 -58
- package/dist/{profile-command-PJUA5ZMX.js → profile-command-NOKUVV3M.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-2NMTINVS.js +150 -0
- package/dist/{prompt-OYQHQWKI.js → prompt-JVYQH4OR.js} +3 -3
- package/dist/{publish-command-JSYK6HOW.js → publish-command-LB2XULJA.js} +65 -63
- package/dist/{pull-command-K5X367MA.js → pull-command-UVNPFY2E.js} +71 -69
- package/dist/{pull-superseded-3SSM3JFT.js → pull-superseded-7EZ7M54I.js} +3 -3
- package/dist/{release-command-OC7MT4FV.js → release-command-BGSDY3BE.js} +66 -64
- package/dist/{release-ns-command-EHNEAEDU.js → release-ns-command-IVXK7HEG.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-3MDX3JB3.js} +4 -4
- package/dist/{secrets-file-2RHMJFXQ.js → secrets-file-NFNUKRGZ.js} +19 -17
- package/dist/{secrets-fill-command-HYMF6EZM.js → secrets-fill-command-U5L7IKUO.js} +52 -50
- package/dist/{seed-W5FNE6IB.js → seed-M33F4OJW.js} +3 -3
- package/dist/{source-resolve-PMA7SHZE.js → source-resolve-MAMVIHDF.js} +24 -24
- package/dist/{static-host-3HPZKVKK.js → static-host-HCKD26Q3.js} +5 -5
- package/dist/{status-command-CROHQRPI.js → status-command-VXIN37ET.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-PGMYJKLG.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-FNBHVJG3.js} +41 -40
- package/dist/{tenant-IXIW3FOI.js → tenant-SSWC7B3V.js} +12 -12
- package/dist/{tenant-command-Y7VCGDMY.js → tenant-command-PHNX3PXS.js} +96 -94
- package/dist/{test-command-2RAUNIU5.js → test-command-DMMF3RMK.js} +44 -43
- package/dist/{tests-N4MMBABH.js → tests-ZFQWDWS2.js} +6 -6
- package/dist/{token-4I26OGWH.js → token-IHOPB74T.js} +14 -12
- package/dist/{toolchain-hooks-IJWV3ZQS.js → toolchain-hooks-IRPM6LYL.js} +3 -3
- package/dist/{toolchain-modules-XM4JXHQC.js → toolchain-modules-V56JXU2E.js} +9 -5
- package/dist/{toolchain-peers-EMOYN4U7.js → toolchain-peers-NOIM44ED.js} +11 -9
- package/dist/{tracked-backend-EZE6H3EZ.js → tracked-backend-VKWZKKBG.js} +39 -36
- package/dist/{update-check-QLB5DV3B.js → update-check-DZ4YVDNS.js} +51 -49
- package/dist/{upgrade-command-4DCDBDB5.js → upgrade-command-EP5WQWFA.js} +55 -53
- package/dist/{whoami-command-WI4VT3IN.js → whoami-command-UV6EEDBY.js} +15 -15
- package/dist/{workspace-DIM3SBPV.js → workspace-6LVJ3LZE.js} +5 -5
- package/dist/{workspace-binding-43PBQEE4.js → workspace-binding-AUZIERMF.js} +14 -14
- package/dist/{workspace-command-FWTHIFVI.js → workspace-command-VXOY6KPE.js} +96 -94
- package/dist/{workspace-env-5PJVWQ2O.js → workspace-env-ZNGE3DFN.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-FENZ7XMW.js} +6 -6
- package/dist/{xanosdk-project-PV3ORVP5.js → xanosdk-project-K4RKLLNO.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 -1
- package/skills/xano-backend/SKILL.md +2 -2
- package/dist/local-engine-command-WQS4SD6N.js +0 -85
- package/dist/promote-command-NDYP66LD.js +0 -148
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exportWorkspaceBundle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KHX6VQ4M.js";
|
|
4
4
|
import {
|
|
5
5
|
encodeWorkspaceArchive,
|
|
6
6
|
readArchiveEntries
|
|
@@ -10,20 +10,20 @@ import {
|
|
|
10
10
|
} from "./chunk-X4DVXBFY.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveSource
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LLG33KGY.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadRelease
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JXX2QXPP.js";
|
|
17
17
|
import {
|
|
18
18
|
backendDirIn
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X3LYWTZ5.js";
|
|
20
20
|
import {
|
|
21
21
|
BARE,
|
|
22
22
|
UsageError,
|
|
23
23
|
isKindShaped,
|
|
24
24
|
parseSource,
|
|
25
25
|
relForwardSlash
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6534P3VH.js";
|
|
27
27
|
import {
|
|
28
28
|
calcSignatureJson
|
|
29
29
|
} from "./chunk-QDPY7RN3.js";
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
gatedApiGroups,
|
|
145
145
|
asWorkspaceArchive
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-BFM2P47R.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
composeRoutesManifest,
|
|
3
3
|
fireRoutesManifest,
|
|
4
4
|
parseModuleSections
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EPD5J3WA.js";
|
|
6
6
|
import {
|
|
7
7
|
ROUTES_MANIFEST_BASENAME,
|
|
8
8
|
renderPlannedManifest,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
} from "./chunk-SVQMDVND.js";
|
|
11
11
|
import {
|
|
12
12
|
warn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6534P3VH.js";
|
|
14
14
|
|
|
15
15
|
// src/emit/routes-manifest-file.ts
|
|
16
16
|
import { existsSync, readFileSync, statSync } from "fs";
|
|
17
17
|
async function discoverManifestModules(projectDir, manifestPath, sdkVersion) {
|
|
18
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
18
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-V56JXU2E.js");
|
|
19
19
|
const { loaded, skipped } = await discoverToolchainPlugins(projectDir, { frozen: false, peerSkew: "skip" });
|
|
20
20
|
return {
|
|
21
21
|
loaded,
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
renderManifestFile,
|
|
76
76
|
reportModuleFailures
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-C6ERQFEB.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-2MNLRIOX.js";
|
|
4
4
|
import {
|
|
5
5
|
pipedYes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PC7XEO7F.js";
|
|
7
7
|
import {
|
|
8
8
|
contextFlags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4DVP42ZC.js";
|
|
10
10
|
import {
|
|
11
11
|
shellWord
|
|
12
12
|
} from "./chunk-FWD7AL6N.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
retryingFetch,
|
|
19
19
|
transportTarget,
|
|
20
20
|
withWriteStatusAftermath
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
22
22
|
import {
|
|
23
23
|
suggestAll
|
|
24
24
|
} from "./chunk-UTI5G6OJ.js";
|
|
@@ -288,4 +288,4 @@ export {
|
|
|
288
288
|
freeBranchLabel,
|
|
289
289
|
requireBranch
|
|
290
290
|
};
|
|
291
|
-
//# sourceMappingURL=chunk-
|
|
291
|
+
//# sourceMappingURL=chunk-C7KO5KKB.js.map
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readStoredProfileQuietly
|
|
3
|
+
} from "./chunk-TEZKQQDT.js";
|
|
4
|
+
import {
|
|
5
|
+
clampEngineAiTtl,
|
|
6
|
+
engineAiDir,
|
|
7
|
+
engineAiTokenPath,
|
|
8
|
+
machineIdPath
|
|
9
|
+
} from "./chunk-FVZ5C3PF.js";
|
|
10
|
+
import {
|
|
11
|
+
AI_SCOPE,
|
|
12
|
+
assertHttpsOrigin,
|
|
13
|
+
loginCommand
|
|
14
|
+
} from "./chunk-OQMXCNN7.js";
|
|
15
|
+
import {
|
|
16
|
+
registerSecret
|
|
17
|
+
} from "./chunk-4GPIOIAC.js";
|
|
18
|
+
import {
|
|
19
|
+
atomicWrite
|
|
20
|
+
} from "./chunk-LLNZGEFK.js";
|
|
21
|
+
import {
|
|
22
|
+
isRecord
|
|
23
|
+
} from "./chunk-4Y3SWNPE.js";
|
|
24
|
+
import {
|
|
25
|
+
serverMessage
|
|
26
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
27
|
+
import {
|
|
28
|
+
hostLabel,
|
|
29
|
+
safeText
|
|
30
|
+
} from "./chunk-6534P3VH.js";
|
|
31
|
+
|
|
32
|
+
// src/deploy/local-engine-ai.ts
|
|
33
|
+
import { randomUUID } from "crypto";
|
|
34
|
+
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
35
|
+
import { dirname } from "path";
|
|
36
|
+
var ENGINE_TOKEN_ROUTE = "/api:meta/ai-credits/engine-token";
|
|
37
|
+
var REQUEST_TIMEOUT_MS = 15e3;
|
|
38
|
+
var DEFAULT_LIFETIME_S = 3600;
|
|
39
|
+
var defaultFetch = (url, init) => fetch(url, { ...init, signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS) });
|
|
40
|
+
var OFF = "Xano AI is off for this engine:";
|
|
41
|
+
var TRANSIENT = /* @__PURE__ */ new Set(["unreachable", "refresh-failed", "failed", "route-missing"]);
|
|
42
|
+
async function requestEngineAiCredential(req) {
|
|
43
|
+
const env = req.env ?? process.env;
|
|
44
|
+
const billing = req.billing;
|
|
45
|
+
const tokenFile = engineAiTokenPath(req.engineName, env);
|
|
46
|
+
const off = (reason, message, gatewayUrl) => {
|
|
47
|
+
let kept = "";
|
|
48
|
+
if (TRANSIENT.has(reason)) {
|
|
49
|
+
if (existsSync(tokenFile)) kept = " The earlier credential stays in use until it expires.";
|
|
50
|
+
} else {
|
|
51
|
+
removeTokenFile(tokenFile);
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
status: "off",
|
|
55
|
+
billing,
|
|
56
|
+
reason,
|
|
57
|
+
message: `${OFF} ${message}${kept}`,
|
|
58
|
+
...gatewayUrl === void 0 ? {} : { gatewayUrl }
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
const read = readStoredProfileQuietly(req.cwd ?? process.cwd());
|
|
62
|
+
if (read.kind === "unreadable") {
|
|
63
|
+
return off("profile-unreadable", `the stored sign-in could not be read (${firstLine(read.message)}).`);
|
|
64
|
+
}
|
|
65
|
+
if (read.kind === "none") {
|
|
66
|
+
return off("signed-out", "no Xano sign-in is stored. Run `xanosdk login` to turn it on.");
|
|
67
|
+
}
|
|
68
|
+
if (read.kind === "token") {
|
|
69
|
+
return off(
|
|
70
|
+
"not-oauth",
|
|
71
|
+
`profile "${safeText(read.profile)}" is a pasted meta API token, not an OAuth sign-in. Run \`${loginCommand(read.profile, { path: read.path }, ["--force"])}\` to sign in with \`xanosdk login\` and turn it on.`
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
const { record, profile, path } = read;
|
|
75
|
+
const stored = record.ai_gateway_url;
|
|
76
|
+
const relogin = loginCommand(profile, { path, origin: record.auth_host }, ["--force"]);
|
|
77
|
+
if (!(record.scope ?? "").split(/\s+/).includes(AI_SCOPE)) {
|
|
78
|
+
return off(
|
|
79
|
+
"sign-in-again",
|
|
80
|
+
`profile "${safeText(profile)}" has a sign-in without Xano AI access. Run \`${relogin}\` to sign in again and turn it on.`,
|
|
81
|
+
stored
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
try {
|
|
85
|
+
assertHttpsOrigin(record.auth_host, "auth_host");
|
|
86
|
+
} catch {
|
|
87
|
+
return off(
|
|
88
|
+
"sign-in-again",
|
|
89
|
+
`the sign-in server stored for profile "${safeText(profile)}" is not https. Run \`${relogin}\` to sign in again.`,
|
|
90
|
+
stored
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
let bearer;
|
|
94
|
+
try {
|
|
95
|
+
bearer = await read.bearer();
|
|
96
|
+
} catch {
|
|
97
|
+
return off(
|
|
98
|
+
"refresh-failed",
|
|
99
|
+
`the sign-in for profile "${safeText(profile)}" could not be refreshed. Deploy again to retry, or run \`${relogin}\` if it keeps happening.`,
|
|
100
|
+
stored
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
let machineId;
|
|
104
|
+
try {
|
|
105
|
+
machineId = readOrCreateMachineId(env);
|
|
106
|
+
} catch (err) {
|
|
107
|
+
return off("failed", `this machine's id could not be read or made (${firstLine(err instanceof Error ? err.message : String(err))}).`, stored);
|
|
108
|
+
}
|
|
109
|
+
const host = record.auth_host.replace(/\/+$/, "");
|
|
110
|
+
let res;
|
|
111
|
+
let text;
|
|
112
|
+
try {
|
|
113
|
+
res = await (req.fetch ?? defaultFetch)(`${host}${ENGINE_TOKEN_ROUTE}`, {
|
|
114
|
+
method: "POST",
|
|
115
|
+
headers: {
|
|
116
|
+
Authorization: `Bearer ${bearer}`,
|
|
117
|
+
"Content-Type": "application/json",
|
|
118
|
+
Accept: "application/json"
|
|
119
|
+
},
|
|
120
|
+
body: JSON.stringify({
|
|
121
|
+
billing,
|
|
122
|
+
engine_name: req.engineName,
|
|
123
|
+
machine_id: machineId,
|
|
124
|
+
ttl: clampEngineAiTtl(req.ttl)
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
text = await res.text();
|
|
128
|
+
} catch {
|
|
129
|
+
return off("unreachable", `${hostLabel(host)} could not be reached for a credential. Deploy again to retry.`, stored);
|
|
130
|
+
}
|
|
131
|
+
if (res.ok) {
|
|
132
|
+
const body = parseObject(text);
|
|
133
|
+
const token = body?.["token"];
|
|
134
|
+
registerSecret(token);
|
|
135
|
+
if (typeof token !== "string" || token.trim() === "") {
|
|
136
|
+
const reason = answerMessage(body, text);
|
|
137
|
+
return off(
|
|
138
|
+
"unavailable",
|
|
139
|
+
`Xano AI is not available for ${hostLabel(record.instance)} right now${reason === void 0 ? "" : ` (${safeText(reason)})`}.`,
|
|
140
|
+
stored
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
const gatewayUrl = typeof body?.["ai_gateway_url"] === "string" && body["ai_gateway_url"] !== "" ? body["ai_gateway_url"] : stored;
|
|
144
|
+
try {
|
|
145
|
+
writeTokenFile(req.engineName, token.trim(), env);
|
|
146
|
+
} catch (err) {
|
|
147
|
+
return off("failed", `the credential could not be written (${firstLine(err instanceof Error ? err.message : String(err))}).`, gatewayUrl);
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
status: "on",
|
|
151
|
+
billing: body?.["billing"] === "instance" || body?.["billing"] === "user" ? body["billing"] : billing,
|
|
152
|
+
expiresAt: expiryOf(body?.["expires_at"], body?.["expires_in"]),
|
|
153
|
+
...gatewayUrl === void 0 ? {} : { gatewayUrl },
|
|
154
|
+
profile,
|
|
155
|
+
instance: record.instance
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
const said = answerMessage(parseObject(text), text);
|
|
159
|
+
const because = said === void 0 ? "" : ` (${safeText(said)})`;
|
|
160
|
+
if ((res.status === 404 || res.status === 500) && said !== void 0 && /instance access denied or not found/i.test(said)) {
|
|
161
|
+
return off(
|
|
162
|
+
"refused",
|
|
163
|
+
`profile "${safeText(profile)}" has no access to ${hostLabel(record.instance)}${because}. Run \`${relogin}\` to sign in to an instance you can use.`,
|
|
164
|
+
stored
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
switch (res.status) {
|
|
168
|
+
case 404:
|
|
169
|
+
return off("route-missing", `${hostLabel(host)} does not issue Xano Engine credentials yet. Deploy again later.`, stored);
|
|
170
|
+
case 409:
|
|
171
|
+
return off("unavailable", `Xano AI is not available for ${hostLabel(record.instance)} right now${because}.`, stored);
|
|
172
|
+
case 402:
|
|
173
|
+
return off(
|
|
174
|
+
"no-credits",
|
|
175
|
+
`${billing === "instance" ? "the instance owner has" : "you have"} no Xano AI credits left${because}. Add credits, then deploy again.`,
|
|
176
|
+
stored
|
|
177
|
+
);
|
|
178
|
+
case 401:
|
|
179
|
+
case 403:
|
|
180
|
+
return off(
|
|
181
|
+
"refused",
|
|
182
|
+
billing === "instance" ? `billing the owner of ${hostLabel(record.instance)} was refused${because}. Deploy with \`--ai-billing user\` to bill yourself instead.` : `the credential was refused for profile "${safeText(profile)}"${because}. Run \`${relogin}\` if your access changed.`,
|
|
183
|
+
stored
|
|
184
|
+
);
|
|
185
|
+
default:
|
|
186
|
+
return off("failed", `${hostLabel(host)} answered HTTP ${res.status}${because}. Deploy again to retry.`, stored);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function readOrCreateMachineId(env = process.env) {
|
|
190
|
+
const path = machineIdPath(env);
|
|
191
|
+
const existing = readId(path);
|
|
192
|
+
if (existing !== void 0) return existing;
|
|
193
|
+
mkdirSync(dirname(path), { recursive: true, mode: 448 });
|
|
194
|
+
try {
|
|
195
|
+
writeFileSync(path, `${randomUUID()}
|
|
196
|
+
`, { mode: 384, flag: "wx" });
|
|
197
|
+
} catch (err) {
|
|
198
|
+
if (err.code !== "EEXIST") throw err;
|
|
199
|
+
}
|
|
200
|
+
const made = readId(path);
|
|
201
|
+
if (made !== void 0) return made;
|
|
202
|
+
const id = randomUUID();
|
|
203
|
+
atomicWrite(path, `${id}
|
|
204
|
+
`, { mode: 384 });
|
|
205
|
+
return id;
|
|
206
|
+
}
|
|
207
|
+
function readId(path) {
|
|
208
|
+
try {
|
|
209
|
+
const id = readFileSync(path, "utf8").trim();
|
|
210
|
+
return /^[0-9a-f-]{36}$/i.test(id) ? id : void 0;
|
|
211
|
+
} catch {
|
|
212
|
+
return void 0;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
function removeTokenFile(path) {
|
|
216
|
+
try {
|
|
217
|
+
rmSync(path, { force: true });
|
|
218
|
+
} catch {
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function writeTokenFile(engineName, token, env) {
|
|
222
|
+
mkdirSync(engineAiDir(env), { recursive: true, mode: 448 });
|
|
223
|
+
atomicWrite(engineAiTokenPath(engineName, env), token, { mode: 384 });
|
|
224
|
+
}
|
|
225
|
+
function expiryOf(at, inSeconds) {
|
|
226
|
+
if (typeof at === "number" && Number.isFinite(at) && at > 0) return at < 1e12 ? at * 1e3 : at;
|
|
227
|
+
if (typeof at === "string" && at !== "") {
|
|
228
|
+
const parsed = Date.parse(at);
|
|
229
|
+
if (!Number.isNaN(parsed)) return parsed;
|
|
230
|
+
}
|
|
231
|
+
const lifetime = typeof inSeconds === "number" && Number.isFinite(inSeconds) && inSeconds > 0 ? inSeconds : DEFAULT_LIFETIME_S;
|
|
232
|
+
return Date.now() + lifetime * 1e3;
|
|
233
|
+
}
|
|
234
|
+
function answerMessage(body, text) {
|
|
235
|
+
const message = body?.["message"];
|
|
236
|
+
const payload = body?.["payload"];
|
|
237
|
+
if (typeof message === "string" && message.trim() !== "") return firstLine(message);
|
|
238
|
+
if (typeof payload === "string" && payload.trim() !== "") return firstLine(payload);
|
|
239
|
+
return serverMessage(text);
|
|
240
|
+
}
|
|
241
|
+
function parseObject(text) {
|
|
242
|
+
try {
|
|
243
|
+
const parsed = JSON.parse(text);
|
|
244
|
+
return isRecord(parsed) ? parsed : void 0;
|
|
245
|
+
} catch {
|
|
246
|
+
return void 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
function firstLine(text) {
|
|
250
|
+
return safeText(text.split("\n")[0].trim());
|
|
251
|
+
}
|
|
252
|
+
function aiOutcomeDocument(outcome) {
|
|
253
|
+
return outcome.status === "on" ? { status: "on", billing: outcome.billing, expiresAt: new Date(outcome.expiresAt).toISOString() } : { status: "off", billing: outcome.billing, reason: outcome.reason };
|
|
254
|
+
}
|
|
255
|
+
function aiOutcomeLine(outcome) {
|
|
256
|
+
if (outcome.status === "off") return outcome.message;
|
|
257
|
+
const until = localTime(new Date(outcome.expiresAt));
|
|
258
|
+
const instance = hostLabel(outcome.instance);
|
|
259
|
+
const profile = `profile ${safeText(outcome.profile)}`;
|
|
260
|
+
const who = outcome.billing === "instance" ? `billed to the owner of ${instance} (${profile})` : `billed to you (${profile}, ${instance})`;
|
|
261
|
+
return `Xano AI: on, ${who} until ${until}. Each deploy renews it.`;
|
|
262
|
+
}
|
|
263
|
+
function localTime(at) {
|
|
264
|
+
const two = (n) => String(n).padStart(2, "0");
|
|
265
|
+
const time = `${two(at.getHours())}:${two(at.getMinutes())}`;
|
|
266
|
+
const now = /* @__PURE__ */ new Date();
|
|
267
|
+
const today = at.getFullYear() === now.getFullYear() && at.getMonth() === now.getMonth() && at.getDate() === now.getDate();
|
|
268
|
+
return today ? time : `${at.getFullYear()}-${two(at.getMonth() + 1)}-${two(at.getDate())} ${time}`;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export {
|
|
272
|
+
ENGINE_TOKEN_ROUTE,
|
|
273
|
+
requestEngineAiCredential,
|
|
274
|
+
readOrCreateMachineId,
|
|
275
|
+
aiOutcomeDocument,
|
|
276
|
+
aiOutcomeLine
|
|
277
|
+
};
|
|
278
|
+
//# sourceMappingURL=chunk-CBACTYIC.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isKindShaped,
|
|
8
8
|
parseSource,
|
|
9
9
|
sourceSpellings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6534P3VH.js";
|
|
11
11
|
|
|
12
12
|
// src/emit/backend-slot.ts
|
|
13
13
|
function commandPath(command, subcommand) {
|
|
@@ -124,4 +124,4 @@ export {
|
|
|
124
124
|
refusedKind,
|
|
125
125
|
parseSlot
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=chunk-
|
|
127
|
+
//# sourceMappingURL=chunk-CGLYG2VF.js.map
|
|
@@ -1909,7 +1909,7 @@ function encodeFromSpec(spec, authored) {
|
|
|
1909
1909
|
);
|
|
1910
1910
|
break;
|
|
1911
1911
|
case "input": {
|
|
1912
|
-
const value = rule.enum ? resolveEnumValue(label, rule.field, rule.enum, provided) : provided;
|
|
1912
|
+
const value = rule.enum ? resolveEnumValue(label, rule.field, rule.enum, provided) : rule.open && typeof provided === "string" ? c.text(provided) : provided;
|
|
1913
1913
|
assertValueArg(label, rule.field, value);
|
|
1914
1914
|
input.push(inputEntry(rule.route.name, value, env?.inputFull ?? false));
|
|
1915
1915
|
break;
|
|
@@ -1957,6 +1957,14 @@ function registerSpec(spec) {
|
|
|
1957
1957
|
|
|
1958
1958
|
// src/statements/generated/specs.generated.ts
|
|
1959
1959
|
var GENERATED_SPECS = [
|
|
1960
|
+
{ "name": "mvp:ai_embedding_create", "factory": "s.ai.embedding.create", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "input", "type": "value", "optional": false, "route": { "kind": "input", "name": "input" } }, { "field": "task_type", "type": "value", "optional": true, "route": { "kind": "input", "name": "task_type" } }, { "field": "dimensions", "type": "value", "optional": true, "route": { "kind": "input", "name": "dimensions" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1961
|
+
{ "name": "mvp:ai_image_generate", "factory": "s.ai.image.generate", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "prompt", "type": "value", "optional": false, "route": { "kind": "input", "name": "prompt" } }, { "field": "images", "type": "value", "optional": true, "route": { "kind": "input", "name": "images" } }, { "field": "aspect_ratio", "type": "value", "optional": true, "enum": ["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9"], "route": { "kind": "input", "name": "aspect_ratio" } }, { "field": "image_size", "type": "value", "optional": true, "enum": ["1K", "2K", "4K"], "route": { "kind": "input", "name": "image_size" } }, { "field": "save_to_files", "type": "value", "optional": true, "enum": ["", "public", "private"], "route": { "kind": "input", "name": "save_to_files" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1962
|
+
{ "name": "mvp:ai_music_generate", "factory": "s.ai.music.generate", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "prompt", "type": "value", "optional": false, "route": { "kind": "input", "name": "prompt" } }, { "field": "negative_prompt", "type": "value", "optional": true, "route": { "kind": "input", "name": "negative_prompt" } }, { "field": "seed", "type": "value", "optional": true, "route": { "kind": "input", "name": "seed" } }, { "field": "save_to_files", "type": "value", "optional": true, "enum": ["", "public", "private"], "route": { "kind": "input", "name": "save_to_files" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1963
|
+
{ "name": "mvp:ai_rerank", "factory": "s.ai.rerank", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "query", "type": "value", "optional": false, "route": { "kind": "input", "name": "query" } }, { "field": "documents", "type": "value", "optional": false, "route": { "kind": "input", "name": "documents" } }, { "field": "top_n", "type": "value", "optional": true, "route": { "kind": "input", "name": "top_n" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1964
|
+
{ "name": "mvp:ai_speech_generate", "factory": "s.ai.speech.generate", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "text", "type": "value", "optional": false, "route": { "kind": "input", "name": "text" } }, { "field": "voice", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "voice" } }, { "field": "instructions", "type": "value", "optional": true, "route": { "kind": "input", "name": "instructions" } }, { "field": "save_to_files", "type": "value", "optional": true, "enum": ["", "public", "private"], "route": { "kind": "input", "name": "save_to_files" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1965
|
+
{ "name": "mvp:ai_speech_transcribe", "factory": "s.ai.speech.transcribe", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "audio", "type": "value", "optional": false, "route": { "kind": "input", "name": "audio" } }, { "field": "language", "type": "value", "optional": true, "route": { "kind": "input", "name": "language" } }, { "field": "prompt", "type": "value", "optional": true, "route": { "kind": "input", "name": "prompt" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1966
|
+
{ "name": "mvp:ai_text_generate", "factory": "s.ai.text.generate", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "prompt", "type": "value", "optional": true, "route": { "kind": "input", "name": "prompt" } }, { "field": "system", "type": "value", "optional": true, "route": { "kind": "input", "name": "system" } }, { "field": "messages", "type": "value", "optional": true, "route": { "kind": "input", "name": "messages" } }, { "field": "files", "type": "value", "optional": true, "route": { "kind": "input", "name": "files" } }, { "field": "temperature", "type": "value", "optional": true, "route": { "kind": "input", "name": "temperature" } }, { "field": "max_tokens", "type": "value", "optional": true, "route": { "kind": "input", "name": "max_tokens" } }, { "field": "response_format", "type": "value", "optional": true, "enum": ["text", "json"], "route": { "kind": "input", "name": "response_format" } }, { "field": "json_schema", "type": "value", "optional": true, "route": { "kind": "input", "name": "json_schema" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1967
|
+
{ "name": "mvp:ai_video_generate", "factory": "s.ai.video.generate", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "model", "type": "value", "optional": true, "open": true, "route": { "kind": "input", "name": "model" } }, { "field": "prompt", "type": "value", "optional": false, "route": { "kind": "input", "name": "prompt" } }, { "field": "negative_prompt", "type": "value", "optional": true, "route": { "kind": "input", "name": "negative_prompt" } }, { "field": "image", "type": "value", "optional": true, "route": { "kind": "input", "name": "image" } }, { "field": "last_image", "type": "value", "optional": true, "route": { "kind": "input", "name": "last_image" } }, { "field": "aspect_ratio", "type": "value", "optional": true, "enum": ["16:9", "9:16"], "route": { "kind": "input", "name": "aspect_ratio" } }, { "field": "resolution", "type": "value", "optional": true, "enum": ["720p", "1080p", "4k"], "route": { "kind": "input", "name": "resolution" } }, { "field": "duration", "type": "value", "optional": true, "route": { "kind": "input", "name": "duration" } }, { "field": "generate_audio", "type": "value", "optional": true, "route": { "kind": "input", "name": "generate_audio" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "save_to_files", "type": "value", "optional": true, "enum": ["", "public", "private"], "route": { "kind": "input", "name": "save_to_files" } }, { "field": "location", "type": "value", "optional": true, "enum": ["", "us", "global", "eu"], "route": { "kind": "input", "name": "location" } }] },
|
|
1960
1968
|
{ "name": "mvp:algolia_request", "factory": "s.cloud.algolia.request", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "application_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "application_id" } }, { "field": "api_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "api_key" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "method", "type": "value", "optional": true, "enum": ["POST", "GET", "DELETE", "PUT"], "route": { "kind": "input", "name": "method" } }, { "field": "payload", "type": "value", "optional": false, "route": { "kind": "input", "name": "payload" } }], "envelope": { "inputFull": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
|
|
1961
1969
|
{ "name": "mvp:amazon_opensearch_document", "factory": "s.cloud.aws.opensearch.document", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "base_url", "type": "value", "optional": false, "route": { "kind": "input", "name": "base_url" } }, { "field": "method", "type": "value", "optional": true, "default": "GET", "enum": ["GET", "POST", "PUT", "DELETE"], "route": { "kind": "input", "name": "method" } }, { "field": "index", "type": "value", "optional": false, "route": { "kind": "input", "name": "index" } }, { "field": "doc_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "doc_id" } }, { "field": "doc", "type": "value", "optional": false, "route": { "kind": "input", "name": "doc" } }] },
|
|
1962
1970
|
{ "name": "mvp:amazon_opensearch_query", "factory": "s.cloud.aws.opensearch.query", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "base_url", "type": "value", "optional": false, "route": { "kind": "input", "name": "base_url" } }, { "field": "index", "type": "value", "optional": false, "route": { "kind": "input", "name": "index" } }, { "field": "payload", "type": "value", "optional": false, "route": { "kind": "input", "name": "payload" } }, { "field": "size", "type": "value", "optional": true, "default": "null", "route": { "kind": "input", "name": "size" } }, { "field": "from", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "from" } }, { "field": "included_fields", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "included_fields" } }, { "field": "return_type", "type": "value", "optional": true, "default": "search", "enum": ["search", "count"], "route": { "kind": "input", "name": "return_type" } }, { "field": "expression", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "expression" } }, { "field": "sort", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "sort" } }] },
|
|
@@ -2121,6 +2129,12 @@ var SPECS = new Map(GENERATED_SPECS.map((s) => [s.name, s]));
|
|
|
2121
2129
|
var fromSpec = (name, a) => encodeFromSpec(SPECS.get(name), a);
|
|
2122
2130
|
var generated = {
|
|
2123
2131
|
ai: {
|
|
2132
|
+
embedding: {
|
|
2133
|
+
create: (
|
|
2134
|
+
/** `mvp:ai_embedding_create` — fields: as, model, input, task_type, dimensions, location */
|
|
2135
|
+
(a) => fromSpec("mvp:ai_embedding_create", a)
|
|
2136
|
+
)
|
|
2137
|
+
},
|
|
2124
2138
|
external: {
|
|
2125
2139
|
mcp: {
|
|
2126
2140
|
server_details: (
|
|
@@ -2138,6 +2152,44 @@ var generated = {
|
|
|
2138
2152
|
)
|
|
2139
2153
|
}
|
|
2140
2154
|
}
|
|
2155
|
+
},
|
|
2156
|
+
image: {
|
|
2157
|
+
generate: (
|
|
2158
|
+
/** `mvp:ai_image_generate` — fields: as, model, prompt, images, aspect_ratio, image_size, save_to_files, location */
|
|
2159
|
+
(a) => fromSpec("mvp:ai_image_generate", a)
|
|
2160
|
+
)
|
|
2161
|
+
},
|
|
2162
|
+
music: {
|
|
2163
|
+
generate: (
|
|
2164
|
+
/** `mvp:ai_music_generate` — fields: as, model, prompt, negative_prompt, seed, save_to_files, location */
|
|
2165
|
+
(a) => fromSpec("mvp:ai_music_generate", a)
|
|
2166
|
+
)
|
|
2167
|
+
},
|
|
2168
|
+
rerank: (
|
|
2169
|
+
/** `mvp:ai_rerank` — fields: as, model, query, documents, top_n, location */
|
|
2170
|
+
(a) => fromSpec("mvp:ai_rerank", a)
|
|
2171
|
+
),
|
|
2172
|
+
speech: {
|
|
2173
|
+
generate: (
|
|
2174
|
+
/** `mvp:ai_speech_generate` — fields: as, model, text, voice, instructions, save_to_files, location */
|
|
2175
|
+
(a) => fromSpec("mvp:ai_speech_generate", a)
|
|
2176
|
+
),
|
|
2177
|
+
transcribe: (
|
|
2178
|
+
/** `mvp:ai_speech_transcribe` — fields: as, model, audio, language, prompt, location */
|
|
2179
|
+
(a) => fromSpec("mvp:ai_speech_transcribe", a)
|
|
2180
|
+
)
|
|
2181
|
+
},
|
|
2182
|
+
text: {
|
|
2183
|
+
generate: (
|
|
2184
|
+
/** `mvp:ai_text_generate` — fields: as, model, prompt, system, messages, files, temperature, max_tokens, response_format, json_schema, location */
|
|
2185
|
+
(a = {}) => fromSpec("mvp:ai_text_generate", a)
|
|
2186
|
+
)
|
|
2187
|
+
},
|
|
2188
|
+
video: {
|
|
2189
|
+
generate: (
|
|
2190
|
+
/** `mvp:ai_video_generate` — fields: as, model, prompt, negative_prompt, image, last_image, aspect_ratio, resolution, duration, generate_audio, timeout, save_to_files, location */
|
|
2191
|
+
(a) => fromSpec("mvp:ai_video_generate", a)
|
|
2192
|
+
)
|
|
2141
2193
|
}
|
|
2142
2194
|
},
|
|
2143
2195
|
api: {
|
|
@@ -3105,6 +3157,32 @@ var READ_UNCONDITIONALLY = {
|
|
|
3105
3157
|
"mvp:zip_extract_file_resource": ["password"],
|
|
3106
3158
|
"mvp:zip_view_contents": ["password"]
|
|
3107
3159
|
};
|
|
3160
|
+
var XANO_AI_STATEMENTS = [
|
|
3161
|
+
"mvp:ai_text_generate",
|
|
3162
|
+
"mvp:ai_image_generate",
|
|
3163
|
+
"mvp:ai_video_generate",
|
|
3164
|
+
"mvp:ai_music_generate",
|
|
3165
|
+
"mvp:ai_speech_generate",
|
|
3166
|
+
"mvp:ai_speech_transcribe",
|
|
3167
|
+
"mvp:ai_embedding_create",
|
|
3168
|
+
"mvp:ai_rerank"
|
|
3169
|
+
];
|
|
3170
|
+
var CLASS_OPTIONAL = {
|
|
3171
|
+
"mvp:amazon_s3_upload_file": ["metadata"],
|
|
3172
|
+
"mvp:google_cloud_storage_upload_file": ["metadata"],
|
|
3173
|
+
"mvp:azure_blob_storage_upload_file": ["metadata"],
|
|
3174
|
+
"mvp:azure_blob_storage_list_directory": ["path"],
|
|
3175
|
+
"mvp:azure_blob_storage_signed_url": ["ttl"],
|
|
3176
|
+
"mvp:google_cloud_storage_signed_url": ["method", "ttl"],
|
|
3177
|
+
"mvp:microservice_request": ["method", "params", "timeout", "follow_location"],
|
|
3178
|
+
"mvp:algolia_request": ["method"],
|
|
3179
|
+
// The Xano AI statements. The schema YAML declares `model` bare, but the
|
|
3180
|
+
// engine composes each statement's input schema at run time with `model`
|
|
3181
|
+
// optional and defaulted to that statement's suggested model, and a blank or
|
|
3182
|
+
// absent model falls back to the same suggestion before the request is sent.
|
|
3183
|
+
// So leaving `model` out is the normal call, not a stranded statement.
|
|
3184
|
+
...Object.fromEntries(XANO_AI_STATEMENTS.map((n) => [n, ["model"]]))
|
|
3185
|
+
};
|
|
3108
3186
|
var CLASS_REQUIRED = {
|
|
3109
3187
|
"mvp:lambda": ["code"],
|
|
3110
3188
|
"mvp:api_request": ["url"],
|
|
@@ -9562,4 +9640,4 @@ export {
|
|
|
9562
9640
|
checkAgentArgPlaceholders,
|
|
9563
9641
|
checkAgentToolsOff
|
|
9564
9642
|
};
|
|
9565
|
-
//# sourceMappingURL=chunk-
|
|
9643
|
+
//# sourceMappingURL=chunk-CJ5WRCVE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addDependency,
|
|
3
3
|
removeDependency
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7J7YRAZB.js";
|
|
5
5
|
import {
|
|
6
6
|
condenseNpmError,
|
|
7
7
|
npmViewVersion
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-FWD7AL6N.js";
|
|
12
12
|
import {
|
|
13
13
|
isLocalSpecifier
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IUBGFCJJ.js";
|
|
15
15
|
import {
|
|
16
16
|
addArgs,
|
|
17
17
|
installSite,
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
moduleKind,
|
|
26
26
|
packageNameOf,
|
|
27
27
|
readInstalledManifest
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-DORGB2Y2.js";
|
|
29
29
|
import {
|
|
30
30
|
UsageError,
|
|
31
31
|
spinner,
|
|
32
32
|
step,
|
|
33
33
|
success,
|
|
34
34
|
warn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6534P3VH.js";
|
|
36
36
|
|
|
37
37
|
// src/emit/init-modules.ts
|
|
38
38
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -448,7 +448,7 @@ async function sdkPeerSkewOf(dir, pkg) {
|
|
|
448
448
|
const manifest = readInstalledManifest(dir, pkg);
|
|
449
449
|
if (manifest === null) return null;
|
|
450
450
|
const [{ sdkPeerSkew }, { readVersion }] = await Promise.all([
|
|
451
|
-
import("./toolchain-modules-
|
|
451
|
+
import("./toolchain-modules-V56JXU2E.js"),
|
|
452
452
|
import("./cli.js")
|
|
453
453
|
]);
|
|
454
454
|
const sdkVersion = readVersion();
|
|
@@ -480,4 +480,4 @@ export {
|
|
|
480
480
|
inProject,
|
|
481
481
|
installModules
|
|
482
482
|
};
|
|
483
|
-
//# sourceMappingURL=chunk-
|
|
483
|
+
//# sourceMappingURL=chunk-CJIXD67B.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
environmentKey,
|
|
3
3
|
getEnvironment,
|
|
4
4
|
readEphemeralState
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DAXFWXSV.js";
|
|
6
6
|
import {
|
|
7
7
|
andList
|
|
8
8
|
} from "./chunk-622HUCZT.js";
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
credentialFileFlagFor,
|
|
13
13
|
credentialFileOf,
|
|
14
14
|
recordedByEnvCredential
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4DVP42ZC.js";
|
|
16
16
|
import {
|
|
17
17
|
loginCommand,
|
|
18
18
|
profileAddCommand,
|
|
19
19
|
recordedCredentialPath,
|
|
20
20
|
recordedProfileStored
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OQMXCNN7.js";
|
|
22
22
|
import {
|
|
23
23
|
findPointerFile,
|
|
24
24
|
readPointerFile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5ABAIJVV.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_PROFILE
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Q4R2ABFL.js";
|
|
29
29
|
import {
|
|
30
30
|
readEnvVar
|
|
31
31
|
} from "./chunk-X2NL4KUO.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
CliError,
|
|
34
34
|
EXIT_SOURCE_UNRESOLVABLE,
|
|
35
35
|
UsageError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6534P3VH.js";
|
|
37
37
|
|
|
38
38
|
// src/emit/env-target.ts
|
|
39
39
|
var ENV_CREDENTIAL_NAMES = ["XANO_INSTANCE_URL", "XANO_WORKSPACE_ID", "XANO_META_TOKEN", "XANO_REFRESH_TOKEN", "XANO_CLIENT_ID"];
|
|
@@ -142,7 +142,7 @@ var SENDS_ELSEWHERE = /* @__PURE__ */ new WeakSet();
|
|
|
142
142
|
async function reachableFirst(refusal, auth) {
|
|
143
143
|
if (!(refusal instanceof Error) || !SENDS_ELSEWHERE.has(refusal)) return refusal;
|
|
144
144
|
if (auth === void 0 || !("access_token" in auth)) return refusal;
|
|
145
|
-
const { refuseUnreachableWorkspace } = await import("./workspace-binding-
|
|
145
|
+
const { refuseUnreachableWorkspace } = await import("./workspace-binding-AUZIERMF.js");
|
|
146
146
|
try {
|
|
147
147
|
await refuseUnreachableWorkspace(auth);
|
|
148
148
|
} catch (unreachable) {
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
otherCredentialRefusal,
|
|
168
168
|
reachableFirst
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-CP7OSHLK.js.map
|