@metabase/cli 0.5.0 → 0.5.2
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-C0BQHjJd.mjs} +5 -5
- package/dist/{alert-DMlSjPEv.mjs → alert-mXHOt00T.mjs} +7 -7
- package/dist/{alerts-s3al16NZ.mjs → alerts-CyB1Z7AU.mjs} +6 -6
- package/dist/{append-CbGmdeLw.mjs → append-DeHhUAeY.mjs} +4 -4
- package/dist/{archive-DvbaSglr.mjs → archive-B1MA5MZp.mjs} +5 -5
- package/dist/{archive-CnDriekB.mjs → archive-Bi-Sfq5T.mjs} +5 -5
- package/dist/{archive-BFmx4B91.mjs → archive-CCKxZEuq.mjs} +5 -5
- package/dist/{archive-BZCYIBhQ.mjs → archive-CDSAXKKB.mjs} +5 -5
- package/dist/{archive-5EY9UJU_.mjs → archive-CfNLlebd.mjs} +6 -6
- package/dist/archive-CjVd1fJ5.mjs +32 -0
- package/dist/{archive-Ce4eArrs.mjs → archive-CpvpGZlz.mjs} +3 -3
- package/dist/{archive-DDO2XX0E.mjs → archive-DRMXvkiI.mjs} +4 -4
- package/dist/{archive-a05W75XH.mjs → archive-DfDqPgtk.mjs} +3 -3
- package/dist/{archive-DzSdJVqE.mjs → archive-DpgtAdEa.mjs} +5 -5
- package/dist/{archive-C_UHeanE.mjs → archive-HCVTRXI2.mjs} +3 -3
- package/dist/{archive-DW7x0IFB.mjs → archive-qy0CFo1s2.mjs} +5 -5
- package/dist/{auth-DOz7KW5E.mjs → auth-_cdypXeX.mjs} +5 -5
- package/dist/{body-Di7940x_.mjs → body-C0VnEiRV.mjs} +2 -2
- package/dist/{branch-flag-CfJ8vwgu.mjs → branch-flag-CPTQ4wXp.mjs} +1 -1
- package/dist/{branches-BC-vlk6i.mjs → branches-C7mNYAky.mjs} +3 -3
- package/dist/{breaking-ByrjsFjq.mjs → breaking-BindR3ZW.mjs} +6 -6
- package/dist/{broken-DLSk1T88.mjs → broken-SoXfkx7d.mjs} +8 -8
- package/dist/{bulk-discard-values-VKGj8c7z.mjs → bulk-discard-values-D_d5_1w5.mjs} +5 -5
- package/dist/{bulk-edit-CpuleeCQ.mjs → bulk-edit-Cce05vb_.mjs} +5 -5
- package/dist/{bulk-rescan-values-DeGwiqLS.mjs → bulk-rescan-values-DIQN4VT_.mjs} +5 -5
- package/dist/{bulk-sync-schema-BKVhauW1.mjs → bulk-sync-schema-DLWf5dCl.mjs} +5 -5
- package/dist/{cancel-qKj45001.mjs → cancel-rnd6UI-6.mjs} +3 -3
- package/dist/{cancel-task-nmBBd1Ky.mjs → cancel-task-acq1GT6Z.mjs} +4 -4
- package/dist/{card-DSrgU7lT.mjs → card-3NmUiU5F.mjs} +1 -1
- package/dist/card-BnL92zoT.mjs +25 -0
- package/dist/{card-Bv4ZN0oV.mjs → card-QR3zEu6E.mjs} +39 -26
- package/dist/{cards-Bq73s48q.mjs → cards-DmzPtx81.mjs} +6 -6
- package/dist/cli.mjs +200 -49
- package/dist/{client-BmURNkkW.mjs → client-D-Aw6JLk.mjs} +202 -618
- package/dist/{collection-C03LXnCT.mjs → collection-D5vt2IJ_.mjs} +1 -1
- package/dist/{collection-zrZoJfgR.mjs → collection-DNmFKALA.mjs} +12 -3
- package/dist/collection-DRHGwFSL.mjs +21 -0
- package/dist/{collection-namespace-DaDzK31i.mjs → collection-namespace-Dl8_7xII.mjs} +1 -1
- package/dist/{content-translation-BlG41YrA.mjs → content-translation-DxT1OMnP.mjs} +3 -3
- package/dist/{copy-DTiYs_a2.mjs → copy-BTdTiDQo.mjs} +6 -6
- package/dist/{copy-DOKlVa7H.mjs → copy-CyFf3e2Y.mjs} +6 -6
- package/dist/{copy-flags-BhGWC5kS.mjs → copy-flags-CTM91pxH.mjs} +2 -2
- package/dist/{create-DraZzrLO.mjs → create-B3QZpifA.mjs} +7 -7
- package/dist/{create-B5BwdPwT.mjs → create-B6dABrs7.mjs} +6 -6
- package/dist/create-BH6zpwKD.mjs +34 -0
- package/dist/{create-BpwZJZxb.mjs → create-Bg3WTMMU.mjs} +5 -5
- package/dist/{create-JaFhqysM.mjs → create-BwIOlpLc.mjs} +5 -5
- package/dist/{create-BKKNIe93.mjs → create-C3rabvE_.mjs} +5 -5
- package/dist/{create-Duj_2YIF.mjs → create-Ce5YVusp.mjs} +4 -4
- package/dist/create-Ch-NbeMr.mjs +48 -0
- package/dist/{create-Cob0gLsA.mjs → create-CuJJd7Rh.mjs} +5 -5
- package/dist/{create-1rLk8b5q.mjs → create-D6NLpIzV.mjs} +3 -3
- package/dist/{create-B1bX6ngX.mjs → create-DeCPAYJi.mjs} +4 -4
- package/dist/{create-d0trLAzB.mjs → create-DeiBnRRz.mjs} +6 -6
- package/dist/{create-C0kz0oYc.mjs → create-DiG165B2.mjs} +5 -5
- package/dist/{create-B1QDNU1x.mjs → create-Dn8V5siS.mjs} +6 -6
- package/dist/{create-BXX_n64u.mjs → create-DsCydgm22.mjs} +5 -5
- package/dist/{create-vOw8gmBU.mjs → create-GU8_GNbN.mjs} +3 -3
- package/dist/{create-branch-B5jB4tKk.mjs → create-branch-C4Ql9G2g.mjs} +4 -4
- package/dist/{create-DUytP2Y1.mjs → create-qtTB8rIE.mjs} +4 -4
- package/dist/{create-DPggIXfn.mjs → create-roJbQOmm.mjs} +4 -4
- package/dist/{csv-DfExp9H_.mjs → csv-DmuyyLdz.mjs} +4 -4
- package/dist/{current-task-CbXIH_RA.mjs → current-task-C2PPBVVv.mjs} +4 -4
- package/dist/dashboard-Bq1pae4N.mjs +35 -0
- package/dist/{dashboard-Phz3XpRM.mjs → dashboard-Chjy5GKR.mjs} +52 -5
- package/dist/{dashboard-XSTr9QCr.mjs → dashboard-D5E3fMKh.mjs} +1 -1
- package/dist/data-action-BZ2PvlaP.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-CxykzTAA.mjs} +14 -3
- package/dist/{database-DoNoZ8Yc.mjs → database-D8XzgJEz.mjs} +19 -2
- package/dist/{dataset-DZgJm5hP.mjs → dataset-DIQLAp2P.mjs} +5 -4
- package/dist/db-BgKKN1-4.mjs +25 -0
- package/dist/{delete-DJ7SNXiH.mjs → delete-5ZOvFr-7.mjs} +4 -4
- package/dist/delete-B3aylPHD.mjs +44 -0
- package/dist/{delete-hwPqKXeY.mjs → delete-CH32Ew4m.mjs} +4 -4
- package/dist/{delete-D0xFMRRq.mjs → delete-CS6hsBnd.mjs} +4 -4
- package/dist/{delete-hcw_4pBG.mjs → delete-DeqGTuwO.mjs} +4 -4
- package/dist/{delete-9xHRd2CG.mjs → delete-DiZg2wit.mjs} +4 -4
- package/dist/delete-DtIbkF42.mjs +44 -0
- package/dist/{delete-B4BfGfiJ.mjs → delete-_XC6R-Jn.mjs} +4 -4
- package/dist/{delete-runtime-DkgYUQ_n.mjs → delete-runtime-DRGveT8H.mjs} +1 -1
- package/dist/{delete-table-DhTMft7u.mjs → delete-table-BEuMlqw1.mjs} +4 -4
- package/dist/{dependencies-B8H2gA04.mjs → dependencies-DD48u9i3.mjs} +5 -5
- package/dist/dependency-6kfpR8Ga.mjs +15 -0
- package/dist/{dependency-tQBxYjFX.mjs → dependency-CaC6XuTY.mjs} +2 -2
- package/dist/{dependency-Dc33mjgd.mjs → dependency-Dxvb2Znu.mjs} +2 -2
- package/dist/{dependents-B2GcS5kB.mjs → dependents-ByfHs8pO.mjs} +9 -9
- package/dist/{dirty-Cz2rUd6S.mjs → dirty-DsrGfLit.mjs} +5 -5
- package/dist/{discard-values-QWuWGaVK.mjs → discard-values-BfpwwC62.mjs} +5 -5
- package/dist/document-C0mZEg5w.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-kpgGtfpw.mjs} +2 -2
- package/dist/{eid-Ex4G-ZlN.mjs → eid-Tp-ACZ4O.mjs} +4 -5
- package/dist/{eid-translation-zEHtr5Oc.mjs → eid-translation-Ba92VOHe.mjs} +1 -0
- package/dist/{entity-DBKPaMr5.mjs → entity-DjDkaMkB.mjs} +2 -2
- package/dist/{entry-flags-DgY3IXFe.mjs → entry-flags-nhBrUS6p.mjs} +4 -4
- package/dist/{events-BibJ4ya0.mjs → events-Dm9-ofXu.mjs} +6 -6
- package/dist/execute-BL0dAlrp.mjs +45 -0
- package/dist/{export-U8MdaatW.mjs → export-CIW-dHft.mjs} +24 -12
- package/dist/{export-flags-BrfeyE8D.mjs → export-flags-CpukgETM.mjs} +14 -6
- package/dist/{export-preflight-A28L45au.mjs → export-preflight-BMlz3Hp9.mjs} +5 -5
- package/dist/field-BUkyWiWk.mjs +21 -0
- package/dist/{field-wmN6raOG.mjs → field-BVz4AS3f.mjs} +1 -1
- package/dist/{field-5nivEfd6.mjs → field-DoWQUl7V.mjs} +58 -45
- package/dist/{fields-i1TFa_th.mjs → fields-CcerFaiu.mjs} +6 -6
- package/dist/{filter-flags-Bm3vuSM-.mjs → filter-flags-DhE4olyf.mjs} +5 -4
- package/dist/{fks-Dcfn3-73.mjs → fks-CYfBesHV.mjs} +6 -6
- package/dist/{get-D0NZ0ZO1.mjs → get--E7UvR-v.mjs} +5 -5
- package/dist/{get-Dz3dNirC.mjs → get-B0RQPTV-2.mjs} +5 -5
- package/dist/{get-CCLWWqTD.mjs → get-BFloqjrN.mjs} +4 -4
- package/dist/{get-B4_3DID6.mjs → get-BLnQ2aut.mjs} +5 -5
- package/dist/{get-DqYn9mez.mjs → get-BaiyMem3.mjs} +4 -4
- package/dist/{get-CobILQ_7.mjs → get-Be7yjY9v.mjs} +6 -6
- package/dist/get-BvEHWLGL.mjs +32 -0
- package/dist/get-CEJE9Rmp.mjs +31 -0
- package/dist/{get-EKBYludD.mjs → get-CRfrkxqc.mjs} +3 -3
- package/dist/{get-DPZUIPjv.mjs → get-CZgAr8rM.mjs} +5 -5
- package/dist/{get-BKDTRMNU.mjs → get-Cj3-w_Nu.mjs} +5 -5
- package/dist/{get-BCdtCwaG.mjs → get-CmxYFUuR.mjs} +3 -3
- package/dist/{get-Cwj1Q-at.mjs → get-DHSuVxrH.mjs} +5 -5
- package/dist/{get-C3ojRVJ_.mjs → get-DKbGKa6F.mjs} +4 -4
- package/dist/{get-HFQSttF3.mjs → get-DRhcS76J.mjs} +5 -5
- package/dist/{get-BiPSePQc.mjs → get-Dp45rXRS.mjs} +3 -3
- package/dist/{get-DUwX-RU82.mjs → get-HzDQViDP2.mjs} +5 -5
- package/dist/{get-CcwRn8Y2.mjs → get-LRTRu85E.mjs} +5 -5
- package/dist/{get-IjoHBExI.mjs → get-RCDF-hEq.mjs} +5 -5
- package/dist/{get-CVpIQb8v.mjs → get-eNRULmE5.mjs} +5 -5
- package/dist/{get-hAoJtVCK.mjs → get-p2sZvp7v.mjs} +3 -3
- package/dist/{get-run-B2SnsZSY.mjs → get-run-C3AHKn3-.mjs} +4 -4
- package/dist/git-sync-CNTB5jvI.mjs +29 -0
- package/dist/{git-sync-Ch1V1fEK.mjs → git-sync-D1aKczo6.mjs} +15 -8
- package/dist/{git-sync-COokpYgc.mjs → git-sync-DP4wQFzm.mjs} +18 -1
- package/dist/glossary-B9Eo4hXc.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-BGOYocJc.mjs} +6 -6
- package/dist/{group-B3X3LTcU.mjs → group-81zoQcEP.mjs} +1 -1
- package/dist/{has-remote-changes-DCMpqGgE.mjs → has-remote-changes-DxsRvZsw.mjs} +4 -4
- package/dist/{import-C7MZhKo6.mjs → import-izn2_OsW.mjs} +7 -7
- package/dist/{is-dirty-DpLyHebS.mjs → is-dirty-DHYYRl6Y.mjs} +2 -2
- package/dist/{items-1ME_eg27.mjs → items-mIoZBqUc.mjs} +6 -6
- package/dist/{key-DMtgTOwN.mjs → key-BYEv4Wgq.mjs} +2 -2
- package/dist/{library-D2ogEIfI.mjs → library-5I0TlXmf.mjs} +5 -5
- package/dist/{library-fWEv38OB.mjs → library-DKIqzyUk.mjs} +2 -2
- package/dist/{library-CP-9yepy.mjs → library-wUiD2jbw.mjs} +1 -1
- package/dist/{list-BUwDGyIu.mjs → list-B6TYzXyW.mjs} +5 -5
- package/dist/{list-Ud7F0XdU.mjs → list-B8FPpgct.mjs} +3 -3
- package/dist/{list-B0h-j1E7.mjs → list-BEBAq1xc.mjs} +5 -5
- package/dist/{list-OXiXtdiM.mjs → list-BKhJfFyB.mjs} +5 -5
- package/dist/{list-STy8UHs2.mjs → list-BxIulkp3.mjs} +6 -6
- package/dist/{list-CQi3AgS5.mjs → list-C-f-G-cC.mjs} +5 -5
- package/dist/{list-dCi6OaIE.mjs → list-C1dEh2yq.mjs} +6 -6
- package/dist/{list-DkCadZ2E.mjs → list-C3CXHKTW.mjs} +5 -5
- package/dist/{list-LMlJ4uAY.mjs → list-C6roDyBd.mjs} +6 -6
- package/dist/{list-CJ5FyCnL.mjs → list-CT7AOXTS.mjs} +4 -4
- package/dist/{list-BUZ91ctZ.mjs → list-CTlIVHeG.mjs} +5 -5
- package/dist/list-CmOTwt_z.mjs +35 -0
- package/dist/list-CpxEOoqw.mjs +48 -0
- package/dist/{list-DzP7YXdZ.mjs → list-CuEPFHrk.mjs} +3 -3
- package/dist/{list-DBAEy3Rx.mjs → list-D8jiz8YP.mjs} +3 -3
- package/dist/{list-NINy7ybI.mjs → list-DV4wojtv.mjs} +4 -4
- package/dist/{list-BXcDPU5d.mjs → list-DVnPzc5m.mjs} +6 -6
- package/dist/list-NeImhwLD.mjs +28 -0
- package/dist/{list-CVh8DHOO.mjs → list-OWPg67JC.mjs} +5 -5
- package/dist/{list-C9996vbS.mjs → list-O_nmgwSj.mjs} +3 -3
- package/dist/{list-C1oEpUZG.mjs → list-jT5ndEGr.mjs} +3 -3
- package/dist/{login-BMON3Fft.mjs → login-DOW1mr40.mjs} +15 -8
- package/dist/{logout-Cx934GzW.mjs → logout-BQ8wywf7.mjs} +2 -2
- package/dist/{measure-CUqJtDNm.mjs → measure-Bz-bGn-Z.mjs} +6 -6
- package/dist/{moderation-review-BdqEH6N1.mjs → moderation-review-Bf9bPNQI.mjs} +1 -1
- package/dist/{notification-CCZ9mrOw.mjs → notification-W2SVssyY.mjs} +1 -1
- package/dist/{parameter-Celg0wZa.mjs → parameter-DvRQMKd2.mjs} +6 -6
- package/dist/{parameter-values-DCrU02Az.mjs → parameter-values-B7rr6fcy.mjs} +21 -7
- package/dist/{parse-enum-Do5Cptbv.mjs → parse-enum-DAcTzG1q.mjs} +1 -1
- package/dist/{parse-id-oCbmouCn.mjs → parse-id-5BZGQ9Vd.mjs} +1 -1
- package/dist/{parse-ref-Df8gusl4.mjs → parse-ref-ByXc-pls.mjs} +1 -1
- package/dist/{parse-text-CVrP7GmZ.mjs → parse-text-FgX60vIg.mjs} +1 -1
- package/dist/{path-DTuSDGd6.mjs → path-CHQguAPa.mjs} +4 -4
- package/dist/{poll-BKo5dK0l.mjs → poll-CgtcJopL.mjs} +2 -2
- package/dist/{preflight-UeYuGDPr.mjs → preflight-ChTKhB8Y.mjs} +2 -2
- package/dist/{process-BpmZXbcw.mjs → process-aqXm5QgC.mjs} +1 -1
- package/dist/{publish-D3GwLC-K.mjs → publish-CaoFOucS.mjs} +4 -4
- package/dist/{pulse-Dz0ocv0l.mjs → pulse-CC81N2_0.mjs} +1 -1
- package/dist/{pulse-DzVPfb5J.mjs → pulse-JPrq6NFP.mjs} +2 -2
- package/dist/{query-Ct697cY-.mjs → query-0u1WR1bV.mjs} +13 -12
- package/dist/query-BKtMP5eH.mjs +13 -0
- package/dist/{query-B1Cp9EO6.mjs → query-CzDBwAZD.mjs} +17 -7
- package/dist/{remapping-RsoPWE7c.mjs → remapping-CodmT28F.mjs} +5 -5
- package/dist/{remove-collection-BJo3Wd9K.mjs → remove-collection-DfUsf6Dd.mjs} +5 -5
- package/dist/{render-C_ev6qoW.mjs → render-DP6UoZNT.mjs} +2 -2
- package/dist/{replace-BSAGp3cR.mjs → replace-qWiUOgmn.mjs} +4 -4
- package/dist/{requirement-check-T3bjQ0Mr.mjs → requirement-check-sfmyH2PH.mjs} +2 -2
- package/dist/{rescan-values-rpro4Kw2.mjs → rescan-values-BcrhdSj_.mjs} +5 -5
- package/dist/{rescan-values-CE62_2dc.mjs → rescan-values-BuDmeda3.mjs} +5 -5
- package/dist/{run-BI1QO9Kn.mjs → run-BBRnFayr.mjs} +7 -7
- package/dist/{run-B3BRodEp.mjs → run-BG_5lR0x.mjs} +4 -4
- package/dist/run-DXXD-CnS.mjs +63 -0
- package/dist/{runs-CUseZezf.mjs → runs-CovgMSwy.mjs} +5 -5
- package/dist/{runtime-C5Ha6Ou8.mjs → runtime-Cmes70jO.mjs} +63 -80
- package/dist/{schema-tables-C7YkyRh0.mjs → schema-tables-CjKl8jr5.mjs} +6 -6
- package/dist/{schemas-Bj5sJ9uB.mjs → schemas-CAGvBAD_.mjs} +4 -4
- package/dist/{search-BAXg-EJw.mjs → search-1et9tv_s.mjs} +22 -4
- package/dist/{search-BsAwK7Rk.mjs → search-DFU6FHRd.mjs} +6 -6
- package/dist/{search-CB1A4HWx.mjs → search-OpYS2Ub4.mjs} +21 -6
- package/dist/{segment-BEjaeLc5.mjs → segment-D-SKpFzF.mjs} +6 -6
- package/dist/{send-Dfh8d1gG.mjs → send-DNu83_3E.mjs} +3 -3
- package/dist/{set-DA8dKyzi.mjs → set-CGYZcLVo.mjs} +4 -4
- package/dist/{set-active-AyjKtBD-.mjs → set-active-32IaLx1O.mjs} +4 -4
- package/dist/set-data-actions-DRhgAfhE.mjs +46 -0
- package/dist/{set-sensitivity-D0613dHA.mjs → set-sensitivity-D_i3XEe8.mjs} +6 -6
- package/dist/{setting-B-bxCkC0.mjs → setting-BBn9Lv9J.mjs} +4 -4
- package/dist/{setup-Bvvqlz9d.mjs → setup-8d7Uplhy.mjs} +3 -3
- package/dist/{signal-Dm4N0Bcc.mjs → signal-D8MH3LMN.mjs} +1 -1
- package/dist/{skill-list-DkuCf0k4.mjs → skill-list-D2FhhYS3.mjs} +1 -1
- package/dist/{skills-DlDCTGVE.mjs → skills-BZGd_9d3.mjs} +2 -2
- package/dist/{skills-DxrO7HUz.mjs → skills-BeIDC-_H.mjs} +3 -3
- package/dist/snippet-CpZ5cJ_y.mjs +19 -0
- package/dist/{stash-j9JPv3ns.mjs → stash-Dyc1xZ8u.mjs} +6 -6
- package/dist/{status-DcbvbRc5.mjs → status-CQZwl1PX.mjs} +3 -3
- package/dist/{status-DxNcrfnI.mjs → status-lCN8unWe.mjs} +37 -16
- package/dist/{subscription-CSR2t-xK.mjs → subscription-CEFxmtGH.mjs} +6 -6
- package/dist/{subscriptions--0YvW40u.mjs → subscriptions-AU14uznL.mjs} +6 -6
- package/dist/{summary-Dslv78-r.mjs → summary-Do9IBOQM.mjs} +5 -5
- package/dist/{sync-schema-Dgij5ICd.mjs → sync-schema-B3nyoKZl.mjs} +5 -5
- package/dist/{sync-schema-BSJiokQf.mjs → sync-schema-_gw9RQyF.mjs} +6 -6
- package/dist/{sync-task-a1zyF1Qb.mjs → sync-task-DNKG9Bk4.mjs} +4 -3
- package/dist/{table-Uvu1roSx.mjs → table-BDsqRU7a.mjs} +3 -3
- package/dist/{table-zAdW5_3H.mjs → table-CF7zW9cI.mjs} +33 -20
- package/dist/table-Cb_Uvw8m.mjs +26 -0
- package/dist/{table-selector-flags-B9OiA3Z1.mjs → table-selector-flags-CHfrVpYQ.mjs} +3 -3
- package/dist/{text-821Rn8M9.mjs → text-C2VwKF9D.mjs} +1 -1
- package/dist/{timeline-uDCmwGFT.mjs → timeline-BgWz8DYK.mjs} +1 -1
- package/dist/{timeline-CCSU2qOS.mjs → timeline-DcsCXNUt.mjs} +5 -1
- package/dist/{timeline-event-CSzx8EDP.mjs → timeline-event-B-nGnoVL.mjs} +6 -6
- package/dist/timeline-x0s_3sfc.mjs +21 -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-Dlx2c6II.mjs +22 -0
- package/dist/transform-kP11Mv9_.mjs +28 -0
- package/dist/{transform-tag-DHg7j15d.mjs → transform-tag-dKCqQPTd.mjs} +5 -5
- package/dist/transform-test-Bexa_K89.mjs +173 -0
- package/dist/transform-test-C49ZTK7M.mjs +32 -0
- package/dist/transform-test-jFuzVhlT.mjs +16 -0
- package/dist/{transforms-DwxPfMiG.mjs → transforms-DRAws1f4.mjs} +5 -5
- package/dist/transport-Ck4anhoc.mjs +416 -0
- package/dist/{tree-COFmA20J.mjs → tree-Ddsj298M.mjs} +3 -3
- package/dist/{unpublish-BQClh4U7.mjs → unpublish-BMfjQ8UV.mjs} +3 -3
- package/dist/{unreferenced-DKc0zZDl.mjs → unreferenced-DRQrvH5r.mjs} +6 -6
- package/dist/{update-CMRWXoZ2.mjs → update-0AoF6QJ_.mjs} +4 -4
- package/dist/{update-BVFfoopT.mjs → update-6sfqiInZ.mjs} +5 -5
- package/dist/{update-MxvqmZ3z.mjs → update-8eXJso_l.mjs} +6 -6
- package/dist/{update-BNwjjMk6.mjs → update-BCC1Igr2.mjs} +5 -5
- package/dist/{update-CFfr1ZdL.mjs → update-BIL0JPqm.mjs} +4 -4
- package/dist/{update-BVMgrMy7.mjs → update-BQLTaw3z.mjs} +6 -6
- package/dist/{update-CPmPnEvm.mjs → update-Bpsdi6kM.mjs} +6 -6
- package/dist/{update-kM3TDlEp.mjs → update-BtfUX9CN.mjs} +8 -8
- package/dist/{update-myfBF5qV.mjs → update-C19B1Sry.mjs} +6 -6
- package/dist/{update-Ca8LSZer.mjs → update-C1VwtJWu.mjs} +5 -5
- package/dist/update-C1x90FSH.mjs +52 -0
- package/dist/{update-C9HK3i8s.mjs → update-CGpiLu7N.mjs} +8 -8
- package/dist/{update-Dwr3n7_n.mjs → update-CnxzmPRG.mjs} +7 -7
- package/dist/update-D1aKeWfo.mjs +41 -0
- package/dist/{update-Bgy2amR0.mjs → update-DlFHoUxe.mjs} +6 -6
- package/dist/{update-DJwu8UT2.mjs → update-DpP1EEC0.mjs} +6 -6
- package/dist/{update-B-wcIl8T.mjs → update-DrT10fxQ.mjs} +6 -6
- package/dist/{update-B8jQTspb.mjs → update-_hHnM1Hx.mjs} +7 -8
- package/dist/{update-dashcard-C8QN2Qcu.mjs → update-dashcard-CDI0Tnxy.mjs} +7 -7
- package/dist/{update-BBLbEPEP.mjs → update-pXVhyiFo.mjs} +6 -6
- package/dist/{upgrade-BBOEVIRa.mjs → upgrade-Cfouv1Ii.mjs} +4 -4
- package/dist/upload-Cqv-In6j.mjs +13 -0
- package/dist/{upload-CoBd4qBp.mjs → upload-DIEcI5iM.mjs} +3 -3
- package/dist/{upload-CxpXpjCf.mjs → upload-DnLXgUA-.mjs} +3 -3
- package/dist/{uuid-DW30GY7B.mjs → uuid-D0sH5txV.mjs} +2 -2
- package/dist/{validate-n85yMraN.mjs → validate-BQ7vI8_x.mjs} +1 -1
- package/dist/{validate-query-BwXvFFYi.mjs → validate-query-YtH3d5BP.mjs} +7 -3
- package/dist/{values-B6eFE4K5.mjs → values-BFPO6y5o.mjs} +5 -5
- package/dist/{verify-DnU-wXIs.mjs → verify-7fW020r_.mjs} +3 -3
- package/dist/{verify-BSq7x66g.mjs → verify-C-StvB4f.mjs} +5 -5
- package/dist/{verify-Dp8tUbP3.mjs → verify-CuGs0X3C.mjs} +5 -5
- package/dist/{verify-flags-CMpRkMPa.mjs → verify-flags-DEVMB9w0.mjs} +1 -1
- package/dist/{wait-D6Tw4ZxO.mjs → wait-Cvt8xO0h.mjs} +6 -6
- package/dist/{wait-flags-BRUzMI6S.mjs → wait-flags-BnZ-dfE2.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 +136 -0
- package/skill-data/git-sync/SKILL.md +3 -3
- package/skill-data/native-sql/SKILL.md +1 -1
- package/skill-data/transform/SKILL.md +64 -2
- 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/db-C82M3Gpg.mjs +0 -24
- package/dist/dependency-CLznxtLE.mjs +0 -15
- package/dist/document-WhSEyI-3.mjs +0 -20
- package/dist/embedding-i-KqpefC.mjs +0 -9
- 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/input-sRdxNc3T.mjs +0 -61
- package/dist/list-BoVeF8QA.mjs +0 -38
- 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 { Et as NetworkError, Ft as isNonInterruptFailure, K as isRetryableStatus, Mt as errorMessage, Ot as ResponseShapeError, P as CapabilityError, W as HttpError, X as JSON_CONTENT_TYPE, Z as parseJson, jt as ValidationError, kt as TimeoutError } from "./cli.mjs";
|
|
2
|
+
import { G as credentialSecrets, H as serverInfoFromProperties, I as buildNetworkError, J as normalizeUrl, L as isConnectionClosed, Q as createServerProfile, R as PROBE_PATH, U as assertCredentialHeaderSafe, W as credentialAuthHeader, tt as SessionProperties, z as probeBudget } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { n as throwIfAborted, r as untilAborted, t as combineAborts } from "./signal-D8MH3LMN.mjs";
|
|
4
|
+
import { n as featureFailures } from "./requirement-check-sfmyH2PH.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 { St as ConfigError, d as writeJson, it as formatFlags, lt as profileFlag, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { m as CollectionTreeNode } from "./collection-DNmFKALA.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-Cmes70jO.mjs";
|
|
3
|
+
import { i as tableSelectorFlags, n as parseTableSelectors } from "./table-selector-flags-CHfrVpYQ.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, lt as profileFlag, mt as listEnvelopeSchema, o as renderList, ot as listFlags, rt as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
3
|
+
import { t as collectForOutput } from "./window-CfK_j6m1.mjs";
|
|
4
|
+
import { d as DependencyNodeCompact } from "./dependency-CaC6XuTY.mjs";
|
|
5
|
+
import { i as dependencyNodeView } from "./dependency-Dxvb2Znu.mjs";
|
|
6
|
+
import { a as readItemFilters, n as itemFilterFlags } from "./filter-flags-DhE4olyf.mjs";
|
|
7
7
|
//#region src/commands/dependency/unreferenced.ts
|
|
8
8
|
const DependencyUnreferencedListEnvelope = listEnvelopeSchema(DependencyNodeCompact);
|
|
9
9
|
var unreferenced_default = defineMetabaseCommand({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.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,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as SegmentUpdateInput, t as Segment } from "./segment-OsrbUDzw.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { i as SEGMENT_DEFINITION_LABELS, o as preflightMbql5Query, s as skipValidateFlag } from "./validate-query-YtH3d5BP.mjs";
|
|
8
8
|
import { t as segmentView } from "./segment-C_gl5ag6.mjs";
|
|
9
9
|
//#region src/commands/segment/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { t as Table, y as TableUpdateInput } from "./table-
|
|
7
|
-
import { u as tableView } from "./table-
|
|
6
|
+
import { t as Table, y as TableUpdateInput } from "./table-CF7zW9cI.mjs";
|
|
7
|
+
import { u as tableView } from "./table-BDsqRU7a.mjs";
|
|
8
8
|
//#region src/commands/table/update.ts
|
|
9
9
|
var update_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -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
|
|
5
|
-
import { t as
|
|
3
|
+
import { t as notificationView } from "./notification-W2SVssyY.mjs";
|
|
4
|
+
import { t as parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
5
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.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-C0VnEiRV.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,7 +1,7 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
6
|
import { i as TransformTagUpdateInput, t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
|
|
7
7
|
import { t as transformTagView } from "./transform-tag-Dmb4u3-Q.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import { a as PulseUpdateInput, t as Pulse } from "./pulse-
|
|
7
|
-
import { t as pulseView } from "./pulse-
|
|
6
|
+
import { a as PulseUpdateInput, t as Pulse } from "./pulse-CC81N2_0.mjs";
|
|
7
|
+
import { t as pulseView } from "./pulse-JPrq6NFP.mjs";
|
|
8
8
|
//#region src/commands/subscription/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
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.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: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.mjs";
|
|
5
5
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { n as cardView } from "./card-
|
|
8
|
-
import {
|
|
6
|
+
import { i as CardDetail, l as CardUpdateInput } from "./card-QR3zEu6E.mjs";
|
|
7
|
+
import { n as cardView } from "./card-3NmUiU5F.mjs";
|
|
8
|
+
import { o as preflightMbql5Query, s as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-YtH3d5BP.mjs";
|
|
9
9
|
//#region src/commands/card/update.ts
|
|
10
10
|
var update_default = defineMetabaseCommand({
|
|
11
11
|
meta: {
|
|
@@ -34,7 +34,7 @@ var update_default = defineMetabaseCommand({
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
inputSchema: CardUpdateInput,
|
|
37
|
-
outputSchema:
|
|
37
|
+
outputSchema: CardDetail,
|
|
38
38
|
examples: [
|
|
39
39
|
"cat patch.json | mb card update 1",
|
|
40
40
|
"mb card update 1 --file patch.json",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as renderSummary, ct as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.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
|
|
3
|
-
import { t as
|
|
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 parseId } from "./parse-id-5BZGQ9Vd.mjs";
|
|
3
|
+
import { t as defineMetabaseCommand } from "./runtime-Cmes70jO.mjs";
|
|
4
|
+
import { t as readBody } from "./body-C0VnEiRV.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-YtH3d5BP.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({
|