@metabase/cli 0.5.3 → 0.5.4

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.
Files changed (324) hide show
  1. package/dist/{add-collection-c1dfnavz.mjs → add-collection-D2x34KVO.mjs} +3 -3
  2. package/dist/{alert-BkpPdBQ_.mjs → alert-B-w0c61D.mjs} +7 -7
  3. package/dist/{alerts-TDYiIxjs.mjs → alerts-nnrpqD-U.mjs} +6 -6
  4. package/dist/api-key-CTyXuYui.mjs +13 -0
  5. package/dist/{append-CoeZRD6u.mjs → append-BPrVW4RB.mjs} +4 -4
  6. package/dist/{archive-CH1h8jz5.mjs → archive-BYo35OGC.mjs} +5 -5
  7. package/dist/{archive-9uzfWGuq.mjs → archive-BZVRJYTT.mjs} +5 -5
  8. package/dist/{archive-DY76wU2k.mjs → archive-Bw_cvk_4.mjs} +3 -3
  9. package/dist/{archive-NfFWXRx5.mjs → archive-CJFUFozc.mjs} +5 -5
  10. package/dist/{archive-DQRehboT.mjs → archive-CTZs6Hl6.mjs} +5 -5
  11. package/dist/{archive-f7wKQ7Uy.mjs → archive-Ccf6Qqrf.mjs} +3 -3
  12. package/dist/{archive-D-BJwRLc.mjs → archive-Cwetg5kK.mjs} +5 -5
  13. package/dist/{archive-3fdIvMsf.mjs → archive-DBQnauVo.mjs} +5 -5
  14. package/dist/{archive-CAJHrKwd.mjs → archive-F5hoWW7f.mjs} +5 -5
  15. package/dist/{archive-N3lp1o-k.mjs → archive-OZQaaQkK.mjs} +5 -5
  16. package/dist/{archive-DZDkfhdH.mjs → archive-p7gGwh0n.mjs} +5 -5
  17. package/dist/{archive-DxUnaV4x.mjs → archive-tmrsG41w.mjs} +3 -3
  18. package/dist/{auth-hgkvHPpH.mjs → auth-eogOlU4X.mjs} +5 -5
  19. package/dist/{branch-flag-CPTQ4wXp.mjs → branch-flag-BvIdNB5z.mjs} +1 -1
  20. package/dist/{branches-B3gHAanU.mjs → branches-CERgKqFq.mjs} +3 -3
  21. package/dist/{breaking-DuWIof4T.mjs → breaking-B8f_vl0i.mjs} +6 -6
  22. package/dist/{broken-D2ST8sTx.mjs → broken-mrkOdV4j.mjs} +8 -8
  23. package/dist/{bulk-discard-values-77khEfpj.mjs → bulk-discard-values-BQ3z6nJb.mjs} +5 -5
  24. package/dist/{bulk-edit-girwcjY6.mjs → bulk-edit-CJxoxDGQ.mjs} +7 -7
  25. package/dist/{bulk-rescan-values-Df8KK8um.mjs → bulk-rescan-values-DflzyxEj.mjs} +5 -5
  26. package/dist/{bulk-sync-schema-DEPUZ6MN.mjs → bulk-sync-schema-CBIs4yHs.mjs} +5 -5
  27. package/dist/{cancel-Oek5PJnu.mjs → cancel-CyTRWSOr.mjs} +3 -3
  28. package/dist/{cancel-task-rkqY0qLU.mjs → cancel-task-BuZsQuLp.mjs} +2 -2
  29. package/dist/{card-QR3zEu6E.mjs → card-BJRZ5D5Q.mjs} +2 -2
  30. package/dist/card-DA1W3Axw.mjs +25 -0
  31. package/dist/{card-3NmUiU5F.mjs → card-VipF12MJ.mjs} +1 -1
  32. package/dist/{cards-DWJOtZoN.mjs → cards-BEeFNiCt.mjs} +6 -6
  33. package/dist/cli.mjs +128 -294
  34. package/dist/{client-BFP2Ssqu.mjs → client-DvWllzKd.mjs} +294 -189
  35. package/dist/{collection-D5vt2IJ_.mjs → collection-Bf3lv-zo.mjs} +1 -1
  36. package/dist/collection-C98jgufi.mjs +21 -0
  37. package/dist/{collection-DNmFKALA.mjs → collection-Cz2qLX2m.mjs} +1 -1
  38. package/dist/{collection-namespace-Dl8_7xII.mjs → collection-namespace-C0JcSEwN.mjs} +2 -1
  39. package/dist/{content-translation-B3oARbgD.mjs → content-translation-1coWME1P.mjs} +3 -3
  40. package/dist/{copy-BzBp5FaY.mjs → copy-DVe4rcLK.mjs} +6 -6
  41. package/dist/{copy-flags-CTM91pxH.mjs → copy-flags-DZ5Cy-Gk.mjs} +2 -2
  42. package/dist/{copy-C7Rc4qM7.mjs → copy-hE6SaHfb.mjs} +6 -6
  43. package/dist/{create-YBDXZgyP.mjs → create-B3P62NaN.mjs} +4 -5
  44. package/dist/{create-Bc4ADRmU.mjs → create-B3kz_fHg.mjs} +4 -5
  45. package/dist/{create-DO4ic4Kx.mjs → create-BPRuU7Mv.mjs} +7 -8
  46. package/dist/{create-71_DODbc.mjs → create-BjH0i2BC.mjs} +9 -10
  47. package/dist/{create-f0bBEfDI.mjs → create-Btwnm6D2.mjs} +9 -10
  48. package/dist/{create-CfXKNnkK.mjs → create-CCb2_Kcc.mjs} +6 -7
  49. package/dist/{create-Bh3q3eHg.mjs → create-D271V9Cf.mjs} +9 -9
  50. package/dist/{create-_rOCx5b8.mjs → create-D6Xm2b2D.mjs} +4 -5
  51. package/dist/{create-BKRD11i-.mjs → create-DCoo3sI2.mjs} +4 -4
  52. package/dist/{create-vgP9K2eH2.mjs → create-DEIIUohY2.mjs} +10 -11
  53. package/dist/{create-C0gmhNnk.mjs → create-DJg0Ohj5.mjs} +9 -10
  54. package/dist/{create-DQJ9h86G.mjs → create-DR5tpMUA.mjs} +4 -5
  55. package/dist/{create-CGE1D0Ay.mjs → create-DR8g_rEL.mjs} +6 -7
  56. package/dist/{create-C-2ivjed.mjs → create-DXivfl69.mjs} +4 -5
  57. package/dist/{create-C3H9ljex.mjs → create-DdfFgF-w.mjs} +4 -5
  58. package/dist/{create-myJ8HR4B.mjs → create-DkFCjBp3.mjs} +6 -7
  59. package/dist/{create-CjGEkSFz.mjs → create-Dz4c8E33.mjs} +9 -10
  60. package/dist/{create-YIC3Q0a-.mjs → create-LpdQKxUt.mjs} +7 -7
  61. package/dist/{create-ByeGK_BE.mjs → create-XCzUuT42.mjs} +4 -5
  62. package/dist/{create-CGxxztoE.mjs → create-XVjr8IDS.mjs} +6 -7
  63. package/dist/{create-branch-DBCBMDWh.mjs → create-branch-D_nbKxDS.mjs} +3 -2
  64. package/dist/{csv-Dtgy7sTg.mjs → csv-LP7sE-CS.mjs} +4 -4
  65. package/dist/{current-task-AwQisIT9.mjs → current-task-DhgwtGN3.mjs} +3 -3
  66. package/dist/{dashboard-D5E3fMKh.mjs → dashboard-Bx2sYijR.mjs} +1 -1
  67. package/dist/dashboard-CR97_zXn.mjs +35 -0
  68. package/dist/{dashboard-Chjy5GKR.mjs → dashboard-Cwsf-e9T.mjs} +23 -6
  69. package/dist/data-action-C4jE-RLb.mjs +24 -0
  70. package/dist/{data-action-DZxVB_hD.mjs → data-action-CuvI17XF.mjs} +8 -2
  71. package/dist/{data-action-R9qxJDPA.mjs → data-action-DLj9cgpu.mjs} +1 -1
  72. package/dist/{data-app-BIAvvV2P.mjs → data-app-BlBvvRzC.mjs} +10 -10
  73. package/dist/{data-app-project-BL4xpu_m.mjs → data-app-project-DjDDWgUF.mjs} +2 -1
  74. package/dist/{database-CxykzTAA.mjs → database-C5ucihp3.mjs} +2 -2
  75. package/dist/{database-D8XzgJEz.mjs → database-u_spHEa0.mjs} +1 -1
  76. package/dist/{dataset-DIQLAp2P.mjs → dataset-LJxNN6p5.mjs} +3 -3
  77. package/dist/{db-wsSYKqCB.mjs → db-D8mPRqZc.mjs} +8 -8
  78. package/dist/{delete-BP9-YS-f.mjs → delete-8k7oYDFr.mjs} +4 -4
  79. package/dist/{delete-BegkpIGi.mjs → delete-B1SbEVIc.mjs} +4 -4
  80. package/dist/{delete-E-g5b-HU.mjs → delete-CaaPrNOf.mjs} +4 -4
  81. package/dist/{delete-wnHUWWjX.mjs → delete-CqyBkMCd.mjs} +4 -4
  82. package/dist/{delete-D9FB7qjX.mjs → delete-CuyGTe0i.mjs} +4 -4
  83. package/dist/{delete-4v4_lDwD.mjs → delete-DC-DEYSq.mjs} +4 -4
  84. package/dist/{delete-WrV9I9uw.mjs → delete-DWTqIlbr.mjs} +4 -4
  85. package/dist/{delete-BSgxmR3y.mjs → delete-DaqzPLcG.mjs} +4 -4
  86. package/dist/{delete-BHX_F8Qu.mjs → delete-DuaJ8PUI.mjs} +4 -4
  87. package/dist/{delete-DmM5L0wO.mjs → delete-ZjLpkwgx.mjs} +4 -4
  88. package/dist/{delete-runtime-CJ7gMYA1.mjs → delete-runtime-DOOy3gzH.mjs} +2 -1
  89. package/dist/{delete-table-CJq8JM5J.mjs → delete-table-CnGv1gx9.mjs} +4 -4
  90. package/dist/{dependencies-CnW3RSoZ.mjs → dependencies-D6SNdLW8.mjs} +6 -6
  91. package/dist/dependency-Bbg9x1V9.mjs +15 -0
  92. package/dist/{dependency-CaC6XuTY.mjs → dependency-C1DExO6k.mjs} +8 -5
  93. package/dist/{dependency-Dxvb2Znu.mjs → dependency-DcM96XJ-.mjs} +4 -3
  94. package/dist/{dependents-DHXqJ3lo.mjs → dependents-BizQb14Q.mjs} +9 -9
  95. package/dist/{dirty-BRPWPUYH.mjs → dirty-BHwdHOEj.mjs} +3 -3
  96. package/dist/{discard-values-DBHfVN8o.mjs → discard-values-BWlh2ce8.mjs} +5 -5
  97. package/dist/document-B6254tue.mjs +20 -0
  98. package/dist/{document-UMG6me2P.mjs → document-BHOQq2T_.mjs} +2 -2
  99. package/dist/{document-DVIu3Vj4.mjs → document-lS1XZEF3.mjs} +1 -1
  100. package/dist/{download-BFu9xYHX.mjs → download-D2wEAgi_.mjs} +2 -2
  101. package/dist/{eid-eKmbXRds.mjs → eid-KtWIPUCC.mjs} +5 -5
  102. package/dist/{entity-DjDkaMkB.mjs → entity-DICgy4Bl.mjs} +2 -2
  103. package/dist/{entry-flags-Cxn09krz.mjs → entry-flags-DLS6r8Vf.mjs} +5 -6
  104. package/dist/{events-CZL9MU64.mjs → events-B8yMqrrD.mjs} +4 -4
  105. package/dist/{execute-DBJGtHHG.mjs → execute-Bebvab7D.mjs} +7 -8
  106. package/dist/{export-xn_-NaBd.mjs → export-BNj3RvAl.mjs} +6 -5
  107. package/dist/{export-flags-CpukgETM.mjs → export-flags-iXfEILf7.mjs} +3 -2
  108. package/dist/{export-preflight-SM9zJkBp.mjs → export-preflight-F3OapAD5.mjs} +3 -3
  109. package/dist/{field-DoWQUl7V.mjs → field-C2qOViFZ.mjs} +8 -2
  110. package/dist/{field-BVz4AS3f.mjs → field-CT4r6b92.mjs} +1 -1
  111. package/dist/field-DQAcCjXr.mjs +21 -0
  112. package/dist/{fields-CB06GFBW.mjs → fields-BkAS_wIA.mjs} +6 -6
  113. package/dist/{filter-flags-DhE4olyf.mjs → filter-flags-ezqqsOQL.mjs} +4 -4
  114. package/dist/{fks-CSoS7xZ6.mjs → fks--SaqvPw1.mjs} +6 -6
  115. package/dist/{get-BYAzIaGG.mjs → get-B1S1kW2N.mjs} +5 -5
  116. package/dist/{get-CtDZOoWy.mjs → get-B1uiZyyi.mjs} +5 -5
  117. package/dist/{get-Cl-O6dFs.mjs → get-B2nBYYCw.mjs} +4 -4
  118. package/dist/{get-BZFyqZXa.mjs → get-BSKpQJVB.mjs} +5 -5
  119. package/dist/{get-Bt4C-oxh.mjs → get-BjgB5l7X.mjs} +5 -5
  120. package/dist/{get-Cc4-e-Q_.mjs → get-Boql3_0n.mjs} +5 -5
  121. package/dist/{get-B8xrmipw.mjs → get-BseHija1.mjs} +5 -5
  122. package/dist/{get-C1rCVUYw.mjs → get-C9VumVZ3.mjs} +6 -5
  123. package/dist/{get-BQ7SAJEz.mjs → get-CGPxAoow.mjs} +3 -3
  124. package/dist/{get-jbOgdCQg.mjs → get-CM9IOr82.mjs} +3 -3
  125. package/dist/{get-eZEHipwA.mjs → get-CTTKQDr7.mjs} +5 -5
  126. package/dist/{get-BSPxmP_W.mjs → get-CU1zKfBS.mjs} +5 -5
  127. package/dist/{get-DIfjxTP8.mjs → get-CWDz6eV2.mjs} +3 -3
  128. package/dist/{get-BZDUOZxI.mjs → get-C_hatP_z.mjs} +3 -3
  129. package/dist/{get-Bq_9VSTa.mjs → get-Cdcj1c9U.mjs} +3 -3
  130. package/dist/{get-CuSwArMS.mjs → get-CiLYhFjU.mjs} +5 -5
  131. package/dist/{get-BIf6eFWZ.mjs → get-De6qpuzO.mjs} +5 -5
  132. package/dist/{get--1qTpTIQ.mjs → get-VpGfaL7c.mjs} +5 -5
  133. package/dist/{get-BW3jSR3y.mjs → get-f2km9wsq.mjs} +3 -3
  134. package/dist/{get-B8xQXMU6.mjs → get-gGSl7Se4.mjs} +5 -5
  135. package/dist/{get-BfFZCiZR.mjs → get-iOs1ci6x.mjs} +5 -5
  136. package/dist/{get-run-C-CNDbv3.mjs → get-run-CHup8cMl.mjs} +5 -5
  137. package/dist/{get-DePbMmjc.mjs → get-uHs9Ve-4.mjs} +5 -5
  138. package/dist/git-sync-Czena0TW.mjs +29 -0
  139. package/dist/glossary-BVxRpD7o.mjs +14 -0
  140. package/dist/{glossary-BkGmCI4X.mjs → glossary-CQRW3Z4d.mjs} +1 -1
  141. package/dist/{glossary-QN-hHfOT.mjs → glossary-iPIWrEbP.mjs} +1 -1
  142. package/dist/{graph-CqBe2J4N.mjs → graph-B7SlzpkC.mjs} +6 -6
  143. package/dist/{group-81zoQcEP.mjs → group--6adAsqG.mjs} +2 -2
  144. package/dist/{has-remote-changes-CDe1teSb.mjs → has-remote-changes-DZq7q2Wk.mjs} +2 -2
  145. package/dist/{import-B64gjryF.mjs → import-DKZF0kMU.mjs} +6 -5
  146. package/dist/input-gate-registry-Dh8QjKgW.mjs +14 -0
  147. package/dist/{is-dirty-DhR3Xqjk.mjs → is-dirty-haRLODo1.mjs} +2 -2
  148. package/dist/{items-CLl2QgS8.mjs → items-BGWE5hLl.mjs} +7 -6
  149. package/dist/{key-BYEv4Wgq.mjs → key-DLrpCgdZ.mjs} +1 -1
  150. package/dist/{library-wUiD2jbw.mjs → library-BprxuqZl.mjs} +1 -1
  151. package/dist/{library-DKIqzyUk.mjs → library-C4g9pdiS.mjs} +8 -3
  152. package/dist/{library-C3eO2J07.mjs → library-e3aiJ1Yb.mjs} +5 -5
  153. package/dist/{list-BIqqh3A-.mjs → list-B9yhUzCc.mjs} +5 -5
  154. package/dist/{list-CFaJA317.mjs → list-BNel4hYs.mjs} +6 -6
  155. package/dist/{list-CjpZCiks.mjs → list-Bbc8VYDi.mjs} +3 -3
  156. package/dist/{list-eGlqXJno.mjs → list-BiIZdUoN.mjs} +5 -5
  157. package/dist/{list-YFwmHXGG.mjs → list-C-AnwSRP.mjs} +3 -3
  158. package/dist/{list-s9_LlXCV.mjs → list-CNiCM1NL.mjs} +3 -3
  159. package/dist/{list-DLLzMaS3.mjs → list-COPGHkWL.mjs} +5 -5
  160. package/dist/{list-DrIcKxXX.mjs → list-CsXdnNyp.mjs} +5 -5
  161. package/dist/{list-DyFu5Wx1.mjs → list-D0ASRA_6.mjs} +6 -6
  162. package/dist/{list-Cu6ET_yD.mjs → list-DAa4EWlv.mjs} +5 -5
  163. package/dist/{list-DpfOh8-5.mjs → list-DDt1iLXj.mjs} +4 -4
  164. package/dist/{list-DDPvxfhe.mjs → list-DFuydMdV.mjs} +6 -6
  165. package/dist/{list-CA939qkn.mjs → list-DFxfpa4W.mjs} +6 -6
  166. package/dist/{list-C3GBocvB.mjs → list-DJyIkrY1.mjs} +5 -5
  167. package/dist/{list-C7TFreS8.mjs → list-DUCxqhtn.mjs} +5 -5
  168. package/dist/{list-CdcFNphE.mjs → list-D_8GeDG-.mjs} +3 -3
  169. package/dist/{list-BiSwl56L.mjs → list-DcXqKZyg.mjs} +5 -5
  170. package/dist/{list-D_IT8l9B.mjs → list-DednUvr3.mjs} +3 -3
  171. package/dist/{list-DyQNRVAf.mjs → list-Dvf1iB8r.mjs} +3 -3
  172. package/dist/{list-B7Yvz5vA.mjs → list-HI7Mpoy-.mjs} +5 -5
  173. package/dist/{list-DLwby7YA.mjs → list-OUSeeuXb.mjs} +5 -5
  174. package/dist/{list-BmvitCWZ.mjs → list-P7FnSsbZ.mjs} +6 -6
  175. package/dist/{list-D4HNG282.mjs → list-gcDxZ7Th.mjs} +5 -5
  176. package/dist/{login-Bg7Z3jDy.mjs → login-APHXId1p.mjs} +6 -5
  177. package/dist/{logout-CAmp7DcS.mjs → logout-V0pxj6AM.mjs} +3 -2
  178. package/dist/{measure-CtfjqJFP.mjs → measure-BMWrX1ca.mjs} +3 -1
  179. package/dist/{measure-C31HLp1C.mjs → measure-DnGWkKyx.mjs} +6 -6
  180. package/dist/{measure-4P0bOlZ3.mjs → measure-DqZG65of.mjs} +1 -1
  181. package/dist/{notification-DaA4bBHW.mjs → notification-B5yMuPmo.mjs} +6 -1
  182. package/dist/{notification-W2SVssyY.mjs → notification-BEJaEZS2.mjs} +2 -2
  183. package/dist/{parameter-DvRQMKd2.mjs → parameter-Bucz3cLJ.mjs} +1 -1
  184. package/dist/{parameter-values-3eHpqznI.mjs → parameter-values-DfZSEK3O.mjs} +6 -5
  185. package/dist/{parse-enum-DAcTzG1q.mjs → parse-enum-CEXPuN9H.mjs} +1 -1
  186. package/dist/{parse-id-5BZGQ9Vd.mjs → parse-id-EXZan40V.mjs} +1 -1
  187. package/dist/{parse-ref-ByXc-pls.mjs → parse-ref-D28NvwpR.mjs} +1 -1
  188. package/dist/{parse-text-FgX60vIg.mjs → parse-text-C4LYzIFa.mjs} +1 -1
  189. package/dist/{path-XwdHlC23.mjs → path-Bni-pnKS.mjs} +4 -4
  190. package/dist/{poll-CgtcJopL.mjs → poll-vxN__4cz.mjs} +2 -2
  191. package/dist/predicates-0C0TsWcJ.mjs +219 -0
  192. package/dist/{preflight-ChTKhB8Y.mjs → preflight-4iy2qzsh.mjs} +3 -2
  193. package/dist/{process-aqXm5QgC.mjs → process-BQC3mK2k.mjs} +1 -1
  194. package/dist/{publish-C2-pK0cf.mjs → publish-DkYn86ak.mjs} +5 -4
  195. package/dist/{pulse-CC81N2_0.mjs → pulse-B2AmIWsO.mjs} +11 -4
  196. package/dist/{pulse-JPrq6NFP.mjs → pulse-CPSpum5U.mjs} +2 -2
  197. package/dist/{query-DkaUzmMa.mjs → query-CZbI4Rlv.mjs} +17 -29
  198. package/dist/{query-pmw23KkL.mjs → query-gHeYfWj_.mjs} +7 -6
  199. package/dist/{remapping-C3htTzJn.mjs → remapping-hcWkFQsx.mjs} +5 -5
  200. package/dist/{remove-collection-p_t9rUUX.mjs → remove-collection-Qne5ww6M.mjs} +3 -3
  201. package/dist/{render-C50k8-jc.mjs → render-d1-sCPn_.mjs} +3 -2
  202. package/dist/{replace-BQBuFJ1B.mjs → replace-DoU0IFGd.mjs} +4 -4
  203. package/dist/{requirement-check-CpiVuL0H.mjs → requirement-check-BoVSK1uK.mjs} +2 -2
  204. package/dist/{rescan-values-DOqXJ3qH.mjs → rescan-values-COzM86P5.mjs} +5 -5
  205. package/dist/{rescan-values-Ctq8wpkI.mjs → rescan-values-s82n_You.mjs} +5 -5
  206. package/dist/{run-Dn3e8G4x.mjs → run-Bwj4Uuxk.mjs} +4 -4
  207. package/dist/{run-2xgPRuKR.mjs → run-JYNbEO_V.mjs} +6 -5
  208. package/dist/{run-CtMbObQI.mjs → run-Q7fHux1F.mjs} +5 -4
  209. package/dist/{runs-CgNoQW6M.mjs → runs-GQD6FO2k.mjs} +6 -6
  210. package/dist/{runtime-Y4VFWmmr.mjs → runtime-iIsqiOwO.mjs} +51 -9
  211. package/dist/{scaffold-BuL0_ptz.mjs → scaffold-CJo9l-2p.mjs} +4 -4
  212. package/dist/schema-2JhmK8FM.mjs +283 -0
  213. package/dist/{schema-tables-BdXuo_lG.mjs → schema-tables-CarGLayY.mjs} +6 -6
  214. package/dist/{schemas-Dap3KFwY.mjs → schemas-oSjtuQ4G.mjs} +4 -4
  215. package/dist/{search-DUmFK5Sy.mjs → search-Ca0sIr28.mjs} +7 -6
  216. package/dist/{search-Dxcejw_v.mjs → search-CvGEL2h-.mjs} +6 -5
  217. package/dist/{segment-CebcXn2E.mjs → segment-BJCEJwNY.mjs} +6 -6
  218. package/dist/{segment-C_gl5ag6.mjs → segment-CWVASaM1.mjs} +1 -1
  219. package/dist/{segment-OsrbUDzw.mjs → segment-Cf-DrdjE.mjs} +3 -1
  220. package/dist/{send-DYdwcPTb.mjs → send-B4nZI6CU.mjs} +3 -3
  221. package/dist/{set-xs8Vyvy2.mjs → set-BjMZCdN8.mjs} +5 -6
  222. package/dist/{set-active-CVI_DDQi.mjs → set-active-CWDdv3kN.mjs} +4 -4
  223. package/dist/{set-bundle-DX5HqDji.mjs → set-bundle-C2uk4jdt.mjs} +4 -4
  224. package/dist/{set-data-actions-DAI1XCQ2.mjs → set-data-actions-lWl05ekf.mjs} +6 -6
  225. package/dist/{set-enabled-0QI-CHAT.mjs → set-enabled-CPhw1AX4.mjs} +4 -4
  226. package/dist/{set-sensitivity-DqGkiLSr.mjs → set-sensitivity-B7WI5BJC.mjs} +6 -6
  227. package/dist/{setting-Bmry-y_l.mjs → setting-BvPpFjJT.mjs} +4 -4
  228. package/dist/{setup-CO7QV-ao.mjs → setup-BnczkG96.mjs} +1 -1
  229. package/dist/{setup-UM8N9Vh3.mjs → setup-DPRa8Uxm.mjs} +5 -6
  230. package/dist/{signal-D8MH3LMN.mjs → signal-BNUlQjpc.mjs} +1 -1
  231. package/dist/{skill-list-D2FhhYS3.mjs → skill-list-BoJITnw8.mjs} +1 -1
  232. package/dist/{skills-BiSfuDqA.mjs → skills-BCivFuuZ.mjs} +3 -3
  233. package/dist/{skills-CcLTm3_2.mjs → skills-BY3MCR8i.mjs} +3 -2
  234. package/dist/{slug-qeARO25o.mjs → slug-COdwq63O.mjs} +1 -1
  235. package/dist/snippet-BcN1UwoS.mjs +19 -0
  236. package/dist/{stash-e5cSvnj3.mjs → stash-leoW1fby.mjs} +5 -4
  237. package/dist/{status-CH7BAWGe.mjs → status-AA4APlwZ.mjs} +3 -3
  238. package/dist/{status-BHiO3YBe.mjs → status-BezD_K-g.mjs} +4 -4
  239. package/dist/{subscription-DWleULhN.mjs → subscription-BDukZFlC.mjs} +6 -6
  240. package/dist/{subscriptions-DcCOA2p1.mjs → subscriptions-CU4E_p7B.mjs} +6 -6
  241. package/dist/{summary-CipFA6M6.mjs → summary-BFspP71W.mjs} +5 -5
  242. package/dist/{sync-schema-C45WO4db.mjs → sync-schema-BhRhsm8Y.mjs} +6 -6
  243. package/dist/{sync-schema-D7p-P8F6.mjs → sync-schema-BtjC-PNY.mjs} +5 -5
  244. package/dist/{sync-task-DNKG9Bk4.mjs → sync-task-Gf86CU9l.mjs} +1 -1
  245. package/dist/{table-BDsqRU7a.mjs → table-BNA9Or05.mjs} +3 -3
  246. package/dist/table-Dzp1uANs.mjs +26 -0
  247. package/dist/{table-CF7zW9cI.mjs → table-hgrX1i-R.mjs} +36 -5
  248. package/dist/{table-selector-flags-CHfrVpYQ.mjs → table-selector-flags-BpFFoSaT.mjs} +4 -3
  249. package/dist/{text-C2VwKF9D.mjs → text-8nOxfC17.mjs} +1 -1
  250. package/dist/timeline-Cr5d4Oer.mjs +21 -0
  251. package/dist/{timeline-event-BF1dqSnD.mjs → timeline-event-BiYDbW3r.mjs} +6 -6
  252. package/dist/{transform-DiW7bREn.mjs → transform-B62craFM.mjs} +76 -7
  253. package/dist/transform-C-0nV5Et.mjs +28 -0
  254. package/dist/{transform-CWGJB8N_.mjs → transform-DKPtUV54.mjs} +2 -2
  255. package/dist/transform-job-B9MPk7S5.mjs +22 -0
  256. package/dist/{transform-job-ClX8e5iO.mjs → transform-job-CDIb3B9o.mjs} +6 -1
  257. package/dist/{transform-job-BBZ5L46v.mjs → transform-job-D18XRLBK.mjs} +1 -1
  258. package/dist/{transform-tag-BYoguZfW.mjs → transform-tag-DQXOPhmt.mjs} +5 -5
  259. package/dist/transform-test-wmAjyaka.mjs +16 -0
  260. package/dist/{transforms-C6MFnT4C.mjs → transforms-DcXL4Dox.mjs} +6 -6
  261. package/dist/{transport-k_fabWdF.mjs → transport-DZSxmmtY.mjs} +5 -4
  262. package/dist/{tree-C4Igf6xs.mjs → tree-DrYYCdXP.mjs} +4 -3
  263. package/dist/{typed-schema-Bo0Q6C0S.mjs → typed-schema-DEzmTY3J.mjs} +4 -4
  264. package/dist/{unpublish-EStytsEm.mjs → unpublish-D8hmulCx.mjs} +3 -3
  265. package/dist/{unreferenced-DtUuyBrr.mjs → unreferenced-C3CqO3tu.mjs} +6 -6
  266. package/dist/{update-BXLY92om.mjs → update-3lRE8G9k.mjs} +10 -11
  267. package/dist/{update-DT8U29Kk.mjs → update-4TDRNrV-.mjs} +7 -8
  268. package/dist/{update-DT2ViMFr.mjs → update-4sOfpwpv.mjs} +5 -6
  269. package/dist/{update-DAG8m5f4.mjs → update-552UGPAG.mjs} +7 -8
  270. package/dist/{update-z8ZGCg1r.mjs → update-7iXRB23T2.mjs} +7 -8
  271. package/dist/{update-DkvIK-eL.mjs → update-B21GAnzT.mjs} +7 -8
  272. package/dist/{update-Bba_zPSE.mjs → update-BVz0oIwS.mjs} +10 -11
  273. package/dist/{update-B1UXRPN-.mjs → update-BxRFktpB.mjs} +8 -9
  274. package/dist/{update-BOg1jZ_s.mjs → update-CEDMvgJI.mjs} +11 -12
  275. package/dist/{update-pk0b6vXU.mjs → update-CcNYCalv.mjs} +5 -6
  276. package/dist/{update-BogvN2Mb.mjs → update-CctMr2T1.mjs} +8 -8
  277. package/dist/{update-VGgvQu7W.mjs → update-Ch6AAOeh.mjs} +5 -6
  278. package/dist/{update-CciLWH_s.mjs → update-CtuLA42g.mjs} +11 -11
  279. package/dist/{update-HbggUPuy.mjs → update-DVD77mVR.mjs} +5 -6
  280. package/dist/{update-FfeHReec.mjs → update-DmMHHn75.mjs} +10 -11
  281. package/dist/{update-CCLpNTPa.mjs → update-DvGIaZdl.mjs} +5 -6
  282. package/dist/{update-DECiEVlk.mjs → update-LlJM4tUd.mjs} +10 -11
  283. package/dist/{update-DhgfReDD.mjs → update-Zv7PP8nl.mjs} +7 -8
  284. package/dist/{update-dashcard-m-hkIGUu.mjs → update-dashcard-BijqiYQd.mjs} +7 -8
  285. package/dist/{update-B0Na11v-.mjs → update-l4WRN6Jh.mjs} +7 -8
  286. package/dist/{update-DIBaY-fy.mjs → update-sma1ZRm2.mjs} +5 -6
  287. package/dist/{upgrade-iETJ8fH2.mjs → upgrade-TzILOkiM.mjs} +5 -4
  288. package/dist/upload-B37bUVl_.mjs +13 -0
  289. package/dist/{upload-BF5pdKRN.mjs → upload-CdiDKe69.mjs} +2 -2
  290. package/dist/{upload-CoK5LnyA.mjs → upload-Do-kOGtc.mjs} +3 -3
  291. package/dist/{uuid-8Ha-8bDX.mjs → uuid-Dqq2WfAT.mjs} +3 -2
  292. package/dist/{validate-BQ7vI8_x.mjs → validate-moGYlHxB.mjs} +8 -18
  293. package/dist/validate-query-Bf5FhhMI.mjs +72 -0
  294. package/dist/{values-BsgA7-6h.mjs → values-CtY5zv0m.mjs} +5 -5
  295. package/dist/{verify-CzBZbP4W.mjs → verify-BiB8jzXB.mjs} +3 -3
  296. package/dist/{verify-cjUPMF_B.mjs → verify-DBTlWx-S.mjs} +3 -3
  297. package/dist/{verify-crIrbGZV.mjs → verify-DJ7fGyLL.mjs} +4 -3
  298. package/dist/{wait-mFUfpSaj.mjs → wait-DEYagfq4.mjs} +5 -5
  299. package/dist/{wait-flags-BnZ-dfE2.mjs → wait-flags-C3cu_O0w.mjs} +2 -2
  300. package/dist/{window-CfK_j6m1.mjs → window-D1w7B0vh.mjs} +1 -1
  301. package/package.json +1 -1
  302. package/skill-data/core/SKILL.md +14 -13
  303. package/skill-data/mbql/SKILL.md +3 -3
  304. package/skill-data/native-sql/SKILL.md +1 -1
  305. package/skill-data/native-sql/references/template-tags.md +1 -1
  306. package/dist/api-key-wGtJ8kYy.mjs +0 -13
  307. package/dist/body-M5qsJoub.mjs +0 -16
  308. package/dist/card-BWTjCE93.mjs +0 -25
  309. package/dist/collection-9_mj8rVX.mjs +0 -21
  310. package/dist/dashboard-BZV-0Qjp.mjs +0 -35
  311. package/dist/data-action-B7kRpvCH.mjs +0 -24
  312. package/dist/dependency-DDRGBlFL.mjs +0 -15
  313. package/dist/document-BeLf7NqP.mjs +0 -20
  314. package/dist/field-CQDz-6DK.mjs +0 -21
  315. package/dist/git-sync-D_T9oNC6.mjs +0 -29
  316. package/dist/glossary-BVK5DaLV.mjs +0 -14
  317. package/dist/snippet-DKARah-L.mjs +0 -19
  318. package/dist/table-BPYHnzyV.mjs +0 -26
  319. package/dist/timeline-C2m_QHxn.mjs +0 -21
  320. package/dist/transform-N_elgRuh.mjs +0 -28
  321. package/dist/transform-job-CTV6KRP2.mjs +0 -22
  322. package/dist/transform-test-jaBpHOM5.mjs +0 -16
  323. package/dist/upload-CqSGEZQW.mjs +0 -13
  324. package/dist/validate-query-YtH3d5BP.mjs +0 -38
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: core
3
- description: Foundations for driving Metabase from the terminal with the `mb` CLI — authentication and named profiles, the flag/output/`--json` conventions every command shares, JSON body input, command discovery via `--help` (add `--json` for machine-readable schemas), and the per-resource footguns (db, table, field, upload, content translation, card, dashboard, collection, segment, measure, timeline, alert, subscription, library, setting, search, eid). Load first for any `mb` task; it routes to the specialized skills for deeper work.
3
+ description: Foundations for driving Metabase from the terminal with the `mb` CLI — authentication and named profiles, the flag/output/`--json` conventions every command shares, JSON body input, command discovery via `--help` and `mb schema`, and the per-resource footguns (db, table, field, upload, content translation, card, dashboard, collection, segment, measure, timeline, alert, subscription, library, setting, search, eid). Load first for any `mb` task; it routes to the specialized skills for deeper work.
4
4
  allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
