@metabase/cli 0.3.1 → 0.3.2-alpha.fix-transform-test-ee-path.041c793
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-CYDUm_XO.mjs → add-collection-73X1DmCM.mjs} +6 -9
- package/dist/{alert-ClyhtxIz.mjs → alert-BB38lWSL.mjs} +7 -7
- package/dist/{alerts-Dt3D1gcz.mjs → alerts-DxyzqLSU.mjs} +7 -7
- package/dist/{append-Bl_Ensmr.mjs → append-CHme1Enm.mjs} +5 -5
- package/dist/{archive-DSMqHRr1.mjs → archive-BGiDxu8O.mjs} +4 -4
- package/dist/{archive-D3a3Wgz0.mjs → archive-BMyvyf62.mjs} +4 -4
- package/dist/{archive-BdHXQg4I.mjs → archive-C4Y2B58q.mjs} +4 -4
- package/dist/{archive-CWceyy8x.mjs → archive-CP5Hlqjw.mjs} +5 -5
- package/dist/{archive-BOyKhNOz.mjs → archive-Cq3fnc0v2.mjs} +6 -6
- package/dist/{archive-DVGDg8mP.mjs → archive-CqKqNdUh.mjs} +6 -6
- package/dist/{archive-DDru3vdy.mjs → archive-Czo5T0Lp.mjs} +4 -4
- package/dist/{archive-nKD3mOB8.mjs → archive-DBcxZwLd.mjs} +6 -6
- package/dist/{archive-CNblz55j.mjs → archive-DKFPJ9j3.mjs} +6 -6
- package/dist/{archive-BJZ7Dace.mjs → archive-DPL1qOuL.mjs} +6 -6
- package/dist/{archive-DiGxCojL.mjs → archive-eS-XA74p.mjs} +4 -4
- package/dist/{auth-aCksg8q2.mjs → auth-6YyB0HNB.mjs} +5 -5
- package/dist/{body-DxRSAMNC.mjs → body-OjAWKVaU.mjs} +3 -3
- package/dist/{branches-_0VWR2Zm.mjs → branches-D5YLVFDK.mjs} +4 -7
- package/dist/{cancel-ctpVE8uC.mjs → cancel-DeRIq1YJ.mjs} +4 -4
- package/dist/{cancel-task-FtxBka-M.mjs → cancel-task-CqExODVm.mjs} +5 -8
- package/dist/card-BMSqofd7.mjs +24 -0
- package/dist/{card-zyUkr2nS.mjs → card-CEkp1mcI.mjs} +1 -1
- package/dist/{card-DZxRmver.mjs → card-voh1k4hl.mjs} +14 -11
- package/dist/{cards-DHOWAvfv.mjs → cards-B813G9I5.mjs} +7 -7
- package/dist/cli.mjs +572 -69
- package/dist/client-cJ7aw0Gt.mjs +4092 -0
- package/dist/collection-BfNg7tEg.mjs +20 -0
- package/dist/{collection-CfulNRBG.mjs → collection-BxdPxD38.mjs} +1 -1
- package/dist/{collection-CGoVLvcD.mjs → collection-DYM0p3Xl.mjs} +1 -1
- package/dist/{collection-namespace-CEoQ7G08.mjs → collection-namespace-CVzDgJV0.mjs} +2 -2
- package/dist/{content-translation-DNKerjS3.mjs → content-translation-QKWt9l76.mjs} +3 -3
- package/dist/{create-e650zxzX.mjs → create-4UnoQvsy.mjs} +5 -5
- package/dist/{create-DaYRnK5P.mjs → create-BJad6MR82.mjs} +8 -8
- package/dist/{create-CcLchJAN.mjs → create-BLiB2xqo.mjs} +7 -7
- package/dist/{create-C9vy4ZG6.mjs → create-BWp6L_dW.mjs} +5 -5
- package/dist/{create-C78g8Crb.mjs → create-Bef5eBCA.mjs} +5 -5
- package/dist/{create-F4Lf09xq.mjs → create-CMV3qlzJ.mjs} +4 -4
- package/dist/{create-DmvoibX8.mjs → create-CWGsiFvU.mjs} +4 -4
- package/dist/{create-C3IaXXty.mjs → create-CoFg1p6m.mjs} +4 -4
- package/dist/{create-CEydRMWS.mjs → create-CvIeb1NU.mjs} +7 -7
- package/dist/{create-vlrlY-2E.mjs → create-CvpeAcFc.mjs} +4 -4
- package/dist/{create-wJR4CxHA.mjs → create-D50TxVTk.mjs} +5 -8
- package/dist/{create-CLG2-bso.mjs → create-DEBgYRlM.mjs} +6 -6
- package/dist/{create-7ddYK4TA.mjs → create-DJm0YuLW.mjs} +6 -6
- package/dist/{create-BdPVWYSi.mjs → create-DmKwDQCY2.mjs} +6 -6
- package/dist/{create-branch-B8C7jl-J.mjs → create-branch-BN5iH-GM.mjs} +5 -9
- package/dist/{create-DIVhBIyE.mjs → create-bvpl6Fn5.mjs} +11 -7
- package/dist/create-uanpKsPo.mjs +34 -0
- package/dist/{csv-BLPJtlSC.mjs → csv-BhuX9fwh.mjs} +5 -5
- package/dist/{current-task-C-ldJbWE.mjs → current-task-BMt2NeqV.mjs} +5 -8
- package/dist/{dashboard-CtO_3EfC.mjs → dashboard-Ct_ajSYI.mjs} +10 -10
- package/dist/{dashboard-CKUR8ZpQ.mjs → dashboard-D0hwTC-f.mjs} +11 -2
- package/dist/{dashboard-BlbNszi8.mjs → dashboard-DgK81azj.mjs} +1 -1
- package/dist/{database-B19qlLKZ.mjs → database-C3E9PZSx.mjs} +1 -1
- package/dist/{database-C8G6ZKG0.mjs → database-JtHTqSpq.mjs} +1 -1
- package/dist/{db-xXselnBq.mjs → db-B_LW2VE-.mjs} +7 -7
- package/dist/{delete-ZJJyqsRh.mjs → delete-BOcPK_H9.mjs} +5 -5
- package/dist/{delete-BZZHw6pm.mjs → delete-CowGO4rh.mjs} +5 -5
- package/dist/{delete-D6WxgWRp.mjs → delete-D0f7VatX.mjs} +5 -5
- package/dist/{delete-BwSPQy7m.mjs → delete-D2bUV6uo.mjs} +5 -5
- package/dist/delete-DZ_ICQug.mjs +44 -0
- package/dist/{delete-BZwAOQxG.mjs → delete-Ur7b11no.mjs} +5 -5
- package/dist/{delete-runtime-D74s6vhu.mjs → delete-runtime-BKEzJn22.mjs} +1 -2
- package/dist/{delete-table-CJktZE3w.mjs → delete-table-Dd8X573t.mjs} +5 -5
- package/dist/{dependencies-BdqIqEIy.mjs → dependencies-XDVLBwko.mjs} +7 -7
- package/dist/{dirty-BW2As2wS.mjs → dirty-k-JmGLsS.mjs} +6 -9
- package/dist/{document-Cd2mmqCp.mjs → document-BHpLJbKU.mjs} +5 -0
- package/dist/document-BW9iow8R.mjs +19 -0
- package/dist/{document-D6OybtP2.mjs → document-CA0Q6lqu.mjs} +1 -1
- package/dist/{download-mfFJ9oRS.mjs → download-CQjPIYDO.mjs} +3 -6
- package/dist/{eid-DZ-4t2xe.mjs → eid-CNTKDgwj.mjs} +4 -5
- package/dist/{events-D6yFmXP1.mjs → events-BshWlkDp.mjs} +5 -5
- package/dist/{export-DYZjz1WP.mjs → export-Dq6ecU8h.mjs} +7 -10
- package/dist/{field-BJ54wmIX.mjs → field-Bo2ISMO4.mjs} +5 -5
- package/dist/{field-Cr2DPUG9.mjs → field-CcN4oZy6.mjs} +16 -1
- package/dist/{field-BPsNa-TO.mjs → field-fDtIrY6D.mjs} +1 -1
- package/dist/{fields-FUWCgPOa.mjs → fields-CVctqn5G.mjs} +7 -7
- package/dist/{get-BraVQ1FJ.mjs → get-7xTeNGAo.mjs} +6 -6
- package/dist/{get-LAew34ID.mjs → get-8b5Sh50q.mjs} +6 -6
- package/dist/{get-CWnriw33.mjs → get-B4RgW-VT.mjs} +6 -6
- package/dist/{get-C_5AbfpO.mjs → get-BD81MHl_.mjs} +4 -4
- package/dist/{get-ByZJf9nO.mjs → get-Bl3OmlBP.mjs} +5 -5
- package/dist/get-BtTetWzm.mjs +32 -0
- package/dist/{get-_ggLr1tY.mjs → get-BvSA_mmf.mjs} +6 -6
- package/dist/{get-DhkltKIV.mjs → get-BvgEF--n.mjs} +4 -4
- package/dist/{get-DYaQpixt.mjs → get-C5sWciaE.mjs} +6 -6
- package/dist/get-CO6X4nZH.mjs +93 -0
- package/dist/{get-DVyesErX.mjs → get-CTPvdcud.mjs} +6 -6
- package/dist/{get-DMECsioX.mjs → get-CrpwxWOV.mjs} +4 -4
- package/dist/{get-Ba2HRdrx.mjs → get-D4oGhZWX.mjs} +6 -6
- package/dist/{get-CsN7NBI0.mjs → get-Df6cGHCM.mjs} +4 -4
- package/dist/{get-BWl3vzsf.mjs → get-DfMVlz64.mjs} +6 -6
- package/dist/{get-C5q49Dgx.mjs → get-Dr-U321T2.mjs} +6 -6
- package/dist/{get-DAOSGt5Z.mjs → get-Dw7jAno3.mjs} +6 -6
- package/dist/{get-DRJtsS1_.mjs → get-PWhOdz1z.mjs} +4 -4
- package/dist/{get-CQ0-fFWP.mjs → get-RslzBaXx.mjs} +5 -8
- package/dist/{get-run-oH4dRCBx.mjs → get-run-CZdDqfUj.mjs} +6 -6
- package/dist/{get-DCutQeiV.mjs → get-wjIgUlNl.mjs} +4 -4
- package/dist/git-sync-BmoRk0UV.mjs +28 -0
- package/dist/{git-sync-BDnxPrqU.mjs → git-sync-BwBRmEhE.mjs} +18 -1
- package/dist/{git-sync-DxD_ng48.mjs → git-sync-TjX1r_wF.mjs} +1 -1
- package/dist/{group-DBM87IgC.mjs → group-YQQ5GIcP.mjs} +2 -2
- package/dist/{has-remote-changes-CnmyIw_7.mjs → has-remote-changes-i-3MVxat.mjs} +5 -8
- package/dist/{import-B7Si-bSI.mjs → import-DWEKejya.mjs} +7 -10
- package/dist/{input-DH9i67x_.mjs → input-DEvkIjGr.mjs} +1 -1
- package/dist/{is-dirty-BOH_VEA8.mjs → is-dirty-C5ipqd4v.mjs} +3 -6
- package/dist/{items-DouHkWev.mjs → items-hKJ2ZDwy.mjs} +7 -7
- package/dist/{key-BEhqIzIQ.mjs → key-PYetuQ13.mjs} +1 -1
- package/dist/{library-1J_4Dicw.mjs → library-B7_04UVK.mjs} +5 -5
- package/dist/library-BPIzb3K_.mjs +81 -0
- package/dist/{library-DfYAT2Ep.mjs → library-PGCfm0UA.mjs} +1 -1
- package/dist/{list-BK_6VNm_.mjs → list-1vdClKSE.mjs} +4 -4
- package/dist/{list-DWLGpMvr.mjs → list-6myofqMv.mjs} +7 -7
- package/dist/{list-DhViDVx_.mjs → list-B-9QOX9Y.mjs} +6 -6
- package/dist/{list-aKUk-a1Y.mjs → list-Bs7_Rysg.mjs} +7 -7
- package/dist/list-CHuhMXet.mjs +35 -0
- package/dist/{list-DptEWB5Y.mjs → list-CLZU_EOf.mjs} +4 -4
- package/dist/{list-B2Ddf4W0.mjs → list-Cen-7uTo.mjs} +5 -5
- package/dist/{list-D2IYZ6lk.mjs → list-CgH-H-O6.mjs} +6 -6
- package/dist/{list-BeMYIeiI.mjs → list-CjNXskB4.mjs} +7 -7
- package/dist/{list-C1bAtgO1.mjs → list-CmFh1GQ_.mjs} +4 -4
- package/dist/{list-Cy0w4Fap.mjs → list-D6tTvYUP.mjs} +4 -4
- package/dist/{list-C7UvO3Uw.mjs → list-DI820W6w.mjs} +6 -6
- package/dist/{list-D25ofn4v.mjs → list-DKZnQ4Ts.mjs} +7 -7
- package/dist/{list-C0zJ2ehz.mjs → list-DKcC4cm0.mjs} +6 -6
- package/dist/{list-qs9wAtC3.mjs → list-DfRqNH1N.mjs} +4 -4
- package/dist/list-DjwnsyXM.mjs +60 -0
- package/dist/{list-sDpy4nDU.mjs → list-VNC-_E59.mjs} +6 -6
- package/dist/{list-DJK9_BEF.mjs → list-eKDT1XXk.mjs} +14 -13
- package/dist/{list-BXlTYsYA.mjs → list-oX2SMzxZ.mjs} +4 -4
- package/dist/{login-BmyCAfRV.mjs → login-DumZaWXK.mjs} +18 -15
- package/dist/{logout-DUR32q0V.mjs → logout-BsXPRc-3.mjs} +3 -4
- package/dist/{measure-DdVp-8jw.mjs → measure-BFxkbAoa.mjs} +6 -6
- package/dist/{notification-Fcq1fIPw.mjs → notification-DVrLkjFT.mjs} +1 -1
- package/dist/{parameter-DUKR8NXo.mjs → parameter-Celg0wZa.mjs} +1 -1
- package/dist/{parameter-values-CBR-cBev.mjs → parameter-values-CoF9Hx1p.mjs} +5 -6
- package/dist/{parse-enum-D0Jfm_Bz.mjs → parse-enum-Dc0dMZ3P.mjs} +1 -1
- package/dist/{parse-id-B3YwNojT.mjs → parse-id-DmFJgpY6.mjs} +1 -1
- package/dist/{parse-ref-ibKVB0J4.mjs → parse-ref-DTDld_LJ.mjs} +1 -1
- package/dist/{path-D8BQmEhL.mjs → path-BQ4lRDyN.mjs} +5 -5
- package/dist/{poll-75SvT7Zv.mjs → poll-CZeXepUQ.mjs} +2 -2
- package/dist/{preflight-CoF1Em99.mjs → preflight-BTQe4swo.mjs} +3 -4
- package/dist/{process-DBOOrmET.mjs → process-CTrfxxaC.mjs} +1 -1
- package/dist/{publish-Cb7XrQ3X.mjs → publish-CFB2Cc5A.mjs} +9 -9
- package/dist/{pulse-BmsDenXm.mjs → pulse-Dz0ocv0l.mjs} +1 -1
- package/dist/{pulse-DhG6I9mI.mjs → pulse-x0gFxWfG.mjs} +2 -2
- package/dist/{query-D35B588l.mjs → query-BJbUnAHf.mjs} +10 -12
- package/dist/query-CV2KCS5O.mjs +114 -0
- package/dist/{query-result-DBDwk8TS.mjs → query-result-E4Q-Gra6.mjs} +1 -1
- package/dist/{remove-collection-DJem6V26.mjs → remove-collection-D3yvKH3e.mjs} +6 -9
- package/dist/{render-CI93iP0I.mjs → render-BJRCs7rA.mjs} +13 -2
- package/dist/{replace-CtsWICrD.mjs → replace-uj4WTqx_.mjs} +5 -5
- package/dist/{rescan-values-CaXUL6z5.mjs → rescan-values-CzxQU318.mjs} +6 -6
- package/dist/{run-CM-Amtbf.mjs → run-B2f_omHu.mjs} +26 -14
- package/dist/run-DlO1J1Sx.mjs +50 -0
- package/dist/{run-BeLm17F4.mjs → run-yX2dtmE5.mjs} +6 -6
- package/dist/{runs-DFG63zgr.mjs → runs-DzUO45wU.mjs} +7 -7
- package/dist/{runtime-z8rra6-I.mjs → runtime-arKqJqIT.mjs} +994 -252
- package/dist/{schema-tables-COAHkIcy.mjs → schema-tables-DZCNzuQ6.mjs} +7 -7
- package/dist/{schemas-BX5BATiV.mjs → schemas-2ejqaVsG.mjs} +5 -5
- package/dist/{search-DFBwUc6d.mjs → search-BAXg-EJw.mjs} +2 -1
- package/dist/{search-CPvvmhdt.mjs → search-DcihauDZ.mjs} +6 -6
- package/dist/{segment-C62L6BI3.mjs → segment-BQT2poPG.mjs} +6 -6
- package/dist/{selectors-P4QnrORk.mjs → selectors-BzestDld.mjs} +3 -3
- package/dist/{send-PZh5IKF8.mjs → send-DMxoLFo7.mjs} +4 -4
- package/dist/{set-DbCtUoFd.mjs → set-CDmiD0vv.mjs} +5 -5
- package/dist/{set-active-DL4QzWDO.mjs → set-active-RrvWR9NY.mjs} +5 -5
- package/dist/{setting-BlRcZbhC.mjs → setting-BiBLCcxz.mjs} +4 -4
- package/dist/{setup-D_SLaC-3.mjs → setup-DYsTzkWO.mjs} +4 -4
- package/dist/{signal-CMd0EFUa.mjs → signal-k7cm5N6h.mjs} +11 -2
- package/dist/skill-list-D9_1Pmt7.mjs +76 -0
- package/dist/skills-BPHXUfeL.mjs +351 -0
- package/dist/{skills-D991LB1M.mjs → skills-C3bxxC6a.mjs} +3 -3
- package/dist/snippet-BtfxE60H.mjs +19 -0
- package/dist/{stash-DyBxFoP6.mjs → stash-DdheS0Ad.mjs} +7 -11
- package/dist/{status-cfDHqK2Q.mjs → status-BuIzXRX1.mjs} +12 -11
- package/dist/{status-DUsiogz5.mjs → status-CXouQJ31.mjs} +11 -9
- package/dist/{subscription-Bn0AU7GN.mjs → subscription-CJ8Igs1U.mjs} +6 -6
- package/dist/{subscriptions-DwqjCVlc.mjs → subscriptions-D0NpGvCQ.mjs} +7 -7
- package/dist/{summary-BGwSNzf4.mjs → summary-D04S8gGj.mjs} +6 -6
- package/dist/{sync-schema-dtkDOAKe.mjs → sync-schema-DrA5zkdl.mjs} +7 -7
- package/dist/{sync-task-BACcrs0i.mjs → sync-task-BXeWuARG.mjs} +1 -1
- package/dist/{table-CsIJNPFf.mjs → table-C6h4tIRw.mjs} +1 -1
- package/dist/{table-CeeTJgQb.mjs → table-DfuY0N8e.mjs} +51 -4
- package/dist/{table-BJoEAoCU.mjs → table-Dntbz7Q2.mjs} +5 -5
- package/dist/timeline-8jwsldo3.mjs +21 -0
- package/dist/{timeline-event-BsF7YqzZ.mjs → timeline-event-BbB1xEdI.mjs} +6 -6
- package/dist/{transform-DoTyyXAu.mjs → transform-CtqB1WYo.mjs} +2 -2
- package/dist/{transform-D3QX0jxA.mjs → transform-DiW7bREn.mjs} +68 -5
- package/dist/{transform-job-50GZHhKH.mjs → transform-job-AaMZRxAq.mjs} +1 -1
- package/dist/transform-job-B-1YAbvy.mjs +22 -0
- package/dist/{transform-job-DRrK28IH.mjs → transform-job-CCguL6LP.mjs} +41 -4
- package/dist/transform-m6s4kkWU.mjs +28 -0
- package/dist/{transform-tag-VM9R7Q_M.mjs → transform-tag-PjryheLF.mjs} +5 -5
- package/dist/transform-test-BjjCQ2xm.mjs +169 -0
- package/dist/transform-test-DSTkKKNC.mjs +16 -0
- package/dist/transform-test-gzDcbypy.mjs +25 -0
- package/dist/{transforms-BjACGbBp.mjs → transforms-CijX3VE7.mjs} +7 -7
- package/dist/{tree-BwS6JAmk.mjs → tree-Cmb3O6rH.mjs} +4 -5
- package/dist/{unpublish-DWdPnENY.mjs → unpublish-DkP_AcK5.mjs} +4 -7
- package/dist/{update-DKEHY-gt.mjs → update-8UmD1prT.mjs} +7 -7
- package/dist/{update-C1FBVLfC.mjs → update-BFyRBc-H.mjs} +8 -8
- package/dist/{update-tLIhVIPp.mjs → update-BrXGg3QO.mjs} +8 -8
- package/dist/{update-DCjAjihm.mjs → update-C91m9YAR.mjs} +6 -6
- package/dist/{update-BpPaacCF.mjs → update-COcx61Ur.mjs} +6 -6
- package/dist/update-Ci8YL4_2.mjs +41 -0
- package/dist/{update-BR_vkkd1.mjs → update-CtLbFCd_.mjs} +5 -5
- package/dist/{update-DTmRHBik.mjs → update-D6Zzvc7F.mjs} +7 -7
- package/dist/{update-cqR1U6DU.mjs → update-D8htjzNJ.mjs} +5 -5
- package/dist/{update-B2CF2DK4.mjs → update-D9kOTr0n.mjs} +6 -6
- package/dist/{update-C4y3iQsv.mjs → update-DPTio6i1.mjs} +7 -7
- package/dist/{update-DsZttiSC.mjs → update-DlWB9s0v.mjs} +5 -5
- package/dist/{update-BCT9qpVr.mjs → update-DubrpPbz.mjs} +5 -5
- package/dist/{update-3idz42uD.mjs → update-Dz47cKBk.mjs} +7 -7
- package/dist/{update-DkviXwSg.mjs → update-FCP5Lop2.mjs} +7 -7
- package/dist/{update-DlTaD1x3.mjs → update-KSHnb6vB.mjs} +9 -9
- package/dist/{update-dashcard-DlE_bb2F.mjs → update-dashcard-BlibHa5o.mjs} +7 -7
- package/dist/{upgrade-mNV7XuJG.mjs → upgrade-EwL6wPSY.mjs} +6 -8
- package/dist/upload-BZshRJIM.mjs +13 -0
- package/dist/{upload-CEGVxmYB.mjs → upload-D0KaTqUE.mjs} +4 -7
- package/dist/{upload-CD555ui1.mjs → upload-Do2PBSeH.mjs} +2 -2
- package/dist/{uuid-C4hqn3kA.mjs → uuid-DjKLDIVE.mjs} +10 -7
- package/dist/{validate-query-DaGYSmpQ.mjs → validate-query-D6_ad-Gi.mjs} +3 -4
- package/dist/{validate-BWchyW0V.mjs → validate-xR_MHBNR.mjs} +69 -23
- package/dist/{values-C0O3eNaW.mjs → values-Dc9612_L.mjs} +6 -6
- package/dist/{verify-DfTjYF7s.mjs → verify-DVN1eqXZ.mjs} +3 -18
- package/dist/{wait-WZmFenN_.mjs → wait-C-ovOTAZ.mjs} +7 -10
- package/dist/{wait-flags-BbfDSP8R.mjs → wait-flags-BQNmuvIj.mjs} +2 -2
- package/dist/{window-BkvrP0gB.mjs → window-DSb1tqSe.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +31 -15
- package/skill-data/dashboard/SKILL.md +1 -1
- package/skill-data/data-workflow/references/building-clean-tables.md +6 -2
- package/skill-data/data-workflow/references/reusable-definitions.md +11 -3
- package/skill-data/document/SKILL.md +4 -1
- package/skill-data/git-sync/SKILL.md +5 -0
- package/skill-data/mbql/SKILL.md +84 -115
- package/skill-data/mbql/references/operators.md +77 -231
- package/skill-data/metadata/SKILL.md +1 -1
- package/skill-data/metadata/references/semantic-types.md +7 -1
- package/skill-data/native-sql/SKILL.md +8 -9
- package/skill-data/native-sql/references/template-tags.md +27 -27
- package/skill-data/notification/SKILL.md +7 -1
- package/skill-data/transform/SKILL.md +76 -4
- package/skill-data/transform-test-plan/SKILL.md +171 -0
- package/skill-data/transform-test-plan/references/checklist.md +81 -0
- package/skill-data/transform-test-plan/references/checks.md +260 -0
- package/skill-data/visualization/SKILL.md +13 -6
- package/skill-data/visualization/references/settings.md +13 -11
- package/skills/metabase-cli/SKILL.md +1 -1
- package/dist/card-CGCXbdmD.mjs +0 -24
- package/dist/client-mKuHg_sc.mjs +0 -2218
- package/dist/collection-D8Tk8i3a.mjs +0 -20
- package/dist/document-KbcHhzFz.mjs +0 -19
- package/dist/get-BC8J8BXB.mjs +0 -80
- package/dist/git-sync-Dik8nKfw.mjs +0 -28
- package/dist/library-ClLgrAXy.mjs +0 -19
- package/dist/list-CW5PdYCX.mjs +0 -98
- package/dist/network-error-D6CiOEBw.mjs +0 -431
- package/dist/predicates-Bkm2IoeX.mjs +0 -170
- package/dist/query-C256WBYG.mjs +0 -87
- package/dist/skills-DTCrMcix.mjs +0 -216
- package/dist/snippet-DTDO55Cg.mjs +0 -19
- package/dist/timeline-DcXPshcT.mjs +0 -21
- package/dist/transform-Dsf_wHAj.mjs +0 -28
- package/dist/transform-job-B1yLv5l-.mjs +0 -22
- package/dist/upload-DsYCf5kB.mjs +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as ConfigError, b as isPlainObject, lt as escapeJsonPointerSegment } from "./cli.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import Ajv2020 from "ajv/dist/2020.js";
|
|
4
4
|
import addFormats from "ajv-formats";
|
|
@@ -1308,7 +1308,7 @@ const ValidationIssue = z.object({
|
|
|
1308
1308
|
path: z.string(),
|
|
1309
1309
|
message: z.string()
|
|
1310
1310
|
});
|
|
1311
|
-
z.object({
|
|
1311
|
+
const ValidationOutcome = z.object({
|
|
1312
1312
|
ok: z.boolean(),
|
|
1313
1313
|
errors: z.array(ValidationIssue)
|
|
1314
1314
|
});
|
|
@@ -1327,6 +1327,58 @@ const idSchema = {
|
|
|
1327
1327
|
field_id: POSITIVE_INTEGER
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
+
function definitionRef(tag) {
|
|
1331
|
+
return {
|
|
1332
|
+
description: `[${tag}, options, id]`,
|
|
1333
|
+
type: "array",
|
|
1334
|
+
prefixItems: [
|
|
1335
|
+
{ const: tag },
|
|
1336
|
+
{ $ref: "query.yaml#/$defs/options" },
|
|
1337
|
+
POSITIVE_INTEGER
|
|
1338
|
+
],
|
|
1339
|
+
minItems: 3,
|
|
1340
|
+
maxItems: 3
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
const refSchemaWithIds = {
|
|
1344
|
+
...ref_default,
|
|
1345
|
+
$defs: {
|
|
1346
|
+
...ref_default.$defs,
|
|
1347
|
+
metric_ref: definitionRef("metric"),
|
|
1348
|
+
measure_ref: definitionRef("measure"),
|
|
1349
|
+
segment_ref: definitionRef("segment")
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
const templateTag = query_default.$defs.template_tag;
|
|
1353
|
+
const nativeStage = query_default.$defs.native_stage;
|
|
1354
|
+
const TEMPLATE_TAG_REF = { $ref: "#/$defs/template_tag" };
|
|
1355
|
+
const querySchemaForApi = {
|
|
1356
|
+
...query_default,
|
|
1357
|
+
$defs: {
|
|
1358
|
+
...query_default.$defs,
|
|
1359
|
+
native_stage: {
|
|
1360
|
+
...nativeStage,
|
|
1361
|
+
properties: {
|
|
1362
|
+
...nativeStage.properties,
|
|
1363
|
+
"template-tags": {
|
|
1364
|
+
type: ["object", "array"],
|
|
1365
|
+
additionalProperties: TEMPLATE_TAG_REF,
|
|
1366
|
+
items: TEMPLATE_TAG_REF
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
template_tag: {
|
|
1371
|
+
...templateTag,
|
|
1372
|
+
properties: {
|
|
1373
|
+
...templateTag.properties,
|
|
1374
|
+
id: {
|
|
1375
|
+
type: "string",
|
|
1376
|
+
minLength: 1
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
};
|
|
1330
1382
|
let validator = null;
|
|
1331
1383
|
function getValidator() {
|
|
1332
1384
|
if (validator !== null) return validator;
|
|
@@ -1338,18 +1390,18 @@ function getValidator() {
|
|
|
1338
1390
|
addFormats(ajv);
|
|
1339
1391
|
ajv.addSchema(idSchema, "id.yaml");
|
|
1340
1392
|
ajv.addSchema(parameter_default, "parameter.yaml");
|
|
1341
|
-
ajv.addSchema(
|
|
1393
|
+
ajv.addSchema(refSchemaWithIds, "ref.yaml");
|
|
1342
1394
|
ajv.addSchema(temporal_bucketing_default, "temporal_bucketing.yaml");
|
|
1343
|
-
ajv.addSchema(
|
|
1395
|
+
ajv.addSchema(querySchemaForApi, "query.yaml");
|
|
1344
1396
|
const compiled = ajv.getSchema("query.yaml");
|
|
1345
1397
|
if (compiled === void 0) throw new Error("internal: query.yaml validator not registered");
|
|
1346
1398
|
validator = compiled;
|
|
1347
1399
|
return validator;
|
|
1348
1400
|
}
|
|
1349
|
-
const UUID_HINT_MESSAGE = "must be a UUID
|
|
1350
|
-
const FIELD_SLOT1_HINT_MESSAGE = "must be the
|
|
1351
|
-
function clauseSlot1HintMessage(operator
|
|
1352
|
-
return `must be the
|
|
1401
|
+
const UUID_HINT_MESSAGE = "must be a UUID from `mb uuid`";
|
|
1402
|
+
const FIELD_SLOT1_HINT_MESSAGE = "must be the options object: [\"field\", {}, <field id>]";
|
|
1403
|
+
function clauseSlot1HintMessage(operator) {
|
|
1404
|
+
return `must be the options object: ["${operator}", {}, ...args]`;
|
|
1353
1405
|
}
|
|
1354
1406
|
const FormatErrorParams = z.object({ format: z.string() });
|
|
1355
1407
|
function isUuidFormatIssue(issue) {
|
|
@@ -1365,7 +1417,7 @@ function runValidator(validatorFn, value) {
|
|
|
1365
1417
|
const overrides = collectMessageOverrides(value);
|
|
1366
1418
|
return {
|
|
1367
1419
|
ok: false,
|
|
1368
|
-
errors: (validatorFn.errors ?? []).map((issue) => {
|
|
1420
|
+
errors: (validatorFn.errors ?? []).filter((issue) => issue.keyword !== IF_KEYWORD).map((issue) => {
|
|
1369
1421
|
if (issue.message === void 0) throw new Error(`Ajv issue at ${issue.instancePath} has no message`);
|
|
1370
1422
|
const path = issue.instancePath === "" ? "/" : issue.instancePath;
|
|
1371
1423
|
if (isUuidFormatIssue(issue)) return {
|
|
@@ -1379,6 +1431,7 @@ function runValidator(validatorFn, value) {
|
|
|
1379
1431
|
})
|
|
1380
1432
|
};
|
|
1381
1433
|
}
|
|
1434
|
+
const IF_KEYWORD = "if";
|
|
1382
1435
|
function collectMessageOverrides(root) {
|
|
1383
1436
|
const overrides = /* @__PURE__ */ new Map();
|
|
1384
1437
|
visit(root, "");
|
|
@@ -1403,7 +1456,7 @@ function clauseSlot1Message(clause) {
|
|
|
1403
1456
|
const slot1 = clause[1];
|
|
1404
1457
|
if (isPlainObject(slot1)) return null;
|
|
1405
1458
|
if (operator === "field") return FIELD_SLOT1_HINT_MESSAGE;
|
|
1406
|
-
return clauseSlot1HintMessage(operator
|
|
1459
|
+
return clauseSlot1HintMessage(operator);
|
|
1407
1460
|
}
|
|
1408
1461
|
function refSlot2Message(clause) {
|
|
1409
1462
|
if (clause.length !== 3) return null;
|
|
@@ -1414,18 +1467,11 @@ function refSlot2Message(clause) {
|
|
|
1414
1467
|
}
|
|
1415
1468
|
function refHintForKind(kind) {
|
|
1416
1469
|
switch (kind) {
|
|
1417
|
-
case "aggregation": return "must be the
|
|
1418
|
-
case "expression": return "must be the
|
|
1470
|
+
case "aggregation": return "must be the lib/uuid of an aggregation in this stage";
|
|
1471
|
+
case "expression": return "must be the name of an expression in this stage";
|
|
1419
1472
|
default: return null;
|
|
1420
1473
|
}
|
|
1421
1474
|
}
|
|
1422
|
-
function describeJsonValue(value) {
|
|
1423
|
-
if (value === null) return "null";
|
|
1424
|
-
if (Array.isArray(value)) return "array";
|
|
1425
|
-
if (typeof value === "string") return `string ${JSON.stringify(value)}`;
|
|
1426
|
-
if (typeof value === "number" || typeof value === "boolean") return `${typeof value} ${String(value)}`;
|
|
1427
|
-
return typeof value;
|
|
1428
|
-
}
|
|
1429
1475
|
function validateQuery(value) {
|
|
1430
1476
|
return runValidator(getValidator(), value);
|
|
1431
1477
|
}
|
|
@@ -1443,7 +1489,7 @@ function isLegacyEnvelopeWrappingMbql5(value) {
|
|
|
1443
1489
|
}
|
|
1444
1490
|
function assertNotLegacyEnvelopeWrappingMbql5(value, options) {
|
|
1445
1491
|
if (!isLegacyEnvelopeWrappingMbql5(value)) return;
|
|
1446
|
-
throw new ConfigError(`${options.contextLabel}:
|
|
1492
|
+
throw new ConfigError(`${options.contextLabel}: ${options.bodyNoun} is the query itself: {"lib/type": "mbql/query", "database": N, "stages": […]}.`);
|
|
1447
1493
|
}
|
|
1448
1494
|
z.object({
|
|
1449
1495
|
schema: z.unknown(),
|
|
@@ -1456,14 +1502,14 @@ z.object({
|
|
|
1456
1502
|
});
|
|
1457
1503
|
function getQuerySchemaBundle() {
|
|
1458
1504
|
return {
|
|
1459
|
-
schema:
|
|
1505
|
+
schema: querySchemaForApi,
|
|
1460
1506
|
defs: {
|
|
1461
1507
|
"id.yaml": idSchema,
|
|
1462
1508
|
"parameter.yaml": parameter_default,
|
|
1463
|
-
"ref.yaml":
|
|
1509
|
+
"ref.yaml": refSchemaWithIds,
|
|
1464
1510
|
"temporal_bucketing.yaml": temporal_bucketing_default
|
|
1465
1511
|
}
|
|
1466
1512
|
};
|
|
1467
1513
|
}
|
|
1468
1514
|
//#endregion
|
|
1469
|
-
export { validateQuery as i,
|
|
1515
|
+
export { validateQuery as a, isMbql5Query as i, assertNotLegacyEnvelopeWrappingMbql5 as n, getQuerySchemaBundle as r, ValidationOutcome as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import {
|
|
5
|
-
import { n as fieldValuesView } from "./field-
|
|
1
|
+
import { H as outputFlags, U as profileFlag, _ as formatScalar, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-arKqJqIT.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DmFJgpY6.mjs";
|
|
4
|
+
import { l as FieldValues } from "./field-CcN4oZy6.mjs";
|
|
5
|
+
import { n as fieldValuesView } from "./field-fDtIrY6D.mjs";
|
|
6
6
|
//#region src/commands/field/values.ts
|
|
7
7
|
var values_default = defineMetabaseCommand({
|
|
8
8
|
meta: {
|
|
9
9
|
name: "values",
|
|
10
10
|
description: "Fetch the cached distinct values for a field (FieldValues list)"
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
requires: ["field.values"],
|
|
13
13
|
args: {
|
|
14
14
|
...outputFlags,
|
|
15
15
|
...profileFlag,
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
import { n as createClient } from "./client-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { r as HttpError } from "./network-error-D6CiOEBw.mjs";
|
|
5
|
-
//#region ../client/src/version/probe.ts
|
|
6
|
-
const PROBE_PATH = "/api/session/properties";
|
|
7
|
-
const PROBE_TIMEOUT_MS = 1e4;
|
|
8
|
-
async function probeServer(client, opts = {}) {
|
|
9
|
-
const properties = await client.requestParsed(SessionProperties, PROBE_PATH, {
|
|
10
|
-
timeoutMs: PROBE_TIMEOUT_MS,
|
|
11
|
-
retries: opts.retries ?? 0
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
version: tryParseTag(properties.version.tag),
|
|
15
|
-
tokenFeatures: properties["token-features"] ?? null
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
1
|
+
import { n as createClient } from "./client-cJ7aw0Gt.mjs";
|
|
2
|
+
import { et as MetabaseError, ot as errorMessage, rt as TimeoutError, tt as NetworkError } from "./cli.mjs";
|
|
3
|
+
import { L as HttpError, O as USER_AGENT, et as probeServer } from "./runtime-arKqJqIT.mjs";
|
|
19
4
|
//#region src/core/auth/verify.ts
|
|
20
5
|
const VERIFY_TIMEOUT_MS = 15e3;
|
|
21
6
|
async function verifyAndProbe(url, credential, options = {}) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { n as DEFAULT_TIMEOUT_MS, t as DEFAULT_INTERVAL_MS } from "./poll-
|
|
4
|
-
import { r as parseWaitSchedule } from "./wait-flags-
|
|
5
|
-
import { c as syncTaskView } from "./git-sync-
|
|
6
|
-
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask, r as syncTaskIdleView, t as SyncTaskOrIdle } from "./sync-task-
|
|
1
|
+
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-arKqJqIT.mjs";
|
|
3
|
+
import { n as DEFAULT_TIMEOUT_MS, t as DEFAULT_INTERVAL_MS } from "./poll-CZeXepUQ.mjs";
|
|
4
|
+
import { r as parseWaitSchedule } from "./wait-flags-BQNmuvIj.mjs";
|
|
5
|
+
import { c as syncTaskView } from "./git-sync-TjX1r_wF.mjs";
|
|
6
|
+
import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask, r as syncTaskIdleView, t as SyncTaskOrIdle } from "./sync-task-BXeWuARG.mjs";
|
|
7
7
|
//#region src/commands/git-sync/wait.ts
|
|
8
8
|
const WaitResult = SyncTaskOrIdle;
|
|
9
9
|
var wait_default = defineMetabaseCommand({
|
|
@@ -11,10 +11,7 @@ var wait_default = defineMetabaseCommand({
|
|
|
11
11
|
name: "wait",
|
|
12
12
|
description: "Poll the current git-sync task until it reaches a terminal status"
|
|
13
13
|
},
|
|
14
|
-
|
|
15
|
-
minVersion: 60,
|
|
16
|
-
tokenFeature: "remote_sync"
|
|
17
|
-
},
|
|
14
|
+
requires: ["gitSync.waitForTask"],
|
|
18
15
|
args: {
|
|
19
16
|
...outputFlags,
|
|
20
17
|
...profileFlag,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as interruptSignal } from "./cli.mjs";
|
|
2
|
-
import { t as parseId } from "./parse-id-
|
|
3
|
-
import { n as DEFAULT_TIMEOUT_MS, t as DEFAULT_INTERVAL_MS } from "./poll-
|
|
2
|
+
import { t as parseId } from "./parse-id-DmFJgpY6.mjs";
|
|
3
|
+
import { n as DEFAULT_TIMEOUT_MS, t as DEFAULT_INTERVAL_MS } from "./poll-CZeXepUQ.mjs";
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitScheduleFlags = {
|
|
6
6
|
timeout: {
|
package/package.json
CHANGED
package/skill-data/core/SKILL.md
CHANGED
|
@@ -6,17 +6,17 @@ allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
|
|
|
6
6
|
|
|
7
7
|
# metabase-cli (core)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
`mb` drives a Metabase instance over its REST API: CRUD on every resource, query and transform execution, search, git-sync (representations ↔ instance), and entity-id translation.
|
|
10
10
|
|
|
11
11
|
Top-level command groups (run `mb <group> --help` to discover verbs):
|
|
12
12
|
|
|
13
13
|
```
|
|
14
14
|
auth | db | table | field | upload | content-translation | query | card | dashboard | snippet | segment | measure | collection | library
|
|
15
|
-
document | timeline | timeline-event | transform | transform-job | transform-tag | alert | subscription | setting
|
|
15
|
+
document | timeline | timeline-event | transform | transform-job | transform-tag | transform-test | alert | subscription | setting
|
|
16
16
|
search | git-sync | setup | eid | uuid | upgrade | skills
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
The conventions below — auth, flags, output, body input — hold across **every** group.
|
|
19
|
+
The conventions below — auth, flags, output, body input — hold across **every** group. When a card needs a query, prefer MBQL over native SQL (portable, pre-flight-validated — load `mbql`); fall back to native SQL when MBQL can't express it.
|
|
20
20
|
|
|
21
21
|
## Auth & profiles
|
|
22
22
|
|
|
@@ -28,7 +28,7 @@ mb auth status --json # → {profile, present, url} for the d
|
|
|
28
28
|
mb auth status --profile <name> --json # health probe for one profile
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
`auth list` is the primary enumeration path — one call returns every profile with sanitized URL, an `authenticated` flag, and a probe `status` (`ok` / `auth-failed` / `network-error` / `server-error` / `not-probed`).
|
|
31
|
+
`auth list` is the primary enumeration path — one call returns every profile with sanitized URL, an `authenticated` flag, and a probe `status` (`ok` / `auth-failed` / `network-error` / `server-error` / `not-probed`).
|
|
32
32
|
|
|
33
33
|
- One profile and intent doesn't disambiguate → use it.
|
|
34
34
|
- Several → ask via `AskUserQuestion`, presenting the names from `auth list`.
|
|
@@ -60,7 +60,7 @@ Every list/get verb supports the same output flags:
|
|
|
60
60
|
- `--json` — emit the full JSON envelope, safe for `jq`. Default is human-readable text.
|
|
61
61
|
- `--full` — include every field (the compact projection is the default, and is the agent-facing contract).
|
|
62
62
|
- `--fields a,b.c.d` — project specific dot-paths. Mutually exclusive with `--full`. **Paths are relative to each `data[]` item on list verbs, and to the root on single-item verbs.** So it's `--fields id,name` on `… list` / `database schema-tables` (`data.id` and `data[].id` both fail with `unknown field path: "data.id"`), and `--fields id,name,display` on `card get`, `--fields data.rows` on `mb query` (whose `data` is an object).
|
|
63
|
-
- `--max-bytes <n>` — cap output size. Default 24576
|
|
63
|
+
- `--max-bytes <n>` — cap output size. Default 24576; `0` disables. On a list it drops trailing items and sets `truncated` (see below). Single-item commands (`get`) never truncate — over the cap they throw a `ConfigError` (exit 2: "output is N bytes, over the M-byte --max-bytes cap; …") whose tail names the remedy: on schema-shaped commands it is the exact narrower command to run instead — follow it rather than raising the cap.
|
|
64
64
|
- JSON output is a single line when stdout is piped (pretty-printed only at a TTY) — always parse it, never scrape by line position.
|
|
65
65
|
|
|
66
66
|
## List windows and resumption
|
|
@@ -69,10 +69,10 @@ Every list verb takes `--limit <n>` (items this call returns) and `--offset <n>`
|
|
|
69
69
|
|
|
70
70
|
- **`has_more` decides whether to keep going — never compare counts.** `total` is the server's count on endpoints that report one and `null` on those that don't, so arithmetic over it is not a termination condition.
|
|
71
71
|
- **To continue, pass `next_offset` back as `--offset`.** When `has_more` is true `next_offset` is past the offset you sent, so the loop advances; when false the walk is over and `next_offset` is `null`.
|
|
72
|
-
- **`truncated` means the byte cap cut the output, not that the data ran out.** `has_more`/`next_offset` are recomputed to the cut point, so a capped list resumes like any window. Its `bytes` is what the untruncated answer would have measured, so it sizes the work left rather than the reply you hold. Narrow rows with `--fields` rather than raising `--max-bytes` —
|
|
72
|
+
- **`truncated` means the byte cap cut the output, not that the data ran out.** `has_more`/`next_offset` are recomputed to the cut point, so a capped list resumes like any window. Its `bytes` is what the untruncated answer would have measured, so it sizes the work left rather than the reply you hold. Narrow rows with `--fields` rather than raising `--max-bytes` — the cap counts only what you asked for, so `--fields` buys rows directly. A capped list always returns at least one row; when not even one fits it exits 2 with "the smallest response this list can produce is N bytes, over the M-byte --max-bytes cap; …".
|
|
73
73
|
- `limit` is echoed only when you passed `--limit` — except `mb search`, which defaults to `--limit 20` (an unbounded search is expensive server-side) and so always reports one. On nouns the server doesn't page, one large `--limit` with narrow `--fields` is a single request; many small `--offset` hops are one request each.
|
|
74
74
|
|
|
75
|
-
The whole walk
|
|
75
|
+
The whole walk:
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
78
|
offset=0
|
|
@@ -104,7 +104,7 @@ mb <noun> create --file ./.scratch/body.json --profile <n> --json
|
|
|
104
104
|
|
|
105
105
|
Single-quoted `'EOF'` stops the shell interpolating `$vars` inside the JSON.
|
|
106
106
|
|
|
107
|
-
Write working files to **`./.scratch`** in the current directory (`mkdir -p ./.scratch` first), never `/tmp` —
|
|
107
|
+
Write working files to **`./.scratch`** in the current directory (`mkdir -p ./.scratch` first), never `/tmp` — they persist across the session and the user can review them.
|
|
108
108
|
|
|
109
109
|
## Discovering commands and schemas
|
|
110
110
|
|
|
@@ -123,15 +123,17 @@ mb transform --help --json | jq -r '.commands[].command' # verbs under "transfo
|
|
|
123
123
|
|
|
124
124
|
## Resource quirks worth memorizing
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
Only what `--help` does _not_ tell you: footguns and non-obvious behaviors.
|
|
127
127
|
|
|
128
128
|
- **db traversal: the hydration ladder.** Start with `database get <db-id> --include tables` — the compact table map (id, name, schema, description per table), one call that fits most databases. Pick the relevant tables, then `table fields <table-id>` per table (bounded: fields are per-table). `--include tables.fields` is the full rollup — small databases only. Hundreds of tables? Traverse by schema (`database schemas <db-id>` → `database schema-tables <db-id> <schema>`) or look tables up by name (`search <term> --models table --db-id <db-id> --limit 10`). `sync-schema` / `rescan-values` queue async work and return `{status:"ok"}` immediately; `sync-schema --wait` blocks until `initial_sync_status: complete`.
|
|
129
129
|
- **table fields.** `table get` never returns fields on its own — pass `--include fields` (compact; the underlying query_metadata response also carries FK targets and dimensions, visible under `--full`) or use `table fields <id>` (list envelope). `table update` patches table-level metadata only; physical columns aren't editable.
|
|
130
130
|
- **field has no `list`.** Fields are per-table — get them via `table get <id> --include fields`. Never enumerate fields across a whole db (context blow-up). `field summary` is live cardinality `{field_id, count, distincts}`; `field values` is the cached distinct set (`has_more_values: true` ⇒ truncated cache). `field update` patches metadata only (`base_type` isn't editable) — this is where you set a column's `semantic_type` or foreign-key target.
|
|
131
131
|
- **upload (CSV → tables).** `upload csv --file <path>` creates a new table + model (prints `{model_id, table_id}`); `upload append <table-id>` / `upload replace <table-id> --file <path>` add to / overwrite a table **previously created by upload** (columns must match). The destination db+schema is admin-configured, not per-call — check with `mb setting get uploads-settings --json` (`db_id: null` ⇒ uploads off/unconfigured; needs admin to read). `--collection <id|root>` only sets the model's collection. Max 50 MB. Errors: **"The uploads database is not configured."** = no db has uploads enabled; **"Uploads are not enabled."** = the append/replace target isn't an uploaded table.
|
|
132
|
-
|
|
133
|
-
- **
|
|
134
|
-
|
|
132
|
+
<!-- requires: contentTranslation -->
|
|
133
|
+
- **content-translation.** Admin-only, and separate from Remote Sync. `content-translation download > translations.csv` streams the complete active dictionary; `content-translation upload --file translations.csv` replaces every active translation with the file's contents. Always upload the canonical complete CSV, never a partial patch. An empty dictionary downloads as Metabase's four-row sample dictionary — don't re-upload it as real translations. Metabase limits dictionaries to 1.5 MiB.
|
|
134
|
+
<!-- /requires -->
|
|
135
|
+
- **card.** `dataset_query` is the `mbql/query` object itself (→ `mbql`). `--export-format csv|xlsx` streams the raw export (pipe to a file), bypassing the JSON envelope. `archive` is the only delete; unarchive with `update --body '{"archived":false}'`. `visualization_settings` keys are scoped by `display` and aren't pre-flighted — see `visualization`.
|
|
136
|
+
- **dashboard.** Dashcards round-trip through `PUT /api/dashboard/:id` (no per-dashcard endpoint): `update-dashcard <dash-id> <dashcard-id>` patches one safely; `update --body '{"dashcards":[…]}'` replaces the whole set (omitted ids are deleted server-side; negative ids for new cards). Every dashcard must include `card_id`, including existing rows; use `card_id:null` plus a `visualization_settings.virtual_card` block (`{display:"text"|"heading"|"link"|…}`) for non-question cards. `create` accepts the **same** `dashcards` array in its initial body, so lay out the whole dashboard in one call. `create`/`update` pre-flight every positive `card_id` and exit **2** with `{ok:false,errors:[…]}` on a bad ref (non-bypassable). `dashboard get <id>` (or `--full`) hydrates dashcards/tabs; `list` omits them. **The grid is 24 columns wide:** each dashcard's `{col, row, size_x, size_y}` is in grid units — **full-width is `size_x: 24`**. Keep `col + size_x ≤ 24`, start a full-width stack's `col` at 0, and don't overlap (the server stores collisions as sent — no auto-fix). Layout patterns and per-chart default sizes → the `dashboard` skill; load it before composing any `dashcards` array.
|
|
135
137
|
- **dashboard parameters (filters).** A dashboard's `parameters` array holds its filter widgets; they're part of the dashboard record, so read them with `dashboard get <id> --fields parameters --json` (no separate verb). **Editing replaces the _whole_ array** (like dashcards), so it's a read-modify-write loop and omitting a parameter deletes it. A parameter only filters a card once it is **mapped** onto that dashcard's `parameter_mappings` — an unmapped parameter is an inert widget. `type` is a **closed enum**; an unlisted value is a hard parse error that echoes the full allowed set back to you. `dashboard parameter-values <id> <parameter-id> [--query <substr>]` fetches a widget's selectable values (`{values, has_more_values}`; `--query` is a case-insensitive substring search). Parameter types, ids, mapping targets, and value sources → the `dashboard` skill; load it before authoring a `parameters` array.
|
|
136
138
|
- **alert / subscription are two unrelated systems.** `alert` watches one **card** and fires on a send condition (`/api/notification`: a cron string, `channel/email`-prefixed handlers, typed recipients); `subscription` delivers one **dashboard** on a schedule (`/api/pulse`: structured `schedule_type` + hour/day/frame, bare `email` channels, `{id}|{email}` recipients). The bodies are not interchangeable. Both silently deliver nowhere if the server has no SMTP / Slack app — check `mb setting get 'email-configured?'` (quote it; the `?` is a shell glob) before creating either. Their list-valued fields (`handlers`/`subscriptions`, `channels`/`cards`) **replace wholesale** on update, so adding one recipient is a read-modify-write. `mb card alerts <id>` and `mb dashboard subscriptions <id>` list what's already attached to a card/dashboard; `archive` deactivates rather than deletes. Load the `notification` skill before authoring either body.
|
|
137
139
|
- **snippet `--archived` is a swap, not a union** — list returns _either_ active _or_ archived rows, never both. (Same for `--filter archived` on dashboard/collection.)
|
|
@@ -140,11 +142,18 @@ Routine verb shapes (list / get / create / update), every flag, and output schem
|
|
|
140
142
|
- **collection `<ref>`** accepts four forms only — positive int, `root`, `trash`, or a 21-char entity_id; anything else is a client-side `ConfigError`. `collection items` pages the server endpoint, pulling only as far as the output cap can show — read `has_more`/`next_offset` to continue. `collection tree` is **JSON-only** (`--format text` is rejected). A transform collection needs `collection create --namespace transforms`.
|
|
141
143
|
- **setting set** parses the value as **strict JSON**: a string is `'"value"'` (inner quotes), booleans `true`/`false`, numbers bare. Wrong quoting silently errors — confirm with `setting get <key>` after. `setting get --json` works on every value type (wrapping bare-text responses into `{key, value}`).
|
|
142
144
|
- **search vs. list.** For plain enumeration of cards/dashboards/collections use the dedicated `… list` verbs; reach for `search --models <kind>` only for ranking against a query string or a cross-resource lookup.
|
|
145
|
+
<!-- requires: transforms -->
|
|
143
146
|
- **transform.** Iterate with `transform update <id>`, never `delete` + `create` (keeps the row, `entity_id`, materialized table, and YAML filename — avoids `_2` suffixes and noisy git history). `transform run` needs `--wait` (or `--sync`, which also waits for the output table to register and returns `target_table_id`) or you get only `{run_id, final:null}`. (→ `transform`.)
|
|
147
|
+
<!-- /requires -->
|
|
148
|
+
<!-- requires: transformTests -->
|
|
149
|
+
- **transform-test.** `transform-test run <id>` checks a transform against fixtures in temp tables — no real table is read — and exits non-zero unless it passes. (→ `transform`.)
|
|
150
|
+
<!-- /requires -->
|
|
144
151
|
- **setup is one-shot.** `mb setup` walks `/api/setup` for a **fresh** instance only — errors against an already-configured one. Mostly for bootstrapping local / e2e instances.
|
|
145
152
|
- **eid** translates a string entity id → numeric id: `mb eid --model <model> <eid1,eid2> --json`. Entity ids are NanoIDs that can start with `-`, which the positional form misreads as a flag (shell quotes don't help) — for those, use `--body '{"entity_ids":{"card":["-…"]}}'` (the id is a JSON string value, immune to flag parsing).
|
|
146
|
-
|
|
147
|
-
- **
|
|
153
|
+
<!-- requires: library -->
|
|
154
|
+
- **library.** The Library is a curated subtree (`library-data` "Data" + `library-metrics` "Metrics" under a `library` root): tables published to **Data** appear first in data pickers and rank up in search; metrics saved to **Metrics** are prioritized in nav, search, and the query builder. `library get` shows the Library and its Data/Metrics collection ids; `library create` provisions it (idempotent). `library publish --table-ids/--db-ids/--schemas` publishes tables into Data — it **resolves the Data collection itself and creates the Library if absent**; each `--schemas` entry is `<db-id>:<schema>` (e.g. `1:public`), not a bare name. `publish` cascades to upstream FK dependencies, `unpublish` to downstream dependents; both need **admin or data-analyst** (Curate alone won't publish) and exit **403** without write **and** query permission on every affected table. Publish status shows on the table: `table get`/`table list` carry `is_published` (`collection_id` under `--full`). Publishing does not put the Data collection in the git-sync scope: on a remote-sync instance, `mb git-sync add-collection <data-collection-id>` is what makes exports carry the published tables' metadata (see the `git-sync` skill).
|
|
155
|
+
<!-- /requires -->
|
|
156
|
+
- **query / uuid.** `mb query` runs MBQL (`--dry-run` → run; `mbql`). `mb uuid --count <n>` mints an aggregation's `lib/uuid` (`mbql`) and document node `_id`s (`document`).
|
|
148
157
|
|
|
149
158
|
## Specialized skills (load on demand)
|
|
150
159
|
|
|
@@ -156,12 +165,19 @@ This file is enough for any single-command task. For anything deeper, load the r
|
|
|
156
165
|
- **`dashboard`** — building interactive dashboards: wiring filters (parameters + mappings), linked/cascading filters, cross-filtering, click behavior, series, and tabs. Load beyond a plain card-layout task.
|
|
157
166
|
- **`metadata`** — setting field/table metadata: semantic types, foreign-key targets, dropdown/scan behavior, and column visibility, and the downstream features each unlocks. Load when editing what a column _means_, not its data.
|
|
158
167
|
- **`notification`** — scheduled delivery: question alerts (`mb alert`) and dashboard subscriptions (`mb subscription`). Choosing between them, the two schedule/recipient contracts, channel prerequisites, testing a send.
|
|
168
|
+
<!-- requires: transforms -->
|
|
159
169
|
- **`transform`** — transform body JSON, create + run-with-wait, run inspection, tags, jobs.
|
|
170
|
+
<!-- /requires -->
|
|
171
|
+
<!-- requires: transformTests -->
|
|
172
|
+
- **`transform-test-plan`** — deciding _what_ to test in a transform: the fixture cast, the expectations, the coverage matrix. (`transform` has the `mb transform-test` shapes.)
|
|
173
|
+
<!-- /requires -->
|
|
160
174
|
- **`document`** — Metabase documents (TipTap body, embedding cards).
|
|
175
|
+
<!-- requires: remoteSync -->
|
|
161
176
|
- **`git-sync`** — round-tripping content to/from a git remote.
|
|
177
|
+
<!-- /requires -->
|
|
162
178
|
- **`data-workflow`** — the guided, end-to-end data workflow: investigate raw data, build clean analysis-ready tables, define reusable segments/measures/metrics, answer questions, build dashboards. **Start here when the user states a goal rather than a single verb** — "make sense of my data", "build a data model", "go from raw data to a dashboard", "be my data analyst", "set up analytics for X". It detects where the data is and routes to the right stage.
|
|
163
179
|
|
|
164
|
-
If a task spans more than one, load each. `mb skills list` enumerates
|
|
180
|
+
If a task spans more than one, load each. `mb skills list` enumerates the skills the profile's server can use, and `mb skills get` prints a skill with the sections that server cannot use left out; `--unfiltered` shows everything.
|
|
165
181
|
|
|
166
182
|
## Don't
|
|
167
183
|
|
|
@@ -47,7 +47,7 @@ A dashboard filter is one entry in the dashboard's `parameters` array **plus** a
|
|
|
47
47
|
"target": ["dimension", ["field", 1779, null]] }
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
**`id` is a slug-like string you pick** (e.g. `order_status`), unique within the dashboard — Metabase stores any non-blank string verbatim, so reuse the `slug` rather than guessing an opaque value.
|
|
50
|
+
**`id` is a slug-like string you pick** (e.g. `order_status`), unique within the dashboard — Metabase stores any non-blank string verbatim, so reuse the `slug` rather than guessing an opaque value.
|
|
51
51
|
|
|
52
52
|
**`type` is a closed enum** — an unlisted value is a hard parse error that echoes the allowed set back: string ops `string/=` `string/!=` `string/contains` `string/does-not-contain` `string/starts-with` `string/ends-with`; number ops `number/=` `number/!=` `number/between` `number/>=` `number/<=`; date `date/single` `date/range` `date/relative` `date/month-year` `date/quarter-year` `date/all-options`; location `location/city` `location/state` `location/zip_code` `location/country`; plus `category`, `id`, `boolean/=`, `temporal-unit`, and bare `number`/`text`/`date`/`boolean`.
|
|
53
53
|
|
|
@@ -131,7 +131,7 @@ Then make the links real, not just implied:
|
|
|
131
131
|
- **Wire foreign keys between your tables.** Mark each linking id as a foreign key pointing at the id it references — set the column's type to foreign-key and its target so Metabase itself knows the tables connect and can traverse them.
|
|
132
132
|
- **Graft onto existing clean data** the user approved (step 3 / Phase 1): point the linking id at the existing table's id the same way. Link, don't duplicate.
|
|
133
133
|
|
|
134
|
-
**Set the metadata — a transform's output starts blank, and these tables are
|
|
134
|
+
**Set the metadata — a transform's output starts blank, and these tables are the ones people will start from.** A fresh transform table has no descriptions, raw column names, and untyped columns. You worked it out while investigating; don't leave that knowledge stranded in this chat. Set it on the table so the data explains itself inside Metabase (search, the Question editor, Metabot) and is fit to publish. The mechanics — `mb field update` for semantic types / FK targets / display names, `mb table update` for table descriptions, and the feature each edit unlocks — are in the `metadata` skill; the calls about _what_ to set:
|
|
135
135
|
|
|
136
136
|
- **Semantic types — the highest-value piece.** A column's semantic type is what makes Metabase treat it right: `type/Email`, `type/Currency`/`type/Price`, `type/Category` (turns into a filter dropdown), `type/City`/`type/State`/`type/Country`, `type/CreationTimestamp`, `type/Description`. Set it on every column whose meaning you decoded. A typed column shows money as money, offers a filter dropdown, and lands on the right chart axis for everyone downstream; an untyped one is a guess.
|
|
137
137
|
- **Descriptions.** A one-line description on each table and every non-obvious column.
|
|
@@ -165,7 +165,11 @@ Then report plainly:
|
|
|
165
165
|
|
|
166
166
|
End on that connection map: it's what the user reads to trust the result, and what lets whatever they build next join on the right ids instead of guessing.
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
<!-- requires: library -->
|
|
169
|
+
|
|
170
|
+
These clean tables are exactly what belongs in the **Library** — published tables appear first when anyone picks a data source, so people start from your curated set, not the raw source. If the user wants that, publish the polished tables to the Library (`mb library publish` / `mb library create` mechanics and permissions are in `core`). Defining reusable segments / measures / metrics on top is the **reusable-definitions** stage (`references/reusable-definitions.md` in this skill).
|
|
171
|
+
|
|
172
|
+
<!-- /requires -->
|
|
169
173
|
|
|
170
174
|
---
|
|
171
175
|
|
|
@@ -50,7 +50,9 @@ Two things never bend in any mode: when genuinely unsure, **ask** (the Shared Co
|
|
|
50
50
|
- "Let me add up revenue the same way everywhere, on this table" → a **measure** on the table.
|
|
51
51
|
- "Revenue is an _official company number_ people pull onto dashboards" → a **metric** in a collection, with a default month-by-month view so it charts cleanly. Lean: make it a metric when it's a headline figure the org reuses across many questions/dashboards; keep it a measure when it's a table-local convenience.
|
|
52
52
|
- **Where the metric lives.** Metrics sit in a collection (folder). Lean: put the org's blessed ones in the shared **Library** so they surface prominently; keep experimental ones in a working collection until trusted.
|
|
53
|
-
|
|
53
|
+
<!-- requires: library -->
|
|
54
|
+
- **Publish the official tables to the Library.** The clean, analysis-ready tables your definitions sit on are the org's official starting points — the **Library** is how you mark them as such. Tables published to the Library's **Data** section appear _first_ when anyone picks a data source, nudging people toward your curated tables instead of raw warehouse ones. Lean: publish the wide clean tables you built the semantic layer on; hold back raw or half-built ones. Surface which tables you'd publish and confirm. (Only admins and data analysts can publish — mechanics in `core`.)
|
|
55
|
+
<!-- /requires -->
|
|
54
56
|
- **Default time dimension for a metric.** A monthly default makes it chart nicely on a dashboard, but doesn't lock anyone out of other groupings. Lean: set a sensible default (usually month) for anything headline; leave it off for raw counts that aren't inherently time-series.
|
|
55
57
|
- **How strict a segment is.** "Active" = last 30 vs 90 days is a real business call with no right answer from the data alone. Lean: surface the few reasonable thresholds with how many rows each catches, let the user pick.
|
|
56
58
|
|
|
@@ -101,7 +103,9 @@ Build each agreed definition. The verb mechanics (create/update flags, the `revi
|
|
|
101
103
|
- **Segment** → `mb segment create`. A flat MBQL filter clause on a table.
|
|
102
104
|
- **Measure** → `mb measure create`. **Exactly one** aggregation on a table.
|
|
103
105
|
- **Metric** → `mb card create` with the metric shape (`type: "metric"`) — it lives in a **collection**, carries the aggregation plus an optional default time dimension. Put org-blessed ones in the Library collection.
|
|
106
|
+
<!-- requires: library -->
|
|
104
107
|
- **Publish the official tables** → `mb library create` then `mb library publish` (mechanics in `core`) to move the clean tables your definitions sit on into the Library's **Data** section, so people start from your curated set, not raw warehouse tables.
|
|
108
|
+
<!-- /requires -->
|
|
105
109
|
|
|
106
110
|
Then **verify what the user can't see**, before you hand back:
|
|
107
111
|
|
|
@@ -122,10 +126,14 @@ Then **stop. Hard gate — every mode, no exceptions.** Recap in plain language
|
|
|
122
126
|
>
|
|
123
127
|
> **Metric** (in your **Library**, charts by month):
|
|
124
128
|
> • **Monthly recurring revenue**
|
|
125
|
-
|
|
129
|
+
|
|
130
|
+
<!-- requires: library -->
|
|
131
|
+
|
|
126
132
|
> **Published to the Library** (these now show up first when anyone picks a data source):
|
|
127
133
|
> • **Customers**, **Orders**
|
|
128
|
-
|
|
134
|
+
|
|
135
|
+
<!-- /requires -->
|
|
136
|
+
|
|
129
137
|
> Open any of those tables' Filter or Summarize block in Metabase to see them in place and try one — give it a look before you start building dashboards on top.
|
|
130
138
|
|
|
131
139
|
End on that plain-language map. It's what the user reads to trust the result — and it's what stops a wrong definition from quietly propagating into everything built next.
|
|
@@ -81,7 +81,10 @@ Every node is `{ "type": string, "attrs"?: object, "content"?: [nodes], "text"?:
|
|
|
81
81
|
- **`resizeNode`** — wraps a single `cardEmbed` or `flexContainer` to make it resizable (no `_id`). `attrs: { "height": <px>, "minHeight": <px> }`, `content` is exactly one `cardEmbed`/`flexContainer`.
|
|
82
82
|
- **`flexContainer`** — a horizontal row of 1–3 `cardEmbed` / `supportingText` cells side by side (no `_id`). `attrs.columnWidths` is an array of width percentages.
|
|
83
83
|
- **`supportingText`** — a text column that sits next to a card inside a `flexContainer` (id-bearing); `content` is the usual block nodes (`paragraph`, `heading`, lists, …).
|
|
84
|
-
- **`smartLink`** — an inline reference to a Metabase entity (renders as a live chip). Inline, atomic, no `_id`. `attrs: { "entityId": <id>, "model": <model>, "label": <string|null>, "href": <relative-path> }`. `model` ∈ `card`, `dataset`, `metric`, `dashboard`, `collection`, `table`, `database`, `document`, `transform`, `segment`, `user`, `action`, `indexed-entity
|
|
84
|
+
- **`smartLink`** — an inline reference to a Metabase entity (renders as a live chip). Inline, atomic, no `_id`. `attrs: { "entityId": <id>, "model": <model>, "label": <string|null>, "href": <relative-path> }`. `model` ∈ `card`, `dataset`, `metric`, `dashboard`, `collection`, `table`, `database`, `document`, `transform`, `segment`, `user`, `action`, `indexed-entity`.
|
|
85
|
+
<!-- requires: smartLinkMeasureModel -->
|
|
86
|
+
- `measure` is a valid `model` too.
|
|
87
|
+
<!-- /requires -->
|
|
85
88
|
- **`metabot`** — an inline Metabot prompt block.
|
|
86
89
|
|
|
87
90
|
## Embedding an existing card
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: git-sync
|
|
3
3
|
description: Round-trip Metabase content (cards, dashboards, transforms, snippets, collections, Library-published table/field metadata) between an instance and a git remote via `mb git-sync …` — status, dirty / has-remote-changes checks, import, export (with branch guard), branches, stash, add/remove a collection from sync. Load when the user wants to "import the latest changes", "export to git", "push my changes to the repo", "open a PR with my Metabase changes", "git sync", "dirty check", "stash before pulling", "add a collection to sync", or anything `mb git-sync …`.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
|
|
5
|
+
requires: [remoteSync]
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# git-sync (representations ↔ instance)
|
|
@@ -130,6 +131,8 @@ mb setting set remote-sync-type '"read-write"' --profile <n>
|
|
|
130
131
|
|
|
131
132
|
**Verifying the result.** `mb git-sync status --profile <n> --json` lists the flagged collections under `synced_collections`, and `mb collection get <id> --json` shows the per-collection `is_remote_synced` flag.
|
|
132
133
|
|
|
134
|
+
<!-- requires: library -->
|
|
135
|
+
|
|
133
136
|
## Published table metadata (Library) and sync scope
|
|
134
137
|
|
|
135
138
|
Table and field metadata — table/field descriptions, semantic types (`type/PK`, `type/FK`), FK targets, plus segments and measures on the table — serializes for **Library-published tables only**, under `databases/<db>/schemas/<schema>/tables/<table>/…` in the repo. Eligibility is two-gated: the table must be published (`mb library publish`), **and** the Library collection holding it must itself carry `is_remote_synced: true`. An ordinary warehouse table, or a transform's target table that isn't published, never serializes — a transform's YAML carries only the transform definition (query, target, description), not the output table's field metadata.
|
|
@@ -144,6 +147,8 @@ mb git-sync stash --new-branch <branch> -m "..." --profile <n> # or create-b
|
|
|
144
147
|
|
|
145
148
|
Flagging the collection records it for the next export, which serializes its current content — including already-published tables and their field metadata. `mb library publish` prints a reminder when the target collection is outside the sync scope on an instance with a configured remote.
|
|
146
149
|
|
|
150
|
+
<!-- /requires -->
|
|
151
|
+
|
|
147
152
|
## Don't (git-sync-specific)
|
|
148
153
|
|
|
149
154
|
- Don't turn instance-side changes into hand-written repo files. When the changes were made against the instance, export them (`stash` / `create-branch` + `export`) and PR the exported branch; reconstructing them as YAML by hand — or pushing files in paths/formats the serializer doesn't own — produces content that never applies on import, and pushing behind Metabase's back races its own sync tasks. Hand-editing YAML belongs to the repo-first workflow, in the serialized layout the repo already uses.
|