@xano/sdk 1.0.18 → 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/CHANGELOG.md +11 -0
- package/README.md +5 -2
- package/dist/.build-fingerprint +1 -0
- package/dist/{agent-file-refresh-SGM3523M.js → agent-file-refresh-MOEDX5OL.js} +13 -12
- package/dist/{agent-skill-command-PZXX7LJD.js → agent-skill-command-A4QEVNTP.js} +49 -52
- 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-AZIVCH6Y.js → backend-dir-66VVLCUF.js} +16 -15
- package/dist/{backend-slot-7BATLL3X.js → backend-slot-WSWAHL2W.js} +3 -3
- package/dist/bin.js +53 -52
- package/dist/{branch-SJKKUCMZ.js → branch-6DBHVVUT.js} +11 -11
- package/dist/{branch-commands-JE5RDJPH.js → branch-commands-KUEGS6XL.js} +29 -29
- package/dist/bundle.js +3 -3
- package/dist/{chunk-77QKU5H6.js → chunk-2SWJ3267.js} +40 -22
- package/dist/{chunk-DCD3KJ4B.js → chunk-2VHEZDZZ.js} +35 -35
- package/dist/{chunk-HFH72FBC.js → chunk-34OZQNKR.js} +4 -4
- package/dist/chunk-37BT62SX.js +17 -0
- package/dist/{chunk-CF26RMO5.js → chunk-3H765RXT.js} +7 -7
- package/dist/{chunk-2IC3K22K.js → chunk-3HK7VELD.js} +2 -2
- package/dist/{chunk-XBCTTJSQ.js → chunk-3OR2RCXJ.js} +118 -94
- package/dist/{chunk-ZYZ7GRX3.js → chunk-4DVP42ZC.js} +2 -2
- package/dist/{chunk-NJCHWEPU.js → chunk-4GI22VPJ.js} +6 -6
- package/dist/{chunk-UIHLO3HJ.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-LLJL44WF.js → chunk-52VELHIH.js} +3 -3
- package/dist/{chunk-IFHFJR5O.js → chunk-5ABAIJVV.js} +6 -6
- package/dist/{chunk-MCISY4QC.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-OJFBI5C6.js → chunk-7Z43XRBL.js} +14 -14
- package/dist/{chunk-BWD5H7AW.js → chunk-AD7YILOU.js} +10 -10
- package/dist/{chunk-AICWDCLJ.js → chunk-BBFHZMQA.js} +2 -2
- package/dist/{chunk-CRCYD6AK.js → chunk-BFM2P47R.js} +6 -6
- package/dist/{chunk-BQMX7PYG.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-JTUMJXFN.js → chunk-CJIXD67B.js} +6 -6
- package/dist/{chunk-S4ZWOBRO.js → chunk-CP7OSHLK.js} +8 -8
- package/dist/{chunk-E3OLY3J4.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-NEPSEJRV.js → chunk-E7YXNU57.js} +7 -7
- package/dist/{chunk-GA6HTO3O.js → chunk-EBSJUSID.js} +2 -2
- package/dist/{chunk-UBM7L5KL.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-7B2KH733.js → chunk-EQ2KB5YF.js} +4 -13
- package/dist/{chunk-GT7PZCTK.js → chunk-FVBJKM6N.js} +3 -3
- package/dist/{chunk-F3IA3YWI.js → chunk-FVZ5C3PF.js} +22 -2
- package/dist/{chunk-LMCZQLM4.js → chunk-G3ZUGFIS.js} +9 -9
- package/dist/{chunk-RKTVXFBV.js → chunk-GUHJV7C5.js} +31 -3
- package/dist/{chunk-VVZFTYQ3.js → chunk-HGUQIBYY.js} +8 -8
- package/dist/{chunk-FCAKYFC6.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-7SDCWYAQ.js → chunk-KMXXOJL2.js} +21 -19
- package/dist/{chunk-IFNSUPQL.js → chunk-KNLPGIRY.js} +8 -8
- package/dist/{chunk-ID7MIDLG.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-OO2JDYQH.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-H4CS4WPM.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-SJW6R6P4.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-ZNHO535R.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-HERXDPZS.js → chunk-SWQA6SZI.js} +113 -94
- package/dist/{chunk-EXY42CTV.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-YQQSFS7S.js → chunk-TEZKQQDT.js} +46 -44
- package/dist/{chunk-X2IQOLQD.js → chunk-TN7ZBZRW.js} +3 -3
- package/dist/{chunk-X4G7FGHS.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-Q2KVGISJ.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-NAXUCAOK.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 -47
- package/dist/{codegen-command-YGGEC2DV.js → codegen-command-GGGU6YAP.js} +68 -67
- 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-SX4DWRVS.js → deploy-command-WOHYD22D.js} +55 -54
- package/dist/{deploy-source-T6BR3APS.js → deploy-source-QK7Y4Y3V.js} +34 -34
- package/dist/{dev-env-sync-4XFB63CM.js → dev-env-sync-AMFPULCP.js} +51 -50
- 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-N3JPECAZ.js → env-example-refresh-F5RTDVJ5.js} +69 -68
- package/dist/{env-pull-command-EAWIS3IW.js → env-pull-command-J2ARE33T.js} +52 -51
- package/dist/{env-target-RZBM6SOB.js → env-target-WA4BR6GW.js} +13 -13
- package/dist/{env-var-command-K2OASTSZ.js → env-var-command-WEC22FI5.js} +55 -55
- package/dist/{ephemeral-2DXWP3VK.js → ephemeral-MNHEWSZ6.js} +11 -11
- package/dist/{ephemeral-command-FZLJJICY.js → ephemeral-command-EJLS42VJ.js} +64 -63
- package/dist/{ephemeral-state-56XEDUJW.js → ephemeral-state-QTT5JHD5.js} +11 -11
- package/dist/{generate-command-IQVETHTK.js → generate-command-2WHFL4CB.js} +77 -76
- package/dist/{gitignore-3REKZPQI.js → gitignore-OKB3X335.js} +19 -18
- package/dist/{guards-LQ7PSXOL.js → guards-N4PUFKN5.js} +3 -2
- package/dist/{impersonate-command-K4775AUM.js → impersonate-command-EIWI3FBD.js} +44 -43
- 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-SODVHEI6.js → init-command-POIWZKZ4.js} +52 -51
- package/dist/{init-modules-WJOEK2YW.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 -30
- package/dist/{keep-data-merge-CHOKIJS5.js → keep-data-merge-NXP77QML.js} +32 -31
- package/dist/{landing-record-KJTRWFK6.js → landing-record-MK44WCRY.js} +23 -22
- 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-4K5FTSHE.js → local-engine-choice-7QBML5XF.js} +43 -37
- 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-FM4FOZ42.js → local-engine-mcp-command-A257D3WK.js} +52 -45
- 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-BLCJIVCC.js → lock-commands-KMWLIGT2.js} +55 -54
- package/dist/{login-command-PTYSRF45.js → login-command-E2KMN6DV.js} +39 -33
- package/dist/{logout-command-BIO63CXY.js → logout-command-AIB446AQ.js} +16 -17
- package/dist/{loop-CLLBQSJF.js → loop-EMTBWN4X.js} +5 -4
- package/dist/{marketplace-command-TEUCQBL5.js → marketplace-command-YLBFUBHL.js} +42 -41
- package/dist/{marketplace-resolve-63QWMQZU.js → marketplace-resolve-LT76KHJD.js} +9 -7
- package/dist/{meta-client-JY7JXDU2.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 -60
- package/dist/{operation-outcome-ATGF6RR4.js → operation-outcome-GBSISFAP.js} +26 -26
- package/dist/{output-target-ZCM4XYQA.js → output-target-NHJLT4YI.js} +20 -19
- 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-AXBQADFL.js → preflight-command-O52GLYGA.js} +60 -59
- package/dist/{profile-command-JZ5PLHJH.js → profile-command-NOKUVV3M.js} +38 -37
- 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-VBFNWVEF.js → publish-command-LB2XULJA.js} +65 -64
- package/dist/{pull-command-4YGZSRGU.js → pull-command-UVNPFY2E.js} +71 -70
- package/dist/{pull-superseded-3SSM3JFT.js → pull-superseded-7EZ7M54I.js} +3 -3
- package/dist/{release-command-SSRQMIT2.js → release-command-BGSDY3BE.js} +66 -65
- package/dist/{release-ns-command-ISFM36YJ.js → release-ns-command-IVXK7HEG.js} +93 -92
- package/dist/{retry-command-WP4ZI6CJ.js → retry-command-HG4IFE65.js} +10 -10
- package/dist/{routes-manifest-file-ZZS5TNGT.js → routes-manifest-file-3MDX3JB3.js} +4 -4
- package/dist/{secrets-file-JFCORQT7.js → secrets-file-NFNUKRGZ.js} +19 -18
- package/dist/{secrets-fill-command-5RJ2HSI5.js → secrets-fill-command-U5L7IKUO.js} +52 -51
- package/dist/{seed-W5FNE6IB.js → seed-M33F4OJW.js} +3 -3
- package/dist/{source-resolve-LP6MCOQX.js → source-resolve-MAMVIHDF.js} +24 -24
- package/dist/{static-host-3HPZKVKK.js → static-host-HCKD26Q3.js} +5 -5
- package/dist/{status-command-GXX4MZBC.js → status-command-VXIN37ET.js} +53 -78
- 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-PQTTCY2O.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-5MLGODGI.js → tables-command-FNBHVJG3.js} +41 -41
- package/dist/{tenant-IXIW3FOI.js → tenant-SSWC7B3V.js} +12 -12
- package/dist/{tenant-command-UDZUIOTO.js → tenant-command-PHNX3PXS.js} +96 -95
- package/dist/{test-command-7CUROW3U.js → test-command-DMMF3RMK.js} +44 -44
- package/dist/{tests-N4MMBABH.js → tests-ZFQWDWS2.js} +6 -6
- package/dist/{token-DTFJJYQH.js → token-IHOPB74T.js} +14 -13
- package/dist/{toolchain-hooks-IJWV3ZQS.js → toolchain-hooks-IRPM6LYL.js} +3 -3
- package/dist/{toolchain-modules-GQIMMMZL.js → toolchain-modules-V56JXU2E.js} +9 -5
- package/dist/{toolchain-peers-EMOYN4U7.js → toolchain-peers-NOIM44ED.js} +11 -9
- package/dist/{tracked-backend-2MG4D4ZJ.js → tracked-backend-VKWZKKBG.js} +39 -37
- package/dist/{update-check-H774KJVG.js → update-check-DZ4YVDNS.js} +51 -50
- package/dist/{upgrade-command-MLBXEIKR.js → upgrade-command-EP5WQWFA.js} +55 -54
- package/dist/{whoami-command-SYRDCTDK.js → whoami-command-UV6EEDBY.js} +15 -16
- package/dist/{workspace-RMSSZKNV.js → workspace-6LVJ3LZE.js} +5 -5
- package/dist/{workspace-binding-ZQSANRJF.js → workspace-binding-AUZIERMF.js} +14 -15
- package/dist/{workspace-command-X3ACS6X4.js → workspace-command-VXOY6KPE.js} +96 -95
- package/dist/{workspace-env-XA57JKVH.js → workspace-env-ZNGE3DFN.js} +17 -16
- 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-562F4G3K.js → xanosdk-import-FENZ7XMW.js} +6 -6
- package/dist/{xanosdk-project-J2JVTSVJ.js → xanosdk-project-K4RKLLNO.js} +16 -15
- 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 -18
- package/llms.txt +7 -9
- package/manifest.json +651 -3
- package/package.json +2 -1
- package/skills/xano-backend/SKILL.md +2 -4
- package/dist/chunk-VYJYDMY6.js +0 -9
- package/dist/local-engine-command-CUBWYENJ.js +0 -86
- package/dist/promote-command-25OWDQVE.js +0 -149
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
XANO_AI_LOCATIONS
|
|
3
|
+
} from "./chunk-6SXKKDGF.js";
|
|
1
4
|
import {
|
|
2
5
|
assertCanonical,
|
|
3
6
|
buildWorkspaceHistory,
|
|
@@ -32,6 +35,30 @@ var DEFAULT_DOCUMENTATION = {
|
|
|
32
35
|
whitelist: {},
|
|
33
36
|
require_token: false
|
|
34
37
|
};
|
|
38
|
+
function assertXanoAiProvider(settings) {
|
|
39
|
+
const providers = settings?.ai_settings?.providers;
|
|
40
|
+
if (!isPlainRecord(providers) || !Object.hasOwn(providers, "xano-ai")) return;
|
|
41
|
+
const at = 'settings.ai_settings.providers["xano-ai"]';
|
|
42
|
+
const block = providers["xano-ai"];
|
|
43
|
+
if (!isPlainRecord(block)) {
|
|
44
|
+
throw new Error(`workspaceConfig: ${at} is ${describeEntry(block)}; it takes { model?, location? }.`);
|
|
45
|
+
}
|
|
46
|
+
if (block.model !== void 0 && typeof block.model !== "string") {
|
|
47
|
+
throw new Error(`workspaceConfig: ${at}.model is ${describeEntry(block.model)}; a model is a string.`);
|
|
48
|
+
}
|
|
49
|
+
if (block.location !== void 0 && !XANO_AI_LOCATIONS.includes(block.location)) {
|
|
50
|
+
throw new Error(
|
|
51
|
+
`workspaceConfig: ${at}.location is ${JSON.stringify(block.location) ?? String(block.location)}; it takes "" | "us" | "global" | "eu", lowercase, because the engine matches it exactly.`
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function fillXanoAiModel(settings) {
|
|
56
|
+
const providers = settings.ai_settings?.providers;
|
|
57
|
+
if (!isPlainRecord(providers) || !isPlainRecord(providers["xano-ai"])) return settings;
|
|
58
|
+
const block = providers["xano-ai"];
|
|
59
|
+
if (!Object.hasOwn(block, "model")) providers["xano-ai"] = { model: "", ...block };
|
|
60
|
+
return settings;
|
|
61
|
+
}
|
|
35
62
|
var DEFAULT_PREFERENCES = {
|
|
36
63
|
allow_push: false,
|
|
37
64
|
track_performance: true,
|
|
@@ -58,7 +85,7 @@ function mergeOverDefaults(defaults, authored, field = "") {
|
|
|
58
85
|
);
|
|
59
86
|
}
|
|
60
87
|
function mergeOver(base, over, path) {
|
|
61
|
-
const out =
|
|
88
|
+
const out = structuredClone(base);
|
|
62
89
|
for (const [key, value] of Object.entries(over)) {
|
|
63
90
|
const under = out[key];
|
|
64
91
|
const at = path === "" ? key : `${path}.${key}`;
|
|
@@ -111,6 +138,7 @@ function encodeWorkspaceConfig(def) {
|
|
|
111
138
|
);
|
|
112
139
|
}
|
|
113
140
|
assertCanonical(`workspace "${def.name}"`, def.canonical);
|
|
141
|
+
assertXanoAiProvider(def.settings);
|
|
114
142
|
return {
|
|
115
143
|
name: def.name,
|
|
116
144
|
description: def.description ?? "",
|
|
@@ -128,7 +156,7 @@ function encodeWorkspaceConfig(def) {
|
|
|
128
156
|
...def.middleware !== void 0 ? { middleware: encodeWorkspaceMiddleware(def.middleware) } : {},
|
|
129
157
|
...def.history !== void 0 ? { history: buildWorkspaceHistory(def.history) } : {},
|
|
130
158
|
env: def.env ? encodeWorkspaceEnv(def.env) : [],
|
|
131
|
-
settings: mergeOverDefaults(DEFAULT_SETTINGS, def.settings, "settings"),
|
|
159
|
+
settings: fillXanoAiModel(mergeOverDefaults(DEFAULT_SETTINGS, def.settings, "settings")),
|
|
132
160
|
// Presence-preserving: each key is written only when the author set it, and
|
|
133
161
|
// each nested optional likewise, so a pulled workspace re-exports to its own
|
|
134
162
|
// bytes whether or not the engine happened to store the `?=` default.
|
|
@@ -174,4 +202,4 @@ export {
|
|
|
174
202
|
workspaceConfig,
|
|
175
203
|
typedEnv
|
|
176
204
|
};
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
205
|
+
//# sourceMappingURL=chunk-GUHJV7C5.js.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
reachableLines,
|
|
4
4
|
readReachableWorkspaces,
|
|
5
5
|
workspaceIdFix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3H765RXT.js";
|
|
7
7
|
import {
|
|
8
8
|
credentialRejected,
|
|
9
9
|
getAccessToken
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TEZKQQDT.js";
|
|
11
11
|
import {
|
|
12
12
|
CREDENTIAL_FILE_VERSION,
|
|
13
13
|
DEFAULT_AUTH_HOST,
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
loginCommand,
|
|
20
20
|
readCredentialFile,
|
|
21
21
|
resolveAuthFilePath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OQMXCNN7.js";
|
|
23
23
|
import {
|
|
24
24
|
fetchOrExplain,
|
|
25
25
|
httpFailure,
|
|
26
26
|
parseJsonAnswer
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
28
28
|
import {
|
|
29
29
|
profileSourceLabel,
|
|
30
30
|
selectionDocument
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Q4R2ABFL.js";
|
|
32
32
|
import {
|
|
33
33
|
formatFields,
|
|
34
34
|
isMachineOutput,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
stdoutStyle,
|
|
37
37
|
warn,
|
|
38
38
|
writeJson
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6534P3VH.js";
|
|
40
40
|
import {
|
|
41
41
|
shellQuote
|
|
42
42
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -183,7 +183,7 @@ function prettyProfile(p) {
|
|
|
183
183
|
}
|
|
184
184
|
async function runWhoamiCommand(args) {
|
|
185
185
|
const profile = await fetchProfile(args).catch(async (err) => {
|
|
186
|
-
const { unansweredRead } = await import("./source-resolve-
|
|
186
|
+
const { unansweredRead } = await import("./source-resolve-MAMVIHDF.js");
|
|
187
187
|
throw unansweredRead(err, "read the signed-in user", "workspace");
|
|
188
188
|
});
|
|
189
189
|
if (isMachineOutput(args)) {
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
profileValue,
|
|
204
204
|
runWhoamiCommand
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-HGUQIBYY.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureExportGitignored
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-34OZQNKR.js";
|
|
4
4
|
import {
|
|
5
5
|
andList
|
|
6
6
|
} from "./chunk-622HUCZT.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
warn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6534P3VH.js";
|
|
11
11
|
|
|
12
12
|
// src/emit/output-target.ts
|
|
13
13
|
import { accessSync, chmodSync, constants, mkdirSync, statSync, writeFileSync } from "fs";
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
secretsPhrase,
|
|
126
126
|
assertWritableTarget
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-HUXMRYUX.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
impersonateEphemeral,
|
|
6
6
|
projectTenant
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-745NOWB7.js";
|
|
8
8
|
import {
|
|
9
9
|
deleteAnswer,
|
|
10
10
|
hasString,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
listAnswer,
|
|
13
13
|
recordAnswer,
|
|
14
14
|
writeTransportFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4Y3SWNPE.js";
|
|
16
16
|
import {
|
|
17
17
|
SENT_AFTERMATH,
|
|
18
18
|
fetchOrExplain,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
readBodyText,
|
|
21
21
|
safeHttpFailure,
|
|
22
22
|
writeStatusAftermath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
24
24
|
|
|
25
25
|
// src/deploy/tenant.ts
|
|
26
26
|
var TIMEOUT_MS = 3e4;
|
|
@@ -219,4 +219,4 @@ export {
|
|
|
219
219
|
deleteTenant,
|
|
220
220
|
impersonateTenant
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=chunk-
|
|
222
|
+
//# sourceMappingURL=chunk-I52AKG2O.js.map
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readPin
|
|
3
|
+
} from "./chunk-5KSVMHFS.js";
|
|
1
4
|
import {
|
|
2
5
|
listOverrideEntries,
|
|
3
6
|
listReleaseEntries,
|
|
4
7
|
readEngineEntry,
|
|
5
|
-
readPin,
|
|
6
8
|
verifiedEngineExecutable
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VO62TKK5.js";
|
|
8
10
|
import {
|
|
9
11
|
clearEngineRecordsNamed,
|
|
10
12
|
listEngineRecords
|
|
11
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MKRREVNB.js";
|
|
12
14
|
import {
|
|
13
15
|
engineCacheDir,
|
|
14
16
|
engineRunHome,
|
|
15
17
|
localEngineHome
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FVZ5C3PF.js";
|
|
17
19
|
import {
|
|
18
20
|
assertLoopbackUrl,
|
|
19
21
|
parseEngineHandshake,
|
|
20
22
|
parseEngineListing
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RQGSZ7AR.js";
|
|
22
24
|
import {
|
|
23
25
|
fetchOrExplain,
|
|
24
26
|
httpFailureError
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
26
28
|
|
|
27
29
|
// src/deploy/local-engine-process.ts
|
|
28
30
|
import { spawn as nodeSpawn, spawnSync } from "child_process";
|
|
@@ -52,9 +54,11 @@ var defaultRun = (executable, args, options) => {
|
|
|
52
54
|
};
|
|
53
55
|
};
|
|
54
56
|
function redactSecrets(text) {
|
|
55
|
-
return text.replace(/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*/g, "[redacted]").replace(/(\bkey=)[^&\s"']+/gi, "$1[redacted]").replace(/(\bBearer\s+)\S+/gi, "$1[redacted]");
|
|
57
|
+
return text.replace(/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*/g, "[redacted]").replace(/\bxai_[A-Za-z0-9_-]+/g, "[redacted]").replace(/(\bkey=)[^&\s"']+/gi, "$1[redacted]").replace(/(\bBearer\s+)\S+/gi, "$1[redacted]");
|
|
56
58
|
}
|
|
57
|
-
|
|
59
|
+
var ENGINE_AI_TOKEN_FILE_ENV = "XANO_AI_GATEWAY_TOKEN_FILE";
|
|
60
|
+
var ENGINE_AI_GATEWAY_URL_ENV = "XANO_AI_GATEWAY_URL";
|
|
61
|
+
function engineChildEnv(env = process.env, ai) {
|
|
58
62
|
const built = {};
|
|
59
63
|
for (const key of ENGINE_ENV_ALLOWLIST) {
|
|
60
64
|
const value = env[key];
|
|
@@ -62,6 +66,10 @@ function engineChildEnv(env = process.env) {
|
|
|
62
66
|
}
|
|
63
67
|
built.PATH = env.PATH ?? "";
|
|
64
68
|
built.HOME = engineRunHome(env);
|
|
69
|
+
if (ai !== void 0) {
|
|
70
|
+
built[ENGINE_AI_TOKEN_FILE_ENV] = ai.tokenFile;
|
|
71
|
+
if (ai.gatewayUrl !== void 0) built[ENGINE_AI_GATEWAY_URL_ENV] = ai.gatewayUrl;
|
|
72
|
+
}
|
|
65
73
|
return built;
|
|
66
74
|
}
|
|
67
75
|
function engineLogPath(name, env = process.env) {
|
|
@@ -80,11 +88,17 @@ function engineOwnLogs(env = process.env) {
|
|
|
80
88
|
}
|
|
81
89
|
var FIRST_TTL_RELEASE = [0, 1, 15];
|
|
82
90
|
function engineExpiresEphemerals(version) {
|
|
83
|
-
const parts =
|
|
91
|
+
const parts = releaseParts(version);
|
|
84
92
|
if (parts === void 0) return false;
|
|
85
93
|
for (let i = 0; i < 3; i++) if (parts[i] !== FIRST_TTL_RELEASE[i]) return parts[i] > FIRST_TTL_RELEASE[i];
|
|
86
94
|
return true;
|
|
87
95
|
}
|
|
96
|
+
function engineRunsUntilStopped(version) {
|
|
97
|
+
return releaseParts(version) !== void 0;
|
|
98
|
+
}
|
|
99
|
+
function releaseParts(version) {
|
|
100
|
+
return /^v?(\d+)\.(\d+)\.(\d+)/.exec(version?.trim() ?? "")?.slice(1).map(Number);
|
|
101
|
+
}
|
|
88
102
|
async function startEngine(opts) {
|
|
89
103
|
const env = opts.env ?? process.env;
|
|
90
104
|
const spawn = opts.spawn ?? defaultSpawn;
|
|
@@ -119,7 +133,7 @@ async function startEngine(opts) {
|
|
|
119
133
|
// stdin ignored: nothing here answers a prompt, and an inherited stdin is
|
|
120
134
|
// a detached process competing with the CLI for the terminal.
|
|
121
135
|
stdio: ["ignore", "pipe", "pipe"],
|
|
122
|
-
env: engineChildEnv(env)
|
|
136
|
+
env: engineChildEnv(env, opts.ai)
|
|
123
137
|
}
|
|
124
138
|
);
|
|
125
139
|
return new Promise((resolve, reject) => {
|
|
@@ -413,10 +427,13 @@ export {
|
|
|
413
427
|
HANDSHAKE_TIMEOUT_MS,
|
|
414
428
|
MAX_HANDSHAKE_BYTES,
|
|
415
429
|
ENGINE_ENV_ALLOWLIST,
|
|
430
|
+
ENGINE_AI_TOKEN_FILE_ENV,
|
|
431
|
+
ENGINE_AI_GATEWAY_URL_ENV,
|
|
416
432
|
engineChildEnv,
|
|
417
433
|
engineLogPath,
|
|
418
434
|
engineOwnLogs,
|
|
419
435
|
engineExpiresEphemerals,
|
|
436
|
+
engineRunsUntilStopped,
|
|
420
437
|
startEngine,
|
|
421
438
|
bootFailure,
|
|
422
439
|
cachedEngineEntry,
|
|
@@ -432,4 +449,4 @@ export {
|
|
|
432
449
|
findOrphanedEngineProcesses,
|
|
433
450
|
stopOrphanedEngineProcesses
|
|
434
451
|
};
|
|
435
|
-
//# sourceMappingURL=chunk-
|
|
452
|
+
//# sourceMappingURL=chunk-I5YD7QPI.js.map
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
asRecord,
|
|
3
|
+
asString,
|
|
4
|
+
asStringArray
|
|
5
|
+
} from "./chunk-37BT62SX.js";
|
|
6
|
+
import {
|
|
7
|
+
localPackageName,
|
|
8
|
+
packageNameOf
|
|
9
|
+
} from "./chunk-DORGB2Y2.js";
|
|
1
10
|
import {
|
|
2
11
|
declaredDependencies,
|
|
3
12
|
readProjectManifest,
|
|
4
13
|
readToolchainBlock
|
|
5
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LZDH5COS.js";
|
|
6
15
|
import {
|
|
7
16
|
parseJsonAnswer,
|
|
8
17
|
serverMessage,
|
|
9
18
|
statusLabel
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
localPackageName,
|
|
13
|
-
packageNameOf
|
|
14
|
-
} from "./chunk-XDGLYIB2.js";
|
|
19
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
15
20
|
import {
|
|
16
21
|
readEnvVar
|
|
17
22
|
} from "./chunk-X2NL4KUO.js";
|
|
@@ -19,7 +24,7 @@ import {
|
|
|
19
24
|
CliError,
|
|
20
25
|
EXIT_SOURCE_UNRESOLVABLE,
|
|
21
26
|
info
|
|
22
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6534P3VH.js";
|
|
23
28
|
import {
|
|
24
29
|
suggest
|
|
25
30
|
} from "./chunk-UTI5G6OJ.js";
|
|
@@ -30,18 +35,9 @@ var CATALOGUE_TIMEOUT_MS = 3e4;
|
|
|
30
35
|
function baseUrl() {
|
|
31
36
|
return readEnvVar("XANOSDK_MARKETPLACE_URL") ?? DEFAULT_BASE_URL;
|
|
32
37
|
}
|
|
33
|
-
function asString(v) {
|
|
34
|
-
return typeof v === "string" && v !== "" ? v : void 0;
|
|
35
|
-
}
|
|
36
|
-
function asStringArray(v) {
|
|
37
|
-
return Array.isArray(v) ? v.filter((x) => typeof x === "string" && x !== "") : [];
|
|
38
|
-
}
|
|
39
38
|
function asBoolean(v) {
|
|
40
39
|
return typeof v === "boolean" ? v : void 0;
|
|
41
40
|
}
|
|
42
|
-
function asRecord(v) {
|
|
43
|
-
return typeof v === "object" && v !== null && !Array.isArray(v) ? v : void 0;
|
|
44
|
-
}
|
|
45
41
|
function projectRow(raw) {
|
|
46
42
|
return {
|
|
47
43
|
id: typeof raw.id === "number" ? raw.id : void 0,
|
|
@@ -359,7 +355,7 @@ async function unlistedModuleError(command, name) {
|
|
|
359
355
|
}
|
|
360
356
|
async function withCatalogueRerun(err, args, command) {
|
|
361
357
|
if (!isCatalogueOutage(err)) return err;
|
|
362
|
-
const { retryCommand } = await import("./retry-command-
|
|
358
|
+
const { retryCommand } = await import("./retry-command-HG4IFE65.js");
|
|
363
359
|
const rerun = retryCommand(args, { command }).command;
|
|
364
360
|
return new CliError("SDK_ERROR", `${err.message}
|
|
365
361
|
Run \`${rerun}\` again once it answers.`, {
|
|
@@ -386,4 +382,4 @@ export {
|
|
|
386
382
|
unlistedModuleError,
|
|
387
383
|
withCatalogueRerun
|
|
388
384
|
};
|
|
389
|
-
//# sourceMappingURL=chunk-
|
|
385
|
+
//# sourceMappingURL=chunk-IUBGFCJJ.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
safeHttpFailure,
|
|
11
11
|
statusLabel,
|
|
12
12
|
writeStatusAftermath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
14
14
|
|
|
15
15
|
// src/deploy/release.ts
|
|
16
16
|
var TIMEOUT_MS = 3e4;
|
|
@@ -405,4 +405,4 @@ export {
|
|
|
405
405
|
exportRelease,
|
|
406
406
|
deleteRelease
|
|
407
407
|
};
|
|
408
|
-
//# sourceMappingURL=chunk-
|
|
408
|
+
//# sourceMappingURL=chunk-JXX2QXPP.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
serverMessage,
|
|
10
10
|
statusLabel,
|
|
11
11
|
transportTarget
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
13
13
|
import {
|
|
14
14
|
withArticle
|
|
15
15
|
} from "./chunk-36JUQZVQ.js";
|
|
@@ -110,4 +110,4 @@ export {
|
|
|
110
110
|
assertBranchReadSupported,
|
|
111
111
|
exportWorkspaceBundle
|
|
112
112
|
};
|
|
113
|
-
//# sourceMappingURL=chunk-
|
|
113
|
+
//# sourceMappingURL=chunk-KHX6VQ4M.js.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readDeployed
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5Z4WQQHC.js";
|
|
4
4
|
import {
|
|
5
5
|
LookupFailedError,
|
|
6
6
|
SourceError,
|
|
7
7
|
resolveSource
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LLG33KGY.js";
|
|
9
9
|
import {
|
|
10
10
|
isProjectDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4GI22VPJ.js";
|
|
12
12
|
import {
|
|
13
13
|
NotSignedInError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TEZKQQDT.js";
|
|
15
15
|
import {
|
|
16
16
|
otherCredentialRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CP7OSHLK.js";
|
|
18
|
+
import {
|
|
19
|
+
getEnvironment,
|
|
20
|
+
readEphemeralState,
|
|
21
|
+
unreadableEphemeralState
|
|
22
|
+
} from "./chunk-DAXFWXSV.js";
|
|
18
23
|
import {
|
|
19
24
|
getEngineRecord
|
|
20
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MKRREVNB.js";
|
|
21
26
|
import {
|
|
22
27
|
commandPath,
|
|
23
28
|
parseSlot,
|
|
24
29
|
refusedKind,
|
|
25
30
|
slotValueMissing
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
getEnvironment,
|
|
29
|
-
readEphemeralState,
|
|
30
|
-
unreadableEphemeralState
|
|
31
|
-
} from "./chunk-WGKKDGSA.js";
|
|
31
|
+
} from "./chunk-CGLYG2VF.js";
|
|
32
32
|
import {
|
|
33
33
|
ENV_CREDENTIAL_VARS,
|
|
34
34
|
ORIGIN_READ_ONLY_BY_REFRESH,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
credentialFileFlagFor,
|
|
37
37
|
recordedByEnvCredential,
|
|
38
38
|
typedCredentialFlags
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4DVP42ZC.js";
|
|
40
40
|
import {
|
|
41
41
|
globalAuthFilePath,
|
|
42
42
|
localAuthFilePath,
|
|
@@ -44,16 +44,16 @@ import {
|
|
|
44
44
|
profileAddCommand,
|
|
45
45
|
readCredentialFile,
|
|
46
46
|
recordedCredentialPath
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-OQMXCNN7.js";
|
|
48
48
|
import {
|
|
49
49
|
backendDirIn
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-X3LYWTZ5.js";
|
|
51
51
|
import {
|
|
52
52
|
UsageError,
|
|
53
53
|
displayPath,
|
|
54
54
|
pastePath,
|
|
55
55
|
sourceSpellings
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-6534P3VH.js";
|
|
57
57
|
import {
|
|
58
58
|
shellQuote
|
|
59
59
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -86,7 +86,7 @@ async function selectBackend(slot, raw, ctx) {
|
|
|
86
86
|
}
|
|
87
87
|
const decided = decide({ cwd, pointer, state, scope, engineRecorded: getEngineRecord(cwd, env) !== void 0 }, slot);
|
|
88
88
|
if ("refusal" in decided) {
|
|
89
|
-
const { reachableFirst } = await import("./env-target-
|
|
89
|
+
const { reachableFirst } = await import("./env-target-WA4BR6GW.js");
|
|
90
90
|
throw await reachableFirst(decided.refusal, scope);
|
|
91
91
|
}
|
|
92
92
|
refuseUnservable(slot, decided.kind);
|
|
@@ -107,9 +107,10 @@ function lookupRetry(err, slot) {
|
|
|
107
107
|
if (!(err instanceof LookupFailedError)) return err;
|
|
108
108
|
return err.withRerun(`xanosdk ${commandPath(slot.command, slot.subcommand)} \u2026`, " as you ran it");
|
|
109
109
|
}
|
|
110
|
+
var LOCAL_DEPLOY_CREDENTIAL = "and a deploy to the Xano Engine takes none from the command line \u2014 the engine is reached with its own bearer, and its Xano AI credential comes from the profile this project pins, XANO_PROFILE, or the default profile.";
|
|
110
111
|
function refuseProfileForLocal(profile, kinds, slot, flags = typedCredentialFlags()) {
|
|
111
112
|
if (kinds.some((k) => k !== "local")) return;
|
|
112
|
-
const why = "and a Xano Engine takes none \u2014 it is reached with the engine's own bearer.";
|
|
113
|
+
const why = slot === void 0 ? LOCAL_DEPLOY_CREDENTIAL : "and a Xano Engine takes none \u2014 it is reached with the engine's own bearer.";
|
|
113
114
|
const or = slot === void 0 ? "or add `--ephemeral` to deploy to a hosted backend." : `or ${nameOne(slot, "a hosted backend", true)}.`;
|
|
114
115
|
if (profile !== void 0) {
|
|
115
116
|
throw new UsageError(`\`--profile ${profile}\` selects a Xano credential, ${why} Drop \`--profile\`, ${or}`, hintOpts(slot));
|
|
@@ -363,9 +364,10 @@ export {
|
|
|
363
364
|
memoCredential,
|
|
364
365
|
selectBackend,
|
|
365
366
|
resolveBackend,
|
|
367
|
+
LOCAL_DEPLOY_CREDENTIAL,
|
|
366
368
|
refuseProfileForLocal,
|
|
367
369
|
readTrackedBackend,
|
|
368
370
|
NothingTrackedError,
|
|
369
371
|
nestedBackendEntries
|
|
370
372
|
};
|
|
371
|
-
//# sourceMappingURL=chunk-
|
|
373
|
+
//# sourceMappingURL=chunk-KMXXOJL2.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
confirm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BBFHZMQA.js";
|
|
4
4
|
import {
|
|
5
5
|
ProfileNotFoundError,
|
|
6
6
|
describeRefreshAnswer,
|
|
7
7
|
environmentCredentialVars
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TEZKQQDT.js";
|
|
9
9
|
import {
|
|
10
10
|
yesRerun
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PC7XEO7F.js";
|
|
12
12
|
import {
|
|
13
13
|
OpenIdProvider,
|
|
14
14
|
assertCredentialFileRemovable,
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
resolveScope,
|
|
32
32
|
withCredentialLock,
|
|
33
33
|
writeOrRemoveCredentialFile
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OQMXCNN7.js";
|
|
35
35
|
import {
|
|
36
36
|
findProjectPointer,
|
|
37
37
|
resolveProjectProfile
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5ABAIJVV.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveActiveProfile
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Q4R2ABFL.js";
|
|
42
42
|
import {
|
|
43
43
|
UsageError,
|
|
44
44
|
detail,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
success,
|
|
51
51
|
warn,
|
|
52
52
|
writeJson
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6534P3VH.js";
|
|
54
54
|
import {
|
|
55
55
|
suggestAll
|
|
56
56
|
} from "./chunk-UTI5G6OJ.js";
|
|
@@ -429,4 +429,4 @@ export {
|
|
|
429
429
|
salvageRevocable,
|
|
430
430
|
signInAgain
|
|
431
431
|
};
|
|
432
|
-
//# sourceMappingURL=chunk-
|
|
432
|
+
//# sourceMappingURL=chunk-KNLPGIRY.js.map
|
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findRelease,
|
|
3
3
|
listReleases
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
isSignatureRefusal
|
|
7
|
-
} from "./chunk-GA6HTO3O.js";
|
|
8
|
-
import {
|
|
9
|
-
resolveEphemeralName
|
|
10
|
-
} from "./chunk-S4ZWOBRO.js";
|
|
11
|
-
import {
|
|
12
|
-
clearEngineRecordsNamed,
|
|
13
|
-
getEngineRecord,
|
|
14
|
-
listEngineRecords
|
|
15
|
-
} from "./chunk-5Y5HWQ2P.js";
|
|
16
|
-
import {
|
|
17
|
-
assertLoopbackUrl
|
|
18
|
-
} from "./chunk-LCOCRJ4K.js";
|
|
4
|
+
} from "./chunk-JXX2QXPP.js";
|
|
19
5
|
import {
|
|
20
6
|
displayNameHint,
|
|
21
7
|
displayNameOwner,
|
|
@@ -25,26 +11,40 @@ import {
|
|
|
25
11
|
selectorFix,
|
|
26
12
|
sentenceCase,
|
|
27
13
|
sharedDisplayHint
|
|
28
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6TAYTKFM.js";
|
|
29
15
|
import {
|
|
30
16
|
getTenant,
|
|
31
17
|
tenantHasWorkspace
|
|
32
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I52AKG2O.js";
|
|
33
19
|
import {
|
|
34
20
|
getEphemeral,
|
|
35
21
|
isExpired
|
|
36
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-745NOWB7.js";
|
|
23
|
+
import {
|
|
24
|
+
isSignatureRefusal
|
|
25
|
+
} from "./chunk-EBSJUSID.js";
|
|
26
|
+
import {
|
|
27
|
+
resolveEphemeralName
|
|
28
|
+
} from "./chunk-CP7OSHLK.js";
|
|
37
29
|
import {
|
|
38
30
|
clearEnvironment,
|
|
39
31
|
getEnvironment,
|
|
40
32
|
readEphemeralState
|
|
41
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DAXFWXSV.js";
|
|
34
|
+
import {
|
|
35
|
+
clearEngineRecordsNamed,
|
|
36
|
+
getEngineRecord,
|
|
37
|
+
listEngineRecords
|
|
38
|
+
} from "./chunk-MKRREVNB.js";
|
|
39
|
+
import {
|
|
40
|
+
assertLoopbackUrl
|
|
41
|
+
} from "./chunk-RQGSZ7AR.js";
|
|
42
42
|
import {
|
|
43
43
|
pipedYes
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-PC7XEO7F.js";
|
|
45
45
|
import {
|
|
46
46
|
contextFlags
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-4DVP42ZC.js";
|
|
48
48
|
import {
|
|
49
49
|
TransportError,
|
|
50
50
|
UNTRUSTED_CERTIFICATE,
|
|
@@ -52,12 +52,12 @@ import {
|
|
|
52
52
|
certificateFailureCode,
|
|
53
53
|
isTimeoutError,
|
|
54
54
|
lastRateLimitRetryAfter
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
56
56
|
import {
|
|
57
57
|
CliError,
|
|
58
58
|
EXIT_SOURCE_UNRESOLVABLE,
|
|
59
59
|
safeText
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6534P3VH.js";
|
|
61
61
|
import {
|
|
62
62
|
suggest,
|
|
63
63
|
suggestAll
|
|
@@ -561,13 +561,13 @@ function engineNotRunning(name, clearedProjects, deployFallback = true, nearest,
|
|
|
561
561
|
}
|
|
562
562
|
function defaultSweep(env) {
|
|
563
563
|
return async () => {
|
|
564
|
-
const { stopOrphanedEngineProcesses } = await import("./local-engine-process-
|
|
564
|
+
const { stopOrphanedEngineProcesses } = await import("./local-engine-process-P5T2766M.js");
|
|
565
565
|
return stopOrphanedEngineProcesses({ env }).stopped;
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
568
|
function defaultEnumeration(env, cwd) {
|
|
569
569
|
return async () => {
|
|
570
|
-
const { cachedEngineEntry, listEngines } = await import("./local-engine-process-
|
|
570
|
+
const { cachedEngineEntry, listEngines } = await import("./local-engine-process-P5T2766M.js");
|
|
571
571
|
const entry = cachedEngineEntry(env, cwd);
|
|
572
572
|
return entry === void 0 ? void 0 : listEngines({ entry, env });
|
|
573
573
|
};
|
|
@@ -598,4 +598,4 @@ export {
|
|
|
598
598
|
releaseNames,
|
|
599
599
|
resolveSource
|
|
600
600
|
};
|
|
601
|
-
//# sourceMappingURL=chunk-
|
|
601
|
+
//# sourceMappingURL=chunk-LLG33KGY.js.map
|
|
@@ -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
|