5
5
  ---
6
6
 
@@ -13,10 +13,10 @@ Top-level command groups (run `mb <group> --help` to discover verbs):
13
13
  ```
14
14
  auth | db | table | field | upload | content-translation | query | card | dashboard | snippet | segment | measure | collection | library
15
15
  document | glossary | timeline | timeline-event | transform | transform-job | transform-tag | transform-test | alert | subscription | setting
16
- search | dependency | git-sync | data-action | data-app | setup | eid | uuid | upgrade | skills
16
+ search | dependency | git-sync | data-action | data-app | setup | eid | uuid | upgrade | skills | schema
17
17
  ```
18
18
 
19
- The conventions below — auth, flags, output, body input — hold across **every** group. Per-command flags and examples live in each command's `--help`; add `--json` for the machine-readable form with the output JSON Schema. A few flows have their own skills (see "Specialized skills"). 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.
19
+ The conventions below — auth, flags, output, body input — hold across **every** group. A few flows have their own skills (see "Specialized skills"). When a card needs a query, prefer MBQL over native SQL (portable, pre-flight-validated — load `mbql`); fall back to SQL when MBQL can't express it.
20
20
 
21
21
  ## Auth & profiles
22
22
 
@@ -28,13 +28,13 @@ 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`). Use it before asking which profile to pick.
31
+ `auth list` returns every profile in one call, with sanitized URL, an `authenticated` flag, and a probe `status` (`ok` / `auth-failed` / `network-error` / `server-error` / `not-probed`). Use it before asking which profile to pick.
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`.
35
35
  - Empty `data: []` → ask the user to run `mb auth login` themselves and tell you the profile name.
