@metabase/cli 0.3.1-alpha.support-worktrees.b634907 → 0.3.1-alpha.transform-tests.3fbcf8b

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 (246) hide show
  1. package/dist/{add-collection-CxzzDG4z.mjs → add-collection-C-XJPp3F.mjs} +5 -6
  2. package/dist/{alert-CQ7Az16h.mjs → alert-Klz8Bhst.mjs} +7 -7
  3. package/dist/{alerts-DmwyyBfW.mjs → alerts-Bp2vByJf.mjs} +6 -7
  4. package/dist/{append-B0avMkvW.mjs → append-D16_s1HW.mjs} +3 -4
  5. package/dist/archive-BOJUGwyL.mjs +32 -0
  6. package/dist/{archive-Cvrkz8F8.mjs → archive-Bj4MjbJY.mjs} +4 -5
  7. package/dist/{archive-THcEfy9B.mjs → archive-C9iNjXcI.mjs} +4 -5
  8. package/dist/{archive-BPSNe0Ul.mjs → archive-CA-HIfQq.mjs} +3 -4
  9. package/dist/{archive-DCyeRNfV.mjs → archive-D4nGMs8A.mjs} +3 -4
  10. package/dist/{archive-BVblae-p.mjs → archive-Dd7ZTibw.mjs} +3 -4
  11. package/dist/{archive-CMTHh4-w.mjs → archive-Q_qUuYh8.mjs} +3 -4
  12. package/dist/archive-RzzXt2V0.mjs +32 -0
  13. package/dist/{archive-BZEu6UfT.mjs → archive-lDnTIypd.mjs} +5 -6
  14. package/dist/{archive-DFofUIEC.mjs → archive-nDvHMzTv.mjs} +3 -4
  15. package/dist/{archive-BQ50OZ7y.mjs → archive-vzu8ghZZ.mjs} +3 -4
  16. package/dist/{auth-BEEkuu4J.mjs → auth-kyPQfiND.mjs} +5 -5
  17. package/dist/{branches-CmWc8NyL.mjs → branches-QixvzIpl.mjs} +3 -4
  18. package/dist/{cancel-DrQqmxvn.mjs → cancel-CPStS4zJ.mjs} +3 -4
  19. package/dist/cancel-task--cuSISnl.mjs +28 -0
  20. package/dist/{card-CrBGUkGQ.mjs → card-DZxRmver.mjs} +0 -1
  21. package/dist/card-p2r_szeS.mjs +24 -0
  22. package/dist/{card-BEeafd4Y.mjs → card-zyUkr2nS.mjs} +1 -1
  23. package/dist/{cards-M_6X8wCI.mjs → cards-CNbV8aGO.mjs} +4 -5
  24. package/dist/cli.mjs +48 -142
  25. package/dist/{client-DYD8WZYy.mjs → client-DynvZqa0.mjs} +129 -207
  26. package/dist/collection-CAM47Der.mjs +20 -0
  27. package/dist/{collection-CJHqsFKP.mjs → collection-CGoVLvcD.mjs} +1 -1
  28. package/dist/{collection-BxE7OzcQ.mjs → collection-CfulNRBG.mjs} +3 -6
  29. package/dist/{content-translation-C8MlXPOF.mjs → content-translation-CxTabpLF.mjs} +3 -3
  30. package/dist/{create-BqpkCjx4.mjs → create-BGV7ejai.mjs} +2 -3
  31. package/dist/{create-ByuJ6T4k.mjs → create-BGy4L_yh.mjs} +5 -6
  32. package/dist/{create-CY-SzM66.mjs → create-BMokmmLp2.mjs} +9 -14
  33. package/dist/{create-CJ7Am4Gc.mjs → create-BTvSwLws.mjs} +3 -4
  34. package/dist/{create-C2XFfbjx.mjs → create-BikaTHCw.mjs} +2 -3
  35. package/dist/{create-z-oMrlfT.mjs → create-BsvpUxJq.mjs} +4 -5
  36. package/dist/{create-BLWwN0uw.mjs → create-CEP4Jsrd.mjs} +3 -4
  37. package/dist/{create-hTc131aX.mjs → create-CYhsYOOJ.mjs} +2 -3
  38. package/dist/{create-CoubLR5o.mjs → create-CsABLrSI.mjs} +3 -4
  39. package/dist/{create-ldrghMd1.mjs → create-CtDaASGO.mjs} +2 -3
  40. package/dist/{create-myI6doga.mjs → create-DMLjSEkF.mjs} +3 -4
  41. package/dist/{create-D0anrINz.mjs → create-M8qXs24L.mjs} +8 -13
  42. package/dist/{create-BupBEwR2.mjs → create-U15wd8_9.mjs} +6 -11
  43. package/dist/{create-BA_tTDEk.mjs → create-UxWtLwXT.mjs} +3 -4
  44. package/dist/{create-C7iooS6W.mjs → create-WIIp7MVV.mjs} +7 -13
  45. package/dist/create-branch-Bkq9rtf7.mjs +35 -0
  46. package/dist/create-ku05K1Oj.mjs +34 -0
  47. package/dist/{csv-DBNzJiWK.mjs → csv-GincCch9.mjs} +3 -4
  48. package/dist/{current-task-YzemU0Ic.mjs → current-task-CbnNWQ7H.mjs} +7 -12
  49. package/dist/{dashboard-B1mpfCq_.mjs → dashboard-ReNaou5J.mjs} +10 -10
  50. package/dist/{db-1tLH3nYI.mjs → db-2hSYsqHk.mjs} +7 -7
  51. package/dist/{delete-CpKH5ia4.mjs → delete-B2wmUpj_.mjs} +4 -5
  52. package/dist/{delete-CD_-B4Kq.mjs → delete-BEPw7WRT.mjs} +4 -5
  53. package/dist/{delete-eAUB7p-f.mjs → delete-Bv3_SIqh.mjs} +5 -10
  54. package/dist/{delete-DjAUp9mk.mjs → delete-C1YmyeVy.mjs} +4 -5
  55. package/dist/delete-CZqleA9Q.mjs +44 -0
  56. package/dist/{delete-QNgBV6eS.mjs → delete-DNsY94Ok.mjs} +5 -10
  57. package/dist/{delete-runtime-b2_ZMSjj.mjs → delete-runtime-D74s6vhu.mjs} +1 -1
  58. package/dist/{delete-table-DamlxnSO.mjs → delete-table-DySwoEaq.mjs} +5 -10
  59. package/dist/dependencies-ygT6uMu4.mjs +36 -0
  60. package/dist/dirty-BkiHZ8gb.mjs +31 -0
  61. package/dist/document-DGbDloCb.mjs +19 -0
  62. package/dist/{download-C4v7u-AV.mjs → download-Chr-YNTG.mjs} +2 -3
  63. package/dist/{eid-CP35PdEF.mjs → eid-BvY-YGpN.mjs} +2 -3
  64. package/dist/{events-DmbzKIh_.mjs → events-B01P0G7C.mjs} +4 -5
  65. package/dist/{export-i8D6laBG.mjs → export-CG23iezf.mjs} +12 -25
  66. package/dist/{field-BKn9bt7I.mjs → field-DikmNcAt.mjs} +5 -5
  67. package/dist/{fields-8_p81BqN.mjs → fields-C9BF3jHL.mjs} +4 -5
  68. package/dist/get-B3jvGI0b.mjs +31 -0
  69. package/dist/{get-CNEQK0-9.mjs → get-B4GltkXP.mjs} +4 -5
  70. package/dist/get-BHpVRSbm.mjs +32 -0
  71. package/dist/{get-N4dOaTsp.mjs → get-BYSFFlsd.mjs} +4 -5
  72. package/dist/{get-BbHPFNqr.mjs → get-Blbcl76m.mjs} +3 -4
  73. package/dist/{get-CPTbySa7.mjs → get-BtauixMx.mjs} +3 -4
  74. package/dist/{get-DFkbi5L3.mjs → get-Buxkx-RX.mjs} +2 -3
  75. package/dist/get-C1V7vZse.mjs +31 -0
  76. package/dist/{get-CAzSP-7o.mjs → get-C99cjjD0.mjs} +3 -4
  77. package/dist/{get-BBOfshz1.mjs → get-CMMXBVff.mjs} +3 -4
  78. package/dist/{get-Bds6Izxk.mjs → get-CkMLxzVy.mjs} +3 -4
  79. package/dist/{get-vrccOMBk.mjs → get-DY-e5oP7.mjs} +3 -4
  80. package/dist/{get-B0g6VMBC.mjs → get-DZpRq_Fw.mjs} +3 -4
  81. package/dist/{get-DnCE7K0y.mjs → get-DdSB-fpR.mjs} +4 -5
  82. package/dist/{get-BHGgXqUq.mjs → get-DvqYIBp5.mjs} +3 -4
  83. package/dist/get-FJofgEPB.mjs +36 -0
  84. package/dist/{get-CWf46UFu.mjs → get-N5EUCDL0.mjs} +5 -6
  85. package/dist/{get-vvs0qzzM.mjs → get-PKhv8WUf.mjs} +3 -4
  86. package/dist/{get-BvW21ujw.mjs → get-UW0DOjH5.mjs} +3 -4
  87. package/dist/{get-DvLuY5Xu.mjs → get-gFM8-HHP.mjs} +9 -17
  88. package/dist/{get-run-4Ng8_awa.mjs → get-run-F7ARJeAD.mjs} +5 -6
  89. package/dist/{git-sync-DLzJrdMi.mjs → git-sync-BDnxPrqU.mjs} +3 -22
  90. package/dist/{git-sync-LQIVMNxO.mjs → git-sync-DxD_ng48.mjs} +2 -31
  91. package/dist/git-sync-IW4T2sKq.mjs +28 -0
  92. package/dist/{group-YN6jj2AN.mjs → group-DBM87IgC.mjs} +2 -3
  93. package/dist/{has-remote-changes-BXPGI9xG.mjs → has-remote-changes-Bwyp8mc-.mjs} +6 -14
  94. package/dist/{import-BoxOkA-G.mjs → import-CPY8aM8d.mjs} +11 -28
  95. package/dist/{is-dirty-Cwxq4_gd.mjs → is-dirty-0F_UJY7Q.mjs} +6 -15
  96. package/dist/{items-Cv6iAzrI.mjs → items-FUop0zGR.mjs} +9 -17
  97. package/dist/{library-Cfw6eF35.mjs → library-ClLgrAXy.mjs} +1 -1
  98. package/dist/{library-fhVn1KDC.mjs → library-DfYAT2Ep.mjs} +1 -1
  99. package/dist/{library-CRaOhJnj.mjs → library-DpOtb0E0.mjs} +5 -5
  100. package/dist/{list-BBp9XjYs.mjs → list--B2EUWJg.mjs} +3 -4
  101. package/dist/list-B-74c1BD.mjs +35 -0
  102. package/dist/{list-BLJkJp5a.mjs → list-BASNYNJr.mjs} +3 -4
  103. package/dist/list-BQaXU1bp.mjs +28 -0
  104. package/dist/{list-DhrapAcy.mjs → list-BQrk4Ua4.mjs} +3 -4
  105. package/dist/{list-C8J3n8B8.mjs → list-Beoh2AYD.mjs} +3 -4
  106. package/dist/{list-9uvk9dIA.mjs → list-Bqm0F1Y-.mjs} +3 -4
  107. package/dist/{list-oAAgU5uE.mjs → list-C2qxVTu7.mjs} +9 -16
  108. package/dist/list-CGkgypYz.mjs +38 -0
  109. package/dist/{list-CtZAu4im.mjs → list-CvzWE6CS.mjs} +4 -5
  110. package/dist/list-DMlFbccD.mjs +28 -0
  111. package/dist/{list-tutXEQRW.mjs → list-DdFViPYS.mjs} +4 -5
  112. package/dist/{list-DOZNpX4b.mjs → list-DfbsmsHv.mjs} +4 -5
  113. package/dist/{list--2T-GUEF.mjs → list-GyP4b_tU.mjs} +4 -5
  114. package/dist/{list-DOaWCx8S.mjs → list-Uc1OxV36.mjs} +8 -17
  115. package/dist/{list-L2U1l6R4.mjs → list-ba7lI44w.mjs} +3 -4
  116. package/dist/{list-BwkfWtP2.mjs → list-lzIKVtE9.mjs} +3 -4
  117. package/dist/list-rQ-6XSua.mjs +36 -0
  118. package/dist/{list-WSJLnunb.mjs → list-xC99-2X0.mjs} +3 -4
  119. package/dist/{login-DqWRF3Og.mjs → login-D5jt0q9K.mjs} +4 -5
  120. package/dist/{logout-ChCz1bkf.mjs → logout-DViy0VzV.mjs} +2 -3
  121. package/dist/{measure-C5dIdFj1.mjs → measure-IPlonpqU.mjs} +6 -6
  122. package/dist/{notification-DVrLkjFT.mjs → notification-Fcq1fIPw.mjs} +1 -1
  123. package/dist/{parameter-values-Dy4cBs5y.mjs → parameter-values-CHyOCxmR.mjs} +3 -4
  124. package/dist/{parse-id-DDCn3VXx.mjs → parse-id-CPINxy7h.mjs} +1 -1
  125. package/dist/{parse-ref-Wv21Roup.mjs → parse-ref-ibKVB0J4.mjs} +2 -6
  126. package/dist/{path-IYhuzjQV.mjs → path-bMZzUOVo.mjs} +4 -5
  127. package/dist/{preflight-HLUVr2Yf.mjs → preflight-CoF1Em99.mjs} +1 -1
  128. package/dist/{publish-CMkCSt8i.mjs → publish-Cs-OUG6n.mjs} +4 -5
  129. package/dist/{pulse-a-83M4DV.mjs → pulse-DhG6I9mI.mjs} +1 -1
  130. package/dist/{query-tWQAV9pb.mjs → query-CEdmSEq8.mjs} +6 -7
  131. package/dist/{query-Bka77J62.mjs → query-CpD46hL6.mjs} +6 -7
  132. package/dist/{query-result-E4Q-Gra6.mjs → query-result-DBDwk8TS.mjs} +1 -1
  133. package/dist/{remove-collection-BV9wRQZD.mjs → remove-collection-DynsqkwG.mjs} +5 -6
  134. package/dist/{render-DHjCcUXn.mjs → render-CI93iP0I.mjs} +1 -7
  135. package/dist/{replace-mt47dlRV.mjs → replace-C6YqqCG9.mjs} +3 -4
  136. package/dist/{rescan-values-6cRjcpTs.mjs → rescan-values-C6PB02uT.mjs} +3 -4
  137. package/dist/run-C7PXBBEl.mjs +50 -0
  138. package/dist/{run-DI_pDxji.mjs → run-Cb86sH_c.mjs} +5 -6
  139. package/dist/{run-BmGmC-GQ.mjs → run-CpmWoOGp.mjs} +3 -4
  140. package/dist/{runs-9Fu0mug5.mjs → runs-CCRszsbB.mjs} +6 -7
  141. package/dist/{runtime-CNAZ_FuR.mjs → runtime-BMJv4VOi.mjs} +8 -103
  142. package/dist/{schema-tables-CLG0mtQb.mjs → schema-tables-BQdFNy1B.mjs} +4 -5
  143. package/dist/{schemas-Cm5NWy59.mjs → schemas-CNAPFh4n.mjs} +4 -5
  144. package/dist/{search-CljYyf2F.mjs → search-BKVV6YtB.mjs} +8 -14
  145. package/dist/{segment-IRzlQggt.mjs → segment-CDoZHSYX.mjs} +6 -6
  146. package/dist/{selectors-D4iOP5uB.mjs → selectors-BXbjj36S.mjs} +2 -2
  147. package/dist/{send-D7DBnQbu.mjs → send-D2eXL9lt.mjs} +3 -4
  148. package/dist/{set-active-CkE0Eiqh.mjs → set-active-DT61WwV0.mjs} +2 -3
  149. package/dist/{set-DKN8fuC6.mjs → set-sHBtSGLi.mjs} +2 -3
  150. package/dist/{setting-CN4l8N-b.mjs → setting-dkfKvCxc.mjs} +4 -4
  151. package/dist/{setup-BpTptmdO.mjs → setup-TOwWatgm.mjs} +2 -3
  152. package/dist/{skills-BSAiLI3Z.mjs → skills-BcOjZldN.mjs} +3 -3
  153. package/dist/{skills-hVKSOCUf.mjs → skills-DTCrMcix.mjs} +1 -1
  154. package/dist/{snippet-BxgvQ09J.mjs → snippet-CyKAgIZl.mjs} +2 -5
  155. package/dist/snippet-DMdFqvNq.mjs +19 -0
  156. package/dist/{snippet-DecHB4Dn.mjs → snippet-oJLaYW9V.mjs} +1 -1
  157. package/dist/{stash-DJs6A6BA.mjs → stash-BgWw2lyu.mjs} +6 -7
  158. package/dist/{status-N_2EaWb7.mjs → status-B14FO8n7.mjs} +6 -15
  159. package/dist/{status-DtwBDRtc.mjs → status-J4pEIm-c.mjs} +16 -44
  160. package/dist/{subscription-BnGDp1oy.mjs → subscription-B1uuKxM7.mjs} +6 -6
  161. package/dist/{subscriptions-BfFwV__x.mjs → subscriptions-BHIATSN6.mjs} +6 -7
  162. package/dist/{summary-CHiq-4mz.mjs → summary-B1V5TXaZ.mjs} +3 -4
  163. package/dist/{sync-schema-DhnM-rpm.mjs → sync-schema-D1vX-rpv.mjs} +4 -5
  164. package/dist/{sync-task-G1K47Nvn.mjs → sync-task-BACcrs0i.mjs} +1 -1
  165. package/dist/{table-BQaiCSNS.mjs → table-CDeO1WbH.mjs} +5 -5
  166. package/dist/timeline-MQFX3Fla.mjs +21 -0
  167. package/dist/{timeline-event-B7H1y8s8.mjs → timeline-event-oGmne082.mjs} +6 -6
  168. package/dist/transform-CWIqW64R.mjs +28 -0
  169. package/dist/{transform-BvOEn41C.mjs → transform-D3QX0jxA.mjs} +1 -4
  170. package/dist/{transform-CiDOJGBW.mjs → transform-DoTyyXAu.mjs} +2 -2
  171. package/dist/transform-job-DpF2MARE.mjs +22 -0
  172. package/dist/{transform-tag-Dip51YBa.mjs → transform-tag-Bpj8l5Ci.mjs} +5 -5
  173. package/dist/{transform-tag-jBVd6wXd.mjs → transform-tag-CcElGp3C.mjs} +4 -9
  174. package/dist/{transform-tag-DiXWRCQG.mjs → transform-tag-Dmb4u3-Q.mjs} +1 -1
  175. package/dist/transform-test-BJOPAwKl.mjs +25 -0
  176. package/dist/transform-test-BhkpwFqD.mjs +16 -0
  177. package/dist/transform-test-Dhcj7u-U.mjs +142 -0
  178. package/dist/{transforms-C-jYgS6z.mjs → transforms-K7Y4ON_q.mjs} +6 -7
  179. package/dist/tree-CtFtroe4.mjs +27 -0
  180. package/dist/{unpublish-BokbnLng.mjs → unpublish-D7UaaIWA.mjs} +3 -4
  181. package/dist/{update-BRXKLeJH.mjs → update-3ksm443P.mjs} +3 -4
  182. package/dist/{update-AZSXMJqu.mjs → update-B7veBLhx.mjs} +7 -13
  183. package/dist/{update-CfQoYVTc.mjs → update-BicO3Lio.mjs} +3 -4
  184. package/dist/{update-e7lyQPxq.mjs → update-BlBEKrNE.mjs} +7 -13
  185. package/dist/{update-BErxnZrj.mjs → update-BpuZsX9z.mjs} +4 -5
  186. package/dist/{update-CKL2FtoX.mjs → update-BvbPpgOL.mjs} +4 -5
  187. package/dist/{update-C4PbAYgW.mjs → update-CGJXd_E3.mjs} +3 -4
  188. package/dist/{update-B9DcRSBQ.mjs → update-C_wTtrtX.mjs} +10 -16
  189. package/dist/{update-BCGE5UYC.mjs → update-D9Nfv864.mjs} +4 -5
  190. package/dist/{update-D9OTkZhw.mjs → update-DUNJEk8m.mjs} +3 -4
  191. package/dist/{update-Bc8s1TL1.mjs → update-HqUKBeM2.mjs} +3 -4
  192. package/dist/{update-CpLEEbiJ.mjs → update-MWaDj2VX.mjs} +6 -7
  193. package/dist/{update-BBQInyiJ.mjs → update-YkB3xWUh.mjs} +4 -5
  194. package/dist/{update-rkbpH0lF.mjs → update-bix8NoKq.mjs} +3 -4
  195. package/dist/{update-CPEU8ZEu.mjs → update-dRAPKE3c.mjs} +4 -5
  196. package/dist/{update-dashcard-St-dGcE3.mjs → update-dashcard-BGqKMqQb.mjs} +3 -4
  197. package/dist/update-e4ufwrkF.mjs +41 -0
  198. package/dist/{upgrade-CUoRHfVg.mjs → upgrade-DkQ1wk4z.mjs} +2 -3
  199. package/dist/{upload-BPd1Uzxc.mjs → upload-BfGc-L4t.mjs} +2 -3
  200. package/dist/upload-JN6EK96c.mjs +13 -0
  201. package/dist/{uuid-CFN8LIkP.mjs → uuid-BLBLkWAF.mjs} +2 -3
  202. package/dist/{validate-query-Chc43ezW.mjs → validate-query-DaGYSmpQ.mjs} +1 -1
  203. package/dist/{values-BL_U-Zdw.mjs → values-8CrXBkyg.mjs} +3 -4
  204. package/dist/{verify-DnBaRmkI.mjs → verify-nNVN-0CR.mjs} +2 -2
  205. package/dist/{wait-mPoOZxrw.mjs → wait-YrD7UYFF.mjs} +7 -12
  206. package/dist/{wait-flags-DzytMEG8.mjs → wait-flags-CDtMS8FP.mjs} +2 -2
  207. package/dist/{window-DSb1tqSe.mjs → window-BkvrP0gB.mjs} +1 -1
  208. package/package.json +1 -1
  209. package/skill-data/core/SKILL.md +15 -17
  210. package/skill-data/git-sync/SKILL.md +1 -91
  211. package/skill-data/transform/SKILL.md +56 -10
  212. package/dist/archive-CqOKKrb2.mjs +0 -38
  213. package/dist/archive-DCjdICg7.mjs +0 -38
  214. package/dist/branch-BSeGrtP7.mjs +0 -28
  215. package/dist/cancel-task-BMQXtjW5.mjs +0 -34
  216. package/dist/card-RlzLDB2z.mjs +0 -24
  217. package/dist/collection-Bhe20ckt.mjs +0 -20
  218. package/dist/create-DwrhcI8r2.mjs +0 -144
  219. package/dist/create-branch-B3BMpF1g.mjs +0 -49
  220. package/dist/delete-D_OgiI4v.mjs +0 -86
  221. package/dist/dependencies-DEx0BsZ3.mjs +0 -41
  222. package/dist/dirty-dC1-Ud0G.mjs +0 -40
  223. package/dist/document-DOJbBWLF.mjs +0 -19
  224. package/dist/export-preflight-B5MvYhm3.mjs +0 -67
  225. package/dist/get-Cfagmy1i.mjs +0 -42
  226. package/dist/get-DwdMvWXU.mjs +0 -44
  227. package/dist/get-jV8G90Zy.mjs +0 -42
  228. package/dist/get-mGEv-kag.mjs +0 -33
  229. package/dist/git-sync-DjoaNmRM.mjs +0 -29
  230. package/dist/list-5Iojbr_p.mjs +0 -37
  231. package/dist/list-BD4onDqO.mjs +0 -37
  232. package/dist/list-C2yL7-CH.mjs +0 -45
  233. package/dist/list-CbbKip6U.mjs +0 -32
  234. package/dist/list-Dg2XeDON.mjs +0 -47
  235. package/dist/pin-BuZ_kg-u.mjs +0 -62
  236. package/dist/scope-DsGuWG5w.mjs +0 -11
  237. package/dist/snippet-LlHz3FdJ.mjs +0 -19
  238. package/dist/timeline-C2VW0Ph6.mjs +0 -21
  239. package/dist/transform-DAf0Y02t.mjs +0 -28
  240. package/dist/transform-job-ntiT5Rrh.mjs +0 -22
  241. package/dist/tree-DtyJhD54.mjs +0 -36
  242. package/dist/unpin-DxbXmLtW.mjs +0 -45
  243. package/dist/upload-Dc3QLhZw.mjs +0 -13
  244. package/dist/worktree-ChdDlG3Q.mjs +0 -25
  245. package/dist/worktree-DC0kTxxQ.mjs +0 -20
  246. package/dist/worktree-xAro1xAB.mjs +0 -24
