@metabase/cli 0.3.0 → 0.3.1-alpha.versioning.9ac5f50

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 (234) hide show
  1. package/dist/{add-collection-B3Ty8SzB.mjs → add-collection-Dmd-uNeU.mjs} +4 -7
  2. package/dist/{alert-DT-ee7yf.mjs → alert-D1u2MVZj.mjs} +7 -7
  3. package/dist/{alerts-Bf2RH_p_.mjs → alerts-DcBjcfEE.mjs} +5 -5
  4. package/dist/{append-DFzQRPMd.mjs → append-B9Htvmab.mjs} +6 -5
  5. package/dist/{archive-lQqs13Uz.mjs → archive-B660RguB.mjs} +4 -4
  6. package/dist/{archive-ByvA49Kz.mjs → archive-BNivAYGr.mjs} +4 -4
  7. package/dist/{archive-4tmm946K.mjs → archive-BUoYMkxO.mjs} +4 -4
  8. package/dist/{archive-C7w49Grr.mjs → archive-BVmFGFwG.mjs} +4 -4
  9. package/dist/{archive-ChORH5JH.mjs → archive-Bf014rFm.mjs} +4 -4
  10. package/dist/{archive-gid9Y09v.mjs → archive-BmsZFOZY.mjs} +4 -4
  11. package/dist/{archive-BxNPHxOY.mjs → archive-CNif6BKy.mjs} +6 -6
  12. package/dist/{archive-Cd29QC0c.mjs → archive-CgmidYZV.mjs} +4 -4
  13. package/dist/{archive-CwAdlv63.mjs → archive-CvU2z5192.mjs} +4 -4
  14. package/dist/{archive-Dr9Xnx_Z.mjs → archive-DhDQIKR_.mjs} +6 -6
  15. package/dist/{archive-B6eXiyER.mjs → archive-bPdDITuY.mjs} +4 -4
  16. package/dist/{auth-Dltxua89.mjs → auth-CefYEPP5.mjs} +5 -5
  17. package/dist/{body-Cur4NJt9.mjs → body-C7m9q4cm.mjs} +3 -3
  18. package/dist/{branches-DchlyU0i.mjs → branches-pz04OjF2.mjs} +3 -6
  19. package/dist/{cancel-BMQa5R1Z.mjs → cancel-CNLnv19e.mjs} +4 -4
  20. package/dist/{cancel-task-C5CU1pxU.mjs → cancel-task-DbnxSh7U.mjs} +3 -6
  21. package/dist/card-BRarvKYX.mjs +24 -0
  22. package/dist/{cards-SccWvRQD.mjs → cards-DtYlVoGP.mjs} +6 -6
  23. package/dist/cli.mjs +554 -62
  24. package/dist/{client-BqhzKdLM.mjs → client-Bv7Iwdvh.mjs} +258 -76
  25. package/dist/collection-CKeO8X7U.mjs +20 -0
  26. package/dist/{collection-CGoVLvcD.mjs → collection-DALwHnbz.mjs} +1 -1
  27. package/dist/{collection-CfulNRBG.mjs → collection-WFdBeyqa.mjs} +1 -1
  28. package/dist/{collection-namespace-GwydWBF3.mjs → collection-namespace-CvT0TIZA.mjs} +2 -2
  29. package/dist/content-translation-BrHOrmj9.mjs +5 -0
  30. package/dist/content-translation-D7POzJJ6.mjs +12 -0
  31. package/dist/{create-CD008jdE.mjs → create-BEE8uvz2.mjs} +12 -8
  32. package/dist/{create-CAQV2g6V.mjs → create-Bh2j733n.mjs} +7 -7
  33. package/dist/{create-BNQ_DytP.mjs → create-Bwg-5p08.mjs} +4 -4
  34. package/dist/{create-C79vErX0.mjs → create-CGPle4nE.mjs} +5 -5
  35. package/dist/{create-i14Wv3Tj.mjs → create-CGgPnb7L.mjs} +4 -4
  36. package/dist/{create-DJmXXQoq.mjs → create-CLgalJUe.mjs} +8 -8
  37. package/dist/{create-Beh-2uoN.mjs → create-CN24yp_W.mjs} +6 -6
  38. package/dist/{create-DF4QtgDL.mjs → create-CuYGZ4gu2.mjs} +4 -4
  39. package/dist/{create-CAWytBE5.mjs → create-DGHILnnk.mjs} +5 -5
  40. package/dist/{create-zeveFdnd.mjs → create-DYd_o9BD.mjs} +5 -8
  41. package/dist/{create-DV-Ln5Mo.mjs → create-DhDREiiy.mjs} +4 -4
  42. package/dist/{create-CHQx7jq4.mjs → create-Di4YvIbK.mjs} +4 -4
  43. package/dist/{create-tQbnuz-I.mjs → create-DnqnjGGf.mjs} +4 -4
  44. package/dist/{create-CCh_LyW9.mjs → create-Ds-DnSBe.mjs} +4 -4
  45. package/dist/{create-BOLwWt8Q.mjs → create-JOXq0ULN.mjs} +5 -5
  46. package/dist/{create-branch-CYo6jZth.mjs → create-branch-DWcxC30N.mjs} +3 -7
  47. package/dist/{csv-B2Jgb1GM.mjs → csv-CUQvcCEk.mjs} +6 -5
  48. package/dist/{current-task-MpBFGttd.mjs → current-task-D6P0eL21.mjs} +3 -6
  49. package/dist/{dashboard-CsIFFpzK.mjs → dashboard-BlbNszi8.mjs} +1 -1
  50. package/dist/{dashboard-BHJBoaG7.mjs → dashboard-BudI952R.mjs} +10 -10
  51. package/dist/{dashboard-BCpSq_G-.mjs → dashboard-CKUR8ZpQ.mjs} +1 -0
  52. package/dist/{db-DsfojyeH.mjs → db-C7UTd-6P.mjs} +7 -7
  53. package/dist/{delete-DFmX7jTp.mjs → delete-DSxqbcFE.mjs} +5 -5
  54. package/dist/{delete-Ck0q4Dzp.mjs → delete-DbZZKcYj.mjs} +5 -5
  55. package/dist/{delete-Ob06PPie.mjs → delete-Ds-zGh9C.mjs} +5 -5
  56. package/dist/{delete-B8e01xAG.mjs → delete-Ud6iliGM.mjs} +5 -5
  57. package/dist/{delete-BApOjQvl.mjs → delete-_IHffP-A.mjs} +5 -5
  58. package/dist/{delete-runtime-D74s6vhu.mjs → delete-runtime-BjHL1ryM.mjs} +1 -2
  59. package/dist/{delete-table-DuyhGrvA.mjs → delete-table-DtXH6IN5.mjs} +5 -5
  60. package/dist/{dependencies-Bj3QrGIm.mjs → dependencies-CR1dlq-A.mjs} +6 -6
  61. package/dist/{dirty-DNYoM6Bp.mjs → dirty-CYxnOnh0.mjs} +3 -6
  62. package/dist/document-BoILnE_1.mjs +19 -0
  63. package/dist/download-DPpmmYQe.mjs +25 -0
  64. package/dist/{eid-WTZmDdsr.mjs → eid-D-BbtWjt.mjs} +4 -5
  65. package/dist/{events-Bn7jh5lP.mjs → events-CJEnn8WE.mjs} +4 -4
  66. package/dist/{export-BjfoZRDJ.mjs → export-BOgyuIOQ.mjs} +4 -7
  67. package/dist/{field-Zau6Hc6X.mjs → field-CzHBOPER.mjs} +5 -5
  68. package/dist/{fields-CBBa-Prp.mjs → fields-Bwgkrvus.mjs} +4 -4
  69. package/dist/{get-C2-Q3iQ5.mjs → get-B89DUSvw.mjs} +4 -4
  70. package/dist/{get-DkWO0EI0.mjs → get-BL90QC64.mjs} +6 -6
  71. package/dist/{get-ByBOq30r.mjs → get-BLJSCw53.mjs} +6 -6
  72. package/dist/{get-DRvsATp-.mjs → get-BOLwso0V.mjs} +6 -6
  73. package/dist/{get-B7sMgsFs.mjs → get-BaPadzdM.mjs} +4 -4
  74. package/dist/{get-00lyLv6R.mjs → get-BfVCLBqc.mjs} +4 -4
  75. package/dist/{get-DdsoHaKH.mjs → get-C1ZdOvMm.mjs} +4 -4
  76. package/dist/{get-DmpB6J9g.mjs → get-CLu4yzMp2.mjs} +4 -4
  77. package/dist/{get-DY03Azx9.mjs → get-COwdtskS.mjs} +5 -8
  78. package/dist/{get-D_h-G9bn.mjs → get-CWfIiXwL.mjs} +4 -4
  79. package/dist/get-CqQ-pf0q.mjs +89 -0
  80. package/dist/{get-DYO1kywc.mjs → get-CvIgxPXV.mjs} +4 -4
  81. package/dist/{get-Bz99dAxK.mjs → get-D4OTJblo.mjs} +6 -6
  82. package/dist/{get-Dn9ZiSZr.mjs → get-D8lHwu4-.mjs} +4 -4
  83. package/dist/{get-B_xdF1kq.mjs → get-DVi3a2nm.mjs} +4 -4
  84. package/dist/{get-CDJFVvhj.mjs → get-DgnYF7LR.mjs} +4 -4
  85. package/dist/{get-CDMGbgrh.mjs → get-DsKmZfM2.mjs} +4 -4
  86. package/dist/{get-Dmj9Ygz1.mjs → get-DyyPiiaB.mjs} +4 -4
  87. package/dist/{get-CnbUCzDM.mjs → get-Eqq13YY-.mjs} +4 -4
  88. package/dist/{get-run-Cnux9ln0.mjs → get-run-Iya0Yw9s.mjs} +6 -6
  89. package/dist/git-sync-CdN0Maun.mjs +28 -0
  90. package/dist/{group-DBM87IgC.mjs → group-CmVCLBDz.mjs} +2 -1
  91. package/dist/{has-remote-changes-C684Redh.mjs → has-remote-changes-DfJUMP8F.mjs} +3 -6
  92. package/dist/{import-Rmmttboo.mjs → import-FEAx-Y5A.mjs} +4 -7
  93. package/dist/{input-DH9i67x_.mjs → input-DFZ_qGW_.mjs} +1 -1
  94. package/dist/{is-dirty-DYeJYhBz.mjs → is-dirty-BsYjBSXG.mjs} +3 -6
  95. package/dist/{items-CQlPXBXE.mjs → items-D4rstE12.mjs} +6 -6
  96. package/dist/{key-BEhqIzIQ.mjs → key-BmWundO3.mjs} +1 -1
  97. package/dist/{library-DfYAT2Ep.mjs → library-CmctxHjv.mjs} +1 -1
  98. package/dist/library-DXB8sm4r.mjs +81 -0
  99. package/dist/{library-Bsm5KsFF.mjs → library-uzyHWBap.mjs} +5 -5
  100. package/dist/{list-DF2rvoO1.mjs → list-1DkkU82x.mjs} +13 -12
  101. package/dist/{list-BpFp9Wre.mjs → list-B7tqNV8B.mjs} +3 -3
  102. package/dist/{list-DE9FM957.mjs → list-BRpPbvyS.mjs} +3 -3
  103. package/dist/{list-CQwOgIlj.mjs → list-BXL8HFr_.mjs} +3 -3
  104. package/dist/{list-BzVTHOoH.mjs → list-Bjj0z5BS.mjs} +5 -5
  105. package/dist/{list-CQDprvW0.mjs → list-BmMi_wPD.mjs} +6 -6
  106. package/dist/{list-C5Zs8nrb.mjs → list-CC1M_n6Z.mjs} +5 -5
  107. package/dist/{list-CKK-s3Ty.mjs → list-CQy0z7f9.mjs} +3 -3
  108. package/dist/{list-BtmsNOEn.mjs → list-D_zvX0ms.mjs} +3 -3
  109. package/dist/{list-CMpoc2TN.mjs → list-DeNGm9G4.mjs} +3 -3
  110. package/dist/{list-DMKDsBRd.mjs → list-Dgm6TkqR.mjs} +6 -6
  111. package/dist/{list-BOET6zhP.mjs → list-DoTiQc3D.mjs} +3 -3
  112. package/dist/{list-BP3MPq-M.mjs → list-DrS3ePsv.mjs} +3 -3
  113. package/dist/list-bN0RC14-.mjs +59 -0
  114. package/dist/{list-B4hJuMhA.mjs → list-ndIl9XqV.mjs} +4 -4
  115. package/dist/{list-B8nAGwP4.mjs → list-sQcA4g05.mjs} +3 -3
  116. package/dist/{list-CNUiF8Z7.mjs → list-squb_ioH.mjs} +3 -3
  117. package/dist/{list-BtkWNtvY.mjs → list-xMfCeuZc.mjs} +4 -4
  118. package/dist/{login-CGHeSjlP.mjs → login-D_1-zE4A.mjs} +15 -12
  119. package/dist/{logout-DAxOlbv4.mjs → logout-DPi2q1Wu.mjs} +3 -4
  120. package/dist/{measure-BsYv0p26.mjs → measure-CdA8Nl3Z.mjs} +6 -6
  121. package/dist/{parameter-values-CJTdqd8c.mjs → parameter-values-C6dj6I4g.mjs} +4 -5
  122. package/dist/{parse-enum-D0Jfm_Bz.mjs → parse-enum-B1t8S194.mjs} +1 -1
  123. package/dist/{parse-id-C_jmKFaa.mjs → parse-id-DR8aUSdL.mjs} +1 -1
  124. package/dist/{parse-ref-ibKVB0J4.mjs → parse-ref-BJ_Q0tNW.mjs} +1 -1
  125. package/dist/{path-B5gHvrYL.mjs → path-B96DI8u2.mjs} +4 -4
  126. package/dist/{poll-75SvT7Zv.mjs → poll-By46YQ5J.mjs} +2 -2
  127. package/dist/{preflight-YpPQo-sa.mjs → preflight-Bl1oitm8.mjs} +3 -4
  128. package/dist/{process-DBOOrmET.mjs → process-CcQM4qPv.mjs} +1 -1
  129. package/dist/{publish-DijrxaCW.mjs → publish-BKJYvxif.mjs} +9 -9
  130. package/dist/{query-Dc__-KJH.mjs → query-BKSM-pbi.mjs} +6 -7
  131. package/dist/{query-BbqECzmF.mjs → query-qBHjZQc_.mjs} +5 -12
  132. package/dist/{remove-collection-BOnxYvhj.mjs → remove-collection-BWFW7Rn6.mjs} +4 -7
  133. package/dist/{render-CI93iP0I.mjs → render-DmykmrFB.mjs} +11 -2
  134. package/dist/{replace-Cq4CxVa-.mjs → replace-BmAqD3zY.mjs} +6 -5
  135. package/dist/{rescan-values-Dr_j416g.mjs → rescan-values-BrCLrihF.mjs} +4 -4
  136. package/dist/{run-C3DkS6NP.mjs → run-CtbzjDKY.mjs} +6 -6
  137. package/dist/{run-DdGJ544X.mjs → run-q5Y44Fxj.mjs} +26 -14
  138. package/dist/{runs-CUNWiidL.mjs → runs-JFlbezkQ.mjs} +6 -6
  139. package/dist/{runtime-DiKyBxOw.mjs → runtime-BQiGgbgZ.mjs} +850 -265
  140. package/dist/{schema-tables-CV386fnC.mjs → schema-tables-Bzx2ShyE.mjs} +4 -4
  141. package/dist/{schemas-DM-UqZBQ.mjs → schemas-ww5mU2AS.mjs} +4 -4
  142. package/dist/{search-DmGScXs8.mjs → search-J4RwCof-.mjs} +4 -4
  143. package/dist/{segment-BzUGM2Fr.mjs → segment-XXTjU0eG.mjs} +6 -6
  144. package/dist/{selectors-DGDn0Hto.mjs → selectors-BAAZMi43.mjs} +3 -3
  145. package/dist/{send-CVxxEpDB.mjs → send-BmpDlw9O.mjs} +4 -4
  146. package/dist/{set-DFolTjbd.mjs → set-DUWrSza9.mjs} +5 -5
  147. package/dist/{set-active-BD8L1lPX.mjs → set-active-BiUlbNI5.mjs} +5 -5
  148. package/dist/{setting-DyhaeICs.mjs → setting-B1KBQN3M.mjs} +4 -4
  149. package/dist/{setup-BbDQN8fe.mjs → setup-CVaNVwOd.mjs} +4 -4
  150. package/dist/{signal-CMd0EFUa.mjs → signal-GhGmuHfx.mjs} +11 -2
  151. package/dist/{list-UhpKG6_m.mjs → skill-list-DTnDhnL5.mjs} +17 -46
  152. package/dist/{skills--vK6J-e4.mjs → skills-BWrAlj9l.mjs} +3 -3
  153. package/dist/{skills-DTCrMcix.mjs → skills-DkDsSH5F.mjs} +102 -14
  154. package/dist/snippet-CG75L2DS.mjs +19 -0
  155. package/dist/{stash-D0S4JmAz.mjs → stash-DMm8YF8V.mjs} +4 -8
  156. package/dist/{status-hL1am-HV.mjs → status-BzEQjQ_t.mjs} +12 -11
  157. package/dist/{status-BhswxJL1.mjs → status-ClWsQD6v.mjs} +9 -7
  158. package/dist/stream-McixcoUl.mjs +7 -0
  159. package/dist/{subscription-_d5fB45F.mjs → subscription-CdFn2hre.mjs} +6 -6
  160. package/dist/{subscriptions-s4TF6Ax3.mjs → subscriptions-DBda1pE5.mjs} +5 -5
  161. package/dist/{summary-CsPvcUwW.mjs → summary-B4GPiuqD.mjs} +4 -4
  162. package/dist/{sync-schema-DaZ_MV-u.mjs → sync-schema-DsIM5g2U.mjs} +5 -5
  163. package/dist/{table-DYoC1kPn.mjs → table-D4Alrrwh.mjs} +5 -5
  164. package/dist/timeline-DmM0BuX8.mjs +21 -0
  165. package/dist/{timeline-event-CNQdCTDg.mjs → timeline-event-DWIh3Tdt.mjs} +6 -6
  166. package/dist/transform-BcV_XlSX.mjs +28 -0
  167. package/dist/{transform-DoTyyXAu.mjs → transform-Bk0D0nIs.mjs} +1 -1
  168. package/dist/{transform-D3QX0jxA.mjs → transform-DpuG-ON3.mjs} +26 -5
  169. package/dist/{transform-job-50GZHhKH.mjs → transform-job-AaMZRxAq.mjs} +1 -1
  170. package/dist/{transform-job-DRrK28IH.mjs → transform-job-CCguL6LP.mjs} +41 -4
  171. package/dist/transform-job-CjtwBGoM.mjs +22 -0
  172. package/dist/{transform-tag-_tgwlsdB.mjs → transform-tag-DJ3_bksm.mjs} +5 -5
  173. package/dist/{transforms-oU4zizbO.mjs → transforms-Dg2MfB2a.mjs} +6 -6
  174. package/dist/{tree-CH-f3bjP.mjs → tree-BQL0f7YX.mjs} +4 -5
  175. package/dist/{unpublish-BUl9RU5C.mjs → unpublish-DfSvb_Rs.mjs} +4 -7
  176. package/dist/{update-D-NE60AV.mjs → update-B-hRR8gW.mjs} +5 -5
  177. package/dist/{update-CO4m4wH3.mjs → update-BCgAyfj_.mjs} +6 -6
  178. package/dist/{update-BzMDeZiU.mjs → update-Bhmli02m.mjs} +5 -5
  179. package/dist/{update-CvOO8TED.mjs → update-BxIyFtrX.mjs} +5 -5
  180. package/dist/{update-BiFDBcEH.mjs → update-CDo0Orvu.mjs} +5 -5
  181. package/dist/{update-BCS5FxKr.mjs → update-CKoBDTL7.mjs} +9 -9
  182. package/dist/{update-CmDTljK-.mjs → update-CiYxcf8M.mjs} +7 -7
  183. package/dist/{update-CHNSUHK4.mjs → update-Cr5zHb0D.mjs} +5 -5
  184. package/dist/{update-Nfi44RrE.mjs → update-CtDHMxW8.mjs} +6 -6
  185. package/dist/{update-bD_Jh5-s.mjs → update-D1QdfpKR.mjs} +5 -5
  186. package/dist/{update-BZPllQoR.mjs → update-D4qdTlLF.mjs} +5 -5
  187. package/dist/{update-C4YJQFDS.mjs → update-DBGaJDsj.mjs} +5 -5
  188. package/dist/{update-tX9mKBN_.mjs → update-Izqip6jY.mjs} +9 -9
  189. package/dist/{update-cYkvbqK8.mjs → update-NZhIjTCf.mjs} +5 -5
  190. package/dist/{update-dashcard-C3TuYO_k.mjs → update-dashcard-D5b971AO.mjs} +7 -7
  191. package/dist/{update-CVPAwJaH.mjs → update-sYLQIUgh.mjs} +6 -6
  192. package/dist/{upgrade-DXMV4AyP.mjs → upgrade-CD1xtsIv.mjs} +6 -8
  193. package/dist/upload-BUd3MG90.mjs +23 -0
  194. package/dist/upload-C3z5ZaXA.mjs +24 -0
  195. package/dist/upload-DzGTlldn.mjs +13 -0
  196. package/dist/upload-akKFxpVA.mjs +39 -0
  197. package/dist/{uuid-BJkDWj9p.mjs → uuid-oVdJ62eA.mjs} +3 -4
  198. package/dist/{validate-BWchyW0V.mjs → validate-CWd6l6KZ.mjs} +1 -1
  199. package/dist/{validate-query-DaGYSmpQ.mjs → validate-query-Boi8-cAP.mjs} +2 -3
  200. package/dist/{values-Dxf1JEoA.mjs → values-DLwZl-P8.mjs} +4 -4
  201. package/dist/{verify-K96rItG5.mjs → verify-CH9Tw8yv.mjs} +3 -18
  202. package/dist/{wait-flags-DWEF9tX4.mjs → wait-flags-DiQ_kRjZ.mjs} +2 -2
  203. package/dist/{wait-DoMDH226.mjs → wait-rfTdQWdi.mjs} +5 -8
  204. package/package.json +1 -1
  205. package/skill-data/core/SKILL.md +16 -5
  206. package/skill-data/dashboard/SKILL.md +2 -2
  207. package/skill-data/data-workflow/references/building-clean-tables.md +6 -2
  208. package/skill-data/data-workflow/references/reusable-definitions.md +11 -3
  209. package/skill-data/document/SKILL.md +4 -1
  210. package/skill-data/git-sync/SKILL.md +5 -0
  211. package/skill-data/mbql/SKILL.md +1 -1
  212. package/skill-data/mbql/references/operators.md +20 -15
  213. package/skill-data/metadata/SKILL.md +1 -1
  214. package/skill-data/metadata/references/semantic-types.md +7 -1
  215. package/skill-data/native-sql/references/template-tags.md +6 -2
  216. package/skill-data/notification/SKILL.md +7 -1
  217. package/skill-data/transform/SKILL.md +12 -2
  218. package/skill-data/visualization/SKILL.md +11 -3
  219. package/skill-data/visualization/references/settings.md +6 -4
  220. package/skills/metabase-cli/SKILL.md +1 -1
  221. package/dist/card-CHI2bmds.mjs +0 -24
  222. package/dist/collection-CY0AB99E.mjs +0 -20
  223. package/dist/document-BbskZPTT.mjs +0 -19
  224. package/dist/get-CvI--9S_.mjs +0 -80
  225. package/dist/git-sync-MQQYRYLg.mjs +0 -28
  226. package/dist/library-ClLgrAXy.mjs +0 -19
  227. package/dist/network-error-CEb9ymDW.mjs +0 -423
  228. package/dist/predicates-Bkm2IoeX.mjs +0 -170
  229. package/dist/snippet-DRwKb2x7.mjs +0 -19
  230. package/dist/timeline-xlDbEKWg.mjs +0 -21
  231. package/dist/transform-Bs0EWijQ.mjs +0 -28
  232. package/dist/transform-job-BcLChRup.mjs +0 -22
  233. package/dist/upload-CH632qW6.mjs +0 -46
  234. package/dist/upload-Dey_8rLf.mjs +0 -13