36
36
 
37
- Once a name is established, pass `--profile <name>` to **every** subsequent command. Profile names are arbitrary local labels (`prod`, `staging`).
37
+ Profile names are arbitrary local labels (`prod`, `staging`).
38
38
 
39
39
  ## Flag conventions
40
40
 
@@ -46,7 +46,7 @@ Once a name is established, pass `--profile <name>` to **every** subsequent comm
46
46
  ❌ mb table --profile prod list # → unknown command: prod
47
47
  ```
48
48
 
49
- **`--wait` for async operations.** `transform run`, `git-sync import`, and similar verbs return immediately by default. Pass `--wait` whenever the next step depends on completion — without it you race the operation and see "not ready" / transient connection refusals.
49
+ **`--wait` for async operations.** `transform run`, `git-sync import`, and similar verbs return immediately; pass `--wait` whenever the next step depends on completion — without it you race the operation and see "not ready" / transient connection refusals.
50
50
 
51
51
  **Some "lookup" verbs return JSON envelopes, not bare values.** `mb setting get <key>` returns `{"key": "...", "value": ...}`. Extract before reusing:
52
52
 
@@ -94,7 +94,7 @@ Verbs that take a payload accept it from one of four sources, **first non-empty
94
94
  3. stdin (auto-detected when piped; `--file -` names it explicitly)
95
95
  4. positional argument
96
96
 
97
- Exactly one required; passing more than one of `--body` / `--file` / a positional argument is rejected with a `ConfigError`.
97
+ Exactly one; more than one of `--body` / `--file` / a positional argument is a `ConfigError`.
98
98
 
99
99
  ```bash