@@ -1,10 +1,10 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
- import { r as CardCreateInput, t as Card } from "./card-CrBGUkGQ.mjs";
6
- import { n as cardView } from "./card-BEeafd4Y.mjs";
7
- import { a as preflightMbql5Query, o as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-Chc43ezW.mjs";
5
+ import { r as CardCreateInput, t as Card } from "./card-DZxRmver.mjs";
6
+ import { n as cardView } from "./card-zyUkr2nS.mjs";
7
+ import { a as preflightMbql5Query, o as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-DaGYSmpQ.mjs";
8
8
  //#region src/commands/card/create.ts
9
9
  var create_default = defineMetabaseCommand({
10
10
  meta: {
@@ -27,7 +27,6 @@ var create_default = defineMetabaseCommand({
27
27
  }
28
28
  ],
29
29
  capabilities: { minVersion: 58 },
30
- worktree: "main-only",
31
30
  args: {
32
31
  ...outputFlags,
33
32
  ...profileFlag,
@@ -1,10 +1,10 @@
1
- import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { o as scopeBody, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
- import { r as TransformCreateInput, t as Transform } from "./transform-BvOEn41C.mjs";
6
- import { a as preflightMbql5Query, i as TRANSFORM_SOURCE_QUERY_LABELS, o as skipValidateFlag } from "./validate-query-Chc43ezW.mjs";
7
- import { n as transformView } from "./transform-CiDOJGBW.mjs";
5
+ import { r as TransformCreateInput, t as Transform } from "./transform-D3QX0jxA.mjs";
6
+ import { a as preflightMbql5Query, i as TRANSFORM_SOURCE_QUERY_LABELS, o as skipValidateFlag } from "./validate-query-DaGYSmpQ.mjs";
7
+ import { n as transformView } from "./transform-DoTyyXAu.mjs";
8
8
  import { t as enrichTransformCollectionError } from "./collection-namespace-CEoQ7G08.mjs";
9
9
  //#region src/commands/transform/create.ts
10
10
  var create_default = defineMetabaseCommand({
@@ -12,18 +12,16 @@ var create_default = defineMetabaseCommand({
12
12
  name: "create",
13
13
  description: "Create a transform from JSON"
14
14
  },
15
- details: "The JSON body needs a `name`, a `source` (the query to run — native SQL or MBQL — under `source.query`), and a `target` (the warehouse table to write, with `database`/`schema`/`name`). When `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb query --print-schema`) before sending; pass --skip-validate to bypass. " + WORKTREE_SCOPE_DETAIL,
15
+ details: "The JSON body needs a `name`, a `source` (the query to run — native SQL or MBQL — under `source.query`), and a `target` (the warehouse table to write, with `database`/`schema`/`name`). When `source.query` is an MBQL 5 query it is checked against a bundled JSON Schema (print it with `mb query --print-schema`) before sending; pass --skip-validate to bypass.",
16
16
  skills: [{
17
17
  skill: "mbql",
18
18
  purpose: "MBQL source.query bodies"
19
19
  }],
20
20
  capabilities: { minVersion: 59 },
21
- worktree: "scoped",
22
21
  args: {
23
22
  ...outputFlags,
24
23
  ...profileFlag,
25
24
  ...connectionFlags,
26
- ...worktreeFlag,
27
25
  ...bodyInputFlags,
28
26
  ...skipValidateFlag
29
27
  },
@@ -32,18 +30,15 @@ var create_default = defineMetabaseCommand({
32
30
  examples: [
33
31
  "cat transform.json | mb transform create",
34
32
  "mb transform create --file transform.json",
35
- "mb transform create --file transform.json --skip-validate",
36
- "mb transform create --file transform.json --worktree feat/transforms"
33
+ "mb transform create --file transform.json --skip-validate"
37
34
  ],
38
- async run({ args, ctx, getClient, getWorktree }) {
35
+ async run({ args, ctx, getClient }) {
39
36
  const body = await readBody({
40
37
  flag: args.body,
41
38
  file: args.file
42
39
  }, TransformCreateInput);
43
40
  if (body.source.type === "query") preflightMbql5Query(body.source.query, TRANSFORM_SOURCE_QUERY_LABELS, { skip: args["skip-validate"] === true });
44
- const client = await getClient();
45
- const scope = await getWorktree();
46
- const created = await client.transform.create(scopeBody(body, scope)).catch((error) => {
41
+ const created = await (await getClient()).transform.create(body).catch((error) => {
47
42
  throw enrichTransformCollectionError(error);
48
43
  });
49
44
  renderSummary(created, transformView, `Created transform ${created.id} "${created.name}".`, ctx);
@@ -1,9 +1,9 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
5
  import { r as MeasureCreateInput, t as Measure } from "./measure-CtfjqJFP.mjs";
6
- import { a as preflightMbql5Query, n as MEASURE_DEFINITION_LABELS, o as skipValidateFlag } from "./validate-query-Chc43ezW.mjs";
6
+ import { a as preflightMbql5Query, n as MEASURE_DEFINITION_LABELS, o as skipValidateFlag } from "./validate-query-DaGYSmpQ.mjs";
7
7
  import { t as measureView } from "./measure-4P0bOlZ3.mjs";
8
8
  //#region src/commands/measure/create.ts
9
9
  var create_default = defineMetabaseCommand({
@@ -17,7 +17,6 @@ var create_default = defineMetabaseCommand({
17
17
  purpose: "the definition aggregation"
18
18
  }],
19
19
  capabilities: { minVersion: 59 },
20
- worktree: "main-only",
21
20
  args: {
22
21
  ...outputFlags,
23
22
  ...profileFlag,
@@ -1,5 +1,5 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
5
  import { i as TransformJobCreateInput, t as TransformJob } from "./transform-job-DRrK28IH.mjs";
@@ -11,7 +11,6 @@ var create_default = defineMetabaseCommand({
11
11
  description: "Create a transform job"
12
12
  },
13
13
  capabilities: { minVersion: 59 },
14
- worktree: "main-only",
15
14
  args: {
16
15
  ...outputFlags,
17
16
  ...profileFlag,
@@ -1,7 +1,7 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
- import { t as Library } from "./library-Cfw6eF35.mjs";
4
- import { t as libraryView } from "./library-fhVn1KDC.mjs";
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 { t as Library } from "./library-ClLgrAXy.mjs";
4
+ import { t as libraryView } from "./library-DfYAT2Ep.mjs";
5
5
  //#region src/commands/library/create.ts
6
6
  var create_default = defineMetabaseCommand({
7
7
  meta: {
@@ -13,7 +13,6 @@ var create_default = defineMetabaseCommand({
13
13
  minVersion: 59,
14
14
  tokenFeature: "library"
15
15
  },
16
- worktree: "main-only",
17
16
  args: {
18
17
  ...outputFlags,
19
18
  ...profileFlag,
@@ -1,9 +1,9 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
5
  import { i as PulseCreateInput, t as Pulse } from "./pulse-BmsDenXm.mjs";
6
- import { t as pulseView } from "./pulse-a-83M4DV.mjs";
6
+ import { t as pulseView } from "./pulse-DhG6I9mI.mjs";
7
7
  //#region src/commands/subscription/create.ts
8
8
  var create_default = defineMetabaseCommand({
9
9
  meta: {
@@ -18,7 +18,6 @@ var create_default = defineMetabaseCommand({
18
18
  "Email recipients are `[{email: \"a@b.com\"} | {id: <user-id>}]`; Slack targets a channel via `details: {channel: \"#general\"}`."
19
19
  ].join(" "),
20
20
  capabilities: { minVersion: 58 },
21
- worktree: "main-only",
22
21
  args: {
23
22
  ...outputFlags,
24
23
  ...profileFlag,
@@ -1,5 +1,5 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
5
  import { i as TimelineEvent, o as TimelineEventCreateInput } from "./timeline-CCSU2qOS.mjs";
@@ -12,7 +12,6 @@ var create_default = defineMetabaseCommand({
12
12
  },
13
13
  details: "The JSON body needs `name`, `timestamp` (ISO 8601), `timezone` (IANA name like UTC or America/New_York), `time_matters` (true when the time of day is significant, false when only the date is), and `timeline_id`; optional fields: `description`, `icon` (star|cake|mail|warning|bell|cloud, default: the timeline's icon).",
14
14
  capabilities: { minVersion: 58 },
15
- worktree: "main-only",
16
15
  args: {
17
16
  ...outputFlags,
18
17
  ...profileFlag,
@@ -1,10 +1,10 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
5
  import { r as DashboardCreateInput, t as Dashboard } from "./dashboard-CKUR8ZpQ.mjs";
6
6
  import { t as dashboardView } from "./dashboard-BlbNszi8.mjs";
7
- import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-HLUVr2Yf.mjs";
7
+ import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-CoF1Em99.mjs";
8
8
  //#region src/commands/dashboard/create.ts
9
9
  var create_default = defineMetabaseCommand({
10
10
  meta: {
@@ -20,7 +20,6 @@ var create_default = defineMetabaseCommand({
20
20
  purpose: "dashcard visualization_settings and the 24-column grid"
21
21
  }],
22
22
  capabilities: { minVersion: 58 },
23
- worktree: "main-only",
24
23
  args: {
25
24
  ...outputFlags,
26
25
  ...profileFlag,
@@ -1,5 +1,5 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
5
  import { r as DocumentCreateInput, t as Document } from "./document-Cd2mmqCp.mjs";
@@ -11,7 +11,6 @@ var create_default = defineMetabaseCommand({
11
11
  description: "Create a document"
12
12
  },
13
13
  capabilities: { minVersion: 58 },
14
- worktree: "main-only",
15
14
  args: {
16
15
  ...outputFlags,
17
16
  ...profileFlag,
@@ -1,7 +1,7 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
1
+ import { F as outputFlags, I as profileFlag, M as connectionFlags, c as renderSummary } from "./cli.mjs";
2
2
  import { a as NotificationCreateInput, n as Notification } from "./notification-DaA4bBHW.mjs";
3
- import { t as notificationView } from "./notification-DVrLkjFT.mjs";
4
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
+ import { t as notificationView } from "./notification-Fcq1fIPw.mjs";
4
+ import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
5
5
  import { t as describeAlert } from "./summary-BytbDz6e.mjs";
6
6
  import { t as readBody } from "./body-DxRSAMNC.mjs";
7
7
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
@@ -19,7 +19,6 @@ var create_default = defineMetabaseCommand({
19
19
  "each recipient is `{type: \"notification-recipient/user\", user_id}` or `{type: \"notification-recipient/raw-value\", details: {value: \"a@b.com\"}}`."
20
20
  ].join(" "),
21
21
  capabilities: { minVersion: 58 },
22
- worktree: "main-only",
23
22
  args: {
24
23
  ...outputFlags,
25
24
  ...profileFlag,
@@ -1,24 +1,22 @@
1
- import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { o as scopeBody, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
- import { a as CollectionCreateInput, r as Collection, u as CollectionNamespace } from "./collection-BxE7OzcQ.mjs";
5
+ import { a as CollectionCreateInput, r as Collection, u as CollectionNamespace } from "./collection-CfulNRBG.mjs";
6
6
  import { t as parseEnumFlag } from "./parse-enum-D0Jfm_Bz.mjs";
7
- import { n as collectionView } from "./collection-CJHqsFKP.mjs";
7
+ import { n as collectionView } from "./collection-CGoVLvcD.mjs";
8
8
  //#region src/commands/collection/create.ts
9
9
  var create_default = defineMetabaseCommand({
10
10
  meta: {
11
11
  name: "create",
12
12
  description: "Create a collection from a JSON spec"
13
13
  },
14
- details: "Body keys: `name` (required), `description`, `parent_id`, `authority_level`, `namespace`. Most collections use the default namespace (omit it). Pass `namespace: \"transforms\"` (or `--namespace transforms`) to create the kind of collection a transform's `collection_id` can point at — a regular collection is rejected there. " + WORKTREE_SCOPE_DETAIL,
14
+ details: "Body keys: `name` (required), `description`, `parent_id`, `authority_level`, `namespace`. Most collections use the default namespace (omit it). Pass `namespace: \"transforms\"` (or `--namespace transforms`) to create the kind of collection a transform's `collection_id` can point at — a regular collection is rejected there.",
15
15
  capabilities: { minVersion: 58 },
16
- worktree: "scoped",
17
16
  args: {
18
17
  ...outputFlags,
19
18
  ...profileFlag,
20
19
  ...connectionFlags,
21
- ...worktreeFlag,
22
20
  ...bodyInputFlags,
23
21
  namespace: {
24
22
  type: "string",
@@ -31,18 +29,15 @@ var create_default = defineMetabaseCommand({
31
29
  "cat collection.json | mb collection create",
32
30
  "mb collection create --file collection.json",
33
31
  "mb collection create --body '{\"name\":\"My Collection\",\"parent_id\":4}'",
34
- "mb collection create --body '{\"name\":\"ETL\"}' --namespace transforms",
35
- "mb collection create --body '{\"name\":\"ETL\"}' --worktree feat/transforms"
32
+ "mb collection create --body '{\"name\":\"ETL\"}' --namespace transforms"
36
33
  ],
37
- async run({ args, ctx, getClient, getWorktree }) {
34
+ async run({ args, ctx, getClient }) {
38
35
  const body = await readBody({
39
36
  flag: args.body,
40
37
  file: args.file
41
38
  }, CollectionCreateInput);
42
39
  if (typeof args.namespace === "string" && args.namespace !== "") body.namespace = parseEnumFlag(args.namespace, CollectionNamespace, "namespace");
43
- const client = await getClient();
44
- const scope = await getWorktree();
45
- const created = await client.collection.create(scopeBody(body, scope));
40
+ const created = await (await getClient()).collection.create(body);
46
41
  renderSummary(created, collectionView, `Created collection ${created.id} "${created.name}".`, ctx);
47
42
  }
48
43
  });
@@ -1,9 +1,9 @@
1
- import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { o as scopeBody, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
- import { r as SnippetCreateInput, t as Snippet } from "./snippet-BxgvQ09J.mjs";
6
- import { t as snippetView } from "./snippet-DecHB4Dn.mjs";
5
+ import { r as SnippetCreateInput, t as Snippet } from "./snippet-CyKAgIZl.mjs";
6
+ import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
7
7
  //#region src/commands/snippet/create.ts
8
8
  var create_default = defineMetabaseCommand({
9
9
  meta: {
@@ -11,13 +11,10 @@ var create_default = defineMetabaseCommand({
11
11
  description: "Create a native query snippet from a JSON spec"
12
12
  },
13
13
  capabilities: { minVersion: 58 },
14
- worktree: "scoped",
15
- details: WORKTREE_SCOPE_DETAIL,
16
14
  args: {
17
15
  ...outputFlags,
18
16
  ...profileFlag,
19
17
  ...connectionFlags,
20
- ...worktreeFlag,
21
18
  ...bodyInputFlags
22
19
  },
23
20
  inputSchema: SnippetCreateInput,
@@ -27,14 +24,12 @@ var create_default = defineMetabaseCommand({
27
24
  "mb snippet create --file snippet.json",
28
25
  "mb snippet create --body '{\"name\":\"active\",\"content\":\"WHERE active = true\"}'"
29
26
  ],
30
- async run({ args, ctx, getClient, getWorktree }) {
27
+ async run({ args, ctx, getClient }) {
31
28
  const body = await readBody({
32
29
  flag: args.body,
33
30
  file: args.file
34
31
  }, SnippetCreateInput);
35
- const client = await getClient();
36
- const scope = await getWorktree();
37
- const created = await client.snippet.create(scopeBody(body, scope));
32
+ const created = await (await getClient()).snippet.create(body);
38
33
  renderSummary(created, snippetView, `Created snippet ${created.id} "${created.name}".`, ctx);
39
34
  }
40
35
  });
@@ -1,9 +1,9 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
5
  import { r as SegmentCreateInput, t as Segment } from "./segment-OsrbUDzw.mjs";
6
- import { a as preflightMbql5Query, o as skipValidateFlag, r as SEGMENT_DEFINITION_LABELS } from "./validate-query-Chc43ezW.mjs";
6
+ import { a as preflightMbql5Query, o as skipValidateFlag, r as SEGMENT_DEFINITION_LABELS } from "./validate-query-DaGYSmpQ.mjs";
7
7
  import { t as segmentView } from "./segment-C_gl5ag6.mjs";
8
8
  //#region src/commands/segment/create.ts
9
9
  var create_default = defineMetabaseCommand({
@@ -17,7 +17,6 @@ var create_default = defineMetabaseCommand({
17
17
  purpose: "the definition filter clause"
18
18
  }],
19
19
  capabilities: { minVersion: 58 },
20
- worktree: "main-only",
21
20
  args: {
22
21
  ...outputFlags,
23
22
  ...profileFlag,
@@ -1,9 +1,9 @@
1
- import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { o as scopeBody, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
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
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
- import { r as TransformTagCreateInput, t as TransformTag } from "./transform-tag-jBVd6wXd.mjs";
6
- import { t as transformTagView } from "./transform-tag-DiXWRCQG.mjs";
5
+ import { r as TransformTagCreateInput, t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
6
+ import { t as transformTagView } from "./transform-tag-Dmb4u3-Q.mjs";
7
7
  //#region src/commands/transform-tag/create.ts
8
8
  var create_default = defineMetabaseCommand({
9
9
  meta: {
@@ -11,13 +11,10 @@ var create_default = defineMetabaseCommand({
11
11
  description: "Create a transform tag"
12
12
  },
13
13
  capabilities: { minVersion: 59 },
14
- worktree: "scoped",
15
- details: WORKTREE_SCOPE_DETAIL,
16
14
  args: {
17
15
  ...outputFlags,
18
16
  ...profileFlag,
19
17
  ...connectionFlags,
20
- ...worktreeFlag,
21
18
  ...bodyInputFlags
22
19
  },
23
20
  inputSchema: TransformTagCreateInput,
@@ -25,17 +22,14 @@ var create_default = defineMetabaseCommand({
25
22
  examples: [
26
23
  "mb transform-tag create --body '{\"name\":\"nightly\"}'",
27
24
  "mb transform-tag create --file tag.json",
28
- "echo '{\"name\":\"nightly\"}' | mb transform-tag create",
29
- "mb transform-tag create --body '{\"name\":\"nightly\"}' --worktree feat/transforms"
25
+ "echo '{\"name\":\"nightly\"}' | mb transform-tag create"
30
26
  ],
31
- async run({ args, ctx, getClient, getWorktree }) {
27
+ async run({ args, ctx, getClient }) {
32
28
  const body = await readBody({
33
29
  flag: args.body,
34
30
  file: args.file
35
31
  }, TransformTagCreateInput);
36
- const client = await getClient();
37
- const scope = await getWorktree();
38
- const created = await client.transformTag.create(scopeBody(body, scope));
32
+ const created = await (await getClient()).transformTag.create(body);
39
33
  renderSummary(created, transformTagView, `Created transform tag ${created.id} "${created.name}".`, ctx);
40
34
  }
41
35
  });
@@ -0,0 +1,35 @@
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 { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
4
+ import { t as SyncBranchCreated } from "./git-sync-BDnxPrqU.mjs";
5
+ import { t as syncBranchCreatedView } from "./git-sync-DxD_ng48.mjs";
6
+ //#region src/commands/git-sync/create-branch.ts
7
+ var create_branch_default = defineMetabaseCommand({
8
+ meta: {
9
+ name: "create-branch",
10
+ description: "Create a new branch on the git remote and switch git-sync to it"
11
+ },
12
+ capabilities: {
13
+ minVersion: 60,
14
+ tokenFeature: "remote_sync"
15
+ },
16
+ args: {
17
+ ...outputFlags,
18
+ ...profileFlag,
19
+ ...connectionFlags,
20
+ name: {
21
+ type: "positional",
22
+ description: "Branch name",
23
+ required: true
24
+ }
25
+ },
26
+ outputSchema: SyncBranchCreated,
27
+ examples: ["mb git-sync create-branch feat/dashboards", "mb git-sync create-branch feat/x --json"],
28
+ async run({ args, ctx, getClient }) {
29
+ const name = args.name.trim();
30
+ if (name === "") throw new ConfigError("invalid name: branch name must not be blank");
31
+ renderSummary(await (await getClient()).gitSync.createBranch({ name }), syncBranchCreatedView, `Created branch "${name}" and switched git-sync to it.`, ctx);
32
+ }
33
+ });
34
+ //#endregion
35
+ export { create_branch_default as default };
@@ -0,0 +1,34 @@
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 { t as readBody } from "./body-DxRSAMNC.mjs";
4
+ import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
5
+ import { r as TransformTestCreateInput, t as TransformTest } from "./transform-test-Dhcj7u-U.mjs";
6
+ import { t as transformTestView } from "./transform-test-BJOPAwKl.mjs";
7
+ //#region src/commands/transform-test/create.ts
8
+ var create_default = defineMetabaseCommand({
9
+ meta: {
10
+ name: "create",
11
+ description: "Create a transform test from JSON"
12
+ },
13
+ details: "The JSON body needs a `transform_id`, a `name`, the `inputs` standing in for every table the transform reads, and the `expectations` checked against its output. An input names its `table` and carries either `format: \"sql\"` with a `sql` query or `format: \"rows\"` with `columns` and `rows`. An expectation is either `type: \"empty\"` with the `sql` that must return nothing, or `type: \"equals\"`, which takes the same `format` split as an input: `format: \"rows\"` with the `columns` and `rows` the output must hold, or `format: \"sql\"` with a query returning them. The body is closed: a test read back with `get --full` has to shed `id`, `entity_id`, `creator_id`, `created_at` and `updated_at` before it can be sent.",
14
+ capabilities: { minVersion: 64 },
15
+ args: {
16
+ ...outputFlags,
17
+ ...profileFlag,
18
+ ...connectionFlags,
19
+ ...bodyInputFlags
20
+ },
21
+ inputSchema: TransformTestCreateInput,
22
+ outputSchema: TransformTest,
23
+ examples: ["cat transform-test.json | mb transform-test create", "mb transform-test create --file transform-test.json"],
24
+ async run({ args, ctx, getClient }) {
25
+ const body = await readBody({
26
+ flag: args.body,
27
+ file: args.file
28
+ }, TransformTestCreateInput);
29
+ const created = await (await getClient()).transformTest.create(body);
30
+ renderSummary(created, transformTestView, `Created transform test ${created.id} "${created.name}".`, ctx);
31
+ }
32
+ });
33
+ //#endregion
34
+ export { create_default as default };
@@ -1,6 +1,6 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
- import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
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 { t as parseId } from "./parse-id-CPINxy7h.mjs";
4
4
  import { t as UploadResult } from "./upload-DAtxBBms.mjs";
5
5
  import { n as requireUploadFilePath, t as readCsvFile } from "./upload-CD555ui1.mjs";
6
6
  import { t as uploadResultView } from "./upload-C3z5ZaXA.mjs";
@@ -13,7 +13,6 @@ var csv_default = defineMetabaseCommand({
13
13
  },
14
14
  details: "Uploads the CSV to the server's configured uploads database, creating a new table plus a model over it, and prints the new model id and table id. Requires an uploads database to be configured on the server. Pass --collection to place the model in a specific collection (defaults to root).",
15
15
  capabilities: { minVersion: 58 },
16
- worktree: "main-only",
17
16
  args: {
18
17
  ...outputFlags,
19
18
  ...profileFlag,
@@ -1,7 +1,7 @@
1
- import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { r as WORKTREE_SCOPE_DETAIL, s as scopeQuery, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
- import { l as syncTaskView } from "./git-sync-LQIVMNxO.mjs";
4
- import { n as formatSyncTask, r as syncTaskIdleView, t as SyncTaskOrIdle } from "./sync-task-G1K47Nvn.mjs";
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 { c as syncTaskView } from "./git-sync-DxD_ng48.mjs";
4
+ import { n as formatSyncTask, r as syncTaskIdleView, t as SyncTaskOrIdle } from "./sync-task-BACcrs0i.mjs";
5
5
  //#region src/commands/git-sync/current-task.ts
6
6
  const CurrentTaskResult = SyncTaskOrIdle;
7
7
  var current_task_default = defineMetabaseCommand({
@@ -13,20 +13,15 @@ var current_task_default = defineMetabaseCommand({
13
13
  minVersion: 60,
14
14
  tokenFeature: "remote_sync"
15
15
  },
16
- worktree: "scoped",
17
- details: WORKTREE_SCOPE_DETAIL,
18
16
  args: {
19
17
  ...outputFlags,
20
18
  ...profileFlag,
21
- ...connectionFlags,
22
- ...worktreeFlag
19
+ ...connectionFlags
23
20
  },
24
21
  outputSchema: CurrentTaskResult,
25
22
  examples: ["mb git-sync current-task", "mb git-sync current-task --json"],
26
- async run({ ctx, getClient, getWorktree }) {
27
- const mb = await getClient();
28
- const scope = await getWorktree();
29
- const task = await mb.gitSync.currentTask(scopeQuery(scope));
23
+ async run({ ctx, getClient }) {
24
+ const task = await (await getClient()).gitSync.currentTask();
30
25
  if (task === null) {
31
26
  renderSummary({ status: "idle" }, syncTaskIdleView, "No git-sync task is running.", ctx);
32
27
  return;
@@ -1,4 +1,4 @@
1
- import { t as defineCommandGroup } from "./group-YN6jj2AN.mjs";
1
+ import { t as defineCommandGroup } from "./group-DBM87IgC.mjs";
2
2
  //#region src/commands/dashboard/index.ts
3
3
  var dashboard_default = defineCommandGroup({
4
4
  name: "dashboard",
@@ -18,15 +18,15 @@ var dashboard_default = defineCommandGroup({
18
18
  }
19
19
  ],
20
20
  subCommands: {
21
- list: () => import("./list-DhrapAcy.mjs").then((mod) => mod.default),
22
- get: () => import("./get-vrccOMBk.mjs").then((mod) => mod.default),
23
- cards: () => import("./cards-M_6X8wCI.mjs").then((mod) => mod.default),
24
- "parameter-values": () => import("./parameter-values-Dy4cBs5y.mjs").then((mod) => mod.default),
25
- subscriptions: () => import("./subscriptions-BfFwV__x.mjs").then((mod) => mod.default),
26
- create: () => import("./create-CoubLR5o.mjs").then((mod) => mod.default),
27
- update: () => import("./update-BErxnZrj.mjs").then((mod) => mod.default),
28
- "update-dashcard": () => import("./update-dashcard-St-dGcE3.mjs").then((mod) => mod.default),
29
- archive: () => import("./archive-BQ50OZ7y.mjs").then((mod) => mod.default)
21
+ list: () => import("./list-BQrk4Ua4.mjs").then((mod) => mod.default),
22
+ get: () => import("./get-DY-e5oP7.mjs").then((mod) => mod.default),
23
+ cards: () => import("./cards-CNbV8aGO.mjs").then((mod) => mod.default),
24
+ "parameter-values": () => import("./parameter-values-CHyOCxmR.mjs").then((mod) => mod.default),
25
+ subscriptions: () => import("./subscriptions-BHIATSN6.mjs").then((mod) => mod.default),
26
+ create: () => import("./create-CsABLrSI.mjs").then((mod) => mod.default),
27
+ update: () => import("./update-BpuZsX9z.mjs").then((mod) => mod.default),
28
+ "update-dashcard": () => import("./update-dashcard-BGqKMqQb.mjs").then((mod) => mod.default),
29
+ archive: () => import("./archive-vzu8ghZZ.mjs").then((mod) => mod.default)
30
30
  }
31
31
  });
32
32
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as defineCommandGroup } from "./group-YN6jj2AN.mjs";
1
+ import { t as defineCommandGroup } from "./group-DBM87IgC.mjs";
2
2
  //#region src/commands/db/index.ts
3
3
  var db_default = defineCommandGroup({
4
4
  name: "db",
@@ -12,12 +12,12 @@ var db_default = defineCommandGroup({
12
12
  purpose: "model a raw database into clean tables"
13
13
  }],
14
14
  subCommands: {
15
- list: () => import("./list-BBp9XjYs.mjs").then((m) => m.default),
16
- get: () => import("./get-CAzSP-7o.mjs").then((m) => m.default),
17
- schemas: () => import("./schemas-Cm5NWy59.mjs").then((m) => m.default),
18
- "schema-tables": () => import("./schema-tables-CLG0mtQb.mjs").then((m) => m.default),
19
- "sync-schema": () => import("./sync-schema-DhnM-rpm.mjs").then((m) => m.default),
20
- "rescan-values": () => import("./rescan-values-6cRjcpTs.mjs").then((m) => m.default)
15
+ list: () => import("./list--B2EUWJg.mjs").then((m) => m.default),
16
+ get: () => import("./get-C99cjjD0.mjs").then((m) => m.default),
17
+ schemas: () => import("./schemas-CNAPFh4n.mjs").then((m) => m.default),
18
+ "schema-tables": () => import("./schema-tables-BQdFNy1B.mjs").then((m) => m.default),
19
+ "sync-schema": () => import("./sync-schema-D1vX-rpv.mjs").then((m) => m.default),
20
+ "rescan-values": () => import("./rescan-values-C6PB02uT.mjs").then((m) => m.default)
21
21
  }
22
22
  });
23
23
  //#endregion
@@ -1,7 +1,7 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags } from "./cli.mjs";
2
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
- import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
4
- import { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-b2_ZMSjj.mjs";
1
+ import { F as outputFlags, I as profileFlag, M as connectionFlags } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-BMJv4VOi.mjs";
3
+ import { t as parseId } from "./parse-id-CPINxy7h.mjs";
4
+ import { n as confirmAndDelete, t as DeleteResult } from "./delete-runtime-D74s6vhu.mjs";
5
5
  //#region src/commands/timeline-event/delete.ts
6
6
  var delete_default = defineMetabaseCommand({
7
7
  meta: {
@@ -9,7 +9,6 @@ var delete_default = defineMetabaseCommand({
9
9
  description: "Permanently delete a timeline event by id"
10
10
  },
11
11
  capabilities: { minVersion: 58 },
12
- worktree: "main-only",
13
12
  args: {
14
13
  ...outputFlags,
15
14
  ...profileFlag,