@metabase/cli 0.3.2 → 0.4.0-alpha.release-65-integration-branch.31ca6bb
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-BjVAdZ1n.mjs → add-collection-B-Kczwcj.mjs} +5 -5
- package/dist/{alert-DCLhfwdv.mjs → alert-Ne0ivd5m.mjs} +7 -7
- package/dist/{alerts-DRin_wt2.mjs → alerts-Fakzg9iP.mjs} +6 -6
- package/dist/{append-DQ9rPJHZ.mjs → append-DCDVqPmR.mjs} +4 -4
- package/dist/archive-55sDfnHf.mjs +32 -0
- package/dist/{archive-_c-ISZmi.mjs → archive-BNJit8eD.mjs} +3 -3
- package/dist/{archive-o5cWV3vZ.mjs → archive-BbNqts-V.mjs} +3 -3
- package/dist/{archive-D6xzHaM3.mjs → archive-C93UR4Uc.mjs} +3 -3
- package/dist/{archive-BzVxRqpL.mjs → archive-CGmvQht4.mjs} +5 -5
- package/dist/{archive-COFQAHAL.mjs → archive-CL8wqAzm.mjs} +3 -3
- package/dist/{archive-BVRKE9Ev.mjs → archive-CSdktxvW.mjs} +5 -5
- package/dist/{archive-D3yPvUtz.mjs → archive-CpCSY4RT.mjs} +5 -5
- package/dist/{archive-xcgoVPwv.mjs → archive-DCCkQTjQ.mjs} +5 -5
- package/dist/{archive-BPCgmLcV.mjs → archive-DCE087yD.mjs} +4 -4
- package/dist/{archive-1YVo-Wsu.mjs → archive-DEef7eB8.mjs} +3 -3
- package/dist/{archive-HeRygdKz2.mjs → archive-DIZu7o4C.mjs} +4 -4
- package/dist/{auth-DJn5T6zA.mjs → auth-Bx4QQhqt.mjs} +5 -5
- package/dist/body-CB2eDFFb.mjs +17 -0
- package/dist/branch-flag-pFQPNYKr.mjs +9 -0
- package/dist/{branches-CUyPxeeW.mjs → branches-B6ilUG-7.mjs} +3 -3
- package/dist/breaking-Dg3-8yDF.mjs +36 -0
- package/dist/broken-BNBD4Eo3.mjs +37 -0
- package/dist/bulk-discard-values-DfKXuZpR.mjs +49 -0
- package/dist/bulk-edit-oUCfDQ_M.mjs +53 -0
- package/dist/bulk-rescan-values-B8pNlXUH.mjs +28 -0
- package/dist/bulk-sync-schema-tRp7jBJt.mjs +28 -0
- package/dist/{cancel-BNuVls58.mjs → cancel-Bl4BMkwI.mjs} +3 -3
- package/dist/{cancel-task-DUmlQQpi.mjs → cancel-task-CWWo7vLf.mjs} +4 -4
- package/dist/card-CQD4D8mw.mjs +25 -0
- package/dist/{card-CEkp1mcI.mjs → card-CQNUT9pm.mjs} +1 -1
- package/dist/{card-voh1k4hl.mjs → card-P5mBknsl.mjs} +3 -11
- package/dist/{cards-_gbvw3wp.mjs → cards-BIUYdSIR.mjs} +6 -6
- package/dist/cli.mjs +420 -100
- package/dist/{client-BnK0evYf.mjs → client-BHIFvEg2.mjs} +394 -316
- package/dist/{collection-DYM0p3Xl.mjs → collection-BG3Ksea-.mjs} +1 -1
- package/dist/collection-CuaTd10G.mjs +21 -0
- package/dist/{collection-BxdPxD38.mjs → collection-D3KXhvnc.mjs} +7 -5
- package/dist/{collection-namespace-DM90lA8C.mjs → collection-namespace-ZQePD67z.mjs} +2 -2
- package/dist/{content-translation-CqB3peU9.mjs → content-translation-BRdNdAmn.mjs} +3 -3
- package/dist/copy-BMEaYmTb.mjs +55 -0
- package/dist/copy-CbDfVZRC.mjs +36 -0
- package/dist/copy-flags-anRhAvB5.mjs +32 -0
- package/dist/{create-BIUVvIGH.mjs → create-5cDaZcRL.mjs} +3 -3
- package/dist/{create-CwXUMOMd.mjs → create-BEN-2XFK.mjs} +3 -3
- package/dist/create-BJG630xB.mjs +48 -0
- package/dist/{create-IFjwHs0G.mjs → create-BTQB1lqX.mjs} +4 -4
- package/dist/{create-BMKuihoI.mjs → create-C3TmU1Bi.mjs} +6 -6
- package/dist/create-C7O9tPL2.mjs +34 -0
- package/dist/{create-DVo8-IzZ.mjs → create-C8hsOv_D.mjs} +6 -6
- package/dist/{create-DNx9TGHs.mjs → create-CBSsW8Hm.mjs} +6 -6
- package/dist/{create-Cm9Z-rfe2.mjs → create-CG6WWY6k.mjs} +4 -4
- package/dist/{create-BSvTs-EV.mjs → create-D2Shlb7t.mjs} +3 -3
- package/dist/{create-DMVw9nrZ.mjs → create-DVEqry26.mjs} +4 -4
- package/dist/{create-B48rmY8v.mjs → create-D_pNX7d0.mjs} +3 -3
- package/dist/{create-D4Y69cDF.mjs → create-R0Q-nRlq.mjs} +4 -4
- package/dist/{create-CUHpxANR.mjs → create-SqmOf6WQ.mjs} +6 -6
- package/dist/{create-branch-Cw-uXows.mjs → create-branch-Cb3CWojg.mjs} +4 -4
- package/dist/{create-CnJKj9Nl.mjs → create-c2zR9y4J.mjs} +4 -4
- package/dist/{create-va8bByVt.mjs → create-xt4ff6fP.mjs} +3 -3
- package/dist/{create-B7S5fCkD.mjs → create-zpJIRn9j.mjs} +5 -5
- package/dist/{csv-CaKx1oFZ.mjs → csv-CRNOhy4X.mjs} +4 -4
- package/dist/{current-task-lGh69Z1i.mjs → current-task-DFo1ZJ51.mjs} +4 -4
- package/dist/dashboard-D11YAa7I.mjs +35 -0
- package/dist/{dashboard-D0hwTC-f.mjs → dashboard-Phz3XpRM.mjs} +2 -1
- package/dist/{dashboard-DgK81azj.mjs → dashboard-XSTr9QCr.mjs} +6 -2
- package/dist/data-action-BiHjjVjc.mjs +24 -0
- package/dist/data-action-DZxVB_hD.mjs +85 -0
- package/dist/data-action-R9qxJDPA.mjs +40 -0
- package/dist/database-BT7DVgSr.mjs +45 -0
- package/dist/{database-C3E9PZSx.mjs → database-Kq2AL5jH.mjs} +1 -1
- package/dist/dataset-BmvCxGoE.mjs +66 -0
- package/dist/{db-BRHPjshe.mjs → db-C8lj73Dz.mjs} +7 -7
- package/dist/delete-09O7BTNw.mjs +44 -0
- package/dist/{delete-Ci0aDYpf.mjs → delete-CYgNpHl7.mjs} +4 -4
- package/dist/{delete-G6EiGn2Q.mjs → delete-D_ZNoYVv.mjs} +4 -4
- package/dist/{delete-BxBadE3q.mjs → delete-HWeQtc4M.mjs} +4 -4
- package/dist/delete-I4eFpsed.mjs +44 -0
- package/dist/{delete-DMETa-37.mjs → delete-My8TX-B2.mjs} +4 -4
- package/dist/{delete-CQWCfqHf.mjs → delete-qwdN0N7e.mjs} +4 -4
- package/dist/delete-runtime-BbmRg_in.mjs +55 -0
- package/dist/{delete-table-N4rZtt1T.mjs → delete-table-BCvjX7bh.mjs} +4 -4
- package/dist/{dependencies-edN0P1SS.mjs → dependencies-BAE4YPXX.mjs} +5 -5
- package/dist/dependency-CIam7zmr.mjs +15 -0
- package/dist/dependency-DzLH3J8P.mjs +165 -0
- package/dist/dependency-zElFM-os.mjs +111 -0
- package/dist/dependents-Dv6tLdSs.mjs +52 -0
- package/dist/{dirty-U51bMoCP.mjs → dirty-CZORg0i0.mjs} +5 -5
- package/dist/discard-values-DKnP-JHr.mjs +55 -0
- package/dist/{document-CA0Q6lqu.mjs → document-C18b5rM6.mjs} +1 -1
- package/dist/{document-BHpLJbKU.mjs → document-DFCj1Az_.mjs} +2 -1
- package/dist/document-uxz96Lah.mjs +20 -0
- package/dist/{download-BJA6k-e6.mjs → download-BImtTll0.mjs} +2 -2
- package/dist/{eid-BtlRU1E0.mjs → eid-D0FxhT9H.mjs} +11 -10
- package/dist/entity-DWp9WJbU.mjs +20 -0
- package/dist/entry-flags-3sDWwa90.mjs +42 -0
- package/dist/{events-B5rnOo-L.mjs → events-BzCjVA3-.mjs} +4 -4
- package/dist/execute-BhHbkBqf.mjs +45 -0
- package/dist/export-CjqjDnaZ.mjs +74 -0
- package/dist/export-flags-BETJHNcw.mjs +81 -0
- package/dist/export-preflight-DzvIP6TB.mjs +35 -0
- package/dist/{field-CcN4oZy6.mjs → field-5nivEfd6.mjs} +33 -3
- package/dist/field-fBpiGiqr.mjs +21 -0
- package/dist/field-wmN6raOG.mjs +128 -0
- package/dist/{fields-zQ6O_W_H.mjs → fields-C-au1eLO.mjs} +6 -6
- package/dist/filter-flags-BIFcA2TT.mjs +72 -0
- package/dist/fks-83QIm8xb.mjs +36 -0
- package/dist/{get-93wuhTn2.mjs → get-BMHbEGbr.mjs} +4 -4
- package/dist/{get-DXwlZjw0.mjs → get-BTCOzSkl.mjs} +3 -3
- package/dist/{get-CekXFP3x.mjs → get-BawLhSwW.mjs} +3 -3
- package/dist/{get-BLjcCXp8.mjs → get-BjqqFG2m.mjs} +3 -3
- package/dist/{get-is8x5f2n.mjs → get-C-R_Fdsi.mjs} +3 -3
- package/dist/{get-DC_huYD8.mjs → get-C73V2KsB.mjs} +5 -5
- package/dist/{get-CG6G-mzV.mjs → get-C9sq2boy.mjs} +5 -5
- package/dist/{get-Cf6a4fFN.mjs → get-Cggv6yLC.mjs} +4 -4
- package/dist/{get-xPv7e5Ez.mjs → get-CkXc0Xld.mjs} +5 -5
- package/dist/{get-BLcS4il2.mjs → get-CqNEVAX_2.mjs} +3 -3
- package/dist/{get-DhpMuTSt.mjs → get-D7h7uH4k.mjs} +5 -5
- package/dist/get-DGmE5fmp.mjs +31 -0
- package/dist/{get-EFsmL4le.mjs → get-DTTsPd-c.mjs} +5 -5
- package/dist/{get-CeSQptdl.mjs → get-DXBXhPrU.mjs} +5 -5
- package/dist/{get-CTp5l7aU.mjs → get-D_v1IAL1.mjs} +3 -3
- package/dist/{get-BDrmBZ1z.mjs → get-DkzO3G5p.mjs} +5 -5
- package/dist/{get-Dg-S07ri.mjs → get-Dvr_69L7.mjs} +3 -3
- package/dist/get-NOMvMvYJ.mjs +36 -0
- package/dist/{get-BSoMWp4t2.mjs → get-YPDWhgm_2.mjs} +4 -4
- package/dist/{get-CwiJWeH4.mjs → get-Z36_0HX_.mjs} +4 -4
- package/dist/{get-run-DwY4sFGy.mjs → get-run-v1QHn-Mx.mjs} +4 -4
- package/dist/{git-sync-BwBRmEhE.mjs → git-sync-COokpYgc.mjs} +12 -3
- package/dist/git-sync-DspFahwV.mjs +165 -0
- package/dist/git-sync-VAqASCQ5.mjs +29 -0
- package/dist/glossary-BlNCrYbw.mjs +30 -0
- package/dist/glossary-Brnk2PBi.mjs +14 -0
- package/dist/glossary-LmZWwCNP.mjs +21 -0
- package/dist/graph-B6OliqnW.mjs +34 -0
- package/dist/{group-YQQ5GIcP.mjs → group-bpD_KcjA.mjs} +1 -1
- package/dist/{has-remote-changes-DE2_14FK.mjs → has-remote-changes-iTRCU9j0.mjs} +4 -4
- package/dist/{import-Cs7wk058.mjs → import-CdSs5CtT.mjs} +19 -8
- package/dist/{input-DEvkIjGr.mjs → input-D8qW-KtR.mjs} +6 -2
- package/dist/{is-dirty-XqDfqXGi.mjs → is-dirty-B5fj9NeS.mjs} +2 -2
- package/dist/{items-BloAjPwA.mjs → items-BxWnNEh7.mjs} +8 -8
- package/dist/{key-PYetuQ13.mjs → key-BynJSK9u.mjs} +1 -1
- package/dist/{library-Dgq_5BFh.mjs → library-BHHgurW0.mjs} +5 -5
- package/dist/{library-PGCfm0UA.mjs → library-BOv5SY24.mjs} +1 -1
- package/dist/{library-BPIzb3K_.mjs → library-Ck0EK5bi.mjs} +4 -2
- package/dist/{list-D9d5ocYi.mjs → list-BPMOLrwn.mjs} +5 -5
- package/dist/{list-D04uiS3F.mjs → list-BTcEm4td.mjs} +3 -3
- package/dist/{list-CghNKfYJ.mjs → list-BTgAbqeS.mjs} +4 -4
- package/dist/{list-3ErmGdY0.mjs → list-Bop1NTbU.mjs} +6 -6
- package/dist/{list-yV6CyPzn.mjs → list-By9XJRiv.mjs} +3 -3
- package/dist/list-CNC-XHbN.mjs +35 -0
- package/dist/{list-CUJ1wem9.mjs → list-CPWgBkPa.mjs} +4 -4
- package/dist/{list-sdCIS2Df.mjs → list-Cpa0Se7M.mjs} +5 -5
- package/dist/list-DA9KsA0o.mjs +101 -0
- package/dist/{list-VzrtA9lt.mjs → list-DE9gYY3I.mjs} +3 -3
- package/dist/{list-CUXlZiS1.mjs → list-DFJt2-fY.mjs} +4 -4
- package/dist/{list-BZnf3RmA.mjs → list-DUcnAb1h.mjs} +3 -3
- package/dist/{list-vsXIMssK.mjs → list-DW4-u7eO.mjs} +5 -5
- package/dist/{list-f8Csdjyc.mjs → list-DbXnSL2x.mjs} +5 -5
- package/dist/list-DgsM9YQX.mjs +28 -0
- package/dist/{list-BfLo1xI8.mjs → list-Dzzt6Yee.mjs} +3 -3
- package/dist/{list-CZCaqPoo.mjs → list-ZHLsjxXg.mjs} +6 -6
- package/dist/{list-Bzm5mXRo.mjs → list-e7yvJYMw.mjs} +3 -3
- package/dist/{list-DboUvg-Y.mjs → list-hN_Tu2T6.mjs} +6 -6
- package/dist/{list-DuJezLm_.mjs → list-zyKxxNvn.mjs} +3 -3
- package/dist/{login-Vw51Gts5.mjs → login-B7nGQDZK.mjs} +6 -6
- package/dist/{logout-BDIqoVhv.mjs → logout-pZffAh1G.mjs} +2 -2
- package/dist/{measure-LY9Tp9QZ.mjs → measure-AtnrCTCC.mjs} +6 -6
- package/dist/moderation-review-BdqEH6N1.mjs +31 -0
- package/dist/{notification-DVrLkjFT.mjs → notification-DOYdl0ao.mjs} +1 -1
- package/dist/{parameter-values-DWjmO7Ai.mjs → parameter-values-CxTkEjCs.mjs} +3 -3
- package/dist/{parse-enum-Dc0dMZ3P.mjs → parse-enum-CLIXMsd8.mjs} +1 -1
- package/dist/parse-id-7ja3HUdB.mjs +13 -0
- package/dist/{parse-ref-DTDld_LJ.mjs → parse-ref-Cw5fa4FI.mjs} +1 -1
- package/dist/parse-text-T0lTXzTZ.mjs +11 -0
- package/dist/{path-BUUAGYO5.mjs → path-DM4vyihl.mjs} +4 -4
- package/dist/{poll-CZeXepUQ.mjs → poll-Dz4tUm2f.mjs} +2 -2
- package/dist/{preflight-DcULqq8E.mjs → preflight-DaZ2z2C1.mjs} +3 -3
- package/dist/{process-CTrfxxaC.mjs → process-D0HdqZ3r.mjs} +1 -1
- package/dist/{publish-qVFmJQ1E.mjs → publish-C0HCL04a.mjs} +4 -4
- package/dist/{pulse-x0gFxWfG.mjs → pulse-D1uh8UIU.mjs} +1 -1
- package/dist/{query-Cq1lmqL5.mjs → query-BC-C6efK.mjs} +14 -33
- package/dist/query-BKtMP5eH.mjs +13 -0
- package/dist/query-CAFPlqfi.mjs +329 -0
- package/dist/remapping-CgA6UJGU.mjs +53 -0
- package/dist/{remove-collection-DBqh2Lqm.mjs → remove-collection-DoctJa9g.mjs} +5 -5
- package/dist/{render-Gx1hR7IF.mjs → render-Bvm9mta6.mjs} +2 -2
- package/dist/{replace-CujInVY9.mjs → replace-CaFJd9fO.mjs} +4 -4
- package/dist/rescan-values-7VOGCLMe.mjs +32 -0
- package/dist/{rescan-values-HypqBCSK.mjs → rescan-values-sJRwcHsk.mjs} +5 -5
- package/dist/{run-DEkQSOQa.mjs → run-COHDQ5J4.mjs} +3 -3
- package/dist/{run-b3jyF29q.mjs → run-RXpFlDAB.mjs} +4 -4
- package/dist/{runs-GHqHLGy4.mjs → runs-CUYdCKiE.mjs} +5 -5
- package/dist/{runtime-nCPku2nN.mjs → runtime-B8RtMb4B.mjs} +21 -82
- package/dist/{schema-tables-B5L05Y1L.mjs → schema-tables-CO5qyZBe.mjs} +6 -6
- package/dist/{schemas-Clx26p_4.mjs → schemas-CzHHgDdF.mjs} +4 -4
- package/dist/search-BWb052_b.mjs +131 -0
- package/dist/search-Cc9vHNae.mjs +85 -0
- package/dist/{segment-DiRJcbam.mjs → segment-C_rsUkHK.mjs} +6 -6
- package/dist/{send-DIHkDNBN.mjs → send-C-3bkpni.mjs} +3 -3
- package/dist/{set-D77qUZML.mjs → set-BDkT37OT.mjs} +4 -4
- package/dist/{set-active-DCdFgD0O.mjs → set-active-CDJTfQEc.mjs} +3 -3
- package/dist/set-sensitivity-DVrINHde.mjs +57 -0
- package/dist/{setting-DR9bj232.mjs → setting-CoLzd08x.mjs} +4 -4
- package/dist/{setup-DGa2LLEp.mjs → setup-C4F4XYbU.mjs} +3 -3
- package/dist/{signal-k7cm5N6h.mjs → signal-CxWeLszu.mjs} +1 -1
- package/dist/{skill-list-DAvGGHzS.mjs → skill-list-BgihWuPf.mjs} +2 -2
- package/dist/{skills-CqtNuSXM.mjs → skills-4qDjKRSk.mjs} +2 -2
- package/dist/{skills-CCn7cyMP.mjs → skills-BWEFRpUj.mjs} +3 -3
- package/dist/snippet-CYd8D9SK.mjs +19 -0
- package/dist/{stash-BTtsV0AG.mjs → stash-CZ1x0rox.mjs} +6 -6
- package/dist/{status-XgSS3StV.mjs → status-BM6eYW7I.mjs} +3 -3
- package/dist/{status-CW7Dt-nV.mjs → status-gqpPZvue.mjs} +7 -7
- package/dist/{subscription-CofRU47d.mjs → subscription-pSuO241O.mjs} +6 -6
- package/dist/{subscriptions-DCuuPF6U.mjs → subscriptions-n5zJ9rYZ.mjs} +6 -6
- package/dist/{summary-uGlgKE3C.mjs → summary-DvIf2EiO.mjs} +5 -5
- package/dist/sync-schema-Cc21crxQ.mjs +32 -0
- package/dist/{sync-schema-Cu9rD3eH.mjs → sync-schema-D1t8rhdQ.mjs} +6 -6
- package/dist/sync-task-CXFoqlpF.mjs +53 -0
- package/dist/{table-DfuY0N8e.mjs → table-Ci6bhZkb.mjs} +35 -12
- package/dist/table-CxvaDiIZ.mjs +155 -0
- package/dist/table-Dc0dLfyg.mjs +26 -0
- package/dist/table-selector-flags-BVZvnhUa.mjs +42 -0
- package/dist/text-DaNkPRwt.mjs +6 -0
- package/dist/timeline-BqU5sOb6.mjs +21 -0
- package/dist/{timeline-event-D-h0A_oh.mjs → timeline-event-jn1SOKd4.mjs} +6 -6
- package/dist/transform-BUIlFqpv.mjs +28 -0
- package/dist/{transform-CtqB1WYo.mjs → transform-CNBIV7No.mjs} +1 -1
- package/dist/transform-job-DsbY9mme.mjs +22 -0
- package/dist/{transform-tag-BLp_p9J-.mjs → transform-tag-C0jzV6Dk.mjs} +5 -5
- package/dist/{transforms-n2IwEcbU.mjs → transforms-DwTy_Quh.mjs} +5 -5
- package/dist/tree-p2j6IVy-.mjs +34 -0
- package/dist/{unpublish-DVQCAa3g.mjs → unpublish-B-961jX1.mjs} +3 -3
- package/dist/unreferenced-Dxy-aYI7.mjs +36 -0
- package/dist/{update-CnkPYL2i.mjs → update-BFYRBbRu.mjs} +6 -6
- package/dist/{update-ChpOukqq.mjs → update-BGeaPntx.mjs} +5 -5
- package/dist/{update-NGq0yXZk.mjs → update-BnIEN390.mjs} +5 -5
- package/dist/{update-DffrdV4b.mjs → update-CALlEgIC.mjs} +4 -4
- package/dist/{update-DFdBeJwc.mjs → update-CHkVN69L.mjs} +13 -8
- package/dist/{update-oQeQyqKO.mjs → update-CKqL9PmU.mjs} +5 -5
- package/dist/{update-rFRPLlb6.mjs → update-CYGYUCFQ.mjs} +4 -4
- package/dist/update-CuQy2g51.mjs +52 -0
- package/dist/{update-B7CikkI0.mjs → update-D4TGE6FS.mjs} +7 -7
- package/dist/{update-D9H6Lh5U.mjs → update-D7xi-0bU.mjs} +4 -4
- package/dist/{update-DKO9HF1f.mjs → update-DK77vtFF.mjs} +6 -6
- package/dist/{update-CKDRuduL.mjs → update-DKDQTlnV.mjs} +5 -5
- package/dist/update-DXxJHC8y.mjs +41 -0
- package/dist/update-DiJK0uRG.mjs +181 -0
- package/dist/{update-CAsqNhDC.mjs → update-MD1Kwq1P.mjs} +4 -4
- package/dist/{update-dashcard-DvPqLJ3N.mjs → update-dashcard-DuTjOh14.mjs} +6 -6
- package/dist/{update-DScUzKLI.mjs → update-hvO4VpfZ.mjs} +7 -7
- package/dist/{update-D4ggtuG4.mjs → update-qDZvnwvf.mjs} +7 -7
- package/dist/{update-C05J2nZ2.mjs → update-tltXCUwR.mjs} +4 -4
- package/dist/{upgrade-BRgw0fvn.mjs → upgrade-Ca-Ss5jb.mjs} +4 -4
- package/dist/{upload-Do2PBSeH.mjs → upload-C2fhpKkP.mjs} +2 -2
- package/dist/upload-Dw7mVr9u.mjs +13 -0
- package/dist/{upload-BrfbcbBW.mjs → upload-t6dkccqn.mjs} +3 -3
- package/dist/{uuid-B4eij1d7.mjs → uuid-BMlJZT8z.mjs} +2 -2
- package/dist/{validate-xR_MHBNR.mjs → validate-D7e110oU.mjs} +1 -1
- package/dist/{validate-query-D6_ad-Gi.mjs → validate-query-BzbZmenf.mjs} +7 -3
- package/dist/{values-xgOftPq5.mjs → values-CXN4xTTh.mjs} +5 -5
- package/dist/verify-CPVfwKSu.mjs +38 -0
- package/dist/verify-flags-CMpRkMPa.mjs +58 -0
- package/dist/verify-k-JB-k3D.mjs +38 -0
- package/dist/{verify-DTOA_wVM.mjs → verify-t-CEmvoG.mjs} +3 -3
- package/dist/{wait-BjeFgR13.mjs → wait-KSkq7kKW.mjs} +6 -6
- package/dist/{wait-flags-BCeCnaz3.mjs → wait-flags-KX7NHdj4.mjs} +2 -2
- package/dist/{window-DSb1tqSe.mjs → window-CI_QD04s.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +18 -11
- package/skill-data/dashboard/SKILL.md +1 -1
- package/skill-data/data-action/SKILL.md +125 -0
- package/skill-data/document/SKILL.md +12 -1
- package/skill-data/git-sync/SKILL.md +61 -9
- package/skill-data/mbql/SKILL.md +5 -0
- package/skill-data/metadata/SKILL.md +36 -6
- package/skill-data/native-sql/SKILL.md +1 -1
- package/dist/body-Cu94pH4P.mjs +0 -17
- package/dist/card-ByOzVxpI.mjs +0 -24
- package/dist/collection-BGbW7u_Q.mjs +0 -20
- package/dist/dashboard-Bzjz2v6u.mjs +0 -33
- package/dist/database-JtHTqSpq.mjs +0 -26
- package/dist/delete-runtime-BKEzJn22.mjs +0 -49
- package/dist/document-DqJ7Cysa.mjs +0 -19
- package/dist/export-DO2josC0.mjs +0 -63
- package/dist/field-CHZByaXa.mjs +0 -18
- package/dist/field-fDtIrY6D.mjs +0 -80
- package/dist/get-yHIEezeG.mjs +0 -31
- package/dist/git-sync-NhfLSZA6.mjs +0 -28
- package/dist/git-sync-TjX1r_wF.mjs +0 -136
- package/dist/list-DgteFn01.mjs +0 -34
- package/dist/parse-id-whJX4DAb.mjs +0 -10
- package/dist/query-BPtIy79s.mjs +0 -114
- package/dist/query-result-E4Q-Gra6.mjs +0 -15
- package/dist/search-DxiuY5EV.mjs +0 -97
- package/dist/selectors-rEFuyXPZ.mjs +0 -35
- package/dist/snippet-g9JTDxqu.mjs +0 -19
- package/dist/sync-task-BXeWuARG.mjs +0 -37
- package/dist/table-C6h4tIRw.mjs +0 -37
- package/dist/table-Di-EY7pg.mjs +0 -18
- package/dist/timeline-D7EsWZm6.mjs +0 -21
- package/dist/transform-8XK1LIgC.mjs +0 -28
- package/dist/transform-job-CTizQkWy.mjs +0 -22
- package/dist/tree-cqxiDh2b.mjs +0 -26
- package/dist/upload-VXBFKzLT.mjs +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
4
|
import { i as TimelineEvent } from "./timeline-CCSU2qOS.mjs";
|
|
5
5
|
import { t as timelineEventView } from "./timeline-uDCmwGFT.mjs";
|
|
6
6
|
//#region src/commands/timeline-event/get.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { r as Collection } from "./collection-
|
|
4
|
-
import { n as collectionView } from "./collection-
|
|
5
|
-
import { t as parseCollectionRef } from "./parse-ref-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { r as Collection } from "./collection-D3KXhvnc.mjs";
|
|
4
|
+
import { n as collectionView } from "./collection-BG3Ksea-.mjs";
|
|
5
|
+
import { t as parseCollectionRef } from "./parse-ref-Cw5fa4FI.mjs";
|
|
6
6
|
//#region src/commands/collection/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
|
+
import { t as DataAction } from "./data-action-DZxVB_hD.mjs";
|
|
5
|
+
import { n as dataActionView } from "./data-action-R9qxJDPA.mjs";
|
|
6
|
+
//#region src/commands/data-action/get.ts
|
|
7
|
+
var get_default = defineMetabaseCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "get",
|
|
10
|
+
description: "Get a data action by id"
|
|
11
|
+
},
|
|
12
|
+
requires: ["dataAction.get"],
|
|
13
|
+
args: {
|
|
14
|
+
...outputFlags,
|
|
15
|
+
...profileFlag,
|
|
16
|
+
...connectionFlags,
|
|
17
|
+
id: {
|
|
18
|
+
type: "positional",
|
|
19
|
+
description: "Data action id",
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
outputSchema: DataAction,
|
|
24
|
+
examples: ["mb data-action get 1", "mb data-action get 1 --json --full"],
|
|
25
|
+
async run({ args, ctx, getClient }) {
|
|
26
|
+
const id = parseId(args.id);
|
|
27
|
+
renderItem(await (await getClient()).dataAction.get(id), dataActionView, ctx);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { get_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import {
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, tt as parseEnum, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
|
+
import { f as TableGetInclude, t as Table } from "./table-Ci6bhZkb.mjs";
|
|
5
|
+
import { u as tableView } from "./table-CxvaDiIZ.mjs";
|
|
6
6
|
//#region src/commands/table/hints.ts
|
|
7
7
|
function tableFieldsOversizeHint(tableId) {
|
|
8
8
|
return `use \`mb table fields ${tableId}\` — list output truncates gracefully instead of failing`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { t as Document } from "./document-
|
|
5
|
-
import { t as documentView } from "./document-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
|
+
import { t as Document } from "./document-DFCj1Az_.mjs";
|
|
5
|
+
import { t as documentView } from "./document-C18b5rM6.mjs";
|
|
6
6
|
//#region src/commands/document/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, p as renderSummary, q as outputFlags, v as formatScalar } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
3
|
import { r as SettingValue } from "./setting-DTiLCW8g.mjs";
|
|
4
4
|
import { t as settingValueView } from "./setting-CwRYgHYN.mjs";
|
|
5
|
-
import { t as parseSettingKey } from "./key-
|
|
5
|
+
import { t as parseSettingKey } from "./key-BynJSK9u.mjs";
|
|
6
6
|
//#region src/commands/setting/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import {
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { r as DatabaseGetInclude, t as Database } from "./database-
|
|
5
|
-
import { n as databaseView } from "./database-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, tt as parseEnum, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
|
+
import { r as DatabaseGetInclude, t as Database } from "./database-BT7DVgSr.mjs";
|
|
5
|
+
import { n as databaseView } from "./database-Kq2AL5jH.mjs";
|
|
6
6
|
//#region src/commands/db/hints.ts
|
|
7
7
|
function fullRollupOversizeHint(dbId) {
|
|
8
8
|
return `this database is too large for a full rollup — get the table map with \`mb db get ${dbId} --include tables\`, then fetch fields per table of interest with \`mb table fields <table-id>\``;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
4
|
import { t as TransformJob } from "./transform-job-CCguL6LP.mjs";
|
|
5
5
|
import { t as transformJobView } from "./transform-job-AaMZRxAq.mjs";
|
|
6
6
|
//#region src/commands/transform-job/get.ts
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
|
+
import { a as FieldDetail, g as hasDataSensitivity } from "./field-5nivEfd6.mjs";
|
|
5
|
+
import { c as fieldView, l as fieldWithDataSensitivityView } from "./field-wmN6raOG.mjs";
|
|
6
|
+
//#region src/commands/field/get.ts
|
|
7
|
+
var get_default = defineMetabaseCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "get",
|
|
10
|
+
description: "Get a field by id"
|
|
11
|
+
},
|
|
12
|
+
requires: ["field.get"],
|
|
13
|
+
args: {
|
|
14
|
+
...outputFlags,
|
|
15
|
+
...profileFlag,
|
|
16
|
+
...connectionFlags,
|
|
17
|
+
id: {
|
|
18
|
+
type: "positional",
|
|
19
|
+
description: "Field id",
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
outputSchema: FieldDetail,
|
|
24
|
+
examples: ["mb field get 100", "mb field get 100 --json"],
|
|
25
|
+
async run({ args, ctx, getClient }) {
|
|
26
|
+
const id = parseId(args.id);
|
|
27
|
+
const field = await (await getClient()).field.get(id);
|
|
28
|
+
if (hasDataSensitivity(field)) {
|
|
29
|
+
renderItem(field, fieldWithDataSensitivityView, ctx);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
renderItem(field, fieldView, ctx);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { get_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
4
|
import { t as Pulse } from "./pulse-Dz0ocv0l.mjs";
|
|
5
|
-
import { t as pulseView } from "./pulse-
|
|
5
|
+
import { t as pulseView } from "./pulse-D1uh8UIU.mjs";
|
|
6
6
|
//#region src/commands/subscription/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
4
|
import { t as Transform } from "./transform-DiW7bREn.mjs";
|
|
5
|
-
import { n as transformView } from "./transform-
|
|
5
|
+
import { n as transformView } from "./transform-CNBIV7No.mjs";
|
|
6
6
|
//#region src/commands/transform/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
4
|
import { o as TransformRun } from "./transform-DiW7bREn.mjs";
|
|
5
|
-
import { t as transformRunView } from "./transform-
|
|
5
|
+
import { t as transformRunView } from "./transform-CNBIV7No.mjs";
|
|
6
6
|
//#region src/commands/transform/get-run.ts
|
|
7
7
|
var get_run_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -49,7 +49,8 @@ const SyncTaskCompact = SyncTask.pick({
|
|
|
49
49
|
status: true,
|
|
50
50
|
progress: true,
|
|
51
51
|
version: true,
|
|
52
|
-
error_message: true
|
|
52
|
+
error_message: true,
|
|
53
|
+
conflicts: true
|
|
53
54
|
}).strip();
|
|
54
55
|
const SyncDirtyItem = z.object({
|
|
55
56
|
id: z.number().int(),
|
|
@@ -92,7 +93,15 @@ const SyncExportPreflight = z.object({
|
|
|
92
93
|
summary: SyncMergeSummary,
|
|
93
94
|
force_push_casualties: SyncForcePushCasualties,
|
|
94
95
|
reason: z.literal("history-rewritten").nullable()
|
|
95
|
-
});
|
|
96
|
+
}).loose();
|
|
97
|
+
const SyncExportPreflightCompact = SyncExportPreflight.pick({
|
|
98
|
+
has_changes: true,
|
|
99
|
+
clean: true,
|
|
100
|
+
conflicts: true,
|
|
101
|
+
summary: true,
|
|
102
|
+
force_push_casualties: true,
|
|
103
|
+
reason: true
|
|
104
|
+
}).strip();
|
|
96
105
|
const SyncBranchCreated = z.object({
|
|
97
106
|
status: z.literal("success"),
|
|
98
107
|
message: z.string()
|
|
@@ -118,4 +127,4 @@ const SyncStashResult = z.object({
|
|
|
118
127
|
final: SyncTask.nullable().optional()
|
|
119
128
|
});
|
|
120
129
|
//#endregion
|
|
121
|
-
export {
|
|
130
|
+
export { SyncExportPreflightCompact as a, SyncRemoteChanges as c, SyncTask as d, SyncTaskCompact as f, SyncExportPreflight as i, SyncSettingsUpdateResult as l, isSyncTaskTerminal as m, SyncDirtyItem as n, SyncExportResult as o, isSyncTaskFailed as p, SyncDirtyItemCompact as r, SyncImportResult as s, SyncBranchCreated as t, SyncStashResult as u };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { a as SyncExportPreflightCompact, c as SyncRemoteChanges, f as SyncTaskCompact, l as SyncSettingsUpdateResult, o as SyncExportResult, r as SyncDirtyItemCompact, s as SyncImportResult, t as SyncBranchCreated, u as SyncStashResult } from "./git-sync-COokpYgc.mjs";
|
|
2
|
+
//#region src/output/views/git-sync.ts
|
|
3
|
+
const syncTaskView = {
|
|
4
|
+
compactPick: SyncTaskCompact,
|
|
5
|
+
tableColumns: [
|
|
6
|
+
{
|
|
7
|
+
key: "id",
|
|
8
|
+
label: "ID"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
key: "sync_task_type",
|
|
12
|
+
label: "Type"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: "status",
|
|
16
|
+
label: "Status"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
key: "progress",
|
|
20
|
+
label: "Progress"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "version",
|
|
24
|
+
label: "Version"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: "error_message",
|
|
28
|
+
label: "Error"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
const syncDirtyItemView = {
|
|
33
|
+
compactPick: SyncDirtyItemCompact,
|
|
34
|
+
tableColumns: [
|
|
35
|
+
{
|
|
36
|
+
key: "id",
|
|
37
|
+
label: "ID"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
key: "model",
|
|
41
|
+
label: "Model"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: "name",
|
|
45
|
+
label: "Name"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: "sync_status",
|
|
49
|
+
label: "Status"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: "collection_id",
|
|
53
|
+
label: "Collection"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
};
|
|
57
|
+
const syncRemoteChangesView = {
|
|
58
|
+
compactPick: SyncRemoteChanges,
|
|
59
|
+
tableColumns: [
|
|
60
|
+
{
|
|
61
|
+
key: "has_changes",
|
|
62
|
+
label: "Has changes"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
key: "remote_version",
|
|
66
|
+
label: "Remote"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: "local_version",
|
|
70
|
+
label: "Local"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: "cached",
|
|
74
|
+
label: "Cached"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
};
|
|
78
|
+
const syncBranchCreatedView = {
|
|
79
|
+
compactPick: SyncBranchCreated,
|
|
80
|
+
tableColumns: [{
|
|
81
|
+
key: "status",
|
|
82
|
+
label: "Status"
|
|
83
|
+
}, {
|
|
84
|
+
key: "message",
|
|
85
|
+
label: "Message"
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
const syncSettingsUpdateView = {
|
|
89
|
+
compactPick: SyncSettingsUpdateResult,
|
|
90
|
+
tableColumns: [{
|
|
91
|
+
key: "success",
|
|
92
|
+
label: "Success"
|
|
93
|
+
}, {
|
|
94
|
+
key: "task_id",
|
|
95
|
+
label: "Task ID"
|
|
96
|
+
}]
|
|
97
|
+
};
|
|
98
|
+
const syncImportView = {
|
|
99
|
+
compactPick: SyncImportResult,
|
|
100
|
+
tableColumns: [{
|
|
101
|
+
key: "task_id",
|
|
102
|
+
label: "Task ID"
|
|
103
|
+
}, {
|
|
104
|
+
key: "message",
|
|
105
|
+
label: "Message"
|
|
106
|
+
}]
|
|
107
|
+
};
|
|
108
|
+
const syncExportView = {
|
|
109
|
+
compactPick: SyncExportResult,
|
|
110
|
+
tableColumns: [{
|
|
111
|
+
key: "task_id",
|
|
112
|
+
label: "Task ID"
|
|
113
|
+
}, {
|
|
114
|
+
key: "message",
|
|
115
|
+
label: "Message"
|
|
116
|
+
}]
|
|
117
|
+
};
|
|
118
|
+
const syncStashView = {
|
|
119
|
+
compactPick: SyncStashResult,
|
|
120
|
+
tableColumns: [
|
|
121
|
+
{
|
|
122
|
+
key: "task_id",
|
|
123
|
+
label: "Task ID"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
key: "status",
|
|
127
|
+
label: "Status"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "message",
|
|
131
|
+
label: "Message"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
};
|
|
135
|
+
const syncExportPreflightView = {
|
|
136
|
+
compactPick: SyncExportPreflightCompact,
|
|
137
|
+
tableColumns: []
|
|
138
|
+
};
|
|
139
|
+
function preflightHeadline(branch, result) {
|
|
140
|
+
if (result.reason === "history-rewritten") return `Branch ${branch}: the remote history was rewritten, so no merge base exists; only a force push can export.`;
|
|
141
|
+
if (!result.has_changes) return `Branch ${branch}: the remote has not moved past the last sync (a task that ended in conflict counts as one), or nothing has been synced yet; an export applies as-is.`;
|
|
142
|
+
if (result.clean) return `Branch ${branch}: the remote has moved on; a merge applies cleanly.`;
|
|
143
|
+
return `Branch ${branch}: the remote has moved on; a merge would conflict.`;
|
|
144
|
+
}
|
|
145
|
+
function labelledBlock(title, labels) {
|
|
146
|
+
if (labels.length === 0) return [];
|
|
147
|
+
return [`${title} (${labels.length}):`, ...labels.map((label) => ` ${label}`)];
|
|
148
|
+
}
|
|
149
|
+
function mergeSummaryLine(result) {
|
|
150
|
+
if (!result.has_changes || result.reason !== null) return [];
|
|
151
|
+
const { added, updated, removed } = result.summary;
|
|
152
|
+
return [`A merge would fold in ${added} added, ${updated} updated, ${removed} removed.`];
|
|
153
|
+
}
|
|
154
|
+
function formatExportPreflight(branch, result) {
|
|
155
|
+
const casualties = result.force_push_casualties;
|
|
156
|
+
return [
|
|
157
|
+
preflightHeadline(branch, result),
|
|
158
|
+
...labelledBlock("Conflicts", result.conflicts),
|
|
159
|
+
...mergeSummaryLine(result),
|
|
160
|
+
...labelledBlock("A force push would delete", casualties.deleted),
|
|
161
|
+
...labelledBlock("A force push would overwrite", casualties.overwritten)
|
|
162
|
+
].join("\n");
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
export { syncExportView as a, syncSettingsUpdateView as c, syncExportPreflightView as i, syncStashView as l, syncBranchCreatedView as n, syncImportView as o, syncDirtyItemView as r, syncRemoteChangesView as s, formatExportPreflight as t, syncTaskView as u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-bpD_KcjA.mjs";
|
|
2
|
+
//#region src/commands/git-sync/index.ts
|
|
3
|
+
var git_sync_default = defineCommandGroup({
|
|
4
|
+
name: "git-sync",
|
|
5
|
+
description: "Sync Metabase content with a git remote",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "git-sync",
|
|
8
|
+
purpose: "import/export round-trip and dirty checks"
|
|
9
|
+
}],
|
|
10
|
+
subCommands: {
|
|
11
|
+
status: () => import("./status-gqpPZvue.mjs").then((mod) => mod.default),
|
|
12
|
+
"is-dirty": () => import("./is-dirty-B5fj9NeS.mjs").then((mod) => mod.default),
|
|
13
|
+
"has-remote-changes": () => import("./has-remote-changes-iTRCU9j0.mjs").then((mod) => mod.default),
|
|
14
|
+
dirty: () => import("./dirty-CZORg0i0.mjs").then((mod) => mod.default),
|
|
15
|
+
"current-task": () => import("./current-task-DFo1ZJ51.mjs").then((mod) => mod.default),
|
|
16
|
+
"cancel-task": () => import("./cancel-task-CWWo7vLf.mjs").then((mod) => mod.default),
|
|
17
|
+
wait: () => import("./wait-KSkq7kKW.mjs").then((mod) => mod.default),
|
|
18
|
+
import: () => import("./import-CdSs5CtT.mjs").then((mod) => mod.default),
|
|
19
|
+
export: () => import("./export-CjqjDnaZ.mjs").then((mod) => mod.default),
|
|
20
|
+
"export-preflight": () => import("./export-preflight-DzvIP6TB.mjs").then((mod) => mod.default),
|
|
21
|
+
stash: () => import("./stash-CZ1x0rox.mjs").then((mod) => mod.default),
|
|
22
|
+
branches: () => import("./branches-B6ilUG-7.mjs").then((mod) => mod.default),
|
|
23
|
+
"create-branch": () => import("./create-branch-Cb3CWojg.mjs").then((mod) => mod.default),
|
|
24
|
+
"add-collection": () => import("./add-collection-B-Kczwcj.mjs").then((mod) => mod.default),
|
|
25
|
+
"remove-collection": () => import("./remove-collection-DoctJa9g.mjs").then((mod) => mod.default)
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { git_sync_default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as NonBlankText } from "./text-DaNkPRwt.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region ../client/src/domain/glossary.ts
|
|
4
|
+
const GlossaryCreator = z.object({
|
|
5
|
+
id: z.number().int(),
|
|
6
|
+
email: z.string(),
|
|
7
|
+
first_name: z.string().nullable(),
|
|
8
|
+
last_name: z.string().nullable()
|
|
9
|
+
}).loose();
|
|
10
|
+
const Glossary = z.object({
|
|
11
|
+
id: z.number().int(),
|
|
12
|
+
term: z.string(),
|
|
13
|
+
definition: z.string(),
|
|
14
|
+
creator_id: z.number().int(),
|
|
15
|
+
creator: GlossaryCreator,
|
|
16
|
+
created_at: z.string(),
|
|
17
|
+
updated_at: z.string()
|
|
18
|
+
}).loose();
|
|
19
|
+
const GlossaryCompact = Glossary.pick({
|
|
20
|
+
id: true,
|
|
21
|
+
term: true,
|
|
22
|
+
definition: true
|
|
23
|
+
}).strip();
|
|
24
|
+
const GlossaryCreateInput = z.object({
|
|
25
|
+
term: NonBlankText,
|
|
26
|
+
definition: NonBlankText
|
|
27
|
+
}).strict();
|
|
28
|
+
const GlossaryUpdateInput = GlossaryCreateInput;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { GlossaryUpdateInput as i, GlossaryCompact as n, GlossaryCreateInput as r, Glossary as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-bpD_KcjA.mjs";
|
|
2
|
+
//#region src/commands/glossary/index.ts
|
|
3
|
+
var glossary_default = defineCommandGroup({
|
|
4
|
+
name: "glossary",
|
|
5
|
+
description: "Manage the Metabase glossary of business terms",
|
|
6
|
+
subCommands: {
|
|
7
|
+
list: () => import("./list-CNC-XHbN.mjs").then((mod) => mod.default),
|
|
8
|
+
create: () => import("./create-C7O9tPL2.mjs").then((mod) => mod.default),
|
|
9
|
+
update: () => import("./update-DXxJHC8y.mjs").then((mod) => mod.default),
|
|
10
|
+
delete: () => import("./delete-I4eFpsed.mjs").then((mod) => mod.default)
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { glossary_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { n as GlossaryCompact } from "./glossary-BlNCrYbw.mjs";
|
|
2
|
+
//#region src/output/views/glossary.ts
|
|
3
|
+
const glossaryView = {
|
|
4
|
+
compactPick: GlossaryCompact,
|
|
5
|
+
tableColumns: [
|
|
6
|
+
{
|
|
7
|
+
key: "id",
|
|
8
|
+
label: "ID"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
key: "term",
|
|
12
|
+
label: "Term"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: "definition",
|
|
16
|
+
label: "Definition"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { glossaryView as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-7ja3HUdB.mjs";
|
|
4
|
+
import { s as DependencyGraph } from "./dependency-DzLH3J8P.mjs";
|
|
5
|
+
import { r as dependencyGraphView } from "./dependency-zElFM-os.mjs";
|
|
6
|
+
import { n as parseDependencyType, t as entityArgs } from "./entity-DWp9WJbU.mjs";
|
|
7
|
+
//#region src/commands/dependency/graph.ts
|
|
8
|
+
var graph_default = defineMetabaseCommand({
|
|
9
|
+
meta: {
|
|
10
|
+
name: "graph",
|
|
11
|
+
description: "Show everything an entity depends on, directly or transitively"
|
|
12
|
+
},
|
|
13
|
+
details: "`nodes` holds the entity itself plus every table, card, snippet, transform or other entity it reads from, each with its `dependents_count` by kind; `edges` run from a dependent to what it depends on. Pass `--full` for the heavier hydrations on each node (a table's `fields`, a card's `result_metadata`).",
|
|
14
|
+
requires: ["dependency.graph"],
|
|
15
|
+
args: {
|
|
16
|
+
...outputFlags,
|
|
17
|
+
...profileFlag,
|
|
18
|
+
...connectionFlags,
|
|
19
|
+
...entityArgs
|
|
20
|
+
},
|
|
21
|
+
outputSchema: DependencyGraph,
|
|
22
|
+
examples: [
|
|
23
|
+
"mb dependency graph card 1",
|
|
24
|
+
"mb dependency graph table 12 --json",
|
|
25
|
+
"mb dependency graph transform 3 --fields edges"
|
|
26
|
+
],
|
|
27
|
+
async run({ args, ctx, getClient }) {
|
|
28
|
+
const type = parseDependencyType(args.type);
|
|
29
|
+
const id = parseId(args.id);
|
|
30
|
+
renderItem(await (await getClient()).dependency.graph(type, id), dependencyGraphView, ctx);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { graph_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, p as renderSummary, q as outputFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { c as SyncRemoteChanges } from "./git-sync-COokpYgc.mjs";
|
|
4
|
+
import { s as syncRemoteChangesView } from "./git-sync-DspFahwV.mjs";
|
|
5
5
|
//#region src/commands/git-sync/has-remote-changes.ts
|
|
6
6
|
var has_remote_changes_default = defineMetabaseCommand({
|
|
7
7
|
meta: {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-
|
|
5
|
-
import {
|
|
6
|
-
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, at as ConfigError, p as renderSummary, q as outputFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
|
+
import { s as SyncImportResult } from "./git-sync-COokpYgc.mjs";
|
|
4
|
+
import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-KX7NHdj4.mjs";
|
|
5
|
+
import { o as syncImportView } from "./git-sync-DspFahwV.mjs";
|
|
6
|
+
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-CXFoqlpF.mjs";
|
|
7
|
+
import { t as branchFlag } from "./branch-flag-pFQPNYKr.mjs";
|
|
7
8
|
//#region src/commands/git-sync/import.ts
|
|
8
9
|
var import_default = defineMetabaseCommand({
|
|
9
10
|
meta: {
|
|
10
11
|
name: "import",
|
|
11
12
|
description: "Import content from the configured git remote into Metabase"
|
|
12
13
|
},
|
|
14
|
+
details: "A plain import refuses while Metabase holds un-pushed changes; --force discards them, --merge (Metabase 63+) keeps them and folds the remote's changes in by a three-way merge. A merge ends the task in `conflict`, leaving local content untouched, when entities changed on both sides or when there is no merge base: the remote history was rewritten, or the instance has never synced. A task that ends in `conflict` makes the server count the remote commit it saw as synced, so a retry, --merge included, no longer sees the remote's changes: resolve a conflict with --force on the side to keep, or `git-sync create-branch` then export, never with a retry.",
|
|
13
15
|
requires: ["gitSync.import"],
|
|
14
16
|
args: {
|
|
15
17
|
...outputFlags,
|
|
@@ -25,19 +27,28 @@ var import_default = defineMetabaseCommand({
|
|
|
25
27
|
description: "Discard local Metabase-side dirty changes (LOSSY)",
|
|
26
28
|
default: false
|
|
27
29
|
},
|
|
30
|
+
merge: {
|
|
31
|
+
type: "boolean",
|
|
32
|
+
description: "Keep un-pushed local changes and fold the remote's in by a three-way merge",
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
28
35
|
...gitSyncWaitFlags
|
|
29
36
|
},
|
|
30
37
|
outputSchema: SyncImportResult,
|
|
31
38
|
examples: [
|
|
32
39
|
"mb git-sync import",
|
|
33
40
|
"mb git-sync import --branch main --json",
|
|
34
|
-
"mb git-sync import --force --no-wait"
|
|
41
|
+
"mb git-sync import --force --no-wait",
|
|
42
|
+
"mb git-sync import --merge"
|
|
35
43
|
],
|
|
36
44
|
async run({ args, ctx, getClient }) {
|
|
37
45
|
const wait = parseWaitFlags(args);
|
|
46
|
+
if (args.merge && args.force) throw new ConfigError("--merge cannot be combined with --force");
|
|
47
|
+
const branch = branchFlag(args.branch);
|
|
38
48
|
const params = {};
|
|
39
|
-
if (
|
|
49
|
+
if (branch !== null) params.branch = branch;
|
|
40
50
|
if (args.force) params.force = true;
|
|
51
|
+
if (args.merge) params.merge = true;
|
|
41
52
|
if (wait.enabled) params.wait = taskPollOptions(wait.schedule);
|
|
42
53
|
const result = await (await getClient()).gitSync.import(params);
|
|
43
54
|
if (!wait.enabled || result.task_id === null) {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as ConfigError, ht as isFileNotFoundError } from "./cli.mjs";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import { setTimeout } from "node:timers/promises";
|
|
4
4
|
//#region src/runtime/input.ts
|
|
5
5
|
const DEFAULT_FLAG_NAME = "--body";
|
|
6
6
|
const SOURCE_LIST = `${DEFAULT_FLAG_NAME}, --file, stdin, or a positional argument`;
|
|
7
|
+
/** The value of a string flag, or `null` when it was left out or passed empty. */
|
|
8
|
+
function givenValue(value) {
|
|
9
|
+
return value === void 0 || value === "" ? null : value;
|
|
10
|
+
}
|
|
7
11
|
async function readInput(sources) {
|
|
8
12
|
if (sources.flag) return sources.flag;
|
|
9
13
|
if (sources.file) return await readFileSource(sources.file);
|
|
@@ -54,4 +58,4 @@ async function readPipedStdin() {
|
|
|
54
58
|
return data;
|
|
55
59
|
}
|
|
56
60
|
//#endregion
|
|
57
|
-
export { fileNotFoundError as n,
|
|
61
|
+
export { readInput as i, fileNotFoundError as n, givenValue as r, DEFAULT_FLAG_NAME as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, p as renderSummary, q as outputFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-B8RtMb4B.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/commands/git-sync/is-dirty.ts
|
|
5
5
|
const IsDirtyResult = z.object({ is_dirty: z.boolean() });
|