@metabase/cli 0.3.2 → 0.4.0
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-CC6KSwjX.mjs} +5 -5
- package/dist/{alert-DCLhfwdv.mjs → alert-Dt6La9tK.mjs} +7 -7
- package/dist/{alerts-DRin_wt2.mjs → alerts-ClKnJqgB.mjs} +6 -6
- package/dist/{append-DQ9rPJHZ.mjs → append-pnaQWP_A.mjs} +4 -4
- package/dist/{archive-D6xzHaM3.mjs → archive-By1pLYtO.mjs} +3 -3
- package/dist/{archive-xcgoVPwv.mjs → archive-CLu2TGW5.mjs} +5 -5
- package/dist/{archive-HeRygdKz2.mjs → archive-COP9joWU.mjs} +4 -4
- package/dist/{archive-COFQAHAL.mjs → archive-CSnBFcQ_.mjs} +3 -3
- package/dist/{archive-1YVo-Wsu.mjs → archive-Ct1eyolN.mjs} +3 -3
- package/dist/{archive-_c-ISZmi.mjs → archive-D7nAQcCz.mjs} +3 -3
- package/dist/{archive-BzVxRqpL.mjs → archive-DEDA48w3.mjs} +5 -5
- package/dist/{archive-BVRKE9Ev.mjs → archive-DJAsSzCz.mjs} +5 -5
- package/dist/{archive-BPCgmLcV.mjs → archive-DtabbPUk.mjs} +4 -4
- package/dist/{archive-o5cWV3vZ.mjs → archive-YNpa8daf.mjs} +3 -3
- package/dist/{archive-D3yPvUtz.mjs → archive-ewitrKdx.mjs} +5 -5
- package/dist/{auth-DJn5T6zA.mjs → auth-DdLhXCn-.mjs} +5 -5
- package/dist/body-Dd-TwYYL.mjs +17 -0
- package/dist/branch-flag-pFQPNYKr.mjs +9 -0
- package/dist/{branches-CUyPxeeW.mjs → branches-ZvGNhed6.mjs} +3 -3
- package/dist/breaking-BLswgvkA.mjs +36 -0
- package/dist/broken-BN0nL2hf.mjs +37 -0
- package/dist/bulk-discard-values-DFJUjSnE.mjs +49 -0
- package/dist/bulk-edit-Brqr67bu.mjs +53 -0
- package/dist/bulk-rescan-values-DndXXi2N.mjs +28 -0
- package/dist/bulk-sync-schema-mO-t2QlL.mjs +28 -0
- package/dist/{cancel-BNuVls58.mjs → cancel-DP03dXBf.mjs} +3 -3
- package/dist/{cancel-task-DUmlQQpi.mjs → cancel-task-CELBfBPP.mjs} +4 -4
- package/dist/{card-voh1k4hl.mjs → card-Bv4ZN0oV.mjs} +5 -3
- package/dist/card-CFd-GUEM.mjs +25 -0
- package/dist/{card-CEkp1mcI.mjs → card-DSrgU7lT.mjs} +1 -1
- package/dist/{cards-_gbvw3wp.mjs → cards-Cn2ywFTJ.mjs} +6 -6
- package/dist/cli.mjs +410 -100
- package/dist/{client-BnK0evYf.mjs → client-ToLiPu9q.mjs} +316 -316
- package/dist/{collection-DYM0p3Xl.mjs → collection-BG3Ksea-.mjs} +1 -1
- package/dist/collection-BKNShKcY.mjs +21 -0
- package/dist/{collection-BxdPxD38.mjs → collection-D3KXhvnc.mjs} +7 -5
- package/dist/{collection-namespace-DM90lA8C.mjs → collection-namespace-CWW6hZxK.mjs} +2 -2
- package/dist/{content-translation-CqB3peU9.mjs → content-translation-C19SqZWp.mjs} +3 -3
- package/dist/copy-BGK8Wz6d.mjs +55 -0
- package/dist/copy-COLUuiuF.mjs +36 -0
- package/dist/copy-flags-eU8aa0zj.mjs +32 -0
- package/dist/{create-CnJKj9Nl.mjs → create-B2tuInV9.mjs} +4 -4
- package/dist/{create-D4Y69cDF.mjs → create-B3TKri1E.mjs} +4 -4
- package/dist/{create-BSvTs-EV.mjs → create-B4gXKDRr.mjs} +3 -3
- package/dist/create-B63JphYe.mjs +34 -0
- package/dist/{create-IFjwHs0G.mjs → create-BH6kLjHS.mjs} +4 -4
- package/dist/{create-BIUVvIGH.mjs → create-BwifyhyL.mjs} +3 -3
- package/dist/{create-CwXUMOMd.mjs → create-Colz5bOO.mjs} +3 -3
- package/dist/{create-Cm9Z-rfe2.mjs → create-CulUZgN1.mjs} +4 -4
- package/dist/{create-DNx9TGHs.mjs → create-Cxuqr3kT.mjs} +6 -6
- package/dist/{create-CUHpxANR.mjs → create-CzW_UTE7.mjs} +6 -6
- package/dist/{create-BMKuihoI.mjs → create-DNR8RMvV.mjs} +6 -6
- package/dist/{create-DMVw9nrZ.mjs → create-DSHeoV7e.mjs} +4 -4
- package/dist/{create-DVo8-IzZ.mjs → create-DWbW2WSc.mjs} +6 -6
- package/dist/{create-va8bByVt.mjs → create-Dx8nfjGs.mjs} +3 -3
- package/dist/{create-B7S5fCkD.mjs → create-XGomrTz5.mjs} +5 -5
- package/dist/{create-branch-Cw-uXows.mjs → create-branch-DxL7KUZp.mjs} +4 -4
- package/dist/{create-B48rmY8v.mjs → create-g1f2yJ4s.mjs} +3 -3
- package/dist/{csv-CaKx1oFZ.mjs → csv-C6TEfLMi.mjs} +4 -4
- package/dist/{current-task-lGh69Z1i.mjs → current-task-CHs0zNFM.mjs} +4 -4
- package/dist/dashboard-AWrXqQ7a.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/database-D-CRyRIv.mjs +45 -0
- package/dist/{database-C3E9PZSx.mjs → database-MlUPpitM.mjs} +1 -1
- package/dist/dataset-p5oNPQgL.mjs +66 -0
- package/dist/{db-BRHPjshe.mjs → db-BFSeETMO.mjs} +7 -7
- package/dist/{delete-DMETa-37.mjs → delete-BUKgSJhh.mjs} +4 -4
- package/dist/{delete-CQWCfqHf.mjs → delete-CPBByycV.mjs} +4 -4
- package/dist/{delete-Ci0aDYpf.mjs → delete-Cucqn4-V.mjs} +4 -4
- package/dist/{delete-BxBadE3q.mjs → delete-D79TlpcE.mjs} +4 -4
- package/dist/delete-DZJxBmdU.mjs +44 -0
- package/dist/{delete-G6EiGn2Q.mjs → delete-DndykJn2.mjs} +4 -4
- package/dist/delete-runtime-BbmRg_in.mjs +55 -0
- package/dist/{delete-table-N4rZtt1T.mjs → delete-table-CbsWcjh5.mjs} +4 -4
- package/dist/{dependencies-edN0P1SS.mjs → dependencies-B-880phi.mjs} +5 -5
- package/dist/dependency-DBUJwXqv.mjs +15 -0
- package/dist/dependency-DKSjKT8P.mjs +165 -0
- package/dist/dependency-DSxKm9oS.mjs +111 -0
- package/dist/dependents-C_FDnpZs.mjs +52 -0
- package/dist/{dirty-U51bMoCP.mjs → dirty-B-Is68--.mjs} +5 -5
- package/dist/discard-values-yzH-kIsr.mjs +55 -0
- package/dist/document-BRaba87v.mjs +20 -0
- package/dist/{document-CA0Q6lqu.mjs → document-C18b5rM6.mjs} +1 -1
- package/dist/{document-BHpLJbKU.mjs → document-DFCj1Az_.mjs} +2 -1
- package/dist/{download-BJA6k-e6.mjs → download-DluF-vnU.mjs} +2 -2
- package/dist/{eid-BtlRU1E0.mjs → eid-Dz-mP40j.mjs} +11 -10
- package/dist/entity-CA4zfRt4.mjs +20 -0
- package/dist/entry-flags-7x7bIyOQ.mjs +42 -0
- package/dist/{events-B5rnOo-L.mjs → events-2sOk6H09.mjs} +4 -4
- package/dist/export-BKkAJOFb.mjs +74 -0
- package/dist/export-flags-NiZ7C3Gm.mjs +81 -0
- package/dist/export-preflight-CwJ_3-iX.mjs +35 -0
- package/dist/{field-CcN4oZy6.mjs → field-5nivEfd6.mjs} +33 -3
- package/dist/field-BARgq5I9.mjs +21 -0
- package/dist/field-wmN6raOG.mjs +128 -0
- package/dist/{fields-zQ6O_W_H.mjs → fields-Bod0s_uV.mjs} +6 -6
- package/dist/filter-flags-BYcbB85j.mjs +71 -0
- package/dist/fks-IUw66K_Q.mjs +36 -0
- package/dist/{get-BDrmBZ1z.mjs → get-B8DUMrCw.mjs} +5 -5
- package/dist/{get-is8x5f2n.mjs → get-BGqvoGQM.mjs} +3 -3
- package/dist/{get-CekXFP3x.mjs → get-BSUsfysk.mjs} +3 -3
- package/dist/{get-CeSQptdl.mjs → get-BXsLkoit.mjs} +5 -5
- package/dist/{get-DhpMuTSt.mjs → get-BXssHyJ1.mjs} +5 -5
- package/dist/get-Bct52yPw.mjs +36 -0
- package/dist/{get-DXwlZjw0.mjs → get-Besqwy32.mjs} +3 -3
- package/dist/{get-BLjcCXp8.mjs → get-BfSX-OeS.mjs} +3 -3
- package/dist/{get-BLcS4il2.mjs → get-Biy4gOzu2.mjs} +3 -3
- package/dist/{get-BSoMWp4t2.mjs → get-CYIeiTZ9.mjs} +4 -4
- package/dist/{get-CwiJWeH4.mjs → get-CaEiQnSw.mjs} +4 -4
- package/dist/{get-xPv7e5Ez.mjs → get-Cl81y0Md.mjs} +5 -5
- package/dist/{get-Cf6a4fFN.mjs → get-D1NjMXAH.mjs} +4 -4
- package/dist/{get-EFsmL4le.mjs → get-D2cPuOPR.mjs} +5 -5
- package/dist/{get-Dg-S07ri.mjs → get-DITlshJH.mjs} +3 -3
- package/dist/{get-CTp5l7aU.mjs → get-DLyg6Al9.mjs} +3 -3
- package/dist/{get-93wuhTn2.mjs → get-DQZfaVNq.mjs} +4 -4
- package/dist/{get-CG6G-mzV.mjs → get-DtBqoGTa.mjs} +5 -5
- package/dist/{get-DC_huYD8.mjs → get-_ik_5_lQ.mjs} +5 -5
- package/dist/{get-run-DwY4sFGy.mjs → get-run-CEc_tr5b.mjs} +4 -4
- package/dist/{git-sync-BwBRmEhE.mjs → git-sync-COokpYgc.mjs} +12 -3
- package/dist/git-sync-DKcaddkV.mjs +29 -0
- package/dist/git-sync-DspFahwV.mjs +165 -0
- package/dist/glossary-BlNCrYbw.mjs +30 -0
- package/dist/glossary-CWIX8Zh6.mjs +14 -0
- package/dist/glossary-LmZWwCNP.mjs +21 -0
- package/dist/graph-f6Bp1e8U.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-B8MmN6yh.mjs} +4 -4
- package/dist/{import-Cs7wk058.mjs → import-Bhq15KgP.mjs} +19 -8
- package/dist/{input-DEvkIjGr.mjs → input-D8qW-KtR.mjs} +6 -2
- package/dist/{is-dirty-XqDfqXGi.mjs → is-dirty-CAsVuVx8.mjs} +2 -2
- package/dist/{items-BloAjPwA.mjs → items-BZJomiDE.mjs} +8 -8
- package/dist/{key-PYetuQ13.mjs → key-BynJSK9u.mjs} +1 -1
- package/dist/{library-Dgq_5BFh.mjs → library-B7wDH-Nc.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-CZCaqPoo.mjs → list-B2uUl26x.mjs} +6 -6
- package/dist/{list-3ErmGdY0.mjs → list-B4luDSYj.mjs} +6 -6
- package/dist/{list-D04uiS3F.mjs → list-B8ND9t2h.mjs} +3 -3
- package/dist/{list-CghNKfYJ.mjs → list-BT5t8ZOl.mjs} +4 -4
- package/dist/{list-VzrtA9lt.mjs → list-BT7xiUQe.mjs} +3 -3
- package/dist/{list-D9d5ocYi.mjs → list-BWFCv_zk.mjs} +5 -5
- package/dist/{list-DboUvg-Y.mjs → list-BtZVe1Nq.mjs} +6 -6
- package/dist/{list-sdCIS2Df.mjs → list-BwdSG-P5.mjs} +5 -5
- package/dist/{list-yV6CyPzn.mjs → list-C-A-2HFq.mjs} +3 -3
- package/dist/list-C9x--9Jq.mjs +101 -0
- package/dist/{list-CUJ1wem9.mjs → list-CCdXig7b.mjs} +4 -4
- package/dist/{list-BfLo1xI8.mjs → list-CJDFoOHb.mjs} +3 -3
- package/dist/{list-Bzm5mXRo.mjs → list-CLFu3mQB.mjs} +3 -3
- package/dist/{list-BZnf3RmA.mjs → list-Cd40Kr0R.mjs} +3 -3
- package/dist/{list-CUXlZiS1.mjs → list-Cj_mTxbY.mjs} +4 -4
- package/dist/{list-f8Csdjyc.mjs → list-CtS50R7m.mjs} +5 -5
- package/dist/{list-vsXIMssK.mjs → list-CvZyTwmV.mjs} +5 -5
- package/dist/list-DcnNlYQA.mjs +35 -0
- package/dist/{list-DuJezLm_.mjs → list-DtgbtE3_.mjs} +3 -3
- package/dist/{login-Vw51Gts5.mjs → login-Bi_nGMJ9.mjs} +6 -6
- package/dist/{logout-BDIqoVhv.mjs → logout-CiHQJWTu.mjs} +2 -2
- package/dist/{measure-LY9Tp9QZ.mjs → measure-D2qq5e8f.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-CZow98nb.mjs} +3 -3
- package/dist/{parse-enum-Dc0dMZ3P.mjs → parse-enum-CLIXMsd8.mjs} +1 -1
- package/dist/parse-id-BW09NysN.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-K6LPLYPb.mjs} +4 -4
- package/dist/{poll-CZeXepUQ.mjs → poll-Dz4tUm2f.mjs} +2 -2
- package/dist/{preflight-DcULqq8E.mjs → preflight-CX6cqB90.mjs} +3 -3
- package/dist/{process-CTrfxxaC.mjs → process-D0HdqZ3r.mjs} +1 -1
- package/dist/{publish-qVFmJQ1E.mjs → publish-COatW4Un.mjs} +4 -4
- package/dist/{pulse-x0gFxWfG.mjs → pulse-D1uh8UIU.mjs} +1 -1
- package/dist/query-BJXTIDhy.mjs +328 -0
- package/dist/{query-Cq1lmqL5.mjs → query-DmvkyDfo.mjs} +14 -33
- package/dist/remapping-CPAvDKHV.mjs +53 -0
- package/dist/{remove-collection-DBqh2Lqm.mjs → remove-collection-Bg-sNX3U.mjs} +5 -5
- package/dist/{render-Gx1hR7IF.mjs → render-BSfDD6ip.mjs} +2 -2
- package/dist/{replace-CujInVY9.mjs → replace-RCHeZLUT.mjs} +4 -4
- package/dist/{rescan-values-HypqBCSK.mjs → rescan-values-CpDGYZvf.mjs} +5 -5
- package/dist/rescan-values-PeMnpaFY.mjs +32 -0
- package/dist/{run-DEkQSOQa.mjs → run-CaQ7kubO.mjs} +3 -3
- package/dist/{run-b3jyF29q.mjs → run-DkRkZRgf.mjs} +4 -4
- package/dist/{runs-GHqHLGy4.mjs → runs-BDjoVJ0P.mjs} +5 -5
- package/dist/{runtime-nCPku2nN.mjs → runtime-CZ5zh32z.mjs} +21 -82
- package/dist/{schema-tables-B5L05Y1L.mjs → schema-tables-C2qjLcPq.mjs} +6 -6
- package/dist/{schemas-Clx26p_4.mjs → schemas-D8hfNduk.mjs} +4 -4
- package/dist/search-BrQQuNmh.mjs +131 -0
- package/dist/search-CnTXKJgx.mjs +85 -0
- package/dist/{segment-DiRJcbam.mjs → segment-Bi6eqj3e.mjs} +6 -6
- package/dist/{send-DIHkDNBN.mjs → send-CAjgVNlA.mjs} +3 -3
- package/dist/{set-D77qUZML.mjs → set-BXTkYWid.mjs} +4 -4
- package/dist/{set-active-DCdFgD0O.mjs → set-active-CBQVCePU.mjs} +3 -3
- package/dist/set-sensitivity-D39kGTob.mjs +57 -0
- package/dist/{setting-DR9bj232.mjs → setting-CPkvkc4H.mjs} +4 -4
- package/dist/{setup-DGa2LLEp.mjs → setup-Be3xDXHi.mjs} +3 -3
- package/dist/{signal-k7cm5N6h.mjs → signal-CxWeLszu.mjs} +1 -1
- package/dist/{skill-list-DAvGGHzS.mjs → skill-list-CBGq30sI.mjs} +2 -2
- package/dist/{skills-CqtNuSXM.mjs → skills-CJ9eXouJ.mjs} +2 -2
- package/dist/{skills-CCn7cyMP.mjs → skills-DyiLycMY.mjs} +3 -3
- package/dist/snippet-QirK70R_.mjs +19 -0
- package/dist/{stash-BTtsV0AG.mjs → stash-BVN3s5N_.mjs} +6 -6
- package/dist/{status-CW7Dt-nV.mjs → status-BtbMmIWo.mjs} +7 -7
- package/dist/{status-XgSS3StV.mjs → status-CxP6w3aL.mjs} +3 -3
- package/dist/{subscription-CofRU47d.mjs → subscription-Dr-YHARg.mjs} +6 -6
- package/dist/{subscriptions-DCuuPF6U.mjs → subscriptions-8tM8TTeQ.mjs} +6 -6
- package/dist/{summary-uGlgKE3C.mjs → summary-DKx6ptQe.mjs} +5 -5
- package/dist/sync-schema-B8RY0Ra4.mjs +32 -0
- package/dist/{sync-schema-Cu9rD3eH.mjs → sync-schema-kNriXZjG.mjs} +6 -6
- package/dist/sync-task-CXFoqlpF.mjs +53 -0
- package/dist/table-CZnT6d9x.mjs +26 -0
- package/dist/{table-DfuY0N8e.mjs → table-Ci6bhZkb.mjs} +35 -12
- package/dist/table-CxvaDiIZ.mjs +155 -0
- package/dist/table-selector-flags-1bYkAKld.mjs +42 -0
- package/dist/text-DaNkPRwt.mjs +6 -0
- package/dist/timeline-CUzx6uXi.mjs +21 -0
- package/dist/{timeline-event-D-h0A_oh.mjs → timeline-event-DpNm4dkn.mjs} +6 -6
- package/dist/{transform-CtqB1WYo.mjs → transform-CNBIV7No.mjs} +1 -1
- package/dist/transform-g4-HHzDp.mjs +28 -0
- package/dist/transform-job-DqBtnTrG.mjs +22 -0
- package/dist/{transform-tag-BLp_p9J-.mjs → transform-tag-nTb0Ivpj.mjs} +5 -5
- package/dist/{transforms-n2IwEcbU.mjs → transforms-BSsAfwAg.mjs} +5 -5
- package/dist/tree-lMvw1jnZ.mjs +34 -0
- package/dist/{unpublish-DVQCAa3g.mjs → unpublish-CYFDd828.mjs} +3 -3
- package/dist/unreferenced-8Xdq76Kw.mjs +36 -0
- package/dist/{update-oQeQyqKO.mjs → update-6P_GYCLT.mjs} +5 -5
- package/dist/{update-DFdBeJwc.mjs → update-B28EJzrx.mjs} +13 -8
- package/dist/{update-DffrdV4b.mjs → update-BDunZa7G.mjs} +4 -4
- package/dist/{update-DKO9HF1f.mjs → update-BT2yNB_g.mjs} +6 -6
- package/dist/{update-rFRPLlb6.mjs → update-BnMUSFYZ.mjs} +4 -4
- package/dist/update-BwrYeKso.mjs +41 -0
- package/dist/{update-B7CikkI0.mjs → update-C7DEMiu-.mjs} +7 -7
- package/dist/{update-CAsqNhDC.mjs → update-CITzAFG8.mjs} +4 -4
- package/dist/update-CLl8tE20.mjs +181 -0
- package/dist/{update-C05J2nZ2.mjs → update-CM5uuhjB.mjs} +4 -4
- package/dist/{update-ChpOukqq.mjs → update-CQXcsvaa.mjs} +5 -5
- package/dist/{update-D4ggtuG4.mjs → update-Cs2zv_L2.mjs} +7 -7
- package/dist/{update-NGq0yXZk.mjs → update-D--Fw7-_.mjs} +5 -5
- package/dist/{update-D9H6Lh5U.mjs → update-D9p0N8ky.mjs} +4 -4
- package/dist/{update-CKDRuduL.mjs → update-DAzRx0of.mjs} +5 -5
- package/dist/{update-CnkPYL2i.mjs → update-D_DCOOAB.mjs} +6 -6
- package/dist/{update-DScUzKLI.mjs → update-_sYM1GuU.mjs} +7 -7
- package/dist/{update-dashcard-DvPqLJ3N.mjs → update-dashcard-VNnIqHDI.mjs} +6 -6
- package/dist/{upgrade-BRgw0fvn.mjs → upgrade-Tj_reACv.mjs} +4 -4
- package/dist/upload-BKxOpSz3.mjs +13 -0
- package/dist/{upload-Do2PBSeH.mjs → upload-C2fhpKkP.mjs} +2 -2
- package/dist/{upload-BrfbcbBW.mjs → upload-Dg91ldGg.mjs} +3 -3
- package/dist/{uuid-B4eij1d7.mjs → uuid-Blpv_e0S.mjs} +2 -2
- package/dist/{validate-xR_MHBNR.mjs → validate-D7e110oU.mjs} +1 -1
- package/dist/{validate-query-D6_ad-Gi.mjs → validate-query-C7LuKiUT.mjs} +2 -2
- package/dist/{values-xgOftPq5.mjs → values-PonkbYAK.mjs} +5 -5
- package/dist/verify-DixUBbd2.mjs +38 -0
- package/dist/verify-Dv7ER11c.mjs +38 -0
- package/dist/{verify-DTOA_wVM.mjs → verify-Mpb65a5v.mjs} +3 -3
- package/dist/verify-flags-CMpRkMPa.mjs +58 -0
- package/dist/{wait-BjeFgR13.mjs → wait-CaH6XHQV.mjs} +6 -6
- package/dist/{wait-flags-BCeCnaz3.mjs → wait-flags-rUU4NUrv.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/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/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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { W as listFlag, nt as parseEnumCsv, tt as parseEnum } from "./cli.mjs";
|
|
2
|
+
import { f as SortDirection, s as CardType } from "./card-Bv4ZN0oV.mjs";
|
|
3
|
+
import { f as DependencyType, l as DependencyItemsSortColumn, p as DependentsSortColumn } from "./dependency-DKSjKT8P.mjs";
|
|
4
|
+
import { t as parseOptionalText } from "./parse-text-T0lTXzTZ.mjs";
|
|
5
|
+
//#region src/commands/dependency/filter-flags.ts
|
|
6
|
+
const sharedFilterFlags = {
|
|
7
|
+
"include-personal-collections": {
|
|
8
|
+
type: "boolean",
|
|
9
|
+
description: "Also list content in personal collections"
|
|
10
|
+
},
|
|
11
|
+
"sort-direction": {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: `Sort direction: ${SortDirection.options.join("|")} (default: asc)`
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const dependentFilterFlags = {
|
|
17
|
+
"dependent-types": listFlag({
|
|
18
|
+
type: "string",
|
|
19
|
+
description: `Comma-separated entity kinds to keep: ${DependencyType.options.join(",")}`
|
|
20
|
+
}),
|
|
21
|
+
"dependent-card-types": listFlag({
|
|
22
|
+
type: "string",
|
|
23
|
+
description: `Comma-separated card kinds to keep (narrows card dependents only): ${CardType.options.join(",")}`
|
|
24
|
+
}),
|
|
25
|
+
"sort-column": {
|
|
26
|
+
type: "string",
|
|
27
|
+
description: `Sort by: ${DependentsSortColumn.options.join("|")} (default: name)`
|
|
28
|
+
},
|
|
29
|
+
...sharedFilterFlags
|
|
30
|
+
};
|
|
31
|
+
function readDependentFilters(args) {
|
|
32
|
+
return {
|
|
33
|
+
"dependent-types": parseEnumCsv(args["dependent-types"], DependencyType, "--dependent-types"),
|
|
34
|
+
"dependent-card-types": parseEnumCsv(args["dependent-card-types"], CardType, "--dependent-card-types"),
|
|
35
|
+
"include-personal-collections": args["include-personal-collections"] ? true : void 0,
|
|
36
|
+
"sort-column": parseEnum(args["sort-column"], DependentsSortColumn, "--sort-column"),
|
|
37
|
+
"sort-direction": parseEnum(args["sort-direction"], SortDirection, "--sort-direction")
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const queryFlag = { query: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Keep entities whose name or location contains this text (case-insensitive)"
|
|
43
|
+
} };
|
|
44
|
+
const itemFilterFlags = {
|
|
45
|
+
types: listFlag({
|
|
46
|
+
type: "string",
|
|
47
|
+
description: `Comma-separated entity kinds to list: ${DependencyType.options.join(",")}`
|
|
48
|
+
}),
|
|
49
|
+
"card-types": listFlag({
|
|
50
|
+
type: "string",
|
|
51
|
+
description: `Comma-separated card kinds to list (narrows cards only): ${CardType.options.join(",")}`
|
|
52
|
+
}),
|
|
53
|
+
...queryFlag,
|
|
54
|
+
"sort-column": {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: `Sort by: ${DependencyItemsSortColumn.options.join("|")} (default: name)`
|
|
57
|
+
},
|
|
58
|
+
...sharedFilterFlags
|
|
59
|
+
};
|
|
60
|
+
function readItemFilters(args) {
|
|
61
|
+
return {
|
|
62
|
+
types: parseEnumCsv(args.types, DependencyType, "--types"),
|
|
63
|
+
"card-types": parseEnumCsv(args["card-types"], CardType, "--card-types"),
|
|
64
|
+
query: parseOptionalText(args.query, "--query"),
|
|
65
|
+
"include-personal-collections": args["include-personal-collections"] ? true : void 0,
|
|
66
|
+
"sort-column": parseEnum(args["sort-column"], DependencyItemsSortColumn, "--sort-column"),
|
|
67
|
+
"sort-direction": parseEnum(args["sort-direction"], SortDirection, "--sort-direction")
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { readItemFilters as a, readDependentFilters as i, itemFilterFlags as n, queryFlag as r, dependentFilterFlags as t };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { G as listFlags, H as connectionFlags, J as profileFlag, X as listEnvelopeSchema, d as renderList, q as outputFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
|
+
import { n as windowList } from "./window-CI_QD04s.mjs";
|
|
5
|
+
import { d as TableForeignKeyCompact } from "./table-Ci6bhZkb.mjs";
|
|
6
|
+
import { a as tableForeignKeyView } from "./table-CxvaDiIZ.mjs";
|
|
7
|
+
//#region src/commands/table/fks.ts
|
|
8
|
+
const TableForeignKeyListEnvelope = listEnvelopeSchema(TableForeignKeyCompact);
|
|
9
|
+
var fks_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "fks",
|
|
12
|
+
description: "List the foreign keys pointing at a table"
|
|
13
|
+
},
|
|
14
|
+
details: "Lists every active field whose `fk_target_field_id` is an active, unretired field of this table, the table's own self-references included. The server leaves out origin fields in inactive tables and in tables the caller cannot read, so a non-admin sees only the foreign keys from tables it can read. The text table names the origin as `<schema>.<table>.<field>`, or `<table>.<field>` on a database without schemas.",
|
|
15
|
+
requires: ["table.fks"],
|
|
16
|
+
args: {
|
|
17
|
+
...outputFlags,
|
|
18
|
+
...listFlags,
|
|
19
|
+
...profileFlag,
|
|
20
|
+
...connectionFlags,
|
|
21
|
+
id: {
|
|
22
|
+
type: "positional",
|
|
23
|
+
description: "Table id",
|
|
24
|
+
required: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
outputSchema: TableForeignKeyListEnvelope,
|
|
28
|
+
examples: ["mb table fks 42", "mb table fks 42 --json"],
|
|
29
|
+
async run({ args, ctx, getClient }) {
|
|
30
|
+
const id = parseId(args.id);
|
|
31
|
+
const { data } = await (await getClient()).table.fks(id);
|
|
32
|
+
renderList(windowList(data, ctx.range), tableForeignKeyView, ctx);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { fks_default as default };
|
|
@@ -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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
|
+
import { r as DatabaseGetInclude, t as Database } from "./database-D-CRyRIv.mjs";
|
|
5
|
+
import { n as databaseView } from "./database-MlUPpitM.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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
4
|
import { t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
5
5
|
import { n as timelineView } from "./timeline-uDCmwGFT.mjs";
|
|
6
6
|
//#region src/commands/timeline/get.ts
|
|
@@ -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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
4
|
import { t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
5
5
|
import { t as measureView } from "./measure-4P0bOlZ3.mjs";
|
|
6
6
|
//#region src/commands/measure/get.ts
|
|
@@ -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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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-
|
|
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-CZ5zh32z.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,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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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,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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
4
|
import { t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
5
5
|
import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
|
|
6
6
|
//#region src/commands/snippet/get.ts
|
|
@@ -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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
4
|
import { t as Segment } from "./segment-OsrbUDzw.mjs";
|
|
5
5
|
import { t as segmentView } from "./segment-C_gl5ag6.mjs";
|
|
6
6
|
//#region src/commands/segment/get.ts
|
|
@@ -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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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 { 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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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-
|
|
4
|
-
import { t as Card } from "./card-
|
|
5
|
-
import { n as cardView } from "./card-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
|
+
import { t as Card } from "./card-Bv4ZN0oV.mjs";
|
|
5
|
+
import { n as cardView } from "./card-DSrgU7lT.mjs";
|
|
6
6
|
//#region src/commands/card/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
2
|
import { n as Notification } from "./notification-DaA4bBHW.mjs";
|
|
3
|
-
import { t as notificationView } from "./notification-
|
|
4
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
5
|
-
import { t as parseId } from "./parse-id-
|
|
3
|
+
import { t as notificationView } from "./notification-DOYdl0ao.mjs";
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-CZ5zh32z.mjs";
|
|
5
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
6
6
|
//#region src/commands/alert/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 {
|
|
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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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,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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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
|
|
@@ -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-CZ5zh32z.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,7 +1,7 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as Library } from "./library-
|
|
4
|
-
import { t as libraryView } from "./library-
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CZ5zh32z.mjs";
|
|
3
|
+
import { t as Library } from "./library-Ck0EK5bi.mjs";
|
|
4
|
+
import { t as libraryView } from "./library-BOv5SY24.mjs";
|
|
5
5
|
//#region src/commands/library/get.ts
|
|
6
6
|
var get_default = defineMetabaseCommand({
|
|
7
7
|
meta: {
|
|
@@ -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 {
|
|
5
|
-
import {
|
|
1
|
+
import { H as connectionFlags, J as profileFlag, q as outputFlags, u as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.mjs";
|
|
4
|
+
import { o as DashboardDetail } from "./dashboard-Phz3XpRM.mjs";
|
|
5
|
+
import { n as dashboardView } from "./dashboard-XSTr9QCr.mjs";
|
|
6
6
|
//#region src/commands/dashboard/get.ts
|
|
7
7
|
var get_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as windowList } from "./window-
|
|
4
|
-
import { a as readSkillContent, i as loadVisibleSkills, o as selectForProfile, r as loadAllSkills, s as selectSkillsByNames, t as SkillContent } from "./skills-
|
|
5
|
-
import { i as unfilteredFlag, r as skillFilterNotices, t as UnavailableSkills } from "./skill-list-
|
|
1
|
+
import { G as listFlags, J as profileFlag, Z as listEnvelopeSchemaWithExtras, at as ConfigError, et as parseCsv, f as renderListWithExtras, g as writeText, k as warn, q as outputFlags } from "./cli.mjs";
|
|
2
|
+
import { n as readCachedServerProfile, o as resolveProfileName, t as defineMetabaseCommand } from "./runtime-CZ5zh32z.mjs";
|
|
3
|
+
import { n as windowList } from "./window-CI_QD04s.mjs";
|
|
4
|
+
import { a as readSkillContent, i as loadVisibleSkills, o as selectForProfile, r as loadAllSkills, s as selectSkillsByNames, t as SkillContent } from "./skills-CJ9eXouJ.mjs";
|
|
5
|
+
import { i as unfilteredFlag, r as skillFilterNotices, t as UnavailableSkills } from "./skill-list-CBGq30sI.mjs";
|
|
6
6
|
//#region src/commands/skills/get.ts
|
|
7
7
|
const SkillGetEnvelope = listEnvelopeSchemaWithExtras(SkillContent, { unavailable: UnavailableSkills });
|
|
8
8
|
const SKILL_OVERSIZE_HINT = "a skill body is indivisible — pass --max-bytes 0 to print it whole, or `mb skills path <name>` to read it from disk";
|
|
@@ -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-CZ5zh32z.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-BW09NysN.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,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-BtbMmIWo.mjs").then((mod) => mod.default),
|
|
12
|
+
"is-dirty": () => import("./is-dirty-CAsVuVx8.mjs").then((mod) => mod.default),
|
|
13
|
+
"has-remote-changes": () => import("./has-remote-changes-B8MmN6yh.mjs").then((mod) => mod.default),
|
|
14
|
+
dirty: () => import("./dirty-B-Is68--.mjs").then((mod) => mod.default),
|
|
15
|
+
"current-task": () => import("./current-task-CHs0zNFM.mjs").then((mod) => mod.default),
|
|
16
|
+
"cancel-task": () => import("./cancel-task-CELBfBPP.mjs").then((mod) => mod.default),
|
|
17
|
+
wait: () => import("./wait-CaH6XHQV.mjs").then((mod) => mod.default),
|
|
18
|
+
import: () => import("./import-Bhq15KgP.mjs").then((mod) => mod.default),
|
|
19
|
+
export: () => import("./export-BKkAJOFb.mjs").then((mod) => mod.default),
|
|
20
|
+
"export-preflight": () => import("./export-preflight-CwJ_3-iX.mjs").then((mod) => mod.default),
|
|
21
|
+
stash: () => import("./stash-BVN3s5N_.mjs").then((mod) => mod.default),
|
|
22
|
+
branches: () => import("./branches-ZvGNhed6.mjs").then((mod) => mod.default),
|
|
23
|
+
"create-branch": () => import("./create-branch-DxL7KUZp.mjs").then((mod) => mod.default),
|
|
24
|
+
"add-collection": () => import("./add-collection-CC6KSwjX.mjs").then((mod) => mod.default),
|
|
25
|
+
"remove-collection": () => import("./remove-collection-Bg-sNX3U.mjs").then((mod) => mod.default)
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { git_sync_default as default };
|
|
@@ -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 };
|