100
100
  cat > ./.scratch/body.json <<'EOF'
@@ -105,7 +105,7 @@ mb <noun> create --file ./.scratch/body.json --profile <n> --json
105
105
 
106
106
  Single-quoted `'EOF'` stops the shell interpolating `$vars` inside the JSON.
107
107
 
108
- Write working files to **`./.scratch`** in the current directory (`mkdir -p ./.scratch` first), never `/tmp` — better permissions, they persist across the session, and the user can review them.
108
+ Write working files to **`./.scratch`** in the current directory (`mkdir -p ./.scratch` first), never `/tmp`: better permissions, kept for the session, reviewable by the user.
109
109
 
110
110
  ## Discovering commands and schemas
111
111
 
@@ -113,12 +113,13 @@ Cheapest source that answers the question wins:
113
113
 
114
114
  - What groups/verbs exist? → `mb --help`, then `mb <group> --help`. Add `--json` for a machine-readable `{command, description}` index (`mb --help --json` lists every command).
115
115
  - What flags does a command take? → `mb <command> --help` — flags with enums and defaults, examples, ~1 KB.
116
- - Output JSON Schema before parsing, JSON-body input schema before authoring, machine-readable arg types, min server version? → `mb <command> --help --json` — that command's full entry (`inputSchema` is the exact validator the command runs on the body; `null` when it takes none).
116
+ - Body shape before authoring, output before parsing? → `mb schema <command>`: the body's JSON Schema, a feature a field needs in its `description`; `--output` for output.
117
+ - Flags, arg types, needed features? → `mb <command> --help --json`.
117
118
 
