@metabase/cli 0.3.0 → 0.3.1-alpha.fix-transform-test-ee-path.a3ca6dd

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 (269) hide show
  1. package/dist/{add-collection-B3Ty8SzB.mjs → add-collection-BEg-1pt8.mjs} +6 -9
  2. package/dist/{alert-DT-ee7yf.mjs → alert-CBwtJ3lE.mjs} +7 -7
  3. package/dist/{alerts-Bf2RH_p_.mjs → alerts-Bn9ZhFYK.mjs} +7 -7
  4. package/dist/{append-DFzQRPMd.mjs → append-F7kfyk0p.mjs} +6 -5
  5. package/dist/{archive-ByvA49Kz.mjs → archive-2VqBgcyE.mjs} +5 -5
  6. package/dist/{archive-4tmm946K.mjs → archive-3_KVbxIk.mjs} +4 -4
  7. package/dist/{archive-Cd29QC0c.mjs → archive-7tZyaUWv.mjs} +4 -4
  8. package/dist/{archive-Dr9Xnx_Z.mjs → archive-Bonv-Hcf.mjs} +6 -6
  9. package/dist/{archive-C7w49Grr.mjs → archive-BzEvapLz.mjs} +6 -6
  10. package/dist/{archive-CwAdlv63.mjs → archive-CAwDiQWt2.mjs} +6 -6
  11. package/dist/{archive-lQqs13Uz.mjs → archive-CE-RKcle.mjs} +6 -6
  12. package/dist/{archive-B6eXiyER.mjs → archive-Da3-hnRM.mjs} +4 -4
  13. package/dist/{archive-gid9Y09v.mjs → archive-IBHOtOMk.mjs} +4 -4
  14. package/dist/{archive-BxNPHxOY.mjs → archive-TBo05bZZ.mjs} +6 -6
  15. package/dist/{archive-ChORH5JH.mjs → archive-k79AXZhh.mjs} +4 -4
  16. package/dist/{auth-Dltxua89.mjs → auth-CLZuUSzL.mjs} +5 -5
  17. package/dist/{body-Cur4NJt9.mjs → body-Q8iNnt-X.mjs} +3 -3
  18. package/dist/{branches-DchlyU0i.mjs → branches-CjMIMKse.mjs} +4 -7
  19. package/dist/{cancel-BMQa5R1Z.mjs → cancel-H4vYr5Jv.mjs} +4 -4
  20. package/dist/{cancel-task-C5CU1pxU.mjs → cancel-task-p09LCbgs.mjs} +5 -8
  21. package/dist/{card-zyUkr2nS.mjs → card-CEkp1mcI.mjs} +1 -1
  22. package/dist/card-DlVb10D3.mjs +24 -0
  23. package/dist/{card-DZxRmver.mjs → card-voh1k4hl.mjs} +14 -11
  24. package/dist/{cards-SccWvRQD.mjs → cards-DDG6RObF.mjs} +7 -7
  25. package/dist/cli.mjs +567 -68
  26. package/dist/client-toDDqakD.mjs +4093 -0
  27. package/dist/{collection-CfulNRBG.mjs → collection-BxdPxD38.mjs} +1 -1
  28. package/dist/{collection-CGoVLvcD.mjs → collection-DYM0p3Xl.mjs} +1 -1
  29. package/dist/{collection-namespace-GwydWBF3.mjs → collection-namespace-DDI9-HgU.mjs} +2 -2
  30. package/dist/collection-p_sficxo.mjs +20 -0
  31. package/dist/content-translation-BrHOrmj9.mjs +5 -0
  32. package/dist/content-translation-DcTEH_d7.mjs +12 -0
  33. package/dist/{create-CAWytBE5.mjs → create-BLxdMJgQ.mjs} +5 -5
  34. package/dist/{create-BNQ_DytP.mjs → create-BPN1cX7b.mjs} +4 -4
  35. package/dist/{create-CHQx7jq4.mjs → create-BjCpsMQM.mjs} +5 -5
  36. package/dist/{create-CD008jdE.mjs → create-BovrhBQn.mjs} +12 -8
  37. package/dist/{create-DV-Ln5Mo.mjs → create-CVCPD-1F.mjs} +4 -4
  38. package/dist/{create-DJmXXQoq.mjs → create-CVPGOx7u2.mjs} +8 -8
  39. package/dist/{create-Beh-2uoN.mjs → create-Chs5c8vx.mjs} +6 -6
  40. package/dist/{create-BOLwWt8Q.mjs → create-D04fl6ec.mjs} +5 -5
  41. package/dist/{create-C79vErX0.mjs → create-D5mN20oE.mjs} +7 -7
  42. package/dist/{create-DF4QtgDL.mjs → create-D88Im3X22.mjs} +6 -6
  43. package/dist/{create-tQbnuz-I.mjs → create-DQfOV9Sm.mjs} +6 -6
  44. package/dist/{create-CCh_LyW9.mjs → create-DWU4j22P.mjs} +4 -4
  45. package/dist/create-DjP2yUyn.mjs +34 -0
  46. package/dist/{create-CAQV2g6V.mjs → create-Dk6Zm3ZH.mjs} +7 -7
  47. package/dist/{create-zeveFdnd.mjs → create-DkmeJGMy.mjs} +5 -8
  48. package/dist/{create-i14Wv3Tj.mjs → create-TQr3briq.mjs} +4 -4
  49. package/dist/{create-branch-CYo6jZth.mjs → create-branch-Bs6BlkgQ.mjs} +5 -9
  50. package/dist/{csv-B2Jgb1GM.mjs → csv-BsN6FmY-.mjs} +6 -5
  51. package/dist/{current-task-MpBFGttd.mjs → current-task-cCmLLVcv.mjs} +5 -8
  52. package/dist/{dashboard-BHJBoaG7.mjs → dashboard-CpIEKEgu.mjs} +10 -10
  53. package/dist/{dashboard-BCpSq_G-.mjs → dashboard-D0hwTC-f.mjs} +12 -2
  54. package/dist/{dashboard-CsIFFpzK.mjs → dashboard-DgK81azj.mjs} +1 -1
  55. package/dist/{database-B19qlLKZ.mjs → database-C3E9PZSx.mjs} +1 -1
  56. package/dist/{database-C8G6ZKG0.mjs → database-JtHTqSpq.mjs} +1 -1
  57. package/dist/{db-DsfojyeH.mjs → db-BbvcmfWM.mjs} +7 -7
  58. package/dist/{delete-B8e01xAG.mjs → delete-C4_rcfNu.mjs} +5 -5
  59. package/dist/delete-CLdDYdYG.mjs +44 -0
  60. package/dist/{delete-DFmX7jTp.mjs → delete-D13SLwhr.mjs} +5 -5
  61. package/dist/{delete-Ob06PPie.mjs → delete-D3-jMLu5.mjs} +5 -5
  62. package/dist/{delete-BApOjQvl.mjs → delete-DLirF5iq.mjs} +5 -5
  63. package/dist/{delete-Ck0q4Dzp.mjs → delete-JBjvxdIU.mjs} +5 -5
  64. package/dist/{delete-runtime-D74s6vhu.mjs → delete-runtime-BKEzJn22.mjs} +1 -2
  65. package/dist/{delete-table-DuyhGrvA.mjs → delete-table-Gwk7JL5c.mjs} +5 -5
  66. package/dist/{dependencies-Bj3QrGIm.mjs → dependencies-B7vl9Ovb.mjs} +7 -7
  67. package/dist/{dirty-DNYoM6Bp.mjs → dirty-CIZeASXG.mjs} +6 -9
  68. package/dist/{document-Cd2mmqCp.mjs → document-BHpLJbKU.mjs} +5 -0
  69. package/dist/{document-D6OybtP2.mjs → document-CA0Q6lqu.mjs} +1 -1
  70. package/dist/document-ceJW4VuL.mjs +19 -0
  71. package/dist/download-B-krJch0.mjs +25 -0
  72. package/dist/{eid-WTZmDdsr.mjs → eid-C0D92gZW.mjs} +4 -5
  73. package/dist/{events-Bn7jh5lP.mjs → events-CuLeaey6.mjs} +5 -5
  74. package/dist/{export-BjfoZRDJ.mjs → export-DeuLpt3x.mjs} +7 -10
  75. package/dist/{field-Zau6Hc6X.mjs → field-B8Hndt4p.mjs} +5 -5
  76. package/dist/{field-Cr2DPUG9.mjs → field-CcN4oZy6.mjs} +16 -1
  77. package/dist/{field-BPsNa-TO.mjs → field-fDtIrY6D.mjs} +1 -1
  78. package/dist/{fields-CBBa-Prp.mjs → fields-CAchmFh4.mjs} +7 -7
  79. package/dist/{get-CDJFVvhj.mjs → get-BH3Tgfgf.mjs} +4 -4
  80. package/dist/{get-CDMGbgrh.mjs → get-BJOxfbDP.mjs} +4 -4
  81. package/dist/{get-B_xdF1kq.mjs → get-BOjTqIMx.mjs} +6 -6
  82. package/dist/{get-D_h-G9bn.mjs → get-C1BPEbyl.mjs} +6 -6
  83. package/dist/{get-Dmj9Ygz1.mjs → get-C8dcHjd6.mjs} +6 -6
  84. package/dist/{get-DkWO0EI0.mjs → get-CArTALOt.mjs} +6 -6
  85. package/dist/get-CMCAgpxn.mjs +93 -0
  86. package/dist/{get-CnbUCzDM.mjs → get-CjDHpz6A.mjs} +4 -4
  87. package/dist/{get-ByBOq30r.mjs → get-ClNkea9I.mjs} +6 -6
  88. package/dist/{get-DRvsATp-.mjs → get-CvAMxfPD.mjs} +6 -6
  89. package/dist/{get-B7sMgsFs.mjs → get-D8qaSSEH.mjs} +4 -4
  90. package/dist/{get-00lyLv6R.mjs → get-DCvnNk3f.mjs} +6 -6
  91. package/dist/{get-DY03Azx9.mjs → get-DEwfm3Yl.mjs} +5 -8
  92. package/dist/{get-C2-Q3iQ5.mjs → get-DXWrGwWH.mjs} +4 -4
  93. package/dist/get-DbXTkB4u.mjs +32 -0
  94. package/dist/{get-DYO1kywc.mjs → get-DvF9oooq.mjs} +5 -5
  95. package/dist/{get-DdsoHaKH.mjs → get-d055CJ1T.mjs} +4 -4
  96. package/dist/{get-Bz99dAxK.mjs → get-kBTeBtLe.mjs} +6 -6
  97. package/dist/{get-DmpB6J9g.mjs → get-ohue3YrV2.mjs} +6 -6
  98. package/dist/{get-run-Cnux9ln0.mjs → get-run-X6zhp0dW.mjs} +6 -6
  99. package/dist/{get-Dn9ZiSZr.mjs → get-wIZrb7oN.mjs} +6 -6
  100. package/dist/git-sync-BkTmSgdD.mjs +28 -0
  101. package/dist/{git-sync-BDnxPrqU.mjs → git-sync-BwBRmEhE.mjs} +18 -1
  102. package/dist/{git-sync-DxD_ng48.mjs → git-sync-TjX1r_wF.mjs} +1 -1
  103. package/dist/{group-DBM87IgC.mjs → group-YQQ5GIcP.mjs} +2 -2
  104. package/dist/{has-remote-changes-C684Redh.mjs → has-remote-changes-zCtdEGs-.mjs} +5 -8
  105. package/dist/{import-Rmmttboo.mjs → import-DkAy_Xi8.mjs} +7 -10
  106. package/dist/{input-DH9i67x_.mjs → input-DEvkIjGr.mjs} +1 -1
  107. package/dist/{is-dirty-DYeJYhBz.mjs → is-dirty-Dfk2Xf-W.mjs} +3 -6
  108. package/dist/{items-CQlPXBXE.mjs → items-CiSBrc9d.mjs} +7 -7
  109. package/dist/{key-BEhqIzIQ.mjs → key-PYetuQ13.mjs} +1 -1
  110. package/dist/library-BPIzb3K_.mjs +81 -0
  111. package/dist/{library-Bsm5KsFF.mjs → library-FBj2Je-M.mjs} +5 -5
  112. package/dist/{library-DfYAT2Ep.mjs → library-PGCfm0UA.mjs} +1 -1
  113. package/dist/list-9CJczyF5.mjs +60 -0
  114. package/dist/{list-DE9FM957.mjs → list-B6tDzQsv.mjs} +4 -4
  115. package/dist/{list-BtkWNtvY.mjs → list-BDJkJc8s.mjs} +7 -7
  116. package/dist/{list-BzVTHOoH.mjs → list-Br0g0oDR.mjs} +6 -6
  117. package/dist/{list-CNUiF8Z7.mjs → list-C9-2J0Nu.mjs} +6 -6
  118. package/dist/{list-B4hJuMhA.mjs → list-CGjdrAhT.mjs} +7 -7
  119. package/dist/{list-BtmsNOEn.mjs → list-CHOJQ1uR.mjs} +4 -4
  120. package/dist/{list-CKK-s3Ty.mjs → list-CK4S_aDK.mjs} +4 -4
  121. package/dist/{list-C5Zs8nrb.mjs → list-CYONHM9n.mjs} +6 -6
  122. package/dist/{list-CQwOgIlj.mjs → list-CrwbvMEG.mjs} +6 -6
  123. package/dist/{list-BOET6zhP.mjs → list-D6WZmnG_.mjs} +4 -4
  124. package/dist/{list-DMKDsBRd.mjs → list-DD_tjCmP.mjs} +7 -7
  125. package/dist/{list-DF2rvoO1.mjs → list-Dqv3nOEe.mjs} +14 -13
  126. package/dist/{list-CQDprvW0.mjs → list-Hjsg2N8L.mjs} +7 -7
  127. package/dist/{list-CMpoc2TN.mjs → list-M4Twal0d.mjs} +5 -5
  128. package/dist/{list-BpFp9Wre.mjs → list-UbzhJFFn.mjs} +4 -4
  129. package/dist/list-W5y4079U.mjs +35 -0
  130. package/dist/{list-BP3MPq-M.mjs → list-f5HIVoLN.mjs} +4 -4
  131. package/dist/{list-B8nAGwP4.mjs → list-uCAP4vmQ.mjs} +6 -6
  132. package/dist/{login-CGHeSjlP.mjs → login-CIzUMkf3.mjs} +15 -12
  133. package/dist/{logout-DAxOlbv4.mjs → logout-CRm_AaoF.mjs} +3 -4
  134. package/dist/{measure-BsYv0p26.mjs → measure-DPXeIN18.mjs} +6 -6
  135. package/dist/{notification-Fcq1fIPw.mjs → notification-DVrLkjFT.mjs} +1 -1
  136. package/dist/{parameter-DUKR8NXo.mjs → parameter-Celg0wZa.mjs} +1 -1
  137. package/dist/{parameter-values-CJTdqd8c.mjs → parameter-values-rOHoy3k0.mjs} +5 -6
  138. package/dist/{parse-enum-D0Jfm_Bz.mjs → parse-enum-Dc0dMZ3P.mjs} +1 -1
  139. package/dist/{parse-id-C_jmKFaa.mjs → parse-id-CYZAIB58.mjs} +1 -1
  140. package/dist/{parse-ref-ibKVB0J4.mjs → parse-ref-DTDld_LJ.mjs} +1 -1
  141. package/dist/{path-B5gHvrYL.mjs → path-D9_unWc1.mjs} +5 -5
  142. package/dist/{poll-75SvT7Zv.mjs → poll-CZeXepUQ.mjs} +2 -2
  143. package/dist/{preflight-YpPQo-sa.mjs → preflight-BIxRV-bm.mjs} +3 -4
  144. package/dist/{process-DBOOrmET.mjs → process-CTrfxxaC.mjs} +1 -1
  145. package/dist/{publish-DijrxaCW.mjs → publish-N509vd0U.mjs} +9 -9
  146. package/dist/{pulse-BmsDenXm.mjs → pulse-Dz0ocv0l.mjs} +1 -1
  147. package/dist/{pulse-DhG6I9mI.mjs → pulse-x0gFxWfG.mjs} +2 -2
  148. package/dist/{query-Dc__-KJH.mjs → query-JvMjF22L.mjs} +9 -10
  149. package/dist/{query-result-DBDwk8TS.mjs → query-result-E4Q-Gra6.mjs} +1 -1
  150. package/dist/{query-BbqECzmF.mjs → query-yh5Wkfmc.mjs} +11 -18
  151. package/dist/{remove-collection-BOnxYvhj.mjs → remove-collection-B0E0dlZt.mjs} +6 -9
  152. package/dist/{render-CI93iP0I.mjs → render-Tlz6OCMU.mjs} +13 -2
  153. package/dist/{replace-Cq4CxVa-.mjs → replace-BwbYo6-2.mjs} +6 -5
  154. package/dist/{rescan-values-Dr_j416g.mjs → rescan-values-BiMPb5Z5.mjs} +6 -6
  155. package/dist/{run-DdGJ544X.mjs → run-B9aA1aNI.mjs} +26 -14
  156. package/dist/run-D37ntUQo.mjs +50 -0
  157. package/dist/{run-C3DkS6NP.mjs → run-Dbh3nvzF.mjs} +6 -6
  158. package/dist/{runs-CUNWiidL.mjs → runs-BuUzKR-x.mjs} +7 -7
  159. package/dist/{runtime-DiKyBxOw.mjs → runtime-CwhhhwcB.mjs} +946 -246
  160. package/dist/{schema-tables-CV386fnC.mjs → schema-tables-9PvvygPu.mjs} +7 -7
  161. package/dist/{schemas-DM-UqZBQ.mjs → schemas-DqkQI39t.mjs} +5 -5
  162. package/dist/{search-DFBwUc6d.mjs → search-BAXg-EJw.mjs} +2 -1
  163. package/dist/{search-DmGScXs8.mjs → search-BjAwR-oP.mjs} +6 -6
  164. package/dist/{segment-BzUGM2Fr.mjs → segment-1nBcugv8.mjs} +6 -6
  165. package/dist/{selectors-DGDn0Hto.mjs → selectors-DFNdyhPn.mjs} +3 -3
  166. package/dist/{send-CVxxEpDB.mjs → send-D4tYN3aN.mjs} +4 -4
  167. package/dist/{set-DFolTjbd.mjs → set-D_Mh2eVO.mjs} +5 -5
  168. package/dist/{set-active-BD8L1lPX.mjs → set-active-jY5VZsO8.mjs} +5 -5
  169. package/dist/{setting-DyhaeICs.mjs → setting-9ULb5wjN.mjs} +4 -4
  170. package/dist/{setup-BbDQN8fe.mjs → setup-DMaIuuCV.mjs} +4 -4
  171. package/dist/{signal-CMd0EFUa.mjs → signal-k7cm5N6h.mjs} +11 -2
  172. package/dist/skill-list-Bucy7UE2.mjs +76 -0
  173. package/dist/{skills--vK6J-e4.mjs → skills-Dyfqgobg.mjs} +3 -3
  174. package/dist/skills-PjjRtYqi.mjs +351 -0
  175. package/dist/snippet-DNoTIGAs.mjs +19 -0
  176. package/dist/{stash-D0S4JmAz.mjs → stash-C6BEM6_u.mjs} +7 -11
  177. package/dist/{status-BhswxJL1.mjs → status-DiP093Vm.mjs} +11 -9
  178. package/dist/{status-hL1am-HV.mjs → status-wAg5ajzM.mjs} +12 -11
  179. package/dist/stream-McixcoUl.mjs +7 -0
  180. package/dist/{subscription-_d5fB45F.mjs → subscription-CEeI0pSr.mjs} +6 -6
  181. package/dist/{subscriptions-s4TF6Ax3.mjs → subscriptions-B9cMNuIS.mjs} +7 -7
  182. package/dist/{summary-CsPvcUwW.mjs → summary-D0NP2NoT.mjs} +6 -6
  183. package/dist/{sync-schema-DaZ_MV-u.mjs → sync-schema-BgJ6KEqa.mjs} +7 -7
  184. package/dist/{sync-task-BACcrs0i.mjs → sync-task-BXeWuARG.mjs} +1 -1
  185. package/dist/{table-DYoC1kPn.mjs → table-9bTG6zSa.mjs} +5 -5
  186. package/dist/{table-CsIJNPFf.mjs → table-C6h4tIRw.mjs} +1 -1
  187. package/dist/{table-CeeTJgQb.mjs → table-DfuY0N8e.mjs} +51 -4
  188. package/dist/timeline-Ck53UgDh.mjs +21 -0
  189. package/dist/{timeline-event-CNQdCTDg.mjs → timeline-event-POmQ2TD2.mjs} +6 -6
  190. package/dist/transform-BC39AgQF.mjs +28 -0
  191. package/dist/{transform-DoTyyXAu.mjs → transform-CtqB1WYo.mjs} +2 -2
  192. package/dist/{transform-D3QX0jxA.mjs → transform-DiW7bREn.mjs} +68 -5
  193. package/dist/{transform-job-50GZHhKH.mjs → transform-job-AaMZRxAq.mjs} +1 -1
  194. package/dist/{transform-job-DRrK28IH.mjs → transform-job-CCguL6LP.mjs} +41 -4
  195. package/dist/transform-job-D-zUFmZU.mjs +22 -0
  196. package/dist/{transform-tag-_tgwlsdB.mjs → transform-tag-CP7FRU5G.mjs} +5 -5
  197. package/dist/transform-test-BjjCQ2xm.mjs +169 -0
  198. package/dist/transform-test-CKNQS_kC.mjs +16 -0
  199. package/dist/transform-test-gzDcbypy.mjs +25 -0
  200. package/dist/{transforms-oU4zizbO.mjs → transforms-DDSNP4eL.mjs} +7 -7
  201. package/dist/{tree-CH-f3bjP.mjs → tree-CAnMS2dm.mjs} +4 -5
  202. package/dist/{unpublish-BUl9RU5C.mjs → unpublish-DF1XQMWJ.mjs} +4 -7
  203. package/dist/{update-BZPllQoR.mjs → update-BS1yiwOO.mjs} +5 -5
  204. package/dist/{update-CO4m4wH3.mjs → update-Bb89y-0M.mjs} +8 -8
  205. package/dist/{update-C4YJQFDS.mjs → update-BbiVvdm1.mjs} +7 -7
  206. package/dist/{update-BCS5FxKr.mjs → update-BcdLQu7-.mjs} +9 -9
  207. package/dist/{update-cYkvbqK8.mjs → update-BjcWwrPc.mjs} +5 -5
  208. package/dist/{update-tX9mKBN_.mjs → update-BoJJ6Gel.mjs} +9 -9
  209. package/dist/{update-CHNSUHK4.mjs → update-C09GGTjN.mjs} +5 -5
  210. package/dist/{update-BzMDeZiU.mjs → update-C33R41eM.mjs} +7 -7
  211. package/dist/{update-CmDTljK-.mjs → update-C6KQZMDF.mjs} +7 -7
  212. package/dist/{update-bD_Jh5-s.mjs → update-CFqdElFO.mjs} +6 -6
  213. package/dist/{update-CVPAwJaH.mjs → update-CHsXoUJQ.mjs} +6 -6
  214. package/dist/update-CaJO1rWk.mjs +41 -0
  215. package/dist/{update-CvOO8TED.mjs → update-CmXGZPCR.mjs} +7 -7
  216. package/dist/{update-D-NE60AV.mjs → update-DFJSD3_l.mjs} +7 -7
  217. package/dist/{update-Nfi44RrE.mjs → update-DOeBAoul.mjs} +6 -6
  218. package/dist/{update-BiFDBcEH.mjs → update-DiowA7ud.mjs} +5 -5
  219. package/dist/{update-dashcard-C3TuYO_k.mjs → update-dashcard-DSL6Bogg.mjs} +7 -7
  220. package/dist/{upgrade-DXMV4AyP.mjs → upgrade-CBxr91bH.mjs} +6 -8
  221. package/dist/upload-C3z5ZaXA.mjs +24 -0
  222. package/dist/upload-CSHcnonI.mjs +13 -0
  223. package/dist/upload-DTyF-p8X.mjs +39 -0
  224. package/dist/upload-Do2PBSeH.mjs +23 -0
  225. package/dist/{uuid-BJkDWj9p.mjs → uuid-CwEbjDp8.mjs} +3 -4
  226. package/dist/{validate-BWchyW0V.mjs → validate-EAB-1EkK.mjs} +1 -1
  227. package/dist/{validate-query-DaGYSmpQ.mjs → validate-query-CQG86147.mjs} +2 -3
  228. package/dist/{values-Dxf1JEoA.mjs → values-69IZEVXu.mjs} +6 -6
  229. package/dist/{verify-K96rItG5.mjs → verify-Dg5YBI0l.mjs} +3 -18
  230. package/dist/{wait-DoMDH226.mjs → wait-DVXEJXd3.mjs} +7 -10
  231. package/dist/{wait-flags-DWEF9tX4.mjs → wait-flags-CkRgnfww.mjs} +2 -2
  232. package/dist/{window-BkvrP0gB.mjs → window-DSb1tqSe.mjs} +1 -1
  233. package/package.json +1 -1
  234. package/skill-data/core/SKILL.md +31 -14
  235. package/skill-data/dashboard/SKILL.md +2 -2
  236. package/skill-data/data-workflow/references/building-clean-tables.md +6 -2
  237. package/skill-data/data-workflow/references/reusable-definitions.md +11 -3
  238. package/skill-data/document/SKILL.md +4 -1
  239. package/skill-data/git-sync/SKILL.md +5 -0
  240. package/skill-data/mbql/SKILL.md +1 -1
  241. package/skill-data/mbql/references/operators.md +20 -15
  242. package/skill-data/metadata/SKILL.md +1 -1
  243. package/skill-data/metadata/references/semantic-types.md +7 -1
  244. package/skill-data/native-sql/references/template-tags.md +6 -2
  245. package/skill-data/notification/SKILL.md +7 -1
  246. package/skill-data/transform/SKILL.md +75 -3
  247. package/skill-data/transform-test-plan/SKILL.md +171 -0
  248. package/skill-data/transform-test-plan/references/checklist.md +81 -0
  249. package/skill-data/transform-test-plan/references/checks.md +259 -0
  250. package/skill-data/visualization/SKILL.md +11 -3
  251. package/skill-data/visualization/references/settings.md +6 -4
  252. package/skills/metabase-cli/SKILL.md +1 -1
  253. package/dist/card-CHI2bmds.mjs +0 -24
  254. package/dist/client-BqhzKdLM.mjs +0 -2194
  255. package/dist/collection-CY0AB99E.mjs +0 -20
  256. package/dist/document-BbskZPTT.mjs +0 -19
  257. package/dist/get-CvI--9S_.mjs +0 -80
  258. package/dist/git-sync-MQQYRYLg.mjs +0 -28
  259. package/dist/library-ClLgrAXy.mjs +0 -19
  260. package/dist/list-UhpKG6_m.mjs +0 -98
  261. package/dist/network-error-CEb9ymDW.mjs +0 -423
  262. package/dist/predicates-Bkm2IoeX.mjs +0 -170
  263. package/dist/skills-DTCrMcix.mjs +0 -216
  264. package/dist/snippet-DRwKb2x7.mjs +0 -19
  265. package/dist/timeline-xlDbEKWg.mjs +0 -21
  266. package/dist/transform-Bs0EWijQ.mjs +0 -28
  267. package/dist/transform-job-BcLChRup.mjs +0 -22
  268. package/dist/upload-CH632qW6.mjs +0 -46
  269. package/dist/upload-Dey_8rLf.mjs +0 -13
