@xano/sdk 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +5 -4
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-VOGTQ3JE.js → agent-file-refresh-YM5VRRHE.js} +9 -9
- package/dist/{agent-skill-command-LDT5JXIO.js → agent-skill-command-GVVCBAGF.js} +45 -45
- package/dist/{answer-shape-UMQRXMCX.js → answer-shape-CBUQRSXI.js} +4 -4
- package/dist/{backend-dir-UNUO7TNL.js → backend-dir-NZOLU7TL.js} +9 -9
- package/dist/{backend-slot-TTRNOQF5.js → backend-slot-X5AUX2TT.js} +3 -3
- package/dist/bin.js +46 -46
- package/dist/{branch-Q7CDJRU6.js → branch-YS2K3VOB.js} +8 -8
- package/dist/{branch-commands-IJ7SK5AM.js → branch-commands-Q46PCVHU.js} +30 -30
- package/dist/bundle.d.ts +2 -2
- package/dist/bundle.js +5 -5
- package/dist/{chunk-4JKXGPXB.js → chunk-2BHYGUTI.js} +2 -2
- package/dist/{chunk-KCCZGDQG.js → chunk-2K2G5TSR.js} +3 -3
- package/dist/{chunk-ECGRCTVI.js → chunk-2PAVJ3QD.js} +7 -7
- package/dist/{chunk-6NXIRULE.js → chunk-2RDZDDPR.js} +28 -28
- package/dist/{chunk-VHV25AAO.js → chunk-373AVIL2.js} +7 -7
- package/dist/{chunk-YP76ZCQ5.js → chunk-3RZ4UJWV.js} +3 -3
- package/dist/{chunk-JSPFDMTV.js → chunk-3XZ44H2E.js} +3 -3
- package/dist/{chunk-TG65NWUR.js → chunk-3ZVSOZZC.js} +2 -2
- package/dist/{chunk-FZGK4VM5.js → chunk-4COXXP55.js} +4 -4
- package/dist/{chunk-76UAME77.js → chunk-4CS4DKQC.js} +2 -2
- package/dist/{chunk-GDAWYDHY.js → chunk-4GSXWOBS.js} +3 -3
- package/dist/{chunk-XUSL2Z5C.js → chunk-5RSPMSSQ.js} +4 -4
- package/dist/{chunk-HDKSHL4Z.js → chunk-5SZSLAAC.js} +3 -3
- package/dist/{chunk-NIANORYB.js → chunk-6IOBEJWA.js} +4 -4
- package/dist/{chunk-OHTHG3LL.js → chunk-6LECAG3Y.js} +4 -4
- package/dist/{chunk-VJTTTIIB.js → chunk-6QJORUHC.js} +2 -2
- package/dist/{chunk-3TWQDGQY.js → chunk-74NRFGL7.js} +5 -5
- package/dist/{chunk-7KPKDHHI.js → chunk-76SBT7KS.js} +2 -2
- package/dist/{chunk-YE7MHW45.js → chunk-7NNLRNXE.js} +4 -4
- package/dist/{chunk-2ND7WS3E.js → chunk-7XOQXZ6W.js} +7 -7
- package/dist/{chunk-6S263KTM.js → chunk-A3CT26GX.js} +2 -2
- package/dist/{chunk-45A3AF2B.js → chunk-AMHAGMJM.js} +109 -123
- package/dist/{chunk-CTKBGPM6.js → chunk-ANBIMJPM.js} +8 -8
- package/dist/{chunk-ULUUOUQX.js → chunk-AUYXBKGR.js} +2 -2
- package/dist/{chunk-BEXZ4XRV.js → chunk-AXNX4NWN.js} +2 -2
- package/dist/{chunk-QTMXJQZN.js → chunk-BXVNRUDB.js} +3 -3
- package/dist/{chunk-6PTITS3M.js → chunk-C4TZP5PQ.js} +5 -5
- package/dist/{chunk-Z52FKP34.js → chunk-CPFWVB3V.js} +13 -13
- package/dist/{chunk-HFOGQIII.js → chunk-CTUIMNEM.js} +2 -2
- package/dist/{chunk-C6KBZH7M.js → chunk-D4VKPOD4.js} +2 -2
- package/dist/{chunk-HVPSDQJB.js → chunk-DB7P2SSK.js} +3 -3
- package/dist/{chunk-GN5SQMIQ.js → chunk-DFCYAEBE.js} +2 -2
- package/dist/{chunk-DW47JVXI.js → chunk-DH32QXVI.js} +42 -42
- package/dist/{chunk-TR7EOUQE.js → chunk-DILYWJVP.js} +2 -2
- package/dist/{chunk-ZO3QWFNV.js → chunk-DYGRTWAI.js} +3 -3
- package/dist/{chunk-VD7YTLWL.js → chunk-DZUNF7IH.js} +2 -2
- package/dist/{chunk-BYYVOX2P.js → chunk-EC5P4W2D.js} +40 -40
- package/dist/{chunk-DY3EJWWH.js → chunk-EGEANMMK.js} +2 -2
- package/dist/{chunk-436AOVZS.js → chunk-EMAFZROF.js} +8 -8
- package/dist/{chunk-5DLDRUCQ.js → chunk-ETMP7SJ3.js} +6 -6
- package/dist/{chunk-ETAZIGNT.js → chunk-F2NFNYCB.js} +2 -2
- package/dist/{chunk-QXOBZSQD.js → chunk-FLDFKG24.js} +4 -4
- package/dist/{chunk-PPI647YF.js → chunk-G3A3XKCS.js} +49 -49
- package/dist/{chunk-QL3ZJWGG.js → chunk-H5FAYLCR.js} +2 -2
- package/dist/{chunk-7JKNWDYN.js → chunk-H7GMGZHI.js} +2 -2
- package/dist/{chunk-TWBENPZR.js → chunk-HA5Y645X.js} +22 -22
- package/dist/{chunk-3IFRZXHN.js → chunk-HJSAGGHU.js} +3 -3
- package/dist/{chunk-4XHAT7C5.js → chunk-HJZUI2ZU.js} +2 -2
- package/dist/{chunk-DSD2NNTX.js → chunk-HUEFVPYW.js} +2 -2
- package/dist/{chunk-5QOV52V4.js → chunk-I2AVVARA.js} +2 -2
- package/dist/{chunk-3P35HT64.js → chunk-IDOVZLPK.js} +2 -2
- package/dist/{chunk-6NEV2PEC.js → chunk-IEDQT4Z3.js} +6 -6
- package/dist/{chunk-6JAEMMZ7.js → chunk-IFXPHVPY.js} +3 -3
- package/dist/{chunk-6YOH2L3G.js → chunk-JFPLHK6Y.js} +3 -3
- package/dist/{chunk-I53OTC3O.js → chunk-JHQAVWHW.js} +3 -3
- package/dist/{chunk-B3NH5UBI.js → chunk-JKGRQW6D.js} +4 -4
- package/dist/{chunk-IW6E3LES.js → chunk-JPAUQ7MK.js} +3 -3
- package/dist/{chunk-XQO4A4Q4.js → chunk-K6BQPFRS.js} +3 -3
- package/dist/{chunk-6ZFJEJXZ.js → chunk-KICERNAP.js} +5 -5
- package/dist/{chunk-IIAF7VKN.js → chunk-LDSZPRGV.js} +4 -4
- package/dist/{chunk-NFSUGVDY.js → chunk-M7DIIJPW.js} +4 -4
- package/dist/{chunk-77IFWJ53.js → chunk-MFEO3EHL.js} +3 -3
- package/dist/{chunk-C2GHFADU.js → chunk-N3XSXGAL.js} +2 -2
- package/dist/{chunk-6BOKCTCM.js → chunk-NZ7ML6LG.js} +4 -4
- package/dist/{chunk-S42TFTM5.js → chunk-OBRMA2VK.js} +3 -3
- package/dist/{chunk-3UZQ5TMG.js → chunk-OCNTMJSY.js} +3 -3
- package/dist/{chunk-KSGITXNE.js → chunk-OK7CBTFW.js} +6 -6
- package/dist/{chunk-3TTR4BHW.js → chunk-OKR66IGL.js} +7 -7
- package/dist/{chunk-T3ZVNOJC.js → chunk-ONNSFD73.js} +10 -10
- package/dist/{chunk-IB6SKACE.js → chunk-P5JF3U65.js} +4 -4
- package/dist/{chunk-HMFEWTI7.js → chunk-PBIV4DE2.js} +68 -68
- package/dist/{chunk-75MKIQON.js → chunk-PCHIHVX6.js} +4 -4
- package/dist/{chunk-PBK257CI.js → chunk-POZ6V4MU.js} +2 -2
- package/dist/{chunk-QC3MKMDK.js → chunk-R7XZW4SB.js} +2 -2
- package/dist/{chunk-V5RXO5AK.js → chunk-RFB4EXM5.js} +8 -8
- package/dist/{chunk-JE7BL5IF.js → chunk-RNVGXJJZ.js} +13 -13
- package/dist/{chunk-OBJ7FQDX.js → chunk-RZABQ4YH.js} +2 -2
- package/dist/{chunk-U4JD5NMP.js → chunk-SAKWZG5I.js} +6 -6
- package/dist/{chunk-DHU3EGGF.js → chunk-SAYHY2N3.js} +8 -8
- package/dist/{chunk-EOIJ7MVW.js → chunk-T3HNISBN.js} +3 -3
- package/dist/{chunk-KA3JN4SH.js → chunk-TOW4EJON.js} +5 -5
- package/dist/{chunk-O376UAZS.js → chunk-U4DSFCH5.js} +164 -10
- package/dist/{chunk-THGELNPV.js → chunk-U5CTYBAN.js} +7 -7
- package/dist/{chunk-R4NOZBOY.js → chunk-UFFIU57H.js} +4 -4
- package/dist/{chunk-FDZ2ANSS.js → chunk-UZ55F3UK.js} +4 -4
- package/dist/{chunk-R3LANPQZ.js → chunk-VA4JK4TW.js} +3 -3
- package/dist/{chunk-S56YBYMN.js → chunk-VIRFG3WG.js} +2 -2
- package/dist/{chunk-LTPF25L2.js → chunk-W2QFR3ZJ.js} +2 -2
- package/dist/{chunk-HTP2CLRQ.js → chunk-W5MKVFBQ.js} +5 -5
- package/dist/{chunk-6BIOLAJ4.js → chunk-WQNN6WLB.js} +14 -14
- package/dist/{chunk-HU6D6PYT.js → chunk-WXLZCBPG.js} +14 -14
- package/dist/{chunk-EKTIGGFO.js → chunk-WZXEQUIM.js} +4 -4
- package/dist/{chunk-HQPL34O6.js → chunk-XFQAA2SU.js} +2 -2
- package/dist/{chunk-H3ZBAR2L.js → chunk-XM56DAM7.js} +8 -8
- package/dist/{chunk-PFW7WFAT.js → chunk-XVOODRNK.js} +4 -4
- package/dist/{chunk-7MPI7NIW.js → chunk-YJK4NPXC.js} +3 -3
- package/dist/{chunk-UVF45BVU.js → chunk-Z6N5N4MN.js} +1 -1
- package/dist/cli.d.ts +3 -3
- package/dist/cli.js +44 -44
- package/dist/{codegen-command-A7M5JLLY.js → codegen-command-H3HO7UFA.js} +64 -64
- package/dist/codegen.d.ts +3 -3
- package/dist/{commands-FOHIPDKZ.js → commands-IFRAGWGK.js} +2 -2
- package/dist/{completion-XUBGMKGV.js → completion-RTXCODHS.js} +2 -2
- package/dist/{config-544VCRKP.js → config-EHFXNFSP.js} +3 -3
- package/dist/{deploy-command-RP7Q4XBE.js → deploy-command-7PWQJ4VV.js} +51 -51
- package/dist/{deploy-source-ITSAHJW7.js → deploy-source-CJHEVGOS.js} +25 -25
- package/dist/{dev-env-sync-SN6TL22O.js → dev-env-sync-VVLYQUPR.js} +45 -45
- package/dist/{display-name-hint-EZQK2PDU.js → display-name-hint-BKPMISQU.js} +10 -10
- package/dist/{emit-D-a6JznN.d.ts → emit-YLt3GfsZ.d.ts} +3 -3
- package/dist/env-example-refresh-GLFC2FTE.js +134 -0
- package/dist/{env-pull-command-6KEESNVU.js → env-pull-command-OY3SXNJC.js} +42 -42
- package/dist/{env-target-HOGLLJN5.js → env-target-PDDDAA5I.js} +9 -9
- package/dist/{env-var-command-VOAINMHX.js → env-var-command-UTYDJN24.js} +35 -35
- package/dist/{ephemeral-H24NF6WP.js → ephemeral-CART6DIR.js} +8 -8
- package/dist/{ephemeral-command-I7VPCBVQ.js → ephemeral-command-ALIHUF7G.js} +43 -43
- package/dist/{ephemeral-state-YLZQIOBF.js → ephemeral-state-HPKSKC4Y.js} +7 -7
- package/dist/{generate-command-G7EJ7GW4.js → generate-command-S37XFYPD.js} +69 -69
- package/dist/{gitignore-WFZ2BTMS.js → gitignore-DKDWGWPS.js} +13 -13
- package/dist/{guards-4VPSEOAI.js → guards-RU4C7TFG.js} +5 -5
- package/dist/{impersonate-command-ZJDK7ZYO.js → impersonate-command-HPCSKJAV.js} +31 -31
- package/dist/{import-TXYVFYJS.js → import-RUBCGLCA.js} +4 -4
- package/dist/index.d.ts +8 -8
- package/dist/index.js +14 -14
- package/dist/{init-command-CTWDNYAZ.js → init-command-RWXBXJPG.js} +49 -49
- package/dist/{init-modules-FJITJ6IB.js → init-modules-LFLW2PQC.js} +7 -7
- package/dist/{init-web-MSXDARRF.js → init-web-OGKACAOC.js} +2 -2
- package/dist/internal.d.ts +6 -6
- package/dist/internal.js +28 -17
- package/dist/{keep-data-merge-KLNLVBYK.js → keep-data-merge-7JGGZKDM.js} +28 -28
- package/dist/{landing-record-ZB4OJQF2.js → landing-record-QJV7KNS4.js} +15 -15
- package/dist/{live-diff-CGTGOH3S.js → live-diff-HARRGFV4.js} +8 -8
- package/dist/{local-engine-choice-FO7LABXX.js → local-engine-choice-NNSHE5FO.js} +28 -28
- package/dist/{local-engine-command-LI7HUH5Y.js → local-engine-command-UGIZ4UO6.js} +33 -33
- package/dist/{local-engine-deploy-ID4JJXB5.js → local-engine-deploy-ZZVHBI2X.js} +11 -11
- package/dist/{local-engine-lookup-IC7BKAYP.js → local-engine-lookup-QFRKO35F.js} +2 -2
- package/dist/{local-engine-mcp-bridge-3SOJMZ5T.js → local-engine-mcp-bridge-T2EFRRAF.js} +4 -4
- package/dist/{local-engine-mcp-command-EVYRLPE7.js → local-engine-mcp-command-YUSZC7MF.js} +35 -35
- package/dist/{local-engine-process-HG5BGG3F.js → local-engine-process-XH35DURU.js} +6 -6
- package/dist/{local-engine-update-check-SKZR7YSC.js → local-engine-update-check-HAXE7BVG.js} +4 -4
- package/dist/{lock-commands-I4RARW5F.js → lock-commands-VT4R2DEE.js} +49 -49
- package/dist/{login-command-MJT5CCXL.js → login-command-4D3KPQUY.js} +21 -21
- package/dist/{logout-command-GSQ2R3XL.js → logout-command-ALKHCJKS.js} +12 -12
- package/dist/{loop-XFDS65OD.js → loop-QHZD37KX.js} +8 -8
- package/dist/{marketplace-command-GK4F5ZZ2.js → marketplace-command-64TE2NGV.js} +28 -28
- package/dist/{marketplace-resolve-PWEYJ2XS.js → marketplace-resolve-HPCRNV5O.js} +5 -5
- package/dist/{meta-client-2A7LYGUQ.js → meta-client-7MLLUZB4.js} +10 -10
- package/dist/{module-manifest-KY7J63HG.js → module-manifest-EFE6JBZW.js} +3 -3
- package/dist/node.d.ts +7 -7
- package/dist/node.js +51 -51
- package/dist/{operation-outcome-UK5ALWRE.js → operation-outcome-TYAOVNOM.js} +19 -19
- package/dist/{output-target-GFPSLLEJ.js → output-target-63ECBUX2.js} +14 -14
- package/dist/{plan-disclosure-GNLDYV2A.js → plan-disclosure-WEMB5ZJ2.js} +21 -21
- package/dist/{plugin-contributions-PAGG6SUP.js → plugin-contributions-U5PAZKBE.js} +4 -4
- package/dist/{plugin-prompt-2MX6LF6X.js → plugin-prompt-O5PAMV5B.js} +4 -4
- package/dist/{plugin-questions-AP6VUTOB.js → plugin-questions-ZVYNKDRB.js} +3 -3
- package/dist/{preflight-command-LP5D6UOD.js → preflight-command-OUVAX5IJ.js} +56 -56
- package/dist/{profile-command-R7XLNTY6.js → profile-command-NUO5U2HQ.js} +22 -22
- package/dist/{profile-pointer-4HJQH5ZR.js → profile-pointer-VTOZDBHM.js} +3 -3
- package/dist/{project-dependency-ORX45I74.js → project-dependency-EZNTHMWI.js} +6 -6
- package/dist/{project-sdk-IYMFVQRC.js → project-sdk-ZGJM4WYQ.js} +3 -3
- package/dist/promote-command-MGLAYQDY.js +147 -0
- package/dist/{prompt-ZZUYWFQX.js → prompt-F7UVH4GP.js} +3 -3
- package/dist/{publish-command-WTVINN5E.js → publish-command-KVGNFBSU.js} +54 -54
- package/dist/{pull-command-KFHHW2BA.js → pull-command-OVXIMVUB.js} +67 -67
- package/dist/{pull-superseded-UZ3MB53B.js → pull-superseded-77UZ7CHH.js} +3 -3
- package/dist/{raw-where-ZMLND6AG.d.ts → raw-where-gWGr-E4t.d.ts} +1 -1
- package/dist/{release-command-QUKHOKIY.js → release-command-E54WUJKB.js} +62 -62
- package/dist/{release-ns-command-T4R3VODA.js → release-ns-command-SLRL3O3W.js} +78 -78
- package/dist/{retry-command-VZYLYDVX.js → retry-command-S5QALD5Z.js} +7 -7
- package/dist/{routes-manifest-RIZGSOZC.js → routes-manifest-ET2TTSCL.js} +17 -7
- package/dist/{routes-manifest-file-QFPNFJMZ.js → routes-manifest-file-IX4TOZCO.js} +10 -10
- package/dist/{secrets-file-J4KFYNFP.js → secrets-file-4NQWGCJG.js} +13 -13
- package/dist/{secrets-fill-command-YIU6ESFN.js → secrets-fill-command-5NNHSYFX.js} +48 -48
- package/dist/{seed-KEPIS7UZ.js → seed-5YLQRT2D.js} +3 -3
- package/dist/{source-resolve-WHXNMVJT.js → source-resolve-HSJSVKUC.js} +17 -17
- package/dist/{static-host-JAOT3N3E.js → static-host-TQP3FXPI.js} +4 -4
- package/dist/{status-command-DIDOS3JC.js → status-command-UFIMW7SZ.js} +32 -32
- package/dist/{store-xUySg-KR.d.ts → store-BM7SQcUt.d.ts} +3 -3
- package/dist/{store-YFNDD6GZ.js → store-ZE5BXCOW.js} +5 -5
- package/dist/{sync-baseline-3CDL4PKT.js → sync-baseline-JGAAOS25.js} +10 -10
- package/dist/{sync-contributions-VAGROOWY.js → sync-contributions-35ZAYBUH.js} +8 -8
- package/dist/{sync-record-U65BCPSP.js → sync-record-ILWS44DG.js} +9 -9
- package/dist/{table-E5YTK7QX.js → table-V3LTQUY6.js} +5 -5
- package/dist/{tables-command-UJLYYMME.js → tables-command-TISOU6DR.js} +30 -30
- package/dist/{tenant-DAXJ4P4D.js → tenant-7WUS7Q6V.js} +9 -9
- package/dist/{tenant-command-NGKJD3AX.js → tenant-command-ITCPN43T.js} +84 -84
- package/dist/{test-command-JOPQCHJA.js → test-command-7SFAJ6HX.js} +30 -30
- package/dist/{tests-CLDZWLKF.js → tests-ENFUACKD.js} +5 -5
- package/dist/{token-NJ5XPGGM.js → token-OXGOA6WE.js} +8 -8
- package/dist/{toolchain-hooks-3ZAAAWPL.js → toolchain-hooks-QIFGPGH2.js} +9 -9
- package/dist/{toolchain-modules-4KS3SSJW.js → toolchain-modules-Q3Z6APPF.js} +4 -4
- package/dist/{toolchain-peers-AIKWKJH7.js → toolchain-peers-K44IINPG.js} +7 -7
- package/dist/{tracked-backend-3U4T6ZA7.js → tracked-backend-IYTIZZYV.js} +28 -28
- package/dist/{update-check-5KCA4TE6.js → update-check-LSCQRDRR.js} +47 -47
- package/dist/{upgrade-command-MNP6G752.js → upgrade-command-RQEQJO5Y.js} +49 -49
- package/dist/{whoami-command-E5CSF3E6.js → whoami-command-NT3FVBZM.js} +11 -11
- package/dist/{workspace-WZMBLK4P.js → workspace-5RHOJC7K.js} +4 -4
- package/dist/{workspace-binding-JT4EK4HU.js → workspace-binding-YUU6KB53.js} +10 -10
- package/dist/{workspace-command-Z7BUA6A5.js → workspace-command-QSJHX5RS.js} +80 -80
- package/dist/{workspace-env-KFWW2G7G.js → workspace-env-M7RYVJB3.js} +10 -10
- package/dist/{workspace-export-UHY22VBI.js → workspace-export-GHMUSX2P.js} +4 -4
- package/dist/{writable-2A6MBSFD.js → writable-Y6CE2CGK.js} +3 -3
- package/dist/{xano-6T6L7TTI.js → xano-2A2GT7EH.js} +7 -7
- package/dist/{xanosdk-import-FUS3ZGGQ.js → xanosdk-import-4TLNYFKC.js} +5 -5
- package/dist/{xanosdk-project-NM2J5YFK.js → xanosdk-project-4NH6332J.js} +11 -11
- package/dist/{xdo-CxDr2Q1C.d.ts → xdo-D4OwfF2J.d.ts} +10 -4
- package/guides/cli.md +1 -1
- package/guides/codes.md +2 -1
- package/guides/typed-frontend.md +14 -0
- package/llms/client.md +2 -1
- package/llms/errors.md +2 -0
- package/llms/filters.md +2 -1
- package/llms/kinds-agent-mcp.md +2 -0
- package/llms/values.md +1 -1
- package/llms-full.txt +10 -4
- package/llms.txt +1 -1
- package/manifest.json +3 -3
- package/package.json +1 -1
- package/skills/xano-backend/SKILL.md +2 -2
- package/dist/env-example-refresh-USAGYVJ2.js +0 -134
- package/dist/promote-command-TEVVCM77.js +0 -147
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
installedCliAt,
|
|
10
10
|
pathsShownFrom
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D4VKPOD4.js";
|
|
12
12
|
|
|
13
13
|
// src/emit/project-sdk.ts
|
|
14
14
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
installedCliCommand,
|
|
88
88
|
skewNote
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-RZABQ4YH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addDependency,
|
|
3
3
|
removeDependency
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JKGRQW6D.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-C4TZP5PQ.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-H5FAYLCR.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-D4VKPOD4.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-Q3Z6APPF.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-SAKWZG5I.js.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BranchHttpError,
|
|
3
3
|
BranchTakenError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PCHIHVX6.js";
|
|
5
5
|
import {
|
|
6
6
|
SourceError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WXLZCBPG.js";
|
|
8
8
|
import {
|
|
9
9
|
ReleaseHttpError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H7GMGZHI.js";
|
|
11
11
|
import {
|
|
12
12
|
ImportHttpError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6QJORUHC.js";
|
|
14
14
|
import {
|
|
15
15
|
TenantHttpError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7NNLRNXE.js";
|
|
17
17
|
import {
|
|
18
18
|
TLS_CERTIFICATE_CODES,
|
|
19
19
|
isTimeoutError,
|
|
20
20
|
writeRefusedBy
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DILYWJVP.js";
|
|
22
22
|
import {
|
|
23
23
|
UsageError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-D4VKPOD4.js";
|
|
25
25
|
|
|
26
26
|
// src/emit/operation-outcome.ts
|
|
27
27
|
var SettledWriteFailure = class extends Error {
|
|
@@ -82,4 +82,4 @@ export {
|
|
|
82
82
|
SettledWriteFailure,
|
|
83
83
|
classifyFailure
|
|
84
84
|
};
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
85
|
+
//# sourceMappingURL=chunk-SAYHY2N3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AXNX4NWN.js";
|
|
4
4
|
import {
|
|
5
5
|
brandDef
|
|
6
6
|
} from "./chunk-ERVIASGL.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-WTPZRR4I.js";
|
|
10
10
|
import {
|
|
11
11
|
c
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z6N5N4MN.js";
|
|
13
13
|
|
|
14
14
|
// src/function/define.ts
|
|
15
15
|
function defineFunction(def) {
|
|
@@ -424,4 +424,4 @@ export {
|
|
|
424
424
|
qf,
|
|
425
425
|
every
|
|
426
426
|
};
|
|
427
|
-
//# sourceMappingURL=chunk-
|
|
427
|
+
//# sourceMappingURL=chunk-T3HNISBN.js.map
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
ephemeralLandedOn,
|
|
10
10
|
ephemeralStatePath,
|
|
11
11
|
recordEphemeralLanding
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OBRMA2VK.js";
|
|
13
13
|
import {
|
|
14
14
|
contextFlags
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-A3CT26GX.js";
|
|
16
16
|
import {
|
|
17
17
|
backendDirIn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MFEO3EHL.js";
|
|
19
19
|
import {
|
|
20
20
|
destinationKey,
|
|
21
21
|
isEphemeralDestinationKey,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
displayPath,
|
|
29
29
|
info,
|
|
30
30
|
warn
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-D4VKPOD4.js";
|
|
32
32
|
import {
|
|
33
33
|
displayLockKey
|
|
34
34
|
} from "./chunk-5KJBWIDZ.js";
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
holdsLanding,
|
|
261
261
|
forgetLanding
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-TOW4EJON.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
parsePathParams,
|
|
6
6
|
pathSegment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6LECAG3Y.js";
|
|
8
8
|
import {
|
|
9
9
|
linkedTableOf,
|
|
10
10
|
tableRefOf
|
|
@@ -386,7 +386,7 @@ export type ChannelName = keyof typeof CHANNELS;
|
|
|
386
386
|
${ambiguousOverloads}${overloadsFor("channelPath", channels.map((c) => ({ name: c.key, params: c.params })))}
|
|
387
387
|
${realtimeImplementation(ambiguousKeys.length > 0)}`;
|
|
388
388
|
}
|
|
389
|
-
function renderRouteManifest(routes, realtime, inputs = NO_ROUTE_INPUTS) {
|
|
389
|
+
function renderRouteManifest(routes, realtime, inputs = NO_ROUTE_INPUTS, mcp = []) {
|
|
390
390
|
const ambiguous = /* @__PURE__ */ new Map();
|
|
391
391
|
const seen = /* @__PURE__ */ new Map();
|
|
392
392
|
const rows2 = keyRoutes(routes).map(({ route, key, short, group }) => {
|
|
@@ -431,7 +431,7 @@ export type RouteName = keyof typeof ROUTES;
|
|
|
431
431
|
${rows2.length > 1 ? MANY_ROUTES : ""}
|
|
432
432
|
${rows2.length > 1 ? UNION_OVERLOAD : ""}${ambiguousOverloads ? `${ambiguousOverloads}
|
|
433
433
|
` : ""}${overloadsFor("routePath", rows2.map((r) => ({ name: r.key, params: r.params })))}
|
|
434
|
-
${implementation(ambiguousKeys.length > 0)}${realtimeSection}${renderRouteInputTypes(inputs)}`;
|
|
434
|
+
${implementation(ambiguousKeys.length > 0)}${realtimeSection}${mcp.length > 0 ? renderMcp(mcp) : ""}${renderRouteInputTypes(inputs)}`;
|
|
435
435
|
}
|
|
436
436
|
var UNION_OVERLOAD = `/** A union of route names (e.g. a \`key: RouteName\` parameter): params checked at runtime. */
|
|
437
437
|
export function routePath<N extends RouteName>(name: ManyRoutes<N>, params?: Record<string, string | number>): string;
|
|
@@ -446,10 +446,10 @@ var MANIFEST_HEADER = `/**
|
|
|
446
446
|
* Plain data plus one interpolator, and the request input types of every
|
|
447
447
|
* endpoint, channel and message. The core sections import nothing; the only
|
|
448
448
|
* imports are the packages an installed module's block declares, never the
|
|
449
|
-
* SDK itself. So a frontend gets the typed path/verb (and
|
|
449
|
+
* SDK itself. So a frontend gets the typed path/verb (socket and MCP) contract
|
|
450
450
|
* without pulling the SDK runtime into its bundle. Regenerate after changing an
|
|
451
|
-
* endpoint's name, verb, api group or inputs,
|
|
452
|
-
* or message's name or inputs.
|
|
451
|
+
* endpoint's name, verb, api group or inputs, a realtime server's, channel's
|
|
452
|
+
* or message's name or inputs, or an MCP server's name.
|
|
453
453
|
*/
|
|
454
454
|
`;
|
|
455
455
|
var FILL_PARAMS = `
|
|
@@ -652,6 +652,101 @@ export function socketUrl(
|
|
|
652
652
|
return \`\${origin}\${socketPath(server, { tenant })}\`;
|
|
653
653
|
}
|
|
654
654
|
`;
|
|
655
|
+
var MCP_IMPLEMENTATION = `
|
|
656
|
+
/** Reject a tenant name that would smuggle extra path segments into the MCP path. */
|
|
657
|
+
function assertMcpTenant(tenant: string): string {
|
|
658
|
+
if (!/^[A-Za-z0-9-]+$/.test(tenant)) {
|
|
659
|
+
throw new Error(
|
|
660
|
+
\`mcpUrl: invalid \\\`tenant\\\` \${JSON.stringify(tenant)} \u2014 a tenant name is alphanumeric with dashes \` +
|
|
661
|
+
\`(e.g. "xxxx-xxxx-xxxx"). It rides as its own "/tenant/<name>" path pair, so "/" cannot appear in it.\`,
|
|
662
|
+
);
|
|
663
|
+
}
|
|
664
|
+
return tenant;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* The Streamable-HTTP endpoint PATH \u2014 \`/x2/mcp/<canonical>/<token>/stream\`, or
|
|
669
|
+
* \`/x2/mcp/tenant/<tenant>/<canonical>/<token>/stream\`. \`token\` defaults to
|
|
670
|
+
* "mcp": no URL token, so the client authenticates with an \`Authorization\` header.
|
|
671
|
+
*/
|
|
672
|
+
export function mcpPath(
|
|
673
|
+
server: McpServerName,
|
|
674
|
+
opts?: { tenant?: string | undefined; token?: string | undefined },
|
|
675
|
+
): string {
|
|
676
|
+
const entry = own(MCP_SERVERS as Record<string, { canonical: string }>, server);
|
|
677
|
+
if (!entry) throw new Error(\`mcpPath: unknown MCP server "\${String(server)}".\`);
|
|
678
|
+
const tenant = opts?.tenant ? \`tenant/\${assertMcpTenant(opts.tenant)}/\` : "";
|
|
679
|
+
return \`/x2/mcp/\${tenant}\${entry.canonical}/\${opts?.token || "mcp"}/stream\`;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* The absolute endpoint URL \u2014 \`baseUrl\` + {@link mcpPath}. A \`/tenant/<name>\`
|
|
684
|
+
* on the base URL is lifted to after \`/x2/mcp\`, where the endpoint registers it,
|
|
685
|
+
* so \`mcpUrl(name, window.XANO_HOST)\` is right as-is.
|
|
686
|
+
*
|
|
687
|
+
* Give it to an MCP client or show it to a user. The endpoint refuses any
|
|
688
|
+
* request carrying a browser \`Origin\` (403 "Forbidden: Origin not allowed"), so
|
|
689
|
+
* page JS cannot call it directly.
|
|
690
|
+
*/
|
|
691
|
+
export function mcpUrl(
|
|
692
|
+
server: McpServerName,
|
|
693
|
+
baseUrl: string,
|
|
694
|
+
opts?: { tenant?: string | undefined; token?: string | undefined },
|
|
695
|
+
): string {
|
|
696
|
+
if (!own(MCP_SERVERS as Record<string, unknown>, server)) {
|
|
697
|
+
throw new Error(\`mcpUrl: unknown MCP server "\${String(server)}".\`);
|
|
698
|
+
}
|
|
699
|
+
const base = (baseUrl ?? "").trim().replace(/\\/+$/, "");
|
|
700
|
+
if (!base) throw new Error('mcpUrl: needs a base URL (e.g. "https://x.dev.xano.io").');
|
|
701
|
+
// A base URL ending in an MCP endpoint path is this function's own output fed
|
|
702
|
+
// back in. The token segment can be a credential, so it is redacted.
|
|
703
|
+
const resolved = /(\\/x2\\/mcp\\/(?:tenant\\/[^/]+\\/)?[^/]+\\/)[^/]+(\\/stream)$/i;
|
|
704
|
+
if (resolved.test(base)) {
|
|
705
|
+
throw new Error(
|
|
706
|
+
\`mcpUrl: \\\`baseUrl\\\` already carries an MCP endpoint path (\${base.replace(resolved, "$1<token>$2")}). \` +
|
|
707
|
+
"Pass the INSTANCE base URL, not the result of a previous mcpUrl()/getUrl() \u2014 resolving twice " +
|
|
708
|
+
'appends a second "/x2/mcp/<canonical>/<token>/stream".',
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
// A tenant base URL names its tenant in a slot the MCP endpoint does not
|
|
712
|
+
// register; translate rather than concatenate, which 404s.
|
|
713
|
+
const lifted = /^((?:https?:\\/\\/)?[^/]+)\\/tenant\\/([^/]+)(\\/.*)?$/i.exec(base);
|
|
714
|
+
let origin = base;
|
|
715
|
+
let tenant = opts?.tenant;
|
|
716
|
+
if (lifted) {
|
|
717
|
+
const fromBase = lifted[2]!;
|
|
718
|
+
if (tenant !== undefined && tenant !== fromBase) {
|
|
719
|
+
throw new Error(
|
|
720
|
+
\`mcpUrl: given tenant \${JSON.stringify(tenant)} but the base URL names \` +
|
|
721
|
+
\`\${JSON.stringify(fromBase)} (".../tenant/\${fromBase}"). Refusing to guess which one you \` +
|
|
722
|
+
'meant \u2014 pass the matching tenant, or a base URL without the "/tenant/<name>" prefix.',
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
origin = \`\${lifted[1]!}\${lifted[3] ?? ""}\`;
|
|
726
|
+
tenant = assertMcpTenant(fromBase);
|
|
727
|
+
}
|
|
728
|
+
return \`\${origin}\${mcpPath(server, { tenant, token: opts?.token })}\`;
|
|
729
|
+
}
|
|
730
|
+
`;
|
|
731
|
+
function renderMcp(servers) {
|
|
732
|
+
const seen = /* @__PURE__ */ new Set();
|
|
733
|
+
for (const server of servers) {
|
|
734
|
+
if (seen.has(server.name)) {
|
|
735
|
+
throw new RouteManifestError(
|
|
736
|
+
`Two MCP servers are both named "${server.name}". The manifest keys on the server name, so the names must be unique. Rename one.`
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
seen.add(server.name);
|
|
740
|
+
}
|
|
741
|
+
const rows2 = servers.map((s) => ` ${literal(s.name)}: { canonical: ${literal(s.canonical)} },`);
|
|
742
|
+
return `
|
|
743
|
+
/** Every MCP server in this workspace, by name, with its resolved canonical. */
|
|
744
|
+
export const MCP_SERVERS = ${objectLiteral(rows2)} as const;
|
|
745
|
+
|
|
746
|
+
/** Every MCP server name in this workspace. */
|
|
747
|
+
export type McpServerName = keyof typeof MCP_SERVERS;
|
|
748
|
+
${MCP_IMPLEMENTATION}`;
|
|
749
|
+
}
|
|
655
750
|
var ROUTES_MANIFEST_BASENAME = "routes.gen.ts";
|
|
656
751
|
function planRouteManifest(payload, locked = () => void 0) {
|
|
657
752
|
const list = (key) => Array.isArray(payload[key]) ? payload[key].filter(
|
|
@@ -706,6 +801,12 @@ function planRouteManifest(payload, locked = () => void 0) {
|
|
|
706
801
|
storedInputs.set(channel, c.input);
|
|
707
802
|
return [channel];
|
|
708
803
|
});
|
|
804
|
+
const mcpRows = list("toolset").flatMap((t) => {
|
|
805
|
+
const name = text(t.name);
|
|
806
|
+
if (name === void 0 || t.type !== "mcp") return [];
|
|
807
|
+
return [{ name, canonical: text(t.canonical) ?? locked("toolset", name) }];
|
|
808
|
+
});
|
|
809
|
+
const mcpServers = mcpRows.flatMap((t) => t.canonical ? [{ name: t.name, canonical: t.canonical }] : []).sort((a, b) => byCodeUnit(a.name, b.name));
|
|
709
810
|
const resolved = rows2.flatMap((r) => {
|
|
710
811
|
if (!r.canonical) return [];
|
|
711
812
|
const entry = { name: r.name, verb: r.verb, canonical: r.canonical, ...r.group !== void 0 ? { group: r.group } : {} };
|
|
@@ -738,6 +839,8 @@ function planRouteManifest(payload, locked = () => void 0) {
|
|
|
738
839
|
servers,
|
|
739
840
|
unresolvedServers: serverRows.filter((s) => !s.canonical).map((s) => s.name),
|
|
740
841
|
channels,
|
|
842
|
+
mcpServers,
|
|
843
|
+
unresolvedMcpServers: mcpRows.filter((t) => !t.canonical).map((t) => t.name),
|
|
741
844
|
inputs: { routes: routeInputs, channels: channelInputs, messages: messageInputs }
|
|
742
845
|
};
|
|
743
846
|
}
|
|
@@ -748,13 +851,59 @@ function unresolvedCanonicalMessage(unresolved, entry) {
|
|
|
748
851
|
}
|
|
749
852
|
function renderPlannedManifest(plan, entry = "<entry>") {
|
|
750
853
|
if (plan.unresolved.length > 0) throw new RouteManifestError(unresolvedCanonicalMessage(plan.unresolved, entry));
|
|
751
|
-
if (plan.resolved.length === 0 && plan.servers.length === 0) return void 0;
|
|
854
|
+
if (plan.resolved.length === 0 && plan.servers.length === 0 && plan.mcpServers.length === 0) return void 0;
|
|
752
855
|
return renderRouteManifest(
|
|
753
856
|
plan.resolved,
|
|
754
857
|
plan.servers.length > 0 ? { servers: plan.servers, channels: plan.channels } : void 0,
|
|
755
|
-
plan.inputs
|
|
858
|
+
plan.inputs,
|
|
859
|
+
plan.mcpServers
|
|
756
860
|
);
|
|
757
861
|
}
|
|
862
|
+
var NO_MANIFEST_COUNTS = { routes: 0, realtimeServers: 0, channels: 0, mcpServers: 0 };
|
|
863
|
+
function manifestCounts(plan) {
|
|
864
|
+
return {
|
|
865
|
+
routes: plan.resolved.length,
|
|
866
|
+
realtimeServers: plan.servers.length,
|
|
867
|
+
channels: plan.channels.length,
|
|
868
|
+
mcpServers: plan.mcpServers.length
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
function describeManifestCounts(counts) {
|
|
872
|
+
const of = (n, one, many) => `${n} ${n === 1 ? one : many}`;
|
|
873
|
+
return [
|
|
874
|
+
of(counts.routes, "route", "routes"),
|
|
875
|
+
...counts.realtimeServers > 0 ? [of(counts.realtimeServers, "realtime server", "realtime servers"), of(counts.channels, "channel", "channels")] : [],
|
|
876
|
+
...counts.mcpServers > 0 ? [of(counts.mcpServers, "MCP server", "MCP servers")] : []
|
|
877
|
+
].join(", ");
|
|
878
|
+
}
|
|
879
|
+
function routesListing(plan) {
|
|
880
|
+
return {
|
|
881
|
+
routes: plan.resolved.map((r) => ({
|
|
882
|
+
verb: r.verb,
|
|
883
|
+
path: `/api:${r.canonical}/${r.name}`,
|
|
884
|
+
ref: `api:${r.canonical}/${r.name}`
|
|
885
|
+
})),
|
|
886
|
+
realtimeServers: [...plan.servers].sort((a, b) => a.name.localeCompare(b.name)).map((s) => ({ name: s.name, canonical: s.canonical, path: `/ws/${s.canonical}` })),
|
|
887
|
+
channels: keyChannels(plan.channels).map(({ channel, key }) => ({ key, name: channel.name, server: channel.server })),
|
|
888
|
+
mcpServers: plan.mcpServers.map((s) => ({ name: s.name, canonical: s.canonical, path: `/x2/mcp/${s.canonical}/mcp/stream` }))
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
function formatRoutesListing(listing) {
|
|
892
|
+
const rows2 = [
|
|
893
|
+
...listing.routes.map((r) => [r.verb, r.path, r.ref]),
|
|
894
|
+
...listing.realtimeServers.map((s) => ["WS", s.path, `socketUrl(${literal(s.name)}, baseUrl)`]),
|
|
895
|
+
...listing.channels.map((c) => [
|
|
896
|
+
"CHANNEL",
|
|
897
|
+
c.name,
|
|
898
|
+
`channelPath(${literal(c.key)}), on ${literal(c.server)}`
|
|
899
|
+
]),
|
|
900
|
+
...listing.mcpServers.map((s) => ["MCP", s.path, `mcpUrl(${literal(s.name)}, baseUrl)`])
|
|
901
|
+
];
|
|
902
|
+
const label = Math.max(0, ...rows2.map((r) => r[0].length));
|
|
903
|
+
const path = Math.max(0, ...rows2.map((r) => r[1].length));
|
|
904
|
+
return rows2.map(([l, p, ref]) => `${l.padEnd(label)} ${p.padEnd(path)} ${ref}
|
|
905
|
+
`).join("");
|
|
906
|
+
}
|
|
758
907
|
|
|
759
908
|
export {
|
|
760
909
|
RouteManifestError,
|
|
@@ -767,6 +916,11 @@ export {
|
|
|
767
916
|
ROUTES_MANIFEST_BASENAME,
|
|
768
917
|
planRouteManifest,
|
|
769
918
|
unresolvedCanonicalMessage,
|
|
770
|
-
renderPlannedManifest
|
|
919
|
+
renderPlannedManifest,
|
|
920
|
+
NO_MANIFEST_COUNTS,
|
|
921
|
+
manifestCounts,
|
|
922
|
+
describeManifestCounts,
|
|
923
|
+
routesListing,
|
|
924
|
+
formatRoutesListing
|
|
771
925
|
};
|
|
772
|
-
//# sourceMappingURL=chunk-
|
|
926
|
+
//# sourceMappingURL=chunk-U4DSFCH5.js.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
reachableLines,
|
|
4
4
|
readReachableWorkspaces,
|
|
5
5
|
workspaceIdFix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2PAVJ3QD.js";
|
|
7
7
|
import {
|
|
8
8
|
credentialRejected,
|
|
9
9
|
getAccessToken
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ANBIMJPM.js";
|
|
11
11
|
import {
|
|
12
12
|
CREDENTIAL_FILE_VERSION,
|
|
13
13
|
UPGRADE_REMEDY,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
loginCommand,
|
|
16
16
|
readCredentialFile,
|
|
17
17
|
resolveAuthFilePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P5JF3U65.js";
|
|
19
19
|
import {
|
|
20
20
|
fetchOrExplain,
|
|
21
21
|
httpFailure,
|
|
22
22
|
parseJsonAnswer
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DILYWJVP.js";
|
|
24
24
|
import {
|
|
25
25
|
profileSourceLabel,
|
|
26
26
|
selectionDocument
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
stdoutStyle,
|
|
33
33
|
warn,
|
|
34
34
|
writeJson
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-D4VKPOD4.js";
|
|
36
36
|
import {
|
|
37
37
|
shellQuote
|
|
38
38
|
} from "./chunk-5ZSO4T2G.js";
|
|
@@ -165,7 +165,7 @@ function prettyProfile(p) {
|
|
|
165
165
|
}
|
|
166
166
|
async function runWhoamiCommand(args) {
|
|
167
167
|
const profile = await fetchProfile(args).catch(async (err) => {
|
|
168
|
-
const { unansweredRead } = await import("./source-resolve-
|
|
168
|
+
const { unansweredRead } = await import("./source-resolve-HSJSVKUC.js");
|
|
169
169
|
throw unansweredRead(err, "read the signed-in user", "workspace");
|
|
170
170
|
});
|
|
171
171
|
if (isMachineOutput(args)) {
|
|
@@ -185,4 +185,4 @@ export {
|
|
|
185
185
|
profileValue,
|
|
186
186
|
runWhoamiCommand
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=chunk-
|
|
188
|
+
//# sourceMappingURL=chunk-U5CTYBAN.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hasString,
|
|
3
3
|
listAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3ZVSOZZC.js";
|
|
5
5
|
import {
|
|
6
6
|
READ_AFTERMATH,
|
|
7
7
|
explainFetchFailure,
|
|
8
8
|
httpFailure,
|
|
9
9
|
readBodyText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DILYWJVP.js";
|
|
11
11
|
import {
|
|
12
12
|
detail,
|
|
13
13
|
info,
|
|
14
14
|
warn
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-D4VKPOD4.js";
|
|
16
16
|
|
|
17
17
|
// src/deploy/microservice-status.ts
|
|
18
18
|
var TIMEOUT_MS = 3e4;
|
|
@@ -168,4 +168,4 @@ export {
|
|
|
168
168
|
readyRatio,
|
|
169
169
|
printMicroserviceSection
|
|
170
170
|
};
|
|
171
|
-
//# sourceMappingURL=chunk-
|
|
171
|
+
//# sourceMappingURL=chunk-UFFIU57H.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-X4DVXBFY.js";
|
|
7
7
|
import {
|
|
8
8
|
ImportHttpError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6QJORUHC.js";
|
|
10
10
|
import {
|
|
11
11
|
TransportError,
|
|
12
12
|
certificateFailureCode,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
statusLabel,
|
|
24
24
|
transportTarget,
|
|
25
25
|
writeStatusAftermath
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DILYWJVP.js";
|
|
27
27
|
import {
|
|
28
28
|
describeWrite
|
|
29
29
|
} from "./chunk-4KHEMC32.js";
|
|
@@ -461,7 +461,7 @@ async function post(auth, url, opts, action) {
|
|
|
461
461
|
const aftermath = !writes ? `A dry run writes nothing, so ${target} is untouched. Retry when the instance is reachable.` : opts.mode === "replace" ? `The request did not complete, so the import may or may not have landed, in whole or in part. A replace rewrites all of ${target}, so it is safe to run again once the instance is reachable.` : `The request did not complete, so the import may or may not have landed, in whole or in part.` + (opts.stateCheck !== void 0 ? ` ${opts.stateCheck}` : "");
|
|
462
462
|
const where = `${transportTarget(url)}${opts.label !== void 0 ? ` (${opts.label})` : ""}`;
|
|
463
463
|
if (res === void 0) {
|
|
464
|
-
const { classifyFailure } = await import("./operation-outcome-
|
|
464
|
+
const { classifyFailure } = await import("./operation-outcome-TYAOVNOM.js");
|
|
465
465
|
if (writes && !isTimeoutError(failure) && classifyFailure(failure, { writeSent: true }) === "no") {
|
|
466
466
|
const untrusted = certificateFailureCode(failure) !== void 0;
|
|
467
467
|
throw new ImportNotSentError(
|
|
@@ -557,4 +557,4 @@ export {
|
|
|
557
557
|
withDefaultBranchPointer,
|
|
558
558
|
xanosdkImport
|
|
559
559
|
};
|
|
560
|
-
//# sourceMappingURL=chunk-
|
|
560
|
+
//# sourceMappingURL=chunk-UZ55F3UK.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
findBranch,
|
|
3
3
|
listBranches,
|
|
4
4
|
liveBranchLabel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PCHIHVX6.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-D4VKPOD4.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-VA4JK4TW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTaggedValue
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z6N5N4MN.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveRef
|
|
6
6
|
} from "./chunk-LL6ED5IB.js";
|
|
@@ -367,4 +367,4 @@ export {
|
|
|
367
367
|
input,
|
|
368
368
|
encodeInput
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=chunk-
|
|
370
|
+
//# sourceMappingURL=chunk-VIRFG3WG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
impliedInputs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HJZUI2ZU.js";
|
|
4
4
|
|
|
5
5
|
// src/validate/normalize.ts
|
|
6
6
|
var STRIP_KEYS = /* @__PURE__ */ new Set([
|
|
@@ -1063,4 +1063,4 @@ export {
|
|
|
1063
1063
|
filledContext,
|
|
1064
1064
|
normalize
|
|
1065
1065
|
};
|
|
1066
|
-
//# sourceMappingURL=chunk-
|
|
1066
|
+
//# sourceMappingURL=chunk-W2QFR3ZJ.js.map
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
sectionKind,
|
|
5
5
|
tableAdditions,
|
|
6
6
|
vectorSize
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JHQAVWHW.js";
|
|
8
8
|
import {
|
|
9
9
|
ReleaseHttpError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H7GMGZHI.js";
|
|
11
11
|
import {
|
|
12
12
|
TenantHttpError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7NNLRNXE.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError,
|
|
16
16
|
detail,
|
|
17
17
|
warn,
|
|
18
18
|
withoutUrls
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-D4VKPOD4.js";
|
|
20
20
|
import {
|
|
21
21
|
suggest
|
|
22
22
|
} from "./chunk-UTI5G6OJ.js";
|
|
@@ -677,4 +677,4 @@ export {
|
|
|
677
677
|
CONSTRAINT_PHRASE,
|
|
678
678
|
CONSTRAINT_FIX
|
|
679
679
|
};
|
|
680
|
-
//# sourceMappingURL=chunk-
|
|
680
|
+
//# sourceMappingURL=chunk-W5MKVFBQ.js.map
|