@metabase/cli 0.3.1-alpha.transform-tests.3fbcf8b → 0.3.1-alpha.transform-tests.d9ed765

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/dist/{add-collection-C-XJPp3F.mjs → add-collection-v_uw_8VC.mjs} +6 -9
  2. package/dist/{alert-Klz8Bhst.mjs → alert-2MDhiuxT.mjs} +7 -7
  3. package/dist/{alerts-Bp2vByJf.mjs → alerts-BDoIryWj.mjs} +7 -7
  4. package/dist/{append-D16_s1HW.mjs → append-CeHVEN3m.mjs} +5 -5
  5. package/dist/{archive-RzzXt2V0.mjs → archive-B9DiDia8.mjs} +6 -6
  6. package/dist/{archive-nDvHMzTv.mjs → archive-BMQBzQMw.mjs} +4 -4
  7. package/dist/{archive-C9iNjXcI.mjs → archive-BU3VZ1An.mjs} +5 -5
  8. package/dist/{archive-CA-HIfQq.mjs → archive-BopUoNoz.mjs} +4 -4
  9. package/dist/{archive-BOJUGwyL.mjs → archive-BuHy5_kr.mjs} +4 -4
  10. package/dist/{archive-Q_qUuYh8.mjs → archive-CVTpSQ0H.mjs} +6 -6
  11. package/dist/{archive-Dd7ZTibw.mjs → archive-CYaJZhBs.mjs} +4 -4
  12. package/dist/{archive-vzu8ghZZ.mjs → archive-CxzoUCE_.mjs} +6 -6
  13. package/dist/{archive-D4nGMs8A.mjs → archive-D5QNFMmn.mjs} +4 -4
  14. package/dist/{archive-Bj4MjbJY.mjs → archive-IBEbIm_S2.mjs} +6 -6
  15. package/dist/{archive-lDnTIypd.mjs → archive-M2_D7zAj.mjs} +6 -6
  16. package/dist/{auth-kyPQfiND.mjs → auth-DuGPC1Q0.mjs} +5 -5
  17. package/dist/{body-DxRSAMNC.mjs → body-hAwPMqBg.mjs} +3 -3
  18. package/dist/{branches-QixvzIpl.mjs → branches-CIP60haa.mjs} +4 -7
  19. package/dist/{cancel-CPStS4zJ.mjs → cancel-C9hrQ1yg.mjs} +4 -4
  20. package/dist/{cancel-task--cuSISnl.mjs → cancel-task-BeviniVd.mjs} +5 -8
  21. package/dist/{card-zyUkr2nS.mjs → card-CEkp1mcI.mjs} +1 -1
  22. package/dist/card-DqPrL79i.mjs +24 -0
  23. package/dist/{card-DZxRmver.mjs → card-voh1k4hl.mjs} +14 -11
  24. package/dist/{cards-CNbV8aGO.mjs → cards-CvWT-tKQ.mjs} +7 -7
  25. package/dist/cli.mjs +567 -70
  26. package/dist/client-yPhazV6T.mjs +4093 -0
  27. package/dist/collection-BsXk1V41.mjs +20 -0
  28. package/dist/{collection-CfulNRBG.mjs → collection-BxdPxD38.mjs} +1 -1
  29. package/dist/{collection-CGoVLvcD.mjs → collection-DYM0p3Xl.mjs} +1 -1
  30. package/dist/{collection-namespace-CEoQ7G08.mjs → collection-namespace-C5SNf6Yw.mjs} +2 -2
  31. package/dist/{content-translation-CxTabpLF.mjs → content-translation-BNYQ8fJ3.mjs} +3 -3
  32. package/dist/{create-CEP4Jsrd.mjs → create-BVd4Y4py2.mjs} +6 -6
  33. package/dist/{create-ku05K1Oj.mjs → create-BZyLtvg5.mjs} +6 -6
  34. package/dist/{create-UxWtLwXT.mjs → create-BsiUuwSb.mjs} +5 -5
  35. package/dist/{create-WIIp7MVV.mjs → create-C1fVgFBd.mjs} +4 -4
  36. package/dist/{create-M8qXs24L.mjs → create-C4U9DGDG.mjs} +7 -7
  37. package/dist/{create-BTvSwLws.mjs → create-CHn7P-Bz.mjs} +5 -5
  38. package/dist/{create-BikaTHCw.mjs → create-CL4xkZ4j.mjs} +6 -6
  39. package/dist/{create-CYhsYOOJ.mjs → create-CcOTodqT.mjs} +4 -4
  40. package/dist/{create-BGV7ejai.mjs → create-Cmgq35ZB.mjs} +4 -4
  41. package/dist/{create-U15wd8_9.mjs → create-DPb3b69Y.mjs} +4 -4
  42. package/dist/{create-DMLjSEkF.mjs → create-DRyA-nuP.mjs} +5 -5
  43. package/dist/{create-CtDaASGO.mjs → create-DTfaHMNw.mjs} +6 -6
  44. package/dist/{create-BGy4L_yh.mjs → create-Db3QVXRi.mjs} +7 -7
  45. package/dist/{create-BsvpUxJq.mjs → create-DqKDw2zq.mjs} +5 -8
  46. package/dist/{create-CsABLrSI.mjs → create-S0jXAtl2.mjs} +11 -7
  47. package/dist/{create-BMokmmLp2.mjs → create-Z_gzD_p-2.mjs} +8 -8
  48. package/dist/{create-branch-Bkq9rtf7.mjs → create-branch-hYwnfY8X.mjs} +5 -9
  49. package/dist/{csv-GincCch9.mjs → csv-DOEqRG95.mjs} +5 -5
  50. package/dist/{current-task-CbnNWQ7H.mjs → current-task-DVo5aDfA.mjs} +5 -8
  51. package/dist/{dashboard-CKUR8ZpQ.mjs → dashboard-D0hwTC-f.mjs} +11 -2
  52. package/dist/{dashboard-ReNaou5J.mjs → dashboard-D8Yjjwfr.mjs} +10 -10
  53. package/dist/{dashboard-BlbNszi8.mjs → dashboard-DgK81azj.mjs} +1 -1
  54. package/dist/{database-B19qlLKZ.mjs → database-C3E9PZSx.mjs} +1 -1
  55. package/dist/{database-C8G6ZKG0.mjs → database-JtHTqSpq.mjs} +1 -1
  56. package/dist/{db-2hSYsqHk.mjs → db-ntq1NYVT.mjs} +7 -7
  57. package/dist/{delete-Bv3_SIqh.mjs → delete-BQWk6Ogb.mjs} +5 -5
  58. package/dist/{delete-CZqleA9Q.mjs → delete-C2iVm203.mjs} +5 -5
  59. package/dist/{delete-C1YmyeVy.mjs → delete-CPzdQGKf.mjs} +5 -5
  60. package/dist/{delete-DNsY94Ok.mjs → delete-CW8xJwDm.mjs} +5 -5
  61. package/dist/{delete-BEPw7WRT.mjs → delete-CZqaDxkf.mjs} +5 -5
  62. package/dist/{delete-B2wmUpj_.mjs → delete-Qsf-OKkl.mjs} +5 -5
  63. package/dist/{delete-runtime-D74s6vhu.mjs → delete-runtime-BKEzJn22.mjs} +1 -2
  64. package/dist/{delete-table-DySwoEaq.mjs → delete-table-DLufNvzW.mjs} +5 -5
  65. package/dist/{dependencies-ygT6uMu4.mjs → dependencies-BGtd-eIR.mjs} +7 -7
  66. package/dist/{dirty-BkiHZ8gb.mjs → dirty-BiiJ5Ngh.mjs} +6 -9
  67. package/dist/{document-Cd2mmqCp.mjs → document-BHpLJbKU.mjs} +5 -0
  68. package/dist/document-BiS-U56S.mjs +19 -0
  69. package/dist/{document-D6OybtP2.mjs → document-CA0Q6lqu.mjs} +1 -1
  70. package/dist/{download-Chr-YNTG.mjs → download-DrcL0yRr.mjs} +3 -6
  71. package/dist/{eid-BvY-YGpN.mjs → eid-Bn3Impnq.mjs} +4 -5
  72. package/dist/{events-B01P0G7C.mjs → events-CfnrXbim.mjs} +5 -5
  73. package/dist/{export-CG23iezf.mjs → export-CFK8cMvK.mjs} +7 -10
  74. package/dist/{field-Cr2DPUG9.mjs → field-CcN4oZy6.mjs} +16 -1
  75. package/dist/{field-DikmNcAt.mjs → field-CeP-41qf.mjs} +5 -5
  76. package/dist/{field-BPsNa-TO.mjs → field-fDtIrY6D.mjs} +1 -1
  77. package/dist/{fields-C9BF3jHL.mjs → fields-B3tJI4X2.mjs} +7 -7
  78. package/dist/{get-B3jvGI0b.mjs → get-3ymehUjQ.mjs} +6 -6
  79. package/dist/{get-gFM8-HHP.mjs → get-B9fPTBEQ.mjs} +5 -8
  80. package/dist/{get-PKhv8WUf.mjs → get-BFh5ctuV.mjs} +6 -6
  81. package/dist/{get-N5EUCDL0.mjs → get-BMZ3UoJz.mjs} +6 -6
  82. package/dist/{get-DZpRq_Fw.mjs → get-Be9oShms.mjs} +4 -4
  83. package/dist/{get-DvqYIBp5.mjs → get-BkTiIo_7.mjs} +4 -4
  84. package/dist/{get-Blbcl76m.mjs → get-C-E-I10i.mjs} +6 -6
  85. package/dist/{get-FJofgEPB.mjs → get-CIlXE4zy.mjs} +6 -6
  86. package/dist/{get-UW0DOjH5.mjs → get-Cqfb4zZM.mjs} +4 -4
  87. package/dist/{get-BtauixMx.mjs → get-Cxvi9pSj.mjs} +6 -6
  88. package/dist/{get-Buxkx-RX.mjs → get-D2Bt3r3M.mjs} +4 -4
  89. package/dist/{get-DdSB-fpR.mjs → get-DJDV3NMU.mjs} +5 -5
  90. package/dist/{get-DY-e5oP7.mjs → get-D_f0INnl.mjs} +6 -6
  91. package/dist/{get-BHpVRSbm.mjs → get-Diozf-D0.mjs} +6 -6
  92. package/dist/{get-C1V7vZse.mjs → get-Dl9WoeCd.mjs} +4 -4
  93. package/dist/{get-C99cjjD0.mjs → get-DlPhNHPX.mjs} +6 -6
  94. package/dist/{get-BYSFFlsd.mjs → get-DnVGJfW42.mjs} +6 -6
  95. package/dist/get-Dx4k6_Qt.mjs +93 -0
  96. package/dist/{get-CkMLxzVy.mjs → get-lRUl1Dnb.mjs} +4 -4
  97. package/dist/{get-CMMXBVff.mjs → get-pGqPQ0Of.mjs} +6 -6
  98. package/dist/{get-run-F7ARJeAD.mjs → get-run-DmtNpSbG.mjs} +6 -6
  99. package/dist/{git-sync-BDnxPrqU.mjs → git-sync-BwBRmEhE.mjs} +18 -1
  100. package/dist/{git-sync-DxD_ng48.mjs → git-sync-TjX1r_wF.mjs} +1 -1
  101. package/dist/git-sync-jvNlPu2I.mjs +28 -0
  102. package/dist/{group-DBM87IgC.mjs → group-YQQ5GIcP.mjs} +2 -2
  103. package/dist/{has-remote-changes-Bwyp8mc-.mjs → has-remote-changes-BS6jOb2-.mjs} +5 -8
  104. package/dist/{import-CPY8aM8d.mjs → import-Cur2I6Yc.mjs} +7 -10
  105. package/dist/{input-DH9i67x_.mjs → input-DEvkIjGr.mjs} +1 -1
  106. package/dist/{is-dirty-0F_UJY7Q.mjs → is-dirty-7Jo0tglq.mjs} +3 -6
  107. package/dist/{items-FUop0zGR.mjs → items-BBJSvqWt.mjs} +7 -7
  108. package/dist/{key-BEhqIzIQ.mjs → key-PYetuQ13.mjs} +1 -1
  109. package/dist/library-BPIzb3K_.mjs +81 -0
  110. package/dist/{library-DpOtb0E0.mjs → library-CpDosMc5.mjs} +5 -5
  111. package/dist/{library-DfYAT2Ep.mjs → library-PGCfm0UA.mjs} +1 -1
  112. package/dist/{list-B-74c1BD.mjs → list--Frwwg4i.mjs} +7 -7
  113. package/dist/{list-BASNYNJr.mjs → list-40V_8T3H.mjs} +4 -4
  114. package/dist/{list-xC99-2X0.mjs → list-BAO7rPNU.mjs} +4 -4
  115. package/dist/{list--B2EUWJg.mjs → list-BAaBsdMk.mjs} +6 -6
  116. package/dist/{list-rQ-6XSua.mjs → list-BCD9lkxc.mjs} +4 -4
  117. package/dist/{list-BQaXU1bp.mjs → list-BuZaFlV-.mjs} +4 -4
  118. package/dist/{list-Beoh2AYD.mjs → list-C7kqJAc8.mjs} +4 -4
  119. package/dist/{list-CGkgypYz.mjs → list-CBGsfTib.mjs} +7 -7
  120. package/dist/{list-Uc1OxV36.mjs → list-CFJyXUsF.mjs} +14 -13
  121. package/dist/{list-DfbsmsHv.mjs → list-CQJoLqy0.mjs} +7 -7
  122. package/dist/{list-DdFViPYS.mjs → list-CVs3TyU7.mjs} +6 -6
  123. package/dist/{list-DMlFbccD.mjs → list-CX2668xz.mjs} +6 -6
  124. package/dist/{list-ba7lI44w.mjs → list-CcyZu5Jp.mjs} +6 -6
  125. package/dist/{list-C2qxVTu7.mjs → list-DPvJihmj.mjs} +7 -7
  126. package/dist/{list-BQrk4Ua4.mjs → list-D_Kv8Ezq.mjs} +7 -7
  127. package/dist/{list-GyP4b_tU.mjs → list-DuZlYCTl.mjs} +5 -5
  128. package/dist/{list-Bqm0F1Y-.mjs → list-_6JwpPXA.mjs} +6 -6
  129. package/dist/{list-lzIKVtE9.mjs → list-bCtszwHJ.mjs} +4 -4
  130. package/dist/list-rojRNBu5.mjs +60 -0
  131. package/dist/{login-D5jt0q9K.mjs → login-BCxYB6ii.mjs} +15 -12
  132. package/dist/{logout-DViy0VzV.mjs → logout-BVEYg9pV.mjs} +3 -4
  133. package/dist/{measure-IPlonpqU.mjs → measure-DYmGuTVW.mjs} +6 -6
  134. package/dist/{notification-Fcq1fIPw.mjs → notification-DVrLkjFT.mjs} +1 -1
  135. package/dist/{parameter-DUKR8NXo.mjs → parameter-Celg0wZa.mjs} +1 -1
  136. package/dist/{parameter-values-CHyOCxmR.mjs → parameter-values-D4qte8qc.mjs} +5 -6
  137. package/dist/{parse-enum-D0Jfm_Bz.mjs → parse-enum-Dc0dMZ3P.mjs} +1 -1
  138. package/dist/{parse-id-CPINxy7h.mjs → parse-id-BSdAXN-r.mjs} +1 -1
  139. package/dist/{parse-ref-ibKVB0J4.mjs → parse-ref-DTDld_LJ.mjs} +1 -1
  140. package/dist/{path-bMZzUOVo.mjs → path-BNZf4ETt.mjs} +5 -5
  141. package/dist/{poll-75SvT7Zv.mjs → poll-CZeXepUQ.mjs} +2 -2
  142. package/dist/{preflight-CoF1Em99.mjs → preflight-BsT-Ik4Z.mjs} +3 -4
  143. package/dist/{process-DBOOrmET.mjs → process-CTrfxxaC.mjs} +1 -1
  144. package/dist/{publish-Cs-OUG6n.mjs → publish-3Qlrs4CC.mjs} +9 -9
  145. package/dist/{pulse-BmsDenXm.mjs → pulse-Dz0ocv0l.mjs} +1 -1
  146. package/dist/{pulse-DhG6I9mI.mjs → pulse-x0gFxWfG.mjs} +2 -2
  147. package/dist/{query-CEdmSEq8.mjs → query-B8MCziCM.mjs} +9 -10
  148. package/dist/{query-CpD46hL6.mjs → query-DxjE4Hq2.mjs} +10 -12
  149. package/dist/{query-result-DBDwk8TS.mjs → query-result-E4Q-Gra6.mjs} +1 -1
  150. package/dist/{remove-collection-DynsqkwG.mjs → remove-collection-CNWmp8C-.mjs} +6 -9
  151. package/dist/{render-CI93iP0I.mjs → render-MoT089RO.mjs} +13 -2
  152. package/dist/{replace-C6YqqCG9.mjs → replace-DOmUXCyk.mjs} +5 -5
  153. package/dist/{rescan-values-C6PB02uT.mjs → rescan-values-DpU_Ex0F.mjs} +6 -6
  154. package/dist/{run-C7PXBBEl.mjs → run-B8Vys-6V.mjs} +5 -5
  155. package/dist/{run-Cb86sH_c.mjs → run-CCPUWI0V.mjs} +6 -6
  156. package/dist/{run-CpmWoOGp.mjs → run-cyUFpMX3.mjs} +26 -14
  157. package/dist/{runs-CCRszsbB.mjs → runs-92XSK8ij.mjs} +7 -7
  158. package/dist/{runtime-BMJv4VOi.mjs → runtime-DzVkvFHY.mjs} +946 -246
  159. package/dist/{schema-tables-BQdFNy1B.mjs → schema-tables-lMGk2fyi.mjs} +7 -7
  160. package/dist/{schemas-CNAPFh4n.mjs → schemas-C83Q8dYY.mjs} +5 -5
  161. package/dist/{search-DFBwUc6d.mjs → search-BAXg-EJw.mjs} +2 -1
  162. package/dist/{search-BKVV6YtB.mjs → search-D6qBaNsw.mjs} +6 -6
  163. package/dist/{segment-CDoZHSYX.mjs → segment-BFJd2-ck.mjs} +6 -6
  164. package/dist/{selectors-BXbjj36S.mjs → selectors-Dcp25rNo.mjs} +3 -3
  165. package/dist/{send-D2eXL9lt.mjs → send-Be-_KmWr.mjs} +4 -4
  166. package/dist/{set-sHBtSGLi.mjs → set-Bg_4elCb.mjs} +5 -5
  167. package/dist/{set-active-DT61WwV0.mjs → set-active-CtQiMzt7.mjs} +5 -5
  168. package/dist/{setting-dkfKvCxc.mjs → setting-BNEblMco.mjs} +4 -4
  169. package/dist/{setup-TOwWatgm.mjs → setup-DFnxwJGX.mjs} +4 -4
  170. package/dist/{signal-CMd0EFUa.mjs → signal-k7cm5N6h.mjs} +11 -2
  171. package/dist/skill-list-Ro6J0pyV.mjs +76 -0
  172. package/dist/skills-BdrMrbXh.mjs +351 -0
  173. package/dist/{skills-BcOjZldN.mjs → skills-CGYk6b2r.mjs} +3 -3
  174. package/dist/snippet-vMnFtNwi.mjs +19 -0
  175. package/dist/{stash-BgWw2lyu.mjs → stash-C9SZwusp.mjs} +7 -11
  176. package/dist/{status-B14FO8n7.mjs → status-D0n7AuQU.mjs} +12 -11
  177. package/dist/{status-J4pEIm-c.mjs → status-Dj04FCCv.mjs} +11 -9
  178. package/dist/{subscription-B1uuKxM7.mjs → subscription-B5Iax7Ci.mjs} +6 -6
  179. package/dist/{subscriptions-BHIATSN6.mjs → subscriptions-DwvHRO1v.mjs} +7 -7
  180. package/dist/{summary-B1V5TXaZ.mjs → summary-DaA6Twxk.mjs} +6 -6
  181. package/dist/{sync-schema-D1vX-rpv.mjs → sync-schema-BFWKEC3r.mjs} +7 -7
  182. package/dist/{sync-task-BACcrs0i.mjs → sync-task-BXeWuARG.mjs} +1 -1
  183. package/dist/{table-CsIJNPFf.mjs → table-C6h4tIRw.mjs} +1 -1
  184. package/dist/{table-CDeO1WbH.mjs → table-DW1dG3Rl.mjs} +5 -5
  185. package/dist/{table-CeeTJgQb.mjs → table-DfuY0N8e.mjs} +51 -4
  186. package/dist/timeline-C0rqHF4p.mjs +21 -0
  187. package/dist/{timeline-event-oGmne082.mjs → timeline-event-D1MUnexK.mjs} +6 -6
  188. package/dist/{transform-DoTyyXAu.mjs → transform-CtqB1WYo.mjs} +2 -2
  189. package/dist/transform-D08iA4H_.mjs +28 -0
  190. package/dist/{transform-D3QX0jxA.mjs → transform-DiW7bREn.mjs} +68 -5
  191. package/dist/{transform-job-50GZHhKH.mjs → transform-job-AaMZRxAq.mjs} +1 -1
  192. package/dist/{transform-job-DRrK28IH.mjs → transform-job-CCguL6LP.mjs} +41 -4
  193. package/dist/transform-job-Me5CeV2z.mjs +22 -0
  194. package/dist/{transform-tag-Bpj8l5Ci.mjs → transform-tag-CbgjSy76.mjs} +5 -5
  195. package/dist/{transform-test-BJOPAwKl.mjs → transform-test-B-gVzODx.mjs} +1 -1
  196. package/dist/transform-test-BB_IFtZS.mjs +163 -0
  197. package/dist/transform-test-CwonhnyQ.mjs +16 -0
  198. package/dist/{transforms-K7Y4ON_q.mjs → transforms-Bhtk_Gil.mjs} +7 -7
  199. package/dist/{tree-CtFtroe4.mjs → tree-DLorrdEm.mjs} +4 -5
  200. package/dist/{unpublish-D7UaaIWA.mjs → unpublish-DOQhmLAx.mjs} +4 -7
  201. package/dist/{update-BvbPpgOL.mjs → update-BF4DWRT5.mjs} +6 -6
  202. package/dist/{update-dRAPKE3c.mjs → update-BeU02D8b.mjs} +6 -6
  203. package/dist/{update-C_wTtrtX.mjs → update-Bpb2V8Gm.mjs} +9 -9
  204. package/dist/{update-DUNJEk8m.mjs → update-CHNSRFKO.mjs} +7 -7
  205. package/dist/{update-BpuZsX9z.mjs → update-CSqPKfTk.mjs} +8 -8
  206. package/dist/{update-bix8NoKq.mjs → update-CTCcgeaY.mjs} +7 -7
  207. package/dist/{update-BlBEKrNE.mjs → update-Ch43eYU-.mjs} +5 -5
  208. package/dist/{update-MWaDj2VX.mjs → update-D2dis8s_.mjs} +8 -8
  209. package/dist/{update-YkB3xWUh.mjs → update-DEULsCgK.mjs} +6 -6
  210. package/dist/{update-B7veBLhx.mjs → update-DTZ07XFM.mjs} +5 -5
  211. package/dist/{update-CGJXd_E3.mjs → update-DWhC3xYc.mjs} +5 -5
  212. package/dist/{update-HqUKBeM2.mjs → update-DeA4gyTG.mjs} +5 -5
  213. package/dist/{update-BicO3Lio.mjs → update-Dq-KEeyS.mjs} +7 -7
  214. package/dist/{update-dashcard-BGqKMqQb.mjs → update-dashcard-CfDqxOlj.mjs} +7 -7
  215. package/dist/{update-3ksm443P.mjs → update-ezD5XTpy.mjs} +7 -7
  216. package/dist/{update-e4ufwrkF.mjs → update-mmeImeUo.mjs} +7 -7
  217. package/dist/{update-D9Nfv864.mjs → update-xjuN7bdu.mjs} +7 -7
  218. package/dist/{upgrade-DkQ1wk4z.mjs → upgrade-DgmbeOoJ.mjs} +6 -8
  219. package/dist/upload-BsPrAjN-.mjs +13 -0
  220. package/dist/{upload-CD555ui1.mjs → upload-Do2PBSeH.mjs} +2 -2
  221. package/dist/{upload-BfGc-L4t.mjs → upload-DzFBdNxM.mjs} +4 -7
  222. package/dist/{uuid-BLBLkWAF.mjs → uuid-DYYGRv9y.mjs} +3 -4
  223. package/dist/{validate-BWchyW0V.mjs → validate-EAB-1EkK.mjs} +1 -1
  224. package/dist/{validate-query-DaGYSmpQ.mjs → validate-query-CQG86147.mjs} +2 -3
  225. package/dist/{values-8CrXBkyg.mjs → values-Dk2CAR4T.mjs} +6 -6
  226. package/dist/{verify-nNVN-0CR.mjs → verify-8TnYrSNm.mjs} +3 -18
  227. package/dist/{wait-YrD7UYFF.mjs → wait-Oz6xFpyA.mjs} +7 -10
  228. package/dist/{wait-flags-CDtMS8FP.mjs → wait-flags-ClJx9LJ9.mjs} +2 -2
  229. package/dist/{window-BkvrP0gB.mjs → window-DSb1tqSe.mjs} +1 -1
  230. package/package.json +1 -1
  231. package/skill-data/core/SKILL.md +29 -13
  232. package/skill-data/data-workflow/references/building-clean-tables.md +6 -2
  233. package/skill-data/data-workflow/references/reusable-definitions.md +11 -3
  234. package/skill-data/document/SKILL.md +4 -1
  235. package/skill-data/git-sync/SKILL.md +5 -0
  236. package/skill-data/mbql/SKILL.md +1 -1
  237. package/skill-data/mbql/references/operators.md +20 -15
  238. package/skill-data/metadata/SKILL.md +1 -1
  239. package/skill-data/metadata/references/semantic-types.md +7 -1
  240. package/skill-data/native-sql/references/template-tags.md +6 -2
  241. package/skill-data/notification/SKILL.md +7 -1
  242. package/skill-data/transform/SKILL.md +25 -7
  243. package/skill-data/transform-test-plan/SKILL.md +171 -0
  244. package/skill-data/transform-test-plan/references/checklist.md +81 -0
  245. package/skill-data/transform-test-plan/references/checks.md +259 -0
  246. package/skill-data/visualization/SKILL.md +11 -3
  247. package/skill-data/visualization/references/settings.md +6 -4
  248. package/skills/metabase-cli/SKILL.md +1 -1
  249. package/dist/card-p2r_szeS.mjs +0 -24
  250. package/dist/client-DynvZqa0.mjs +0 -2282
  251. package/dist/collection-CAM47Der.mjs +0 -20
  252. package/dist/document-DGbDloCb.mjs +0 -19
  253. package/dist/get-B4GltkXP.mjs +0 -80
  254. package/dist/git-sync-IW4T2sKq.mjs +0 -28
  255. package/dist/library-ClLgrAXy.mjs +0 -19
  256. package/dist/list-CvzWE6CS.mjs +0 -98
  257. package/dist/network-error-D6CiOEBw.mjs +0 -431
  258. package/dist/predicates-Bkm2IoeX.mjs +0 -170
  259. package/dist/skills-DTCrMcix.mjs +0 -216
  260. package/dist/snippet-DMdFqvNq.mjs +0 -19
  261. package/dist/timeline-MQFX3Fla.mjs +0 -21
  262. package/dist/transform-CWIqW64R.mjs +0 -28
  263. package/dist/transform-job-DpF2MARE.mjs +0 -22
  264. package/dist/transform-test-BhkpwFqD.mjs +0 -16
  265. package/dist/transform-test-Dhcj7u-U.mjs +0 -142
  266. package/dist/upload-JN6EK96c.mjs +0 -13