@@ -1,8 +1,8 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { r as parseEnum, t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { r as DatabaseGetInclude, t as Database } from "./database-C8G6ZKG0.mjs";
5
- import { n as databaseView } from "./database-B19qlLKZ.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { r as parseEnum, t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { r as DatabaseGetInclude, t as Database } from "./database-JtHTqSpq.mjs";
5
+ import { n as databaseView } from "./database-C3E9PZSx.mjs";
6
6
  //#region src/commands/db/hints.ts
7
7
  function fullRollupOversizeHint(dbId) {
8
8
  return `this database is too large for a full rollup — get the table map with \`mb db get ${dbId} --include tables\`, then fetch fields per table of interest with \`mb table fields <table-id>\``;
@@ -22,7 +22,7 @@ var get_default = defineMetabaseCommand({
22
22
  description: "Get a database by id"
23
23
  },
24
24
  details: "`--include tables` returns the table map (id, name, schema, description per table) — one call that fits most databases. `--include tables.fields` is the full rollup; on all but small databases prefer the map plus `mb table fields <table-id>` per table of interest.",
25
- capabilities: { minVersion: 58 },
25
+ requires: ["database.get"],
26
26
  args: {
27
27
  ...outputFlags,
28
28
  ...profileFlag,
@@ -1,15 +1,15 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { r as Collection } from "./collection-CfulNRBG.mjs";
4
- import { n as collectionView } from "./collection-CGoVLvcD.mjs";
5
- import { t as parseCollectionRef } from "./parse-ref-ibKVB0J4.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { r as Collection } from "./collection-BxdPxD38.mjs";
4
+ import { n as collectionView } from "./collection-DYM0p3Xl.mjs";
5
+ import { t as parseCollectionRef } from "./parse-ref-DTDld_LJ.mjs";
6
6
  //#region src/commands/collection/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a collection by id, 21-char entity id, or \"root\"/\"trash\""
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["collection.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -0,0 +1,93 @@
1
+ import { B as listFlags, E as warn, H as outputFlags, K as listEnvelopeSchemaWithExtras, Q as ConfigError, U as profileFlag, f as renderListWithExtras, h as writeText } from "./cli.mjs";
2
+ import { a as readCachedServerProfile, l as resolveProfileName, n as parseCsv, t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { n as windowList } from "./window-DSb1tqSe.mjs";
4
+ import { a as readSkillContent, i as loadVisibleSkills, o as selectForProfile, r as loadAllSkills, s as selectSkillsByNames, t as SkillContent } from "./skills-PjjRtYqi.mjs";
5
+ import { i as unfilteredFlag, r as skillFilterNotices, t as UnavailableSkills } from "./skill-list-Bucy7UE2.mjs";
6
+ //#region src/commands/skills/get.ts
7
+ const SkillGetEnvelope = listEnvelopeSchemaWithExtras(SkillContent, { unavailable: UnavailableSkills });
8
+ const SKILL_OVERSIZE_HINT = "a skill body is indivisible — pass --max-bytes 0 to print it whole, or `mb skills path <name>` to read it from disk";
9
+ const skillContentView = {
10
+ compactPick: SkillContent,
11
+ tableColumns: [{
12
+ key: "name",
13
+ label: "Name"
14
+ }, {
15
+ key: "description",
16
+ label: "Description"
17
+ }]
18
+ };
19
+ var get_default = defineMetabaseCommand({
20
+ meta: {
21
+ name: "get",
22
+ description: "Print one or more skills' SKILL.md content, as the profile's server can use it: a skill it lacks the features for is reported under `unavailable`, and a section it cannot use is left out. Pass comma-separated names, or --all for every non-hidden skill. --unfiltered prints the selection as written, regardless of the server. --full includes references and templates."
23
+ },
24
+ requires: null,
25
+ args: {
26
+ ...outputFlags,
27
+ ...listFlags,
28
+ ...profileFlag,
29
+ names: {
30
+ type: "positional",
31
+ description: "Skill name (or comma-separated list). Omit to combine with --all for every non-hidden skill.",
32
+ required: false
33
+ },
34
+ all: {
35
+ type: "boolean",
36
+ description: "Every non-hidden skill"
37
+ },
38
+ ...unfilteredFlag
39
+ },
40
+ outputSchema: SkillGetEnvelope,
41
+ examples: [
42
+ "mb skills get core",
43
+ "mb skills get core --full",
44
+ "mb skills get git-sync,transform --json",
45
+ "mb skills get --all --json",
46
+ "mb skills get transform --unfiltered"
47
+ ],
48
+ async run({ args, ctx }) {
49
+ const profileName = resolveProfileName(args.profile);
50
+ const cached = args.unfiltered === true ? null : await readCachedServerProfile(profileName);
51
+ const profile = cached !== null && cached.kind === "found" ? cached.profile : null;
52
+ const selection = selectForProfile(pickSkills({
53
+ names: args.names,
54
+ all: args.all === true
55
+ }), profile);
56
+ const envelope = windowList(selection.skills.map((info) => readSkillContent(info, {
57
+ includeExtras: ctx.full,
58
+ profile
59
+ })), ctx.range);
60
+ if (ctx.format === "json") {
61
+ renderListWithExtras(envelope, { unavailable: selection.unavailable }, skillContentView, {
62
+ ...ctx,
63
+ oversizeHint: SKILL_OVERSIZE_HINT
64
+ });
65
+ return;
66
+ }
67
+ if (envelope.data.length > 0) writeText(renderText(envelope.data, ctx.full));
68
+ for (const notice of skillFilterNotices(selection.unavailable, {
69
+ profileName,
70
+ cached
71
+ })) warn(notice);
72
+ }
73
+ });
74
+ function pickSkills({ names, all }) {
75
+ if (names !== void 0) return selectSkillsByNames(loadAllSkills(), parseCsv(names));
76
+ if (all) return loadVisibleSkills();
77
+ throw new ConfigError("provide a skill name (comma-separated for multiple) or --all");
78
+ }
79
+ function renderText(payloads, includeExtras) {
80
+ return payloads.map((payload) => renderTextSection(payload, includeExtras)).join("\n\n");
81
+ }
82
+ function renderTextSection(payload, includeExtras) {
83
+ const parts = [payload.body.trimEnd()];
84
+ if (!includeExtras) return parts.join("\n\n");
85
+ for (const ref of payload.references) parts.push(extraFileHeader(payload.name, ref.path), ref.content.trimEnd());
86
+ for (const tpl of payload.templates) parts.push(extraFileHeader(payload.name, tpl.path), tpl.content.trimEnd());
87
+ return parts.join("\n\n");
88
+ }
89
+ function extraFileHeader(skillName, relPath) {
90
+ return `=== ${skillName}/${relPath} ===`;
91
+ }
92
+ //#endregion
93
+ export { get_default as default };
@@ -1,6 +1,6 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
4
  import { t as Timeline } from "./timeline-CCSU2qOS.mjs";
5
5
  import { n as timelineView } from "./timeline-uDCmwGFT.mjs";
6
6
  //#region src/commands/timeline/get.ts
@@ -9,7 +9,7 @@ var get_default = defineMetabaseCommand({
9
9
  name: "get",
10
10
  description: "Get a timeline by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["timeline.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,15 +1,15 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { t as Transform } from "./transform-D3QX0jxA.mjs";
5
- import { n as transformView } from "./transform-DoTyyXAu.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { t as Transform } from "./transform-DiW7bREn.mjs";
5
+ import { n as transformView } from "./transform-CtqB1WYo.mjs";
6
6
  //#region src/commands/transform/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a transform by id"
11
11
  },
12
- capabilities: { minVersion: 59 },
12
+ requires: ["transform.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,15 +1,15 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { t as TransformJob } from "./transform-job-DRrK28IH.mjs";
5
- import { t as transformJobView } from "./transform-job-50GZHhKH.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { t as TransformJob } from "./transform-job-CCguL6LP.mjs";
5
+ import { t as transformJobView } from "./transform-job-AaMZRxAq.mjs";
6
6
  //#region src/commands/transform-job/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a transform job by id"
11
11
  },
12
- capabilities: { minVersion: 59 },
12
+ requires: ["transformJob.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,6 +1,6 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
4
  import { i as TimelineEvent } from "./timeline-CCSU2qOS.mjs";
5
5
  import { t as timelineEventView } from "./timeline-uDCmwGFT.mjs";
6
6
  //#region src/commands/timeline-event/get.ts
@@ -9,7 +9,7 @@ var get_default = defineMetabaseCommand({
9
9
  name: "get",
10
10
  description: "Get a timeline event by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["timelineEvent.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,15 +1,15 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { t as Field } from "./field-Cr2DPUG9.mjs";
5
- import { r as fieldView } from "./field-BPsNa-TO.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { t as Field } from "./field-CcN4oZy6.mjs";
5
+ import { r as fieldView } from "./field-fDtIrY6D.mjs";
6
6
  //#region src/commands/field/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a field by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["field.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,7 +1,7 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as Library } from "./library-ClLgrAXy.mjs";
4
- import { t as libraryView } from "./library-DfYAT2Ep.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as Library } from "./library-BPIzb3K_.mjs";
4
+ import { t as libraryView } from "./library-PGCfm0UA.mjs";
5
5
  //#region src/commands/library/get.ts
6
6
  var get_default = defineMetabaseCommand({
7
7
  meta: {
@@ -9,10 +9,7 @@ var get_default = defineMetabaseCommand({
9
9
  description: "Show the Library and its Data / Metrics collection ids"
10
10
  },
11
11
  details: "Reads the Library root and its child collections. Use the `library-data` child's id as the target for publishing tables (or just run `mb library publish`, which resolves it for you).",
12
- capabilities: {
13
- minVersion: 59,
14
- tokenFeature: "library"
15
- },
12
+ requires: ["library.get"],
16
13
  args: {
17
14
  ...outputFlags,
18
15
  ...profileFlag,
@@ -1,6 +1,6 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
4
  import { t as Snippet } from "./snippet-CyKAgIZl.mjs";
5
5
  import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
6
6
  //#region src/commands/snippet/get.ts
@@ -9,7 +9,7 @@ var get_default = defineMetabaseCommand({
9
9
  name: "get",
10
10
  description: "Get a native query snippet by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["snippet.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -0,0 +1,32 @@
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { t as TransformTest } from "./transform-test-BjjCQ2xm.mjs";
5
+ import { t as transformTestView } from "./transform-test-gzDcbypy.mjs";
6
+ //#region src/commands/transform-test/get.ts
7
+ var get_default = defineMetabaseCommand({
8
+ meta: {
9
+ name: "get",
10
+ description: "Get a transform test by id"
11
+ },
12
+ details: "The compact form carries the id, transform, name and description. Pass --full for the `inputs` and `expectations` themselves, which is also the body to edit and send back to `update`.",
13
+ requires: ["transformTest.get"],
14
+ args: {
15
+ ...outputFlags,
16
+ ...profileFlag,
17
+ ...connectionFlags,
18
+ id: {
19
+ type: "positional",
20
+ description: "Transform test id",
21
+ required: true
22
+ }
23
+ },
24
+ outputSchema: TransformTest,
25
+ examples: ["mb transform-test get 1", "mb transform-test get 1 --full --json"],
26
+ async run({ args, ctx, getClient }) {
27
+ const id = parseId(args.id);
28
+ renderItem(await (await getClient()).transformTest.get(id), transformTestView, ctx);
29
+ }
30
+ });
31
+ //#endregion
32
+ export { get_default as default };
@@ -1,8 +1,8 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
2
  import { n as Notification } from "./notification-DaA4bBHW.mjs";
3
- import { t as notificationView } from "./notification-Fcq1fIPw.mjs";
4
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
5
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
3
+ import { t as notificationView } from "./notification-DVrLkjFT.mjs";
4
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
5
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
6
6
  //#region src/commands/alert/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
@@ -10,7 +10,7 @@ var get_default = defineMetabaseCommand({
10
10
  description: "Get a question alert by id"
11
11
  },
12
12
  details: "`--full` includes the hydrated card the alert watches, alongside its schedules and handlers.",
13
- capabilities: { minVersion: 58 },
13
+ requires: ["notification.get"],
14
14
  args: {
15
15
  ...outputFlags,
16
16
  ...profileFlag,
@@ -1,6 +1,6 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
4
  import { t as Segment } from "./segment-OsrbUDzw.mjs";
5
5
  import { t as segmentView } from "./segment-C_gl5ag6.mjs";
6
6
  //#region src/commands/segment/get.ts
@@ -9,7 +9,7 @@ var get_default = defineMetabaseCommand({
9
9
  name: "get",
10
10
  description: "Get a segment by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["segment.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,15 +1,15 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { i as DashboardDetail } from "./dashboard-BCpSq_G-.mjs";
5
- import { t as dashboardView } from "./dashboard-CsIFFpzK.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { a as DashboardDetail } from "./dashboard-D0hwTC-f.mjs";
5
+ import { t as dashboardView } from "./dashboard-DgK81azj.mjs";
6
6
  //#region src/commands/dashboard/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a dashboard by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["dashboard.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,15 +1,15 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { t as Pulse } from "./pulse-BmsDenXm.mjs";
5
- import { t as pulseView } from "./pulse-DhG6I9mI.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { t as Pulse } from "./pulse-Dz0ocv0l.mjs";
5
+ import { t as pulseView } from "./pulse-x0gFxWfG.mjs";
6
6
  //#region src/commands/subscription/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a dashboard subscription by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["pulse.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -1,15 +1,15 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { i as TransformRun } from "./transform-D3QX0jxA.mjs";
5
- import { t as transformRunView } from "./transform-DoTyyXAu.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { o as TransformRun } from "./transform-DiW7bREn.mjs";
5
+ import { t as transformRunView } from "./transform-CtqB1WYo.mjs";
6
6
  //#region src/commands/transform/get-run.ts
7
7
  var get_run_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get-run",
10
10
  description: "Get a transform run by run id (not the transform id)"
11
11
  },
12
- capabilities: { minVersion: 59 },
12
+ requires: ["transform.getRun"],
13
13
  details: "The positional id is a RUN id (from `transform runs`), not a transform id. To fetch a transform itself, use `transform get <id>`.",
14
14
  args: {
15
15
  ...outputFlags,
@@ -1,8 +1,8 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { r as parseEnum, t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
4
- import { r as TableGetInclude, t as Table } from "./table-CeeTJgQb.mjs";
5
- import { t as tableView } from "./table-CsIJNPFf.mjs";
1
+ import { H as outputFlags, U as profileFlag, u as renderItem, z as connectionFlags } from "./cli.mjs";
2
+ import { r as parseEnum, t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { t as parseId } from "./parse-id-CYZAIB58.mjs";
4
+ import { a as TableGetInclude, t as Table } from "./table-DfuY0N8e.mjs";
5
+ import { t as tableView } from "./table-C6h4tIRw.mjs";
6
6
  //#region src/commands/table/hints.ts
7
7
  function tableFieldsOversizeHint(tableId) {
8
8
  return `use \`mb table fields ${tableId}\` — list output truncates gracefully instead of failing`;
@@ -14,7 +14,7 @@ var get_default = defineMetabaseCommand({
14
14
  name: "get",
15
15
  description: "Get a table by id; pass --include fields to bundle hydrated fields"
16
16
  },
17
- capabilities: { minVersion: 58 },
17
+ requires: ["table.queryMetadata", "table.get"],
18
18
  args: {
19
19
  ...outputFlags,
20
20
  ...profileFlag,
@@ -0,0 +1,28 @@
1
+ import { t as defineCommandGroup } from "./group-YQQ5GIcP.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-DiP093Vm.mjs").then((mod) => mod.default),
12
+ "is-dirty": () => import("./is-dirty-Dfk2Xf-W.mjs").then((mod) => mod.default),
13
+ "has-remote-changes": () => import("./has-remote-changes-zCtdEGs-.mjs").then((mod) => mod.default),
14
+ dirty: () => import("./dirty-CIZeASXG.mjs").then((mod) => mod.default),
15
+ "current-task": () => import("./current-task-cCmLLVcv.mjs").then((mod) => mod.default),
16
+ "cancel-task": () => import("./cancel-task-p09LCbgs.mjs").then((mod) => mod.default),
17
+ wait: () => import("./wait-DVXEJXd3.mjs").then((mod) => mod.default),
18
+ import: () => import("./import-DkAy_Xi8.mjs").then((mod) => mod.default),
19
+ export: () => import("./export-DeuLpt3x.mjs").then((mod) => mod.default),
20
+ stash: () => import("./stash-C6BEM6_u.mjs").then((mod) => mod.default),
21
+ branches: () => import("./branches-CjMIMKse.mjs").then((mod) => mod.default),
22
+ "create-branch": () => import("./create-branch-Bs6BlkgQ.mjs").then((mod) => mod.default),
23
+ "add-collection": () => import("./add-collection-BEg-1pt8.mjs").then((mod) => mod.default),
24
+ "remove-collection": () => import("./remove-collection-B0E0dlZt.mjs").then((mod) => mod.default)
25
+ }
26
+ });
27
+ //#endregion
28
+ export { git_sync_default as default };
@@ -76,6 +76,23 @@ const SyncRemoteChanges = z.object({
76
76
  local_version: z.string().nullable(),
77
77
  cached: z.boolean()
78
78
  });
79
+ const SyncMergeSummary = z.object({
80
+ added: z.number().int(),
81
+ updated: z.number().int(),
82
+ removed: z.number().int()
83
+ });
84
+ const SyncForcePushCasualties = z.object({
85
+ deleted: z.array(z.string()),
86
+ overwritten: z.array(z.string())
87
+ });
88
+ const SyncExportPreflight = z.object({
89
+ has_changes: z.boolean(),
90
+ clean: z.boolean(),
91
+ conflicts: z.array(z.string()),
92
+ summary: SyncMergeSummary,
93
+ force_push_casualties: SyncForcePushCasualties,
94
+ reason: z.literal("history-rewritten").nullable()
95
+ });
79
96
  const SyncBranchCreated = z.object({
80
97
  status: z.literal("success"),
81
98
  message: z.string()
@@ -101,4 +118,4 @@ const SyncStashResult = z.object({
101
118
  final: SyncTask.nullable().optional()
102
119
  });
103
120
  //#endregion
104
- export { SyncImportResult as a, SyncStashResult as c, isSyncTaskFailed as d, isSyncTaskTerminal as f, SyncExportResult as i, SyncTask as l, SyncDirtyItem as n, SyncRemoteChanges as o, SyncDirtyItemCompact as r, SyncSettingsUpdateResult as s, SyncBranchCreated as t, SyncTaskCompact as u };
121
+ export { SyncExportResult as a, SyncSettingsUpdateResult as c, SyncTaskCompact as d, isSyncTaskFailed as f, SyncExportPreflight as i, SyncStashResult as l, SyncDirtyItem as n, SyncImportResult as o, isSyncTaskTerminal as p, SyncDirtyItemCompact as r, SyncRemoteChanges as s, SyncBranchCreated as t, SyncTask as u };
@@ -1,4 +1,4 @@
1
- import { a as SyncImportResult, c as SyncStashResult, i as SyncExportResult, o as SyncRemoteChanges, r as SyncDirtyItemCompact, s as SyncSettingsUpdateResult, t as SyncBranchCreated, u as SyncTaskCompact } from "./git-sync-BDnxPrqU.mjs";
1
+ import { a as SyncExportResult, c as SyncSettingsUpdateResult, d as SyncTaskCompact, l as SyncStashResult, o as SyncImportResult, r as SyncDirtyItemCompact, s as SyncRemoteChanges, t as SyncBranchCreated } from "./git-sync-BwBRmEhE.mjs";
2
2
  //#region src/output/views/git-sync.ts
3
3
  const syncTaskView = {
4
4
  compactPick: SyncTaskCompact,
@@ -1,4 +1,4 @@
1
- import { k as setMetabaseAugment } from "./cli.mjs";
1
+ import { I as setMetabaseAugment } from "./cli.mjs";
2
2
  import { defineCommand } from "citty";
3
3
  //#region src/commands/group.ts
4
4
  function defineCommandGroup(def) {
@@ -19,7 +19,7 @@ function defineCommandGroup(def) {
19
19
  skills: def.skills ?? [],
20
20
  inputSchema: null,
21
21
  outputSchema: null,
22
- capabilities: null
22
+ requires: null
23
23
  });
24
24
  return cmd;
25
25
  }
@@ -1,17 +1,14 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { o as SyncRemoteChanges } from "./git-sync-BDnxPrqU.mjs";
4
- import { a as syncRemoteChangesView } from "./git-sync-DxD_ng48.mjs";
1
+ import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { s as SyncRemoteChanges } from "./git-sync-BwBRmEhE.mjs";
4
+ import { a as syncRemoteChangesView } from "./git-sync-TjX1r_wF.mjs";
5
5
  //#region src/commands/git-sync/has-remote-changes.ts
6
6
  var has_remote_changes_default = defineMetabaseCommand({
7
7
  meta: {
8
8
  name: "has-remote-changes",
9
9
  description: "Check whether the remote branch has unimported changes"
10
10
  },
11
- capabilities: {
12
- minVersion: 60,
13
- tokenFeature: "remote_sync"
14
- },
11
+ requires: ["gitSync.hasRemoteChanges"],
15
12
  args: {
16
13
  ...outputFlags,
17
14
  ...profileFlag,
@@ -1,19 +1,16 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { a as SyncImportResult } from "./git-sync-BDnxPrqU.mjs";
4
- import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-DWEF9tX4.mjs";
5
- import { i as syncImportView } from "./git-sync-DxD_ng48.mjs";
6
- import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-BACcrs0i.mjs";
1
+ import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
+ import { o as SyncImportResult } from "./git-sync-BwBRmEhE.mjs";
4
+ import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-CkRgnfww.mjs";
5
+ import { i as syncImportView } from "./git-sync-TjX1r_wF.mjs";
6
+ import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-BXeWuARG.mjs";
7
7
  //#region src/commands/git-sync/import.ts
8
8
  var import_default = defineMetabaseCommand({
9
9
  meta: {
10
10
  name: "import",
11
11
  description: "Import content from the configured git remote into Metabase"
12
12
  },
13
- capabilities: {
14
- minVersion: 60,
15
- tokenFeature: "remote_sync"
16
- },
13
+ requires: ["gitSync.import"],
17
14
  args: {
18
15
  ...outputFlags,
19
16
  ...profileFlag,
@@ -1,4 +1,4 @@
1
- import { i as ConfigError, p as isFileNotFoundError } from "./predicates-Bkm2IoeX.mjs";
1
+ import { Q as ConfigError, st as isFileNotFoundError } from "./cli.mjs";
2
2
  import { readFile } from "node:fs/promises";
3
3
  import { setTimeout } from "node:timers/promises";
4
4
  //#region src/runtime/input.ts
@@ -1,5 +1,5 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
1
+ import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CwhhhwcB.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/commands/git-sync/is-dirty.ts
5
5
  const IsDirtyResult = z.object({ is_dirty: z.boolean() });
@@ -15,10 +15,7 @@ var is_dirty_default = defineMetabaseCommand({
15
15
  name: "is-dirty",
16
16
  description: "Check whether Metabase has unsynced local changes"
17
17
  },
18
- capabilities: {
19
- minVersion: 60,
20
- tokenFeature: "remote_sync"
21
- },
18
+ requires: ["gitSync.isDirty"],
22
19
  args: {
23
20
  ...outputFlags,
24
21
  ...profileFlag,