@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
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
keptDuplicates,
|
|
3
3
|
replacedRegistrations,
|
|
4
4
|
reportSuperseded
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YFVD3LNL.js";
|
|
6
6
|
import {
|
|
7
7
|
rerenderEnvExample
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QBSSSKIC.js";
|
|
9
9
|
import {
|
|
10
10
|
carriedSeedRows,
|
|
11
11
|
decodeBundle,
|
|
@@ -17,62 +17,62 @@ import {
|
|
|
17
17
|
verifyPulledTree,
|
|
18
18
|
withSourceIdentities,
|
|
19
19
|
writeDocumentationTokens
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YRLSJBSY.js";
|
|
21
21
|
import {
|
|
22
22
|
ROUTES_MANIFEST_BASENAME
|
|
23
23
|
} from "./chunk-SVQMDVND.js";
|
|
24
|
+
import {
|
|
25
|
+
recordSync,
|
|
26
|
+
syncBranchLabel
|
|
27
|
+
} from "./chunk-OSMPI45P.js";
|
|
24
28
|
import {
|
|
25
29
|
syncDigests
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YAZEB255.js";
|
|
27
31
|
import {
|
|
28
32
|
fetchSourceArchive
|
|
29
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BFM2P47R.js";
|
|
30
34
|
import {
|
|
31
35
|
confirm
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
recordSync,
|
|
35
|
-
syncBranchLabel
|
|
36
|
-
} from "./chunk-EPB6FAR5.js";
|
|
36
|
+
} from "./chunk-BBFHZMQA.js";
|
|
37
37
|
import {
|
|
38
38
|
decodeWorkspaceArchive,
|
|
39
39
|
encodeWorkspaceArchive
|
|
40
40
|
} from "./chunk-3DRXWLJ5.js";
|
|
41
41
|
import {
|
|
42
42
|
ensureSecretPathGitignored
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-34OZQNKR.js";
|
|
44
44
|
import {
|
|
45
45
|
readVersion,
|
|
46
46
|
refreshAgentGuidance
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3OR2RCXJ.js";
|
|
48
48
|
import {
|
|
49
49
|
WORKSPACE_ENV_BASENAME,
|
|
50
50
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
51
51
|
namesInEnvExample,
|
|
52
52
|
readWorkspaceEnvFile
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-UN73LNM5.js";
|
|
54
54
|
import {
|
|
55
55
|
memoCredential,
|
|
56
56
|
refuseProfileForLocal,
|
|
57
57
|
selectBackend
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KMXXOJL2.js";
|
|
59
59
|
import {
|
|
60
60
|
getAccessToken
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-TEZKQQDT.js";
|
|
62
62
|
import {
|
|
63
63
|
readLockFile,
|
|
64
64
|
writeLockFile
|
|
65
65
|
} from "./chunk-7ZVQIKNL.js";
|
|
66
66
|
import {
|
|
67
67
|
requireBackendSlot
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-CGLYG2VF.js";
|
|
69
69
|
import {
|
|
70
70
|
contextFlags
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-4DVP42ZC.js";
|
|
72
72
|
import {
|
|
73
73
|
backendDirIn,
|
|
74
74
|
resolveBackendDir
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-X3LYWTZ5.js";
|
|
76
76
|
import {
|
|
77
77
|
CODEGEN_MARKER,
|
|
78
78
|
DECODE_MARKER,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
readDecodeRecord,
|
|
88
88
|
removeEmptiedDirs,
|
|
89
89
|
removeFiles
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-EQ2KB5YF.js";
|
|
91
91
|
import {
|
|
92
92
|
holdsProjectManifest
|
|
93
93
|
} from "./chunk-HU7F56VF.js";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
terminalText,
|
|
108
108
|
warn,
|
|
109
109
|
writeJson
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-6534P3VH.js";
|
|
111
111
|
import {
|
|
112
112
|
WORKSPACE_SECRETS_BASENAME
|
|
113
113
|
} from "./chunk-3JDU4VRL.js";
|
|
@@ -319,7 +319,7 @@ async function runPullCommand(args) {
|
|
|
319
319
|
});
|
|
320
320
|
refuseDuplicateSourceGuids(project);
|
|
321
321
|
const seedRows = carriedSeedRows(fetched.archive, bundle.payload);
|
|
322
|
-
const { discoverManifestModules } = await import("./routes-manifest-file-
|
|
322
|
+
const { discoverManifestModules } = await import("./routes-manifest-file-3MDX3JB3.js");
|
|
323
323
|
const modules = await discoverManifestModules(cwd, join(cwd, backendDir, ROUTES_MANIFEST_BASENAME), readVersion());
|
|
324
324
|
const placed = placeGeneratedFiles(project, backendDir, void 0, void 0, modules);
|
|
325
325
|
const settings = source.kind === "release" ? keepProjectSettings(placed, backendDir, join(cwd, backendDir)) : { files: placed, kept: false, lost: [], from: WORKSPACE_SETTINGS_FILE };
|
|
@@ -440,7 +440,7 @@ async function runPullCommand(args) {
|
|
|
440
440
|
);
|
|
441
441
|
}
|
|
442
442
|
if (args.yes !== true) {
|
|
443
|
-
const { yesRerun } = await import("./retry-command-
|
|
443
|
+
const { yesRerun } = await import("./retry-command-HG4IFE65.js");
|
|
444
444
|
const { rerun, note } = yesRerun(args, "pull");
|
|
445
445
|
const ok = await confirm(`Replace ${backendDir}/ from ${fetched.label}?`, {
|
|
446
446
|
flag: "--yes",
|
|
@@ -915,7 +915,7 @@ function envFillRemedy(kind, args, one = false) {
|
|
|
915
915
|
return `fill ${them} in, or run \`xanosdk env pull${from}${flags}\`.`;
|
|
916
916
|
}
|
|
917
917
|
async function needsYes(args, head, why, details) {
|
|
918
|
-
const { yesRerun } = await import("./retry-command-
|
|
918
|
+
const { yesRerun } = await import("./retry-command-HG4IFE65.js");
|
|
919
919
|
const { rerun, note } = yesRerun(args, "pull");
|
|
920
920
|
return new CliError("SDK_USAGE", `${head} Re-run as \`${rerun}\` ${why}.${note}`, {
|
|
921
921
|
exitCode: 1,
|
|
@@ -944,4 +944,4 @@ export {
|
|
|
944
944
|
projectWorkspaceName,
|
|
945
945
|
envFillRemedy
|
|
946
946
|
};
|
|
947
|
-
//# sourceMappingURL=chunk-
|
|
947
|
+
//# sourceMappingURL=chunk-OAWBNCME.js.map
|
|
@@ -3,16 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-2TFRR6JV.js";
|
|
4
4
|
import {
|
|
5
5
|
addDependencies
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7J7YRAZB.js";
|
|
7
7
|
import {
|
|
8
8
|
condenseNpmError
|
|
9
9
|
} from "./chunk-ZFDZKNGG.js";
|
|
10
10
|
import {
|
|
11
11
|
shellWord
|
|
12
12
|
} from "./chunk-FWD7AL6N.js";
|
|
13
|
-
import {
|
|
14
|
-
readProjectManifest
|
|
15
|
-
} from "./chunk-DXUICABI.js";
|
|
16
13
|
import {
|
|
17
14
|
addCommandFor
|
|
18
15
|
} from "./chunk-DNBP4GJN.js";
|
|
@@ -22,14 +19,17 @@ import {
|
|
|
22
19
|
readInstalledManifest,
|
|
23
20
|
readInstalledManifestState,
|
|
24
21
|
requiredPeersOf
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DORGB2Y2.js";
|
|
23
|
+
import {
|
|
24
|
+
readProjectManifest
|
|
25
|
+
} from "./chunk-LZDH5COS.js";
|
|
26
26
|
import {
|
|
27
27
|
spinner,
|
|
28
28
|
style,
|
|
29
29
|
success,
|
|
30
30
|
terminalText,
|
|
31
31
|
warn
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6534P3VH.js";
|
|
33
33
|
|
|
34
34
|
// src/emit/toolchain-peers.ts
|
|
35
35
|
async function addToolchainPeers(dir, pkg, rerun) {
|
|
@@ -108,4 +108,4 @@ function projectDeclaredRanges(manifest) {
|
|
|
108
108
|
export {
|
|
109
109
|
addToolchainPeers
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-OG6WYZNA.js.map
|
|
@@ -2,35 +2,35 @@ import {
|
|
|
2
2
|
expandHome,
|
|
3
3
|
readPathEnvVar
|
|
4
4
|
} from "./chunk-EUUUMY7J.js";
|
|
5
|
-
import {
|
|
6
|
-
debugEnabled,
|
|
7
|
-
describeTransportFailure,
|
|
8
|
-
httpFailure,
|
|
9
|
-
isTimeoutError,
|
|
10
|
-
statusLabel
|
|
11
|
-
} from "./chunk-NH5Z2NOD.js";
|
|
12
5
|
import {
|
|
13
6
|
pointerRootFor,
|
|
14
7
|
resolveProjectProfile
|
|
15
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5ABAIJVV.js";
|
|
9
|
+
import {
|
|
10
|
+
registerSecret,
|
|
11
|
+
tokenTextProblem
|
|
12
|
+
} from "./chunk-4GPIOIAC.js";
|
|
16
13
|
import {
|
|
17
14
|
atomicWrite,
|
|
18
15
|
linkTarget
|
|
19
16
|
} from "./chunk-LLNZGEFK.js";
|
|
17
|
+
import {
|
|
18
|
+
debugEnabled,
|
|
19
|
+
describeTransportFailure,
|
|
20
|
+
httpFailure,
|
|
21
|
+
isTimeoutError,
|
|
22
|
+
statusLabel
|
|
23
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
20
24
|
import {
|
|
21
25
|
DEFAULT_PROFILE,
|
|
22
26
|
resolveActiveProfile
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Q4R2ABFL.js";
|
|
24
28
|
import {
|
|
25
29
|
readEnvVar
|
|
26
30
|
} from "./chunk-X2NL4KUO.js";
|
|
27
|
-
import {
|
|
28
|
-
registerSecret,
|
|
29
|
-
tokenTextProblem
|
|
30
|
-
} from "./chunk-4GPIOIAC.js";
|
|
31
31
|
import {
|
|
32
32
|
UsageError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6534P3VH.js";
|
|
34
34
|
import {
|
|
35
35
|
shellQuote
|
|
36
36
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -49,6 +49,11 @@ import * as client from "openid-client";
|
|
|
49
49
|
import { existsSync, readFileSync, mkdirSync } from "fs";
|
|
50
50
|
import { homedir } from "os";
|
|
51
51
|
import { dirname, join } from "path";
|
|
52
|
+
function sameScopes(a, b) {
|
|
53
|
+
if (a === void 0) return false;
|
|
54
|
+
const norm = (s) => [...new Set(s.split(/\s+/).filter((w) => w !== ""))].sort().join(" ");
|
|
55
|
+
return norm(a) === norm(b);
|
|
56
|
+
}
|
|
52
57
|
function clientStorePath() {
|
|
53
58
|
return readPathEnvVar("XANO_CLIENT_FILE") ?? join(homedir(), ".xano", "xanosdk-clients.json");
|
|
54
59
|
}
|
|
@@ -73,15 +78,15 @@ async function getOrRegisterClient(params) {
|
|
|
73
78
|
const all = readAll(path);
|
|
74
79
|
const k = key(params.authHost, params.redirectUri);
|
|
75
80
|
const cached = all[k];
|
|
76
|
-
if (cached?.client_id) return cached.client_id;
|
|
81
|
+
if (cached?.client_id && sameScopes(cached.scope, params.scope)) return { client_id: cached.client_id };
|
|
77
82
|
const { client_id } = await registerClient({
|
|
78
83
|
registrationEndpoint: params.registrationEndpoint,
|
|
79
84
|
redirectUri: params.redirectUri,
|
|
80
85
|
scope: params.scope
|
|
81
86
|
});
|
|
82
|
-
all[k] = { client_id };
|
|
87
|
+
all[k] = { client_id, scope: params.scope };
|
|
83
88
|
writeAll(path, all);
|
|
84
|
-
return client_id;
|
|
89
|
+
return { client_id };
|
|
85
90
|
}
|
|
86
91
|
function clearClient(params) {
|
|
87
92
|
const path = clientStorePath();
|
|
@@ -96,8 +101,10 @@ function clearClient(params) {
|
|
|
96
101
|
var CALLBACK_PATH = "/oauth/callback";
|
|
97
102
|
var DEFAULT_PORT = 47100;
|
|
98
103
|
var SOFTWARE_ID = "xanosdk";
|
|
104
|
+
var FIRST_PARTY_CLIENT_ID = "xanosdk";
|
|
99
105
|
var DEFAULT_AUTH_HOST = "https://app.xano.com";
|
|
100
|
-
var
|
|
106
|
+
var AI_SCOPE = "xano:ai";
|
|
107
|
+
var DEFAULT_SCOPE = `offline_access workspace:read workspace:write xano:dev ${AI_SCOPE}`;
|
|
101
108
|
var DISCOVERY_PATH = "/.well-known/oauth-authorization-server";
|
|
102
109
|
var NETWORK_TIMEOUT_MS = 3e4;
|
|
103
110
|
function unreachableAuthHost(authHost, err) {
|
|
@@ -127,7 +134,8 @@ async function discover(authHost) {
|
|
|
127
134
|
return {
|
|
128
135
|
authorization_endpoint: doc.authorization_endpoint,
|
|
129
136
|
token_endpoint: doc.token_endpoint,
|
|
130
|
-
registration_endpoint: doc.registration_endpoint
|
|
137
|
+
registration_endpoint: doc.registration_endpoint,
|
|
138
|
+
...Array.isArray(doc.scopes_supported) ? { scopes_supported: doc.scopes_supported } : {}
|
|
131
139
|
};
|
|
132
140
|
}
|
|
133
141
|
async function registerClient(params) {
|
|
@@ -247,6 +255,16 @@ var OpenIdProvider = class {
|
|
|
247
255
|
resolvedClientId;
|
|
248
256
|
/** The issuer the resolved config discovered — set once `build()` completes. */
|
|
249
257
|
resolvedIssuer;
|
|
258
|
+
/** The scope set a registered client was registered for: the one asked for, less {@link AI_SCOPE}. */
|
|
259
|
+
resolvedScope;
|
|
260
|
+
/**
|
|
261
|
+
* The scope set the authorize request asks for: {@link OpenIdProviderOptions.scope},
|
|
262
|
+
* less {@link AI_SCOPE} on a server that does not advertise it. Final once the
|
|
263
|
+
* configuration has resolved.
|
|
264
|
+
*/
|
|
265
|
+
requestedScope() {
|
|
266
|
+
return this.resolvedScope ?? this.opts.scope;
|
|
267
|
+
}
|
|
250
268
|
redirectUri() {
|
|
251
269
|
if (!this.opts.redirectUri) {
|
|
252
270
|
throw new Error("OpenIdProvider: redirectUri is required for the authorize/exchange flow.");
|
|
@@ -282,18 +300,23 @@ var OpenIdProvider = class {
|
|
|
282
300
|
const options = server.protocol === "http:" ? { execute: [client.allowInsecureRequests] } : void 0;
|
|
283
301
|
let clientId = this.opts.clientId;
|
|
284
302
|
if (!clientId) {
|
|
285
|
-
const { registration_endpoint } = await discover(this.opts.authHost);
|
|
286
|
-
if (
|
|
303
|
+
const { registration_endpoint, scopes_supported } = await discover(this.opts.authHost);
|
|
304
|
+
if (scopes_supported?.includes(AI_SCOPE)) {
|
|
305
|
+
clientId = FIRST_PARTY_CLIENT_ID;
|
|
306
|
+
} else if (!registration_endpoint) {
|
|
287
307
|
throw new Error(
|
|
288
308
|
`The OAuth server at ${this.opts.authHost} does not advertise a registration endpoint, so xanosdk can't register its loopback client. Check --origin.`
|
|
289
309
|
);
|
|
310
|
+
} else {
|
|
311
|
+
const scope = this.opts.scope.split(/\s+/).filter((w) => w !== "" && w !== AI_SCOPE).join(" ");
|
|
312
|
+
({ client_id: clientId } = await getOrRegisterClient({
|
|
313
|
+
authHost: this.opts.authHost,
|
|
314
|
+
redirectUri: this.redirectUri(),
|
|
315
|
+
registrationEndpoint: registration_endpoint,
|
|
316
|
+
scope
|
|
317
|
+
}));
|
|
318
|
+
this.resolvedScope = scope;
|
|
290
319
|
}
|
|
291
|
-
clientId = await getOrRegisterClient({
|
|
292
|
-
authHost: this.opts.authHost,
|
|
293
|
-
redirectUri: this.redirectUri(),
|
|
294
|
-
registrationEndpoint: registration_endpoint,
|
|
295
|
-
scope: this.opts.scope
|
|
296
|
-
});
|
|
297
320
|
}
|
|
298
321
|
this.resolvedClientId = clientId;
|
|
299
322
|
const config = await client.discovery(
|
|
@@ -312,6 +335,7 @@ var OpenIdProvider = class {
|
|
|
312
335
|
async reset() {
|
|
313
336
|
this.configPromise = void 0;
|
|
314
337
|
this.resolvedClientId = void 0;
|
|
338
|
+
this.resolvedScope = void 0;
|
|
315
339
|
this.resolvedIssuer = void 0;
|
|
316
340
|
if (this.opts.redirectUri) {
|
|
317
341
|
clearClient({ authHost: this.opts.authHost, redirectUri: this.opts.redirectUri });
|
|
@@ -322,7 +346,7 @@ var OpenIdProvider = class {
|
|
|
322
346
|
const code_challenge = await client.calculatePKCECodeChallenge(verifier);
|
|
323
347
|
return client.buildAuthorizationUrl(config, {
|
|
324
348
|
redirect_uri: this.redirectUri(),
|
|
325
|
-
scope: this.
|
|
349
|
+
scope: this.requestedScope(),
|
|
326
350
|
code_challenge,
|
|
327
351
|
code_challenge_method: "S256",
|
|
328
352
|
state
|
|
@@ -356,7 +380,8 @@ function pick(t) {
|
|
|
356
380
|
access_token: t.access_token,
|
|
357
381
|
refresh_token: t.refresh_token,
|
|
358
382
|
expires_in: t.expires_in,
|
|
359
|
-
scope: t.scope
|
|
383
|
+
scope: t.scope,
|
|
384
|
+
...typeof t.ai_gateway_url === "string" && t.ai_gateway_url !== "" ? { ai_gateway_url: t.ai_gateway_url } : {}
|
|
360
385
|
};
|
|
361
386
|
}
|
|
362
387
|
|
|
@@ -804,7 +829,9 @@ function parseOAuth(record, path, profile) {
|
|
|
804
829
|
instance: record.instance,
|
|
805
830
|
workspace_id: requireWorkspaceId(record.workspace_id, at),
|
|
806
831
|
auth_host: record.auth_host,
|
|
807
|
-
client_id: record.client_id
|
|
832
|
+
client_id: record.client_id,
|
|
833
|
+
// Optional and display-only: a missing or malformed value leaves the key out.
|
|
834
|
+
...typeof record.ai_gateway_url === "string" && record.ai_gateway_url !== "" ? { ai_gateway_url: record.ai_gateway_url } : {}
|
|
808
835
|
};
|
|
809
836
|
}
|
|
810
837
|
function parseToken(record, path, profile) {
|
|
@@ -1171,6 +1198,7 @@ export {
|
|
|
1171
1198
|
CALLBACK_PATH,
|
|
1172
1199
|
DEFAULT_PORT,
|
|
1173
1200
|
DEFAULT_AUTH_HOST,
|
|
1201
|
+
AI_SCOPE,
|
|
1174
1202
|
decodeAudience,
|
|
1175
1203
|
decodeExpiry,
|
|
1176
1204
|
decodeIssuer,
|
|
@@ -1225,4 +1253,4 @@ export {
|
|
|
1225
1253
|
addGitignoreRule,
|
|
1226
1254
|
gitSaysIgnored
|
|
1227
1255
|
};
|
|
1228
|
-
//# sourceMappingURL=chunk-
|
|
1256
|
+
//# sourceMappingURL=chunk-OQMXCNN7.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
findBranch,
|
|
3
3
|
listBranches,
|
|
4
4
|
liveBranchLabel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C7KO5KKB.js";
|
|
6
6
|
import {
|
|
7
7
|
readLockFile,
|
|
8
8
|
recordSyncInLockFile,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
displayPath,
|
|
16
16
|
info,
|
|
17
17
|
warn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6534P3VH.js";
|
|
19
19
|
|
|
20
20
|
// src/emit/sync-record.ts
|
|
21
21
|
import { existsSync } from "fs";
|
|
@@ -64,4 +64,4 @@ export {
|
|
|
64
64
|
storedBranchLabel,
|
|
65
65
|
syncBranchLabel
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-OSMPI45P.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DEFAULT_PREFERENCES,
|
|
4
4
|
DEFAULT_SETTINGS,
|
|
5
5
|
LEGACY_REALTIME
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GUHJV7C5.js";
|
|
7
7
|
import {
|
|
8
8
|
identityNamesByGuid,
|
|
9
9
|
lockNameForObject,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
deepEqual,
|
|
18
18
|
normalize
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XDIPEWLU.js";
|
|
20
20
|
|
|
21
21
|
// src/codegen/omissions.ts
|
|
22
22
|
function omissionSeverity(reason) {
|
|
@@ -1087,4 +1087,4 @@ export {
|
|
|
1087
1087
|
canonicalRow,
|
|
1088
1088
|
compareToLive
|
|
1089
1089
|
};
|
|
1090
|
-
//# sourceMappingURL=chunk-
|
|
1090
|
+
//# sourceMappingURL=chunk-P3WIMLG2.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
contextFlags,
|
|
6
6
|
isCredentialStoreCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4DVP42ZC.js";
|
|
8
8
|
import {
|
|
9
9
|
shellQuote
|
|
10
10
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
pipedYes,
|
|
107
107
|
withheldNote
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-PC7XEO7F.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envExampleNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YRLSJBSY.js";
|
|
4
4
|
import {
|
|
5
5
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
6
6
|
renderWorkspaceEnvExample
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UN73LNM5.js";
|
|
8
8
|
import {
|
|
9
9
|
atomicWrite
|
|
10
10
|
} from "./chunk-LLNZGEFK.js";
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
refreshEnvExample,
|
|
55
55
|
bundleEnvNames
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-QBSSSKIC.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
profileSourceLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q4R2ABFL.js";
|
|
4
4
|
import {
|
|
5
5
|
readEnvVar
|
|
6
6
|
} from "./chunk-X2NL4KUO.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6534P3VH.js";
|
|
10
10
|
|
|
11
11
|
// src/util/last-credential.ts
|
|
12
12
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -650,4 +650,4 @@ export {
|
|
|
650
650
|
fetchReadOrExplain,
|
|
651
651
|
retryingFetch
|
|
652
652
|
};
|
|
653
|
-
//# sourceMappingURL=chunk-
|
|
653
|
+
//# sourceMappingURL=chunk-QZ2PC6B7.js.map
|
|
@@ -33,6 +33,18 @@ That is not an engine this SDK knows how to drive \u2014 the engine on this mach
|
|
|
33
33
|
function optionalString(raw, key, source) {
|
|
34
34
|
return raw[key] === void 0 ? void 0 : requireString(raw, key, source);
|
|
35
35
|
}
|
|
36
|
+
function optionalTime(raw, key, source) {
|
|
37
|
+
const text = optionalString(raw, key, source);
|
|
38
|
+
if (text === void 0) return void 0;
|
|
39
|
+
const at = Date.parse(text);
|
|
40
|
+
if (Number.isNaN(at)) {
|
|
41
|
+
throw new Error(
|
|
42
|
+
`${source} gave \`${key}\` as something other than a time.
|
|
43
|
+
That is not an engine this SDK knows how to drive \u2014 the engine on this machine is older or newer than the one it was built against. Move to a current one with \`xanosdk local update\`.`
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
return at;
|
|
47
|
+
}
|
|
36
48
|
function requireNumber(raw, key, source) {
|
|
37
49
|
const value = raw[key];
|
|
38
50
|
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
@@ -52,6 +64,7 @@ Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache cl
|
|
|
52
64
|
}
|
|
53
65
|
const raw = value;
|
|
54
66
|
const mcpUrl = optionalString(raw, "mcp_url", source);
|
|
67
|
+
const expiresAt = optionalTime(raw, "expires_at", source);
|
|
55
68
|
return {
|
|
56
69
|
name: requireString(raw, "name", source),
|
|
57
70
|
url: requireString(raw, "url", source),
|
|
@@ -61,7 +74,8 @@ Re-run, and if it happens again fetch a fresh copy with \`xanosdk local cache cl
|
|
|
61
74
|
signInUrl: requireString(raw, "sign_in_url", source),
|
|
62
75
|
loginLinkEndpoint: requireString(raw, "login_link_endpoint", source),
|
|
63
76
|
logPath: requireString(raw, "log", source),
|
|
64
|
-
...mcpUrl === void 0 ? {} : { mcpUrl }
|
|
77
|
+
...mcpUrl === void 0 ? {} : { mcpUrl },
|
|
78
|
+
...expiresAt === void 0 ? {} : { expiresAt }
|
|
65
79
|
};
|
|
66
80
|
}
|
|
67
81
|
var HANDSHAKE_SOURCE = "The engine's start handshake";
|
|
@@ -113,4 +127,4 @@ export {
|
|
|
113
127
|
parseEngineHandshake,
|
|
114
128
|
parseEngineListing
|
|
115
129
|
};
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
130
|
+
//# sourceMappingURL=chunk-RQGSZ7AR.js.map
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BRANCH_LABEL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C7KO5KKB.js";
|
|
4
4
|
import {
|
|
5
5
|
assertOneName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZCXWOGFL.js";
|
|
7
7
|
import {
|
|
8
8
|
LookupFailedError,
|
|
9
9
|
isUnansweredLookup,
|
|
10
10
|
lookupFailed,
|
|
11
11
|
unansweredCause
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LLG33KGY.js";
|
|
13
13
|
import {
|
|
14
14
|
findRelease
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JXX2QXPP.js";
|
|
16
16
|
import {
|
|
17
17
|
contextFlags
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4DVP42ZC.js";
|
|
19
19
|
import {
|
|
20
20
|
fetchOrExplain,
|
|
21
21
|
parseJsonAnswer,
|
|
22
22
|
safeHttpFailure
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QZ2PC6B7.js";
|
|
24
24
|
import {
|
|
25
25
|
UsageError,
|
|
26
26
|
safeText
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6534P3VH.js";
|
|
28
28
|
|
|
29
29
|
// src/deploy/audit-log.ts
|
|
30
30
|
var TIMEOUT_MS = 3e4;
|
|
@@ -215,4 +215,4 @@ export {
|
|
|
215
215
|
readUnanswered,
|
|
216
216
|
lookupRelease
|
|
217
217
|
};
|
|
218
|
-
//# sourceMappingURL=chunk-
|
|
218
|
+
//# sourceMappingURL=chunk-RSWPVU6X.js.map
|