118
119
  ```bash
119
120
  mb card query --help # flags, enums, defaults, examples
120
- mb card list --help --json | jq .outputSchema # output schema before parsing
121
- mb card create --help --json | jq .inputSchema # body schema before authoring
121
+ mb schema card create # body schema before authoring
122
+ mb schema card list --output # output schema before parsing
122
123
  mb transform --help --json | jq -r '.commands[].command' # verbs under "transform"
123
124
  ```
124
125
 
@@ -152,7 +153,7 @@ What `--help` doesn't say: footguns and non-obvious behaviors.
152
153
  <!-- requires: transforms -->
153
154
  - **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`.)
154
155
  <!-- /requires -->
155
- - **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.
156
+ - **setup is one-shot.** `mb setup` walks `/api/setup` for a **fresh** instance only and errors on a configured one; mostly for bootstrapping local / e2e instances.
156
157
  - **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).
157
158
  <!-- requires: library -->
158
159
  - **library.** The Library is a curated subtree (`library-data` "Data" + `library-metrics` "Metrics" under a `library` root): tables in **Data** lead data pickers and rank up in search; metrics in **Metrics** lead nav, search, and the query builder. `library get` shows its Data/Metrics collection ids; `library create` provisions it (idempotent). `library publish --table-ids/--db-ids/--schemas` publishes tables into Data, **resolving the Data collection and creating the Library if absent**; each `--schemas` entry is `<db-id>:<schema>` (`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. `table get`/`table list` carry `is_published` (`collection_id` under `--full`). Publishing leaves the Data collection out of git-sync scope: on a remote-sync instance, `mb git-sync add-collection <data-collection-id>` makes exports carry published tables' metadata (see `git-sync`).
@@ -164,7 +165,7 @@ What `--help` doesn't say: footguns and non-obvious behaviors.
164
165
 
165
166
  ## Specialized skills (load on demand)
166
167
 
167
- This file is enough for any single-command task. For anything deeper, load the relevant skill **proactively** — don't wing an MBQL body, a transform body, or the git-sync workflow from this overview. Load via `mb skills get <name>`.
168
+ This file is enough for any single-command task. For anything deeper, load the relevant skill **proactively** with `mb skills get <name>` — don't wing an MBQL body, a transform body, or the git-sync workflow from this overview.
168
169
 
169
170
  - **`mbql`** — authoring/fixing any MBQL query body (`mb query`, card `dataset_query`, transform `source.query`, measure/segment `definition`); reading `--dry-run` errors. The query-body reference.
170
171
  - **`native-sql`** — authoring a native SQL `dataset_query` with parameters: template tags, field filters vs. raw variables, snippets, card references, and wiring a tag to a dashboard filter. The SQL fallback when MBQL can't express it (`mbql` first).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mbql
