@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
@@ -0,0 +1,81 @@
1
+ # Confirmation checklist
2
+
3
+ The judgment calls a plan depends on, in derivation order. Each question carries a **detect** hint —
4
+ how to answer it from the SQL, the metadata, or profiling. Answer autonomously where the hint
5
+ resolves cleanly; ask where it doesn't. Every answer you supply yourself goes into the emitted plan
6
+ as a stated assumption, phrased so the owner can falsify it at a glance ("Assuming `discount` can
7
+ never be negative — correct?").
8
+
9
+ In build-along mode these are design questions: the owner is deciding, not recalling. An undecided
10
+ answer is a decision to make together — surface the options and the check each implies (the
11
+ `checks.md` entry named in parentheses).
12
+
13
+ ## Stage 1 — classify the model (per transform)
14
+
15
+ 1. **Grain: one row per what?** (G1, G2)
16
+ Detect: `GROUP BY` keys; otherwise the driving table of the joins. Confirm whenever detection and
17
+ any written description disagree — that disagreement is itself a finding.
18
+ 2. **Fact-table type — and if periodic snapshot, dense or sparse?** (F2)
19
+ Detect: event-grain with a single event date → transaction; entity×period grain → periodic
20
+ snapshot (density is the one yes/no that flips its whole invariant set — always confirm); one row
21
+ per pipeline occurrence with milestone-date columns → accumulating snapshot.
22
+
23
+ ## Stage 2 — per-table declarations
24
+
25
+ 3. **Conservation ties: output rows/sums tie to which input, with which declared exclusions?** (A2)
26
+ Detect: `WHERE` clauses and join types name the exclusions (filtered rows, dropped duplicates).
27
+ Exclusions must be declared, or conservation appears to fail.
28
+ 4. **Zero-group policy: does a group with no contributing rows appear (with zeros) or stay absent?**
29
+ (A5)
30
+ Detect: driving table of the rollup — grouping the detail can't produce empty groups; joining a
31
+ dimension first can.
32
+ 5. **Orphan handling per join: drop / keep-with-NULLs / default row — and is an orphan tolerated or
33
+ forbidden?** (C3, I5)
34
+ Detect: join type. INNER = drop, LEFT = keep-with-NULLs, COALESCE to a sentinel = default row.
35
+ Tolerated-vs-forbidden is the owner's call — profiling says whether orphans exist today, not
36
+ whether they're acceptable. Forbidden becomes an `empty` expectation; tolerated is pinned in the
37
+ expected rows and recorded in the known-quirks list.
38
+ 6. **Version history: effective/end/current columns anywhere? If not, confirm overwrite-everywhere.**
39
+ (T1)
40
+ Detect: column names. Absence means history is silently rewritten in rollups — state that
41
+ consequence when confirming, not just the mechanism.
42
+ 7. **Does this transform read another transform's output?** (A5)
43
+ Detect: another transform's target table in this one's SQL. It becomes a declared input like any
44
+ other, faked from that transform's own expected output — confirm which rows, and record the
45
+ coupling in both plans.
46
+
47
+ ## Stage 3 — per-column declarations
48
+
49
+ 8. **Each measure: additive, semi-additive, or non-additive?** (A1)
50
+ Detect: sums and counts are additive; balances and levels are semi-additive; ratios, rates, and
51
+ unit prices are non-additive. Confirm the ambiguous ones (a "score"? a "quantity on hand"?).
52
+ 9. **Legal bounds per measure?** (Q1)
53
+ Detect: profiling min/max suggests, business meaning decides — can `discount` be negative? can
54
+ `quantity` be zero? Derived bounds are free (a sum of non-negatives is non-negative).
55
+ 10. **Each derived measure: the exact recomputation rule?** (A3)
56
+ Detect: the SELECT expression is the rule — but rounding, business-day adjustments, and NULL
57
+ handling are conventions to confirm, not read.
58
+ 11. **Which columns are stored aggregates, over which detail and filter?** (A4)
59
+ Detect: correlated subqueries / joined-aggregate CTEs in the SQL.
60
+ 12. **Which categorical columns have closed domains — enumerate; is NULL a member?** (C2)
61
+ Detect: profiling distinct values gives today's set; the owner confirms it's closed rather than
62
+ merely small so far.
63
+ 13. **Which columns are denormalized copies, of which owning attribute?** (C1)
64
+ Detect: `<entity>_<attr>` naming; any column functionally dependent on a non-grain key. Every hit
65
+ must be classified: copy (C1), stored aggregate (A4), or smuggled coarser-grain fact — a
66
+ finding.
67
+ 14. **Which many-to-one edges hold within one output table?** (C4)
68
+ Detect: hierarchy-shaped column pairs (product/category, zip/state). Applies where no owning
69
+ table is in scope; otherwise C1 covers it.
70
+ 15. **Which date orderings are business-guaranteed vs. known-violated and tolerated (with real-data
71
+ counts)?** (T2)
72
+ Detect: profiling counts the violations that exist; the owner decides tolerated vs. bug.
73
+ 16. **Null policy per column — measures, attributes, FKs separately.** (Q2)
74
+ Detect: the SQL shows what's produced (COALESCE, CASE); the owner confirms intent — "count of
75
+ nothing": 0 or NULL? empty date: NULL or sentinel?
76
+ 17. **Which columns are volatile across runs?** (T3)
77
+ Detect: `now()` / `current_date` / run-metadata expressions in the SQL. A volatile column is left
78
+ out of the `equals` columns; its form can still be asserted with an `empty`.
79
+ 18. **Per tolerated oddity: does it stay tolerated, and what is its current count?** (Q3)
80
+ Detect: can't — this is the conscious-choice question, and the plan's known-quirks list is where
81
+ it survives.
@@ -0,0 +1,259 @@
1
+ # Check catalog
2
+
3
+ Every check the plan can derive, grouped by theme. Per entry: **when it applies** (the declared
4
+ property that switches it on — blank means always), **assert** (the expectation shape), and
5
+ **fixtures** (what the input cast must contain for the check to have teeth).
6
+
7
+ Expectation SQL names the transform's **target table** and its **declared input tables** under their
8
+ real names; both are rewritten to the run's temp tables, so per-row recomputation joins against
9
+ inputs are writable. Anything else you name is left exactly as written and reads the real table.
10
+
11
+ Ids (G1, A2, …) are for cross-referencing within the plan documents only — never surface them to the
12
+ user bare.
13
+
14
+ Throughout, `<target>` stands for the transform's target table as written in the transform's own
15
+ definition, and `<input>` for a declared input table.
16
+
17
+ ## Grain & keys
18
+
19
+ **G1 — Declared grain.** Every output table states "one row per X"; the declaration anchors every
20
+ other check.
21
+
22
+ - Applies: always. Elicit or detect (GROUP BY keys; the join's driving table).
23
+ - Assert: nothing directly — G1 is the plan's opening move. A table with no statable grain, or a
24
+ grain stated inconsistently between docs and SQL, is a finding before any SQL runs.
25
+ - Fixtures: the grain declaration decides the cast's row structure.
26
+
27
+ **G2 — Grain-key uniqueness.** The grain key stays a key; doubles as the fan-out guard for every
28
+ enriching join.
29
+
30
+ - Applies: always — one-big-table, rollups, and stars all have a grain.
31
+ - Assert (`empty`): `SELECT <grain cols>, COUNT(*) FROM <target> GROUP BY <grain cols> HAVING
32
+ COUNT(*) > 1`. NULL grain values form their own bucket.
33
+ - Fixtures: a parent with ≥2 children on every join (I4) is what makes this check able to fail.
34
+
35
+ ## Additivity & reconciliation
36
+
37
+ **A1 — Measure additivity classification.** Additive / semi-additive (balances) / non-additive
38
+ (ratios, rates, unit prices) decides which aggregations are valid tests.
39
+
40
+ - Applies: every numeric measure; per-column declaration.
41
+ - Assert: routes the measure — additive → A2; semi-additive → sum across non-time slices only (a
42
+ test summing a balance over time is a bug in the plan); non-additive → A3 recomputation, never
43
+ reconciled by summing.
44
+ - Fixtures: none directly; one coverage-matrix axis (measure × valid aggregation set).
45
+
46
+ **A2 — Conservation reconciliation.** Row counts and additive-measure sums tie from input to output;
47
+ catches dropped rows and join double-counting at once.
48
+
49
+ - Applies: per declared tie (which input, which declared exclusions).
50
+ - Assert (`empty`): independent scalar subqueries compared with `IS DISTINCT FROM`, returning the
51
+ mismatched pair:
52
+ `SELECT (SELECT SUM(t.m) FROM <target> t) AS output_sum, (SELECT SUM(s.m) FROM <input> s) AS
53
+ input_sum WHERE (…) IS DISTINCT FROM (…)`.
54
+ Never reconcile via a fact-to-fact join — cardinality is uncontrollable and wrong results are
55
+ silent.
56
+ - Fixtures: amounts chosen so partial survival is visible (distinct values, odd cents).
57
+
58
+ **A3 — Derived-measure recomputation.** Averages, lags, ratios, rounded presentations recompute from
59
+ their components per row.
60
+
61
+ - Applies: every derived column, with its declared rule (rounding, business-day adjustment, NULL
62
+ handling).
63
+ - Assert (`empty`): `SELECT <key> FROM <target> t WHERE t.<derived> IS DISTINCT FROM <recomputation
64
+ from inputs or sibling columns>`.
65
+ - Fixtures: component values whose derivation is non-trivial (a NULL in the AVG, a negative lag).
66
+
67
+ **A4 — Stored aggregates on entity tables.** Lifetime/rollup stats carried on an entity-grain table
68
+ (`lifetime_orders`, `review_count`, `first_order_date`) equal recomputation from detail — per row
69
+ _and_ in total.
70
+
71
+ - Applies: columns detected as correlated aggregates over a detail table.
72
+ - Assert (`empty`), two per column: per-row — `WHERE t.<agg> IS DISTINCT FROM (SELECT
73
+ COUNT(*)/SUM(…)/MIN(…) FROM <detail> d WHERE d.<fk> = t.<key>)`; total — the A2 scalar-pair shape.
74
+ Totals alone cancel offsetting per-row errors; the per-row form is the one that catches them.
75
+ - Fixtures: an entity with several detail rows and an entity with none (I3/I4).
76
+
77
+ **A5 — Rollup consistency.** A layered rollup always agrees with its base.
78
+
79
+ - Applies: any transform reading another transform's output. The base is a declared input like any
80
+ other, faked with rows taken from the base transform's own expected output.
81
+ - Assert (`empty`): every rollup measure equals the corresponding aggregation over the base (A2
82
+ shape); group-set equality both directions — `SELECT <group> FROM <target> EXCEPT SELECT DISTINCT
83
+ <group col> FROM <base>` and the reverse, filtered by the declared zero-group policy.
84
+ - Fixtures: a group with no contributing rows pins the zero-group policy.
85
+
86
+ ## Fact-table type
87
+
88
+ **F2 — Fact-table type bundle.** Transaction / periodic snapshot / accumulating snapshot each carry
89
+ a distinct invariant set.
90
+
91
+ - Applies: per fact-shaped output, always classified; **transaction** needs nothing beyond G2 + A2
92
+ (sparsity is legitimate).
93
+ - Periodic snapshot, if declared _dense_: `COUNT(*) = |entities| × |periods|` (or the declared
94
+ subset); per-entity gap detection in the period series; inactive-period representation (zero vs
95
+ NULL) pinned in the expected rows. If sparse, density checks off — the one yes/no flips the whole
96
+ set.
97
+ - Accumulating snapshot: milestone dates monotone in pipeline order where set (`WHERE <later> <
98
+ <earlier>` per adjacent pair); unset-milestone default (NULL vs sentinel) pinned in the expected
99
+ rows; completion flags ∈ {0,1} and consistent with their date's set-ness; lags via A3.
100
+ - Fixtures (accumulating): occurrences at every completion stage — none, some, all milestones.
101
+
102
+ ## Conformance & domains
103
+
104
+ **C1 — Denormalized-copy agreement.** Every copied attribute agrees with the owning table's value
105
+ for that key.
106
+
107
+ - Applies: columns declared as copies (detect: `<entity>_<attr>` naming; any column functionally
108
+ dependent on a non-grain key). Each such column must be a declared copy (this check), a stored
109
+ aggregate (A4), or it's a smuggled coarser-grain fact — a finding: it double-counts under
110
+ summation.
111
+ - Assert (`empty`): `SELECT t.<key>, t.<copy>, d.<attr> FROM <target> t JOIN <owning input> d ON
112
+ t.<key> = d.<key> WHERE t.<copy> IS DISTINCT FROM d.<attr>`.
113
+ - Scope: in a test, the copies are produced by the very join under test, so this join-form is near-
114
+ tautological — the C4 functional-dependency form plus expected-row cell pinning carries the test.
115
+ The join-form against an independently materialized owning table is the _drift_ check, which
116
+ belongs to whatever screens the deployed tables.
117
+ - Fixtures: copies with distinct values per entity so a crossed join is visible.
118
+
119
+ **C2 — Closed-domain screen.** A categorical column's values stay inside the declared enumeration.
120
+
121
+ - Applies: per column declared closed (detect from profiling; confirm the set and whether NULL is a
122
+ member).
123
+ - Assert (`empty`): `SELECT <key>, <col> FROM <target> WHERE <col> IS NOT NULL AND <col> NOT IN
124
+ (<domain>)`.
125
+ - Fixtures: every domain value represented where practical; one out-of-domain input row if the
126
+ source can produce one (I5).
127
+
128
+ **C3 — Referential integrity / orphan policy.** Every FK resolves, or the declared orphan handling is
129
+ pinned.
130
+
131
+ - Applies: per join, conditioned on the declared response — drop / keep-with-NULLs / default row;
132
+ tolerated or forbidden.
133
+ - Assert, forbidden (`empty`): `SELECT t.<fk> FROM <target> t LEFT JOIN <dim input> d ON t.<fk> =
134
+ d.<key> WHERE t.<fk> IS NOT NULL AND d.<key> IS NULL`.
135
+ Tolerated: not an expectation — pin the orphan's pass-through as a row in the `equals` (NULL in
136
+ the copied attributes), and record the tolerance with its warehouse count in the plan.
137
+ Default-row convention adds: distinct unknown keys must not collapse into one output row.
138
+ - Fixtures: one orphan row (I5). Without it the join direction is untested — an inner join silently
139
+ dropping unmatched rows is the classic bug this catches.
140
+
141
+ **C4 — Many-to-one consistency.** Each declared many-to-one edge holds within the output (product →
142
+ one category; zip → one state).
143
+
144
+ - Applies: per declared edge; where an owning table is in scope, C1 subsumes it — this is the
145
+ one-big-table variant with nothing to join against.
146
+ - Assert (`empty`): `SELECT t.<many>, COUNT(DISTINCT t.<one>) FROM <target> t GROUP BY t.<many>
147
+ HAVING COUNT(DISTINCT t.<one>) > 1`.
148
+ - Fixtures: a violating input row if the source can produce one (I5), pinning the transform's
149
+ behavior on dirty input.
150
+
151
+ ## Temporal & version history
152
+
153
+ **T1 — Change handling per attribute.** How the model treats a changed source attribute decides the
154
+ temporal fixtures.
155
+
156
+ - Applies: detect effective/end/current housekeeping columns.
157
+ - Present → version-history battery (`empty` each): per durable key exactly one current row;
158
+ `effective < end` per row; intervals contiguous and non-overlapping; current row's end = the
159
+ declared far-future default; fact rows join the version whose interval contains the fact date.
160
+ - Absent → confirm overwrite-everywhere as a stated assumption (history is silently rewritten in
161
+ rollups), and derive the propagation probe: change an attribute in an input, run, assert the
162
+ output regrouped.
163
+ - Fixtures: a before/after change pair; for version history, an entity with ≥2 versions and a fact
164
+ row dated inside each interval.
165
+
166
+ **T2 — Date-pair ordering.** Business-guaranteed orderings asserted; known violations recorded.
167
+
168
+ - Applies: per declared date pair (ordered ≤ shipped ≤ delivered; signup ≤ first order), each
169
+ classified guaranteed vs. tolerated-violated.
170
+ - Assert: guaranteed (`empty`) — `SELECT <key>, <earlier>, <later> FROM <target> WHERE <later> <
171
+ <earlier>`. Tolerated — pin the violating row's downstream arithmetic (a negative lag inside an
172
+ average) in the expected rows, and record the real-data count in the plan.
173
+ - Fixtures: one violating row for every tolerated ordering.
174
+
175
+ **T3 — Volatile columns.** Values that change across runs can't be pinned.
176
+
177
+ - Applies: columns derived from `now()`/`current_date` (age), run metadata (load timestamps, batch
178
+ ids).
179
+ - Assert: leave the column out of the `equals` `columns` list — an undeclared column never enters the
180
+ comparison. Separately assert its form where warranted (`empty`): `WHERE age NOT BETWEEN 0 AND
181
+ 120`. The stable source column (`birth_date`) stays exact in the expected rows.
182
+ - Fixtures: none special; the split is the point — omit the volatile, pin the stable.
183
+
184
+ ## Screens & severity
185
+
186
+ **Q1 — Range / sign screens.** Each measure's declared bounds hold.
187
+
188
+ - Applies: per bounded measure; bounds from business meaning plus profiling (derived bounds are
189
+ free: a sum of non-negatives is non-negative).
190
+ - Assert (`empty`): `SELECT <key>, <col> FROM <target> WHERE <col> < <lo> OR <col> > <hi>` (one-sided
191
+ where only one bound exists).
192
+ - Fixtures: boundary values where the bound is business-set.
193
+
194
+ **Q2 — Null policy, three ways.** Measures, descriptive attributes, and FKs carry independent null
195
+ policies; never presume one from another.
196
+
197
+ - Applies: per column, asked separately — "count of nothing": 0 or NULL? empty date: NULL or
198
+ sentinel? FK: see C3.
199
+ - Assert: declared non-null columns get `WHERE <col> IS NULL` (`empty`). Otherwise the policy is
200
+ enforced by the expected-row cell of a zero-case fixture row — NULL vs 0 vs empty is invisible
201
+ until a fixture forces the choice into a cell.
202
+ - Fixtures: the zero-case row (I3) is the enforcement mechanism.
203
+
204
+ **Q3 — Naming & the tolerated oddity.** Every expectation declares its meaning.
205
+
206
+ - Applies: always, every expectation.
207
+ - Convention: the expectation's `name` states the invariant in plain words, because a failure leads
208
+ with it. Each `empty` SQL opens with 1–3 comment lines naming the invariant and the failure modes
209
+ it catches. Budget cuts drop business-rule checks first, then cross-table structure checks, never
210
+ single-column screens.
211
+ - A forbidden condition is an `empty` expectation. A tolerated one is pinned in the expected rows
212
+ and recorded in the plan's known-quirks list with its warehouse count. Never author an expectation
213
+ designed to fire.
214
+
215
+ ## Input modeling (fixture-design rules)
216
+
217
+ **I1 — Profiling-derived partitions.** Fixture edges and tolerated non-ties cite profiled reality
218
+ with counts; the plan's known-quirks section carries each tolerated oddity with its reason and
219
+ count.
220
+
221
+ **I2 — Shared fixture cast.** One small human-named cast per transform, every row a named edge,
222
+ documented as a story table (row → attributes → purpose) in the plan. Where one transform's output
223
+ is another's input, derive the faked rows from the first's expected output so the two tests tell one
224
+ story.
225
+
226
+ **I3 — Zero-case partitions.** For every outer join and aggregation relation: one entity with zero
227
+ matches. Its expected row pins the absence representation (Q2) and the join direction (C3) — the
228
+ all-clean cast is the single most common cause of vacuous tests. When the schema distinguishes
229
+ states the profiled data never exhibits (a literal zero in a source that only has NULLs and
230
+ positives), fixture the missing state — nothing else forces it onto an expected cell.
231
+
232
+ **I4 — Multiplicity partitions.** Every aggregation gets a >1-member group and an exactly-1 group
233
+ (the 0 case is I3); every join gets a parent with ≥2 children. Expected values then differ from any
234
+ single row's, so copy-through bugs can't pass.
235
+
236
+ **I5 — Dirty-input pinning.** Per screenable defect the source can carry (orphan FK, out-of-domain
237
+ value, duplicate natural key, hierarchy violation, ordering violation): one fixture row exhibiting
238
+ it, an expected row pinning the transform's response (drop / pass-through / default), and — where
239
+ the defect is forbidden — the matching `empty` expectation. Which duplicate survives a dedupe is
240
+ invisible until a conflicting-duplicate fixture pins it.
241
+
242
+ **I6 — Mutation probes.** Run at plan-validation time, not on every run: corrupt one expected cell →
243
+ `cell-mismatches` must name that exact column; perturb one input cell → exactly the declared output
244
+ cells move. Both guard against vacuous tests: every `empty` expectation passes against an empty
245
+ output.
246
+
247
+ ## Plan-level artifacts
248
+
249
+ **P1 — Coverage matrix.** Output columns (with the table's grain) × check classes; cells name the
250
+ covering expectation or expected-row cell, or state `gap: <reason>`; shared-attribute columns scanned
251
+ across transforms for agreement obligations (C1).
252
+
253
+ **P2 — Hand-derived expected rows.** From the fixture story and business meaning, arithmetic recorded
254
+ in the plan; never captured from output; every fixture row's fate appears in some expected cell.
255
+
256
+ **P3 — Live-bug handling.** A check failing against a deployed transform is a real finding: never
257
+ soften the test to green; quantify the damage at fixture and warehouse scale. Then fix now, or record
258
+ the red in the plan with the minimal fix body, per the session's terms. A stored test has no
259
+ red-by-design state, so a deferred fix must be visible in the plan or the test reads as broken.
@@ -1,38 +0,0 @@
1
- import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { i as assertInWorktree, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
- import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
4
- import { t as Snippet } from "./snippet-BxgvQ09J.mjs";
5
- import { t as snippetView } from "./snippet-DecHB4Dn.mjs";
6
- //#region src/commands/snippet/archive.ts
7
- var archive_default = defineMetabaseCommand({
8
- meta: {
9
- name: "archive",
10
- description: "Archive (soft-delete) a native query snippet by id"
11
- },
12
- capabilities: { minVersion: 58 },
13
- worktree: "scoped",
14
- details: WORKTREE_SCOPE_DETAIL,
15
- args: {
16
- ...outputFlags,
17
- ...profileFlag,
18
- ...connectionFlags,
19
- ...worktreeFlag,
20
- id: {
21
- type: "positional",
22
- description: "Snippet id",
23
- required: true
24
- }
25
- },
26
- outputSchema: Snippet,
27
- examples: ["mb snippet archive 1", "mb snippet archive 1 --json"],
28
- async run({ args, ctx, getClient, getWorktree }) {
29
- const id = parseId(args.id);
30
- const client = await getClient();
31
- const scope = await getWorktree();
32
- if (scope !== null) assertInWorktree("snippet", id, (await client.snippet.get(id)).worktree_id, scope);
33
- const updated = await client.snippet.archive(id);
34
- renderSummary(updated, snippetView, `Archived snippet ${updated.id} "${updated.name}".`, ctx);
35
- }
36
- });
37
- //#endregion
38
- export { archive_default as default };
@@ -1,38 +0,0 @@
1
- import { H as profileFlag, R as connectionFlags, U as worktreeFlag, V as outputFlags, p as renderSummary } from "./cli.mjs";
2
- import { i as assertInWorktree, r as WORKTREE_SCOPE_DETAIL, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
- import { t as parseId } from "./parse-id-DDCn3VXx.mjs";
4
- import { r as Collection } from "./collection-BxE7OzcQ.mjs";
5
- import { n as collectionView } from "./collection-CJHqsFKP.mjs";
6
- //#region src/commands/collection/archive.ts
7
- var archive_default = defineMetabaseCommand({
8
- meta: {
9
- name: "archive",
10
- description: "Archive (soft-delete) a collection by id"
11
- },
12
- capabilities: { minVersion: 58 },
13
- worktree: "scoped",
14
- details: WORKTREE_SCOPE_DETAIL,
15
- args: {
16
- ...outputFlags,
17
- ...profileFlag,
18
- ...connectionFlags,
19
- ...worktreeFlag,
20
- id: {
21
- type: "positional",
22
- description: "Collection id",
23
- required: true
24
- }
25
- },
26
- outputSchema: Collection,
27
- examples: ["mb collection archive 4", "mb collection archive 4 --json"],
28
- async run({ args, ctx, getClient, getWorktree }) {
29
- const id = parseId(args.id);
30
- const client = await getClient();
31
- const scope = await getWorktree();
32
- if (scope !== null) assertInWorktree("collection", id, (await client.collection.get(id)).worktree_id, scope);
33
- const updated = await client.collection.archive(id);
34
- renderSummary(updated, collectionView, `Archived collection ${updated.id} "${updated.name}".`, ctx);
35
- }
36
- });
37
- //#endregion
38
- export { archive_default as default };
@@ -1,28 +0,0 @@
1
- import { i as ConfigError } from "./predicates-Bkm2IoeX.mjs";
2
- //#region src/commands/git-sync/branch.ts
3
- const BRANCH_PINNED_REFUSAL = "a worktree is pinned to its branch; drop --branch";
4
- const BRANCH_UNSET_REFUSAL = "remote-sync-branch is not set; configure git-sync first";
5
- function syncBranchTarget(input) {
6
- const stated = input.flag === void 0 || input.flag === "" ? null : input.flag;
7
- if (input.scope !== null) {
8
- if (stated !== null) throw new ConfigError(BRANCH_PINNED_REFUSAL);
9
- return {
10
- branch: input.scope.branch,
11
- expected: input.scope.branch
12
- };
13
- }
14
- if (input.tracked === null) throw new ConfigError(BRANCH_UNSET_REFUSAL);
15
- return {
16
- branch: stated ?? input.tracked,
17
- expected: input.tracked
18
- };
19
- }
20
- async function resolveSyncBranch(mb, scope, flag) {
21
- return syncBranchTarget({
22
- scope,
23
- flag,
24
- tracked: scope === null ? await mb.gitSync.branch() : null
25
- });
26
- }
27
- //#endregion
28
- export { resolveSyncBranch as t };
@@ -1,34 +0,0 @@
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, t as defineMetabaseCommand } from "./runtime-CNAZ_FuR.mjs";
3
- import { u as SyncTask } from "./git-sync-DLzJrdMi.mjs";
4
- import { l as syncTaskView } from "./git-sync-LQIVMNxO.mjs";
5
- //#region src/commands/git-sync/cancel-task.ts
6
- var cancel_task_default = defineMetabaseCommand({
7
- meta: {
8
- name: "cancel-task",
9
- description: "Cancel the running git-sync task"
10
- },
11
- capabilities: {
12
- minVersion: 60,
13
- tokenFeature: "remote_sync"
14
- },
15
- worktree: "scoped",
16
- details: WORKTREE_SCOPE_DETAIL,
17
- args: {
18
- ...outputFlags,
19
- ...profileFlag,
20
- ...connectionFlags,
21
- ...worktreeFlag
22
- },
23
- outputSchema: SyncTask,
24
- examples: ["mb git-sync cancel-task", "mb git-sync cancel-task --json"],
25
- async run({ ctx, getClient, getWorktree }) {
26
- const mb = await getClient();
27
- const scope = await getWorktree();
28
- const params = scope === null ? {} : { worktree_id: scope.id };
29
- const task = await mb.gitSync.cancelTask(params);
30
- renderSummary(task, syncTaskView, `Requested cancellation of ${task.sync_task_type} task #${task.id}.`, ctx);
31
- }
32
- });
33
- //#endregion
34
- export { cancel_task_default as default };
@@ -1,24 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-YN6jj2AN.mjs";
2
- //#region src/commands/card/index.ts
3
- var card_default = defineCommandGroup({
4
- name: "card",
5
- description: "Manage Metabase cards (questions, models, metrics)",
6
- skills: [{
7
- skill: "mbql",
8
- purpose: "author the dataset_query"
9
- }, {
10
- skill: "visualization",
11
- purpose: "choose display and visualization_settings"
12
- }],
13
- subCommands: {
14
- list: () => import("./list-oAAgU5uE.mjs").then((mod) => mod.default),
15
- get: () => import("./get-CWf46UFu.mjs").then((mod) => mod.default),
16
- query: () => import("./query-Bka77J62.mjs").then((mod) => mod.default),
17
- alerts: () => import("./alerts-DmwyyBfW.mjs").then((mod) => mod.default),
18
- create: () => import("./create-ByuJ6T4k.mjs").then((mod) => mod.default),
19
- update: () => import("./update-CpLEEbiJ.mjs").then((mod) => mod.default),
20
- archive: () => import("./archive-BZEu6UfT.mjs").then((mod) => mod.default)
21
- }
22
- });
23
- //#endregion
24
- export { card_default as default };
@@ -1,20 +0,0 @@
1
- import { t as defineCommandGroup } from "./group-YN6jj2AN.mjs";
2
- //#region src/commands/collection/index.ts
3
- var collection_default = defineCommandGroup({
4
- name: "collection",
5
- description: "Manage Metabase collections",
6
- skills: [{
7
- skill: "core",
8
- purpose: "collection ref forms and the transforms namespace"
9
- }],
10
- subCommands: {
11
- list: () => import("./list-Dg2XeDON.mjs").then((mod) => mod.default),
12
- get: () => import("./get-DwdMvWXU.mjs").then((mod) => mod.default),
13
- items: () => import("./items-Cv6iAzrI.mjs").then((mod) => mod.default),
14
- tree: () => import("./tree-DtyJhD54.mjs").then((mod) => mod.default),
15
- create: () => import("./create-D0anrINz.mjs").then((mod) => mod.default),
16
- archive: () => import("./archive-DCjdICg7.mjs").then((mod) => mod.default)
17
- }
18
- });
19
- //#endregion
20
- export { collection_default as default };