@@ -1,14 +1,14 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags } 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 { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-D74s6vhu.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
+ import { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-BjHL1ryM.mjs";
5
5
  //#region src/commands/timeline/delete.ts
6
6
  var delete_default = defineMetabaseCommand({
7
7
  meta: {
8
8
  name: "delete",
9
9
  description: "Permanently delete a timeline and all its events by id"
10
10
  },
11
- capabilities: { minVersion: 58 },
11
+ requires: ["timeline.delete"],
12
12
  args: {
13
13
  ...outputFlags,
14
14
  ...profileFlag,
@@ -1,14 +1,14 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags } 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 { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-D74s6vhu.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
+ import { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-BjHL1ryM.mjs";
5
5
  //#region src/commands/transform-tag/delete.ts
6
6
  var delete_default = defineMetabaseCommand({
7
7
  meta: {
8
8
  name: "delete",
9
9
  description: "Delete a transform tag by id"
10
10
  },
11
- capabilities: { minVersion: 59 },
11
+ requires: ["transformTag.delete"],
12
12
  args: {
13
13
  ...outputFlags,
14
14
  ...profileFlag,
@@ -1,14 +1,14 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags } 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 { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-D74s6vhu.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
+ import { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-BjHL1ryM.mjs";
5
5
  //#region src/commands/timeline-event/delete.ts
6
6
  var delete_default = defineMetabaseCommand({
7
7
  meta: {
8
8
  name: "delete",
9
9
  description: "Permanently delete a timeline event by id"
10
10
  },
11
- capabilities: { minVersion: 58 },
11
+ requires: ["timelineEvent.delete"],
12
12
  args: {
13
13
  ...outputFlags,
14
14
  ...profileFlag,
@@ -1,5 +1,4 @@
1
- import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
2
- import { c as renderSummary, h as promptConfirm } from "./cli.mjs";
1
+ import { K as ConfigError, c as renderSummary, g as promptConfirm } from "./cli.mjs";
3
2
  import { z } from "zod";
4
3
  //#region src/commands/delete-runtime.ts
5
4
  const DeleteResult = z.object({
@@ -1,14 +1,14 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags } 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 { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-D74s6vhu.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
+ import { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-BjHL1ryM.mjs";
5
5
  //#region src/commands/transform/delete-table.ts
6
6
  var delete_table_default = defineMetabaseCommand({
7
7
  meta: {
8
8
  name: "delete-table",
9
9
  description: "Drop a transform's materialized output table (keeps the transform definition)"
10
10
  },
11
- capabilities: { minVersion: 59 },
11
+ requires: ["transform.deleteTable"],
12
12
  args: {
13
13
  ...outputFlags,
14
14
  ...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 { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags, P as listFlags, o as renderList, z as listEnvelopeSchema } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
4
  import { n as windowList } from "./window-BkvrP0gB.mjs";
5
- import { n as TransformCompact } from "./transform-D3QX0jxA.mjs";
6
- import { n as transformView } from "./transform-DoTyyXAu.mjs";
5
+ import { n as TransformCompact } from "./transform-DpuG-ON3.mjs";
6
+ import { n as transformView } from "./transform-Bk0D0nIs.mjs";
7
7
  //#region src/commands/transform/dependencies.ts
8
8
  const TransformDependenciesEnvelope = listEnvelopeSchema(TransformCompact);
9
9
  var dependencies_default = defineMetabaseCommand({
@@ -12,7 +12,7 @@ var dependencies_default = defineMetabaseCommand({
12
12
  description: "List the transforms a transform depends on"
13
13
  },
14
14
  details: "Returns the upstream transforms in this transform's dependency graph — the ones that must run before it. The positional id is a transform id.",
15
- capabilities: { minVersion: 59 },
15
+ requires: ["transform.dependencies"],
16
16
  args: {
17
17
  ...outputFlags,
18
18
  ...listFlags,
@@ -1,5 +1,5 @@
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 { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags, P as listFlags, o as renderList, z as listEnvelopeSchema } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
3
  import { n as windowList } from "./window-BkvrP0gB.mjs";
4
4
  import { r as SyncDirtyItemCompact } from "./git-sync-BDnxPrqU.mjs";
5
5
  import { n as syncDirtyItemView } from "./git-sync-DxD_ng48.mjs";
@@ -10,10 +10,7 @@ var dirty_default = defineMetabaseCommand({
10
10
  name: "dirty",
11
11
  description: "List objects with unsynced local changes"
12
12
  },
13
- capabilities: {
14
- minVersion: 60,
15
- tokenFeature: "remote_sync"
16
- },
13
+ requires: ["gitSync.dirty"],
17
14
  args: {
18
15
  ...outputFlags,
19
16
  ...listFlags,
@@ -0,0 +1,19 @@
1
+ import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
2
+ //#region src/commands/document/index.ts
3
+ var document_default = defineCommandGroup({
4
+ name: "document",
5
+ description: "Manage Metabase documents",
6
+ skills: [{
7
+ skill: "document",
8
+ purpose: "author the ProseMirror document body"
9
+ }],
10
+ subCommands: {
11
+ list: () => import("./list-squb_ioH.mjs").then((mod) => mod.default),
12
+ get: () => import("./get-CWfIiXwL.mjs").then((mod) => mod.default),
13
+ create: () => import("./create-DnqnjGGf.mjs").then((mod) => mod.default),
14
+ update: () => import("./update-B-hRR8gW.mjs").then((mod) => mod.default),
15
+ archive: () => import("./archive-B660RguB.mjs").then((mod) => mod.default)
16
+ }
17
+ });
18
+ //#endregion
19
+ export { document_default as default };
@@ -0,0 +1,25 @@
1
+ import { L as profileFlag, N as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as pipeToStdout } from "./stream-McixcoUl.mjs";
4
+ import { z } from "zod";
5
+ //#region src/commands/content-translation/download.ts
6
+ const ContentTranslationCsv = z.string().describe("The raw content translation dictionary CSV.");
7
+ var download_default = defineMetabaseCommand({
8
+ meta: {
9
+ name: "download",
10
+ description: "Stream the complete content translation dictionary as CSV"
11
+ },
12
+ details: "Streams the active dictionary to stdout with the server's CSV formatting. Redirect stdout to preserve it as a file that can be reviewed, versioned, or uploaded later. An empty dictionary downloads as Metabase's four-row sample dictionary, not a header-only file.",
13
+ requires: ["contentTranslation.download"],
14
+ args: {
15
+ ...profileFlag,
16
+ ...connectionFlags
17
+ },
18
+ outputSchema: ContentTranslationCsv,
19
+ examples: ["mb content-translation download > metabase-content-translations.csv", "mb content-translation download --profile prod > translations.csv"],
20
+ async run({ getClient }) {
21
+ await pipeToStdout(await (await getClient()).contentTranslation.download());
22
+ }
23
+ });
24
+ //#endregion
25
+ export { download_default as default };
@@ -1,7 +1,6 @@
1
- import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
2
- import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
3
- import { n as parseCsv, t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
4
- import { t as readBody } from "./body-Cur4NJt9.mjs";
1
+ import { I as outputFlags, K as ConfigError, L as profileFlag, N as connectionFlags, c as renderSummary } from "./cli.mjs";
2
+ import { n as parseCsv, t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as readBody } from "./body-C7m9q4cm.mjs";
5
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
6
5
  import { a as EidTranslateResultCompact, i as EidTranslateResult, n as EidModel, r as EidTranslateInput, t as EID_MODELS } from "./eid-translation-zEHtr5Oc.mjs";
7
6
  //#region src/output/views/eid-translation.ts
@@ -37,7 +36,7 @@ var eid_default = defineMetabaseCommand({
37
36
  skill: "core",
38
37
  purpose: "entity-id translation and body input"
39
38
  }],
40
- capabilities: { minVersion: 58 },
39
+ requires: ["eidTranslation.translate"],
41
40
  args: {
42
41
  ...outputFlags,
43
42
  ...profileFlag,
@@ -1,6 +1,6 @@
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 { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags, P as listFlags, o as renderList, z as listEnvelopeSchema } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
4
  import { n as windowList } from "./window-BkvrP0gB.mjs";
5
5
  import { a as TimelineEventCompact } from "./timeline-CCSU2qOS.mjs";
6
6
  import { t as timelineEventView } from "./timeline-uDCmwGFT.mjs";
@@ -11,7 +11,7 @@ var events_default = defineMetabaseCommand({
11
11
  name: "events",
12
12
  description: "List events on a timeline"
13
13
  },
14
- capabilities: { minVersion: 58 },
14
+ requires: ["timeline.events"],
15
15
  args: {
16
16
  ...outputFlags,
17
17
  ...listFlags,
@@ -1,7 +1,7 @@
1
- import { F as outputFlags, I as profileFlag, M as connectionFlags, b as warn, c as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags, c as renderSummary, x as warn } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
3
  import { i as SyncExportResult } from "./git-sync-BDnxPrqU.mjs";
4
- import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-DWEF9tX4.mjs";
4
+ import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-DiQ_kRjZ.mjs";
5
5
  import { r as syncExportView } from "./git-sync-DxD_ng48.mjs";
6
6
  import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-BACcrs0i.mjs";
7
7
  //#region src/commands/git-sync/export.ts
@@ -10,10 +10,7 @@ var export_default = defineMetabaseCommand({
10
10
  name: "export",
11
11
  description: "Export Metabase changes back to the configured git remote"
12
12
  },
13
- capabilities: {
14
- minVersion: 60,
15
- tokenFeature: "remote_sync"
16
- },
13
+ requires: ["gitSync.export"],
17
14
  args: {
18
15
  ...outputFlags,
19
16
  ...profileFlag,
@@ -1,4 +1,4 @@
1
- import { t as defineCommandGroup } from "./group-DBM87IgC.mjs";
1
+ import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
2
2
  //#region src/commands/field/index.ts
3
3
  var field_default = defineCommandGroup({
4
4
  name: "field",
@@ -8,10 +8,10 @@ var field_default = defineCommandGroup({
8
8
  purpose: "semantic types, FK targets, visibility, dropdown behavior"
9
9
  }],
10
10
  subCommands: {
11
- get: () => import("./get-00lyLv6R.mjs").then((m) => m.default),
12
- values: () => import("./values-Dxf1JEoA.mjs").then((m) => m.default),
13
- summary: () => import("./summary-CsPvcUwW.mjs").then((m) => m.default),
14
- update: () => import("./update-C4YJQFDS.mjs").then((m) => m.default)
11
+ get: () => import("./get-BfVCLBqc.mjs").then((m) => m.default),
12
+ values: () => import("./values-DLwZl-P8.mjs").then((m) => m.default),
13
+ summary: () => import("./summary-B4GPiuqD.mjs").then((m) => m.default),
14
+ update: () => import("./update-DBGaJDsj.mjs").then((m) => m.default)
15
15
  }
16
16
  });
17
17
  //#endregion
@@ -1,6 +1,6 @@
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 { t as defineMetabaseCommand } from "./runtime-DiKyBxOw.mjs";
3
- import { t as parseId } from "./parse-id-C_jmKFaa.mjs";
1
+ import { I as outputFlags, L as profileFlag, N as connectionFlags, P as listFlags, o as renderList, z as listEnvelopeSchema } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
4
  import { n as windowList } from "./window-BkvrP0gB.mjs";
5
5
  import { r as FieldCompact } from "./field-Cr2DPUG9.mjs";
6
6
  import { r as fieldView } from "./field-BPsNa-TO.mjs";
@@ -11,7 +11,7 @@ var fields_default = defineMetabaseCommand({
11
11
  name: "fields",
12
12
  description: "List fields on a table (projection over query_metadata.fields)"
13
13
  },
14
- capabilities: { minVersion: 58 },
14
+ requires: ["table.queryMetadata"],
15
15
  args: {
16
16
  ...outputFlags,
17
17
  ...listFlags,
@@ -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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.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,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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { r as Collection } from "./collection-WFdBeyqa.mjs";
4
+ import { n as collectionView } from "./collection-DALwHnbz.mjs";
5
+ import { t as parseCollectionRef } from "./parse-ref-BJ_Q0tNW.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,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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
+ import { t as Transform } from "./transform-DpuG-ON3.mjs";
5
+ import { n as transformView } from "./transform-Bk0D0nIs.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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.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,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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
4
  import { t as Field } from "./field-Cr2DPUG9.mjs";
5
5
  import { r as fieldView } from "./field-BPsNa-TO.mjs";
6
6
  //#region src/commands/field/get.ts
@@ -9,7 +9,7 @@ var get_default = defineMetabaseCommand({
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,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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.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,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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
4
  import { t as Pulse } from "./pulse-BmsDenXm.mjs";
5
5
  import { t as pulseView } from "./pulse-DhG6I9mI.mjs";
6
6
  //#region src/commands/subscription/get.ts
@@ -9,7 +9,7 @@ var get_default = defineMetabaseCommand({
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,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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as Library } from "./library-DXB8sm4r.mjs";
4
+ import { t as libraryView } from "./library-CmctxHjv.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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
4
4
  import { t as Document } from "./document-Cd2mmqCp.mjs";
5
5
  import { t as documentView } from "./document-D6OybtP2.mjs";
6
6
  //#region src/commands/document/get.ts
@@ -9,7 +9,7 @@ var get_default = defineMetabaseCommand({
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,
@@ -0,0 +1,89 @@
1
+ import { B as listEnvelopeSchemaWithExtras, I as outputFlags, K as ConfigError, L as profileFlag, P as listFlags, s as renderListWithExtras, u as writeText, x as warn } from "./cli.mjs";
2
+ import { a as readCachedServerProfile, l as resolveProfileName, n as parseCsv, t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
3
+ import { n as windowList } from "./window-BkvrP0gB.mjs";
4
+ import { a as readSkillContent, i as loadVisibleSkills, o as selectForProfile, r as loadAllSkills, s as selectSkillsByNames, t as SkillContent } from "./skills-DkDsSH5F.mjs";
5
+ import { i as unavailableSkillsFlag, r as skillFilterNotices, t as UnavailableSkills } from "./skill-list-DTnDhnL5.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; --all also prints everything 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
+ ...unavailableSkillsFlag
35
+ },
36
+ outputSchema: SkillGetEnvelope,
37
+ examples: [
38
+ "mb skills get core",
39
+ "mb skills get core --full",
40
+ "mb skills get git-sync,transform --json",
41
+ "mb skills get --all --json",
42
+ "mb skills get transform --all"
43
+ ],
44
+ async run({ args, ctx }) {
45
+ const profileName = resolveProfileName(args.profile);
46
+ const bypassed = args.all === true;
47
+ const profile = bypassed ? null : await readCachedServerProfile(profileName);
48
+ const selection = selectForProfile(pickSkills({
49
+ names: args.names,
50
+ all: bypassed
51
+ }), profile);
52
+ const envelope = windowList(selection.skills.map((info) => readSkillContent(info, {
53
+ includeExtras: ctx.full,
54
+ profile
55
+ })), ctx.range);
56
+ if (ctx.format === "json") {
57
+ renderListWithExtras(envelope, { unavailable: selection.unavailable }, skillContentView, {
58
+ ...ctx,
59
+ oversizeHint: SKILL_OVERSIZE_HINT
60
+ });
61
+ return;
62
+ }
63
+ if (envelope.data.length > 0) writeText(renderText(envelope.data, ctx.full));
64
+ for (const notice of skillFilterNotices(selection.unavailable, {
65
+ profileName,
66
+ bypassed
67
+ })) warn(notice);
68
+ }
69
+ });
70
+ function pickSkills({ names, all }) {
71
+ if (names !== void 0) return selectSkillsByNames(loadAllSkills(), parseCsv(names));
72
+ if (all) return loadVisibleSkills();
73
+ throw new ConfigError("provide a skill name (comma-separated for multiple) or --all");
74
+ }
75
+ function renderText(payloads, includeExtras) {
76
+ return payloads.map((payload) => renderTextSection(payload, includeExtras)).join("\n\n");
77
+ }
78
+ function renderTextSection(payload, includeExtras) {
79
+ const parts = [payload.body.trimEnd()];
80
+ if (!includeExtras) return parts.join("\n\n");
81
+ for (const ref of payload.references) parts.push(extraFileHeader(payload.name, ref.path), ref.content.trimEnd());
82
+ for (const tpl of payload.templates) parts.push(extraFileHeader(payload.name, tpl.path), tpl.content.trimEnd());
83
+ return parts.join("\n\n");
84
+ }
85
+ function extraFileHeader(skillName, relPath) {
86
+ return `=== ${skillName}/${relPath} ===`;
87
+ }
88
+ //#endregion
89
+ 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 { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
2
2
  import { n as Notification } from "./notification-DaA4bBHW.mjs";
3
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";
4
+ import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
5
+ import { t as parseId } from "./parse-id-DR8aUSdL.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,