3
- description: Author and debug MBQL query bodies for the `mb` CLI — the query shape, clauses, filters, aggregation and breakout, order and limit, expressions, joins and FK columns, multi-stage pipelines, saved questions and definitions as sources, output column names, and the print-schema → dry-run → run loop. Use when writing or fixing any query body — `mb query`, a card's `dataset_query`, a transform's `source.query`, or a segment/measure `definition` — or when `--dry-run` or a run reports errors. Triggers — "write an MBQL query", "the dataset_query is wrong", "aggregate and group by", "join two tables", "month-over-month".
3
+ description: Author and debug MBQL query bodies for the `mb` CLI — the query shape, clauses, filters, aggregation and breakout, order and limit, expressions, joins and FK columns, multi-stage pipelines, saved questions and definitions as sources, output column names, and the schema → dry-run → run loop. Use when writing or fixing any query body — `mb query`, a card's `dataset_query`, a transform's `source.query`, or a segment/measure `definition` — or when `--dry-run` or a run reports errors. Triggers — "write an MBQL query", "the dataset_query is wrong", "aggregate and group by", "join two tables", "month-over-month".
4
4
  allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
5
5
  ---
6
6
 
@@ -147,12 +147,12 @@ A measure is an aggregation, `["measure", {}, <measure id>]`, on its table, and
147
147
 
148
148
  <!-- /requires -->
149
149
 
150
- ## Authoring loop: print-schema → dry-run → run
150
+ ## Authoring loop: schema → dry-run → run
151
151
 
152
152
  ```bash
153
153
  mb query --file q.json --dry-run --profile <n> # check + compile on the server, no run
154
154
  mb query --file q.json --profile <n> --json # check + run
155
- mb query --print-schema --profile <n> > ./.scratch/mbql-schema.json # the full JSON Schema
155
+ mb schema query > ./.scratch/mbql-schema.json # the JSON Schema bundle, no server needed
156
156
  mb query --file q.json --compile --profile <n> # the SQL the server generates
157
157
  mb query --file q.json --metadata --profile <n> --json # tables (with FK targets), fields, snippets it touches
158
158
  mb query --file q.json --export-format csv --profile <n> > rows.csv # stream the rows up to the server's download limit, no envelope cap
@@ -28,7 +28,7 @@ A native `dataset_query` is a query with one **native stage** — the `lib/type:
28
28
  }
