@metabase/cli 0.3.1-alpha.support-worktrees.b634907 → 0.3.1-alpha.versioning.9ac5f50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-collection-CxzzDG4z.mjs → add-collection-Dmd-uNeU.mjs} +6 -10
- package/dist/{alert-CQ7Az16h.mjs → alert-D1u2MVZj.mjs} +7 -7
- package/dist/{alerts-DmwyyBfW.mjs → alerts-DcBjcfEE.mjs} +7 -8
- package/dist/{append-B0avMkvW.mjs → append-B9Htvmab.mjs} +5 -6
- package/dist/{archive-CMTHh4-w.mjs → archive-B660RguB.mjs} +4 -5
- package/dist/{archive-THcEfy9B.mjs → archive-BNivAYGr.mjs} +5 -6
- package/dist/{archive-DCyeRNfV.mjs → archive-BUoYMkxO.mjs} +4 -5
- package/dist/{archive-BZEu6UfT.mjs → archive-BVmFGFwG.mjs} +6 -7
- package/dist/archive-Bf014rFm.mjs +32 -0
- package/dist/{archive-DFofUIEC.mjs → archive-BmsZFOZY.mjs} +4 -5
- package/dist/archive-CNif6BKy.mjs +32 -0
- package/dist/{archive-BPSNe0Ul.mjs → archive-CgmidYZV.mjs} +4 -5
- package/dist/{archive-Cvrkz8F8.mjs → archive-CvU2z5192.mjs} +5 -6
- package/dist/{archive-BQ50OZ7y.mjs → archive-DhDQIKR_.mjs} +4 -5
- package/dist/{archive-BVblae-p.mjs → archive-bPdDITuY.mjs} +4 -5
- package/dist/{auth-BEEkuu4J.mjs → auth-CefYEPP5.mjs} +5 -5
- package/dist/{body-DxRSAMNC.mjs → body-C7m9q4cm.mjs} +3 -3
- package/dist/{branches-CmWc8NyL.mjs → branches-pz04OjF2.mjs} +4 -8
- package/dist/{cancel-DrQqmxvn.mjs → cancel-CNLnv19e.mjs} +4 -5
- package/dist/cancel-task-DbnxSh7U.mjs +25 -0
- package/dist/card-BRarvKYX.mjs +24 -0
- package/dist/{card-CrBGUkGQ.mjs → card-DZxRmver.mjs} +0 -1
- package/dist/{card-BEeafd4Y.mjs → card-zyUkr2nS.mjs} +1 -1
- package/dist/{cards-M_6X8wCI.mjs → cards-DtYlVoGP.mjs} +5 -6
- package/dist/cli.mjs +566 -170
- package/dist/{client-DYD8WZYy.mjs → client-Bv7Iwdvh.mjs} +285 -269
- package/dist/collection-CKeO8X7U.mjs +20 -0
- package/dist/{collection-CJHqsFKP.mjs → collection-DALwHnbz.mjs} +1 -1
- package/dist/{collection-BxE7OzcQ.mjs → collection-WFdBeyqa.mjs} +4 -7
- package/dist/{collection-namespace-CEoQ7G08.mjs → collection-namespace-CvT0TIZA.mjs} +2 -2
- package/dist/{content-translation-C8MlXPOF.mjs → content-translation-D7POzJJ6.mjs} +3 -3
- package/dist/{create-CoubLR5o.mjs → create-BEE8uvz2.mjs} +9 -6
- package/dist/{create-D0anrINz.mjs → create-Bh2j733n.mjs} +11 -16
- package/dist/{create-BupBEwR2.mjs → create-Bwg-5p08.mjs} +8 -13
- package/dist/{create-ByuJ6T4k.mjs → create-CGPle4nE.mjs} +7 -8
- package/dist/{create-hTc131aX.mjs → create-CGgPnb7L.mjs} +4 -5
- package/dist/{create-CY-SzM66.mjs → create-CLgalJUe.mjs} +12 -17
- package/dist/{create-C2XFfbjx.mjs → create-CN24yp_W.mjs} +6 -7
- package/dist/{create-BLWwN0uw.mjs → create-CuYGZ4gu2.mjs} +5 -6
- package/dist/{create-CJ7Am4Gc.mjs → create-DGHILnnk.mjs} +5 -6
- package/dist/{create-z-oMrlfT.mjs → create-DYd_o9BD.mjs} +5 -9
- package/dist/{create-BqpkCjx4.mjs → create-DhDREiiy.mjs} +4 -5
- package/dist/{create-myI6doga.mjs → create-Di4YvIbK.mjs} +5 -6
- package/dist/{create-ldrghMd1.mjs → create-DnqnjGGf.mjs} +4 -5
- package/dist/{create-C7iooS6W.mjs → create-Ds-DnSBe.mjs} +9 -15
- package/dist/{create-BA_tTDEk.mjs → create-JOXq0ULN.mjs} +5 -6
- package/dist/create-branch-DWcxC30N.mjs +31 -0
- package/dist/{csv-DBNzJiWK.mjs → csv-CUQvcCEk.mjs} +5 -6
- package/dist/{current-task-YzemU0Ic.mjs → current-task-D6P0eL21.mjs} +8 -16
- package/dist/{dashboard-B1mpfCq_.mjs → dashboard-BudI952R.mjs} +10 -10
- package/dist/{db-1tLH3nYI.mjs → db-C7UTd-6P.mjs} +7 -7
- package/dist/{delete-CD_-B4Kq.mjs → delete-DSxqbcFE.mjs} +5 -6
- package/dist/{delete-QNgBV6eS.mjs → delete-DbZZKcYj.mjs} +6 -11
- package/dist/{delete-DjAUp9mk.mjs → delete-Ds-zGh9C.mjs} +5 -6
- package/dist/{delete-eAUB7p-f.mjs → delete-Ud6iliGM.mjs} +6 -11
- package/dist/{delete-CpKH5ia4.mjs → delete-_IHffP-A.mjs} +5 -6
- package/dist/{delete-runtime-b2_ZMSjj.mjs → delete-runtime-BjHL1ryM.mjs} +1 -2
- package/dist/{delete-table-DamlxnSO.mjs → delete-table-DtXH6IN5.mjs} +6 -11
- package/dist/dependencies-CR1dlq-A.mjs +36 -0
- package/dist/dirty-CYxnOnh0.mjs +28 -0
- package/dist/document-BoILnE_1.mjs +19 -0
- package/dist/{download-C4v7u-AV.mjs → download-DPpmmYQe.mjs} +3 -7
- package/dist/{eid-CP35PdEF.mjs → eid-D-BbtWjt.mjs} +4 -6
- package/dist/{events-DmbzKIh_.mjs → events-CJEnn8WE.mjs} +5 -6
- package/dist/{export-i8D6laBG.mjs → export-BOgyuIOQ.mjs} +13 -29
- package/dist/{field-BKn9bt7I.mjs → field-CzHBOPER.mjs} +5 -5
- package/dist/{fields-8_p81BqN.mjs → fields-Bwgkrvus.mjs} +5 -6
- package/dist/get-B89DUSvw.mjs +31 -0
- package/dist/get-BL90QC64.mjs +36 -0
- package/dist/get-BLJSCw53.mjs +31 -0
- package/dist/{get-BBOfshz1.mjs → get-BOLwso0V.mjs} +6 -7
- package/dist/{get-BvW21ujw.mjs → get-BaPadzdM.mjs} +4 -5
- package/dist/{get-vvs0qzzM.mjs → get-BfVCLBqc.mjs} +4 -5
- package/dist/{get-B0g6VMBC.mjs → get-C1ZdOvMm.mjs} +4 -5
- package/dist/{get-N4dOaTsp.mjs → get-CLu4yzMp2.mjs} +5 -6
- package/dist/get-COwdtskS.mjs +27 -0
- package/dist/{get-CPTbySa7.mjs → get-CWfIiXwL.mjs} +4 -5
- package/dist/get-CqQ-pf0q.mjs +89 -0
- package/dist/{get-DnCE7K0y.mjs → get-CvIgxPXV.mjs} +5 -6
- package/dist/{get-vrccOMBk.mjs → get-D4OTJblo.mjs} +4 -5
- package/dist/{get-BbHPFNqr.mjs → get-D8lHwu4-.mjs} +4 -5
- package/dist/{get-CWf46UFu.mjs → get-DVi3a2nm.mjs} +6 -7
- package/dist/{get-DFkbi5L3.mjs → get-DgnYF7LR.mjs} +4 -5
- package/dist/{get-BHGgXqUq.mjs → get-DsKmZfM2.mjs} +4 -5
- package/dist/{get-CAzSP-7o.mjs → get-DyyPiiaB.mjs} +4 -5
- package/dist/{get-Bds6Izxk.mjs → get-Eqq13YY-.mjs} +4 -5
- package/dist/{get-run-4Ng8_awa.mjs → get-run-Iya0Yw9s.mjs} +6 -7
- package/dist/{git-sync-DLzJrdMi.mjs → git-sync-BDnxPrqU.mjs} +3 -22
- package/dist/git-sync-CdN0Maun.mjs +28 -0
- package/dist/{git-sync-LQIVMNxO.mjs → git-sync-DxD_ng48.mjs} +2 -31
- package/dist/{group-YN6jj2AN.mjs → group-CmVCLBDz.mjs} +3 -3
- package/dist/{has-remote-changes-BXPGI9xG.mjs → has-remote-changes-DfJUMP8F.mjs} +7 -18
- package/dist/{import-BoxOkA-G.mjs → import-FEAx-Y5A.mjs} +12 -32
- package/dist/{input-DH9i67x_.mjs → input-DFZ_qGW_.mjs} +1 -1
- package/dist/is-dirty-BsYjBSXG.mjs +32 -0
- package/dist/{items-Cv6iAzrI.mjs → items-D4rstE12.mjs} +10 -18
- package/dist/{key-BEhqIzIQ.mjs → key-BmWundO3.mjs} +1 -1
- package/dist/{library-fhVn1KDC.mjs → library-CmctxHjv.mjs} +1 -1
- package/dist/library-DXB8sm4r.mjs +81 -0
- package/dist/{library-CRaOhJnj.mjs → library-uzyHWBap.mjs} +5 -5
- package/dist/{list-DOaWCx8S.mjs → list-1DkkU82x.mjs} +17 -25
- package/dist/{list-BLJkJp5a.mjs → list-B7tqNV8B.mjs} +4 -5
- package/dist/{list-WSJLnunb.mjs → list-BRpPbvyS.mjs} +4 -5
- package/dist/{list-BBp9XjYs.mjs → list-BXL8HFr_.mjs} +4 -5
- package/dist/{list-L2U1l6R4.mjs → list-Bjj0z5BS.mjs} +6 -7
- package/dist/{list-DhrapAcy.mjs → list-BmMi_wPD.mjs} +5 -6
- package/dist/list-CC1M_n6Z.mjs +28 -0
- package/dist/list-CQy0z7f9.mjs +28 -0
- package/dist/{list-BwkfWtP2.mjs → list-D_zvX0ms.mjs} +4 -5
- package/dist/{list--2T-GUEF.mjs → list-DeNGm9G4.mjs} +5 -6
- package/dist/list-Dgm6TkqR.mjs +38 -0
- package/dist/list-DoTiQc3D.mjs +36 -0
- package/dist/{list-C8J3n8B8.mjs → list-DrS3ePsv.mjs} +4 -5
- package/dist/list-bN0RC14-.mjs +59 -0
- package/dist/{list-oAAgU5uE.mjs → list-ndIl9XqV.mjs} +11 -18
- package/dist/{list-tutXEQRW.mjs → list-sQcA4g05.mjs} +5 -6
- package/dist/{list-9uvk9dIA.mjs → list-squb_ioH.mjs} +4 -5
- package/dist/{list-DOZNpX4b.mjs → list-xMfCeuZc.mjs} +5 -6
- package/dist/{login-DqWRF3Og.mjs → login-D_1-zE4A.mjs} +15 -13
- package/dist/{logout-ChCz1bkf.mjs → logout-DPi2q1Wu.mjs} +3 -5
- package/dist/{measure-C5dIdFj1.mjs → measure-CdA8Nl3Z.mjs} +6 -6
- package/dist/{notification-DVrLkjFT.mjs → notification-Fcq1fIPw.mjs} +1 -1
- package/dist/{parameter-values-Dy4cBs5y.mjs → parameter-values-C6dj6I4g.mjs} +4 -6
- package/dist/{parse-enum-D0Jfm_Bz.mjs → parse-enum-B1t8S194.mjs} +1 -1
- package/dist/{parse-id-DDCn3VXx.mjs → parse-id-DR8aUSdL.mjs} +1 -1
- package/dist/{parse-ref-Wv21Roup.mjs → parse-ref-BJ_Q0tNW.mjs} +3 -7
- package/dist/{path-IYhuzjQV.mjs → path-B96DI8u2.mjs} +5 -6
- package/dist/{poll-75SvT7Zv.mjs → poll-By46YQ5J.mjs} +2 -2
- package/dist/{preflight-HLUVr2Yf.mjs → preflight-Bl1oitm8.mjs} +3 -4
- package/dist/{process-DBOOrmET.mjs → process-CcQM4qPv.mjs} +1 -1
- package/dist/{publish-CMkCSt8i.mjs → publish-BKJYvxif.mjs} +9 -10
- package/dist/{pulse-a-83M4DV.mjs → pulse-DhG6I9mI.mjs} +1 -1
- package/dist/{query-tWQAV9pb.mjs → query-BKSM-pbi.mjs} +9 -11
- package/dist/{query-Bka77J62.mjs → query-qBHjZQc_.mjs} +7 -10
- package/dist/{query-result-E4Q-Gra6.mjs → query-result-DBDwk8TS.mjs} +1 -1
- package/dist/{remove-collection-BV9wRQZD.mjs → remove-collection-BWFW7Rn6.mjs} +6 -10
- package/dist/{render-DHjCcUXn.mjs → render-DmykmrFB.mjs} +11 -8
- package/dist/{replace-mt47dlRV.mjs → replace-BmAqD3zY.mjs} +5 -6
- package/dist/{rescan-values-6cRjcpTs.mjs → rescan-values-BrCLrihF.mjs} +4 -5
- package/dist/{run-DI_pDxji.mjs → run-CtbzjDKY.mjs} +6 -7
- package/dist/{run-BmGmC-GQ.mjs → run-q5Y44Fxj.mjs} +26 -15
- package/dist/{runs-9Fu0mug5.mjs → runs-JFlbezkQ.mjs} +7 -8
- package/dist/{runtime-CNAZ_FuR.mjs → runtime-BQiGgbgZ.mjs} +851 -361
- package/dist/{schema-tables-CLG0mtQb.mjs → schema-tables-Bzx2ShyE.mjs} +5 -6
- package/dist/{schemas-Cm5NWy59.mjs → schemas-ww5mU2AS.mjs} +5 -6
- package/dist/{search-CljYyf2F.mjs → search-J4RwCof-.mjs} +9 -15
- package/dist/{segment-IRzlQggt.mjs → segment-XXTjU0eG.mjs} +6 -6
- package/dist/{selectors-D4iOP5uB.mjs → selectors-BAAZMi43.mjs} +3 -3
- package/dist/{send-D7DBnQbu.mjs → send-BmpDlw9O.mjs} +4 -5
- package/dist/{set-DKN8fuC6.mjs → set-DUWrSza9.mjs} +5 -6
- package/dist/{set-active-CkE0Eiqh.mjs → set-active-BiUlbNI5.mjs} +5 -6
- package/dist/{setting-CN4l8N-b.mjs → setting-B1KBQN3M.mjs} +4 -4
- package/dist/{setup-BpTptmdO.mjs → setup-CVaNVwOd.mjs} +4 -5
- package/dist/{signal-CMd0EFUa.mjs → signal-GhGmuHfx.mjs} +11 -2
- package/dist/{list-CtZAu4im.mjs → skill-list-DTnDhnL5.mjs} +17 -47
- package/dist/{skills-BSAiLI3Z.mjs → skills-BWrAlj9l.mjs} +3 -3
- package/dist/{skills-hVKSOCUf.mjs → skills-DkDsSH5F.mjs} +102 -14
- package/dist/snippet-CG75L2DS.mjs +19 -0
- package/dist/{snippet-BxgvQ09J.mjs → snippet-CyKAgIZl.mjs} +2 -5
- package/dist/{snippet-DecHB4Dn.mjs → snippet-oJLaYW9V.mjs} +1 -1
- package/dist/{stash-DJs6A6BA.mjs → stash-DMm8YF8V.mjs} +7 -12
- package/dist/{status-N_2EaWb7.mjs → status-BzEQjQ_t.mjs} +15 -23
- package/dist/{status-DtwBDRtc.mjs → status-ClWsQD6v.mjs} +22 -48
- package/dist/{subscription-BnGDp1oy.mjs → subscription-CdFn2hre.mjs} +6 -6
- package/dist/{subscriptions-BfFwV__x.mjs → subscriptions-DBda1pE5.mjs} +7 -8
- package/dist/{summary-CHiq-4mz.mjs → summary-B4GPiuqD.mjs} +4 -5
- package/dist/{sync-schema-DhnM-rpm.mjs → sync-schema-DsIM5g2U.mjs} +5 -6
- package/dist/{sync-task-G1K47Nvn.mjs → sync-task-BACcrs0i.mjs} +1 -1
- package/dist/{table-BQaiCSNS.mjs → table-D4Alrrwh.mjs} +5 -5
- package/dist/timeline-DmM0BuX8.mjs +21 -0
- package/dist/{timeline-event-B7H1y8s8.mjs → timeline-event-DWIh3Tdt.mjs} +6 -6
- package/dist/transform-BcV_XlSX.mjs +28 -0
- package/dist/{transform-CiDOJGBW.mjs → transform-Bk0D0nIs.mjs} +2 -2
- package/dist/{transform-BvOEn41C.mjs → transform-DpuG-ON3.mjs} +25 -7
- package/dist/{transform-job-50GZHhKH.mjs → transform-job-AaMZRxAq.mjs} +1 -1
- package/dist/{transform-job-DRrK28IH.mjs → transform-job-CCguL6LP.mjs} +41 -4
- package/dist/transform-job-CjtwBGoM.mjs +22 -0
- package/dist/{transform-tag-jBVd6wXd.mjs → transform-tag-CcElGp3C.mjs} +4 -9
- package/dist/{transform-tag-Dip51YBa.mjs → transform-tag-DJ3_bksm.mjs} +5 -5
- package/dist/{transform-tag-DiXWRCQG.mjs → transform-tag-Dmb4u3-Q.mjs} +1 -1
- package/dist/{transforms-C-jYgS6z.mjs → transforms-Dg2MfB2a.mjs} +7 -8
- package/dist/tree-BQL0f7YX.mjs +26 -0
- package/dist/{unpublish-BokbnLng.mjs → unpublish-DfSvb_Rs.mjs} +4 -8
- package/dist/{update-D9OTkZhw.mjs → update-B-hRR8gW.mjs} +5 -6
- package/dist/{update-CpLEEbiJ.mjs → update-BCgAyfj_.mjs} +8 -9
- package/dist/{update-BCGE5UYC.mjs → update-Bhmli02m.mjs} +6 -7
- package/dist/{update-rkbpH0lF.mjs → update-BxIyFtrX.mjs} +5 -6
- package/dist/{update-AZSXMJqu.mjs → update-CDo0Orvu.mjs} +9 -15
- package/dist/{update-B9DcRSBQ.mjs → update-CKoBDTL7.mjs} +13 -19
- package/dist/{update-CfQoYVTc.mjs → update-CiYxcf8M.mjs} +7 -8
- package/dist/{update-e7lyQPxq.mjs → update-Cr5zHb0D.mjs} +9 -15
- package/dist/{update-CPEU8ZEu.mjs → update-CtDHMxW8.mjs} +6 -7
- package/dist/{update-BBQInyiJ.mjs → update-D1QdfpKR.mjs} +6 -7
- package/dist/{update-C4PbAYgW.mjs → update-D4qdTlLF.mjs} +5 -6
- package/dist/{update-BRXKLeJH.mjs → update-DBGaJDsj.mjs} +5 -6
- package/dist/{update-BErxnZrj.mjs → update-Izqip6jY.mjs} +6 -7
- package/dist/{update-Bc8s1TL1.mjs → update-NZhIjTCf.mjs} +5 -6
- package/dist/{update-dashcard-St-dGcE3.mjs → update-dashcard-D5b971AO.mjs} +5 -6
- package/dist/{update-CKL2FtoX.mjs → update-sYLQIUgh.mjs} +6 -7
- package/dist/{upgrade-CUoRHfVg.mjs → upgrade-CD1xtsIv.mjs} +6 -9
- package/dist/{upload-CD555ui1.mjs → upload-BUd3MG90.mjs} +2 -2
- package/dist/upload-DzGTlldn.mjs +13 -0
- package/dist/{upload-BPd1Uzxc.mjs → upload-akKFxpVA.mjs} +4 -8
- package/dist/{uuid-CFN8LIkP.mjs → uuid-oVdJ62eA.mjs} +3 -5
- package/dist/{validate-BWchyW0V.mjs → validate-CWd6l6KZ.mjs} +1 -1
- package/dist/{validate-query-Chc43ezW.mjs → validate-query-Boi8-cAP.mjs} +2 -3
- package/dist/{values-BL_U-Zdw.mjs → values-DLwZl-P8.mjs} +4 -5
- package/dist/{verify-DnBaRmkI.mjs → verify-CH9Tw8yv.mjs} +3 -18
- package/dist/{wait-flags-DzytMEG8.mjs → wait-flags-DiQ_kRjZ.mjs} +3 -3
- package/dist/{wait-mPoOZxrw.mjs → wait-rfTdQWdi.mjs} +9 -17
- package/dist/{window-DSb1tqSe.mjs → window-BkvrP0gB.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +24 -16
- package/skill-data/data-workflow/references/building-clean-tables.md +6 -2
- package/skill-data/data-workflow/references/reusable-definitions.md +11 -3
- package/skill-data/document/SKILL.md +4 -1
- package/skill-data/git-sync/SKILL.md +6 -91
- package/skill-data/mbql/SKILL.md +1 -1
- package/skill-data/mbql/references/operators.md +20 -15
- package/skill-data/metadata/SKILL.md +1 -1
- package/skill-data/metadata/references/semantic-types.md +7 -1
- package/skill-data/native-sql/references/template-tags.md +6 -2
- package/skill-data/notification/SKILL.md +7 -1
- package/skill-data/transform/SKILL.md +13 -11
- package/skill-data/visualization/SKILL.md +11 -3
- package/skill-data/visualization/references/settings.md +6 -4
- package/skills/metabase-cli/SKILL.md +1 -1
- package/dist/archive-CqOKKrb2.mjs +0 -38
- package/dist/archive-DCjdICg7.mjs +0 -38
- package/dist/branch-BSeGrtP7.mjs +0 -28
- package/dist/cancel-task-BMQXtjW5.mjs +0 -34
- package/dist/card-RlzLDB2z.mjs +0 -24
- package/dist/collection-Bhe20ckt.mjs +0 -20
- package/dist/create-DwrhcI8r2.mjs +0 -144
- package/dist/create-branch-B3BMpF1g.mjs +0 -49
- package/dist/delete-D_OgiI4v.mjs +0 -86
- package/dist/dependencies-DEx0BsZ3.mjs +0 -41
- package/dist/dirty-dC1-Ud0G.mjs +0 -40
- package/dist/document-DOJbBWLF.mjs +0 -19
- package/dist/export-preflight-B5MvYhm3.mjs +0 -67
- package/dist/get-CNEQK0-9.mjs +0 -81
- package/dist/get-Cfagmy1i.mjs +0 -42
- package/dist/get-DvLuY5Xu.mjs +0 -38
- package/dist/get-DwdMvWXU.mjs +0 -44
- package/dist/get-jV8G90Zy.mjs +0 -42
- package/dist/get-mGEv-kag.mjs +0 -33
- package/dist/git-sync-DjoaNmRM.mjs +0 -29
- package/dist/is-dirty-Cwxq4_gd.mjs +0 -44
- package/dist/library-Cfw6eF35.mjs +0 -19
- package/dist/list-5Iojbr_p.mjs +0 -37
- package/dist/list-BD4onDqO.mjs +0 -37
- package/dist/list-C2yL7-CH.mjs +0 -45
- package/dist/list-CbbKip6U.mjs +0 -32
- package/dist/list-Dg2XeDON.mjs +0 -47
- package/dist/network-error-D6CiOEBw.mjs +0 -431
- package/dist/pin-BuZ_kg-u.mjs +0 -62
- package/dist/predicates-Bkm2IoeX.mjs +0 -170
- package/dist/scope-DsGuWG5w.mjs +0 -11
- package/dist/snippet-LlHz3FdJ.mjs +0 -19
- package/dist/timeline-C2VW0Ph6.mjs +0 -21
- package/dist/transform-DAf0Y02t.mjs +0 -28
- package/dist/transform-job-ntiT5Rrh.mjs +0 -22
- package/dist/tree-DtyJhD54.mjs +0 -36
- package/dist/unpin-DxbXmLtW.mjs +0 -45
- package/dist/upload-Dc3QLhZw.mjs +0 -13
- package/dist/worktree-ChdDlG3Q.mjs +0 -25
- package/dist/worktree-DC0kTxxQ.mjs +0 -20
- package/dist/worktree-xAro1xAB.mjs +0 -24
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as renderVersionTag, i as renderUserRole, n as renderTimestamp, o as renderWorktreePin, r as renderUserName, t as renderAuthMethod } from "./render-DHjCcUXn.mjs";
|
|
1
|
+
import { I as outputFlags, L as profileFlag, a as renderItem } from "./cli.mjs";
|
|
2
|
+
import { C as ProbedUser, E as profileAuthMethod, T as ProfileLastFailure, X as summarizeServer, Y as ServerSummary, _ as readProfileRecord, l as resolveProfileName, q as displayUrl, t as defineMetabaseCommand, w as ProfileAuthMethod } from "./runtime-BQiGgbgZ.mjs";
|
|
3
|
+
import { a as renderUserRole, i as renderUserName, n as renderSkew, o as renderVersionTag, r as renderTimestamp, t as renderAuthMethod } from "./render-DmykmrFB.mjs";
|
|
5
4
|
import { z } from "zod";
|
|
6
5
|
//#region src/commands/auth/status.ts
|
|
7
6
|
const AuthStatus = z.object({
|
|
@@ -10,11 +9,9 @@ const AuthStatus = z.object({
|
|
|
10
9
|
url: z.string().nullable(),
|
|
11
10
|
method: ProfileAuthMethod.nullable(),
|
|
12
11
|
user: ProbedUser.nullable(),
|
|
13
|
-
|
|
14
|
-
tokenFeatures: TokenFeatures.nullable(),
|
|
12
|
+
...ServerSummary.shape,
|
|
15
13
|
lastProbedAt: z.iso.datetime().nullable(),
|
|
16
|
-
lastFailure: ProfileLastFailure.nullable()
|
|
17
|
-
worktree: ProfilePin.nullable()
|
|
14
|
+
lastFailure: ProfileLastFailure.nullable()
|
|
18
15
|
});
|
|
19
16
|
const authStatusView = {
|
|
20
17
|
compactPick: AuthStatus,
|
|
@@ -51,15 +48,15 @@ const authStatusView = {
|
|
|
51
48
|
label: "Version",
|
|
52
49
|
format: (value) => renderVersionTag(value)
|
|
53
50
|
},
|
|
51
|
+
{
|
|
52
|
+
key: "skew",
|
|
53
|
+
label: "Skew",
|
|
54
|
+
format: (value) => renderSkew(value)
|
|
55
|
+
},
|
|
54
56
|
{
|
|
55
57
|
key: "lastProbedAt",
|
|
56
58
|
label: "Last probed",
|
|
57
59
|
format: (value) => renderTimestamp(value)
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: "worktree",
|
|
61
|
-
label: "Worktree pin",
|
|
62
|
-
format: (value) => renderWorktreePin(value)
|
|
63
60
|
}
|
|
64
61
|
]
|
|
65
62
|
};
|
|
@@ -68,8 +65,7 @@ var status_default = defineMetabaseCommand({
|
|
|
68
65
|
name: "status",
|
|
69
66
|
description: "Show authentication status for a profile"
|
|
70
67
|
},
|
|
71
|
-
|
|
72
|
-
worktree: "any",
|
|
68
|
+
requires: null,
|
|
73
69
|
args: {
|
|
74
70
|
...outputFlags,
|
|
75
71
|
...profileFlag
|
|
@@ -86,11 +82,9 @@ var status_default = defineMetabaseCommand({
|
|
|
86
82
|
url: null,
|
|
87
83
|
method: null,
|
|
88
84
|
user: null,
|
|
89
|
-
|
|
90
|
-
tokenFeatures: null,
|
|
85
|
+
...summarizeServer(null),
|
|
91
86
|
lastProbedAt: null,
|
|
92
|
-
lastFailure: null
|
|
93
|
-
worktree: null
|
|
87
|
+
lastFailure: null
|
|
94
88
|
}, authStatusView, ctx);
|
|
95
89
|
return;
|
|
96
90
|
}
|
|
@@ -101,11 +95,9 @@ var status_default = defineMetabaseCommand({
|
|
|
101
95
|
url: displayUrl(record.url),
|
|
102
96
|
method: profileAuthMethod(record),
|
|
103
97
|
user: probe?.user ?? null,
|
|
104
|
-
|
|
105
|
-
tokenFeatures: probe?.tokenFeatures ?? null,
|
|
98
|
+
...summarizeServer(probe),
|
|
106
99
|
lastProbedAt: probe?.at ?? null,
|
|
107
|
-
lastFailure: record.lastFailure
|
|
108
|
-
worktree: record.worktree
|
|
100
|
+
lastFailure: record.lastFailure
|
|
109
101
|
}, authStatusView, ctx);
|
|
110
102
|
}
|
|
111
103
|
});
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as Collection } from "./collection-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as formatSyncTask } from "./sync-task-G1K47Nvn.mjs";
|
|
1
|
+
import { I as outputFlags, L as profileFlag, N as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
|
|
3
|
+
import { r as Collection } from "./collection-WFdBeyqa.mjs";
|
|
4
|
+
import { l as SyncTask } from "./git-sync-BDnxPrqU.mjs";
|
|
5
|
+
import { n as formatSyncTask } from "./sync-task-BACcrs0i.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
//#region src/commands/git-sync/status.ts
|
|
9
8
|
const SyncedCollection = Collection.pick({
|
|
10
9
|
id: true,
|
|
11
10
|
name: true
|
|
12
11
|
}).strip();
|
|
13
|
-
const SyncStatusWorktree = Worktree.pick({
|
|
14
|
-
id: true,
|
|
15
|
-
branch: true
|
|
16
|
-
}).strip();
|
|
17
12
|
const SyncStatus = z.object({
|
|
18
13
|
branch: z.string().nullable(),
|
|
19
|
-
worktree: SyncStatusWorktree.nullable(),
|
|
20
14
|
is_dirty: z.boolean(),
|
|
21
15
|
current_task: SyncTask.nullable(),
|
|
22
16
|
synced_collections: z.array(SyncedCollection)
|
|
@@ -28,10 +22,6 @@ const syncStatusView = {
|
|
|
28
22
|
key: "branch",
|
|
29
23
|
label: "Branch"
|
|
30
24
|
},
|
|
31
|
-
{
|
|
32
|
-
key: "worktree",
|
|
33
|
-
label: "Worktree"
|
|
34
|
-
},
|
|
35
25
|
{
|
|
36
26
|
key: "is_dirty",
|
|
37
27
|
label: "Dirty"
|
|
@@ -51,56 +41,40 @@ var status_default = defineMetabaseCommand({
|
|
|
51
41
|
name: "status",
|
|
52
42
|
description: "Show current git-sync state (branch, dirty, current task)"
|
|
53
43
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
requires: [
|
|
45
|
+
"gitSync.branch",
|
|
46
|
+
"gitSync.isDirty",
|
|
47
|
+
"gitSync.currentTask",
|
|
48
|
+
"gitSync.syncedCollections"
|
|
49
|
+
],
|
|
60
50
|
args: {
|
|
61
51
|
...outputFlags,
|
|
62
52
|
...profileFlag,
|
|
63
|
-
...connectionFlags
|
|
64
|
-
...worktreeFlag
|
|
53
|
+
...connectionFlags
|
|
65
54
|
},
|
|
66
55
|
outputSchema: SyncStatus,
|
|
67
|
-
examples: [
|
|
68
|
-
|
|
69
|
-
"mb git-sync status --json",
|
|
70
|
-
"mb git-sync status --worktree feat/transforms"
|
|
71
|
-
],
|
|
72
|
-
async run({ ctx, getClient, getWorktree }) {
|
|
56
|
+
examples: ["mb git-sync status", "mb git-sync status --json"],
|
|
57
|
+
async run({ ctx, getClient }) {
|
|
73
58
|
const mb = await getClient();
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
const status = {
|
|
81
|
-
branch: scope.branch,
|
|
82
|
-
worktree: scope,
|
|
83
|
-
is_dirty: isDirty,
|
|
84
|
-
current_task: currentTask,
|
|
85
|
-
synced_collections: []
|
|
86
|
-
};
|
|
87
|
-
const scopePart = `Worktree ${scope.id} (${scope.branch})`;
|
|
88
|
-
renderSummary(status, syncStatusView, `${scopePart} — ${dirtyPart}. ${taskPart}`, ctx);
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const [branch, collections] = await Promise.all([mb.gitSync.branch(), mb.gitSync.syncedCollections()]);
|
|
59
|
+
const [branch, isDirty, currentTask, collections] = await Promise.all([
|
|
60
|
+
mb.gitSync.branch(),
|
|
61
|
+
mb.gitSync.isDirty(),
|
|
62
|
+
mb.gitSync.currentTask(),
|
|
63
|
+
mb.gitSync.syncedCollections()
|
|
64
|
+
]);
|
|
92
65
|
const syncedCollections = collections.data.map((collection) => ({
|
|
93
66
|
id: collection.id,
|
|
94
67
|
name: collection.name
|
|
95
68
|
}));
|
|
96
69
|
const summary = {
|
|
97
70
|
branch,
|
|
98
|
-
worktree: null,
|
|
99
71
|
is_dirty: isDirty,
|
|
100
72
|
current_task: currentTask,
|
|
101
73
|
synced_collections: syncedCollections
|
|
102
74
|
};
|
|
103
75
|
const branchPart = branch === null ? "git-sync branch not set" : `Branch ${branch}`;
|
|
76
|
+
const dirtyPart = isDirty ? "Metabase has unsynced local changes" : "in sync with the remote";
|
|
77
|
+
const taskPart = currentTask === null ? "No task running." : formatSyncTask(currentTask);
|
|
104
78
|
const scopePart = formatSyncedCollections(syncedCollections);
|
|
105
79
|
renderSummary(summary, syncStatusView, `${branchPart} — ${dirtyPart}. ${taskPart} ${scopePart}`, ctx);
|
|
106
80
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
|
|
2
2
|
//#region src/commands/subscription/index.ts
|
|
3
3
|
var subscription_default = defineCommandGroup({
|
|
4
4
|
name: "subscription",
|
|
@@ -11,11 +11,11 @@ var subscription_default = defineCommandGroup({
|
|
|
11
11
|
purpose: "the dashboard and dashcards a subscription delivers"
|
|
12
12
|
}],
|
|
13
13
|
subCommands: {
|
|
14
|
-
list: () => import("./list-
|
|
15
|
-
get: () => import("./get-
|
|
16
|
-
create: () => import("./create-
|
|
17
|
-
update: () => import("./update-
|
|
18
|
-
archive: () => import("./archive-
|
|
14
|
+
list: () => import("./list-sQcA4g05.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-CLu4yzMp2.mjs").then((mod) => mod.default),
|
|
16
|
+
create: () => import("./create-CuYGZ4gu2.mjs").then((mod) => mod.default),
|
|
17
|
+
update: () => import("./update-Bhmli02m.mjs").then((mod) => mod.default),
|
|
18
|
+
archive: () => import("./archive-CvU2z5192.mjs").then((mod) => mod.default)
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
4
|
-
import { n as windowList } from "./window-
|
|
5
|
-
import { t as pulseView } from "./pulse-
|
|
6
|
-
import { SubscriptionListEnvelope } from "./list-
|
|
1
|
+
import { I as outputFlags, L as profileFlag, N as connectionFlags, P as listFlags, o as renderList } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
|
|
4
|
+
import { n as windowList } from "./window-BkvrP0gB.mjs";
|
|
5
|
+
import { t as pulseView } from "./pulse-DhG6I9mI.mjs";
|
|
6
|
+
import { SubscriptionListEnvelope } from "./list-sQcA4g05.mjs";
|
|
7
7
|
//#region src/commands/dashboard/subscriptions.ts
|
|
8
8
|
var subscriptions_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -11,8 +11,7 @@ var subscriptions_default = defineMetabaseCommand({
|
|
|
11
11
|
description: "List subscriptions on a dashboard"
|
|
12
12
|
},
|
|
13
13
|
details: "Manage them with `mb subscription create|update|archive`, which take the subscription id printed here.",
|
|
14
|
-
|
|
15
|
-
worktree: "any",
|
|
14
|
+
requires: ["pulse.list"],
|
|
16
15
|
args: {
|
|
17
16
|
...outputFlags,
|
|
18
17
|
...listFlags,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { I as outputFlags, L as profileFlag, N as connectionFlags, a as renderItem } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
|
|
4
4
|
import { a as FieldSummary } from "./field-Cr2DPUG9.mjs";
|
|
5
5
|
import { t as fieldSummaryView } from "./field-BPsNa-TO.mjs";
|
|
6
6
|
//#region src/commands/field/summary.ts
|
|
@@ -9,8 +9,7 @@ var summary_default = defineMetabaseCommand({
|
|
|
9
9
|
name: "summary",
|
|
10
10
|
description: "Get the row count and distinct count for a field"
|
|
11
11
|
},
|
|
12
|
-
|
|
13
|
-
worktree: "any",
|
|
12
|
+
requires: ["field.summary"],
|
|
14
13
|
args: {
|
|
15
14
|
...outputFlags,
|
|
16
15
|
...profileFlag,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
1
|
+
import { I as outputFlags, L as profileFlag, N as connectionFlags, c as renderSummary } from "./cli.mjs";
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-BQiGgbgZ.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DR8aUSdL.mjs";
|
|
4
4
|
import { a as DatabaseSyncResult } from "./database-C8G6ZKG0.mjs";
|
|
5
5
|
import { t as databaseSyncResultView } from "./database-B19qlLKZ.mjs";
|
|
6
|
-
import { i as waitFlags, n as parseWaitFlags } from "./wait-flags-
|
|
6
|
+
import { i as waitFlags, n as parseWaitFlags } from "./wait-flags-DiQ_kRjZ.mjs";
|
|
7
7
|
//#region src/commands/db/sync-schema.ts
|
|
8
8
|
var sync_schema_default = defineMetabaseCommand({
|
|
9
9
|
meta: {
|
|
@@ -11,8 +11,7 @@ var sync_schema_default = defineMetabaseCommand({
|
|
|
11
11
|
description: "Trigger a manual schema sync for a database"
|
|
12
12
|
},
|
|
13
13
|
details: "Queues an async schema sync and returns immediately. Pass --wait to poll the database until its initial_sync_status reports `complete` (a database that has already finished its initial sync returns at once). To wait for a specific newly-materialized transform table to register, prefer `mb transform run <id> --sync`.",
|
|
14
|
-
|
|
15
|
-
worktree: "main-only",
|
|
14
|
+
requires: ["database.syncSchema"],
|
|
16
15
|
args: {
|
|
17
16
|
...outputFlags,
|
|
18
17
|
...profileFlag,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as isSyncTaskFailed, l as SyncTask } from "./git-sync-BDnxPrqU.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/commands/git-sync/sync-task.ts
|
|
4
4
|
const SyncTaskIdle = z.object({ status: z.literal("idle") });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
|
|
2
2
|
//#region src/commands/table/index.ts
|
|
3
3
|
var table_default = defineCommandGroup({
|
|
4
4
|
name: "table",
|
|
@@ -8,10 +8,10 @@ var table_default = defineCommandGroup({
|
|
|
8
8
|
purpose: "table and column metadata, semantic types, visibility"
|
|
9
9
|
}],
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
fields: () => import("./fields-
|
|
14
|
-
update: () => import("./update-
|
|
11
|
+
list: () => import("./list-xMfCeuZc.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-D8lHwu4-.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-Bwgkrvus.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-BxIyFtrX.mjs").then((m) => m.default)
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
|
|
2
|
+
//#region src/commands/timeline/index.ts
|
|
3
|
+
var timeline_default = defineCommandGroup({
|
|
4
|
+
name: "timeline",
|
|
5
|
+
description: "Manage Metabase timelines (event annotations for time-series charts)",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "core",
|
|
8
|
+
purpose: "collection scoping — events render only on questions in the timeline's collection"
|
|
9
|
+
}],
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-DrS3ePsv.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-Eqq13YY-.mjs").then((mod) => mod.default),
|
|
13
|
+
events: () => import("./events-CJEnn8WE.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-DhDREiiy.mjs").then((mod) => mod.default),
|
|
15
|
+
update: () => import("./update-NZhIjTCf.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-CgmidYZV.mjs").then((mod) => mod.default),
|
|
17
|
+
delete: () => import("./delete-Ds-zGh9C.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { timeline_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
|
|
2
2
|
//#region src/commands/timeline-event/index.ts
|
|
3
3
|
var timeline_event_default = defineCommandGroup({
|
|
4
4
|
name: "timeline-event",
|
|
@@ -8,11 +8,11 @@ var timeline_event_default = defineCommandGroup({
|
|
|
8
8
|
purpose: "required event fields and timeline collection scoping"
|
|
9
9
|
}],
|
|
10
10
|
subCommands: {
|
|
11
|
-
get: () => import("./get-
|
|
12
|
-
create: () => import("./create-
|
|
13
|
-
update: () => import("./update-
|
|
14
|
-
archive: () => import("./archive-
|
|
15
|
-
delete: () => import("./delete-
|
|
11
|
+
get: () => import("./get-BaPadzdM.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-CGgPnb7L.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-D4qdTlLF.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-bPdDITuY.mjs").then((mod) => mod.default),
|
|
15
|
+
delete: () => import("./delete-_IHffP-A.mjs").then((mod) => mod.default)
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
|
|
2
|
+
//#region src/commands/transform/index.ts
|
|
3
|
+
var transform_default = defineCommandGroup({
|
|
4
|
+
name: "transform",
|
|
5
|
+
description: "Manage Metabase transforms",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "transform",
|
|
8
|
+
purpose: "body shape, run-with-wait, iterate"
|
|
9
|
+
}, {
|
|
10
|
+
skill: "mbql",
|
|
11
|
+
purpose: "MBQL source.query bodies"
|
|
12
|
+
}],
|
|
13
|
+
subCommands: {
|
|
14
|
+
list: () => import("./list-CC1M_n6Z.mjs").then((mod) => mod.default),
|
|
15
|
+
get: () => import("./get-BLJSCw53.mjs").then((mod) => mod.default),
|
|
16
|
+
dependencies: () => import("./dependencies-CR1dlq-A.mjs").then((mod) => mod.default),
|
|
17
|
+
create: () => import("./create-CLgalJUe.mjs").then((mod) => mod.default),
|
|
18
|
+
update: () => import("./update-CKoBDTL7.mjs").then((mod) => mod.default),
|
|
19
|
+
delete: () => import("./delete-DbZZKcYj.mjs").then((mod) => mod.default),
|
|
20
|
+
"delete-table": () => import("./delete-table-DtXH6IN5.mjs").then((mod) => mod.default),
|
|
21
|
+
run: () => import("./run-CtbzjDKY.mjs").then((mod) => mod.default),
|
|
22
|
+
cancel: () => import("./cancel-CNLnv19e.mjs").then((mod) => mod.default),
|
|
23
|
+
"get-run": () => import("./get-run-Iya0Yw9s.mjs").then((mod) => mod.default),
|
|
24
|
+
runs: () => import("./runs-JFlbezkQ.mjs").then((mod) => mod.default)
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { transform_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as TransformRunCompact, n as TransformCompact, s as TransformTarget } from "./transform-
|
|
1
|
+
import { d as MALFORMED_CELL } from "./cli.mjs";
|
|
2
|
+
import { a as TransformRunCompact, n as TransformCompact, s as TransformTarget } from "./transform-DpuG-ON3.mjs";
|
|
3
3
|
//#region src/output/views/transform.ts
|
|
4
4
|
function formatTarget(value) {
|
|
5
5
|
const parsed = TransformTarget.safeParse(value);
|
|
@@ -119,7 +119,7 @@ const TransformRunResult = z.object({
|
|
|
119
119
|
final: TransformRun.nullable(),
|
|
120
120
|
target_table_id: z.number().int().nullable().optional()
|
|
121
121
|
});
|
|
122
|
-
const
|
|
122
|
+
const TransformBase = z.object({
|
|
123
123
|
id: z.number().int(),
|
|
124
124
|
name: z.string(),
|
|
125
125
|
description: z.string().nullable(),
|
|
@@ -128,25 +128,44 @@ const Transform = z.object({
|
|
|
128
128
|
source_type: TransformSourceType,
|
|
129
129
|
source_database_id: z.number().int().nullable().optional(),
|
|
130
130
|
target_db_id: z.number().int().nullable().optional(),
|
|
131
|
-
target_table_id: z.number().int().nullable().optional(),
|
|
132
|
-
table: z.object({ id: z.number().int() }).loose().nullable().optional(),
|
|
133
131
|
entity_id: z.string().nullable(),
|
|
134
132
|
created_at: z.string(),
|
|
135
133
|
updated_at: z.string(),
|
|
136
134
|
creator_id: z.number().int(),
|
|
137
135
|
collection_id: z.number().int().nullable(),
|
|
138
|
-
worktree_id: z.number().int().positive().nullable().optional(),
|
|
139
136
|
run_trigger: TransformRunTrigger.nullable().optional(),
|
|
140
137
|
last_run: TransformLastRun.nullable().optional(),
|
|
141
138
|
tag_ids: z.array(z.number().int()).optional()
|
|
142
139
|
}).loose();
|
|
140
|
+
const Transform = TransformBase.extend({ target_table_id: z.number().int().nullable() });
|
|
141
|
+
const TransformWireV59Detail = TransformBase.extend({ table: z.object({ id: z.number().int() }).loose().nullable() });
|
|
142
|
+
function fromHydratedTable(wire) {
|
|
143
|
+
return {
|
|
144
|
+
...wire,
|
|
145
|
+
target_table_id: wire.table === null ? null : wire.table.id
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function withoutLink(row) {
|
|
149
|
+
return {
|
|
150
|
+
...row,
|
|
151
|
+
target_table_id: null
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
/** The shape `GET /api/transform/{id}` answers on a server with `features`, read as `Transform`. */
|
|
155
|
+
function transformDetailSchema(features) {
|
|
156
|
+
return features.transformTargetTableId ? Transform : TransformWireV59Detail.transform(fromHydratedTable);
|
|
157
|
+
}
|
|
158
|
+
/** The shape every other transform endpoint answers on a server with `features`, read as `Transform`. */
|
|
159
|
+
function transformRowSchema(features) {
|
|
160
|
+
return features.transformTargetTableId ? Transform : TransformBase.transform(withoutLink);
|
|
161
|
+
}
|
|
143
162
|
const TransformCompact = Transform.pick({
|
|
144
163
|
id: true,
|
|
145
164
|
name: true,
|
|
146
165
|
description: true,
|
|
147
166
|
source_type: true,
|
|
148
167
|
target_db_id: true,
|
|
149
|
-
|
|
168
|
+
target_table_id: true
|
|
150
169
|
}).strip().extend({ target: TransformTargetCompact });
|
|
151
170
|
const TransformCreateInput = z.object({
|
|
152
171
|
name: z.string().min(1),
|
|
@@ -156,7 +175,6 @@ const TransformCreateInput = z.object({
|
|
|
156
175
|
run_trigger: TransformRunTrigger.optional(),
|
|
157
176
|
tag_ids: z.array(z.number().int().positive()).optional(),
|
|
158
177
|
collection_id: z.number().int().positive().nullable().optional(),
|
|
159
|
-
worktree_id: z.number().int().positive().nullable().optional(),
|
|
160
178
|
owner_user_id: z.number().int().positive().nullable().optional(),
|
|
161
179
|
owner_email: z.string().nullable().optional()
|
|
162
180
|
}).loose();
|
|
@@ -172,4 +190,4 @@ const TransformUpdateInput = z.object({
|
|
|
172
190
|
owner_email: z.string().nullable().optional()
|
|
173
191
|
}).loose();
|
|
174
192
|
//#endregion
|
|
175
|
-
export { TransformRunCompact as a, TransformUpdateInput as c, TransformRun as i, isTransformRunFailed as l, TransformCompact as n, TransformRunResult as o, TransformCreateInput as r, TransformTarget as s, Transform as t, isTransformRunTerminal as u };
|
|
193
|
+
export { TransformRunCompact as a, TransformUpdateInput as c, transformDetailSchema as d, transformRowSchema as f, TransformRun as i, isTransformRunFailed as l, TransformCompact as n, TransformRunResult as o, TransformCreateInput as r, TransformTarget as s, Transform as t, isTransformRunTerminal as u };
|
|
@@ -20,13 +20,12 @@ const JobLastRun = z.object({
|
|
|
20
20
|
updated_at: z.string()
|
|
21
21
|
}).loose();
|
|
22
22
|
const JobNextRun = z.object({ start_time: z.string() }).loose();
|
|
23
|
-
const
|
|
23
|
+
const TransformJobBase = z.object({
|
|
24
24
|
id: z.number().int(),
|
|
25
25
|
name: z.string(),
|
|
26
26
|
description: z.string().nullable(),
|
|
27
27
|
schedule: z.string(),
|
|
28
28
|
ui_display_type: CronUiDisplayType,
|
|
29
|
-
active: z.boolean().optional(),
|
|
30
29
|
entity_id: z.string().nullable(),
|
|
31
30
|
created_at: z.string(),
|
|
32
31
|
updated_at: z.string(),
|
|
@@ -35,6 +34,17 @@ const TransformJob = z.object({
|
|
|
35
34
|
last_run: JobLastRun.nullable().optional(),
|
|
36
35
|
next_run: JobNextRun.nullable().optional()
|
|
37
36
|
}).loose();
|
|
37
|
+
const TransformJob = TransformJobBase.extend({ active: z.boolean().nullable() });
|
|
38
|
+
function alwaysActive(wire) {
|
|
39
|
+
return {
|
|
40
|
+
...wire,
|
|
41
|
+
active: null
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/** The shape every transform-job endpoint answers on a server with `features`, read as `TransformJob`. */
|
|
45
|
+
function transformJobSchema(features) {
|
|
46
|
+
return features.transformJobActivation ? TransformJob : TransformJobBase.transform(alwaysActive);
|
|
47
|
+
}
|
|
38
48
|
const TransformJobCompact = TransformJob.pick({
|
|
39
49
|
id: true,
|
|
40
50
|
name: true,
|
|
@@ -61,11 +71,38 @@ const TransformJobUpdateInput = z.object({
|
|
|
61
71
|
}).loose();
|
|
62
72
|
const TransformJobRunResult = z.object({
|
|
63
73
|
message: z.string(),
|
|
64
|
-
|
|
74
|
+
started: z.boolean().nullable(),
|
|
75
|
+
run_id: z.number().int().positive().nullable()
|
|
76
|
+
});
|
|
77
|
+
const TransformJobRunWireV59 = z.object({
|
|
78
|
+
message: z.string(),
|
|
79
|
+
job_run_id: z.string()
|
|
80
|
+
});
|
|
81
|
+
const TransformJobRunWireV64 = z.object({
|
|
82
|
+
message: z.string(),
|
|
83
|
+
job_run_id: z.number().int().positive().nullable()
|
|
65
84
|
});
|
|
85
|
+
function fromStubRunId(wire) {
|
|
86
|
+
return {
|
|
87
|
+
message: wire.message,
|
|
88
|
+
started: null,
|
|
89
|
+
run_id: null
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function fromNumericRunId(wire) {
|
|
93
|
+
return {
|
|
94
|
+
message: wire.message,
|
|
95
|
+
started: wire.job_run_id !== null,
|
|
96
|
+
run_id: wire.job_run_id
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** The shape `POST /api/transform-job/{id}/run` answers on a server with `features`, read as `TransformJobRunResult`. */
|
|
100
|
+
function transformJobRunResultSchema(features) {
|
|
101
|
+
return features.transformJobRunIdIsNumeric ? TransformJobRunWireV64.transform(fromNumericRunId) : TransformJobRunWireV59.transform(fromStubRunId);
|
|
102
|
+
}
|
|
66
103
|
const TransformJobActiveResult = z.object({
|
|
67
104
|
updated: z.number().int(),
|
|
68
105
|
failed: z.number().int()
|
|
69
106
|
});
|
|
70
107
|
//#endregion
|
|
71
|
-
export { TransformJobRunResult as a, TransformJobCreateInput as i, TransformJobActiveResult as n, TransformJobUpdateInput as o, TransformJobCompact as r, TransformJob as t };
|
|
108
|
+
export { TransformJobRunResult as a, transformJobSchema as c, TransformJobCreateInput as i, TransformJobActiveResult as n, TransformJobUpdateInput as o, TransformJobCompact as r, transformJobRunResultSchema as s, TransformJob as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
|
|
2
|
+
//#region src/commands/transform-job/index.ts
|
|
3
|
+
var transform_job_default = defineCommandGroup({
|
|
4
|
+
name: "transform-job",
|
|
5
|
+
description: "Manage Metabase transform jobs",
|
|
6
|
+
skills: [{
|
|
7
|
+
skill: "transform",
|
|
8
|
+
purpose: "tag-driven job schedules"
|
|
9
|
+
}],
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-Bjj0z5BS.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-BOLwso0V.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-CN24yp_W.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-CiYxcf8M.mjs").then((mod) => mod.default),
|
|
15
|
+
delete: () => import("./delete-DSxqbcFE.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-q5Y44Fxj.mjs").then((mod) => mod.default),
|
|
17
|
+
transforms: () => import("./transforms-Dg2MfB2a.mjs").then((mod) => mod.default),
|
|
18
|
+
"set-active": () => import("./set-active-BiUlbNI5.mjs").then((mod) => mod.default)
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { transform_job_default as default };
|
|
@@ -4,19 +4,14 @@ const TransformTag = z.object({
|
|
|
4
4
|
id: z.number().int(),
|
|
5
5
|
name: z.string(),
|
|
6
6
|
entity_id: z.string().nullable(),
|
|
7
|
-
built_in_type: z.string().nullable()
|
|
8
|
-
worktree_id: z.number().int().positive().nullable().optional()
|
|
7
|
+
built_in_type: z.string().nullable()
|
|
9
8
|
}).loose();
|
|
10
9
|
const TransformTagCompact = TransformTag.pick({
|
|
11
10
|
id: true,
|
|
12
11
|
name: true,
|
|
13
|
-
built_in_type: true
|
|
14
|
-
worktree_id: true
|
|
12
|
+
built_in_type: true
|
|
15
13
|
}).strip();
|
|
16
|
-
const TransformTagCreateInput = z.object({
|
|
17
|
-
|
|
18
|
-
worktree_id: z.number().int().positive().nullable().optional()
|
|
19
|
-
}).loose();
|
|
20
|
-
const TransformTagUpdateInput = z.object({ name: z.string().min(1) }).loose();
|
|
14
|
+
const TransformTagCreateInput = z.object({ name: z.string().min(1) }).loose();
|
|
15
|
+
const TransformTagUpdateInput = TransformTagCreateInput;
|
|
21
16
|
//#endregion
|
|
22
17
|
export { TransformTagUpdateInput as i, TransformTagCompact as n, TransformTagCreateInput as r, TransformTag as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineCommandGroup } from "./group-
|
|
1
|
+
import { t as defineCommandGroup } from "./group-CmVCLBDz.mjs";
|
|
2
2
|
//#region src/commands/transform-tag/index.ts
|
|
3
3
|
var transform_tag_default = defineCommandGroup({
|
|
4
4
|
name: "transform-tag",
|
|
@@ -8,10 +8,10 @@ var transform_tag_default = defineCommandGroup({
|
|
|
8
8
|
purpose: "tags that drive job schedules"
|
|
9
9
|
}],
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
create: () => import("./create-
|
|
13
|
-
update: () => import("./update-
|
|
14
|
-
delete: () => import("./delete-
|
|
11
|
+
list: () => import("./list-CQy0z7f9.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Ds-DnSBe.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-CDo0Orvu.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-Ud6iliGM.mjs").then((mod) => mod.default)
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|