@@ -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-BMJv4VOi.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-DzVkvFHY.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,
@@ -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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.mjs";
4
- import { t as Document } from "./document-Cd2mmqCp.mjs";
5
- import { t as documentView } from "./document-D6OybtP2.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.mjs";
4
+ import { t as Document } from "./document-BHpLJbKU.mjs";
5
+ import { t as documentView } from "./document-CA0Q6lqu.mjs";
6
6
  //#region src/commands/document/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a document by id"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["document.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, c as renderSummary, f as formatScalar } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
1
+ import { H as outputFlags, U as profileFlag, _ as formatScalar, p as renderSummary, z as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-DzVkvFHY.mjs";
3
3
  import { r as SettingValue } from "./setting-DTiLCW8g.mjs";
4
4
  import { t as settingValueView } from "./setting-CwRYgHYN.mjs";
5
- import { t as parseSettingKey } from "./key-BEhqIzIQ.mjs";
5
+ import { t as parseSettingKey } from "./key-PYetuQ13.mjs";
6
6
  //#region src/commands/setting/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
9
9
  name: "get",
10
10
  description: "Get a setting value by key"
11
11
  },
12
- capabilities: { minVersion: 58 },
12
+ requires: ["setting.get"],
13
13
  args: {
14
14
  ...outputFlags,
15
15
  ...profileFlag,
@@ -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-BMJv4VOi.mjs";
5
- import { t as parseId } from "./parse-id-CPINxy7h.mjs";
3
+ import { t as notificationView } from "./notification-DVrLkjFT.mjs";
4
+ import { t as defineMetabaseCommand } from "./runtime-DzVkvFHY.mjs";
5
+ import { t as parseId } from "./parse-id-BSdAXN-r.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,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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.mjs";
4
- import { i as DashboardDetail } from "./dashboard-CKUR8ZpQ.mjs";
5
- import { t as dashboardView } from "./dashboard-BlbNszi8.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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,8 +1,8 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, o as renderItem } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.mjs";
4
- import { t as TransformTest } from "./transform-test-Dhcj7u-U.mjs";
5
- import { t as transformTestView } from "./transform-test-BJOPAwKl.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.mjs";
4
+ import { t as TransformTest } from "./transform-test-BB_IFtZS.mjs";
5
+ import { t as transformTestView } from "./transform-test-B-gVzODx.mjs";
6
6
  //#region src/commands/transform-test/get.ts
7
7
  var get_default = defineMetabaseCommand({
8
8
  meta: {
@@ -10,7 +10,7 @@ var get_default = defineMetabaseCommand({
10
10
  description: "Get a transform test by id"
11
11
  },
12
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
- capabilities: { minVersion: 64 },
13
+ requires: ["transformTest.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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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,
@@ -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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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,
@@ -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-DzVkvFHY.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-BdrMrbXh.mjs";
5
+ import { i as unfilteredFlag, r as skillFilterNotices, t as UnavailableSkills } from "./skill-list-Ro6J0pyV.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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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,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-BMJv4VOi.mjs";
3
- import { t as parseId } from "./parse-id-CPINxy7h.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-DzVkvFHY.mjs";
3
+ import { t as parseId } from "./parse-id-BSdAXN-r.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,
@@ -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,
@@ -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-Dj04FCCv.mjs").then((mod) => mod.default),
12
+ "is-dirty": () => import("./is-dirty-7Jo0tglq.mjs").then((mod) => mod.default),
13
+ "has-remote-changes": () => import("./has-remote-changes-BS6jOb2-.mjs").then((mod) => mod.default),
14
+ dirty: () => import("./dirty-BiiJ5Ngh.mjs").then((mod) => mod.default),
15
+ "current-task": () => import("./current-task-DVo5aDfA.mjs").then((mod) => mod.default),
16
+ "cancel-task": () => import("./cancel-task-BeviniVd.mjs").then((mod) => mod.default),
17
+ wait: () => import("./wait-Oz6xFpyA.mjs").then((mod) => mod.default),
18
+ import: () => import("./import-Cur2I6Yc.mjs").then((mod) => mod.default),
19
+ export: () => import("./export-CFK8cMvK.mjs").then((mod) => mod.default),
20
+ stash: () => import("./stash-C9SZwusp.mjs").then((mod) => mod.default),
21
+ branches: () => import("./branches-CIP60haa.mjs").then((mod) => mod.default),
22
+ "create-branch": () => import("./create-branch-hYwnfY8X.mjs").then((mod) => mod.default),
23
+ "add-collection": () => import("./add-collection-v_uw_8VC.mjs").then((mod) => mod.default),
24
+ "remove-collection": () => import("./remove-collection-CNWmp8C-.mjs").then((mod) => mod.default)
25
+ }
26
+ });
27
+ //#endregion
28
+ export { git_sync_default as default };
@@ -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-BMJv4VOi.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-DzVkvFHY.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-BMJv4VOi.mjs";
3
- import { a as SyncImportResult } from "./git-sync-BDnxPrqU.mjs";
4
- import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-CDtMS8FP.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-DzVkvFHY.mjs";
3
+ import { o as SyncImportResult } from "./git-sync-BwBRmEhE.mjs";
4
+ import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-ClJx9LJ9.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-BMJv4VOi.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-DzVkvFHY.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,
@@ -1,9 +1,9 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, N as listFlags, R as listEnvelopeSchema, s as renderList } from "./cli.mjs";
2
- import { i as parseEnumCsv, r as parseEnum, t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
3
- import { t as collectForOutput } from "./window-BkvrP0gB.mjs";
4
- import { c as CollectionItemFilterModel, d as CollectionPinnedState, n as COLLECTION_PINNED_STATES, s as CollectionItemCompact, t as COLLECTION_ITEM_FILTER_MODELS } from "./collection-CfulNRBG.mjs";
5
- import { t as collectionItemView } from "./collection-CGoVLvcD.mjs";
6
- import { t as parseCollectionRef } from "./parse-ref-ibKVB0J4.mjs";
1
+ import { B as listFlags, G as listEnvelopeSchema, H as outputFlags, U as profileFlag, d as renderList, z as connectionFlags } from "./cli.mjs";
2
+ import { i as parseEnumCsv, r as parseEnum, t as defineMetabaseCommand } from "./runtime-DzVkvFHY.mjs";
3
+ import { t as collectForOutput } from "./window-DSb1tqSe.mjs";
4
+ import { l as CollectionItemCompact, n as COLLECTION_PINNED_STATES, p as CollectionPinnedState, t as COLLECTION_ITEM_FILTER_MODELS, u as CollectionItemFilterModel } from "./collection-BxdPxD38.mjs";
5
+ import { t as collectionItemView } from "./collection-DYM0p3Xl.mjs";
6
+ import { t as parseCollectionRef } from "./parse-ref-DTDld_LJ.mjs";
7
7
  //#region src/commands/collection/items.ts
8
8
  const CollectionItemListEnvelope = listEnvelopeSchema(CollectionItemCompact);
9
9
  var items_default = defineMetabaseCommand({
@@ -11,7 +11,7 @@ var items_default = defineMetabaseCommand({
11
11
  name: "items",
12
12
  description: "List items inside a collection"
13
13
  },
14
- capabilities: { minVersion: 58 },
14
+ requires: ["collection.itemPages"],
15
15
  args: {
16
16
  ...outputFlags,
17
17
  ...listFlags,
@@ -1,4 +1,4 @@
1
- import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
1
+ import { Q as ConfigError } from "./cli.mjs";
2
2
  //#region src/commands/setting/key.ts
3
3
  const SETTING_KEY_PATTERN = /^[A-Za-z][A-Za-z0-9_-]*$/;
4
4
  function parseSettingKey(value) {