@metabase/cli 0.5.17 → 0.5.18
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-C7MKpQ_s.mjs → add-collection-Bj9NfvnN.mjs} +5 -5
- package/dist/{alert-5KJl2LGw.mjs → alert-CMshuKkD.mjs} +7 -7
- package/dist/{alerts-VdBqaRBN.mjs → alerts-DNfvRAHF.mjs} +4 -4
- package/dist/api-key-AnD8WQtk.mjs +13 -0
- package/dist/{append-CKR_78Hr.mjs → append-B6NKVXmC.mjs} +4 -4
- package/dist/{archive-BuGuzMOF.mjs → archive-BHwRFiIp.mjs} +3 -3
- package/dist/{archive-BaNVn1zm.mjs → archive-BigVLFhO.mjs} +5 -5
- package/dist/{archive-BO1Lhbhj.mjs → archive-BymwF3JK.mjs} +3 -3
- package/dist/{archive-DMGJ8d64.mjs → archive-CnScSiQl.mjs} +3 -3
- package/dist/{archive-b2ZdURU-.mjs → archive-CsxKuct2.mjs} +3 -3
- package/dist/{archive-C_t5LBQX.mjs → archive-DASCU44R.mjs} +3 -3
- package/dist/{archive-fxJhlFeE.mjs → archive-DFSuRpQU.mjs} +5 -5
- package/dist/{archive-A-q9e46B.mjs → archive-DQL3uq3S.mjs} +3 -3
- package/dist/{archive-hBsJNt9B.mjs → archive-DXD8E-tc.mjs} +5 -5
- package/dist/{archive-PyBRVjY2.mjs → archive-fDo0iMXZ.mjs} +3 -3
- package/dist/{archive-yzyLfcKv.mjs → archive-wKfb5LNv.mjs} +3 -3
- package/dist/{archive-Lv8i5kbZ.mjs → archive-xGLFsqVv.mjs} +3 -3
- package/dist/{auth-zQZU0h1l.mjs → auth-CNDQbQXF.mjs} +5 -5
- package/dist/{branch-flag-ClXFjNvx.mjs → branch-flag-kZkAZcPJ.mjs} +1 -1
- package/dist/{branches-BNuxljRy.mjs → branches-CcDKZnBq.mjs} +2 -2
- package/dist/{breaking-B2p2TbDM.mjs → breaking-BEwEGyrk.mjs} +5 -5
- package/dist/{broken-DhnT5VzF.mjs → broken-Bx2JFtDZ.mjs} +7 -7
- package/dist/{bulk-discard-values-KzDA_90h.mjs → bulk-discard-values-BQzOIue5.mjs} +4 -4
- package/dist/{bulk-edit-BlnQtpvj.mjs → bulk-edit-DGx6in-k.mjs} +3 -3
- package/dist/{bulk-rescan-values-D9JN-CFA.mjs → bulk-rescan-values-DGlGDhXf.mjs} +3 -3
- package/dist/{bulk-sync-schema-k_J9jizj.mjs → bulk-sync-schema-BttWpXxE.mjs} +3 -3
- package/dist/{cancel-hoChHxqA.mjs → cancel-DdhLoGp1.mjs} +3 -3
- package/dist/{cancel-task-GA9Szh_n.mjs → cancel-task-D28bHXK_.mjs} +4 -4
- package/dist/card-Jy0kBLqO.mjs +25 -0
- package/dist/{cards-e5n3QAov.mjs → cards-BXiY52Nm.mjs} +5 -5
- package/dist/{ci-D8Q5uinJ.mjs → ci-D97nJ6-1.mjs} +2 -2
- package/dist/cli.mjs +199 -100
- package/dist/{client-CjR4yUXv.mjs → client-C3lyoltK.mjs} +646 -49
- package/dist/{collection-UBLWQLeo.mjs → collection-875u7UiH.mjs} +11 -2
- package/dist/{collection-T1vdKXLp.mjs → collection-CcagB_dn.mjs} +1 -1
- package/dist/collection-CsWEl350.mjs +21 -0
- package/dist/{collection-namespace-D5df5a3W.mjs → collection-namespace-BHGpFZ3M.mjs} +2 -2
- package/dist/{content-translation-DGVLulsm.mjs → content-translation-C8Z06-vg.mjs} +3 -3
- package/dist/{copy-D5Xwxf8O.mjs → copy-FIxCe679.mjs} +6 -6
- package/dist/{copy-BXIL7wYk.mjs → copy-UIDZe3Qc.mjs} +6 -6
- package/dist/{copy-flags-4FH-1Kli.mjs → copy-flags-D_lqBhi8.mjs} +2 -2
- package/dist/{create-se8RRWKu.mjs → create-0UemhsxL.mjs} +2 -2
- package/dist/{create-B27Y2Agn.mjs → create-3fsDGV9E.mjs} +2 -2
- package/dist/{create-CMTpjoqJ2.mjs → create-Au6xqgIO2.mjs} +4 -4
- package/dist/{create-Cq0fW-no.mjs → create-BI-do2mK.mjs} +2 -2
- package/dist/{create-DEkqfDmi.mjs → create-BabzAD_X.mjs} +2 -2
- package/dist/{create-BNXNJK2B.mjs → create-Bpwl2GQ3.mjs} +5 -5
- package/dist/{create-BjhYTFJK.mjs → create-Buvd5NBb.mjs} +2 -2
- package/dist/{create-BB2ZM7fL.mjs → create-C3JXunBQ.mjs} +2 -2
- package/dist/{create-BE5VOx07.mjs → create-CUUp0UyT.mjs} +4 -4
- package/dist/{create-CYVv0RkU.mjs → create-CazoyArr.mjs} +3 -3
- package/dist/{create-BYln360V.mjs → create-D-2RdE2_.mjs} +3 -3
- package/dist/{create-BbnQQMIq.mjs → create-DJjRunsw.mjs} +3 -3
- package/dist/{create-045KXNCm.mjs → create-DaE_oGxs.mjs} +3 -3
- package/dist/{create-CYQD_XGH.mjs → create-DoVQrBJ4.mjs} +2 -2
- package/dist/{create-CfZWHNIu.mjs → create-DwY140oE.mjs} +2 -2
- package/dist/{create-DU8dvDn6.mjs → create-bksqNBGg.mjs} +2 -2
- package/dist/{create-branch-BuXhvXjm.mjs → create-branch-Dwdy7irk.mjs} +5 -5
- package/dist/{create-LRsr3Uhf.mjs → create-gMYMUL7t.mjs} +5 -5
- package/dist/{create-C3cxBLip.mjs → create-hvtusQEZ.mjs} +5 -5
- package/dist/{create-heJR0nJH.mjs → create-lu1w-Hbw.mjs} +4 -4
- package/dist/{csv-qx4IBp-p.mjs → csv-DsE_ndhE.mjs} +4 -4
- package/dist/{current-task-q6-QEL9Q.mjs → current-task-DRNyn9QX.mjs} +4 -4
- package/dist/{dashboard-BpgLh8jq.mjs → dashboard-CLvvUUuF.mjs} +1 -1
- package/dist/{dashboard-CYgXhTBr.mjs → dashboard-D5BJZS3L.mjs} +1 -1
- package/dist/dashboard-DvoGk7ty.mjs +35 -0
- package/dist/data-action-KdcOST0y.mjs +24 -0
- package/dist/{data-app-B0t_SbO4.mjs → data-app-BMfcgWaI.mjs} +9 -9
- package/dist/{data-app-project-BMwuM3sR.mjs → data-app-project-BBWM7Zdk.mjs} +4 -4
- package/dist/{database-C5ucihp3.mjs → database-BSETP2o-.mjs} +9 -2
- package/dist/{database-u_spHEa0.mjs → database-CCUXiXH_.mjs} +1 -1
- package/dist/{dataset-LJxNN6p5.mjs → dataset-a7Q_ocDR.mjs} +1 -1
- package/dist/{db-DTFpgPBk.mjs → db-C-UN7Mw7.mjs} +8 -8
- package/dist/{delete-DjSFVFV7.mjs → delete-B5RQJybZ.mjs} +4 -4
- package/dist/{delete-BSlCKzBz.mjs → delete-BxHxz81i.mjs} +4 -4
- package/dist/{delete-Dmqrn_0-.mjs → delete-BycN1h3j.mjs} +4 -4
- package/dist/{delete-DVCNhz5n.mjs → delete-CEjfhdrB.mjs} +4 -4
- package/dist/{delete-Bw-UTJI7.mjs → delete-Cnv4Bp9r.mjs} +4 -4
- package/dist/{delete-CEqsZehc.mjs → delete-DOStUKHR.mjs} +4 -4
- package/dist/{delete-gIdO570b.mjs → delete-DtZUEUck.mjs} +4 -4
- package/dist/{delete-Ct_dN7dm.mjs → delete-RhO0HMY8.mjs} +4 -4
- package/dist/{delete-runtime-DL_-4ffZ.mjs → delete-runtime-Cxw6w3Jg.mjs} +1 -1
- package/dist/{delete-table-BhhP3-_p.mjs → delete-table-BkrSMJ6s.mjs} +4 -4
- package/dist/{delete-DMZCewEx.mjs → delete-woVgrl8z.mjs} +4 -4
- package/dist/{dependencies-DR_Bckq3.mjs → dependencies-DlrwzY_z.mjs} +3 -3
- package/dist/{dependency-MDyiJVQD.mjs → dependency-00_O1kxU.mjs} +1 -1
- package/dist/{dependency-DipNC15K.mjs → dependency-C4b_A3_L.mjs} +1 -1
- package/dist/dependency-I9bjDqIy.mjs +15 -0
- package/dist/{dependents-DTa2DZ0A.mjs → dependents-DyiLbk63.mjs} +8 -8
- package/dist/{dirty-Dm1ZYpS7.mjs → dirty-CnlYt6E6.mjs} +4 -4
- package/dist/{discard-values-DRp7IqaQ.mjs → discard-values-4FiVdoR1.mjs} +4 -4
- package/dist/document-CPA4VsKw.mjs +20 -0
- package/dist/{document-BcmSU5nG.mjs → document-PQg8DshK.mjs} +1 -1
- package/dist/{document-Bt-UgIBR.mjs → document-ks1uxhBt.mjs} +1 -1
- package/dist/{download-B5QADTKg.mjs → download-CsrJ5AtI.mjs} +2 -2
- package/dist/{eid-CEQZn7Ru.mjs → eid-Da_G_-sZ.mjs} +3 -3
- package/dist/{embedding-sdk-DioW9wdh.mjs → embedding-sdk-u_7nTdoy.mjs} +2 -2
- package/dist/{entity-CrmOaQ4E.mjs → entity-DBcuKQtX.mjs} +2 -2
- package/dist/{entry-flags-COaiQvXt.mjs → entry-flags-D7BhJxIr.mjs} +3 -3
- package/dist/{events-B4KDnJnZ.mjs → events-CnJ7Rwtn.mjs} +3 -3
- package/dist/{execute-B_grmyLF.mjs → execute-CWdVreci.mjs} +3 -3
- package/dist/{export-V1W9sn5C.mjs → export-T7nyfMGZ.mjs} +8 -8
- package/dist/{export-flags-eZeWPfeZ.mjs → export-flags-BbmWODey.mjs} +2 -2
- package/dist/{export-preflight-B2tvCt3v.mjs → export-preflight-BltqMU8P.mjs} +5 -5
- package/dist/field-DquBSVH3.mjs +21 -0
- package/dist/{fields-R5D83pgR.mjs → fields-D6L8qD0M.mjs} +3 -3
- package/dist/{filter-flags-DjUePmM2.mjs → filter-flags-BEdazLt3.mjs} +3 -3
- package/dist/{fks-B5VpYMev.mjs → fks-B5_IvC2f.mjs} +3 -3
- package/dist/{generate-actions-O49UqjD3.mjs → generate-actions-CFJ_ghia.mjs} +4 -4
- package/dist/{generate-queries-CCxaX_ce.mjs → generate-queries-DTkjAUEC.mjs} +4 -4
- package/dist/{generate-schema-Cbzw8S8T.mjs → generate-schema-z8tuKZdY.mjs} +4 -4
- package/dist/{get-B_gS_XuD.mjs → get-4Polb4EY.mjs} +3 -3
- package/dist/{get-D-xmiRx5.mjs → get-7aQ6kB1P.mjs} +3 -3
- package/dist/{get-CiHEY6YW.mjs → get-B4xNfH3p.mjs} +5 -5
- package/dist/{get-DXjWWEWG.mjs → get-BFdBm5Yv.mjs} +3 -3
- package/dist/{get-DWYhIlSs.mjs → get-BGnE-1e0.mjs} +3 -3
- package/dist/{get-CPRkpfky.mjs → get-BQvkMnCE.mjs} +5 -5
- package/dist/{get-DrCrl-ZN.mjs → get-BRjcNZro.mjs} +5 -5
- package/dist/{get-BpGJSf8d.mjs → get-BZpdNUMg.mjs} +3 -3
- package/dist/{get-D1EPFO5_.mjs → get-BoYBPOre.mjs} +3 -3
- package/dist/{get-C7LFdtZL.mjs → get-BzHlTaIt.mjs} +3 -3
- package/dist/{get-Cib9UKz1.mjs → get-CPJ79uJS.mjs} +3 -3
- package/dist/{get-J019yh0K.mjs → get-CPTbKAkr.mjs} +3 -3
- package/dist/{get-H3X0ASHs.mjs → get-CmAfytZm.mjs} +4 -4
- package/dist/{get-DqKsf4N-.mjs → get-Co_dWeNO.mjs} +3 -3
- package/dist/{get-BIX5uHft.mjs → get-D83daNye.mjs} +3 -3
- package/dist/{get-C2g5h7yv.mjs → get-DRTQCy8i.mjs} +3 -3
- package/dist/{get-r_UoDqgf.mjs → get-DWxbhLGD.mjs} +3 -3
- package/dist/{get-BsptQrzr.mjs → get-DZ0Y723i.mjs} +3 -3
- package/dist/{get-DTH_ZiwE.mjs → get-DwMKTdth.mjs} +10 -5
- package/dist/{get-BL7E_E2I.mjs → get-Ia79m3fd.mjs} +5 -5
- package/dist/{get-Cd0QEjSh.mjs → get-NFhCBU6R.mjs} +3 -3
- package/dist/{get-Dmxkihcr.mjs → get-rSBE94TP.mjs} +3 -3
- package/dist/{get-run-BvzAhPi0.mjs → get-run-DlpRMIC1.mjs} +3 -3
- package/dist/{git-sync-D1aKczo6.mjs → git-sync-C0yHY3bG.mjs} +1 -1
- package/dist/git-sync-CfDVrtF4.mjs +399 -0
- package/dist/git-sync-u9IUnjvH.mjs +29 -0
- package/dist/glossary-CVhKIwOq.mjs +14 -0
- package/dist/{glossary-B1jwt25B.mjs → glossary-CnSPXHAd.mjs} +1 -1
- package/dist/{glossary--NSqIGy5.mjs → glossary-z3Nvbo2P.mjs} +1 -1
- package/dist/{graph-BOLRH-lU.mjs → graph-CDzK39x5.mjs} +6 -6
- package/dist/{group-DxaqX3Gg.mjs → group-W6sZ0eWr.mjs} +1 -1
- package/dist/{has-remote-changes-CTrRo6EC.mjs → has-remote-changes-DAI22ieL.mjs} +4 -4
- package/dist/{import-CsIkDnWQ.mjs → import-CvBhorpj.mjs} +8 -8
- package/dist/{is-dirty-CUToDpA1.mjs → is-dirty-C35y7-Gk.mjs} +2 -2
- package/dist/{items-D9kxySKc.mjs → items-BPeXkhSe.mjs} +5 -5
- package/dist/{key-BPgr-uOm.mjs → key-DoqP1glp.mjs} +1 -1
- package/dist/{library-D2iGUx8x.mjs → library-C1RMcmjm.mjs} +5 -5
- package/dist/{library-9_e7RoW3.mjs → library-DlJjXXJT.mjs} +1 -1
- package/dist/{library-DpX_-UCK.mjs → library-DrbHqj17.mjs} +1 -1
- package/dist/{list-BIsh7CS4.mjs → list--qtST6Mu.mjs} +2 -2
- package/dist/{list-CVq_OaRN.mjs → list-BFAc6oZu.mjs} +2 -2
- package/dist/{list-CLK0ceIQ.mjs → list-BMOhV_vf.mjs} +2 -2
- package/dist/{list-CYWzH6SZ.mjs → list-BTKVHUkk.mjs} +5 -5
- package/dist/{list-D76iHfwo.mjs → list-BTbH-TVK.mjs} +5 -5
- package/dist/{list-CLkY7s9r.mjs → list-BYsQb175.mjs} +2 -2
- package/dist/{list-DbLN30Iz.mjs → list-BaM9JWY2.mjs} +3 -3
- package/dist/{list-Bg-NYdYo.mjs → list-Bjmqnc1r.mjs} +5 -5
- package/dist/{list-CzWbo_oA.mjs → list-BxUbbCRa.mjs} +2 -2
- package/dist/{list-C1X5JuzO.mjs → list-CZnf165W.mjs} +4 -4
- package/dist/{list-Cm0Qbs19.mjs → list-DCTZ3KMG.mjs} +3 -3
- package/dist/{list-Y9W9n4rh.mjs → list-DeEkR_mM.mjs} +2 -2
- package/dist/{list-BAHaze-O.mjs → list-Dfl-nxFI.mjs} +3 -3
- package/dist/{list-YyWMvzzr.mjs → list-Du0jDR1s.mjs} +4 -4
- package/dist/{list-BmGs9ZA6.mjs → list-DuS4ayN2.mjs} +2 -2
- package/dist/{list-CRV4Fon9.mjs → list-OpPH1899.mjs} +2 -2
- package/dist/{list-nU9V7QAo.mjs → list-Pse7z6Mw.mjs} +2 -2
- package/dist/{list-D5FJ09yJ.mjs → list-h1LmXpNZ.mjs} +4 -4
- package/dist/{list-ChATvCZv.mjs → list-hwcNqDVu.mjs} +2 -2
- package/dist/{list-gRSH0USz.mjs → list-ksxQw-0v.mjs} +2 -2
- package/dist/{list-BSm3_is3.mjs → list-rI68Y9Gz.mjs} +2 -2
- package/dist/{list-4Zir7Qa4.mjs → list-sdqp8e2x.mjs} +3 -3
- package/dist/{list-zImE-jdb.mjs → list-uQmmcjXD.mjs} +2 -2
- package/dist/{login-8xVwIW-u.mjs → login-KFeoZ4cp.mjs} +6 -6
- package/dist/{logout-DxTMO924.mjs → logout-ByJEvueB.mjs} +3 -3
- package/dist/{measure-C4S2coO7.mjs → measure-BJPVfAaG.mjs} +6 -6
- package/dist/{nano-id-C37LSdu-.mjs → nano-id-CZiRB0W_.mjs} +3 -3
- package/dist/{parameter-values-C4lSrNn_.mjs → parameter-values-B5s2INem.mjs} +5 -5
- package/dist/{parse-enum-Dh_pkHdD.mjs → parse-enum-Dm1BvZRN.mjs} +1 -1
- package/dist/{parse-id-DKKwr4c8.mjs → parse-id-DSHwgzAA.mjs} +1 -1
- package/dist/{parse-ref-01NRD9cO.mjs → parse-ref-CN-6HBFM.mjs} +1 -1
- package/dist/{parse-text-Bnmhu9uL.mjs → parse-text-C3VlFRgF.mjs} +1 -1
- package/dist/{path-BImEWndG.mjs → path-DO6KvEqL.mjs} +3 -3
- package/dist/poll-1TEUi8qv.mjs +73 -0
- package/dist/{predicates-RLoSqLcT.mjs → predicates-DQA0AsBx.mjs} +5 -1
- package/dist/{preflight-DxI4O7fK.mjs → preflight-CeXhEJfq.mjs} +3 -3
- package/dist/{process-BzhbQ7c6.mjs → process-DZcS6SKr.mjs} +1 -1
- package/dist/{publish-cJHKIiBC.mjs → publish-VqKsiioy.mjs} +5 -5
- package/dist/{query-VCxGhfTT.mjs → query-CfOj4dF5.mjs} +8 -8
- package/dist/{query-BdyzoLZW.mjs → query-D0iAwWIe.mjs} +5 -5
- package/dist/{registry-flag-pFusSlf8.mjs → registry-flag-CFPEqyNd.mjs} +3 -3
- package/dist/{remapping-D1Sa-xfO.mjs → remapping-CepD_wm5.mjs} +4 -4
- package/dist/{remove-collection-D-VC2Gw0.mjs → remove-collection-Dyu-svGv.mjs} +5 -5
- package/dist/{render-Bmgfe3yb.mjs → render-Ck41d-L0.mjs} +2 -2
- package/dist/{replace-CEopwhIh.mjs → replace-BSPrhltr.mjs} +4 -4
- package/dist/{requirement-check-B87F9671.mjs → requirement-check-CoX3mEdF.mjs} +10 -2
- package/dist/{rescan-values-CF-Dl6sN.mjs → rescan-values-Cc952DEH.mjs} +3 -3
- package/dist/{rescan-values-DQDupjHI.mjs → rescan-values-MLAz1ZbW.mjs} +5 -5
- package/dist/{run-DH72xxih.mjs → run-BIpGmnHS.mjs} +5 -5
- package/dist/{run-C3M2E0GK.mjs → run-CHMiJcwC.mjs} +3 -3
- package/dist/{run-Bu7XLdUh.mjs → run-Cc2HW3ZI.mjs} +5 -5
- package/dist/{run-BAupv3WM.mjs → run-D4uxDLy7.mjs} +5 -5
- package/dist/{runs-Sv7RD4Fq.mjs → runs-DUFlS3Z-.mjs} +3 -3
- package/dist/{runtime-C604gE-r.mjs → runtime-Hl006cLS.mjs} +68 -24
- package/dist/{scaffold-CmA20NoK.mjs → scaffold-DtcfaLeA.mjs} +7 -7
- package/dist/{schema-BWYgM6R4.mjs → schema-6P82WjNJ.mjs} +7 -7
- package/dist/{schema-tables-C9Sp4VWC.mjs → schema-tables-DkDCq2GB.mjs} +3 -3
- package/dist/{schemas-Nk7rDuaw.mjs → schemas-BdcK4Qcy.mjs} +3 -3
- package/dist/{sdk-version-Dk1-ILRc.mjs → sdk-version-DH2fl10p.mjs} +4 -4
- package/dist/{search-DYrl0gT0.mjs → search-COpkYln7.mjs} +5 -5
- package/dist/{search-b1w3LK09.mjs → search-kIoBsgMB.mjs} +5 -5
- package/dist/{segment-Bqtp0kFB.mjs → segment-X6wjQqtj.mjs} +6 -6
- package/dist/{send-ColF6-hL.mjs → send-B6n4B-Mb.mjs} +3 -3
- package/dist/{set-DSXN4cLO.mjs → set-CYRe1u4c.mjs} +3 -3
- package/dist/{set-active-BHCwRaZI.mjs → set-active-RoXnJkfD.mjs} +3 -3
- package/dist/{set-data-actions-B8QMEILh.mjs → set-data-actions-CRFOH_li.mjs} +6 -6
- package/dist/{set-enabled-DgBE9cdW.mjs → set-enabled-DfaCOQig.mjs} +4 -4
- package/dist/{set-sensitivity-DZXMFyj1.mjs → set-sensitivity-BRvy0pfV.mjs} +4 -4
- package/dist/{setting-DdB-4mgj.mjs → setting-DWdtp4lv.mjs} +4 -4
- package/dist/{setup-8Kdv5hzG.mjs → setup-DpHz8tm9.mjs} +2 -2
- package/dist/{skills-BVGZUFdg.mjs → skills-313T3aGC.mjs} +4 -4
- package/dist/{skills-Gq6uSx2f.mjs → skills-Du8a9V9F.mjs} +3 -3
- package/dist/{slug-DciR6pKq.mjs → slug-DhT4O0Aa.mjs} +1 -1
- package/dist/snippet-uDlfAY2R.mjs +19 -0
- package/dist/{stash-D7vPehrB.mjs → stash-DJ1nYTJS.mjs} +7 -7
- package/dist/{status-BXv6DNe1.mjs → status-DuRBpGQa.mjs} +3 -3
- package/dist/{status-MYpQhWUe.mjs → status-HUitbwTc.mjs} +5 -5
- package/dist/{subscription-BRGXG394.mjs → subscription-C_BRMkcY.mjs} +6 -6
- package/dist/{subscriptions-IGAziZPm.mjs → subscriptions-D2sw0LRD.mjs} +4 -4
- package/dist/{summary-nrM5fHQ2.mjs → summary-C4v7PVFE.mjs} +3 -3
- package/dist/{sync-schema-clOXGTeH.mjs → sync-schema-47WF7nm6.mjs} +6 -6
- package/dist/{sync-schema-Dz9wQd4G.mjs → sync-schema-CQS8hn4e.mjs} +3 -3
- package/dist/{sync-task-Fo5vCyyW.mjs → sync-task-DPFDTvEe.mjs} +2 -2
- package/dist/table-Bo663yFg.mjs +26 -0
- package/dist/{table-selector-flags-D7rbRFD9.mjs → table-selector-flags-BiFCN3f-.mjs} +3 -3
- package/dist/{text-oFZn63P5.mjs → text-D1q1NlLJ.mjs} +1 -1
- package/dist/timeline-Qg-9RjSW.mjs +21 -0
- package/dist/{timeline-event-zTlg0l93.mjs → timeline-event-Bia426Y4.mjs} +6 -6
- package/dist/transform-Catz8GdK.mjs +28 -0
- package/dist/transform-job-BcaheBK9.mjs +22 -0
- package/dist/{transform-tag-BAACrCIl.mjs → transform-tag-aP0kvj5-.mjs} +5 -5
- package/dist/transform-test-UNNeneMm.mjs +16 -0
- package/dist/{transforms-DJcALLGn.mjs → transforms-BpykgvzU.mjs} +3 -3
- package/dist/{transport-DfIZveGA.mjs → transport-I0zuxki5.mjs} +118 -47
- package/dist/{tree-BJBeUJ9Y.mjs → tree-DZ3YLCje.mjs} +4 -4
- package/dist/{unpublish-DD84rHRH.mjs → unpublish-BH-8N8S9.mjs} +3 -3
- package/dist/{unreferenced-TWCy-s5F.mjs → unreferenced-BGIPLLRG.mjs} +5 -5
- package/dist/{update-CuAoB110.mjs → update-9WG4Ks__.mjs} +6 -6
- package/dist/{update-DBseT7BB.mjs → update-BHAILm8s.mjs} +3 -3
- package/dist/{update-BboO0IUv.mjs → update-BdvA1vcE.mjs} +3 -3
- package/dist/{update-B4DzHQ-j.mjs → update-BlvNFo81.mjs} +3 -3
- package/dist/{update-ByN7IFld.mjs → update-Bq22f7Zx.mjs} +3 -3
- package/dist/{update-BBkKvDBy.mjs → update-CFZsL4Ic.mjs} +4 -4
- package/dist/{update-CFJR92_j2.mjs → update-CGJmAKuC2.mjs} +3 -3
- package/dist/{update-JFFsF7kU.mjs → update-ChMYUZQ8.mjs} +3 -3
- package/dist/{update-cvdd5OIM.mjs → update-CnDoasSQ.mjs} +5 -5
- package/dist/{update-DZQ5ZEpV.mjs → update-DEDzv1mA.mjs} +7 -7
- package/dist/{update-N-EjTy_6.mjs → update-DFBfTmhv.mjs} +4 -4
- package/dist/{update-YH57RzrK.mjs → update-DSPTxIe4.mjs} +5 -5
- package/dist/{update-COzu9X6G.mjs → update-DTNccf-s.mjs} +3 -3
- package/dist/{update-rBhrk13R.mjs → update-DTPwJ5xA.mjs} +6 -6
- package/dist/{update-De-fdx1H.mjs → update-DWbleEvw.mjs} +4 -4
- package/dist/{update-BhQa3TdY.mjs → update-Dnw9fBei.mjs} +3 -3
- package/dist/{update-GqB2gxF-.mjs → update-Dv4Y0Jyp.mjs} +3 -3
- package/dist/{update-Bu_yvXLE.mjs → update-Dyqk-Vqe.mjs} +4 -4
- package/dist/{update-dashcard-DZtQUBVb.mjs → update-dashcard-DJGaybcJ.mjs} +5 -5
- package/dist/{update-Bnak2DVK.mjs → update-t5WIAXSK.mjs} +3 -3
- package/dist/{upgrade-q-QAg5hL.mjs → upgrade-DGkndHKX.mjs} +5 -5
- package/dist/upload-51B4fVXD.mjs +13 -0
- package/dist/{upload-CHzuTcgy.mjs → upload-CnDHOsWN.mjs} +2 -2
- package/dist/{upload-CSFjeAL6.mjs → upload-CqTI_tAv.mjs} +3 -3
- package/dist/{uuid-BNhr57o_.mjs → uuid-C_Tp0KDF.mjs} +3 -3
- package/dist/{validate-xmlIkST4.mjs → validate-CvcqIGsS.mjs} +1 -1
- package/dist/{validate-query-DuK8pUmu.mjs → validate-query-D1LLmD9e.mjs} +2 -2
- package/dist/{values-BB4cTLim.mjs → values-DgFZCjtq.mjs} +3 -3
- package/dist/{verify-DLn_hvyT.mjs → verify-64UZkL-F.mjs} +3 -3
- package/dist/{verify-C85vwjR-.mjs → verify-CpfETbmC.mjs} +3 -3
- package/dist/{verify-mWoejtbQ.mjs → verify-DVKZxlxc.mjs} +4 -4
- package/dist/{wait-jszi7SI3.mjs → wait-DwbaWN87.mjs} +6 -6
- package/dist/{wait-flags-BhjQdHSI.mjs → wait-flags-BlkgkiZz.mjs} +2 -2
- package/dist/{yaml-CP5VvAqK.mjs → yaml-DKHMM0Qk.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +4 -1
- package/skill-data/data-app/SKILL.md +13 -3
- package/skill-data/data-app-actions/SKILL.md +1 -1
- package/skill-data/data-app-data/SKILL.md +2 -2
- package/skill-data/data-app-migration/SKILL.md +131 -0
- package/skill-data/data-app-migration/references/change.md +9 -0
- package/skill-data/data-app-migration/references/checkpoints.md +50 -0
- package/skill-data/data-app-migration/references/connect.md +29 -0
- package/skill-data/data-app-migration/references/handoff.md +29 -0
- package/skill-data/data-app-migration/references/mapping.md +125 -0
- package/skill-data/data-app-migration/references/parity.md +61 -0
- package/skill-data/data-app-migration/references/probe.md +107 -0
- package/skill-data/data-app-migration/references/records.md +42 -0
- package/skill-data/data-app-migration/references/spec.md +96 -0
- package/skill-data/data-app-testing/SKILL.md +1 -0
- package/skill-data/data-app-ui/SKILL.md +5 -3
- package/skill-data/data-workflow/references/building-clean-tables.md +2 -2
- package/skill-data/git-sync/SKILL.md +1 -1
- package/skill-data/visualization/references/settings.md +8 -5
- package/skills/metabase-cli/SKILL.md +7 -1
- package/dist/api-key-DDTTiZ-V.mjs +0 -13
- package/dist/card-CdVs1A7F.mjs +0 -25
- package/dist/collection-cuOHmg2x.mjs +0 -21
- package/dist/dashboard-DmzHMDNg.mjs +0 -35
- package/dist/data-action-xlWNyd_-.mjs +0 -24
- package/dist/dependency-Dr2i_220.mjs +0 -15
- package/dist/document-DISJSlag.mjs +0 -20
- package/dist/field-B2aEEVh7.mjs +0 -21
- package/dist/git-sync-BkLMpMFt.mjs +0 -29
- package/dist/git-sync-DP4wQFzm.mjs +0 -147
- package/dist/glossary-BKuLoz_5.mjs +0 -14
- package/dist/poll-DS8mUoSP.mjs +0 -46
- package/dist/snippet-RZ0EXUu6.mjs +0 -19
- package/dist/table-BZ3Gr7mc.mjs +0 -26
- package/dist/timeline-Bc7qsC-f.mjs +0 -21
- package/dist/transform-BeTeVVwe.mjs +0 -28
- package/dist/transform-job-B58u8FZl.mjs +0 -22
- package/dist/transform-test-DxNtkPnU.mjs +0 -16
- package/dist/upload-CtLEKvL6.mjs +0 -13
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Probe: find every widget and where its numbers come from
|
|
2
|
+
|
|
3
|
+
Phase 1. Read the source application and write `inventory.md`. Nothing here calls Metabase, and nothing here judges a rule: record what the code does, with a citation, and leave tagging and checking to `spec.md`.
|
|
4
|
+
|
|
5
|
+
Settings files hold connection details and secrets inline, and no filter reliably tells a secret from a setting. They are `.env*`, everything under a `config/` or `settings/` folder, `*settings.py`, `*.config` and `*.config.*` (`web.config`, `next.config.js`), `wp-config.php`, `application*.yml`, `application*.yaml`, `application*.properties`, `appsettings*.json`, `*.ini`, `knexfile.*`, `ormconfig.*`, `*compose*.yml`, `*compose*.yaml`, `.npmrc`, `phpunit.xml*`, `*.tfvars`, `*.tfstate`, and keys (`*.pem`, `*.key`). A route file under `config/` (`config/routes.*`) is code: open it by its path. From a settings file, read only the line that holds a value a widget leads into, and only when the user allowed it (`SKILL.md`, _Before you start_): `grep -nw <key> <file>`, or `jq` / `yq` on the value's path, either one through the mask below. Never the whole file. When the line doesn't settle the value (the key appears twice, or the value runs over several lines), it is an `UNKNOWN`, recorded with its key for phase 4. Never read a `.env*` file, a key or an environment variable, allowed or not: they hold the secrets, and a checkout's `.env` holds a developer's values, not production's.
|
|
6
|
+
|
|
7
|
+
Search with this command, which skips dependency and build folders, logs and temp folders, and every settings file. Add an `--exclude-dir` for any other folder the stack's ignore file lists as generated. A dependency's file is still read by its path when a call leads into it:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
grep -rnE \
|
|
11
|
+
--exclude-dir=node_modules --exclude-dir=vendor --exclude-dir=dist --exclude-dir=build --exclude-dir=target \
|
|
12
|
+
--exclude-dir=.git --exclude-dir=storage --exclude-dir=config --exclude-dir=settings \
|
|
13
|
+
--exclude-dir=log --exclude-dir=logs --exclude-dir=tmp \
|
|
14
|
+
--exclude='.env*' --exclude='*settings.py' --exclude='*.config' --exclude='*.config.*' --exclude=wp-config.php \
|
|
15
|
+
--exclude='application*.y*ml' --exclude='application*.properties' --exclude='appsettings*.json' --exclude='*.ini' \
|
|
16
|
+
--exclude='knexfile.*' --exclude='ormconfig.*' --exclude='*compose*.y*ml' --exclude=.npmrc --exclude='phpunit.xml*' \
|
|
17
|
+
--exclude='*.tfvars' --exclude='*.tfstate' --exclude='*.pem' --exclude='*.key' --exclude='*.log' \
|
|
18
|
+
'<pattern>' .
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
A search's hits can hold a secret written into code. Pipe every search, and every read of a settings file or a doc, through this mask. It hides the credentials before an `@`, the rest of a table row that holds an address, a password quoted in prose, the default an environment variable for a secret is given, and the value after a password, secret, token or key name, without dropping lines:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
sed -E -e "s#(://)[^[:space:]'\"]*@#\1***@#g" \
|
|
25
|
+
-e "s#[^[:space:]'\"]*[^*[:space:]'\"]@#***@#g" \
|
|
26
|
+
-e "s#^(.*\|[^|]*@[^|]*\|).*\$#\1 ***#" \
|
|
27
|
+
-e "s#(([Pp]ass(word|wd)?|PASS(WORD|WD)?)[[:space:]]+([a-z]+[[:space:]]+)?[\`'\"])[^\`'\"]+#\1***#g" \
|
|
28
|
+
-e "s#(env\(['\"][A-Za-z_]*(PASS|SECRET|KEY|TOKEN)[A-Za-z_]*['\"][[:space:]]*,[[:space:]]*['\"]?)[^'\")]+#\1***#g" \
|
|
29
|
+
-e "s#(name=\"[A-Za-z_]*(PASS|SECRET|KEY|TOKEN)[A-Za-z_]*\"[[:space:]]+value=\")[^\"]*#\1***#g" \
|
|
30
|
+
-e "s#([A-Za-z_.-]*([Pp]ass(word|wd)?|PASS(WORD|WD)?|[Pp]wd|PWD|[Ss]ecret|SECRET|[Tt]oken|TOKEN|[Aa]pi_?[Kk]ey|API_?KEY|_KEY|_key)[A-Za-z_]*[\"']?[[:space:]]*(=>|=|:)[[:space:]]*[\"']?)[^[:space:]\"';,=]+#\1***#g"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
A `.sql` file of `INSERT` or `COPY` rows is a dump of the data, not code: never read one. Seeders, factories and test fixtures are code: they show the data's shape, never its rows. Docs (a README, a setup guide) can print a connection URL or a password: read them only through searches for what you need, masked, never whole. A file the probe follows a widget into is read whole, as it is, unless it's a settings file: a value the widget takes from one you may not open is an `UNKNOWN`, recorded with its key and asked at phase 4. So is a value from an environment variable, with the default the code gives it (`env('STORE_TARGET', 40000)`): that default applies only where the variable is unset, so it is shown, never taken as the answer. Two files hold code beside a connection URL: read a `package.json` without its scripts (`jq '{dependencies, devDependencies}' package.json`), and a Prisma schema without its `datasource` block (`sed '/^datasource/,/^}/d' prisma/schema.prisma`), whose `provider` alone is `grep -nE '^[[:space:]]*provider' prisma/schema.prisma`.
|
|
34
|
+
|
|
35
|
+
## Stack
|
|
36
|
+
|
|
37
|
+
Read the manifests' dependency lists at the root and in each package: `composer.json`, `package.json`, `pom.xml` / `build.gradle`, `pyproject.toml` / `requirements.txt`, `Gemfile`, `go.mod`, `*.csproj`. A build file's plugin settings can hold a database password (Flyway or Liquibase in `pom.xml` or `build.gradle`): read its dependencies alone. Note the language, the web framework, the ORM or query library, the template or front-end framework. A repository can hold several apps (a back end and a separate front end): probe each.
|
|
38
|
+
|
|
39
|
+
## Where analytics live
|
|
40
|
+
|
|
41
|
+
Analytics are what the app shows to be read: a figure, a chart, or a table that reports on the data (a total, a ranking, a report's rows, a list of recent orders on a dashboard). A screen for managing records is not, even when it lists and counts them (a list with edit or delete, a form, an import), and neither is a scheduled email or an export file. A page that mixes both brings its widgets that report, and records its lists and actions as `records.md` says, for the user's choice in phase 2. Record each screen left out under _Not analytics_ in `inventory.md`, one line each, and name them in one line of the phase 4 memo, so the user sees where the line runs.
|
|
42
|
+
|
|
43
|
+
Find each analytics page from the routes and the navigation, then every chart, KPI and table its views render. Then search for what that path misses: an endpoint a separate front end calls, a page whose access a middleware, policy or session filter decides. A hit is a lead, not a widget: open it and follow it. In a small app, reading every controller and view in full does this work.
|
|
44
|
+
|
|
45
|
+
## Following the data
|
|
46
|
+
|
|
47
|
+
For every chart, tile and table a view renders, follow the chain to the database, citing file:line at each hop:
|
|
48
|
+
|
|
49
|
+
1. **The view:** the element, its label as the user sees it, and what it shows: a figure, a series and its grain, a table's columns and which rows. A table's columns are the values in its cells, each its own even where two share a cell; a row number, an inline bar and a link are how it draws them, not columns. A goal line's value is a constant. The colours it sets go under _Look_.
|
|
50
|
+
2. **The data it gets:** a variable passed to the template, a prop, or a fetch to a JSON endpoint. For a fetch, find the route that answers it, and note what the front end does to the response before drawing it: filtering, sorting, `reduce`, defaults for missing values, unit conversion. Those are rules too.
|
|
51
|
+
3. **The handler:** the controller, service or resolver, and every function it calls on the way. A handler in another repository or service: ask the user for its path, noting the widget's rules as not yet read until you have read it.
|
|
52
|
+
4. **The computation:** the SQL, the ORM or builder chain (written out as the query it produces), or the code that computes it from fetched rows. Note what happens to the rows after the query: sorting, slicing, rounding, arithmetic, merges of two queries.
|
|
53
|
+
5. **Stop at the database:** the tables and columns read. The code that opens the connection is not followed: it can hold the credentials, and the engine comes from _Data sources_.
|
|
54
|
+
6. **What fills them:** for each table and column read, the code that writes it. Search for the table's name and its model's with the search command and `-l`, which prints file names only, and open the code among the hits (a migration, a job, a model), never a dump of rows: its inserts, updates and upserts, a view's or materialized view's definition and what refreshes it, a trigger, a count kept up to date on each save (Rails' `counter_cache`, a save hook or signal). Where only the app's own screens and APIs write it as people work, stop. Where a scheduled job, a command, a save hook, a trigger or a view's definition computes what the widget reads (a `daily_stats` table, an `orders_count` column), the number's rules are there: follow that code from step 3, citing file:line, and record its schedule and the clock and zone it reads. A schedule in a settings file follows the rules above. Code in another repository or service is asked for as step 3 says; a table no code in the source writes is recorded as filled from outside it.
|
|
55
|
+
|
|
56
|
+
Record along the way:
|
|
57
|
+
|
|
58
|
+
- **Each input the chain takes:** a request parameter, a filter, the logged-in user, the clock (`now()` in the database or the application, and in which timezone), a constant.
|
|
59
|
+
- **A comparison that switches the widget's behaviour** (a chart going from days to months past a span), exactly as written, operands and types included: an off-by-one there moves a boundary.
|
|
60
|
+
- **Text the page computes or states about a number** — a scope label in a heading, a caption saying what a metric counts. It is part of the widget, and a caption that misdescribes the logic is a finding.
|
|
61
|
+
- **A chain that branches on the user's role:** two variants of the widget. Record both, and a widget or page one role sees and another doesn't.
|
|
62
|
+
- **Each preset of a filter:** the code expression behind it and behind the default, as written. A label ("Last 30 days", "This year") says nothing exact.
|
|
63
|
+
- **A widget on several pages** (a KPI strip in a shared layout or partial): one `W<n>`, with every page that shows it.
|
|
64
|
+
- **A record's page:** a widget showing one record's figures (a product's sales on `/products/{id}`) takes the record from the route. Record the route parameter as a filter `F<n>`, its control "opening the record's page", its values the records that page opens.
|
|
65
|
+
|
|
66
|
+
## Data sources
|
|
67
|
+
|
|
68
|
+
Phase 2 finds each database in Metabase by its tables, so no host, port or database name is needed. Record per database the analytics read:
|
|
69
|
+
|
|
70
|
+
- **The engine**, as a hint, under Metabase's name for it (`postgres`, `mysql`, `sqlserver`, `sqlite`): from the manifests (`pg`, `mysql2`, `psycopg2`, `mysqlclient`, `pdo_pgsql`), the datasource's `provider` in a Prisma schema (`postgresql` is `postgres`), or the SQL dialect of the queries (`date_trunc`, `ILIKE` and `::` casts are Postgres; backtick quoting and `DATE_FORMAT` are MySQL). Unknown when none of them says.
|
|
71
|
+
- **The tables** the widgets read from it, by the names the database uses, with their schema where the code names one. An ORM's model name isn't a table name: follow its mapping (Prisma's `@@map`, Django's `db_table`, `@Table(name = …)`).
|
|
72
|
+
|
|
73
|
+
An app with more than one database names the one each query runs on in code (a named connection, a second client): group the tables by those names. Write no password, token or key.
|
|
74
|
+
|
|
75
|
+
## Schema
|
|
76
|
+
|
|
77
|
+
From migrations, model or entity classes, or a schema file: each table the analytics read, its columns with types, foreign keys, enum and status values the code compares against, and which columns are nullable. A status value used in code but absent from the schema's enum is a finding.
|
|
78
|
+
|
|
79
|
+
## The inventory
|
|
80
|
+
|
|
81
|
+
`inventory.md`, in this order:
|
|
82
|
+
|
|
83
|
+
- **Stack** — one paragraph, and the source's commit (`git -C <source> rev-parse HEAD`), which every citation is read at. When `git -C <source> status --porcelain` lists a file a widget's chain reads, ask which to read, the commit or the working tree, and cite that.
|
|
84
|
+
- **Look** — the app's palette, and the colours each widget sets beyond it (a series, a goal line), each with file:line. A colour from a settings file (`tailwind.config.js`) follows _Before you start_'s permission.
|
|
85
|
+
- **Pages** — `P<n>`: route, title, which roles can open it, what else the page is for (a list of orders, a product's record), and its widgets.
|
|
86
|
+
- **Widgets** — one entry per KPI, chart and table, numbered `W<n>` in page order:
|
|
87
|
+
- page `P<n>`, or every page that shows it; label as shown, kind (KPI / chart / table)
|
|
88
|
+
- shows: the values it displays (a figure, a series and its grain, a table's columns and which rows)
|
|
89
|
+
- data chain: one line per hop, each with file:line
|
|
90
|
+
- tables and columns read, and for each one the source's own code computes, what fills it (_Following the data_, step 6)
|
|
91
|
+
- rules, raw and untagged: every filter, exclusion, join, date column, clock, rounding and constant the chain applies
|
|
92
|
+
- parameters: the filters and inputs it takes
|
|
93
|
+
- scoping: whose rows it shows to whom, and which roles see the widget at all
|
|
94
|
+
- notes: anything odd, such as a second query merged in or a fallback value
|
|
95
|
+
- **Records** — on a page that pairs analytics with records, its lists `L<n>` and actions `A<n>` (`records.md`).
|
|
96
|
+
- **Filters** — `F<n>`: page, kind (a date range, a list), values offered, its default, the widgets it applies to, _and the widgets on the same page it doesn't apply to_, and whether moving between pages keeps its value.
|
|
97
|
+
- **Data sources** — per database: the engine, or unknown, and the tables the widgets read from it; phase 2 adds its Metabase database.
|
|
98
|
+
- **Schema** — the tables the widgets read.
|
|
99
|
+
- **Not analytics** — each screen the probe passed over, with why (_Where analytics live_).
|
|
100
|
+
|
|
101
|
+
## History
|
|
102
|
+
|
|
103
|
+
Run `git log --follow --format='%h %ad %s' -- <file>` on every file that computes a widget. A definition changed after the widget shipped (a tile rewired from one revenue to another) is dated and recorded under the widget: it explains why two widgets disagree, and which reading is the later intent.
|
|
104
|
+
|
|
105
|
+
## Completeness check
|
|
106
|
+
|
|
107
|
+
Before leaving phase 1, count what the views render — chart canvases or components, KPI tiles, tables — page by page, including every role's view, and compare with the `W` entries per page, a widget on several pages counted on each, and the lists under _Records_ and _Not analytics_ apart. A difference is a widget missed or a widget counted twice: find it. Say the counts in `inventory.md`.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Records: pages that pair analytics with lists and actions
|
|
2
|
+
|
|
3
|
+
Many admin screens put a chart above a list of records the viewer manages: users with edit and delete buttons, invoices with a void action. A data app can carry such a page whole: its lists read the Library like any widget, and its actions write through a table action (`data-app-actions`) or a call to the source's own backend (`data-app-ui`, _External APIs_). Whether they move is the user's choice (_The question_); this file is how you find out what moving them takes, and what it changes.
|
|
4
|
+
|
|
5
|
+
## In the probe
|
|
6
|
+
|
|
7
|
+
On a page that mixes analytics with a record screen (`probe.md`, _Where analytics live_), record the rest of the page in `inventory.md`, _Records_, following each to the database as `probe.md`, _Following the data_, does for a widget:
|
|
8
|
+
|
|
9
|
+
- **Each list** `L<n>`: its columns as shown; which rows (its filters, and what the model adds, such as a soft delete hidden); its sort and tiebreaker; its page size; its search (the columns it matches and how: contains or prefix, with or without case); and the filters that reach it.
|
|
10
|
+
- **Each action** `A<n>`: its trigger (a row's button, a form, a selection of rows) and its inputs, then its handler: the route and method; each table and column it writes, and which rows (by primary key or otherwise); the value each column gets (a viewer's input, a constant, the clock, something computed); each check it makes beyond the database's own constraints (an input's format, a condition on the row, such as only draft invoices); and each effect beyond that write (another table, an audit row, an email, a call to another service, a job queued).
|
|
11
|
+
- **How the backend answers a browser on another origin:** its CORS setup (the origins it allows, with credentials or not), how it authenticates (a session cookie and its `SameSite`, a bearer token), and any CSRF check. A value in a settings file follows _Before you start_'s permission.
|
|
12
|
+
|
|
13
|
+
A screen that manages the source app's own logins or configuration (its admin accounts, its settings page) stays behind: a data app's viewers are Metabase users. Record it under _Not analytics_.
|
|
14
|
+
|
|
15
|
+
## What a data app can carry
|
|
16
|
+
|
|
17
|
+
Once phase 2 has located the database, give each action the first of these that fits, beside it in `inventory.md`:
|
|
18
|
+
|
|
19
|
+
- `TABLE`: a table action does all the handler does. It writes one row of one table by its primary key, setting columns to the viewer's inputs, constants or the clock, with no effect beyond that row and no check beyond the database's constraints, except a condition on the row's own values, which the app keeps by offering the action only on rows that meet it. A soft delete is a `row/update` of its column, never a `row/delete`. The table is a source table that can be published as it is (`mapping.md`, _What gets published_), since a transform's next run would overwrite a write to its table, and it has exactly one primary key.
|
|
20
|
+
- `BACKEND`: the app calls the handler's route through `allowed_hosts`, which keeps the source's checks and effects. Only where the code shows the route answers the viewer's browser from the data app's origin: CORS allows that origin, and its authentication works from another site. Otherwise it needs a change to the source's backend, which is the user's to make: name what it takes.
|
|
21
|
+
- `APPROX`: a table action that skips what the handler does beyond the row write, each skipped check or effect named: kept with that difference, or left in the source.
|
|
22
|
+
- `NONE`: nothing above fits (several rows, a row matched by another column, a table holding a credential, an effect no table action has and no reachable route): the action stays in the source.
|
|
23
|
+
|
|
24
|
+
A list takes a widget's verdict (`spec.md`, _Verdicts_).
|
|
25
|
+
|
|
26
|
+
## The question
|
|
27
|
+
|
|
28
|
+
When a page mixes analytics with a record screen and at least one of its actions isn't `NONE`, ask what moves, at the end of phase 2, as a question of its own with no default. A request that says "the charts", "the analytics" or "the dashboards" doesn't answer it: those name what the user knows to ask for, not a choice between the two. Only a request that names the lists or the actions themselves, to move them or to leave them, does. The options:
|
|
29
|
+
|
|
30
|
+
- **The analytics only:** the charts, KPIs and reporting tables move; the lists and actions stay in the source; the pages group as `mapping.md`, _Pages_, has it.
|
|
31
|
+
- **The pages, with their lists and actions:** the app follows the source's pages, each with its widgets, its lists and the actions a data app can carry. A table action writes to the source database directly, through Metabase's connection.
|
|
32
|
+
|
|
33
|
+
Lead with each page, its widgets, lists and actions, and each action's verdict with what it skips or needs: the `APPROX` differences, the `BACKEND` routes and the change each waits on, the `NONE`s and why. Record the answer as a `D<n>`. When every action is `NONE`, nothing is asked: the analytics move alone, and the phase 4 memo says why the actions stay.
|
|
34
|
+
|
|
35
|
+
## When the pages move whole
|
|
36
|
+
|
|
37
|
+
- **Pages:** the source's, one app page per source page in its order, each holding its widgets, lists and actions as the source places them; a page of links only (an overview) is the app's navigation. Phase 4 doesn't ask how pages group, and asks instead about each `APPROX` action: kept with its difference, or left in the source.
|
|
38
|
+
- **Spec:** each list's rules as a widget's (`spec.md`), and each action's: the rows it writes, each column and the value it gets, and the condition on the row the app keeps, each cited.
|
|
39
|
+
- **Data side:** each list reads a published table, with a segment for the rows the source shows (a soft delete hidden). Each table an action writes is published as it is, needs data actions on its database (`data-app-actions`, _Data actions on the database_), and a connection login that may write it (`connect.md`). The plan checkpoint names those tables, and that turning data actions on lets anyone with access to the actions write to them.
|
|
40
|
+
- **Brief:** for each list, its columns, rows, order and tiebreaker, page size, search and filters; for each action, its trigger and inputs, the rows it is offered on, what it writes (table, columns, values) or the route it calls and what the source does with each response, its confirmation, and the lists and widgets it refreshes.
|
|
41
|
+
- **Parity:** a list's rules are pinned as a widget's (`parity.md`). Each action's unit test (`data-app-testing`, _Actions_) checks the columns and values it sends against `spec.md`, and a backend call's test mocks each response the source handles. The end-to-end specs open each form and submit none: the preview's database is the live one.
|
|
42
|
+
- **Handoff:** each action that moved, how, and what it writes; data actions on the target's database when it's another instance (`handoff.md`); the backend change each `BACKEND` action waits on; each action left in the source, and why.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Specify: the rules behind every number
|
|
2
|
+
|
|
3
|
+
Phase 3. Turn `inventory.md` into `spec.md`: every rule a widget applies, tagged and cited, with each widget's verdict. Everything here comes from the source's code, its schema and Metabase's metadata: no query of yours reads the application's rows. This file is what the interview asks about and what the plan builds from, so write it for a reader who can query the data but not read the source code — never "see the code".
|
|
4
|
+
|
|
5
|
+
## Tags and citations
|
|
6
|
+
|
|
7
|
+
Every claim carries one tag:
|
|
8
|
+
|
|
9
|
+
- `PROVEN` — read directly from code, a schema or Metabase's metadata.
|
|
10
|
+
- `INFERRED` — reasoned from evidence that doesn't state it outright (a name, a comment, a pattern elsewhere), and every translation of code into SQL until a worked example from the source's own tests confirms it (_Translating code to SQL_).
|
|
11
|
+
- `UNKNOWN` — the code can't tell. It becomes a question in phase 4.
|
|
12
|
+
|
|
13
|
+
Every claim cites file:line at the source's commit `inventory.md` records, or the metadata that showed it. No claim stays untagged. Before the phase 4 checkpoint, check that each cited line still says what the claim says; a search of the line for the token the claim quotes will do.
|
|
14
|
+
|
|
15
|
+
## The rules, per widget
|
|
16
|
+
|
|
17
|
+
Go through each `W<n>` with this list. Each rule found is a line under the widget: the rule, its tag, its citation.
|
|
18
|
+
|
|
19
|
+
- **Status filters and exclusions:** which statuses count, which rows are left out (test or internal accounts, deleted rows, a flag), and whether the exclusion is applied here at all when a neighbouring widget applies it.
|
|
20
|
+
- **Joins:** the join type and its keys. An inner join to an optional parent drops rows silently (an order with no customer); a join to a child multiplies them (an order counted once per line item). Say which, and name the fixture row that shows it.
|
|
21
|
+
- **The date column:** which date places a row in a period (ordered, paid, shipped, refunded), and whether two parts of one number use different dates.
|
|
22
|
+
- **Clock and timezone:** where "now" and "this month" come from — the database's clock, the application server's, or the viewer's device — and in which timezone periods are cut. A partial current period shown as complete is a rule too.
|
|
23
|
+
- **Window bounds:** for each date preset and the default, its exact bounds — the start and end expressions, inclusive or exclusive, a date or a timestamp, which clock, which timezone. "Last 30 days" as `now() - interval '30 days'` is a timestamp window, not 30 whole days.
|
|
24
|
+
- **Money basis:** order totals or line items; shipping, tax and discounts in or out; refunds netted, excluded, or ignored; rounding.
|
|
25
|
+
- **Constants:** every hardcoded value the widget uses.
|
|
26
|
+
- **Scoping:** the condition that limits rows for a viewer, and whether it changes what a figure means (a customer's "first order" counted per shop rather than overall). Say what a viewer whose scoping value is null sees: a check that skips the filter on null shows that viewer everything, which the handoff reproduces with a group of unrestricted access (`mapping.md`, _Scoping_). Say which pages and widgets only some roles see.
|
|
27
|
+
- **Late facts:** a number counting something that happens after the event it is dated by (a refund, a cancellation, a repeat order) undercounts the newest windows until those facts arrive. Say so, with how long the code lets them take (a refund window), or that it doesn't say.
|
|
28
|
+
- **Static data:** a value the app shows as current but nothing updates (stock that sales never decrement) is stated as such.
|
|
29
|
+
- **Data the source fills itself** (`probe.md`, _Following the data_, step 6): the rules of the code that fills it, through this same list, its schedule, and what the schedule does to the figure (a day appears the morning after; a refund recorded after its day's run never reaches that day's row).
|
|
30
|
+
- **Consequences:** a projection that treats a partial day as whole, a partial current period always shown below target — the effect a rule has on what the viewer reads, beside the rule.
|
|
31
|
+
- **The business's timezone:** where the business works (`app.timezone`, the locale, an address in the code or seed) against the timezone the code cuts periods in. A mismatch is a finding.
|
|
32
|
+
|
|
33
|
+
Late facts, static data, consequences and the business's timezone are notes beside the rules: parity pins the rules they follow from, not them. So are the rules of the code that fills a table while the app reads that table as it is (`mapping.md`, _Data path_): read for findings, and pinned by nothing, since the source runs them. Rebuilt in a transform, they are the widget's rules.
|
|
34
|
+
|
|
35
|
+
## What the data holds, without reading it
|
|
36
|
+
|
|
37
|
+
Phase 2 found the database and checked every cited table and column. Learn the rest from the schema and Metabase's metadata:
|
|
38
|
+
|
|
39
|
+
- **Values a rule compares against:** the enum, check constraint or migration that declares a status, and every value the code compares with it. For a field Metabase marks as a category (a status, a type), its cached distinct values (`mb field values <field-id>`), never for one holding personal data. A value the data holds that the code never handles, or one the code compares against that the data lacks, is a finding.
|
|
40
|
+
- **Nullability and keys:** the schema's `NOT NULL`, foreign keys and defaults. A key the code treats as required but the schema lets be null is a finding, and a fixture case.
|
|
41
|
+
- **Types:** each column's type and time zone from `mb table get <table-id> --include fields`, and its database type and nullability from `mb field get <field-id> --fields id,name,database_type,database_is_nullable`.
|
|
42
|
+
|
|
43
|
+
Row counts, amounts and null rates need a query over the application's rows: leave them out.
|
|
44
|
+
|
|
45
|
+
## Translating code to SQL
|
|
46
|
+
|
|
47
|
+
When a rule lives in an ORM chain or in application code, the transform's SQL is its translation, written once, citing every line it translates. Follow each call to its definition — a scope, a helper, a base class, a trait — and write what it adds. Then check the chain against what an ORM does without saying so:
|
|
48
|
+
|
|
49
|
+
- **Hidden filters:** global scopes, soft deletes (Eloquent's `SoftDeletes` adds `deleted_at IS NULL`), Rails `default_scope`, a Django model's custom manager, Hibernate filters, a base repository class.
|
|
50
|
+
- **Relations:** an existence check (`whereHas`, `whereDoesntHave`, `exists?`) is `EXISTS` / `NOT EXISTS` and keeps rows whose key is null, where a join drops them; a filter across a relation (Django's `filter(customer__email=…)`) is an inner join; an aggregate across a to-many relation multiplies rows; Django's `annotate` before or after `filter` changes the result.
|
|
51
|
+
- **Work after the query:** casts and accessors (money in cents, a date converted to the application's zone), rounding that feeds further arithmetic or a comparison, reproduced with the source language's own rounding and unit-tested at halves and near-halves (PHP's `round` rounds halves away from zero after rounding to 15 significant digits; JavaScript's `toFixed` does neither), while rounding only for printing is display, and collection methods after the rows arrive (`->filter`, `->sum`, `reduce`, `.map`), which handle null, rounding and floating point as the language does, not as SQL does.
|
|
52
|
+
- **Bound values:** the clock's precision and zone (`now()` to the second or the microsecond, in the application's zone or UTC), what a date parameter becomes when bound to a timestamp column, and an aggregate over no rows (`null` or `0`).
|
|
53
|
+
- **Order and limits:** the sort and its tiebreaker; a top N without a tiebreaker orders its ties as the engine pleases, and the translation keeps the same sort.
|
|
54
|
+
|
|
55
|
+
A translation stays `INFERRED`, and you never build or run the source to check it. Its proof is the transform's fixture test (`parity.md`): expected rows worked out from the code, not from the SQL. It becomes `PROVEN` when a worked example in the source's own tests or fixtures, run as the fixture with the same inputs, comes out the same.
|
|
56
|
+
|
|
57
|
+
## Concepts
|
|
58
|
+
|
|
59
|
+
Many widgets show versions of one number: revenue, orders, customers. Group them, numbering each concept `C<n>`:
|
|
60
|
+
|
|
61
|
+
| Concept | Widget | Variant (the rules that differ) | Citation | Fixture rows that tell the variants apart |
|
|
62
|
+
| ------- | ------ | ------------------------------- | -------- | ----------------------------------------- |
|
|
63
|
+
|
|
64
|
+
Each widget keeps its own variant, and each variant becomes its own named Library number (`mapping.md`). A difference that comes only from a filter one widget takes and another doesn't is still two variants, and, with no reason in the code for it, a finding.
|
|
65
|
+
|
|
66
|
+
## Findings
|
|
67
|
+
|
|
68
|
+
What looks wrong in the source: two widgets that disagree with no reason in the code, a rule its own comment or name contradicts (test orders a comment says to keep out of reporting), a join that drops rows as a side effect, a caption that misdescribes its number, a status compared that no row has. One line each: the widgets, the citation, and the fixture rows that show it. A finding is built as the source does it, so the app shows the same figure. The phase 4 checkpoint and the handoff list the findings; fixing one is the user's request to make, and it becomes a decision.
|
|
69
|
+
|
|
70
|
+
## Hardcoded values
|
|
71
|
+
|
|
72
|
+
One list, `value | meaning | where`: targets, thresholds, cutoffs, allowlists, rates, defaults for missing values. Identifiers exactly as written.
|
|
73
|
+
|
|
74
|
+
## Verdicts
|
|
75
|
+
|
|
76
|
+
Open `spec.md` with the verdict matrix, one row per widget, then one per filter that changes figures differently from the source's. A widget's verdict is about its figures; a difference in a filter is that filter's row, naming the widgets it reaches, so it counts once:
|
|
77
|
+
|
|
78
|
+
| Widget | Verdict | Concept | Deviation or what is missing | Decisions |
|
|
79
|
+
| ------ | ------- | ------- | ---------------------------- | --------- |
|
|
80
|
+
|
|
81
|
+
- `EXACT` — reproducible from the data as the source defines it.
|
|
82
|
+
- `APPROX` — buildable with a stated deviation in a value it shows: a filter Metabase can't apply the same way, a proxy column, a value the brief requires that the platform can't produce (`mapping.md`, _The app's brief_). It cites the attempt that failed: the exact construct you built and what it got wrong, or a limit the data-app skills list as the platform's (`SKILL.md`, _Rules for every phase_). Before the plan checkpoint that is an MBQL body with its `mb query --dry-run` output; from phase 6 on, also a transform fixture test, or the app's type error or failing unit test, and the widget goes to the user then (`checkpoints.md`, _After phase 5_). A widget with no failed attempt is `EXACT`.
|
|
83
|
+
- `NONE` — not buildable from the data Metabase reaches. Say what is missing and what would unblock it: a table, a column, a database connection, a decision.
|
|
84
|
+
|
|
85
|
+
A list takes a widget's verdict, and an action its own (`records.md`).
|
|
86
|
+
|
|
87
|
+
Under the matrix, one line of counts per verdict, recounted from the matrix whenever a row changes.
|
|
88
|
+
|
|
89
|
+
## `decisions.md`
|
|
90
|
+
|
|
91
|
+
One row per decision, numbered in the order raised:
|
|
92
|
+
|
|
93
|
+
| Decision | Question | Default and why | Answer | Answered by | Widgets |
|
|
94
|
+
| -------- | -------- | --------------- | ------ | ----------- | ------- |
|
|
95
|
+
|
|
96
|
+
The default is the source's behaviour wherever the source has one. A row is written when the question is raised, from phase 2 on, with its answer empty until the user gives one. The plan, the build and parity cite `D<n>`; an empty answer blocks the widgets in its _Widgets_ column.
|
|
@@ -106,6 +106,7 @@ test("status filter updates orders table", async ({ page }) => {
|
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
- Assert data, not only headings: rows, values and chart contents are what a failed query takes away. Then each interaction — a filter, sorting, a link to another page — and the view it changes.
|
|
109
|
+
- Check each visualization setting the app passes on the chart as drawn: the series' order, a goal line, a column's title. Metabase draws without a setting it can't apply, with no error, and a unit test stubs the chart, so it sees only what was passed.
|
|
109
110
|
- Locate by role and accessible name (`getByRole`, `getByLabel`), as a user finds things. A name matches as a substring unless `exact: true` is passed: "Ship order 12" also finds "Ship order 120".
|
|
110
111
|
- Navigate with relative paths (`page.goto("orders")`, `page.goto("")` for the first page), never `/orders`.
|
|
111
112
|
- An action spec opens the action's form and checks its fields. Submit it only when the user has said the app's database may be written to: a submitted action changes real data.
|
|
@@ -88,10 +88,12 @@ Both take the `card` built from `useMetabaseQueryObject` (`data-app-data`). Dash
|
|
|
88
88
|
|
|
89
89
|
## A Metabase chart or your own
|
|
90
90
|
|
|
91
|
-
Ask "
|
|
91
|
+
Draw every chart, KPI and table as a Metabase question with `StaticQuestion` or `InteractiveQuestion` first, even where it then looks different from the design or the app it replaces, as long as a reader understands the data the same way. Ask "would a reader understand the data differently?", never "which looks closer to the design?", and decide per element, not per page.
|
|
92
92
|
|
|
93
|
-
- **Yes
|
|
94
|
-
- **
|
|
93
|
+
- **Yes:** bar, line, area, combo, row, pie, scalar, smartscalar, gauge, progress, funnel, scatter, waterfall, boxplot, sankey, pivot, map, tables. Render it with `useMetabaseQueryObject` and `StaticQuestion` (`data-app-data`). It keeps the instance's formatting, tooltips, theming and drill-through.
|
|
94
|
+
- **Still yes when only the look differs** from the design or the app it replaces: another chart style, legend or tooltip, a table without its inline bars, badges or row numbers. Put what Metabase doesn't draw beside the question (a caption, a note), or leave it out.
|
|
95
|
+
- **Still yes when the app would compute the values** from a query's rows (a rate, a share, a net amount): a question draws only what it returns, so get them as a column or a metric in the Library (`data-app-data`) and draw that question.
|
|
96
|
+
- **No:** Metabase can't draw it, or its version would change how a reader understands the data: scorecards, timelines, calendar grids, one visual no single question returns, values only the app can compute (they depend on the viewer's choices in a way no column carries), or a widget the user asked to have drawn without Metabase. A request that the app look like a design, a brand or another app is not that request. Draw it from `useMetabaseQuery` rows, with SVG or a chart library the app already has.
|
|
95
97
|
- A table the user picks a row from, to drive another panel, is drawn from `useMetabaseQuery` rows with a button per row: an SDK question reports no row click.
|
|
96
98
|
- A KPI is `scalar`, `smartscalar`, `gauge` or `progress` — on a question filtered at runtime to one bucket, `scalar` (a `smartscalar` loses its comparison); put what Metabase doesn't draw (a caption, stars) beside it.
|
|
97
99
|
- `InteractiveQuestion`: pass `isSaveEnabled={false}`, and `title={false}` in a panel with its own heading. Children replace its layout: `<InteractiveQuestion card={card}><InteractiveQuestion.QuestionVisualization height={360} /></InteractiveQuestion>` is the chart alone.
|
|
@@ -76,7 +76,7 @@ Orientation done, you're about to go heads-down. First, offer two ways to work:
|
|
|
76
76
|
> - **I dig through it all and bring you a complete plan** to approve before I build anything — quieter; you won't hear much until it's ready.
|
|
77
77
|
> - **We work it out together** — I share what I find and we make the calls as we go.
|
|
78
78
|
|
|
79
|
-
First path: **enter plan mode**
|
|
79
|
+
First path: **enter plan mode** where your agent has one, and without one keep to its rule yourself: read only, until the approval. Everything up to the agreed table list — investigate, present, prudential calls, naming (Phases 1–3) — happens inside it, read-only; you exit once, at the approval gate before building (Phase 4). Second path: skip it, shape it conversationally through the same phases. Either way, don't build until the design is settled and approved.
|
|
80
80
|
|
|
81
81
|
Plan mode is a long quiet stretch. So whenever you surface — a question now, the plan at the end — **carry your own context**: recap what it rests on right before you ask, never a back-reference to something said while they were away. And whenever you ask a question, **wait for their answer** — they may say "go" and come back later.
|
|
82
82
|
|
|
@@ -114,7 +114,7 @@ If you spotted existing clean data to link to (step 3), raise it here too — **
|
|
|
114
114
|
|
|
115
115
|
### Phase 3 — Iterate
|
|
116
116
|
|
|
117
|
-
Cheap, because nothing's built. Adjust the set of things, what's kept, and the shape of any multi-valued pieces until the user's happy. **Agree on what each table will be called** — propose a clear name for each (matching any naming pattern you found in their existing data, Phase 0) and let them adjust. Confirm each name is free — not already an existing table or another transform's output (rule 9) — so building can't overwrite anyone's data. The name you agree on is the one you build and keep. Re-confirm the final picture in one short recap. **In plan mode, that recap _is_ your exit:** present it as the plan and
|
|
117
|
+
Cheap, because nothing's built. Adjust the set of things, what's kept, and the shape of any multi-valued pieces until the user's happy. **Agree on what each table will be called** — propose a clear name for each (matching any naming pattern you found in their existing data, Phase 0) and let them adjust. Confirm each name is free — not already an existing table or another transform's output (rule 9) — so building can't overwrite anyone's data. The name you agree on is the one you build and keep. Re-confirm the final picture in one short recap. **In plan mode, that recap _is_ your exit:** present it as the plan and leave plan mode — approval here is the single go-ahead to build. (Iterating together? The recap is just your check before building.)
|
|
118
118
|
|
|
119
119
|
### Phase 4 — Build, check, hand back
|
|
120
120
|
|
|
@@ -152,7 +152,7 @@ Sync work is conventionally done on a feature branch — exporting to `main` (or
|
|
|
152
152
|
|
|
153
153
|
Read the current branch with `mb git-sync status --profile <n> --json | jq -r '.branch'`.
|
|
154
154
|
|
|
155
|
-
If the branch is `main` or `master`,
|
|
155
|
+
If the branch is `main` or `master`, ask the user with your agent's question tool:
|
|
156
156
|
|
|
157
157
|
> "The instance is tracking `<branch>` — exporting commits straight to it. Switch to a feature branch first?"
|
|
158
158
|
>
|
|
@@ -26,11 +26,14 @@ All column-naming keys (`graph.dimensions`, `pie.dimension`, `table.columns[].na
|
|
|
26
26
|
|
|
27
27
|
**Data binding**
|
|
28
28
|
|
|
29
|
-
| Key
|
|
30
|
-
|
|
|
31
|
-
| `graph.dimensions`
|
|
32
|
-
| `graph.metrics`
|
|
33
|
-
| `graph.series_order`
|
|
29
|
+
| Key | Type | Notes |
|
|
30
|
+
| ------------------------------ | -------------------- | ----------------------------------------------------------------------------------- |
|
|
31
|
+
| `graph.dimensions` | string[] (col names) | X-axis. Index 0 = x-axis; a 2nd entry = series breakout. |
|
|
32
|
+
| `graph.metrics` | string[] (col names) | Y-axis metric column(s). |
|
|
33
|
+
| `graph.series_order` | object[] | Per-series order/visibility `{ key, name, color, enabled }` (only with a breakout). |
|
|
34
|
+
| `graph.series_order_dimension` | string (col name) | The breakout column `graph.series_order` orders: the 2nd `graph.dimensions` entry. |
|
|
35
|
+
|
|
36
|
+
**Series order.** Metabase applies `graph.series_order` only when `graph.series_order_dimension` names the current breakout column and every entry has a `key`, `name` and `color`; otherwise it draws the series in the data's order, with no error. The colour drawn is `series_settings`', not the entry's. On a stacked `bar` or `area` the first entry is the top of the stack; on a `row` chart, the left end.
|
|
34
37
|
|
|
35
38
|
**Stacking**
|
|
36
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: metabase-cli
|
|
3
|
-
description: Drive a Metabase instance from the terminal via the `mb` CLI — auth, databases, cards, dashboards, transforms, queries, search, git-sync. Discovery entry; load the full guide with `mb skills get core`.
|
|
3
|
+
description: Drive a Metabase instance from the terminal via the `mb` CLI — auth, databases, cards, dashboards, transforms, queries, search, git-sync, data apps — including moving an application's own dashboards, KPI tiles and charts into a Metabase data app. Discovery entry; load the full guide with `mb skills get core`.
|
|
4
4
|
allowed-tools: Bash, Read, Write, Edit, AskUserQuestion
|
|
5
5
|
hidden: true
|
|
6
6
|
---
|
|
@@ -25,3 +25,9 @@ mb skills list # every bundled skill the profile's server can use (--unfi
|
|
|
25
25
|
```bash
|
|
26
26
|
mb skills get data-workflow
|
|
27
27
|
```
|
|
28
|
+
|
|
29
|
+
**Moving an existing app's own dashboards to Metabase?** If the user's application computes and draws its own analytics and they want them in a Metabase data app, load the migration skill:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
mb skills get data-app-migration
|
|
33
|
+
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/api-key/index.ts
|
|
3
|
-
var api_key_default = defineCommandGroup({
|
|
4
|
-
name: "api-key",
|
|
5
|
-
description: "Manage Metabase API keys",
|
|
6
|
-
subCommands: {
|
|
7
|
-
list: () => import("./list-BSm3_is3.mjs").then((mod) => mod.default),
|
|
8
|
-
create: () => import("./create-CfZWHNIu.mjs").then((mod) => mod.default),
|
|
9
|
-
delete: () => import("./delete-gIdO570b.mjs").then((mod) => mod.default)
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { api_key_default as default };
|
package/dist/card-CdVs1A7F.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/card/index.ts
|
|
3
|
-
var card_default = defineCommandGroup({
|
|
4
|
-
name: "card",
|
|
5
|
-
description: "Manage Metabase cards (questions, models, metrics)",
|
|
6
|
-
skills: [{
|
|
7
|
-
skill: "mbql",
|
|
8
|
-
purpose: "author the dataset_query"
|
|
9
|
-
}, {
|
|
10
|
-
skill: "visualization",
|
|
11
|
-
purpose: "choose display and visualization_settings"
|
|
12
|
-
}],
|
|
13
|
-
subCommands: {
|
|
14
|
-
list: () => import("./list-DbLN30Iz.mjs").then((mod) => mod.default),
|
|
15
|
-
get: () => import("./get-D1EPFO5_.mjs").then((mod) => mod.default),
|
|
16
|
-
query: () => import("./query-BdyzoLZW.mjs").then((mod) => mod.default),
|
|
17
|
-
alerts: () => import("./alerts-VdBqaRBN.mjs").then((mod) => mod.default),
|
|
18
|
-
create: () => import("./create-BbnQQMIq.mjs").then((mod) => mod.default),
|
|
19
|
-
update: () => import("./update-BBkKvDBy.mjs").then((mod) => mod.default),
|
|
20
|
-
verify: () => import("./verify-DLn_hvyT.mjs").then((mod) => mod.default),
|
|
21
|
-
archive: () => import("./archive-C_t5LBQX.mjs").then((mod) => mod.default)
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
//#endregion
|
|
25
|
-
export { card_default as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/collection/index.ts
|
|
3
|
-
var collection_default = defineCommandGroup({
|
|
4
|
-
name: "collection",
|
|
5
|
-
description: "Manage Metabase collections",
|
|
6
|
-
skills: [{
|
|
7
|
-
skill: "core",
|
|
8
|
-
purpose: "collection ref forms and the transforms namespace"
|
|
9
|
-
}],
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-CYWzH6SZ.mjs").then((mod) => mod.default),
|
|
12
|
-
get: () => import("./get-CiHEY6YW.mjs").then((mod) => mod.default),
|
|
13
|
-
items: () => import("./items-D9kxySKc.mjs").then((mod) => mod.default),
|
|
14
|
-
tree: () => import("./tree-BJBeUJ9Y.mjs").then((mod) => mod.default),
|
|
15
|
-
create: () => import("./create-LRsr3Uhf.mjs").then((mod) => mod.default),
|
|
16
|
-
update: () => import("./update-DZQ5ZEpV.mjs").then((mod) => mod.default),
|
|
17
|
-
archive: () => import("./archive-BaNVn1zm.mjs").then((mod) => mod.default)
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { collection_default as default };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/dashboard/index.ts
|
|
3
|
-
var dashboard_default = defineCommandGroup({
|
|
4
|
-
name: "dashboard",
|
|
5
|
-
description: "Manage Metabase dashboards",
|
|
6
|
-
skills: [
|
|
7
|
-
{
|
|
8
|
-
skill: "dashboard",
|
|
9
|
-
purpose: "wiring filters, linked filters, cross-filtering, click behavior, tabs"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
skill: "visualization",
|
|
13
|
-
purpose: "dashcard display and visualization_settings"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
skill: "core",
|
|
17
|
-
purpose: "the 24-column dashcard grid layout"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
subCommands: {
|
|
21
|
-
list: () => import("./list-D76iHfwo.mjs").then((mod) => mod.default),
|
|
22
|
-
get: () => import("./get-CPRkpfky.mjs").then((mod) => mod.default),
|
|
23
|
-
cards: () => import("./cards-e5n3QAov.mjs").then((mod) => mod.default),
|
|
24
|
-
"parameter-values": () => import("./parameter-values-C4lSrNn_.mjs").then((mod) => mod.default),
|
|
25
|
-
subscriptions: () => import("./subscriptions-IGAziZPm.mjs").then((mod) => mod.default),
|
|
26
|
-
create: () => import("./create-C3cxBLip.mjs").then((mod) => mod.default),
|
|
27
|
-
update: () => import("./update-CuAoB110.mjs").then((mod) => mod.default),
|
|
28
|
-
"update-dashcard": () => import("./update-dashcard-DZtQUBVb.mjs").then((mod) => mod.default),
|
|
29
|
-
copy: () => import("./copy-D5Xwxf8O.mjs").then((mod) => mod.default),
|
|
30
|
-
verify: () => import("./verify-C85vwjR-.mjs").then((mod) => mod.default),
|
|
31
|
-
archive: () => import("./archive-fxJhlFeE.mjs").then((mod) => mod.default)
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
//#endregion
|
|
35
|
-
export { dashboard_default as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/data-action/index.ts
|
|
3
|
-
var data_action_default = defineCommandGroup({
|
|
4
|
-
name: "data-action",
|
|
5
|
-
description: "Manage Metabase data actions",
|
|
6
|
-
skills: [{
|
|
7
|
-
skill: "data-action",
|
|
8
|
-
purpose: "author and run data actions"
|
|
9
|
-
}, {
|
|
10
|
-
skill: "native-sql",
|
|
11
|
-
purpose: "the data action's native query and its template tags"
|
|
12
|
-
}],
|
|
13
|
-
subCommands: {
|
|
14
|
-
list: () => import("./list-nU9V7QAo.mjs").then((mod) => mod.default),
|
|
15
|
-
get: () => import("./get-BsptQrzr.mjs").then((mod) => mod.default),
|
|
16
|
-
create: () => import("./create-CYVv0RkU.mjs").then((mod) => mod.default),
|
|
17
|
-
update: () => import("./update-N-EjTy_6.mjs").then((mod) => mod.default),
|
|
18
|
-
archive: () => import("./archive-BuGuzMOF.mjs").then((mod) => mod.default),
|
|
19
|
-
delete: () => import("./delete-CEqsZehc.mjs").then((mod) => mod.default),
|
|
20
|
-
execute: () => import("./execute-B_grmyLF.mjs").then((mod) => mod.default)
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
//#endregion
|
|
24
|
-
export { data_action_default as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/dependency/index.ts
|
|
3
|
-
var dependency_default = defineCommandGroup({
|
|
4
|
-
name: "dependency",
|
|
5
|
-
description: "Trace what Metabase content depends on and what depends on it",
|
|
6
|
-
subCommands: {
|
|
7
|
-
graph: () => import("./graph-BOLRH-lU.mjs").then((m) => m.default),
|
|
8
|
-
dependents: () => import("./dependents-DTa2DZ0A.mjs").then((m) => m.default),
|
|
9
|
-
broken: () => import("./broken-DhnT5VzF.mjs").then((m) => m.default),
|
|
10
|
-
unreferenced: () => import("./unreferenced-TWCy-s5F.mjs").then((m) => m.default),
|
|
11
|
-
breaking: () => import("./breaking-B2p2TbDM.mjs").then((m) => m.default)
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
//#endregion
|
|
15
|
-
export { dependency_default as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/document/index.ts
|
|
3
|
-
var document_default = defineCommandGroup({
|
|
4
|
-
name: "document",
|
|
5
|
-
description: "Manage Metabase documents",
|
|
6
|
-
skills: [{
|
|
7
|
-
skill: "document",
|
|
8
|
-
purpose: "author the ProseMirror document body"
|
|
9
|
-
}],
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-YyWMvzzr.mjs").then((mod) => mod.default),
|
|
12
|
-
get: () => import("./get-DrCrl-ZN.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-heJR0nJH.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-YH57RzrK.mjs").then((mod) => mod.default),
|
|
15
|
-
copy: () => import("./copy-BXIL7wYk.mjs").then((mod) => mod.default),
|
|
16
|
-
archive: () => import("./archive-hBsJNt9B.mjs").then((mod) => mod.default)
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
//#endregion
|
|
20
|
-
export { document_default as default };
|
package/dist/field-B2aEEVh7.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.mjs";
|
|
2
|
-
//#region src/commands/field/index.ts
|
|
3
|
-
var field_default = defineCommandGroup({
|
|
4
|
-
name: "field",
|
|
5
|
-
description: "Manage Metabase fields",
|
|
6
|
-
skills: [{
|
|
7
|
-
skill: "metadata",
|
|
8
|
-
purpose: "semantic types, FK targets, visibility, dropdown behavior"
|
|
9
|
-
}],
|
|
10
|
-
subCommands: {
|
|
11
|
-
get: () => import("./get-DqKsf4N-.mjs").then((m) => m.default),
|
|
12
|
-
values: () => import("./values-BB4cTLim.mjs").then((m) => m.default),
|
|
13
|
-
summary: () => import("./summary-nrM5fHQ2.mjs").then((m) => m.default),
|
|
14
|
-
update: () => import("./update-BboO0IUv.mjs").then((m) => m.default),
|
|
15
|
-
search: () => import("./search-DYrl0gT0.mjs").then((m) => m.default),
|
|
16
|
-
remapping: () => import("./remapping-D1Sa-xfO.mjs").then((m) => m.default),
|
|
17
|
-
"set-sensitivity": () => import("./set-sensitivity-DZXMFyj1.mjs").then((m) => m.default)
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { field_default as default };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-DxaqX3Gg.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-MYpQhWUe.mjs").then((mod) => mod.default),
|
|
12
|
-
"is-dirty": () => import("./is-dirty-CUToDpA1.mjs").then((mod) => mod.default),
|
|
13
|
-
"has-remote-changes": () => import("./has-remote-changes-CTrRo6EC.mjs").then((mod) => mod.default),
|
|
14
|
-
dirty: () => import("./dirty-Dm1ZYpS7.mjs").then((mod) => mod.default),
|
|
15
|
-
"current-task": () => import("./current-task-q6-QEL9Q.mjs").then((mod) => mod.default),
|
|
16
|
-
"cancel-task": () => import("./cancel-task-GA9Szh_n.mjs").then((mod) => mod.default),
|
|
17
|
-
wait: () => import("./wait-jszi7SI3.mjs").then((mod) => mod.default),
|
|
18
|
-
import: () => import("./import-CsIkDnWQ.mjs").then((mod) => mod.default),
|
|
19
|
-
export: () => import("./export-V1W9sn5C.mjs").then((mod) => mod.default),
|
|
20
|
-
"export-preflight": () => import("./export-preflight-B2tvCt3v.mjs").then((mod) => mod.default),
|
|
21
|
-
stash: () => import("./stash-D7vPehrB.mjs").then((mod) => mod.default),
|
|
22
|
-
branches: () => import("./branches-BNuxljRy.mjs").then((mod) => mod.default),
|
|
23
|
-
"create-branch": () => import("./create-branch-BuXhvXjm.mjs").then((mod) => mod.default),
|
|
24
|
-
"add-collection": () => import("./add-collection-C7MKpQ_s.mjs").then((mod) => mod.default),
|
|
25
|
-
"remove-collection": () => import("./remove-collection-D-VC2Gw0.mjs").then((mod) => mod.default)
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
//#endregion
|
|
29
|
-
export { git_sync_default as default };
|