@metabase/cli 0.5.0 → 0.5.1
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/dist/{add-collection-COtKcy6Y.mjs → add-collection-BnGPc0Vv.mjs} +3 -3
- package/dist/{alert-DMlSjPEv.mjs → alert-DQkF8jYR.mjs} +7 -7
- package/dist/{alerts-s3al16NZ.mjs → alerts-BncG7w1_.mjs} +6 -6
- package/dist/{append-CbGmdeLw.mjs → append-D4ekYCuD.mjs} +4 -4
- package/dist/{archive-Ce4eArrs.mjs → archive-BQ4OA-R4.mjs} +3 -3
- package/dist/{archive-5EY9UJU_.mjs → archive-BXr9kFNz.mjs} +5 -5
- package/dist/{archive-a05W75XH.mjs → archive-BifJXCHF.mjs} +3 -3
- package/dist/{archive-DW7x0IFB.mjs → archive-CxNUeWII2.mjs} +4 -4
- package/dist/{archive-C_UHeanE.mjs → archive-D2WCz3Oe.mjs} +3 -3
- package/dist/{archive-BFmx4B91.mjs → archive-DjHLWUfC.mjs} +5 -5
- package/dist/{archive-BZCYIBhQ.mjs → archive-DnCF-Ecm.mjs} +5 -5
- package/dist/{archive-DzSdJVqE.mjs → archive-DocyUIME.mjs} +5 -5
- package/dist/{archive-DDO2XX0E.mjs → archive-DpCP4yR1.mjs} +4 -4
- package/dist/{archive-DvbaSglr.mjs → archive-EhW6blNc.mjs} +3 -3
- package/dist/archive-ULXc3xzI.mjs +32 -0
- package/dist/{archive-CnDriekB.mjs → archive-v08JESCM.mjs} +5 -5
- package/dist/{auth-DOz7KW5E.mjs → auth-BPbsm8yV.mjs} +5 -5
- package/dist/{body-Di7940x_.mjs → body-BkkQkGJg.mjs} +2 -2
- package/dist/{branch-flag-CfJ8vwgu.mjs → branch-flag-CTDvbaBa.mjs} +1 -1
- package/dist/{branches-BC-vlk6i.mjs → branches-lPHtM_xR.mjs} +3 -3
- package/dist/{breaking-ByrjsFjq.mjs → breaking-DjMlCD96.mjs} +6 -6
- package/dist/{broken-DLSk1T88.mjs → broken-DUX3GWS5.mjs} +8 -8
- package/dist/{bulk-discard-values-VKGj8c7z.mjs → bulk-discard-values-Dl8Lzypf.mjs} +5 -5
- package/dist/{bulk-edit-CpuleeCQ.mjs → bulk-edit-N2xLVtfG.mjs} +4 -4
- package/dist/{bulk-rescan-values-DeGwiqLS.mjs → bulk-rescan-values-BK2rH2Ik.mjs} +4 -4
- package/dist/{bulk-sync-schema-BKVhauW1.mjs → bulk-sync-schema-BKJc9Rzq.mjs} +4 -4
- package/dist/{cancel-qKj45001.mjs → cancel-DzkRVGIk.mjs} +3 -3
- package/dist/{cancel-task-nmBBd1Ky.mjs → cancel-task-BiTlDY7a.mjs} +2 -2
- package/dist/card-BTBDBsu-.mjs +25 -0
- package/dist/{card-DSrgU7lT.mjs → card-CQNUT9pm.mjs} +1 -1
- package/dist/{card-Bv4ZN0oV.mjs → card-P5mBknsl.mjs} +2 -12
- package/dist/{cards-Bq73s48q.mjs → cards-CSL8ukS1.mjs} +4 -4
- package/dist/cli.mjs +80 -48
- package/dist/{client-BmURNkkW.mjs → client-BBwYPXDW.mjs} +100 -591
- package/dist/collection-B19phRNU.mjs +21 -0
- package/dist/{collection-zrZoJfgR.mjs → collection-B2wRXyTF.mjs} +11 -3
- package/dist/{collection-C03LXnCT.mjs → collection-CTnYZ2Jj.mjs} +1 -1
- package/dist/{collection-namespace-DaDzK31i.mjs → collection-namespace-B1OkM7p1.mjs} +1 -1
- package/dist/{content-translation-BlG41YrA.mjs → content-translation-DoGTQnvH.mjs} +3 -3
- package/dist/{copy-DTiYs_a2.mjs → copy-BYukQEtf.mjs} +4 -4
- package/dist/{copy-DOKlVa7H.mjs → copy-XlCT3gvG.mjs} +6 -6
- package/dist/{copy-flags-BhGWC5kS.mjs → copy-flags-ByB2MicL.mjs} +2 -2
- package/dist/{create-1rLk8b5q.mjs → create-3_oY9KHY.mjs} +3 -3
- package/dist/{create-BXX_n64u.mjs → create-B3fm5I-l2.mjs} +4 -4
- package/dist/{create-BKKNIe93.mjs → create-BP39g5Jk.mjs} +5 -5
- package/dist/{create-DraZzrLO.mjs → create-Bl9sS7v7.mjs} +6 -6
- package/dist/{create-d0trLAzB.mjs → create-Bnb1abv_.mjs} +4 -4
- package/dist/{create-DUytP2Y1.mjs → create-CLZ7w83R.mjs} +4 -4
- package/dist/{create-Duj_2YIF.mjs → create-CYoarNrb.mjs} +4 -4
- package/dist/{create-C0kz0oYc.mjs → create-CbT4SPHV.mjs} +5 -5
- package/dist/{create-B1QDNU1x.mjs → create-Cdt8u1wF.mjs} +6 -6
- package/dist/create-CqF7vqXC.mjs +48 -0
- package/dist/{create-B5BwdPwT.mjs → create-CrtIqtXN.mjs} +6 -6
- package/dist/{create-BpwZJZxb.mjs → create-D5_c5SHo.mjs} +5 -5
- package/dist/{create-Cob0gLsA.mjs → create-DBNxy5rN.mjs} +5 -5
- package/dist/{create-vOw8gmBU.mjs → create-DZJQp3r7.mjs} +3 -3
- package/dist/{create-JaFhqysM.mjs → create-DxMmIHI4.mjs} +5 -5
- package/dist/{create-B1bX6ngX.mjs → create-T4PZPVE9.mjs} +4 -4
- package/dist/{create-branch-B5jB4tKk.mjs → create-branch-CUNFdKyB.mjs} +2 -2
- package/dist/{create-DPggIXfn.mjs → create-jr4xJgSI.mjs} +4 -4
- package/dist/create-k1Bo7h7g.mjs +34 -0
- package/dist/{csv-DfExp9H_.mjs → csv-CcnhKpuj.mjs} +4 -4
- package/dist/{current-task-CbXIH_RA.mjs → current-task-nl2z8sHI.mjs} +3 -3
- package/dist/dashboard-BP0p62fp.mjs +35 -0
- package/dist/data-action-Cr17CfgE.mjs +24 -0
- package/dist/data-action-DZxVB_hD.mjs +85 -0
- package/dist/data-action-R9qxJDPA.mjs +40 -0
- package/dist/{database-BdKkae1m.mjs → database-2HYCdHqK.mjs} +1 -1
- package/dist/{database-DoNoZ8Yc.mjs → database-BewllGR7.mjs} +1 -1
- package/dist/{dataset-DZgJm5hP.mjs → dataset-D-x2Ho2i.mjs} +1 -1
- package/dist/{db-C82M3Gpg.mjs → db-m5bQcXdn.mjs} +7 -7
- package/dist/delete-BOma6qIq.mjs +44 -0
- package/dist/{delete-B4BfGfiJ.mjs → delete-BUCh72Bq.mjs} +4 -4
- package/dist/{delete-DJ7SNXiH.mjs → delete-BXMc-g3Q.mjs} +4 -4
- package/dist/{delete-D0xFMRRq.mjs → delete-BrbmJ3sn.mjs} +4 -4
- package/dist/{delete-9xHRd2CG.mjs → delete-DulVnxD_.mjs} +4 -4
- package/dist/delete-Oc2GE170.mjs +44 -0
- package/dist/{delete-hwPqKXeY.mjs → delete-QHsiWYay.mjs} +4 -4
- package/dist/{delete-runtime-DkgYUQ_n.mjs → delete-runtime-CkNvZfFA.mjs} +1 -1
- package/dist/{delete-table-DhTMft7u.mjs → delete-table-LgJ17t6j.mjs} +4 -4
- package/dist/{delete-hcw_4pBG.mjs → delete-xf2n7SNg.mjs} +4 -4
- package/dist/{dependencies-B8H2gA04.mjs → dependencies-BE5QW7Lb.mjs} +5 -5
- package/dist/{dependency-Dc33mjgd.mjs → dependency-BACk_cVP.mjs} +2 -2
- package/dist/dependency-BlTYysYG.mjs +15 -0
- package/dist/{dependency-tQBxYjFX.mjs → dependency-qP1hx2YN.mjs} +2 -2
- package/dist/{dependents-B2GcS5kB.mjs → dependents-mbgHQNiv.mjs} +9 -9
- package/dist/{dirty-Cz2rUd6S.mjs → dirty-fYlA1N1e.mjs} +3 -3
- package/dist/{discard-values-QWuWGaVK.mjs → discard-values-cIRBP5nT.mjs} +5 -5
- package/dist/document-BaRQ5fBd.mjs +20 -0
- package/dist/{document-wfWbV0B_.mjs → document-DVIu3Vj4.mjs} +1 -1
- package/dist/{document-BDobDiap.mjs → document-UMG6me2P.mjs} +1 -1
- package/dist/{download-Dw15fUMy.mjs → download-CokVpeK6.mjs} +2 -2
- package/dist/{eid-Ex4G-ZlN.mjs → eid-CaumGUFD.mjs} +5 -5
- package/dist/{eid-translation-zEHtr5Oc.mjs → eid-translation-Ba92VOHe.mjs} +1 -0
- package/dist/{entity-DBKPaMr5.mjs → entity-BHYJtRxp.mjs} +2 -2
- package/dist/{entry-flags-DgY3IXFe.mjs → entry-flags-DjICpQkc.mjs} +4 -4
- package/dist/{events-BibJ4ya0.mjs → events-jEo9fytL.mjs} +6 -6
- package/dist/execute-H09Qus4_.mjs +45 -0
- package/dist/{export-U8MdaatW.mjs → export-YtdZo7LZ.mjs} +5 -5
- package/dist/{export-flags-BrfeyE8D.mjs → export-flags-DzW0Ktkh.mjs} +3 -3
- package/dist/{export-preflight-A28L45au.mjs → export-preflight-Db_TChn5.mjs} +3 -3
- package/dist/field-DktidTPB.mjs +21 -0
- package/dist/{fields-i1TFa_th.mjs → fields-DUXlosmx.mjs} +4 -4
- package/dist/{filter-flags-Bm3vuSM-.mjs → filter-flags-DTDcU7OI.mjs} +5 -4
- package/dist/{fks-Dcfn3-73.mjs → fks-Cl2sq-c0.mjs} +5 -5
- package/dist/{get-HFQSttF3.mjs → get-B-WT6ess.mjs} +4 -4
- package/dist/{get-BKDTRMNU.mjs → get-BilMWiFq.mjs} +5 -5
- package/dist/{get-CobILQ_7.mjs → get-Bt_zhviQ.mjs} +5 -5
- package/dist/{get-BiPSePQc.mjs → get-CM596pmP.mjs} +3 -3
- package/dist/{get-DqYn9mez.mjs → get-CTtzccwr.mjs} +4 -4
- package/dist/{get-Dz3dNirC.mjs → get-CVMWhbA82.mjs} +4 -4
- package/dist/{get-B4_3DID6.mjs → get-CWyRAHpz.mjs} +5 -5
- package/dist/{get-DPZUIPjv.mjs → get-C_rjxpoe.mjs} +3 -3
- package/dist/{get-hAoJtVCK.mjs → get-Cg0up9gm.mjs} +3 -3
- package/dist/{get-IjoHBExI.mjs → get-CqlNUyFY.mjs} +5 -5
- package/dist/{get-CcwRn8Y2.mjs → get-DPiNYmXo.mjs} +5 -5
- package/dist/{get-EKBYludD.mjs → get-DTDvlLT3.mjs} +3 -3
- package/dist/{get-D0NZ0ZO1.mjs → get-DtcChy9h.mjs} +5 -5
- package/dist/{get-C3ojRVJ_.mjs → get-DyK_bvg6.mjs} +4 -4
- package/dist/{get-DUwX-RU82.mjs → get-DySyvotk2.mjs} +5 -5
- package/dist/{get-CCLWWqTD.mjs → get-FxCF0rxc.mjs} +4 -4
- package/dist/{get-CVpIQb8v.mjs → get-GuWW4J24.mjs} +5 -5
- package/dist/{get-Cwj1Q-at.mjs → get-XS-6R81E.mjs} +3 -3
- package/dist/{get-BCdtCwaG.mjs → get-oQNL6pLY.mjs} +3 -3
- package/dist/get-okEsnkvC.mjs +31 -0
- package/dist/{get-run-B2SnsZSY.mjs → get-run-CFGxSm_S.mjs} +4 -4
- package/dist/get-zPMv3kZE.mjs +32 -0
- package/dist/git-sync-BwkWeJAz.mjs +29 -0
- package/dist/glossary-BSgRQ2HO.mjs +14 -0
- package/dist/{glossary-wnuxoE_I.mjs → glossary-BkGmCI4X.mjs} +1 -1
- package/dist/{glossary-6LLpItof.mjs → glossary-QN-hHfOT.mjs} +1 -1
- package/dist/{graph-CHlfxVy1.mjs → graph-Wf4e0XIa.mjs} +6 -6
- package/dist/{group-B3X3LTcU.mjs → group-81zoQcEP.mjs} +1 -1
- package/dist/{has-remote-changes-DCMpqGgE.mjs → has-remote-changes-BsS3XB0P.mjs} +2 -2
- package/dist/{import-C7MZhKo6.mjs → import-CXd5HdB0.mjs} +5 -5
- package/dist/{input-sRdxNc3T.mjs → input-AXP2LCOV.mjs} +1 -1
- package/dist/{is-dirty-DpLyHebS.mjs → is-dirty-TDcfeOde.mjs} +2 -2
- package/dist/{items-1ME_eg27.mjs → items-BxvhoxYm.mjs} +6 -6
- package/dist/{key-DMtgTOwN.mjs → key-CUPbYxkk.mjs} +1 -1
- package/dist/{library-fWEv38OB.mjs → library-BKSFtIV9.mjs} +1 -1
- package/dist/{library-CP-9yepy.mjs → library-DuIrR8LS.mjs} +1 -1
- package/dist/{library-D2ogEIfI.mjs → library-DzejNMqX.mjs} +5 -5
- package/dist/{list-Ud7F0XdU.mjs → list-3Dh5yeq-.mjs} +3 -3
- package/dist/{list-dCi6OaIE.mjs → list-6nGX0Rqc.mjs} +4 -4
- package/dist/{list-DkCadZ2E.mjs → list-B3Pngm2j.mjs} +5 -5
- package/dist/{list-BUwDGyIu.mjs → list-B5kRBn7k.mjs} +5 -5
- package/dist/{list-DzP7YXdZ.mjs → list-B8V_OESj.mjs} +3 -3
- package/dist/{list-CQi3AgS5.mjs → list-BUjI5G0_.mjs} +4 -4
- package/dist/{list-LMlJ4uAY.mjs → list-Ba7u5Ai9.mjs} +6 -6
- package/dist/list-CCCy6cBI.mjs +35 -0
- package/dist/list-CRXTfEFk.mjs +28 -0
- package/dist/{list-BoVeF8QA.mjs → list-CUj04tg3.mjs} +6 -6
- package/dist/{list-C9996vbS.mjs → list-Cf6A9Csi.mjs} +3 -3
- package/dist/{list-NINy7ybI.mjs → list-Cr5Hoq-E.mjs} +4 -4
- package/dist/{list-BXcDPU5d.mjs → list-D1Q8H3jn.mjs} +6 -6
- package/dist/{list-CVh8DHOO.mjs → list-D7yH-64Z.mjs} +5 -5
- package/dist/{list-C1oEpUZG.mjs → list-DA1Fo6S6.mjs} +3 -3
- package/dist/{list-B0h-j1E7.mjs → list-D_fsrh8w.mjs} +5 -5
- package/dist/{list-DBAEy3Rx.mjs → list-DjlfBd7W.mjs} +3 -3
- package/dist/{list-OXiXtdiM.mjs → list-DlgjWr4r.mjs} +5 -5
- package/dist/{list-CJ5FyCnL.mjs → list-Do-Xnz0I.mjs} +4 -4
- package/dist/{list-STy8UHs2.mjs → list-DpK3ioES.mjs} +5 -5
- package/dist/{list-BUZ91ctZ.mjs → list-DsR58aMq.mjs} +5 -5
- package/dist/{login-BMON3Fft.mjs → login-CXbCAcuB.mjs} +6 -6
- package/dist/{logout-Cx934GzW.mjs → logout-B6IGzkpG.mjs} +2 -2
- package/dist/{measure-CUqJtDNm.mjs → measure-CbMgNhlG.mjs} +6 -6
- package/dist/{notification-CCZ9mrOw.mjs → notification-W2SVssyY.mjs} +1 -1
- package/dist/{parameter-values-DCrU02Az.mjs → parameter-values-IWi_DNhp.mjs} +3 -3
- package/dist/{parse-enum-Do5Cptbv.mjs → parse-enum-B2rGiC6p.mjs} +1 -1
- package/dist/{parse-id-oCbmouCn.mjs → parse-id-Cv5eM7sg.mjs} +1 -1
- package/dist/{parse-ref-Df8gusl4.mjs → parse-ref-DW7ik6ny.mjs} +1 -1
- package/dist/{parse-text-CVrP7GmZ.mjs → parse-text-CUCSWOeR.mjs} +1 -1
- package/dist/{path-DTuSDGd6.mjs → path-C9r9urRK.mjs} +4 -4
- package/dist/{poll-BKo5dK0l.mjs → poll-CX3jPtXb.mjs} +2 -2
- package/dist/{preflight-UeYuGDPr.mjs → preflight-CiTgqNUy.mjs} +2 -2
- package/dist/{process-BpmZXbcw.mjs → process-DImdroix.mjs} +1 -1
- package/dist/{publish-D3GwLC-K.mjs → publish-xH1n74gd.mjs} +4 -4
- package/dist/{pulse-DzVPfb5J.mjs → pulse-CFj1WfIC.mjs} +1 -1
- package/dist/query-BKtMP5eH.mjs +13 -0
- package/dist/{query-B1Cp9EO6.mjs → query-BOCw0FBK.mjs} +6 -6
- package/dist/{query-Ct697cY-.mjs → query-CN3BW5WB.mjs} +11 -10
- package/dist/{remapping-RsoPWE7c.mjs → remapping-Dggq2Fv0.mjs} +4 -4
- package/dist/{remove-collection-BJo3Wd9K.mjs → remove-collection-cxSSFxza.mjs} +3 -3
- package/dist/{render-C_ev6qoW.mjs → render-Cb8Hct67.mjs} +2 -2
- package/dist/{replace-BSAGp3cR.mjs → replace-wVi_XDut.mjs} +4 -4
- package/dist/{requirement-check-T3bjQ0Mr.mjs → requirement-check-BE3PuGsC.mjs} +2 -2
- package/dist/{rescan-values-CE62_2dc.mjs → rescan-values-C7b1Ghy-.mjs} +4 -4
- package/dist/{rescan-values-rpro4Kw2.mjs → rescan-values-DAp_avxY.mjs} +5 -5
- package/dist/{run-B3BRodEp.mjs → run-CE6ei7s7.mjs} +4 -4
- package/dist/{run-BI1QO9Kn.mjs → run-CUGs7mok.mjs} +7 -7
- package/dist/run-DywhwjNG.mjs +63 -0
- package/dist/{runs-CUseZezf.mjs → runs--14jim_0.mjs} +5 -5
- package/dist/{runtime-C5Ha6Ou8.mjs → runtime-Ckns6TKK.mjs} +2 -2
- package/dist/{schema-tables-C7YkyRh0.mjs → schema-tables-CeW0kpA5.mjs} +5 -5
- package/dist/{schemas-Bj5sJ9uB.mjs → schemas-CHMD0HrY.mjs} +4 -4
- package/dist/{search-BAXg-EJw.mjs → search-CXRavT7G.mjs} +1 -0
- package/dist/{search-CB1A4HWx.mjs → search-DyC54bGf.mjs} +6 -6
- package/dist/{search-BsAwK7Rk.mjs → search-LmBQu1Jg.mjs} +5 -5
- package/dist/{segment-BEjaeLc5.mjs → segment-DeT_Yic6.mjs} +6 -6
- package/dist/{send-Dfh8d1gG.mjs → send-BWSJMrDL.mjs} +3 -3
- package/dist/{set-active-AyjKtBD-.mjs → set-active-C5cLG4_O.mjs} +4 -4
- package/dist/{set-DA8dKyzi.mjs → set-r2xiXrT_.mjs} +4 -4
- package/dist/{set-sensitivity-D0613dHA.mjs → set-sensitivity-BMLKazua.mjs} +4 -4
- package/dist/{setting-B-bxCkC0.mjs → setting-CDRusiqP.mjs} +4 -4
- package/dist/{setup-Bvvqlz9d.mjs → setup-BZaJVww3.mjs} +3 -3
- package/dist/{signal-Dm4N0Bcc.mjs → signal-4tpCIkqR.mjs} +1 -1
- package/dist/{skill-list-DkuCf0k4.mjs → skill-list-D2FhhYS3.mjs} +1 -1
- package/dist/{skills-DxrO7HUz.mjs → skills-9ihLaSmM.mjs} +3 -3
- package/dist/{skills-DlDCTGVE.mjs → skills-y2iVfW9k.mjs} +2 -2
- package/dist/snippet-Ce0o33Rj.mjs +19 -0
- package/dist/{stash-j9JPv3ns.mjs → stash-Dj-mnIa4.mjs} +4 -4
- package/dist/{status-DcbvbRc5.mjs → status-B2Xj_q8f.mjs} +3 -3
- package/dist/{status-DxNcrfnI.mjs → status-BtWz7Pzn.mjs} +4 -4
- package/dist/{subscription-CSR2t-xK.mjs → subscription-Dh--agqE.mjs} +6 -6
- package/dist/{subscriptions--0YvW40u.mjs → subscriptions-CJ8Jdp9A.mjs} +6 -6
- package/dist/{summary-Dslv78-r.mjs → summary-ccbkNDbC.mjs} +3 -3
- package/dist/{sync-schema-BSJiokQf.mjs → sync-schema-CewUOkmm.mjs} +6 -6
- package/dist/{sync-schema-Dgij5ICd.mjs → sync-schema-HwQectZd.mjs} +4 -4
- package/dist/{sync-task-a1zyF1Qb.mjs → sync-task-DEzhiaU9.mjs} +3 -2
- package/dist/{table-Uvu1roSx.mjs → table-CFZU-BRg.mjs} +1 -1
- package/dist/table-P9ovwcaB.mjs +26 -0
- package/dist/{table-selector-flags-B9OiA3Z1.mjs → table-selector-flags-p4jun7-v.mjs} +2 -2
- package/dist/{text-821Rn8M9.mjs → text-C2VwKF9D.mjs} +1 -1
- package/dist/{timeline-uDCmwGFT.mjs → timeline-BgWz8DYK.mjs} +1 -1
- package/dist/timeline-DLaBypse.mjs +21 -0
- package/dist/{timeline-CCSU2qOS.mjs → timeline-DcsCXNUt.mjs} +5 -1
- package/dist/{timeline-event-CSzx8EDP.mjs → timeline-event-xAAR6b-v.mjs} +6 -6
- package/dist/transform-10YE8j5K.mjs +28 -0
- package/dist/{transform-BKX6tl3i.mjs → transform-CWGJB8N_.mjs} +1 -1
- package/dist/{transform-job-AaMZRxAq.mjs → transform-job-BBZ5L46v.mjs} +1 -1
- package/dist/{transform-job-CCguL6LP.mjs → transform-job-ClX8e5iO.mjs} +2 -1
- package/dist/transform-job-D97AutnF.mjs +22 -0
- package/dist/{transform-tag-DHg7j15d.mjs → transform-tag-BXusFzMX.mjs} +5 -5
- package/dist/transform-test-Bexa_K89.mjs +173 -0
- package/dist/transform-test-C49ZTK7M.mjs +32 -0
- package/dist/transform-test-UsH1udc4.mjs +16 -0
- package/dist/{transforms-DwxPfMiG.mjs → transforms-CqV01bMM.mjs} +5 -5
- package/dist/transport-0qFZhEuP.mjs +416 -0
- package/dist/{tree-COFmA20J.mjs → tree-Td6rgyOa.mjs} +3 -3
- package/dist/{unpublish-BQClh4U7.mjs → unpublish-D4XTZsFW.mjs} +3 -3
- package/dist/{unreferenced-DKc0zZDl.mjs → unreferenced-cR-l4zXN.mjs} +6 -6
- package/dist/{update-myfBF5qV.mjs → update-BJL5975i.mjs} +6 -6
- package/dist/{update-BVMgrMy7.mjs → update-BqkqMOVN.mjs} +5 -5
- package/dist/{update-Bgy2amR0.mjs → update-C4iu-vQm.mjs} +6 -6
- package/dist/{update-C9HK3i8s.mjs → update-C7Wmom6x.mjs} +5 -5
- package/dist/{update-CMRWXoZ2.mjs → update-C7dZLbsf.mjs} +4 -4
- package/dist/{update-BBLbEPEP.mjs → update-C8xdeYI2.mjs} +4 -4
- package/dist/{update-B8jQTspb.mjs → update-CHB4kvz-.mjs} +8 -8
- package/dist/{update-BNwjjMk6.mjs → update-CND9At61.mjs} +5 -5
- package/dist/{update-Ca8LSZer.mjs → update-CpwWURTp.mjs} +5 -5
- package/dist/{update-B-wcIl8T.mjs → update-D-cTgmb0.mjs} +6 -6
- package/dist/{update-CPmPnEvm.mjs → update-DFK2iUSP.mjs} +6 -6
- package/dist/{update-CFfr1ZdL.mjs → update-DROjGe3Q.mjs} +4 -4
- package/dist/update-DZHgr6Gu.mjs +52 -0
- package/dist/{update-kM3TDlEp.mjs → update-Dk0E66Va.mjs} +7 -7
- package/dist/{update-DJwu8UT2.mjs → update-DqCZsbLh.mjs} +6 -6
- package/dist/{update-BVFfoopT.mjs → update-DrVc25R8.mjs} +5 -5
- package/dist/{update-MxvqmZ3z.mjs → update-Js0IiqCq.mjs} +5 -5
- package/dist/{update-Dwr3n7_n.mjs → update-dQeji6RA.mjs} +7 -7
- package/dist/{update-dashcard-C8QN2Qcu.mjs → update-dashcard-BmkfJ7t9.mjs} +4 -4
- package/dist/update-nGURR-y6.mjs +41 -0
- package/dist/{upgrade-BBOEVIRa.mjs → upgrade-B6V_1cUh.mjs} +4 -4
- package/dist/{upload-CxpXpjCf.mjs → upload-B6zBzMPW.mjs} +2 -2
- package/dist/{upload-CoBd4qBp.mjs → upload-CfYmBv51.mjs} +3 -3
- package/dist/upload-Dvjfz16M.mjs +13 -0
- package/dist/{uuid-DW30GY7B.mjs → uuid-B8ynbkqG.mjs} +2 -2
- package/dist/{validate-n85yMraN.mjs → validate-C7DGkwb-.mjs} +1 -1
- package/dist/{validate-query-BwXvFFYi.mjs → validate-query-CYUvRvVM.mjs} +7 -3
- package/dist/{values-B6eFE4K5.mjs → values-36bzf9cK.mjs} +3 -3
- package/dist/{verify-Dp8tUbP3.mjs → verify-BdW-GExk.mjs} +3 -3
- package/dist/{verify-BSq7x66g.mjs → verify-C4Tml4fD.mjs} +3 -3
- package/dist/{verify-DnU-wXIs.mjs → verify-Cs9e28YA.mjs} +3 -3
- package/dist/{wait-D6Tw4ZxO.mjs → wait-BV6JOdgi.mjs} +5 -5
- package/dist/{wait-flags-BRUzMI6S.mjs → wait-flags-DjyK03cm.mjs} +2 -2
- package/dist/{window-BqMFpWMh.mjs → window-CfK_j6m1.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +11 -5
- package/skill-data/data-action/SKILL.md +125 -0
- package/skill-data/native-sql/SKILL.md +1 -1
- package/skill-data/transform/SKILL.md +63 -1
- package/skill-data/transform-test-plan/SKILL.md +82 -0
- package/skill-data/transform-test-plan/references/checklist.md +32 -0
- package/skill-data/transform-test-plan/references/checks.md +156 -0
- package/dist/card-Buc-X4Mh.mjs +0 -25
- package/dist/collection-D-sS0AFw.mjs +0 -21
- package/dist/dashboard-DH_soSQp.mjs +0 -35
- package/dist/dependency-CLznxtLE.mjs +0 -15
- package/dist/document-WhSEyI-3.mjs +0 -20
- package/dist/field-qF1KRJYB.mjs +0 -21
- package/dist/git-sync-BlgB_-8-.mjs +0 -29
- package/dist/glossary-BvVxqjxJ.mjs +0 -14
- package/dist/snippet-B7Kau5U8.mjs +0 -19
- package/dist/table-qjgz2eek.mjs +0 -26
- package/dist/timeline-CNkrY3e3.mjs +0 -21
- package/dist/transform-Y86R7_2F.mjs +0 -28
- package/dist/transform-job-Cg_1jzWI.mjs +0 -22
- package/dist/upload-fcim1xtK.mjs +0 -13
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { Ct as NetworkError, Et as TimeoutError, K as isRetryableStatus, Mt as isNonInterruptFailure, Ot as ValidationError, P as CapabilityError, Tt as ResponseShapeError, W as HttpError, X as JSON_CONTENT_TYPE, Z as parseJson, kt as errorMessage } from "./cli.mjs";
|
|
2
|
+
import { B as credentialAuthHeader, F as probeBudget, J as createServerProfile, M as buildNetworkError, N as isConnectionClosed, P as PROBE_PATH, R as serverInfoFromProperties, V as credentialSecrets, W as normalizeUrl, Z as SessionProperties, z as assertCredentialHeaderSafe } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { n as throwIfAborted, r as untilAborted, t as combineAborts } from "./signal-4tpCIkqR.mjs";
|
|
4
|
+
import { n as featureFailures } from "./requirement-check-BE3PuGsC.mjs";
|
|
5
|
+
import { setTimeout } from "node:timers/promises";
|
|
6
|
+
//#region ../client/src/http/response-shape.ts
|
|
7
|
+
async function parseJsonResponse(text, schema, context) {
|
|
8
|
+
try {
|
|
9
|
+
return parseJson(text, schema, { source: context.url });
|
|
10
|
+
} catch (error) {
|
|
11
|
+
if (error instanceof ValidationError) throw ResponseShapeError.fromZodIssues({
|
|
12
|
+
kind: "zod",
|
|
13
|
+
method: context.method,
|
|
14
|
+
url: context.url,
|
|
15
|
+
status: context.status,
|
|
16
|
+
zodIssues: error.developerDetail.zodIssues,
|
|
17
|
+
serverTag: await context.getServerTag(),
|
|
18
|
+
serverSkew: context.serverSkew
|
|
19
|
+
});
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ../client/src/http/retry.ts
|
|
25
|
+
const BASE_DELAY_MS = 250;
|
|
26
|
+
const MAX_DELAY_MS = 8e3;
|
|
27
|
+
const MS_PER_SECOND = 1e3;
|
|
28
|
+
function backoffDelay({ attempt, retryAfterHeader }) {
|
|
29
|
+
const fromHeader = parseRetryAfter(retryAfterHeader);
|
|
30
|
+
if (fromHeader !== null) return fromHeader;
|
|
31
|
+
return Math.min(MAX_DELAY_MS, BASE_DELAY_MS * 2 ** attempt);
|
|
32
|
+
}
|
|
33
|
+
function parseRetryAfter(header) {
|
|
34
|
+
if (!header) return null;
|
|
35
|
+
const numeric = Number(header);
|
|
36
|
+
if (Number.isFinite(numeric) && numeric >= 0) return Math.round(numeric * MS_PER_SECOND);
|
|
37
|
+
const dateMs = Date.parse(header);
|
|
38
|
+
if (Number.isFinite(dateMs)) return Math.max(0, dateMs - Date.now());
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
function sleep(ms, signal) {
|
|
42
|
+
return setTimeout(ms, void 0, { signal });
|
|
43
|
+
}
|
|
44
|
+
async function runWithRetries(attempt, signal) {
|
|
45
|
+
let attemptIndex = 0;
|
|
46
|
+
while (true) {
|
|
47
|
+
const outcome = await attempt(attemptIndex);
|
|
48
|
+
if (outcome.kind === "success") return outcome.response;
|
|
49
|
+
await sleep(outcome.delayMs, signal);
|
|
50
|
+
attemptIndex += 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
54
|
+
const OCTET_STREAM_CONTENT_TYPE = "application/octet-stream";
|
|
55
|
+
const TEXT_CONTENT_TYPE_PREFIX = "text/";
|
|
56
|
+
const ERROR_BODY_BYTE_CAP = 64 * 1024;
|
|
57
|
+
const IDEMPOTENT_METHODS = /* @__PURE__ */ new Set([
|
|
58
|
+
"GET",
|
|
59
|
+
"HEAD",
|
|
60
|
+
"OPTIONS"
|
|
61
|
+
]);
|
|
62
|
+
function createTransport(config, options) {
|
|
63
|
+
const baseUrl = normalizeUrl(config.url);
|
|
64
|
+
assertCredentialHeaderSafe(config.credential);
|
|
65
|
+
const fetchImpl = options.fetchImpl ?? globalThis.fetch.bind(globalThis);
|
|
66
|
+
let inForce = options.server ?? null;
|
|
67
|
+
let newest = null;
|
|
68
|
+
let probesStarted = 0;
|
|
69
|
+
let applied = null;
|
|
70
|
+
const inFlight = /* @__PURE__ */ new Set();
|
|
71
|
+
const getServerTag = options.getServerTag ?? (async () => tagOf(inForce));
|
|
72
|
+
const refreshCredential = options.refreshCredential;
|
|
73
|
+
let credential = config.credential;
|
|
74
|
+
const knownSecrets = new Set(credentialSecrets(credential));
|
|
75
|
+
const redactionContext = { knownSecrets };
|
|
76
|
+
let refreshInFlight = null;
|
|
77
|
+
function tryRefreshCredential() {
|
|
78
|
+
const refresh = refreshCredential;
|
|
79
|
+
if (credential.kind !== "oauth" || refresh === void 0) return Promise.resolve(false);
|
|
80
|
+
refreshInFlight ??= refreshOnce(refresh).finally(() => {
|
|
81
|
+
refreshInFlight = null;
|
|
82
|
+
});
|
|
83
|
+
return refreshInFlight;
|
|
84
|
+
}
|
|
85
|
+
async function refreshOnce(refresh) {
|
|
86
|
+
const next = await refresh();
|
|
87
|
+
if (next === null) return false;
|
|
88
|
+
credential = next;
|
|
89
|
+
for (const secret of credentialSecrets(next)) knownSecrets.add(secret);
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
async function attemptOnce(prepared, attempt) {
|
|
93
|
+
const hasRetriesLeft = attempt < prepared.retries;
|
|
94
|
+
const timeoutSignal = AbortSignal.timeout(prepared.timeoutMs);
|
|
95
|
+
const combined = combineAborts(timeoutSignal, prepared.cancelSignal);
|
|
96
|
+
let response;
|
|
97
|
+
try {
|
|
98
|
+
response = await fetchImpl(prepared.url, {
|
|
99
|
+
method: prepared.method,
|
|
100
|
+
headers: prepared.headers,
|
|
101
|
+
body: prepared.body,
|
|
102
|
+
signal: combined
|
|
103
|
+
});
|
|
104
|
+
} catch (error) {
|
|
105
|
+
throwIfAborted(prepared.cancelSignal);
|
|
106
|
+
const isStaleSocketFirstTry = attempt === 0 && isConnectionClosed(error);
|
|
107
|
+
if (prepared.idempotent && (hasRetriesLeft || isStaleSocketFirstTry)) return {
|
|
108
|
+
kind: "retry",
|
|
109
|
+
delayMs: backoffDelay({ attempt })
|
|
110
|
+
};
|
|
111
|
+
if (timeoutSignal.aborted) throw new TimeoutError(`Request timed out after ${prepared.timeoutMs}ms`, {
|
|
112
|
+
kind: "http",
|
|
113
|
+
method: prepared.method,
|
|
114
|
+
url: prepared.url,
|
|
115
|
+
timeoutMs: prepared.timeoutMs
|
|
116
|
+
});
|
|
117
|
+
throw buildNetworkError(error, prepared.method, prepared.url);
|
|
118
|
+
}
|
|
119
|
+
const canRetryStatus = hasRetriesLeft && prepared.idempotent;
|
|
120
|
+
if (!response.ok && isRetryableStatus(response.status) && canRetryStatus) {
|
|
121
|
+
const retryAfter = response.headers.get("Retry-After");
|
|
122
|
+
response.body?.cancel().catch(() => void 0);
|
|
123
|
+
return {
|
|
124
|
+
kind: "retry",
|
|
125
|
+
delayMs: backoffDelay({
|
|
126
|
+
attempt,
|
|
127
|
+
retryAfterHeader: retryAfter
|
|
128
|
+
})
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
if (!response.ok) {
|
|
132
|
+
const rawBody = await readBodyForError(response);
|
|
133
|
+
const serverTag = await getServerTag();
|
|
134
|
+
throw new HttpError({
|
|
135
|
+
status: response.status,
|
|
136
|
+
statusText: response.statusText,
|
|
137
|
+
method: prepared.method,
|
|
138
|
+
url: prepared.url,
|
|
139
|
+
responseHeaders: response.headers,
|
|
140
|
+
rawBody,
|
|
141
|
+
serverTag,
|
|
142
|
+
redactionContext
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
assertContentType(response, prepared);
|
|
146
|
+
return {
|
|
147
|
+
kind: "success",
|
|
148
|
+
response
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
async function executeRaw(prepared) {
|
|
152
|
+
try {
|
|
153
|
+
return await runWithRetries((attempt) => attemptOnce(prepared, attempt), prepared.cancelSignal);
|
|
154
|
+
} catch (error) {
|
|
155
|
+
throwIfAborted(prepared.cancelSignal);
|
|
156
|
+
throw error;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
async function executeWithAuthRefresh(path, opts) {
|
|
160
|
+
const prepared = prepare(path, opts);
|
|
161
|
+
try {
|
|
162
|
+
return {
|
|
163
|
+
response: await executeRaw(prepared),
|
|
164
|
+
prepared
|
|
165
|
+
};
|
|
166
|
+
} catch (error) {
|
|
167
|
+
if (error instanceof HttpError && error.status === 401) {
|
|
168
|
+
if (await tryRefreshCredential()) {
|
|
169
|
+
const retried = prepare(path, opts);
|
|
170
|
+
return {
|
|
171
|
+
response: await executeRaw(retried),
|
|
172
|
+
prepared: retried
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
throw error;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function prepare(path, opts = {}) {
|
|
180
|
+
const method = opts.method ?? "GET";
|
|
181
|
+
const expectContentType = opts.expectContentType ?? "json";
|
|
182
|
+
const url = buildUrl(baseUrl, path, opts.query);
|
|
183
|
+
const headers = new Headers();
|
|
184
|
+
const auth = credentialAuthHeader(credential);
|
|
185
|
+
headers.set(auth.name, auth.value);
|
|
186
|
+
headers.set("accept", acceptHeader(expectContentType));
|
|
187
|
+
headers.set("user-agent", options.userAgent);
|
|
188
|
+
let body = null;
|
|
189
|
+
if (opts.body !== void 0 && opts.body !== null) if (typeof opts.body === "string" || opts.body instanceof URLSearchParams) body = opts.body;
|
|
190
|
+
else if (opts.body instanceof FormData || opts.body instanceof ReadableStream) body = opts.body;
|
|
191
|
+
else if (opts.body instanceof Uint8Array) {
|
|
192
|
+
body = opts.body;
|
|
193
|
+
headers.set("content-type", OCTET_STREAM_CONTENT_TYPE);
|
|
194
|
+
} else {
|
|
195
|
+
body = JSON.stringify(opts.body);
|
|
196
|
+
headers.set("content-type", JSON_CONTENT_TYPE);
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
url,
|
|
200
|
+
method,
|
|
201
|
+
headers,
|
|
202
|
+
body,
|
|
203
|
+
expectContentType,
|
|
204
|
+
retries: opts.retries ?? 3,
|
|
205
|
+
idempotent: opts.idempotent ?? IDEMPOTENT_METHODS.has(method),
|
|
206
|
+
timeoutMs: opts.timeoutMs ?? 3e4,
|
|
207
|
+
cancelSignal: combineAborts(opts.signal, options.signal)
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
async function readJson(path, opts = {}) {
|
|
211
|
+
const chosenFor = inForce;
|
|
212
|
+
const { response, prepared } = await executeWithAuthRefresh(path, {
|
|
213
|
+
...opts,
|
|
214
|
+
expectContentType: "json"
|
|
215
|
+
});
|
|
216
|
+
return {
|
|
217
|
+
text: await response.text(),
|
|
218
|
+
context: {
|
|
219
|
+
method: prepared.method,
|
|
220
|
+
url: prepared.url,
|
|
221
|
+
status: response.status,
|
|
222
|
+
...namingOf(chosenFor)
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
function namingOf(profile) {
|
|
227
|
+
if (profile === null) return {
|
|
228
|
+
getServerTag,
|
|
229
|
+
serverSkew: null
|
|
230
|
+
};
|
|
231
|
+
return {
|
|
232
|
+
getServerTag: async () => profile.version.tag,
|
|
233
|
+
serverSkew: profile.skew
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
async function runProbe(order, budget) {
|
|
237
|
+
const read = await readJson(PROBE_PATH, probeBudget(budget));
|
|
238
|
+
const properties = await parseJsonResponse(read.text, SessionProperties, read.context);
|
|
239
|
+
const info = serverInfoFromProperties(properties);
|
|
240
|
+
const profile = createServerProfile(info);
|
|
241
|
+
if (applied === null || applied.order < order) {
|
|
242
|
+
options.onServerProbed?.(info, profile);
|
|
243
|
+
applied = {
|
|
244
|
+
order,
|
|
245
|
+
profile
|
|
246
|
+
};
|
|
247
|
+
inForce = profile;
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
properties,
|
|
251
|
+
profile,
|
|
252
|
+
read
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
function startProbe(budget) {
|
|
256
|
+
probesStarted += 1;
|
|
257
|
+
const probed = runProbe(probesStarted, budget);
|
|
258
|
+
newest = probed;
|
|
259
|
+
inFlight.add(probed);
|
|
260
|
+
probed.then(() => {
|
|
261
|
+
inFlight.delete(probed);
|
|
262
|
+
}, () => {
|
|
263
|
+
inFlight.delete(probed);
|
|
264
|
+
if (newest === probed) newest = null;
|
|
265
|
+
});
|
|
266
|
+
return probed;
|
|
267
|
+
}
|
|
268
|
+
function appliedProfile() {
|
|
269
|
+
return applied === null ? null : applied.profile;
|
|
270
|
+
}
|
|
271
|
+
function verifying() {
|
|
272
|
+
const settled = appliedProfile();
|
|
273
|
+
if (newest === null && settled !== null) return Promise.resolve(settled);
|
|
274
|
+
return (newest ?? startProbe({})).then((probed) => probed.profile, fallBackTo(appliedProfile));
|
|
275
|
+
}
|
|
276
|
+
function profileInForce() {
|
|
277
|
+
const current = inForce;
|
|
278
|
+
if (current === null) return verifying();
|
|
279
|
+
if (newest === null) return Promise.resolve(current);
|
|
280
|
+
return newest.then((probed) => probed.profile, fallBackTo(() => inForce));
|
|
281
|
+
}
|
|
282
|
+
async function server(wait = {}) {
|
|
283
|
+
throwIfAborted(wait.signal);
|
|
284
|
+
return untilAborted(profileInForce(), wait.signal);
|
|
285
|
+
}
|
|
286
|
+
async function verifiedServer(wait = {}) {
|
|
287
|
+
throwIfAborted(wait.signal);
|
|
288
|
+
return untilAborted(verifying(), wait.signal);
|
|
289
|
+
}
|
|
290
|
+
async function probe(reader, read = {}) {
|
|
291
|
+
const { signal, ...budget } = read;
|
|
292
|
+
throwIfAborted(signal);
|
|
293
|
+
const probed = await untilAborted(startProbe(budget), signal);
|
|
294
|
+
const context = {
|
|
295
|
+
...probed.read.context,
|
|
296
|
+
...namingOf(probed.profile)
|
|
297
|
+
};
|
|
298
|
+
return parseJsonResponse(probed.read.text, reader, context);
|
|
299
|
+
}
|
|
300
|
+
async function probesSettled() {
|
|
301
|
+
while (inFlight.size > 0) await Promise.allSettled(inFlight);
|
|
302
|
+
}
|
|
303
|
+
async function requireFeatures(features, wait = {}) {
|
|
304
|
+
if (features.length === 0) return;
|
|
305
|
+
const profile = await preflightServer(wait);
|
|
306
|
+
if (profile === null) return;
|
|
307
|
+
for (const failure of featureFailures(features, profile)) refuseBeforeSending(new CapabilityError(failure));
|
|
308
|
+
}
|
|
309
|
+
async function preflightServer(wait = {}) {
|
|
310
|
+
try {
|
|
311
|
+
return await verifiedServer(wait);
|
|
312
|
+
} catch (error) {
|
|
313
|
+
if (!isNonInterruptFailure(error)) throw error;
|
|
314
|
+
skipOrThrow({
|
|
315
|
+
kind: "unverified",
|
|
316
|
+
failure: error
|
|
317
|
+
});
|
|
318
|
+
return null;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
function refuseBeforeSending(refusal) {
|
|
322
|
+
skipOrThrow({
|
|
323
|
+
kind: "refused",
|
|
324
|
+
refusal
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function skipOrThrow(skipped) {
|
|
328
|
+
const hook = options.onPreflightSkipped;
|
|
329
|
+
if (hook === void 0) throw skippedError(skipped);
|
|
330
|
+
hook(skipped);
|
|
331
|
+
}
|
|
332
|
+
return {
|
|
333
|
+
server,
|
|
334
|
+
verifiedServer,
|
|
335
|
+
probe,
|
|
336
|
+
requireFeatures,
|
|
337
|
+
preflightServer,
|
|
338
|
+
refuseBeforeSending,
|
|
339
|
+
probesSettled,
|
|
340
|
+
async requestRaw(path, opts) {
|
|
341
|
+
return (await executeWithAuthRefresh(path, opts ?? {})).response;
|
|
342
|
+
},
|
|
343
|
+
async requestParsed(schema, path, opts) {
|
|
344
|
+
const read = await readJson(path, opts);
|
|
345
|
+
return parseJsonResponse(read.text, schema, read.context);
|
|
346
|
+
},
|
|
347
|
+
async requestStream(path, opts) {
|
|
348
|
+
const { response, prepared } = await executeWithAuthRefresh(path, {
|
|
349
|
+
...opts,
|
|
350
|
+
expectContentType: opts?.expectContentType ?? "binary"
|
|
351
|
+
});
|
|
352
|
+
if (!response.body) throw new NetworkError("Response had no body to stream", {
|
|
353
|
+
method: prepared.method,
|
|
354
|
+
url: prepared.url,
|
|
355
|
+
cause: "missing body"
|
|
356
|
+
});
|
|
357
|
+
return response.body;
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function skippedError(skipped) {
|
|
362
|
+
return skipped.kind === "refused" ? skipped.refusal : skipped.failure;
|
|
363
|
+
}
|
|
364
|
+
function fallBackTo(fallback) {
|
|
365
|
+
return (error) => {
|
|
366
|
+
const profile = fallback();
|
|
367
|
+
if (profile !== null && isNonInterruptFailure(error)) return profile;
|
|
368
|
+
throw error;
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
function tagOf(profile) {
|
|
372
|
+
return profile === null ? null : profile.version.tag;
|
|
373
|
+
}
|
|
374
|
+
function buildUrl(baseUrl, path, query) {
|
|
375
|
+
const normalizedPath = path.startsWith("/") ? path : `/${path}`;
|
|
376
|
+
const target = new URL(baseUrl + normalizedPath);
|
|
377
|
+
if (query) for (const [key, value] of Object.entries(query)) {
|
|
378
|
+
if (value === void 0) continue;
|
|
379
|
+
if (Array.isArray(value)) for (const entry of value) target.searchParams.append(key, String(entry));
|
|
380
|
+
else target.searchParams.append(key, String(value));
|
|
381
|
+
}
|
|
382
|
+
return target.toString();
|
|
383
|
+
}
|
|
384
|
+
function acceptHeader(expected) {
|
|
385
|
+
if (expected === "json") return JSON_CONTENT_TYPE;
|
|
386
|
+
if (expected === "text") return "text/*";
|
|
387
|
+
return "*/*";
|
|
388
|
+
}
|
|
389
|
+
function assertContentType(response, prepared) {
|
|
390
|
+
if (prepared.expectContentType === "binary") return;
|
|
391
|
+
const contentType = response.headers.get("content-type");
|
|
392
|
+
if (contentType === null) throwContentTypeMismatch(response, prepared, prepared.expectContentType);
|
|
393
|
+
if (prepared.expectContentType === "json" && !contentType.includes("application/json")) throwContentTypeMismatch(response, prepared, "json");
|
|
394
|
+
if (prepared.expectContentType === "text" && !contentType.startsWith(TEXT_CONTENT_TYPE_PREFIX)) throwContentTypeMismatch(response, prepared, "text");
|
|
395
|
+
}
|
|
396
|
+
function throwContentTypeMismatch(response, prepared, expected) {
|
|
397
|
+
const actual = response.headers.get("content-type") ?? "no content-type";
|
|
398
|
+
throw new HttpError({
|
|
399
|
+
status: response.status,
|
|
400
|
+
statusText: response.statusText,
|
|
401
|
+
method: prepared.method,
|
|
402
|
+
url: prepared.url,
|
|
403
|
+
responseHeaders: response.headers,
|
|
404
|
+
rawBody: null,
|
|
405
|
+
overrideUserMessage: `Expected ${expected} response but got ${actual}`
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
async function readBodyForError(response) {
|
|
409
|
+
try {
|
|
410
|
+
return Buffer.from(await response.arrayBuffer()).subarray(0, ERROR_BODY_BYTE_CAP).toString("utf8");
|
|
411
|
+
} catch (error) {
|
|
412
|
+
return `[body read failed: ${errorMessage(error)}]`;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
//#endregion
|
|
416
|
+
export { createTransport as n, DEFAULT_TIMEOUT_MS as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { m as CollectionTreeNode } from "./collection-
|
|
1
|
+
import { d as writeJson, it as formatFlags, lt as profileFlag, rt as connectionFlags, yt as ConfigError } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { m as CollectionTreeNode } from "./collection-B2wRXyTF.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/collection/tree.ts
|
|
6
6
|
const CollectionTreeResponse = z.array(CollectionTreeNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { i as tableSelectorFlags, n as parseTableSelectors } from "./table-selector-flags-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { i as tableSelectorFlags, n as parseTableSelectors } from "./table-selector-flags-p4jun7-v.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/commands/library/unpublish.ts
|
|
6
6
|
const LibraryUnpublishResult = z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as collectForOutput } from "./window-
|
|
4
|
-
import { d as DependencyNodeCompact } from "./dependency-
|
|
5
|
-
import { i as dependencyNodeView } from "./dependency-
|
|
6
|
-
import { a as readItemFilters, n as itemFilterFlags } from "./filter-flags-
|
|
1
|
+
import { ct as outputFlags, dt as listEnvelopeSchema, lt as profileFlag, o as renderList, ot as listFlags, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as collectForOutput } from "./window-CfK_j6m1.mjs";
|
|
4
|
+
import { d as DependencyNodeCompact } from "./dependency-qP1hx2YN.mjs";
|
|
5
|
+
import { i as dependencyNodeView } from "./dependency-BACk_cVP.mjs";
|
|
6
|
+
import { a as readItemFilters, n as itemFilterFlags } from "./filter-flags-DTDcU7OI.mjs";
|
|
7
7
|
//#region src/commands/dependency/unreferenced.ts
|
|
8
8
|
const DependencyUnreferencedListEnvelope = listEnvelopeSchema(DependencyNodeCompact);
|
|
9
9
|
var unreferenced_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { c as TimelineUpdateInput, t as Timeline } from "./timeline-
|
|
7
|
-
import { n as timelineView } from "./timeline-
|
|
6
|
+
import { c as TimelineUpdateInput, t as Timeline } from "./timeline-DcsCXNUt.mjs";
|
|
7
|
+
import { n as timelineView } from "./timeline-BgWz8DYK.mjs";
|
|
8
8
|
//#region src/commands/timeline/update.ts
|
|
9
9
|
var update_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { a as PulseUpdateInput, t as Pulse } from "./pulse-Dz0ocv0l.mjs";
|
|
7
|
-
import { t as pulseView } from "./pulse-
|
|
7
|
+
import { t as pulseView } from "./pulse-CFj1WfIC.mjs";
|
|
8
8
|
//#region src/commands/subscription/update.ts
|
|
9
9
|
var update_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { i as GlossaryUpdateInput, t as Glossary } from "./glossary-
|
|
5
|
-
import { t as glossaryView } from "./glossary-
|
|
6
|
-
import { n as readEntryInput, t as entryFlags } from "./entry-flags-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { i as GlossaryUpdateInput, t as Glossary } from "./glossary-QN-hHfOT.mjs";
|
|
5
|
+
import { t as glossaryView } from "./glossary-BkGmCI4X.mjs";
|
|
6
|
+
import { n as readEntryInput, t as entryFlags } from "./entry-flags-DjICpQkc.mjs";
|
|
7
7
|
//#region src/commands/glossary/update.ts
|
|
8
8
|
var update_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { c as DashboardUpdateInput, o as DashboardDetail } from "./dashboard-Phz3XpRM.mjs";
|
|
7
7
|
import { n as dashboardView } from "./dashboard-XSTr9QCr.mjs";
|
|
8
|
-
import { t as preflightDashcardCardReferences } from "./preflight-
|
|
8
|
+
import { t as preflightDashcardCardReferences } from "./preflight-CiTgqNUy.mjs";
|
|
9
9
|
//#region src/commands/dashboard/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
11
11
|
meta: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as SnippetUpdateInput, t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
7
7
|
import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { a as FieldDetail, g as hasDataSensitivity, l as FieldUpdateInput } from "./field-5nivEfd6.mjs";
|
|
7
7
|
import { c as fieldView, l as fieldWithDataSensitivityView } from "./field-wmN6raOG.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Q as parseInteger, t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { r as givenValue } from "./input-
|
|
5
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { G as chainRequestFailure, J as isBlank, St as MetabaseError, Tt as ResponseShapeError, c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags, yt as ConfigError } from "./cli.mjs";
|
|
2
|
+
import { Q as parseInteger, t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { r as givenValue } from "./input-AXP2LCOV.mjs";
|
|
5
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
6
6
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
7
|
-
import { g as CollectionUpdateInput, r as Collection } from "./collection-
|
|
8
|
-
import { t as parseEnumFlag } from "./parse-enum-
|
|
9
|
-
import { n as collectionView } from "./collection-
|
|
7
|
+
import { g as CollectionUpdateInput, r as Collection } from "./collection-B2wRXyTF.mjs";
|
|
8
|
+
import { t as parseEnumFlag } from "./parse-enum-B2rGiC6p.mjs";
|
|
9
|
+
import { n as collectionView } from "./collection-CTnYZ2Jj.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
//#region src/commands/collection/update-flags.ts
|
|
12
12
|
const ROOT_PARENT = "root";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
2
|
import { c as NotificationUpdateInput, n as Notification } from "./notification-DaA4bBHW.mjs";
|
|
3
|
-
import { t as notificationView } from "./notification-
|
|
4
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
5
|
-
import { t as parseId } from "./parse-id-
|
|
3
|
+
import { t as notificationView } from "./notification-W2SVssyY.mjs";
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
5
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
6
6
|
import { t as describeAlert } from "./summary-BytbDz6e.mjs";
|
|
7
|
-
import { t as readBody } from "./body-
|
|
7
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
8
8
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
9
9
|
//#region src/commands/alert/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as MeasureUpdateInput, t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { o as preflightMbql5Query, r as MEASURE_DEFINITION_LABELS, s as skipValidateFlag } from "./validate-query-CYUvRvVM.mjs";
|
|
8
8
|
import { t as measureView } from "./measure-4P0bOlZ3.mjs";
|
|
9
9
|
//#region src/commands/measure/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { i as TimelineEvent, s as TimelineEventUpdateInput } from "./timeline-
|
|
7
|
-
import { t as timelineEventView } from "./timeline-
|
|
6
|
+
import { i as TimelineEvent, s as TimelineEventUpdateInput } from "./timeline-DcsCXNUt.mjs";
|
|
7
|
+
import { t as timelineEventView } from "./timeline-BgWz8DYK.mjs";
|
|
8
8
|
//#region src/commands/timeline-event/update.ts
|
|
9
9
|
var update_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as readBody } from "./body-
|
|
1
|
+
import { c as renderSummary, ct as outputFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Ckns6TKK.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-Cv5eM7sg.mjs";
|
|
4
|
+
import { t as readBody } from "./body-BkkQkGJg.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { i as DocumentUpdateInput, t as Document } from "./document-
|
|
7
|
-
import { t as documentView } from "./document-
|
|
6
|
+
import { i as DocumentUpdateInput, t as Document } from "./document-UMG6me2P.mjs";
|
|
7
|
+
import { t as documentView } from "./document-DVIu3Vj4.mjs";
|
|
8
8
|
//#region src/commands/document/update.ts
|
|
9
9
|
var update_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|