29
29
  ```
30
30
 
31
- This is the form a card stores and returns — author it. The CLI **pre-flight-validates** it — the envelope, the template-tag shapes, the field refs — through the usual `--print-schema → --dry-run → run` loop (`mbql`), and a saved card **round-trips** in exactly this shape: `mb card get <id> --full --json`, edit the `stages[0].native` string, send it straight back. Only the warehouse parses the SQL string, so a **SQL** syntax error surfaces when you run it, not at `--dry-run`. A parameterless query needs no `template-tags` — just the `native` string.
31
+ Author it in this form. The CLI **pre-flight-validates** it — the envelope, the template-tag shapes, the field refs — through the usual `mb schema query` → `--dry-run` → run loop (`mbql`). A saved card **round-trips**: `mb card get <id> --full --json` returns the same stage with `template-tags` as a list of the same entries, each carrying its `name`; edit the `stages[0].native` string and send it straight back, list and all. Only the warehouse parses the SQL string, so a **SQL** syntax error surfaces when you run it, not at `--dry-run`. A parameterless query needs no `template-tags` — just the `native` string.
32
32
 
33
33
  You may see an older flat form in cards created long ago — `{database, type:"native", native:{query}}`. The server still accepts it (it normalizes to the above) but it skips pre-flight and doesn't round-trip — **don't author it**.
34
34
 
@@ -4,7 +4,7 @@ Every template-tag body, the widget-type vocabulary, and the parameter-object sh
4
4
 
5
5
  ## Template-tag bodies by `type`
6
6
 
7
- The `template-tags` value is a map keyed by tag name; each entry's `name` must equal its key and the `{{name}}` in the SQL. `id` is any string unique among the tags; the tag's name serves.
7
+ Author the `template-tags` value as a map keyed by tag name; each entry's `name` must equal its key and the `{{name}}` in the SQL. A card read back carries the same entries as a list, which the server also takes. `id` is any string unique among the tags; the tag's name serves.
8
8
 
9
9
  ### Raw variable — `text` / `number` / `date` / `boolean`
10
10
 
@@ -1,13 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/api-key/index.ts
3
- var api_key_default = defineCommandGroup({
4
- name: "api-key",
5
- description: "Manage Metabase API keys",
6
- subCommands: {
7
- list: () => import("./list-s9_LlXCV.mjs").then((mod) => mod.default),
8
- create: () => import("./create-C3H9ljex.mjs").then((mod) => mod.default),
9
- delete: () => import("./delete-4v4_lDwD.mjs").then((mod) => mod.default)
10
- }
11
- });
12
- //#endregion
13
- export { api_key_default as default };
@@ -1,16 +0,0 @@
1
- import { St as ConfigError, Z as parseJson } from "./cli.mjs";
2
- import { E as DEFAULT_FLAG_NAME, O as givenValue, k as readInput } from "./runtime-Y4VFWmmr.mjs";
3
- //#region src/runtime/body.ts
4
- async function readBody(sources, schema) {
5
- assertSingleSource(sources);
6
- return parseJson(await readInput(sources), schema, { source: sources.source ?? "request body" });
7
- }
8
- function assertSingleSource(sources) {
9
- const provided = [];
10
- if (givenValue(sources.flag) !== null) provided.push(DEFAULT_FLAG_NAME);
11
- if (givenValue(sources.file) !== null) provided.push("--file");
12
- if (givenValue(sources.positional) !== null) provided.push("positional");
13
- if (provided.length > 1) throw new ConfigError(`multiple body sources given (${provided.join(", ")}); pass exactly one`);
14
- }
15
- //#endregion
16
- export { readBody as t };
@@ -1,25 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/card/index.ts
3
- var card_default = defineCommandGroup({
4
- name: "card",
5
- description: "Manage Metabase cards (questions, models, metrics)",
6
- skills: [{
7
- skill: "mbql",
8
- purpose: "author the dataset_query"
9
- }, {
10
- skill: "visualization",
11
- purpose: "choose display and visualization_settings"
12
- }],
13
- subCommands: {
14
- list: () => import("./list-DDPvxfhe.mjs").then((mod) => mod.default),
15
- get: () => import("./get-CtDZOoWy.mjs").then((mod) => mod.default),
16
- query: () => import("./query-pmw23KkL.mjs").then((mod) => mod.default),
17
- alerts: () => import("./alerts-TDYiIxjs.mjs").then((mod) => mod.default),
18
- create: () => import("./create-CjGEkSFz.mjs").then((mod) => mod.default),
19
- update: () => import("./update-DECiEVlk.mjs").then((mod) => mod.default),
20
- verify: () => import("./verify-CzBZbP4W.mjs").then((mod) => mod.default),
21
- archive: () => import("./archive-DQRehboT.mjs").then((mod) => mod.default)
22
- }
23
- });
24
- //#endregion
25
- export { card_default as default };
@@ -1,21 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/collection/index.ts
3
- var collection_default = defineCommandGroup({
4
- name: "collection",
5
- description: "Manage Metabase collections",
6
- skills: [{
7
- skill: "core",
8
- purpose: "collection ref forms and the transforms namespace"
9
- }],
10
- subCommands: {
11
- list: () => import("./list-CFaJA317.mjs").then((mod) => mod.default),
12
- get: () => import("./get-Cc4-e-Q_.mjs").then((mod) => mod.default),
13
- items: () => import("./items-CLl2QgS8.mjs").then((mod) => mod.default),
14
- tree: () => import("./tree-C4Igf6xs.mjs").then((mod) => mod.default),
15
- create: () => import("./create-DO4ic4Kx.mjs").then((mod) => mod.default),
16
- update: () => import("./update-CciLWH_s.mjs").then((mod) => mod.default),
17
- archive: () => import("./archive-N3lp1o-k.mjs").then((mod) => mod.default)
18
- }
19
- });
20
- //#endregion
21
- export { collection_default as default };
@@ -1,35 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/dashboard/index.ts
3
- var dashboard_default = defineCommandGroup({
4
- name: "dashboard",
5
- description: "Manage Metabase dashboards",
6
- skills: [
7
- {
8
- skill: "dashboard",
9
- purpose: "wiring filters, linked filters, cross-filtering, click behavior, tabs"
10
- },
11
- {
12
- skill: "visualization",
13
- purpose: "dashcard display and visualization_settings"
14
- },
15
- {
16
- skill: "core",
17
- purpose: "the 24-column dashcard grid layout"
18
- }
19
- ],
20
- subCommands: {
21
- list: () => import("./list-CA939qkn.mjs").then((mod) => mod.default),
22
- get: () => import("./get--1qTpTIQ.mjs").then((mod) => mod.default),
23
- cards: () => import("./cards-DWJOtZoN.mjs").then((mod) => mod.default),
24
- "parameter-values": () => import("./parameter-values-3eHpqznI.mjs").then((mod) => mod.default),
25
- subscriptions: () => import("./subscriptions-DcCOA2p1.mjs").then((mod) => mod.default),
26
- create: () => import("./create-Bh3q3eHg.mjs").then((mod) => mod.default),
27
- update: () => import("./update-B1UXRPN-.mjs").then((mod) => mod.default),
28
- "update-dashcard": () => import("./update-dashcard-m-hkIGUu.mjs").then((mod) => mod.default),
29
- copy: () => import("./copy-BzBp5FaY.mjs").then((mod) => mod.default),
30
- verify: () => import("./verify-cjUPMF_B.mjs").then((mod) => mod.default),
31
- archive: () => import("./archive-DZDkfhdH.mjs").then((mod) => mod.default)
32
- }
33
- });
34
- //#endregion
35
- export { dashboard_default as default };
@@ -1,24 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/data-action/index.ts
3
- var data_action_default = defineCommandGroup({
4
- name: "data-action",
5
- description: "Manage Metabase data actions",
6
- skills: [{
7
- skill: "data-action",
8
- purpose: "author and run data actions"
9
- }, {
10
- skill: "native-sql",
11
- purpose: "the data action's native query and its template tags"
12
- }],
13
- subCommands: {
14
- list: () => import("./list-BiSwl56L.mjs").then((mod) => mod.default),
15
- get: () => import("./get-B8xrmipw.mjs").then((mod) => mod.default),
16
- create: () => import("./create-f0bBEfDI.mjs").then((mod) => mod.default),
17
- update: () => import("./update-FfeHReec.mjs").then((mod) => mod.default),
18
- archive: () => import("./archive-3fdIvMsf.mjs").then((mod) => mod.default),
19
- delete: () => import("./delete-BHX_F8Qu.mjs").then((mod) => mod.default),
20
- execute: () => import("./execute-DBJGtHHG.mjs").then((mod) => mod.default)
21
- }
22
- });
23
- //#endregion
24
- export { data_action_default as default };
@@ -1,15 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/dependency/index.ts
3
- var dependency_default = defineCommandGroup({
4
- name: "dependency",
5
- description: "Trace what Metabase content depends on and what depends on it",
6
- subCommands: {
7
- graph: () => import("./graph-CqBe2J4N.mjs").then((m) => m.default),
8
- dependents: () => import("./dependents-DHXqJ3lo.mjs").then((m) => m.default),
9
- broken: () => import("./broken-D2ST8sTx.mjs").then((m) => m.default),
10
- unreferenced: () => import("./unreferenced-DtUuyBrr.mjs").then((m) => m.default),
11
- breaking: () => import("./breaking-DuWIof4T.mjs").then((m) => m.default)
12
- }
13
- });
14
- //#endregion
15
- export { dependency_default as default };
@@ -1,20 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/document/index.ts
3
- var document_default = defineCommandGroup({
4
- name: "document",
5
- description: "Manage Metabase documents",
6
- skills: [{
7
- skill: "document",
8
- purpose: "author the ProseMirror document body"
9
- }],
10
- subCommands: {
11
- list: () => import("./list-BIqqh3A-.mjs").then((mod) => mod.default),
12
- get: () => import("./get-BIf6eFWZ.mjs").then((mod) => mod.default),
13
- create: () => import("./create-CGE1D0Ay.mjs").then((mod) => mod.default),
14
- update: () => import("./update-DkvIK-eL.mjs").then((mod) => mod.default),
15
- copy: () => import("./copy-C7Rc4qM7.mjs").then((mod) => mod.default),
16
- archive: () => import("./archive-9uzfWGuq.mjs").then((mod) => mod.default)
17
- }
18
- });
19
- //#endregion
20
- export { document_default as default };
@@ -1,21 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/field/index.ts
3
- var field_default = defineCommandGroup({
4
- name: "field",
5
- description: "Manage Metabase fields",
6
- skills: [{
7
- skill: "metadata",
8
- purpose: "semantic types, FK targets, visibility, dropdown behavior"
9
- }],
10
- subCommands: {
11
- get: () => import("./get-BSPxmP_W.mjs").then((m) => m.default),
12
- values: () => import("./values-BsgA7-6h.mjs").then((m) => m.default),
13
- summary: () => import("./summary-CipFA6M6.mjs").then((m) => m.default),
14
- update: () => import("./update-B0Na11v-.mjs").then((m) => m.default),
15
- search: () => import("./search-DUmFK5Sy.mjs").then((m) => m.default),
16
- remapping: () => import("./remapping-C3htTzJn.mjs").then((m) => m.default),
17
- "set-sensitivity": () => import("./set-sensitivity-DqGkiLSr.mjs").then((m) => m.default)
18
- }
19
- });
20
- //#endregion
21
- export { field_default as default };
@@ -1,29 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/git-sync/index.ts
3
- var git_sync_default = defineCommandGroup({
4
- name: "git-sync",
5
- description: "Sync Metabase content with a git remote",
6
- skills: [{
7
- skill: "git-sync",
8
- purpose: "import/export round-trip and dirty checks"
9
- }],
10
- subCommands: {
11
- status: () => import("./status-BHiO3YBe.mjs").then((mod) => mod.default),
12
- "is-dirty": () => import("./is-dirty-DhR3Xqjk.mjs").then((mod) => mod.default),
13
- "has-remote-changes": () => import("./has-remote-changes-CDe1teSb.mjs").then((mod) => mod.default),
14
- dirty: () => import("./dirty-BRPWPUYH.mjs").then((mod) => mod.default),
15
- "current-task": () => import("./current-task-AwQisIT9.mjs").then((mod) => mod.default),
16
- "cancel-task": () => import("./cancel-task-rkqY0qLU.mjs").then((mod) => mod.default),
17
- wait: () => import("./wait-mFUfpSaj.mjs").then((mod) => mod.default),
18
- import: () => import("./import-B64gjryF.mjs").then((mod) => mod.default),
19
- export: () => import("./export-xn_-NaBd.mjs").then((mod) => mod.default),
20
- "export-preflight": () => import("./export-preflight-SM9zJkBp.mjs").then((mod) => mod.default),
21
- stash: () => import("./stash-e5cSvnj3.mjs").then((mod) => mod.default),
22
- branches: () => import("./branches-B3gHAanU.mjs").then((mod) => mod.default),
23
- "create-branch": () => import("./create-branch-DBCBMDWh.mjs").then((mod) => mod.default),
24
- "add-collection": () => import("./add-collection-c1dfnavz.mjs").then((mod) => mod.default),
25
- "remove-collection": () => import("./remove-collection-p_t9rUUX.mjs").then((mod) => mod.default)
26
- }
27
- });
28
- //#endregion
29
- export { git_sync_default as default };
@@ -1,14 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/glossary/index.ts
3
- var glossary_default = defineCommandGroup({
4
- name: "glossary",
5
- description: "Manage the Metabase glossary of business terms",
6
- subCommands: {
7
- list: () => import("./list-DyFu5Wx1.mjs").then((mod) => mod.default),
8
- create: () => import("./create-YIC3Q0a-.mjs").then((mod) => mod.default),
9
- update: () => import("./update-BogvN2Mb.mjs").then((mod) => mod.default),
10
- delete: () => import("./delete-E-g5b-HU.mjs").then((mod) => mod.default)
11
- }
12
- });
13
- //#endregion
14
- export { glossary_default as default };
@@ -1,19 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/snippet/index.ts
3
- var snippet_default = defineCommandGroup({
4
- name: "snippet",
5
- description: "Manage Metabase native query snippets",
6
- skills: [{
7
- skill: "core",
8
- purpose: "native-SQL snippets and body input"
9
- }],
10
- subCommands: {
11
- list: () => import("./list-CjpZCiks.mjs").then((mod) => mod.default),
12
- get: () => import("./get-DIfjxTP8.mjs").then((mod) => mod.default),
13
- create: () => import("./create-ByeGK_BE.mjs").then((mod) => mod.default),
14
- update: () => import("./update-DT2ViMFr.mjs").then((mod) => mod.default),
15
- archive: () => import("./archive-DxUnaV4x.mjs").then((mod) => mod.default)
16
- }
17
- });
18
- //#endregion
19
- export { snippet_default as default };
@@ -1,26 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/table/index.ts
3
- var table_default = defineCommandGroup({
4
- name: "table",
5
- description: "Manage Metabase tables",
6
- skills: [{
7
- skill: "metadata",
8
- purpose: "table and column metadata, semantic types, visibility"
9
- }],
10
- subCommands: {
11
- list: () => import("./list-BmvitCWZ.mjs").then((m) => m.default),
12
- get: () => import("./get-DePbMmjc.mjs").then((m) => m.default),
13
- fields: () => import("./fields-CB06GFBW.mjs").then((m) => m.default),
14
- fks: () => import("./fks-CSoS7xZ6.mjs").then((m) => m.default),
15
- update: () => import("./update-DhgfReDD.mjs").then((m) => m.default),
16
- "sync-schema": () => import("./sync-schema-D7p-P8F6.mjs").then((m) => m.default),
17
- "rescan-values": () => import("./rescan-values-DOqXJ3qH.mjs").then((m) => m.default),
18
- "discard-values": () => import("./discard-values-DBHfVN8o.mjs").then((m) => m.default),
19
- "bulk-edit": () => import("./bulk-edit-girwcjY6.mjs").then((m) => m.default),
20
- "bulk-sync-schema": () => import("./bulk-sync-schema-DEPUZ6MN.mjs").then((m) => m.default),
21
- "bulk-rescan-values": () => import("./bulk-rescan-values-Df8KK8um.mjs").then((m) => m.default),
22
- "bulk-discard-values": () => import("./bulk-discard-values-77khEfpj.mjs").then((m) => m.default)
23
- }
24
- });
25
- //#endregion
26
- export { table_default as default };
@@ -1,21 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/timeline/index.ts
3
- var timeline_default = defineCommandGroup({
4
- name: "timeline",
5
- description: "Manage Metabase timelines (event annotations for time-series charts)",
6
- skills: [{
7
- skill: "core",
8
- purpose: "collection scoping — events render only on questions in the timeline's collection"
9
- }],
10
- subCommands: {
11
- list: () => import("./list-D_IT8l9B.mjs").then((mod) => mod.default),
12
- get: () => import("./get-BQ7SAJEz.mjs").then((mod) => mod.default),
13
- events: () => import("./events-CZL9MU64.mjs").then((mod) => mod.default),
14
- create: () => import("./create-YBDXZgyP.mjs").then((mod) => mod.default),
15
- update: () => import("./update-HbggUPuy.mjs").then((mod) => mod.default),
16
- archive: () => import("./archive-DY76wU2k.mjs").then((mod) => mod.default),
17
- delete: () => import("./delete-wnHUWWjX.mjs").then((mod) => mod.default)
18
- }
19
- });
20
- //#endregion
21
- export { timeline_default as default };
@@ -1,28 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/transform/index.ts
3
- var transform_default = defineCommandGroup({
4
- name: "transform",
5
- description: "Manage Metabase transforms",
6
- skills: [{
7
- skill: "transform",
8
- purpose: "body shape, run-with-wait, iterate"
9
- }, {
10
- skill: "mbql",
11
- purpose: "MBQL source.query bodies"
12
- }],
13
- subCommands: {
14
- list: () => import("./list-eGlqXJno.mjs").then((mod) => mod.default),
15
- get: () => import("./get-Bt4C-oxh.mjs").then((mod) => mod.default),
16
- dependencies: () => import("./dependencies-CnW3RSoZ.mjs").then((mod) => mod.default),
17
- create: () => import("./create-vgP9K2eH2.mjs").then((mod) => mod.default),
18
- update: () => import("./update-BOg1jZ_s.mjs").then((mod) => mod.default),
19
- delete: () => import("./delete-DmM5L0wO.mjs").then((mod) => mod.default),
20
- "delete-table": () => import("./delete-table-CJq8JM5J.mjs").then((mod) => mod.default),
21
- run: () => import("./run-2xgPRuKR.mjs").then((mod) => mod.default),
22
- cancel: () => import("./cancel-Oek5PJnu.mjs").then((mod) => mod.default),
23
- "get-run": () => import("./get-run-C-CNDbv3.mjs").then((mod) => mod.default),
24
- runs: () => import("./runs-CgNoQW6M.mjs").then((mod) => mod.default)
25
- }
26
- });
27
- //#endregion
28
- export { transform_default as default };
@@ -1,22 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/transform-job/index.ts
3
- var transform_job_default = defineCommandGroup({
4
- name: "transform-job",
5
- description: "Manage Metabase transform jobs",
6
- skills: [{
7
- skill: "transform",
8
- purpose: "tag-driven job schedules"
9
- }],
10
- subCommands: {
11
- list: () => import("./list-DLwby7YA.mjs").then((mod) => mod.default),
12
- get: () => import("./get-B8xQXMU6.mjs").then((mod) => mod.default),
13
- create: () => import("./create-CGxxztoE.mjs").then((mod) => mod.default),
14
- update: () => import("./update-z8ZGCg1r.mjs").then((mod) => mod.default),
15
- delete: () => import("./delete-D9FB7qjX.mjs").then((mod) => mod.default),
16
- run: () => import("./run-Dn3e8G4x.mjs").then((mod) => mod.default),
17
- transforms: () => import("./transforms-C6MFnT4C.mjs").then((mod) => mod.default),
18
- "set-active": () => import("./set-active-CVI_DDQi.mjs").then((mod) => mod.default)
19
- }
20
- });
21
- //#endregion
22
- export { transform_job_default as default };
@@ -1,16 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/transform-test/index.ts
3
- var transform_test_default = defineCommandGroup({
4
- name: "transform-test",
5
- description: "Manage transform tests — fixtures and expectations run against temp tables",
6
- subCommands: {
7
- list: () => import("./list-DpfOh8-5.mjs").then((mod) => mod.default),
8
- get: () => import("./get-BW3jSR3y.mjs").then((mod) => mod.default),
9
- create: () => import("./create-Bc4ADRmU.mjs").then((mod) => mod.default),
10
- update: () => import("./update-CCLpNTPa.mjs").then((mod) => mod.default),
11
- delete: () => import("./delete-WrV9I9uw.mjs").then((mod) => mod.default),
12
- run: () => import("./run-CtMbObQI.mjs").then((mod) => mod.default)
13
- }
14
- });
15
- //#endregion
16
- export { transform_test_default as default };
@@ -1,13 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-81zoQcEP.mjs";
2
- //#region src/commands/upload/index.ts
3
- var upload_default = defineCommandGroup({
4
- name: "upload",
5
- description: "Upload CSV files into Metabase",
6
- subCommands: {
7
- csv: () => import("./csv-Dtgy7sTg.mjs").then((m) => m.default),
8
- append: () => import("./append-CoeZRD6u.mjs").then((m) => m.default),
9
- replace: () => import("./replace-BQBuFJ1B.mjs").then((m) => m.default)
10
- }
11
- });
12
- //#endregion
13
- export { upload_default as default };
@@ -1,38 +0,0 @@
1
- import { St as ConfigError, d as writeJson } from "./cli.mjs";
2
- import { a as validateQuery, i as isMbql5Query, n as assertNotLegacyEnvelopeWrappingMbql5 } from "./validate-BQ7vI8_x.mjs";
3
- //#region src/commands/validate-query.ts
4
- const skipValidateFlag = { "skip-validate": {
5
- type: "boolean",
6
- description: "Skip the local MBQL 5 pre-flight validation; let the server be the authority. Use only when the bundled schema disagrees with what the server accepts."
7
- } };
8
- const CARD_DATASET_QUERY_LABELS = {
9
- contextLabel: "card.dataset_query validation failed",
10
- bodyNoun: "dataset_query"
11
- };
12
- const DATA_ACTION_DATASET_QUERY_LABELS = {
13
- contextLabel: "dataAction.dataset_query validation failed",
14
- bodyNoun: "dataset_query"
15
- };
16
- const TRANSFORM_SOURCE_QUERY_LABELS = {
17
- contextLabel: "transform.source.query validation failed",
18
- bodyNoun: "source.query"
19
- };
20
- const MEASURE_DEFINITION_LABELS = {
21
- contextLabel: "measure.definition validation failed",
22
- bodyNoun: "definition"
23
- };
24
- const SEGMENT_DEFINITION_LABELS = {
25
- contextLabel: "segment.definition validation failed",
26
- bodyNoun: "definition"
27
- };
28
- function preflightMbql5Query(query, labels, options) {
29
- if (options.skip) return;
30
- assertNotLegacyEnvelopeWrappingMbql5(query, labels);
31
- if (!isMbql5Query(query)) return;
32
- const outcome = validateQuery(query);
33
- if (outcome.ok) return;
34
- writeJson(outcome);
35
- throw new ConfigError(`${labels.contextLabel}: ${outcome.errors.length} error(s) — fix them, or pass --skip-validate to send anyway`);
36
- }
37
- //#endregion
38
- export { TRANSFORM_SOURCE_QUERY_LABELS as a, SEGMENT_DEFINITION_LABELS as i, DATA_ACTION_DATASET_QUERY_LABELS as n, preflightMbql5Query as o, MEASURE_DEFINITION_LABELS as r, skipValidateFlag as s, CARD_DATASET_QUERY_LABELS as t };