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

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 (249) hide show
  1. package/dist/{add-collection-CxzzDG4z.mjs → add-collection-CVDgC7C6.mjs} +5 -6
  2. package/dist/{alert-CQ7Az16h.mjs → alert-Co9m8k5l.mjs} +7 -7
  3. package/dist/{alerts-DmwyyBfW.mjs → alerts-DjZGGxOy.mjs} +6 -7
  4. package/dist/{append-B0avMkvW.mjs → append-BXqeNFzW.mjs} +3 -4
  5. package/dist/{archive-CMTHh4-w.mjs → archive-Bhk1IqGH.mjs} +3 -4
  6. package/dist/archive-CH9osnGq.mjs +32 -0
  7. package/dist/{archive-BQ50OZ7y.mjs → archive-CUGpIXDT.mjs} +3 -4
  8. package/dist/{archive-THcEfy9B.mjs → archive-CXYUkzZo.mjs} +4 -5
  9. package/dist/{archive-Cvrkz8F8.mjs → archive-Cchi-tqq.mjs} +4 -5
  10. package/dist/{archive-BPSNe0Ul.mjs → archive-Csku9zDp.mjs} +3 -4
  11. package/dist/{archive-BZEu6UfT.mjs → archive-CzcjKpUC.mjs} +5 -6
  12. package/dist/archive-D1xZRRRA.mjs +32 -0
  13. package/dist/{archive-DCyeRNfV.mjs → archive-DvV3oLCg.mjs} +3 -4
  14. package/dist/{archive-DFofUIEC.mjs → archive-I61vFPxv.mjs} +3 -4
  15. package/dist/{archive-BVblae-p.mjs → archive-pA5UZn1f.mjs} +3 -4
  16. package/dist/{auth-BEEkuu4J.mjs → auth-BKgMIAKH.mjs} +5 -5
  17. package/dist/{branches-CmWc8NyL.mjs → branches-B96keFsO.mjs} +3 -4
  18. package/dist/{cancel-DrQqmxvn.mjs → cancel-6GPBlUkr.mjs} +3 -4
  19. package/dist/cancel-task-BIGAgcKk.mjs +28 -0
  20. package/dist/{card-CrBGUkGQ.mjs → card-DZxRmver.mjs} +0 -1
  21. package/dist/card-zluRR7xD.mjs +24 -0
  22. package/dist/{card-BEeafd4Y.mjs → card-zyUkr2nS.mjs} +1 -1
  23. package/dist/{cards-M_6X8wCI.mjs → cards-DY6Togtl.mjs} +4 -5
  24. package/dist/cli.mjs +48 -142
  25. package/dist/{client-DYD8WZYy.mjs → client-C9HBWl6A.mjs} +129 -207
  26. package/dist/{collection-CJHqsFKP.mjs → collection-CGoVLvcD.mjs} +1 -1
  27. package/dist/{collection-BxE7OzcQ.mjs → collection-CfulNRBG.mjs} +3 -6
  28. package/dist/collection-CrIkQWUK.mjs +20 -0
  29. package/dist/{content-translation-C8MlXPOF.mjs → content-translation-Cg_VW3kW.mjs} +3 -3
  30. package/dist/{create-BqpkCjx4.mjs → create-BeNQQTPt.mjs} +2 -3
  31. package/dist/{create-BA_tTDEk.mjs → create-BkIoWkzP.mjs} +3 -4
  32. package/dist/{create-CJ7Am4Gc.mjs → create-BpjBffBq.mjs} +3 -4
  33. package/dist/create-BsDJATJM.mjs +34 -0
  34. package/dist/{create-CY-SzM66.mjs → create-BuWV1GpI2.mjs} +9 -14
  35. package/dist/{create-D0anrINz.mjs → create-BxWMTy6i.mjs} +8 -13
  36. package/dist/{create-ldrghMd1.mjs → create-CK5MABYu.mjs} +2 -3
  37. package/dist/{create-ByuJ6T4k.mjs → create-CaDAT54M.mjs} +5 -6
  38. package/dist/{create-z-oMrlfT.mjs → create-D_pNL2X9.mjs} +4 -5
  39. package/dist/{create-BLWwN0uw.mjs → create-DqCdW3tt.mjs} +3 -4
  40. package/dist/{create-BupBEwR2.mjs → create-JZevXtCI.mjs} +6 -11
  41. package/dist/{create-hTc131aX.mjs → create-V2Bdeu8p.mjs} +2 -3
  42. package/dist/{create-CoubLR5o.mjs → create-bH-qAv03.mjs} +3 -4
  43. package/dist/create-branch-DN9PrlRR.mjs +35 -0
  44. package/dist/{create-C7iooS6W.mjs → create-cHltWf0e.mjs} +7 -13
  45. package/dist/{create-myI6doga.mjs → create-cSpqEzKH.mjs} +3 -4
  46. package/dist/{create-C2XFfbjx.mjs → create-mzHtey5k.mjs} +2 -3
  47. package/dist/{csv-DBNzJiWK.mjs → csv-CVKLuIuS.mjs} +3 -4
  48. package/dist/{current-task-YzemU0Ic.mjs → current-task-Dnm3JaWg.mjs} +7 -12
  49. package/dist/{dashboard-B1mpfCq_.mjs → dashboard-SxUrG3Cg.mjs} +10 -10
  50. package/dist/{db-1tLH3nYI.mjs → db-BnhuXAP9.mjs} +7 -7
  51. package/dist/{delete-CpKH5ia4.mjs → delete-6lroLZIE.mjs} +4 -5
  52. package/dist/{delete-DjAUp9mk.mjs → delete-BClvnlBc.mjs} +4 -5
  53. package/dist/delete-C3xeqTzS.mjs +44 -0
  54. package/dist/{delete-eAUB7p-f.mjs → delete-CH0FsDBg.mjs} +5 -10
  55. package/dist/{delete-CD_-B4Kq.mjs → delete-DDVNawxh.mjs} +4 -5
  56. package/dist/{delete-QNgBV6eS.mjs → delete-Dn6VJuyR.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-C6LPzUDg.mjs} +5 -10
  59. package/dist/dependencies-vr51EFIu.mjs +36 -0
  60. package/dist/dirty-W0PzG3Yt.mjs +31 -0
  61. package/dist/document-B1w9aIq7.mjs +19 -0
  62. package/dist/{download-C4v7u-AV.mjs → download-B-l6ajeo.mjs} +2 -3
  63. package/dist/{eid-CP35PdEF.mjs → eid-BGl_X67N.mjs} +2 -3
  64. package/dist/{events-DmbzKIh_.mjs → events-BRRnroJb.mjs} +4 -5
  65. package/dist/{export-i8D6laBG.mjs → export-DEPLFq_E.mjs} +12 -25
  66. package/dist/{field-BKn9bt7I.mjs → field-BXaUzJvx.mjs} +5 -5
  67. package/dist/{fields-8_p81BqN.mjs → fields-LFMSMV5Z.mjs} +4 -5
  68. package/dist/{get-BvW21ujw.mjs → get-7-OiP8ma.mjs} +3 -4
  69. package/dist/{get-vvs0qzzM.mjs → get-B6lWlGeD.mjs} +3 -4
  70. package/dist/get-BM7MA5-7.mjs +31 -0
  71. package/dist/{get-CNEQK0-9.mjs → get-BUiHdwdU.mjs} +4 -5
  72. package/dist/{get-BHGgXqUq.mjs → get-BempHTsm.mjs} +3 -4
  73. package/dist/{get-CAzSP-7o.mjs → get-Bjvu5GM7.mjs} +3 -4
  74. package/dist/{get-vrccOMBk.mjs → get-BvI5QqjY.mjs} +3 -4
  75. package/dist/{get-BBOfshz1.mjs → get-C2DWxXYb.mjs} +3 -4
  76. package/dist/get-CapP9GiI.mjs +32 -0
  77. package/dist/{get-N4dOaTsp.mjs → get-Cjx_5Zm-.mjs} +4 -5
  78. package/dist/{get-DFkbi5L3.mjs → get-DAsSPKxF.mjs} +2 -3
  79. package/dist/{get-DnCE7K0y.mjs → get-DCHhq5Qv.mjs} +4 -5
  80. package/dist/get-DCf0O3GJ.mjs +31 -0
  81. package/dist/{get-CPTbySa7.mjs → get-DhxE02Ia.mjs} +3 -4
  82. package/dist/get-DiRtfImy.mjs +36 -0
  83. package/dist/{get-Bds6Izxk.mjs → get-DlQHyv4D.mjs} +3 -4
  84. package/dist/{get-DvLuY5Xu.mjs → get-Du11BNRd.mjs} +9 -17
  85. package/dist/{get-B0g6VMBC.mjs → get-DvCgLmPW.mjs} +3 -4
  86. package/dist/{get-BbHPFNqr.mjs → get-M3zgKoZr.mjs} +3 -4
  87. package/dist/{get-CWf46UFu.mjs → get-XcSH5Zyz.mjs} +5 -6
  88. package/dist/{get-run-4Ng8_awa.mjs → get-run-UJmyRo7H.mjs} +5 -6
  89. package/dist/{git-sync-DLzJrdMi.mjs → git-sync-BDnxPrqU.mjs} +3 -22
  90. package/dist/git-sync-DM5Nuv3a.mjs +28 -0
  91. package/dist/{git-sync-LQIVMNxO.mjs → git-sync-DxD_ng48.mjs} +2 -31
  92. package/dist/{group-YN6jj2AN.mjs → group-DBM87IgC.mjs} +2 -3
  93. package/dist/{has-remote-changes-BXPGI9xG.mjs → has-remote-changes-DmhFpgJe.mjs} +6 -14
  94. package/dist/{import-BoxOkA-G.mjs → import-BRC0TzWQ.mjs} +11 -28
  95. package/dist/{is-dirty-Cwxq4_gd.mjs → is-dirty-CT9e5vSd.mjs} +6 -15
  96. package/dist/{items-Cv6iAzrI.mjs → items-BSAEWZlw.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-Zxh_MRVL.mjs} +5 -5
  100. package/dist/list-08dyODsP.mjs +36 -0
  101. package/dist/{list-C8J3n8B8.mjs → list-BOUmEn2X.mjs} +3 -4
  102. package/dist/{list--2T-GUEF.mjs → list-BZbC260R.mjs} +4 -5
  103. package/dist/{list-9uvk9dIA.mjs → list-BxCk3QTy.mjs} +3 -4
  104. package/dist/{list-BLJkJp5a.mjs → list-C3IRtLP6.mjs} +3 -4
  105. package/dist/list-CAalCea_.mjs +28 -0
  106. package/dist/{list-DhrapAcy.mjs → list-CleMHJBY.mjs} +3 -4
  107. package/dist/list-D6qH2PUE.mjs +38 -0
  108. package/dist/{list-oAAgU5uE.mjs → list-D9RmPIEJ.mjs} +9 -16
  109. package/dist/{list-DOaWCx8S.mjs → list-DCA0T8bS.mjs} +8 -17
  110. package/dist/{list-L2U1l6R4.mjs → list-DCBLu0KG.mjs} +3 -4
  111. package/dist/list-DDFk1IFP.mjs +35 -0
  112. package/dist/{list-WSJLnunb.mjs → list-DGLK2lso.mjs} +3 -4
  113. package/dist/{list-BwkfWtP2.mjs → list-DYlphSxV.mjs} +3 -4
  114. package/dist/{list-DOZNpX4b.mjs → list-De0ebgzc.mjs} +4 -5
  115. package/dist/{list-tutXEQRW.mjs → list-Dqyd2TZI.mjs} +4 -5
  116. package/dist/list-Drm6l_tt.mjs +28 -0
  117. package/dist/{list-BBp9XjYs.mjs → list-QFieRzSf.mjs} +3 -4
  118. package/dist/{list-CtZAu4im.mjs → list-kIMBSzS-.mjs} +4 -5
  119. package/dist/{login-DqWRF3Og.mjs → login-DDHEyjWz.mjs} +4 -5
  120. package/dist/{logout-ChCz1bkf.mjs → logout-BbB0vvQN.mjs} +2 -3
  121. package/dist/{measure-C5dIdFj1.mjs → measure-CGuwA0KX.mjs} +6 -6
  122. package/dist/{notification-DVrLkjFT.mjs → notification-Fcq1fIPw.mjs} +1 -1
  123. package/dist/{parameter-values-Dy4cBs5y.mjs → parameter-values-CI6-CkB7.mjs} +3 -4
  124. package/dist/{parse-id-DDCn3VXx.mjs → parse-id-CdZ0-1TM.mjs} +1 -1
  125. package/dist/{parse-ref-Wv21Roup.mjs → parse-ref-ibKVB0J4.mjs} +2 -6
  126. package/dist/{path-IYhuzjQV.mjs → path-Df2itv7t.mjs} +4 -5
  127. package/dist/{preflight-HLUVr2Yf.mjs → preflight-CoF1Em99.mjs} +1 -1
  128. package/dist/{publish-CMkCSt8i.mjs → publish-xUBySB1T.mjs} +4 -5
  129. package/dist/{pulse-a-83M4DV.mjs → pulse-DhG6I9mI.mjs} +1 -1
  130. package/dist/{query-tWQAV9pb.mjs → query-BkZvffIM.mjs} +6 -7
  131. package/dist/{query-Bka77J62.mjs → query-CmkC8sfu.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-DFfmuTwD.mjs} +5 -6
  134. package/dist/{render-DHjCcUXn.mjs → render-CI93iP0I.mjs} +1 -7
  135. package/dist/{replace-mt47dlRV.mjs → replace-DjoDBCLa.mjs} +3 -4
  136. package/dist/{rescan-values-6cRjcpTs.mjs → rescan-values-Ca2Wa0A2.mjs} +3 -4
  137. package/dist/{run-DI_pDxji.mjs → run-BCYATTjE.mjs} +5 -6
  138. package/dist/run-B_-pMw67.mjs +50 -0
  139. package/dist/{run-BmGmC-GQ.mjs → run-CP-chc5O.mjs} +3 -4
  140. package/dist/{runs-9Fu0mug5.mjs → runs-B0ypYKmn.mjs} +6 -7
  141. package/dist/{runtime-CNAZ_FuR.mjs → runtime-CJUDVwBu.mjs} +8 -103
  142. package/dist/{schema-tables-CLG0mtQb.mjs → schema-tables-Nl83e2Zm.mjs} +4 -5
  143. package/dist/{schemas-Cm5NWy59.mjs → schemas-Cp29qgn0.mjs} +4 -5
  144. package/dist/{search-CljYyf2F.mjs → search-BbktlnDC.mjs} +8 -14
  145. package/dist/{segment-IRzlQggt.mjs → segment-BHBoMpL9.mjs} +6 -6
  146. package/dist/{selectors-D4iOP5uB.mjs → selectors-e_0QdkaG.mjs} +2 -2
  147. package/dist/{send-D7DBnQbu.mjs → send-DEGpBT_7.mjs} +3 -4
  148. package/dist/{set-DKN8fuC6.mjs → set-C3tLEVuY.mjs} +2 -3
  149. package/dist/{set-active-CkE0Eiqh.mjs → set-active-CqvLJysE.mjs} +2 -3
  150. package/dist/{setting-CN4l8N-b.mjs → setting-Dwi-Wifx.mjs} +4 -4
  151. package/dist/{setup-BpTptmdO.mjs → setup-CcSVPnEI.mjs} +2 -3
  152. package/dist/{skills-BSAiLI3Z.mjs → skills-Cxi3fKMZ.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-hrEAI5Yf.mjs +19 -0
  156. package/dist/{snippet-DecHB4Dn.mjs → snippet-oJLaYW9V.mjs} +1 -1
  157. package/dist/{stash-DJs6A6BA.mjs → stash-CVhkyRIT.mjs} +6 -7
  158. package/dist/{status-N_2EaWb7.mjs → status-B7tYgPVV.mjs} +6 -15
  159. package/dist/{status-DtwBDRtc.mjs → status-C9uhZuip.mjs} +16 -44
  160. package/dist/{subscription-BnGDp1oy.mjs → subscription-Cj9jyFEB.mjs} +6 -6
  161. package/dist/{subscriptions-BfFwV__x.mjs → subscriptions-B5oVkkZk.mjs} +6 -7
  162. package/dist/{summary-CHiq-4mz.mjs → summary-PVERfPr2.mjs} +3 -4
  163. package/dist/{sync-schema-DhnM-rpm.mjs → sync-schema-CtG6r6Pr.mjs} +4 -5
  164. package/dist/{sync-task-G1K47Nvn.mjs → sync-task-BACcrs0i.mjs} +1 -1
  165. package/dist/{table-BQaiCSNS.mjs → table-6IHwQyr6.mjs} +5 -5
  166. package/dist/timeline-BwQIj-le.mjs +21 -0
  167. package/dist/{timeline-event-B7H1y8s8.mjs → timeline-event-ox_Bw9F4.mjs} +6 -6
  168. package/dist/{transform-BvOEn41C.mjs → transform-D3QX0jxA.mjs} +1 -4
  169. package/dist/{transform-CiDOJGBW.mjs → transform-DoTyyXAu.mjs} +2 -2
  170. package/dist/transform-IPKGUzzd.mjs +28 -0
  171. package/dist/transform-job-COwH1ww7.mjs +22 -0
  172. package/dist/{transform-tag-jBVd6wXd.mjs → transform-tag-CcElGp3C.mjs} +4 -9
  173. package/dist/{transform-tag-DiXWRCQG.mjs → transform-tag-Dmb4u3-Q.mjs} +1 -1
  174. package/dist/{transform-tag-Dip51YBa.mjs → transform-tag-La1wmOTP.mjs} +5 -5
  175. package/dist/transform-test-C4VRGmGm.mjs +149 -0
  176. package/dist/transform-test-DGYx6MCT.mjs +16 -0
  177. package/dist/transform-test-w5hDTx_D.mjs +25 -0
  178. package/dist/{transforms-C-jYgS6z.mjs → transforms-DIgACzP-.mjs} +6 -7
  179. package/dist/tree-CQ0FXBnn.mjs +27 -0
  180. package/dist/{unpublish-BokbnLng.mjs → unpublish-Binr4uOG.mjs} +3 -4
  181. package/dist/{update-B9DcRSBQ.mjs → update-B4lIwY0G.mjs} +10 -16
  182. package/dist/update-B5NYEIHU.mjs +41 -0
  183. package/dist/{update-CPEU8ZEu.mjs → update-BKvSfdXu.mjs} +4 -5
  184. package/dist/{update-D9OTkZhw.mjs → update-BZS5m-vx.mjs} +3 -4
  185. package/dist/{update-C4PbAYgW.mjs → update-BbOX6axn.mjs} +3 -4
  186. package/dist/{update-e7lyQPxq.mjs → update-BiG9eLNH.mjs} +7 -13
  187. package/dist/{update-CpLEEbiJ.mjs → update-CIuoW1M9.mjs} +6 -7
  188. package/dist/{update-BBQInyiJ.mjs → update-CWIhy9Ax.mjs} +4 -5
  189. package/dist/{update-Bc8s1TL1.mjs → update-Cb68f4dx.mjs} +3 -4
  190. package/dist/{update-BErxnZrj.mjs → update-DH9CL61y.mjs} +4 -5
  191. package/dist/{update-AZSXMJqu.mjs → update-Db3j44fi.mjs} +7 -13
  192. package/dist/{update-BCGE5UYC.mjs → update-TDaf7Xbt.mjs} +4 -5
  193. package/dist/{update-dashcard-St-dGcE3.mjs → update-dashcard-DbZ8NlLZ.mjs} +3 -4
  194. package/dist/{update-BRXKLeJH.mjs → update-gGZjfZN3.mjs} +3 -4
  195. package/dist/{update-CfQoYVTc.mjs → update-la0K6wAf.mjs} +3 -4
  196. package/dist/{update-CKL2FtoX.mjs → update-lpLLpKhX.mjs} +4 -5
  197. package/dist/{update-rkbpH0lF.mjs → update-mOqedkLk.mjs} +3 -4
  198. package/dist/{upgrade-CUoRHfVg.mjs → upgrade-BCWXgRmG.mjs} +2 -3
  199. package/dist/upload-BVBs2F69.mjs +13 -0
  200. package/dist/{upload-BPd1Uzxc.mjs → upload-DUViVk1x.mjs} +2 -3
  201. package/dist/{uuid-CFN8LIkP.mjs → uuid-D3CGL8wF.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-8XUr04w3.mjs} +3 -4
  204. package/dist/{verify-DnBaRmkI.mjs → verify-deF_hThH.mjs} +2 -2
  205. package/dist/{wait-mPoOZxrw.mjs → wait-Ct0weHol.mjs} +7 -12
  206. package/dist/{wait-flags-DzytMEG8.mjs → wait-flags-Cb-bI0RD.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 +19 -20
  210. package/skill-data/git-sync/SKILL.md +1 -91
  211. package/skill-data/transform/SKILL.md +60 -10
  212. package/skill-data/transform-test-plan/SKILL.md +170 -0
  213. package/skill-data/transform-test-plan/references/checklist.md +81 -0
  214. package/skill-data/transform-test-plan/references/checks.md +259 -0
  215. package/dist/archive-CqOKKrb2.mjs +0 -38
  216. package/dist/archive-DCjdICg7.mjs +0 -38
  217. package/dist/branch-BSeGrtP7.mjs +0 -28
  218. package/dist/cancel-task-BMQXtjW5.mjs +0 -34
  219. package/dist/card-RlzLDB2z.mjs +0 -24
  220. package/dist/collection-Bhe20ckt.mjs +0 -20
  221. package/dist/create-DwrhcI8r2.mjs +0 -144
  222. package/dist/create-branch-B3BMpF1g.mjs +0 -49
  223. package/dist/delete-D_OgiI4v.mjs +0 -86
  224. package/dist/dependencies-DEx0BsZ3.mjs +0 -41
  225. package/dist/dirty-dC1-Ud0G.mjs +0 -40
  226. package/dist/document-DOJbBWLF.mjs +0 -19
  227. package/dist/export-preflight-B5MvYhm3.mjs +0 -67
  228. package/dist/get-Cfagmy1i.mjs +0 -42
  229. package/dist/get-DwdMvWXU.mjs +0 -44
  230. package/dist/get-jV8G90Zy.mjs +0 -42
  231. package/dist/get-mGEv-kag.mjs +0 -33
  232. package/dist/git-sync-DjoaNmRM.mjs +0 -29
  233. package/dist/list-5Iojbr_p.mjs +0 -37
  234. package/dist/list-BD4onDqO.mjs +0 -37
  235. package/dist/list-C2yL7-CH.mjs +0 -45
  236. package/dist/list-CbbKip6U.mjs +0 -32
  237. package/dist/list-Dg2XeDON.mjs +0 -47
  238. package/dist/pin-BuZ_kg-u.mjs +0 -62
  239. package/dist/scope-DsGuWG5w.mjs +0 -11
  240. package/dist/snippet-LlHz3FdJ.mjs +0 -19
  241. package/dist/timeline-C2VW0Ph6.mjs +0 -21
  242. package/dist/transform-DAf0Y02t.mjs +0 -28
  243. package/dist/transform-job-ntiT5Rrh.mjs +0 -22
  244. package/dist/tree-DtyJhD54.mjs +0 -36
  245. package/dist/unpin-DxbXmLtW.mjs +0 -45
  246. package/dist/upload-Dc3QLhZw.mjs +0 -13
  247. package/dist/worktree-ChdDlG3Q.mjs +0 -25
  248. package/dist/worktree-DC0kTxxQ.mjs +0 -20
  249. package/dist/worktree-xAro1xAB.mjs +0 -24
@@ -1,5 +1,5 @@
1
1
  import { d as ValidationError, f as errorMessage, i as ConfigError, l as TimeoutError, o as MetabaseError, p as isFileNotFoundError } from "./predicates-Bkm2IoeX.mjs";
2
- import { A as ENV_SKIP_PREFLIGHT, D as ENV_DISABLE_KEYRING, E as ENV_API_KEY, F as setMetabaseAugment, J as toAliasArray, K as flagConsumesValue, L as version, M as ENV_WORKTREE, N as consumeLegacyEnvWarnings, P as readEnv, T as warn, c as checkCapabilities, i as mainOnlyRefusal, j as ENV_URL, l as mergeCapabilities, n as interruptSignal, o as resolveScopeSource, q as normalizeFlag, r as formatWorktreeRef, s as BASELINE_CAPABILITIES, t as readVerbChain, u as reportError } from "./cli.mjs";
2
+ import { B as normalizeFlag, D as consumeLegacyEnvWarnings, E as ENV_URL, O as readEnv, S as ENV_DISABLE_KEYRING, T as ENV_SKIP_PREFLIGHT, V as toAliasArray, a as reportError, b as warn, i as mergeCapabilities, j as version, k as setMetabaseAugment, n as BASELINE_CAPABILITIES, r as checkCapabilities, t as interruptSignal, x as ENV_API_KEY, z as flagConsumesValue } from "./cli.mjs";
3
3
  import { _ as parseJsonResult, a as isRetryableStatus, c as normalizeUrl, f as isOAuthExpired, m as JSON_CONTENT_TYPE, o as assertEndpointOrigin, p as oauthCredentialFromTokens, r as HttpError, t as buildNetworkError } from "./network-error-D6CiOEBw.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  import { z } from "zod";
@@ -100,18 +100,13 @@ const ProfileOAuth = z.object({
100
100
  clientId: z.string()
101
101
  }).loose();
102
102
  const ProfileAuthMethod = z.enum(["oauth", "apiKey"]);
103
- const ProfilePin = z.object({
104
- id: z.number().int().positive(),
105
- branch: z.string()
106
- });
107
103
  const ProfileRecord = z.object({
108
104
  name: z.string(),
109
105
  url: z.string(),
110
106
  apiKey: z.string().nullable(),
111
107
  oauth: ProfileOAuth.nullable().default(null),
112
108
  lastProbe: ProfileLastProbe.nullable(),
113
- lastFailure: ProfileLastFailure.nullable(),
114
- worktree: ProfilePin.nullable().default(null)
109
+ lastFailure: ProfileLastFailure.nullable()
115
110
  }).loose();
116
111
  const ProfilesFile = z.object({ profiles: z.array(ProfileRecord) }).loose();
117
112
  function profileAuthMethod(record) {
@@ -331,8 +326,7 @@ async function writeProfile(profile, name = DEFAULT_PROFILE) {
331
326
  apiKey: inlineApiKey,
332
327
  oauth: null,
333
328
  lastProbe: null,
334
- lastFailure: null,
335
- worktree: null
329
+ lastFailure: null
336
330
  } : {
337
331
  ...existing,
338
332
  url: profile.url,
@@ -363,8 +357,7 @@ async function writeOAuthProfile(url, credential, name = DEFAULT_PROFILE) {
363
357
  apiKey: null,
364
358
  oauth,
365
359
  lastProbe: null,
366
- lastFailure: null,
367
- worktree: null
360
+ lastFailure: null
368
361
  } : {
369
362
  ...existing,
370
363
  url,
@@ -415,18 +408,6 @@ async function writeProbeFailure(name, input) {
415
408
  });
416
409
  return failure;
417
410
  }
418
- async function writeProfileWorktree(name, pin) {
419
- const file = await readProfilesFile();
420
- if (findRecord(file, name) === null) throw new ConfigError(`no such profile "${name}"; run \`mb auth login --profile ${name}\` first`);
421
- const profiles = file.profiles.map((entry) => entry.name === name ? {
422
- ...entry,
423
- worktree: pin
424
- } : entry);
425
- await writeProfilesFile({
426
- ...file,
427
- profiles
428
- });
429
- }
430
411
  async function clearProfile(name = DEFAULT_PROFILE) {
431
412
  const file = await readProfilesFile();
432
413
  const existing = findRecord(file, name);
@@ -819,7 +800,6 @@ function resolveCommonFlags(args, options = {}) {
819
800
  url: args.url,
820
801
  apiKey: args.apiKey,
821
802
  profile: args.profile,
822
- worktree: args.worktree,
823
803
  skipPreflight: args.skipPreflight === true
824
804
  };
825
805
  }
@@ -893,43 +873,7 @@ function flagCandidates(token) {
893
873
  return candidates;
894
874
  }
895
875
  //#endregion
896
- //#region src/commands/worktree-scope.ts
897
- const WORKTREE_REF_LABEL = "worktree ref";
898
- const WORKTREE_SCOPE_DETAIL = "Pass --worktree <id|branch> (or set MB_WORKTREE, or pin the profile with `mb worktree pin`) to operate inside a git-sync worktree.";
899
- async function findWorktree(ref, mb) {
900
- if (ref.kind === "id") return mb.gitSync.getWorktree(ref.id);
901
- const { data } = await mb.gitSync.worktrees();
902
- const match = data.find((worktree) => worktree.branch === ref.branch);
903
- if (match === void 0) throw new ConfigError(`worktree ${formatWorktreeRef(ref)} not found; run \`mb worktree list\``);
904
- return match;
905
- }
906
- async function resolveWorktreeScope(source, mb) {
907
- if (source.scope !== null) return source.scope;
908
- const worktree = await findWorktree(source.ref, mb);
909
- return {
910
- id: worktree.id,
911
- branch: worktree.branch
912
- };
913
- }
914
- function scopeQuery(scope) {
915
- return { "worktree-id": scope === null ? void 0 : scope.id };
916
- }
917
- function assertInWorktree(kind, id, worktreeId, scope) {
918
- if (scope === null || worktreeId === scope.id) return;
919
- throw new ConfigError(`${kind} ${id} is not in worktree ${scope.id} (${scope.branch}); refusing to touch main-app content`);
920
- }
921
- function scopeBody(body, scope) {
922
- if (scope === null) return body;
923
- const stated = body.worktree_id;
924
- if (stated !== void 0 && stated !== null && stated !== scope.id) throw new ConfigError(`body names worktree_id ${stated}, but the active scope is worktree ${scope.id} (${scope.branch})`);
925
- return {
926
- ...body,
927
- worktree_id: scope.id
928
- };
929
- }
930
- //#endregion
931
876
  //#region src/commands/runtime.ts
932
- const UNNAMED_COMMAND = "this command";
933
877
  function defineMetabaseCommand(def) {
934
878
  const required = def.capabilities === null ? null : mergeCapabilities(def.capabilities);
935
879
  const cmd = defineCommand({
@@ -956,7 +900,7 @@ function defineMetabaseCommand(def) {
956
900
  const rawGetClient = async () => {
957
901
  if (cachedClient === null) {
958
902
  const resolved = await getResolvedConfig();
959
- const { createClient } = await import("./client-DYD8WZYy.mjs").then((n) => n.t);
903
+ const { createClient } = await import("./client-C9HBWl6A.mjs").then((n) => n.t);
960
904
  cachedClient = createClient({
961
905
  url: resolved.url,
962
906
  credential: resolved.credential
@@ -970,35 +914,18 @@ function defineMetabaseCommand(def) {
970
914
  return cachedClient;
971
915
  };
972
916
  const enforcePreflight = createPreflightEnforcer(required, getServerInfo, ctx.skipPreflight);
973
- let cachedScopeSource = null;
974
- const getScopeSource = () => {
975
- if (cachedScopeSource === null) cachedScopeSource = loadScopeSource(ctx, getResolvedConfig);
976
- return cachedScopeSource;
977
- };
978
- const enforceWorktreePolicy = async () => {
979
- const source = await getScopeSource();
980
- if (source === null || def.worktree !== "main-only") return;
981
- throw new ConfigError(mainOnlyRefusal(commandName(def.meta), source));
982
- };
983
917
  const getClient = async () => {
984
918
  const client = await rawGetClient();
985
- await enforceWorktreePolicy();
986
919
  await enforcePreflight();
987
920
  return client;
988
921
  };
989
- let cachedScope = null;
990
- const getWorktree = () => {
991
- if (cachedScope === null) cachedScope = loadWorktreeScope(getScopeSource, getClient);
992
- return cachedScope;
993
- };
994
922
  try {
995
923
  await def.run({
996
924
  args,
997
925
  ctx,
998
926
  getClient,
999
927
  getResolvedConfig,
1000
- getServerInfo,
1001
- getWorktree
928
+ getServerInfo
1002
929
  });
1003
930
  } finally {
1004
931
  emitPendingWarnings();
@@ -1014,31 +941,10 @@ function defineMetabaseCommand(def) {
1014
941
  skills: def.skills ?? [],
1015
942
  inputSchema: def.inputSchema ?? null,
1016
943
  outputSchema: def.outputSchema ?? null,
1017
- capabilities: required,
1018
- worktree: def.worktree
944
+ capabilities: required
1019
945
  });
1020
946
  return cmd;
1021
947
  }
1022
- function commandName(meta) {
1023
- const chain = readVerbChain();
1024
- if (chain !== null) return chain;
1025
- return typeof meta.name === "string" && meta.name !== "" ? meta.name : UNNAMED_COMMAND;
1026
- }
1027
- async function loadScopeSource(ctx, getResolvedConfig) {
1028
- const resolved = await getResolvedConfig();
1029
- const record = await readProfileRecord(resolved.profile);
1030
- return resolveScopeSource({
1031
- profile: resolved.profile,
1032
- flag: ctx.worktree,
1033
- env: readEnv(ENV_WORKTREE),
1034
- pin: record?.worktree ?? null
1035
- });
1036
- }
1037
- async function loadWorktreeScope(getScopeSource, getClient) {
1038
- const source = await getScopeSource();
1039
- if (source === null) return null;
1040
- return resolveWorktreeScope(source, await getClient());
1041
- }
1042
948
  function emitPendingWarnings() {
1043
949
  for (const message of consumeLegacyEnvWarnings()) warn(message);
1044
950
  const legacy = consumeLegacyStorageWarning();
@@ -1085,7 +991,6 @@ function pickCommonArgs(args) {
1085
991
  if (typeof args["limit"] === "string") out.limit = args["limit"];
1086
992
  if (typeof args["offset"] === "string") out.offset = args["offset"];
1087
993
  if (typeof args["profile"] === "string") out.profile = args["profile"];
1088
- if (typeof args["worktree"] === "string") out.worktree = args["worktree"];
1089
994
  if (typeof args["url"] === "string") out.url = args["url"];
1090
995
  if (typeof args["apiKey"] === "string") out.apiKey = args["apiKey"];
1091
996
  if (typeof args["skipPreflight"] === "boolean") out.skipPreflight = args["skipPreflight"];
@@ -1099,4 +1004,4 @@ function buildConfigFlags(ctx) {
1099
1004
  return flags;
1100
1005
  }
1101
1006
  //#endregion
1102
- export { readProfileRecord as A, ProfilePin as B, DEFAULT_PROFILE as C, keyringFallbackWarning as D, consumeKeyringDowngradeWarning as E, writeProfile as F, TokenFeatures as G, ParsedVersion as H, writeProfileWorktree as I, parseInteger as K, ProbedUser as L, writeOAuthProfile as M, writeProbeFailure as N, listProfileRecords as O, writeProbeResult as P, ProfileAuthMethod as R, tryDiscoverMetadata as S, consumeKeychainResidualWarning as T, tryParseTag as U, profileAuthMethod as V, SessionProperties as W, revokeOAuthCredential as _, findWorktree as a, exchangeCode as b, parseCsv as c, createCredentialRefresher as d, explicitProfileName as f, USER_AGENT as g, OAUTH_CLIENT_NAME as h, assertInWorktree as i, resolveRecordCredential as j, readProfileCredential as k, parseEnum as l, resolveProfileName as m, WORKTREE_REF_LABEL as n, scopeBody as o, readEnvCredentials as p, parseOptionalInteger as q, WORKTREE_SCOPE_DETAIL as r, scopeQuery as s, defineMetabaseCommand as t, parseEnumCsv as u, OAUTH_SCOPE as v, clearProfile as w, registerClient as x, discoverMetadata as y, ProfileLastFailure as z };
1007
+ export { ProbedUser as A, readProfileCredential as C, writeProbeFailure as D, writeOAuthProfile as E, tryParseTag as F, SessionProperties as I, TokenFeatures as L, ProfileLastFailure as M, profileAuthMethod as N, writeProbeResult as O, ParsedVersion as P, parseInteger as R, listProfileRecords as S, resolveRecordCredential as T, DEFAULT_PROFILE as _, createCredentialRefresher as a, consumeKeyringDowngradeWarning as b, resolveProfileName as c, revokeOAuthCredential as d, OAUTH_SCOPE as f, tryDiscoverMetadata as g, registerClient as h, parseEnumCsv as i, ProfileAuthMethod as j, writeProfile as k, OAUTH_CLIENT_NAME as l, exchangeCode as m, parseCsv as n, explicitProfileName as o, discoverMetadata as p, parseEnum as r, readEnvCredentials as s, defineMetabaseCommand as t, USER_AGENT as u, clearProfile as v, readProfileRecord as w, keyringFallbackWarning as x, consumeKeychainResidualWarning as y, parseOptionalInteger as z };
@@ -1,7 +1,7 @@
1
- import { G as listEnvelopeSchema, H as profileFlag, R as connectionFlags, V as outputFlags, f as renderList, z as listFlags } 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 windowList } from "./window-DSb1tqSe.mjs";
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-CJUDVwBu.mjs";
3
+ import { t as parseId } from "./parse-id-CdZ0-1TM.mjs";
4
+ import { n as windowList } from "./window-BkvrP0gB.mjs";
5
5
  import { n as TableCompact } from "./table-CeeTJgQb.mjs";
6
6
  import { t as tableView } from "./table-CsIJNPFf.mjs";
7
7
  //#region src/commands/db/schema-tables.ts
@@ -12,7 +12,6 @@ var schema_tables_default = defineMetabaseCommand({
12
12
  description: "List tables in a database schema"
13
13
  },
14
14
  capabilities: { minVersion: 58 },
15
- worktree: "any",
16
15
  args: {
17
16
  ...outputFlags,
18
17
  ...listFlags,
@@ -1,7 +1,7 @@
1
- import { G as listEnvelopeSchema, H as profileFlag, R as connectionFlags, V as outputFlags, f as renderList, z as listFlags } 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 windowList } from "./window-DSb1tqSe.mjs";
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-CJUDVwBu.mjs";
3
+ import { t as parseId } from "./parse-id-CdZ0-1TM.mjs";
4
+ import { n as windowList } from "./window-BkvrP0gB.mjs";
5
5
  import { z } from "zod";
6
6
  //#region src/commands/db/schemas.ts
7
7
  const SchemaName = z.object({ name: z.string() });
@@ -19,7 +19,6 @@ var schemas_default = defineMetabaseCommand({
19
19
  description: "List schemas in a database"
20
20
  },
21
21
  capabilities: { minVersion: 58 },
22
- worktree: "any",
23
22
  args: {
24
23
  ...outputFlags,
25
24
  ...listFlags,
@@ -1,7 +1,7 @@
1
- import { B as listFlagsWithDefaultLimit, G as listEnvelopeSchema, H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, f as renderList } from "./cli.mjs";
2
- import { r as WORKTREE_SCOPE_DETAIL, s as scopeQuery, t as defineMetabaseCommand, u as parseEnumCsv } from "./runtime-CNAZ_FuR.mjs";
3
- import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
4
- import { r as windowServerPage } from "./window-DSb1tqSe.mjs";
1
+ import { F as outputFlags, I as profileFlag, M as connectionFlags, P as listFlagsWithDefaultLimit, R as listEnvelopeSchema, s as renderList } from "./cli.mjs";
2
+ import { i as parseEnumCsv, t as defineMetabaseCommand } from "./runtime-CJUDVwBu.mjs";
3
+ import { t as parseId } from "./parse-id-CdZ0-1TM.mjs";
4
+ import { r as windowServerPage } from "./window-BkvrP0gB.mjs";
5
5
  import { i as SearchResultCompact, n as SearchModel, t as SEARCH_MODELS } from "./search-DFBwUc6d.mjs";
6
6
  //#region src/output/views/search.ts
7
7
  const searchResultView = {
@@ -31,19 +31,17 @@ var search_default = defineMetabaseCommand({
31
31
  name: "search",
32
32
  description: "Search Metabase content (cards, dashboards, collections, …)"
33
33
  },
34
- details: "Ranks content against a query string. To simply enumerate a resource, prefer its `… list` verb. " + WORKTREE_SCOPE_DETAIL,
34
+ details: "Ranks content against a query string. To simply enumerate a resource, prefer its `… list` verb.",
35
35
  skills: [{
36
36
  skill: "core",
37
37
  purpose: "search vs. list"
38
38
  }],
39
39
  capabilities: { minVersion: 58 },
40
- worktree: "scoped",
41
40
  args: {
42
41
  ...outputFlags,
43
42
  ...listFlagsWithDefaultLimit(DEFAULT_LIMIT),
44
43
  ...profileFlag,
45
44
  ...connectionFlags,
46
- ...worktreeFlag,
47
45
  query: {
48
46
  type: "positional",
49
47
  description: "Search query string",
@@ -72,17 +70,13 @@ var search_default = defineMetabaseCommand({
72
70
  examples: [
73
71
  "mb search orders",
74
72
  "mb search --models card,dashboard --limit 10 --json",
75
- "mb search products --archived",
76
- "mb search orders --worktree feat/transforms"
73
+ "mb search products --archived"
77
74
  ],
78
- async run({ args, ctx, getClient, getWorktree }) {
75
+ async run({ args, ctx, getClient }) {
79
76
  const tableDbIdRaw = args["db-id"];
80
77
  const tableDbId = tableDbIdRaw ? parseId(tableDbIdRaw, "--db-id") : void 0;
81
78
  const models = parseEnumCsv(args.models, SearchModel, "--models");
82
- const client = await getClient();
83
- const scope = await getWorktree();
84
- const { data, total } = await client.search.query({
85
- ...scopeQuery(scope),
79
+ const { data, total } = await (await getClient()).search.query({
86
80
  q: nonEmpty(args.query),
87
81
  models,
88
82
  archived: args.archived ? true : void 0,
@@ -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/segment/index.ts
3
3
  var segment_default = defineCommandGroup({
4
4
  name: "segment",
@@ -11,11 +11,11 @@ var segment_default = defineCommandGroup({
11
11
  purpose: "define reusable segments"
12
12
  }],
13
13
  subCommands: {
14
- list: () => import("./list-BLJkJp5a.mjs").then((mod) => mod.default),
15
- get: () => import("./get-B0g6VMBC.mjs").then((mod) => mod.default),
16
- create: () => import("./create-BA_tTDEk.mjs").then((mod) => mod.default),
17
- update: () => import("./update-CKL2FtoX.mjs").then((mod) => mod.default),
18
- archive: () => import("./archive-DFofUIEC.mjs").then((mod) => mod.default)
14
+ list: () => import("./list-C3IRtLP6.mjs").then((mod) => mod.default),
15
+ get: () => import("./get-DvCgLmPW.mjs").then((mod) => mod.default),
16
+ create: () => import("./create-BkIoWkzP.mjs").then((mod) => mod.default),
17
+ update: () => import("./update-lpLLpKhX.mjs").then((mod) => mod.default),
18
+ archive: () => import("./archive-I61vFPxv.mjs").then((mod) => mod.default)
19
19
  }
20
20
  });
21
21
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
2
- import { c as parseCsv } from "./runtime-CNAZ_FuR.mjs";
3
- import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
2
+ import { n as parseCsv } from "./runtime-CJUDVwBu.mjs";
3
+ import { t as parseId } from "./parse-id-CdZ0-1TM.mjs";
4
4
  //#region src/commands/library/selectors.ts
5
5
  const tableSelectorFlags = {
6
6
  "table-ids": {
@@ -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-CJUDVwBu.mjs";
3
+ import { t as parseId } from "./parse-id-CdZ0-1TM.mjs";
4
4
  import { z } from "zod";
5
5
  //#region src/commands/alert/send.ts
6
6
  const AlertSendResult = z.object({
@@ -24,7 +24,6 @@ var send_default = defineMetabaseCommand({
24
24
  },
25
25
  details: "Delivers to every handler on the alert, ignoring its send condition and schedule. Requires the channel to be configured on the server (email needs SMTP set up).",
26
26
  capabilities: { minVersion: 58 },
27
- worktree: "main-only",
28
27
  args: {
29
28
  ...outputFlags,
30
29
  ...profileFlag,
@@ -1,5 +1,5 @@
1
- import { H as profileFlag, R as connectionFlags, V as outputFlags, _ as formatScalar, 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, f as formatScalar } from "./cli.mjs";
2
+ import { t as defineMetabaseCommand } from "./runtime-CJUDVwBu.mjs";
3
3
  import { t as readBody } from "./body-DxRSAMNC.mjs";
4
4
  import { r as SettingValue } from "./setting-DTiLCW8g.mjs";
5
5
  import { t as settingValueView } from "./setting-CwRYgHYN.mjs";
@@ -13,7 +13,6 @@ var set_default = defineMetabaseCommand({
13
13
  description: "Set a setting value (parsed strictly as JSON)"
14
14
  },
15
15
  capabilities: { minVersion: 58 },
16
- worktree: "main-only",
17
16
  args: {
18
17
  ...outputFlags,
19
18
  ...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-CJUDVwBu.mjs";
3
3
  import { n as TransformJobActiveResult } from "./transform-job-DRrK28IH.mjs";
4
4
  import { t as parseEnumFlag } from "./parse-enum-D0Jfm_Bz.mjs";
5
5
  import { z } from "zod";
@@ -22,7 +22,6 @@ var set_active_default = defineMetabaseCommand({
22
22
  },
23
23
  details: "Flips the active flag on every transform job at once. Inactive jobs do not run on schedule; manual runs ignore the flag. Requires admin.",
24
24
  capabilities: { minVersion: 61 },
25
- worktree: "main-only",
26
25
  args: {
27
26
  ...outputFlags,
28
27
  ...profileFlag,
@@ -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/setting/index.ts
3
3
  var setting_default = defineCommandGroup({
4
4
  name: "setting",
@@ -8,9 +8,9 @@ var setting_default = defineCommandGroup({
8
8
  purpose: "setting get/set JSON value quoting"
9
9
  }],
10
10
  subCommands: {
11
- list: () => import("./list-WSJLnunb.mjs").then((m) => m.default),
12
- get: () => import("./get-DFkbi5L3.mjs").then((m) => m.default),
13
- set: () => import("./set-DKN8fuC6.mjs").then((m) => m.default)
11
+ list: () => import("./list-DGLK2lso.mjs").then((m) => m.default),
12
+ get: () => import("./get-DAsSPKxF.mjs").then((m) => m.default),
13
+ set: () => import("./set-C3tLEVuY.mjs").then((m) => m.default)
14
14
  }
15
15
  });
16
16
  //#endregion
@@ -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-CJUDVwBu.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 { n as SetupResult, r as SetupResultCompact, t as SetupInput } from "./setup-CO7QV-ao.mjs";
@@ -19,7 +19,6 @@ var setup_default = defineMetabaseCommand({
19
19
  description: "Complete the initial Metabase setup wizard with a default user"
20
20
  },
21
21
  capabilities: { minVersion: 58 },
22
- worktree: "main-only",
23
22
  args: {
24
23
  ...outputFlags,
25
24
  ...profileFlag,
@@ -7,9 +7,9 @@ var skills_default = defineCommand({
7
7
  },
8
8
  default: "list",
9
9
  subCommands: {
10
- list: () => import("./list-CtZAu4im.mjs").then((m) => m.default),
11
- get: () => import("./get-CNEQK0-9.mjs").then((m) => m.default),
12
- path: () => import("./path-IYhuzjQV.mjs").then((m) => m.default)
10
+ list: () => import("./list-kIMBSzS-.mjs").then((m) => m.default),
11
+ get: () => import("./get-BUiHdwdU.mjs").then((m) => m.default),
12
+ path: () => import("./path-Df2itv7t.mjs").then((m) => m.default)
13
13
  }
14
14
  });
15
15
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { d as ValidationError, f as errorMessage, i as ConfigError, p as isFileNotFoundError } from "./predicates-Bkm2IoeX.mjs";
2
- import { P as readEnv, k as ENV_SKILLS_DIR } from "./cli.mjs";
2
+ import { O as readEnv, w as ENV_SKILLS_DIR } from "./cli.mjs";
3
3
  import { z } from "zod";
4
4
  import { closeSync, openSync, readFileSync, readSync, readdirSync, statSync } from "node:fs";
5
5
  import { dirname, join, resolve } from "node:path";
@@ -7,7 +7,6 @@ const Snippet = z.object({
7
7
  content: z.string(),
8
8
  archived: z.boolean(),
9
9
  collection_id: z.number().int().nullable(),
10
- worktree_id: z.number().int().positive().nullable().optional(),
11
10
  creator_id: z.number().int(),
12
11
  entity_id: z.string().nullable(),
13
12
  template_tags: z.record(z.string(), z.unknown()).nullable(),
@@ -19,16 +18,14 @@ const SnippetCompact = Snippet.pick({
19
18
  name: true,
20
19
  description: true,
21
20
  archived: true,
22
- collection_id: true,
23
- worktree_id: true
21
+ collection_id: true
24
22
  }).strip();
25
23
  const snippetName = z.string().regex(/^(?!\s)[^}]*$/, "snippet names cannot include '}' or start with spaces");
26
24
  const SnippetCreateInput = z.object({
27
25
  name: snippetName,
28
26
  content: z.string(),
29
27
  description: z.string().nullable().optional(),
30
- collection_id: z.number().int().positive().nullable().optional(),
31
- worktree_id: z.number().int().positive().nullable().optional()
28
+ collection_id: z.number().int().positive().nullable().optional()
32
29
  }).loose();
33
30
  const SnippetUpdateInput = z.object({
34
31
  name: snippetName.nullable().optional(),
@@ -0,0 +1,19 @@
1
+ import { t as defineCommandGroup } from "./group-DBM87IgC.mjs";
2
+ //#region src/commands/snippet/index.ts
3
+ var snippet_default = defineCommandGroup({
4
+ name: "snippet",
5
+ description: "Manage Metabase native query snippets",
6
+ skills: [{
7
+ skill: "core",
8
+ purpose: "native-SQL snippets and body input"
9
+ }],
10
+ subCommands: {
11
+ list: () => import("./list-08dyODsP.mjs").then((mod) => mod.default),
12
+ get: () => import("./get-BM7MA5-7.mjs").then((mod) => mod.default),
13
+ create: () => import("./create-JZevXtCI.mjs").then((mod) => mod.default),
14
+ update: () => import("./update-BiG9eLNH.mjs").then((mod) => mod.default),
15
+ archive: () => import("./archive-CH9osnGq.mjs").then((mod) => mod.default)
16
+ }
17
+ });
18
+ //#endregion
19
+ export { snippet_default as default };
@@ -1,4 +1,4 @@
1
- import { n as SnippetCompact } from "./snippet-BxgvQ09J.mjs";
1
+ import { n as SnippetCompact } from "./snippet-CyKAgIZl.mjs";
2
2
  //#region src/output/views/snippet.ts
3
3
  const snippetView = {
4
4
  compactPick: SnippetCompact,
@@ -1,10 +1,10 @@
1
1
  import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
2
- import { H as profileFlag, R as connectionFlags, V as outputFlags, p as renderSummary } from "./cli.mjs";
3
- import { t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
4
- import { l as SyncStashResult } from "./git-sync-DLzJrdMi.mjs";
5
- import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-DzytMEG8.mjs";
6
- import { c as syncStashView } from "./git-sync-LQIVMNxO.mjs";
7
- import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-G1K47Nvn.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-CJUDVwBu.mjs";
4
+ import { c as SyncStashResult } from "./git-sync-BDnxPrqU.mjs";
5
+ import { n as parseWaitFlags, t as gitSyncWaitFlags } from "./wait-flags-Cb-bI0RD.mjs";
6
+ import { s as syncStashView } from "./git-sync-DxD_ng48.mjs";
7
+ import { a as throwIfFailedTask, i as taskPollOptions, n as formatSyncTask } from "./sync-task-BACcrs0i.mjs";
8
8
  //#region src/commands/git-sync/stash.ts
9
9
  const DEFAULT_STASH_MESSAGE = "Stashed from mb CLI";
10
10
  var stash_default = defineMetabaseCommand({
@@ -16,7 +16,6 @@ var stash_default = defineMetabaseCommand({
16
16
  minVersion: 60,
17
17
  tokenFeature: "remote_sync"
18
18
  },
19
- worktree: "main-only",
20
19
  args: {
21
20
  ...outputFlags,
22
21
  ...profileFlag,
@@ -1,7 +1,7 @@
1
- import { H as profileFlag, V as outputFlags, d as renderItem } from "./cli.mjs";
2
- import { A as readProfileRecord, B as ProfilePin, G as TokenFeatures, H as ParsedVersion, L as ProbedUser, R as ProfileAuthMethod, V as profileAuthMethod, m as resolveProfileName, t as defineMetabaseCommand, z as ProfileLastFailure } from "./runtime-CNAZ_FuR.mjs";
1
+ import { F as outputFlags, I as profileFlag, o as renderItem } from "./cli.mjs";
2
+ import { A as ProbedUser, L as TokenFeatures, M as ProfileLastFailure, N as profileAuthMethod, P as ParsedVersion, c as resolveProfileName, j as ProfileAuthMethod, t as defineMetabaseCommand, w as readProfileRecord } from "./runtime-CJUDVwBu.mjs";
3
3
  import { s as displayUrl } from "./network-error-D6CiOEBw.mjs";
4
- import { a as renderVersionTag, i as renderUserRole, n as renderTimestamp, o as renderWorktreePin, r as renderUserName, t as renderAuthMethod } from "./render-DHjCcUXn.mjs";
4
+ import { a as renderVersionTag, i as renderUserRole, n as renderTimestamp, r as renderUserName, t as renderAuthMethod } from "./render-CI93iP0I.mjs";
5
5
  import { z } from "zod";
6
6
  //#region src/commands/auth/status.ts
7
7
  const AuthStatus = z.object({
@@ -13,8 +13,7 @@ const AuthStatus = z.object({
13
13
  version: ParsedVersion.nullable(),
14
14
  tokenFeatures: TokenFeatures.nullable(),
15
15
  lastProbedAt: z.iso.datetime().nullable(),
16
- lastFailure: ProfileLastFailure.nullable(),
17
- worktree: ProfilePin.nullable()
16
+ lastFailure: ProfileLastFailure.nullable()
18
17
  });
19
18
  const authStatusView = {
20
19
  compactPick: AuthStatus,
@@ -55,11 +54,6 @@ const authStatusView = {
55
54
  key: "lastProbedAt",
56
55
  label: "Last probed",
57
56
  format: (value) => renderTimestamp(value)
58
- },
59
- {
60
- key: "worktree",
61
- label: "Worktree pin",
62
- format: (value) => renderWorktreePin(value)
63
57
  }
64
58
  ]
65
59
  };
@@ -69,7 +63,6 @@ var status_default = defineMetabaseCommand({
69
63
  description: "Show authentication status for a profile"
70
64
  },
71
65
  capabilities: null,
72
- worktree: "any",
73
66
  args: {
74
67
  ...outputFlags,
75
68
  ...profileFlag
@@ -89,8 +82,7 @@ var status_default = defineMetabaseCommand({
89
82
  version: null,
90
83
  tokenFeatures: null,
91
84
  lastProbedAt: null,
92
- lastFailure: null,
93
- worktree: null
85
+ lastFailure: null
94
86
  }, authStatusView, ctx);
95
87
  return;
96
88
  }
@@ -104,8 +96,7 @@ var status_default = defineMetabaseCommand({
104
96
  version: probe?.version ?? null,
105
97
  tokenFeatures: probe?.tokenFeatures ?? null,
106
98
  lastProbedAt: probe?.at ?? null,
107
- lastFailure: record.lastFailure,
108
- worktree: record.worktree
99
+ lastFailure: record.lastFailure
109
100
  }, authStatusView, ctx);
110
101
  }
111
102
  });