@metabase/cli 0.3.1-alpha.transform-tests.3fbcf8b → 0.3.1-alpha.transform-tests.d9ed765
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-C-XJPp3F.mjs → add-collection-v_uw_8VC.mjs} +6 -9
- package/dist/{alert-Klz8Bhst.mjs → alert-2MDhiuxT.mjs} +7 -7
- package/dist/{alerts-Bp2vByJf.mjs → alerts-BDoIryWj.mjs} +7 -7
- package/dist/{append-D16_s1HW.mjs → append-CeHVEN3m.mjs} +5 -5
- package/dist/{archive-RzzXt2V0.mjs → archive-B9DiDia8.mjs} +6 -6
- package/dist/{archive-nDvHMzTv.mjs → archive-BMQBzQMw.mjs} +4 -4
- package/dist/{archive-C9iNjXcI.mjs → archive-BU3VZ1An.mjs} +5 -5
- package/dist/{archive-CA-HIfQq.mjs → archive-BopUoNoz.mjs} +4 -4
- package/dist/{archive-BOJUGwyL.mjs → archive-BuHy5_kr.mjs} +4 -4
- package/dist/{archive-Q_qUuYh8.mjs → archive-CVTpSQ0H.mjs} +6 -6
- package/dist/{archive-Dd7ZTibw.mjs → archive-CYaJZhBs.mjs} +4 -4
- package/dist/{archive-vzu8ghZZ.mjs → archive-CxzoUCE_.mjs} +6 -6
- package/dist/{archive-D4nGMs8A.mjs → archive-D5QNFMmn.mjs} +4 -4
- package/dist/{archive-Bj4MjbJY.mjs → archive-IBEbIm_S2.mjs} +6 -6
- package/dist/{archive-lDnTIypd.mjs → archive-M2_D7zAj.mjs} +6 -6
- package/dist/{auth-kyPQfiND.mjs → auth-DuGPC1Q0.mjs} +5 -5
- package/dist/{body-DxRSAMNC.mjs → body-hAwPMqBg.mjs} +3 -3
- package/dist/{branches-QixvzIpl.mjs → branches-CIP60haa.mjs} +4 -7
- package/dist/{cancel-CPStS4zJ.mjs → cancel-C9hrQ1yg.mjs} +4 -4
- package/dist/{cancel-task--cuSISnl.mjs → cancel-task-BeviniVd.mjs} +5 -8
- package/dist/{card-zyUkr2nS.mjs → card-CEkp1mcI.mjs} +1 -1
- package/dist/card-DqPrL79i.mjs +24 -0
- package/dist/{card-DZxRmver.mjs → card-voh1k4hl.mjs} +14 -11
- package/dist/{cards-CNbV8aGO.mjs → cards-CvWT-tKQ.mjs} +7 -7
- package/dist/cli.mjs +567 -70
- package/dist/client-yPhazV6T.mjs +4093 -0
- package/dist/collection-BsXk1V41.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-C5SNf6Yw.mjs} +2 -2
- package/dist/{content-translation-CxTabpLF.mjs → content-translation-BNYQ8fJ3.mjs} +3 -3
- package/dist/{create-CEP4Jsrd.mjs → create-BVd4Y4py2.mjs} +6 -6
- package/dist/{create-ku05K1Oj.mjs → create-BZyLtvg5.mjs} +6 -6
- package/dist/{create-UxWtLwXT.mjs → create-BsiUuwSb.mjs} +5 -5
- package/dist/{create-WIIp7MVV.mjs → create-C1fVgFBd.mjs} +4 -4
- package/dist/{create-M8qXs24L.mjs → create-C4U9DGDG.mjs} +7 -7
- package/dist/{create-BTvSwLws.mjs → create-CHn7P-Bz.mjs} +5 -5
- package/dist/{create-BikaTHCw.mjs → create-CL4xkZ4j.mjs} +6 -6
- package/dist/{create-CYhsYOOJ.mjs → create-CcOTodqT.mjs} +4 -4
- package/dist/{create-BGV7ejai.mjs → create-Cmgq35ZB.mjs} +4 -4
- package/dist/{create-U15wd8_9.mjs → create-DPb3b69Y.mjs} +4 -4
- package/dist/{create-DMLjSEkF.mjs → create-DRyA-nuP.mjs} +5 -5
- package/dist/{create-CtDaASGO.mjs → create-DTfaHMNw.mjs} +6 -6
- package/dist/{create-BGy4L_yh.mjs → create-Db3QVXRi.mjs} +7 -7
- package/dist/{create-BsvpUxJq.mjs → create-DqKDw2zq.mjs} +5 -8
- package/dist/{create-CsABLrSI.mjs → create-S0jXAtl2.mjs} +11 -7
- package/dist/{create-BMokmmLp2.mjs → create-Z_gzD_p-2.mjs} +8 -8
- package/dist/{create-branch-Bkq9rtf7.mjs → create-branch-hYwnfY8X.mjs} +5 -9
- package/dist/{csv-GincCch9.mjs → csv-DOEqRG95.mjs} +5 -5
- package/dist/{current-task-CbnNWQ7H.mjs → current-task-DVo5aDfA.mjs} +5 -8
- package/dist/{dashboard-CKUR8ZpQ.mjs → dashboard-D0hwTC-f.mjs} +11 -2
- package/dist/{dashboard-ReNaou5J.mjs → dashboard-D8Yjjwfr.mjs} +10 -10
- 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-2hSYsqHk.mjs → db-ntq1NYVT.mjs} +7 -7
- package/dist/{delete-Bv3_SIqh.mjs → delete-BQWk6Ogb.mjs} +5 -5
- package/dist/{delete-CZqleA9Q.mjs → delete-C2iVm203.mjs} +5 -5
- package/dist/{delete-C1YmyeVy.mjs → delete-CPzdQGKf.mjs} +5 -5
- package/dist/{delete-DNsY94Ok.mjs → delete-CW8xJwDm.mjs} +5 -5
- package/dist/{delete-BEPw7WRT.mjs → delete-CZqaDxkf.mjs} +5 -5
- package/dist/{delete-B2wmUpj_.mjs → delete-Qsf-OKkl.mjs} +5 -5
- package/dist/{delete-runtime-D74s6vhu.mjs → delete-runtime-BKEzJn22.mjs} +1 -2
- package/dist/{delete-table-DySwoEaq.mjs → delete-table-DLufNvzW.mjs} +5 -5
- package/dist/{dependencies-ygT6uMu4.mjs → dependencies-BGtd-eIR.mjs} +7 -7
- package/dist/{dirty-BkiHZ8gb.mjs → dirty-BiiJ5Ngh.mjs} +6 -9
- package/dist/{document-Cd2mmqCp.mjs → document-BHpLJbKU.mjs} +5 -0
- package/dist/document-BiS-U56S.mjs +19 -0
- package/dist/{document-D6OybtP2.mjs → document-CA0Q6lqu.mjs} +1 -1
- package/dist/{download-Chr-YNTG.mjs → download-DrcL0yRr.mjs} +3 -6
- package/dist/{eid-BvY-YGpN.mjs → eid-Bn3Impnq.mjs} +4 -5
- package/dist/{events-B01P0G7C.mjs → events-CfnrXbim.mjs} +5 -5
- package/dist/{export-CG23iezf.mjs → export-CFK8cMvK.mjs} +7 -10
- package/dist/{field-Cr2DPUG9.mjs → field-CcN4oZy6.mjs} +16 -1
- package/dist/{field-DikmNcAt.mjs → field-CeP-41qf.mjs} +5 -5
- package/dist/{field-BPsNa-TO.mjs → field-fDtIrY6D.mjs} +1 -1
- package/dist/{fields-C9BF3jHL.mjs → fields-B3tJI4X2.mjs} +7 -7
- package/dist/{get-B3jvGI0b.mjs → get-3ymehUjQ.mjs} +6 -6
- package/dist/{get-gFM8-HHP.mjs → get-B9fPTBEQ.mjs} +5 -8
- package/dist/{get-PKhv8WUf.mjs → get-BFh5ctuV.mjs} +6 -6
- package/dist/{get-N5EUCDL0.mjs → get-BMZ3UoJz.mjs} +6 -6
- package/dist/{get-DZpRq_Fw.mjs → get-Be9oShms.mjs} +4 -4
- package/dist/{get-DvqYIBp5.mjs → get-BkTiIo_7.mjs} +4 -4
- package/dist/{get-Blbcl76m.mjs → get-C-E-I10i.mjs} +6 -6
- package/dist/{get-FJofgEPB.mjs → get-CIlXE4zy.mjs} +6 -6
- package/dist/{get-UW0DOjH5.mjs → get-Cqfb4zZM.mjs} +4 -4
- package/dist/{get-BtauixMx.mjs → get-Cxvi9pSj.mjs} +6 -6
- package/dist/{get-Buxkx-RX.mjs → get-D2Bt3r3M.mjs} +4 -4
- package/dist/{get-DdSB-fpR.mjs → get-DJDV3NMU.mjs} +5 -5
- package/dist/{get-DY-e5oP7.mjs → get-D_f0INnl.mjs} +6 -6
- package/dist/{get-BHpVRSbm.mjs → get-Diozf-D0.mjs} +6 -6
- package/dist/{get-C1V7vZse.mjs → get-Dl9WoeCd.mjs} +4 -4
- package/dist/{get-C99cjjD0.mjs → get-DlPhNHPX.mjs} +6 -6
- package/dist/{get-BYSFFlsd.mjs → get-DnVGJfW42.mjs} +6 -6
- package/dist/get-Dx4k6_Qt.mjs +93 -0
- package/dist/{get-CkMLxzVy.mjs → get-lRUl1Dnb.mjs} +4 -4
- package/dist/{get-CMMXBVff.mjs → get-pGqPQ0Of.mjs} +6 -6
- package/dist/{get-run-F7ARJeAD.mjs → get-run-DmtNpSbG.mjs} +6 -6
- 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/git-sync-jvNlPu2I.mjs +28 -0
- package/dist/{group-DBM87IgC.mjs → group-YQQ5GIcP.mjs} +2 -2
- package/dist/{has-remote-changes-Bwyp8mc-.mjs → has-remote-changes-BS6jOb2-.mjs} +5 -8
- package/dist/{import-CPY8aM8d.mjs → import-Cur2I6Yc.mjs} +7 -10
- package/dist/{input-DH9i67x_.mjs → input-DEvkIjGr.mjs} +1 -1
- package/dist/{is-dirty-0F_UJY7Q.mjs → is-dirty-7Jo0tglq.mjs} +3 -6
- package/dist/{items-FUop0zGR.mjs → items-BBJSvqWt.mjs} +7 -7
- package/dist/{key-BEhqIzIQ.mjs → key-PYetuQ13.mjs} +1 -1
- package/dist/library-BPIzb3K_.mjs +81 -0
- package/dist/{library-DpOtb0E0.mjs → library-CpDosMc5.mjs} +5 -5
- package/dist/{library-DfYAT2Ep.mjs → library-PGCfm0UA.mjs} +1 -1
- package/dist/{list-B-74c1BD.mjs → list--Frwwg4i.mjs} +7 -7
- package/dist/{list-BASNYNJr.mjs → list-40V_8T3H.mjs} +4 -4
- package/dist/{list-xC99-2X0.mjs → list-BAO7rPNU.mjs} +4 -4
- package/dist/{list--B2EUWJg.mjs → list-BAaBsdMk.mjs} +6 -6
- package/dist/{list-rQ-6XSua.mjs → list-BCD9lkxc.mjs} +4 -4
- package/dist/{list-BQaXU1bp.mjs → list-BuZaFlV-.mjs} +4 -4
- package/dist/{list-Beoh2AYD.mjs → list-C7kqJAc8.mjs} +4 -4
- package/dist/{list-CGkgypYz.mjs → list-CBGsfTib.mjs} +7 -7
- package/dist/{list-Uc1OxV36.mjs → list-CFJyXUsF.mjs} +14 -13
- package/dist/{list-DfbsmsHv.mjs → list-CQJoLqy0.mjs} +7 -7
- package/dist/{list-DdFViPYS.mjs → list-CVs3TyU7.mjs} +6 -6
- package/dist/{list-DMlFbccD.mjs → list-CX2668xz.mjs} +6 -6
- package/dist/{list-ba7lI44w.mjs → list-CcyZu5Jp.mjs} +6 -6
- package/dist/{list-C2qxVTu7.mjs → list-DPvJihmj.mjs} +7 -7
- package/dist/{list-BQrk4Ua4.mjs → list-D_Kv8Ezq.mjs} +7 -7
- package/dist/{list-GyP4b_tU.mjs → list-DuZlYCTl.mjs} +5 -5
- package/dist/{list-Bqm0F1Y-.mjs → list-_6JwpPXA.mjs} +6 -6
- package/dist/{list-lzIKVtE9.mjs → list-bCtszwHJ.mjs} +4 -4
- package/dist/list-rojRNBu5.mjs +60 -0
- package/dist/{login-D5jt0q9K.mjs → login-BCxYB6ii.mjs} +15 -12
- package/dist/{logout-DViy0VzV.mjs → logout-BVEYg9pV.mjs} +3 -4
- package/dist/{measure-IPlonpqU.mjs → measure-DYmGuTVW.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-CHyOCxmR.mjs → parameter-values-D4qte8qc.mjs} +5 -6
- package/dist/{parse-enum-D0Jfm_Bz.mjs → parse-enum-Dc0dMZ3P.mjs} +1 -1
- package/dist/{parse-id-CPINxy7h.mjs → parse-id-BSdAXN-r.mjs} +1 -1
- package/dist/{parse-ref-ibKVB0J4.mjs → parse-ref-DTDld_LJ.mjs} +1 -1
- package/dist/{path-bMZzUOVo.mjs → path-BNZf4ETt.mjs} +5 -5
- package/dist/{poll-75SvT7Zv.mjs → poll-CZeXepUQ.mjs} +2 -2
- package/dist/{preflight-CoF1Em99.mjs → preflight-BsT-Ik4Z.mjs} +3 -4
- package/dist/{process-DBOOrmET.mjs → process-CTrfxxaC.mjs} +1 -1
- package/dist/{publish-Cs-OUG6n.mjs → publish-3Qlrs4CC.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-CEdmSEq8.mjs → query-B8MCziCM.mjs} +9 -10
- package/dist/{query-CpD46hL6.mjs → query-DxjE4Hq2.mjs} +10 -12
- package/dist/{query-result-DBDwk8TS.mjs → query-result-E4Q-Gra6.mjs} +1 -1
- package/dist/{remove-collection-DynsqkwG.mjs → remove-collection-CNWmp8C-.mjs} +6 -9
- package/dist/{render-CI93iP0I.mjs → render-MoT089RO.mjs} +13 -2
- package/dist/{replace-C6YqqCG9.mjs → replace-DOmUXCyk.mjs} +5 -5
- package/dist/{rescan-values-C6PB02uT.mjs → rescan-values-DpU_Ex0F.mjs} +6 -6
- package/dist/{run-C7PXBBEl.mjs → run-B8Vys-6V.mjs} +5 -5
- package/dist/{run-Cb86sH_c.mjs → run-CCPUWI0V.mjs} +6 -6
- package/dist/{run-CpmWoOGp.mjs → run-cyUFpMX3.mjs} +26 -14
- package/dist/{runs-CCRszsbB.mjs → runs-92XSK8ij.mjs} +7 -7
- package/dist/{runtime-BMJv4VOi.mjs → runtime-DzVkvFHY.mjs} +946 -246
- package/dist/{schema-tables-BQdFNy1B.mjs → schema-tables-lMGk2fyi.mjs} +7 -7
- package/dist/{schemas-CNAPFh4n.mjs → schemas-C83Q8dYY.mjs} +5 -5
- package/dist/{search-DFBwUc6d.mjs → search-BAXg-EJw.mjs} +2 -1
- package/dist/{search-BKVV6YtB.mjs → search-D6qBaNsw.mjs} +6 -6
- package/dist/{segment-CDoZHSYX.mjs → segment-BFJd2-ck.mjs} +6 -6
- package/dist/{selectors-BXbjj36S.mjs → selectors-Dcp25rNo.mjs} +3 -3
- package/dist/{send-D2eXL9lt.mjs → send-Be-_KmWr.mjs} +4 -4
- package/dist/{set-sHBtSGLi.mjs → set-Bg_4elCb.mjs} +5 -5
- package/dist/{set-active-DT61WwV0.mjs → set-active-CtQiMzt7.mjs} +5 -5
- package/dist/{setting-dkfKvCxc.mjs → setting-BNEblMco.mjs} +4 -4
- package/dist/{setup-TOwWatgm.mjs → setup-DFnxwJGX.mjs} +4 -4
- package/dist/{signal-CMd0EFUa.mjs → signal-k7cm5N6h.mjs} +11 -2
- package/dist/skill-list-Ro6J0pyV.mjs +76 -0
- package/dist/skills-BdrMrbXh.mjs +351 -0
- package/dist/{skills-BcOjZldN.mjs → skills-CGYk6b2r.mjs} +3 -3
- package/dist/snippet-vMnFtNwi.mjs +19 -0
- package/dist/{stash-BgWw2lyu.mjs → stash-C9SZwusp.mjs} +7 -11
- package/dist/{status-B14FO8n7.mjs → status-D0n7AuQU.mjs} +12 -11
- package/dist/{status-J4pEIm-c.mjs → status-Dj04FCCv.mjs} +11 -9
- package/dist/{subscription-B1uuKxM7.mjs → subscription-B5Iax7Ci.mjs} +6 -6
- package/dist/{subscriptions-BHIATSN6.mjs → subscriptions-DwvHRO1v.mjs} +7 -7
- package/dist/{summary-B1V5TXaZ.mjs → summary-DaA6Twxk.mjs} +6 -6
- package/dist/{sync-schema-D1vX-rpv.mjs → sync-schema-BFWKEC3r.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-CDeO1WbH.mjs → table-DW1dG3Rl.mjs} +5 -5
- package/dist/{table-CeeTJgQb.mjs → table-DfuY0N8e.mjs} +51 -4
- package/dist/timeline-C0rqHF4p.mjs +21 -0
- package/dist/{timeline-event-oGmne082.mjs → timeline-event-D1MUnexK.mjs} +6 -6
- package/dist/{transform-DoTyyXAu.mjs → transform-CtqB1WYo.mjs} +2 -2
- package/dist/transform-D08iA4H_.mjs +28 -0
- 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-DRrK28IH.mjs → transform-job-CCguL6LP.mjs} +41 -4
- package/dist/transform-job-Me5CeV2z.mjs +22 -0
- package/dist/{transform-tag-Bpj8l5Ci.mjs → transform-tag-CbgjSy76.mjs} +5 -5
- package/dist/{transform-test-BJOPAwKl.mjs → transform-test-B-gVzODx.mjs} +1 -1
- package/dist/transform-test-BB_IFtZS.mjs +163 -0
- package/dist/transform-test-CwonhnyQ.mjs +16 -0
- package/dist/{transforms-K7Y4ON_q.mjs → transforms-Bhtk_Gil.mjs} +7 -7
- package/dist/{tree-CtFtroe4.mjs → tree-DLorrdEm.mjs} +4 -5
- package/dist/{unpublish-D7UaaIWA.mjs → unpublish-DOQhmLAx.mjs} +4 -7
- package/dist/{update-BvbPpgOL.mjs → update-BF4DWRT5.mjs} +6 -6
- package/dist/{update-dRAPKE3c.mjs → update-BeU02D8b.mjs} +6 -6
- package/dist/{update-C_wTtrtX.mjs → update-Bpb2V8Gm.mjs} +9 -9
- package/dist/{update-DUNJEk8m.mjs → update-CHNSRFKO.mjs} +7 -7
- package/dist/{update-BpuZsX9z.mjs → update-CSqPKfTk.mjs} +8 -8
- package/dist/{update-bix8NoKq.mjs → update-CTCcgeaY.mjs} +7 -7
- package/dist/{update-BlBEKrNE.mjs → update-Ch43eYU-.mjs} +5 -5
- package/dist/{update-MWaDj2VX.mjs → update-D2dis8s_.mjs} +8 -8
- package/dist/{update-YkB3xWUh.mjs → update-DEULsCgK.mjs} +6 -6
- package/dist/{update-B7veBLhx.mjs → update-DTZ07XFM.mjs} +5 -5
- package/dist/{update-CGJXd_E3.mjs → update-DWhC3xYc.mjs} +5 -5
- package/dist/{update-HqUKBeM2.mjs → update-DeA4gyTG.mjs} +5 -5
- package/dist/{update-BicO3Lio.mjs → update-Dq-KEeyS.mjs} +7 -7
- package/dist/{update-dashcard-BGqKMqQb.mjs → update-dashcard-CfDqxOlj.mjs} +7 -7
- package/dist/{update-3ksm443P.mjs → update-ezD5XTpy.mjs} +7 -7
- package/dist/{update-e4ufwrkF.mjs → update-mmeImeUo.mjs} +7 -7
- package/dist/{update-D9Nfv864.mjs → update-xjuN7bdu.mjs} +7 -7
- package/dist/{upgrade-DkQ1wk4z.mjs → upgrade-DgmbeOoJ.mjs} +6 -8
- package/dist/upload-BsPrAjN-.mjs +13 -0
- package/dist/{upload-CD555ui1.mjs → upload-Do2PBSeH.mjs} +2 -2
- package/dist/{upload-BfGc-L4t.mjs → upload-DzFBdNxM.mjs} +4 -7
- package/dist/{uuid-BLBLkWAF.mjs → uuid-DYYGRv9y.mjs} +3 -4
- package/dist/{validate-BWchyW0V.mjs → validate-EAB-1EkK.mjs} +1 -1
- package/dist/{validate-query-DaGYSmpQ.mjs → validate-query-CQG86147.mjs} +2 -3
- package/dist/{values-8CrXBkyg.mjs → values-Dk2CAR4T.mjs} +6 -6
- package/dist/{verify-nNVN-0CR.mjs → verify-8TnYrSNm.mjs} +3 -18
- package/dist/{wait-YrD7UYFF.mjs → wait-Oz6xFpyA.mjs} +7 -10
- package/dist/{wait-flags-CDtMS8FP.mjs → wait-flags-ClJx9LJ9.mjs} +2 -2
- package/dist/{window-BkvrP0gB.mjs → window-DSb1tqSe.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +29 -13
- 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 +1 -1
- package/skill-data/mbql/references/operators.md +20 -15
- package/skill-data/metadata/SKILL.md +1 -1
- package/skill-data/metadata/references/semantic-types.md +7 -1
- package/skill-data/native-sql/references/template-tags.md +6 -2
- package/skill-data/notification/SKILL.md +7 -1
- package/skill-data/transform/SKILL.md +25 -7
- 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 +259 -0
- package/skill-data/visualization/SKILL.md +11 -3
- package/skill-data/visualization/references/settings.md +6 -4
- package/skills/metabase-cli/SKILL.md +1 -1
- package/dist/card-p2r_szeS.mjs +0 -24
- package/dist/client-DynvZqa0.mjs +0 -2282
- package/dist/collection-CAM47Der.mjs +0 -20
- package/dist/document-DGbDloCb.mjs +0 -19
- package/dist/get-B4GltkXP.mjs +0 -80
- package/dist/git-sync-IW4T2sKq.mjs +0 -28
- package/dist/library-ClLgrAXy.mjs +0 -19
- package/dist/list-CvzWE6CS.mjs +0 -98
- package/dist/network-error-D6CiOEBw.mjs +0 -431
- package/dist/predicates-Bkm2IoeX.mjs +0 -170
- package/dist/skills-DTCrMcix.mjs +0 -216
- package/dist/snippet-DMdFqvNq.mjs +0 -19
- package/dist/timeline-MQFX3Fla.mjs +0 -21
- package/dist/transform-CWIqW64R.mjs +0 -28
- package/dist/transform-job-DpF2MARE.mjs +0 -22
- package/dist/transform-test-BhkpwFqD.mjs +0 -16
- package/dist/transform-test-Dhcj7u-U.mjs +0 -142
- package/dist/upload-JN6EK96c.mjs +0 -13
|
@@ -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-DzVkvFHY.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-ClJx9LJ9.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-BSdAXN-r.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,7 +6,7 @@ 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
|
|
|
@@ -16,7 +16,7 @@ document | timeline | timeline-event | transform | transform-job | transform-tag
|
|
|
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
|
-
|
|
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 -->
|
|
133
135
|
- **card.** `dataset_query` is the **flat** `mbql/query` value, not a legacy `{type:"query",query:…}` envelope (→ `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`.
|
|
134
|
-
- **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`** (`size_x: 12` is half a row, the usual cause of a card filling only half the width). 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
|
|
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`** (`size_x: 12` is half a row, the usual cause of a card filling only half the width). 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.
|
|
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,10 +142,17 @@ 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.
|
|
143
|
-
|
|
145
|
+
<!-- requires: transforms -->
|
|
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
|
-
|
|
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 — it's how you tell people (and agents) "start from these, they're trusted." `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** (no collection id to find); 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`). Good candidates are finished, analysis-ready tables — clean/combine via transforms first, then publish the polished result. 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 -->
|
|
147
156
|
- **query / uuid.** `mb query` is the ad-hoc MBQL surface (`--print-schema` → `--dry-run` → run); `mb uuid --count <n>` mints the `lib/uuid` values MBQL clauses need. Both live in `mbql`.
|
|
148
157
|
|
|
149
158
|
## Specialized skills (load on demand)
|
|
@@ -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
|
|
|
@@ -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.
|
package/skill-data/mbql/SKILL.md
CHANGED
|
@@ -122,7 +122,7 @@ No `type:"query"` wrapper, no `query:` nesting. If you wrap the query inside a l
|
|
|
122
122
|
|
|
123
123
|
## Legacy formats you may encounter
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
Queries created long ago may carry a different envelope (sometimes called MBQL 4 / "legacy MBQL"); the `mbql/query` shape above is what the server stores and returns. You won't author the legacy shapes, but you may see them in old content. Anything not `lib/type: "mbql/query"` is sent as-is and normalized server-side — you lose validation, so don't author these:
|
|
126
126
|
|
|
127
127
|
- **Legacy structured** — `{ "type": "query", "database": N, "query": { "source-table": T, … } }`
|
|
128
128
|
- **Flat native** — `{ "type": "native", "database": N, "native": { "query": "SELECT …" } }` — the server accepts it, but author the native stage instead (`native-sql`).
|
|
@@ -106,21 +106,26 @@ Units (truncation only): `millisecond`, `second`, `minute`, `hour`, `day`, `week
|
|
|
106
106
|
|
|
107
107
|
A stage's `aggregation` is a list of aggregation clauses.
|
|
108
108
|
|
|
109
|
-
| Op | Args | Notes
|
|
110
|
-
| ----------------------- | -------------------------- |
|
|
111
|
-
| `count` | none, or 1 expression | with arg: count non-NULL
|
|
112
|
-
| `sum` `avg` `min` `max` | 1 numeric/orderable |
|
|
113
|
-
| `distinct` | 1 expression | count of distinct values
|
|
114
|
-
| `cum-count` | none or 1 expression | running count
|
|
115
|
-
| `cum-sum` | 1 numeric | running sum
|
|
116
|
-
| `stddev` `var` `median` | 1 numeric |
|
|
117
|
-
| `percentile` | numeric, p (0.0–1.0) |
|
|
118
|
-
| `count-where` | 1 boolean clause |
|
|
119
|
-
| `sum-where` | numeric, boolean clause |
|
|
120
|
-
| `distinct-where` | expression, boolean clause |
|
|
121
|
-
| `share` | 1 boolean clause | proportion 0–1
|
|
122
|
-
| `metric` | metric id | reference a saved metric card
|
|
123
|
-
|
|
109
|
+
| Op | Args | Notes |
|
|
110
|
+
| ----------------------- | -------------------------- | ----------------------------- |
|
|
111
|
+
| `count` | none, or 1 expression | with arg: count non-NULL |
|
|
112
|
+
| `sum` `avg` `min` `max` | 1 numeric/orderable | |
|
|
113
|
+
| `distinct` | 1 expression | count of distinct values |
|
|
114
|
+
| `cum-count` | none or 1 expression | running count |
|
|
115
|
+
| `cum-sum` | 1 numeric | running sum |
|
|
116
|
+
| `stddev` `var` `median` | 1 numeric | |
|
|
117
|
+
| `percentile` | numeric, p (0.0–1.0) | |
|
|
118
|
+
| `count-where` | 1 boolean clause | |
|
|
119
|
+
| `sum-where` | numeric, boolean clause | |
|
|
120
|
+
| `distinct-where` | expression, boolean clause | |
|
|
121
|
+
| `share` | 1 boolean clause | proportion 0–1 |
|
|
122
|
+
| `metric` | metric id | reference a saved metric card |
|
|
123
|
+
|
|
124
|
+
<!-- requires: measures -->
|
|
125
|
+
|
|
126
|
+
`measure` takes a measure id and references a saved measure.
|
|
127
|
+
|
|
128
|
+
<!-- /requires -->
|
|
124
129
|
|
|
125
130
|
```json
|
|
126
131
|
["count", {…}]
|
|
@@ -43,7 +43,7 @@ mb field update 1711 --body '{"semantic_type":"type/FK","fk_target_field_id":168
|
|
|
43
43
|
- Queries can pull columns from the related table with no explicit join — `["field", {"source-field": 1711}, 1682]` in MBQL (see `mbql`).
|
|
44
44
|
- Dashboard **linked filters** become possible (a State filter narrowing a City filter). **Linked filters read only these table-metadata FKs** — never a join you wrote inside a saved question — which is why a linked filter that "shows values it shouldn't" almost always means the FK isn't set in metadata. (See `dashboard`.)
|
|
45
45
|
|
|
46
|
-
Removing the `type/FK` semantic type auto-clears `fk_target_field_id`. Point a FK only at a field in the **same database** —
|
|
46
|
+
Removing the `type/FK` semantic type auto-clears `fk_target_field_id`. Point a FK only at a field in the **same database** — a cross-database target is invalid and never resolves to a relationship.
|
|
47
47
|
|
|
48
48
|
## Semantic types are labels, not casts
|
|
49
49
|
|
|
@@ -71,7 +71,13 @@ Everything else on a field/table (physical `name`, `base_type`, `effective_type`
|
|
|
71
71
|
`display_name` · `description` · `caveats` · `points_of_interest` · `semantic_type` · `coercion_strategy` · `fk_target_field_id` · `visibility_type` · `has_field_values` · `settings` · `nfc_path` · `json_unfolding`
|
|
72
72
|
|
|
73
73
|
**`PUT /api/table/:id` (`mb table update`)**
|
|
74
|
-
`display_name` · `description` · `visibility_type` · `field_order` (`database` / `alphabetical` / `custom` / `smart`) · `entity_type` · `caveats` · `points_of_interest` · `show_in_getting_started` · `owner_user_id` / `owner_email` (ownership) · `data_layer` / `data_authority` / `data_source` (data-governance tiers)
|
|
74
|
+
`display_name` · `description` · `visibility_type` · `field_order` (`database` / `alphabetical` / `custom` / `smart`) · `entity_type` · `caveats` · `points_of_interest` · `show_in_getting_started` · `owner_user_id` / `owner_email` (ownership) · `data_layer` / `data_authority` / `data_source` (data-governance tiers)
|
|
75
|
+
|
|
76
|
+
<!-- requires: library -->
|
|
77
|
+
|
|
78
|
+
· `collection_id` — the Library **Data** collection a published table sits in (`mb library publish` sets it; see `core`)
|
|
79
|
+
|
|
80
|
+
<!-- /requires -->
|
|
75
81
|
|
|
76
82
|
## Coercion strategies (common)
|
|
77
83
|
|
|
@@ -86,9 +86,13 @@ SQL: `{{snippet: Active Rows}}`. Create/manage the fragment with `mb snippet` (`
|
|
|
86
86
|
|
|
87
87
|
SQL: `{{#42}}` or `{{#42-slug}}`, used where a table/subquery goes (`FROM {{#42}}`, `WITH x AS {{#42}}`). Runs with the referenced card's own defaults; no user value.
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
<!-- requires: nativeTableTemplateTag -->
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
### Source table — `table`
|
|
92
|
+
|
|
93
|
+
A niche type that references a warehouse table by id (`{type: "table", table-id: <id>}`, optional `source-filters`) where a table/subquery goes — analogous to a card reference but pointing at a raw table. Reach for a card reference (`card`) unless you specifically need a bare-table source tag.
|
|
94
|
+
|
|
95
|
+
<!-- /requires -->
|
|
92
96
|
|
|
93
97
|
### Temporal unit — `temporal-unit`
|
|
94
98
|
|
|
@@ -110,7 +110,13 @@ An alert body has exactly three parts:
|
|
|
110
110
|
|
|
111
111
|
Recipients are `{"email": "a@b.com"}` for an external address or `{"id": <user-id>}` for a Metabase user. A Slack channel is **not** a recipient — it goes in `details`: `{"channel_type": "slack", "details": {"channel": "#general"}, …}`.
|
|
112
112
|
|
|
113
|
-
**`skip_if_empty: true`** suppresses the send when the dashboard's questions return no rows — the way to build a "only tell me when something happened" dashboard report.
|
|
113
|
+
**`skip_if_empty: true`** suppresses the send when the dashboard's questions return no rows — the way to build a "only tell me when something happened" dashboard report.
|
|
114
|
+
|
|
115
|
+
<!-- requires: dashboardSubscriptionFilters -->
|
|
116
|
+
|
|
117
|
+
**`parameters`** sets filter values for this subscription only, so one dashboard can feed several audiences a different slice. Its entries are dashboard parameter values — the parameter `id`s come from `mb dashboard get <id> --fields parameters --json` (see the `dashboard` skill).
|
|
118
|
+
|
|
119
|
+
<!-- /requires -->
|
|
114
120
|
|
|
115
121
|
`mb subscription list --archived` is a **swap, not a union** — it returns archived subscriptions _instead of_ active ones, never both. `mb dashboard subscriptions <id>` is the list scoped to one dashboard. `mb subscription archive <id>` also disables every channel on it, so restoring takes two steps: `update --body '{"archived":false}'`, then re-send the `channels` array with `enabled: true`.
|
|
116
122
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: transform
|
|
3
3
|
description: Author and run Metabase transforms via `mb` — body shape (native SQL or structured MBQL), create + run-with-wait, run inspection, dependencies, cancel, the `update`-vs-recreate iteration rule, the writable-keys-only PATCH contract, transform tests (fixtures and expectations run against temp tables), plus transform tags and tag-driven transform-job schedules. Load when the user touches transforms — "create a transform", "run a transform", "fix a failing transform", "test a transform", "list transform runs", "cancel a running transform", "manage transform tags", "run a transform job", or anything `mb transform …` / `mb transform-job …` / `mb transform-tag …` / `mb transform-test …`.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
|
|
5
|
+
requires: [transforms]
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Transforms
|
|
@@ -67,7 +68,7 @@ TABLE_ID=$(mb transform run <id> --sync --profile <name> --json | jq -r '.target
|
|
|
67
68
|
mb table get "$TABLE_ID" --include fields --profile <name> --json # field ids for MBQL
|
|
68
69
|
```
|
|
69
70
|
|
|
70
|
-
On `target_table_id: null` (still syncing when the poll timed out; exit 0) re-poll `mb transform get <id> --
|
|
71
|
+
On `target_table_id: null` (still syncing when the poll timed out; exit 0) re-poll `mb transform get <id> --json` until `target_table_id` is a number.
|
|
71
72
|
|
|
72
73
|
Columns and types are inferred from the result set; change the SELECT shape and the next run fails on a column mismatch — drop the table first (`transform delete-table <id>`). A changed shape also needs a re-run with `--sync` before MBQL sees the new/renamed columns.
|
|
73
74
|
|
|
@@ -172,7 +173,9 @@ mb transform run "$ID" --wait --profile <n> --json # → succeeded
|
|
|
172
173
|
|
|
173
174
|
If you really must `create + delete` instead, do the `delete` **before** the first `git-sync export` so the failed entity never lands in git history — an export of a soft-failed state is noise that needs a follow-up cleanup commit. See `git-sync`, "Read state before mutating", for the ordering rule.
|
|
174
175
|
|
|
175
|
-
|
|
176
|
+
<!-- requires: transformTests -->
|
|
177
|
+
|
|
178
|
+
## Transform tests
|
|
176
179
|
|
|
177
180
|
A transform test replaces every table the transform reads with a fixture, runs it into a temp table, and checks that output. No real table is read or written.
|
|
178
181
|
|
|
@@ -185,10 +188,14 @@ mb transform-test delete <id> --yes --profile <n>
|
|
|
185
188
|
mb transform-test run <id> --profile <n> --json # exits non-zero unless it passes
|
|
186
189
|
```
|
|
187
190
|
|
|
188
|
-
**`inputs`** — one per table the transform reads, each naming a `table` plus either `format: "sql"` with `sql`, or `format: "rows"` with `columns` (each a `name` and a `
|
|
191
|
+
**`inputs`** — one per table the transform reads, each naming a `table` plus either `format: "sql"` with `sql`, or `format: "rows"` with `columns` (each a `name` and a `cast_type`) and `rows`.
|
|
192
|
+
|
|
193
|
+
**`cast_type` is a `CAST` target, not a column type**, and the two vocabularies differ per warehouse: MySQL casts to `SIGNED` and reports `INTEGER`; ClickHouse takes `Nullable(Int32)` for a column that is `Int64`. So a body is warehouse-specific — don't copy a `database_type` out of a run result into a `cast_type`, and don't expect one body to run everywhere.
|
|
189
194
|
|
|
190
195
|
**`expectations`** — `type: "empty"` with the `sql` that must return no rows, or `type: "equals"`, which needs the same `format` split as an input (`"rows"` with `columns`/`rows`, or `"sql"` with a query). An `equals` without a `format` is refused.
|
|
191
196
|
|
|
197
|
+
**An `empty` query may only name the transform's target table and its declared input tables.** Those are rewritten to the run's temp tables; any other table you name is left exactly as written and reads the real one — the single way a test run can touch production data.
|
|
198
|
+
|
|
192
199
|
```json
|
|
193
200
|
{
|
|
194
201
|
"transform_id": 1,
|
|
@@ -198,8 +205,8 @@ mb transform-test run <id> --profile <n> --json # exits non-zero u
|
|
|
198
205
|
"table": { "schema": "public", "name": "people" },
|
|
199
206
|
"format": "rows",
|
|
200
207
|
"columns": [
|
|
201
|
-
{ "name": "id", "
|
|
202
|
-
{ "name": "age", "
|
|
208
|
+
{ "name": "id", "cast_type": "INTEGER" },
|
|
209
|
+
{ "name": "age", "cast_type": "INTEGER" }
|
|
203
210
|
],
|
|
204
211
|
"rows": [
|
|
205
212
|
{ "id": 1, "age": 30 },
|
|
@@ -212,7 +219,7 @@ mb transform-test run <id> --profile <n> --json # exits non-zero u
|
|
|
212
219
|
"type": "equals",
|
|
213
220
|
"name": "exactly one row, id 1",
|
|
214
221
|
"format": "rows",
|
|
215
|
-
"columns": [{ "name": "id", "
|
|
222
|
+
"columns": [{ "name": "id", "cast_type": "INTEGER" }],
|
|
216
223
|
"rows": [{ "id": 1 }]
|
|
217
224
|
},
|
|
218
225
|
{
|
|
@@ -226,6 +233,8 @@ mb transform-test run <id> --profile <n> --json # exits non-zero u
|
|
|
226
233
|
|
|
227
234
|
Create and update bodies are closed — strip `id`, `entity_id`, `creator_id`, `created_at` and `updated_at` from a `get --full` body before sending it back.
|
|
228
235
|
|
|
236
|
+
<!-- /requires -->
|
|
237
|
+
|
|
229
238
|
## Drop the materialized table (keep the transform)
|
|
230
239
|
|
|
231
240
|
```bash
|
|
@@ -252,7 +261,16 @@ Key verbs (`mb transform-job --help` for the full list):
|
|
|
252
261
|
mb transform-job transforms <id> --profile <name> --json # preview which transforms this job resolves to (by tag)
|
|
253
262
|
mb transform-job run <id> --profile <name> --json # trigger a job now; runs all its tagged transforms
|
|
254
263
|
mb transform-job run <id> --force-refresh --profile <name> --json # also re-run dependencies that are already fresh
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
<!-- requires: transformJobActivation -->
|
|
267
|
+
|
|
268
|
+
```bash
|
|
255
269
|
mb transform-job set-active false --profile <name> --json # disable every job at once (true re-enables); admin only
|
|
256
270
|
```
|
|
257
271
|
|
|
258
|
-
|
|
272
|
+
<!-- /requires -->
|
|
273
|
+
|
|
274
|
+
Every job row carries `active`; it is `null` on a server that cannot switch jobs off, where every job runs on schedule.
|
|
275
|
+
|
|
276
|
+
`transform-job run` is fire-and-forget — it returns `{message, started, run_id}` immediately (both `null` when the server does not number job runs: the request was accepted and whether a run started is unsaid), with no per-job-run polling (no `--wait`). Most ad-hoc agent work is one-off `transform run`, not job authoring.
|