@metabase/cli 0.1.18 → 0.2.1
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/README.md +212 -35
- package/dist/add-collection-C8ZTPlIE.mjs +9 -0
- package/dist/{add-collection-CRZAFCZy.mjs → add-collection-CUBn11d4.mjs} +4 -5
- package/dist/append-BgDaYJW9.mjs +42 -0
- package/dist/{archive-3mEhK9_H.mjs → archive-BCPA0HhV.mjs} +6 -8
- package/dist/{archive-De4yVEV8.mjs → archive-BM9HjJHQ.mjs} +5 -7
- package/dist/{archive-CFHYRF65.mjs → archive-BZpXnQSu.mjs} +5 -7
- package/dist/{archive-C3RWdM-2.mjs → archive-BncW2dGw.mjs} +7 -8
- package/dist/archive-Bv59HYsU.mjs +38 -0
- package/dist/{archive-d74nDcp4.mjs → archive-Czzktgho.mjs} +5 -7
- package/dist/{archive-errg-EKw.mjs → archive-DFCu5hVG.mjs} +6 -8
- package/dist/archive-EoYl-lS-.mjs +38 -0
- package/dist/{archive-Z8ZM-ilB.mjs → archive-Oh1iZu2y.mjs} +8 -9
- package/dist/auth-hgAnMUfi.mjs +22 -0
- package/dist/{body-BS2s2zDl.mjs → body-DKcQw7G5.mjs} +3 -3
- package/dist/{branches-mcyT7wI-.mjs → branches-CCmtr3W8.mjs} +5 -7
- package/dist/{cancel-B2l-i2NS.mjs → cancel-72y10-Rg.mjs} +4 -6
- package/dist/{cancel-task-CugcIeIi.mjs → cancel-task-CGwdz91O.mjs} +5 -7
- package/dist/capabilities-DOTcPraV.mjs +684 -0
- package/dist/{card-DEmcRlNO.mjs → card-B8G5jQQT.mjs} +24 -18
- package/dist/card-Ct-q_C4S.mjs +26 -0
- package/dist/{cards-BGkz5BeZ.mjs → cards-CYSyvN7Z.mjs} +7 -8
- package/dist/cli.mjs +177 -29
- package/dist/{collection-DrLpA1SO.mjs → collection-CFoLPrY5.mjs} +1 -1
- package/dist/collection-K82kJWdj.mjs +23 -0
- package/dist/{collection-namespace-BP_LJrAD.mjs → collection-namespace-C7mr_a8H.mjs} +2 -2
- package/dist/{create-CD9Rp8qs.mjs → create-7pbf5Wu0.mjs} +14 -14
- package/dist/{create-DzyMvAVy.mjs → create-BDY38_Kr.mjs} +8 -9
- package/dist/create-Brh8WCa3.mjs +45 -0
- package/dist/{create-DhrftYre.mjs → create-C3DThF9E.mjs} +14 -14
- package/dist/{create-B4HAEEE0.mjs → create-CPEOSxIH.mjs} +8 -9
- package/dist/{create-YfGzANNB.mjs → create-C_WqoOf5.mjs} +8 -9
- package/dist/{create-wpvDXSSY.mjs → create-CaWFrPRU.mjs} +12 -13
- package/dist/{create-Cztp5kES.mjs → create-DFyZCXQD.mjs} +5 -7
- package/dist/{create-BOmmMSjF.mjs → create-E7XhC0gJ.mjs} +11 -12
- package/dist/{create-kWzqvTGR.mjs → create-QYctYGSa.mjs} +11 -12
- package/dist/create-U_XDwsIX.mjs +45 -0
- package/dist/{create-branch-DsoMfx_2.mjs → create-branch-DPE6itiS.mjs} +5 -7
- package/dist/{create-D8KA4zJA.mjs → create-nXlnVzXl.mjs} +9 -10
- package/dist/{create-CkRFKtFG.mjs → create-pTnveKkm.mjs} +8 -9
- package/dist/csv-CR2qhmC6.mjs +58 -0
- package/dist/{current-task-WuKPZpZ6.mjs → current-task-MUHaiHIg.mjs} +5 -7
- package/dist/{dashboard-DOplbKyQ.mjs → dashboard-B-MTpfeS.mjs} +35 -15
- package/dist/dashboard-B1iRSUBI.mjs +35 -0
- package/dist/{database-D9fftP-i.mjs → database-CIbVSfua.mjs} +2 -2
- package/dist/db-eWy7A-H3.mjs +27 -0
- package/dist/{delete-Buai0_e_.mjs → delete-B58Cng0p.mjs} +6 -8
- package/dist/{delete-CmGh0jo1.mjs → delete-BKMOtpjs.mjs} +6 -8
- package/dist/delete-BMa26SzX.mjs +49 -0
- package/dist/delete-CW3dYmuT.mjs +49 -0
- package/dist/{delete-BCitmugk.mjs → delete-doa3R-c5.mjs} +6 -8
- package/dist/{delete-runtime-B0ha5QR4.mjs → delete-runtime-_YOukDRC.mjs} +2 -3
- package/dist/{delete-table-BOkYxdjA.mjs → delete-table-D_tjBZPd.mjs} +6 -8
- package/dist/{dependencies-XZrEvHUA.mjs → dependencies-BR_4um7h.mjs} +5 -7
- package/dist/{dirty-B-5NDbG9.mjs → dirty-BKCg6oVN.mjs} +5 -7
- package/dist/{document-1W7NRaO_.mjs → document-CL4ML5FN.mjs} +20 -4
- package/dist/document-CVxhTnUD.mjs +22 -0
- package/dist/{eid-BCuJRv7a.mjs → eid-DSOk7Khb.mjs} +10 -11
- package/dist/embedding-CKdw8q7p.mjs +11 -0
- package/dist/events-Dxm7me47.mjs +44 -0
- package/dist/{export-Dod2gdyE.mjs → export-Gb_wfZpt.mjs} +7 -9
- package/dist/field-BTCw6voJ.mjs +21 -0
- package/dist/{field-CMY_LWUe.mjs → field-DsXTeqBy.mjs} +6 -4
- package/dist/{fields-B0yttrzR.mjs → fields-hZeq6IF2.mjs} +6 -8
- package/dist/{get-9p0Gt1c7.mjs → get--rGDVyje.mjs} +5 -7
- package/dist/get-43Smv3RI.mjs +67 -0
- package/dist/{get-k6M5nGMC.mjs → get-7Np_G2je.mjs} +5 -7
- package/dist/{get-BkGh9BPd.mjs → get-BSdOE5J4.mjs} +5 -7
- package/dist/{get-B0OsW6jk.mjs → get-CHAH_F37.mjs} +5 -7
- package/dist/{get-DBY5esTW.mjs → get-CH_JmPc-.mjs} +5 -7
- package/dist/{get-CbpHt4Hs.mjs → get-CP3lrIYi.mjs} +5 -7
- package/dist/{get-CfeYa0v5.mjs → get-CgZ5qjQx.mjs} +5 -7
- package/dist/get-CuPCE_AG.mjs +35 -0
- package/dist/{get-DJ8huA8y.mjs → get-DB6Y9igl.mjs} +7 -8
- package/dist/{get-D7QMqPOK.mjs → get-DRK5-UdU.mjs} +5 -7
- package/dist/{get-D-pNrQGA.mjs → get-DT2MOZ8L.mjs} +5 -7
- package/dist/{get-BpZ81hX8.mjs → get-DWzMR8sn.mjs} +5 -7
- package/dist/{get-Dz7fcqoG.mjs → get-DZatHVdn.mjs} +8 -9
- package/dist/{get-u5Uq9vms.mjs → get-DtvzjfjG.mjs} +4 -6
- package/dist/get-T85qZgnv.mjs +35 -0
- package/dist/{get-DISgP66L.mjs → get-nZW0W7Ui.mjs} +16 -9
- package/dist/{get-run-DQJVpDw1.mjs → get-run-Cwia6e0d.mjs} +5 -7
- package/dist/git-sync-Cjrx2meo.mjs +31 -0
- package/dist/{group-BNE_RiH5.mjs → group-CILtQqCL.mjs} +2 -1
- package/dist/{has-remote-changes-DvQBXudi.mjs → has-remote-changes-CIIib71u.mjs} +5 -7
- package/dist/{import-PGS8-DwE.mjs → import-D9ID9Mz4.mjs} +7 -9
- package/dist/{input-7Sj85_K7.mjs → input-DzbvxKYU.mjs} +6 -3
- package/dist/{is-dirty-DyEVFQVJ.mjs → is-dirty-CHbUJ-bh.mjs} +3 -4
- package/dist/is-dirty-DY5Zhsbk.mjs +8 -0
- package/dist/{items-CkFEy2Du.mjs → items-DN63mjpF.mjs} +7 -9
- package/dist/{key-bltP32Pm.mjs → key-BnGRTX8U.mjs} +1 -1
- package/dist/{library-1AAVbk-K.mjs → library-DF2qx50w.mjs} +6 -6
- package/dist/{list-Bb8YRON_.mjs → list-B1sdMz6m.mjs} +4 -6
- package/dist/{list-BBxRjuMn.mjs → list-B3HoSfYj.mjs} +4 -6
- package/dist/{list-Sgo3RfDY.mjs → list-BSxMFDMR.mjs} +4 -6
- package/dist/list-BeqcZVSn.mjs +39 -0
- package/dist/{list-CK0p7vvK.mjs → list-C0344yqi.mjs} +5 -7
- package/dist/{list-82NkvRpI.mjs → list-C5Ir-96z.mjs} +7 -8
- package/dist/{list-CJx5q-Yn.mjs → list-C6YpaUpC.mjs} +6 -8
- package/dist/{list-CKzpoTgP.mjs → list-C7TqbWG1.mjs} +6 -8
- package/dist/{list-BWAYDSbQ.mjs → list-CQN2BpaW.mjs} +4 -6
- package/dist/{list-BY4S32Lg.mjs → list-CY-jpBNE.mjs} +4 -6
- package/dist/{list-BCYTTCFD.mjs → list-CkTsOOA7.mjs} +4 -6
- package/dist/{list-BVzu2RIZ.mjs → list-CvS68tLn.mjs} +4 -6
- package/dist/{list-CjF12k1G.mjs → list-De82cXvn.mjs} +5 -7
- package/dist/{list-B9wXg3qi.mjs → list-KDHLmoUx.mjs} +4 -6
- package/dist/{list-pQ22nXhQ.mjs → list-MqqHcBvD.mjs} +4 -6
- package/dist/{list-D-rgDFa5.mjs → list-n2PY3OIx.mjs} +8 -9
- package/dist/{login-C6ZAnGHz.mjs → login-jy9rbYev.mjs} +8 -10
- package/dist/{logout-CWjyY3Y8.mjs → logout-CRbk1SuY.mjs} +4 -6
- package/dist/measure-CPqisgyf.mjs +25 -0
- package/dist/{measure-DoJvtCaA.mjs → measure-S9WszHre.mjs} +5 -4
- package/dist/{parameter-values-DmDOuE-j.mjs → parameter-values-CcgcG3S5.mjs} +5 -7
- package/dist/{parse-enum-BL9i_brN.mjs → parse-enum-C_2lGr3g.mjs} +1 -1
- package/dist/{parse-id-DlXnOcmP.mjs → parse-id-CD54Chc5.mjs} +1 -1
- package/dist/{parse-ref-CB_KvF9h.mjs → parse-ref-BLgKEEF-.mjs} +1 -1
- package/dist/{path-D8IJ4YrW.mjs → path-CPMr1RJO.mjs} +4 -6
- package/dist/{poll-hgnrHBoh.mjs → poll-DVF9EnEb.mjs} +2 -2
- package/dist/{poll-task-NQNLT_aA.mjs → poll-task-CpHGQOd5.mjs} +2 -2
- package/dist/{preflight-DvaPQHHf.mjs → preflight-xhwEOHAt.mjs} +4 -5
- package/dist/{process-j8UHMHc2.mjs → process-HDPKLS_z.mjs} +1 -1
- package/dist/{prompt-C85xd9HR.mjs → prompt-BgkWNgIR.mjs} +1 -1
- package/dist/{publish-BntmFR6g.mjs → publish-xVPABwE8.mjs} +7 -9
- package/dist/{query-DSKQZu91.mjs → query-B3HDIsJ-.mjs} +15 -15
- package/dist/{query-BQfgKV68.mjs → query-Cxh9hmrP.mjs} +9 -10
- package/dist/{query-result-D6mfoVfQ.mjs → query-result-Drvjv7DD.mjs} +1 -1
- package/dist/{remove-collection-BguaI3-6.mjs → remove-collection-_a4uIlLB.mjs} +7 -9
- package/dist/replace-BwvKDNur.mjs +42 -0
- package/dist/requests-qyh002pL.mjs +96 -0
- package/dist/{rescan-values-DjD6IW3J.mjs → rescan-values-Bd0Joerq.mjs} +7 -9
- package/dist/{resolve-Dj2MTBkn.mjs → resolve-Ct084wx3.mjs} +1 -1
- package/dist/{run-RQfQj7Rk.mjs → run-BfpKUjqL.mjs} +7 -9
- package/dist/{run-Bp1yxkBN.mjs → run-yrpSF6VL.mjs} +4 -6
- package/dist/{runs-CSsatfWb.mjs → runs-D_08Ma08.mjs} +6 -8
- package/dist/{runtime-oxjmrYoP.mjs → runtime-Ab96yYlM.mjs} +3 -4
- package/dist/{schema-tables-5I5pCxHl.mjs → schema-tables-ChBYz4mO.mjs} +6 -8
- package/dist/{schemas-CfzFCfBt.mjs → schemas-C2crnVML.mjs} +4 -6
- package/dist/{search-Vo-BqliA.mjs → search-DnGEh6sZ.mjs} +4 -6
- package/dist/{segment-TXktTCfU.mjs → segment-BPb1H6DW.mjs} +6 -5
- package/dist/segment-DyVTZSIM.mjs +25 -0
- package/dist/{selectors-DBnJsKlW.mjs → selectors-Ll_TRxl5.mjs} +3 -3
- package/dist/{set-active-C0mUZlNN.mjs → set-active-qqDoBh_Z.mjs} +4 -6
- package/dist/{set-1Vh0AF-T.mjs → set-tHsHXRGV.mjs} +10 -10
- package/dist/setting-B9xSyMf6.mjs +20 -0
- package/dist/{setup-CzYFvFK5.mjs → setup-CXGcyTuv.mjs} +11 -12
- package/dist/{skills-B6gfH0iR.mjs → skills-BKuiGkc1.mjs} +1 -1
- package/dist/{skills-CR2xyV33.mjs → skills-rnvVgau4.mjs} +3 -3
- package/dist/snippet-C4h-GMUf.mjs +22 -0
- package/dist/{snippet-CtA2Pkoa.mjs → snippet-DWiXNy4T.mjs} +7 -4
- package/dist/{stash-CQHXwBu_.mjs → stash-DxmpBS7x.mjs} +7 -9
- package/dist/{status-C_7aqTvB.mjs → status-B5ar0uXc.mjs} +4 -6
- package/dist/{status-DXQkM18v.mjs → status-D5CR1SrS.mjs} +6 -8
- package/dist/{summary-1aNpQc8j.mjs → summary-BEEJl2O1.mjs} +5 -7
- package/dist/{sync-schema-BqLp5uTS.mjs → sync-schema-B5HDpmrp.mjs} +9 -11
- package/dist/{table-DE3i82T_.mjs → table-C3RIKiYM.mjs} +16 -4
- package/dist/table-DHmaW3Ec.mjs +21 -0
- package/dist/timeline-B0R6-dm8.mjs +24 -0
- package/dist/timeline-BCTRThc-.mjs +157 -0
- package/dist/timeline-event-BVDTt-pM.mjs +22 -0
- package/dist/{transform-DEF38FWe.mjs → transform-BVHYzWpK.mjs} +31 -5
- package/dist/transform-Cq2_muWO.mjs +31 -0
- package/dist/transform-job-BpebgMnq.mjs +25 -0
- package/dist/transform-tag-B1xnFa9w.mjs +21 -0
- package/dist/{transforms-BelyllUL.mjs → transforms-CLkv3e81.mjs} +5 -7
- package/dist/{tree-YvmwGql7.mjs → tree-CB2IURsX.mjs} +4 -6
- package/dist/{unpublish-CHjGLMu9.mjs → unpublish-BkZldbkP.mjs} +5 -7
- package/dist/update-8bTrglfc.mjs +52 -0
- package/dist/{update-BnHYSu96.mjs → update-B1dkPypu.mjs} +13 -14
- package/dist/{update-BACl_bJS.mjs → update-B4atxTx0.mjs} +9 -10
- package/dist/{update-C9fndCqb.mjs → update-BHC3pwzR.mjs} +9 -10
- package/dist/{update-BWlN3QDo.mjs → update-BacyVaLu.mjs} +9 -10
- package/dist/{update-BKhekuqr.mjs → update-BghbOcv6.mjs} +15 -15
- package/dist/{update-Zz01Woxj.mjs → update-CGWTX1Z0.mjs} +9 -10
- package/dist/{update-D7vc8GBF.mjs → update-CO9uCJxV.mjs} +12 -13
- package/dist/{update-txUfAJxy.mjs → update-Cyxjg496.mjs} +9 -10
- package/dist/{update-CrRz47aj.mjs → update-D7Ia9Qrt.mjs} +15 -15
- package/dist/{update-BGMJTpA6.mjs → update-D80GWpWl.mjs} +12 -13
- package/dist/update-DajyWtBN.mjs +52 -0
- package/dist/{update-dashcard-Dvth-yLC.mjs → update-dashcard-DLq7ihNO.mjs} +11 -11
- package/dist/{update-K-jjQ0Aw.mjs → update-iY9WZqy0.mjs} +10 -11
- package/dist/{upgrade-DsXlfPef.mjs → upgrade-CXoNQ4FH.mjs} +5 -7
- package/dist/upload-D3eiApa0.mjs +16 -0
- package/dist/{uuid-ByJmWV7b.mjs → uuid-D6dao_q4.mjs} +3 -5
- package/dist/{validate-BqNW4Sk1.mjs → validate-Cqa14t7o.mjs} +1 -2
- package/dist/{validate-query-CcZVKYPV.mjs → validate-query-D1N30wJ7.mjs} +2 -3
- package/dist/{values-CIjJI4sz.mjs → values-DIBAgSyz.mjs} +5 -7
- package/dist/{verify-Jsuc2dat.mjs → verify-DvhZWmS2.mjs} +2 -2
- package/dist/{wait-5ltTFvSa.mjs → wait-CW1OawkI.mjs} +6 -8
- package/dist/{wait-flags-D6kd_G7c.mjs → wait-flags-DvNU8ahZ.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +30 -22
- package/skill-data/dashboard/SKILL.md +26 -3
- package/skill-data/data-workflow/SKILL.md +17 -15
- package/skill-data/visualization/SKILL.md +1 -0
- package/dist/add-collection-DbalcC3_.mjs +0 -11
- package/dist/auth--PWX0oj5.mjs +0 -22
- package/dist/capabilities-N0jo5U7S.mjs +0 -239
- package/dist/card-D07WYCQY.mjs +0 -26
- package/dist/collection-Dss2qSEF.mjs +0 -23
- package/dist/dashboard-Crh4v6Fq.mjs +0 -35
- package/dist/db-BCAURQei.mjs +0 -28
- package/dist/document-upxL2nKH.mjs +0 -22
- package/dist/error-BaBm-UrT.mjs +0 -227
- package/dist/field-CloFa1oe.mjs +0 -21
- package/dist/get-B8tugTku.mjs +0 -50
- package/dist/git-sync-C9m-OHac.mjs +0 -31
- package/dist/is-dirty-DpyKeGAJ.mjs +0 -10
- package/dist/manifest-BVf8P4bl.mjs +0 -126
- package/dist/measure-Cbly1r0E.mjs +0 -25
- package/dist/metadata-CW5Lfw5d.mjs +0 -39
- package/dist/metadata-aQAqseCm.mjs +0 -38
- package/dist/notice-DyVl5aYB.mjs +0 -206
- package/dist/segment-BuN_IoM8.mjs +0 -25
- package/dist/setting-BbdKR-lO.mjs +0 -20
- package/dist/snippet-Bzo2U9Fv.mjs +0 -22
- package/dist/table-BwGOz97O.mjs +0 -22
- package/dist/transform-B65ZD9-e.mjs +0 -31
- package/dist/transform-job-BWVKXSV6.mjs +0 -25
- package/dist/transform-tag-C4qvmicL.mjs +0 -21
- /package/dist/{body-flags-DWTTxJpP.mjs → body-flags-CgHgJBRC.mjs} +0 -0
- /package/dist/{command-augment-DdZIfx1V.mjs → command-augment-D9pI9Vbh.mjs} +0 -0
- /package/dist/{paginate-FVZUxL4J.mjs → paginate-CMqbqhMC.mjs} +0 -0
- /package/dist/{parameter-CiJ4CwWE.mjs → parameter-BZ6y-Gfs.mjs} +0 -0
- /package/dist/{render-BTKnWL0d.mjs → render-CkuFkWlQ.mjs} +0 -0
- /package/dist/{revision-message-flag-CHrJgFFx.mjs → revision-message-flag-CHzX0cqV.mjs} +0 -0
- /package/dist/{setting-m46MUtW5.mjs → setting-Cko6bE_w.mjs} +0 -0
- /package/dist/{transform-job-CtixL4An.mjs → transform-job-CjsAXMej.mjs} +0 -0
- /package/dist/{transform-tag-rsIrckCM.mjs → transform-tag--IBQ-8Ij.mjs} +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import { parseEnumFlag } from "./parse-enum-BL9i_brN.mjs";
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import "./embedding-CKdw8q7p.mjs";
|
|
5
|
+
import "./field-DsXTeqBy.mjs";
|
|
6
|
+
import "./parameter-BZ6y-Gfs.mjs";
|
|
7
|
+
import { Card, CardCompact, cardView } from "./card-B8G5jQQT.mjs";
|
|
8
|
+
import { parseEnumFlag } from "./parse-enum-C_2lGr3g.mjs";
|
|
10
9
|
import { z } from "zod";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/card/list.ts
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { ConfigError, errorMessage, warn } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { openBrowser } from "./process-j8UHMHc2.mjs";
|
|
10
|
-
import { readInput } from "./input-7Sj85_K7.mjs";
|
|
1
|
+
import { ConfigError, connectionFlags, errorMessage, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { DEFAULT_PROFILE, OAUTH_SCOPE, ParsedVersionSchema, ProbedUser, consumeKeychainResidualWarning, consumeKeyringDowngradeWarning, defineMetabaseCommand, discoverMetadata, exchangeCode, explicitProfileName, keyringFallbackWarning, normalizeUrl, oauthCredentialFromTokens, readEnvCredentials, registerClient, revokeOAuthCredential, tryDiscoverMetadata, writeOAuthProfile, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { verifyAndProbe } from "./verify-DvhZWmS2.mjs";
|
|
5
|
+
import { EMPTY_CELL, renderUserName, renderUserRole, renderVersionTag } from "./render-CkuFkWlQ.mjs";
|
|
6
|
+
import { promptPassword, promptSelect, promptText } from "./prompt-BgkWNgIR.mjs";
|
|
7
|
+
import { openBrowser } from "./process-HDPKLS_z.mjs";
|
|
8
|
+
import { readInput } from "./input-DzbvxKYU.mjs";
|
|
11
9
|
import { z } from "zod";
|
|
12
10
|
import { createServer } from "node:http";
|
|
13
11
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { errorMessage, warn } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
-
import { promptConfirm } from "./prompt-C85xd9HR.mjs";
|
|
1
|
+
import { errorMessage, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { clearProfile, consumeKeychainResidualWarning, defineMetabaseCommand, readProfileCredential, resolveProfileName, revokeOAuthCredential } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { promptConfirm } from "./prompt-BgkWNgIR.mjs";
|
|
7
5
|
import { z } from "zod";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/auth/logout.ts
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/measure/index.ts
|
|
5
|
+
var measure_default = defineCommandGroup({
|
|
6
|
+
name: "measure",
|
|
7
|
+
description: "Manage Metabase measures",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "mbql",
|
|
10
|
+
purpose: "the definition aggregation"
|
|
11
|
+
}, {
|
|
12
|
+
skill: "data-workflow",
|
|
13
|
+
purpose: "define reusable measures"
|
|
14
|
+
}],
|
|
15
|
+
subCommands: {
|
|
16
|
+
list: () => import("./list-MqqHcBvD.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get--rGDVyje.mjs").then((mod) => mod.default),
|
|
18
|
+
create: () => import("./create-E7XhC0gJ.mjs").then((mod) => mod.default),
|
|
19
|
+
update: () => import("./update-D80GWpWl.mjs").then((mod) => mod.default),
|
|
20
|
+
archive: () => import("./archive-DFCu5hVG.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { measure_default as default };
|
|
@@ -49,17 +49,18 @@ const measureView = {
|
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
};
|
|
52
|
+
const MeasureDefinition = z.record(z.string(), z.unknown()).describe("MBQL query holding exactly one aggregation — full MBQL 5 schema: mb query --print-schema");
|
|
52
53
|
const MeasureCreateInput = z.object({
|
|
53
54
|
name: z.string().min(1),
|
|
54
55
|
table_id: z.number().int().positive(),
|
|
55
|
-
definition:
|
|
56
|
+
definition: MeasureDefinition,
|
|
56
57
|
description: z.string().nullable().optional()
|
|
57
58
|
}).loose();
|
|
58
59
|
const MeasureUpdateInput = z.object({
|
|
59
|
-
name: z.string().min(1).optional(),
|
|
60
|
-
definition:
|
|
60
|
+
name: z.string().min(1).nullable().optional(),
|
|
61
|
+
definition: MeasureDefinition.nullable().optional(),
|
|
61
62
|
revision_message: z.string().min(1),
|
|
62
|
-
archived: z.boolean().optional(),
|
|
63
|
+
archived: z.boolean().nullable().optional(),
|
|
63
64
|
description: z.string().nullable().optional()
|
|
64
65
|
}).loose();
|
|
65
66
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ParameterValues, parameterValuesView } from "./parameter-CiJ4CwWE.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-DlXnOcmP.mjs";
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { ParameterValues, parameterValuesView } from "./parameter-BZ6y-Gfs.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/dashboard/parameter-values.ts
|
|
10
8
|
var parameter_values_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
-
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-B6gfH0iR.mjs";
|
|
1
|
+
import { listEnvelopeSchema, outputFlags, renderList, wrapList } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-BKuiGkc1.mjs";
|
|
7
5
|
import { z } from "zod";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/skills/path.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TimeoutError } from "./
|
|
2
|
-
import { combineAborts, throwIfAborted } from "./runtime-
|
|
1
|
+
import { TimeoutError } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import { combineAborts, throwIfAborted } from "./runtime-Ab96yYlM.mjs";
|
|
3
3
|
import { setTimeout } from "node:timers/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/poll.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseJsonOrPlain } from "./runtime-
|
|
2
|
-
import { pollUntil } from "./poll-
|
|
1
|
+
import { parseJsonOrPlain } from "./runtime-Ab96yYlM.mjs";
|
|
2
|
+
import { pollUntil } from "./poll-DVF9EnEb.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/git-sync.ts
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { ChainedRequestError, ConfigError, MetabaseError } from "./
|
|
2
|
-
import { HttpError } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { Card } from "./card-DEmcRlNO.mjs";
|
|
1
|
+
import { ChainedRequestError, ConfigError, MetabaseError, writeJson } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import { HttpError } from "./runtime-Ab96yYlM.mjs";
|
|
3
|
+
import { Card } from "./card-B8G5jQQT.mjs";
|
|
5
4
|
import { z } from "zod";
|
|
6
5
|
|
|
7
6
|
//#region src/commands/dashboard/preflight.ts
|
|
8
7
|
const PreflightDashcard = z.looseObject({ card_id: z.number().int().nullable().optional() });
|
|
9
8
|
function collectDashcardCardReferences(dashcards) {
|
|
10
|
-
if (dashcards === void 0) return [];
|
|
9
|
+
if (dashcards === void 0 || dashcards === null) return [];
|
|
11
10
|
const refs = [];
|
|
12
11
|
dashcards.forEach((dashcard, index) => {
|
|
13
12
|
const parsed = PreflightDashcard.safeParse(dashcard);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { ensureLibraryDataCollectionId } from "./resolve-Dj2MTBkn.mjs";
|
|
9
|
-
import { parseTableSelectors, tableSelectorFlags } from "./selectors-DBnJsKlW.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import "./parse-id-CD54Chc5.mjs";
|
|
5
|
+
import { Collection, CollectionCompact } from "./collection-CFoLPrY5.mjs";
|
|
6
|
+
import { ensureLibraryDataCollectionId } from "./resolve-Ct084wx3.mjs";
|
|
7
|
+
import { parseTableSelectors, tableSelectorFlags } from "./selectors-Ll_TRxl5.mjs";
|
|
10
8
|
import { z } from "zod";
|
|
11
9
|
|
|
12
10
|
//#region src/commands/library/publish.ts
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { formatQueryResult } from "./query-result-D6mfoVfQ.mjs";
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary, writeJson } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import "./input-DzbvxKYU.mjs";
|
|
5
|
+
import "./embedding-CKdw8q7p.mjs";
|
|
6
|
+
import "./field-DsXTeqBy.mjs";
|
|
7
|
+
import "./parameter-BZ6y-Gfs.mjs";
|
|
8
|
+
import { CardQueryResult, cardQueryView } from "./card-B8G5jQQT.mjs";
|
|
9
|
+
import { readBody } from "./body-DKcQw7G5.mjs";
|
|
10
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
11
|
+
import { assertNotLegacyEnvelopeWrappingMbql5, getQuerySchemaBundle, isMbql5Query, validateQuery } from "./validate-Cqa14t7o.mjs";
|
|
12
|
+
import { skipValidateFlag } from "./validate-query-D1N30wJ7.mjs";
|
|
13
|
+
import { formatQueryResult } from "./query-result-Drvjv7DD.mjs";
|
|
15
14
|
import { z } from "zod";
|
|
16
15
|
|
|
17
16
|
//#region src/commands/query.ts
|
|
18
|
-
const QueryBody = z.unknown();
|
|
17
|
+
const QueryBody = z.unknown().describe("MBQL 5, legacy MBQL, or native query body — full MBQL 5 schema: mb query --print-schema");
|
|
19
18
|
const QUERY_ENDPOINT = "/api/dataset";
|
|
20
19
|
var query_default = defineMetabaseCommand({
|
|
21
20
|
meta: {
|
|
@@ -43,6 +42,7 @@ var query_default = defineMetabaseCommand({
|
|
|
43
42
|
},
|
|
44
43
|
...skipValidateFlag
|
|
45
44
|
},
|
|
45
|
+
inputSchema: QueryBody,
|
|
46
46
|
outputSchema: CardQueryResult,
|
|
47
47
|
examples: [
|
|
48
48
|
"mb query --print-schema",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { formatQueryResult } from "./query-result-D6mfoVfQ.mjs";
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJson } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import "./embedding-CKdw8q7p.mjs";
|
|
5
|
+
import "./field-DsXTeqBy.mjs";
|
|
6
|
+
import "./parameter-BZ6y-Gfs.mjs";
|
|
7
|
+
import { CardQueryResult, cardQueryView } from "./card-B8G5jQQT.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
9
|
+
import { formatQueryResult } from "./query-result-Drvjv7DD.mjs";
|
|
11
10
|
import { z } from "zod";
|
|
12
11
|
import { Writable } from "node:stream";
|
|
13
12
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import "./poll-task-NQNLT_aA.mjs";
|
|
9
|
-
import { SyncSettingsUpdateResult, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-CRZAFCZy.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
5
|
+
import "./poll-DVF9EnEb.mjs";
|
|
6
|
+
import "./poll-task-CpHGQOd5.mjs";
|
|
7
|
+
import { SyncSettingsUpdateResult, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-CUBn11d4.mjs";
|
|
10
8
|
|
|
11
9
|
//#region src/commands/git-sync/remove-collection.ts
|
|
12
10
|
var remove_collection_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import "./input-DzbvxKYU.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
6
|
+
import { UploadUpdateResult, readCsvFile, requireUploadFilePath, updateTableFromCsv, uploadUpdateResultView } from "./requests-qyh002pL.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/commands/upload/replace.ts
|
|
9
|
+
var replace_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "replace",
|
|
12
|
+
description: "Replace an existing uploaded table's rows with a CSV file"
|
|
13
|
+
},
|
|
14
|
+
details: "Replaces the contents of the table with the given id with the rows of the CSV. The table must have been created by a CSV upload and the CSV columns must match.",
|
|
15
|
+
capabilities: { minVersion: 58 },
|
|
16
|
+
args: {
|
|
17
|
+
...outputFlags,
|
|
18
|
+
...profileFlag,
|
|
19
|
+
...connectionFlags,
|
|
20
|
+
file: {
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "Path to the CSV/TSV file to upload"
|
|
23
|
+
},
|
|
24
|
+
id: {
|
|
25
|
+
type: "positional",
|
|
26
|
+
description: "Target table id",
|
|
27
|
+
required: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
outputSchema: UploadUpdateResult,
|
|
31
|
+
examples: ["mb upload replace 42 --file rows.csv", "mb upload replace 42 --file rows.csv --json"],
|
|
32
|
+
async run({ args, ctx, getClient }) {
|
|
33
|
+
const id = parseId(args.id);
|
|
34
|
+
const file = await readCsvFile(requireUploadFilePath(args.file));
|
|
35
|
+
const client = await getClient();
|
|
36
|
+
const result = await updateTableFromCsv(client, id, "replace", file);
|
|
37
|
+
renderSummary(result, uploadUpdateResultView, `Replaced table ${id} with "${file.filename}".`, ctx);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { replace_default as default };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ConfigError, isNotFoundError } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import { fileNotFoundError } from "./input-DzbvxKYU.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { basename } from "node:path";
|
|
5
|
+
import { readFile } from "node:fs/promises";
|
|
6
|
+
|
|
7
|
+
//#region src/runtime/upload.ts
|
|
8
|
+
const CSV_CONTENT_TYPE = "text/csv";
|
|
9
|
+
function requireUploadFilePath(file) {
|
|
10
|
+
if (typeof file !== "string" || file.trim() === "") throw new ConfigError("provide the CSV file to upload with --file <path>");
|
|
11
|
+
return file;
|
|
12
|
+
}
|
|
13
|
+
async function readCsvFile(path) {
|
|
14
|
+
try {
|
|
15
|
+
const bytes = await readFile(path);
|
|
16
|
+
return {
|
|
17
|
+
filename: basename(path),
|
|
18
|
+
bytes
|
|
19
|
+
};
|
|
20
|
+
} catch (error) {
|
|
21
|
+
if (isNotFoundError(error)) throw fileNotFoundError(path);
|
|
22
|
+
throw error;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function buildCsvFormData(file) {
|
|
26
|
+
const form = new FormData();
|
|
27
|
+
form.append("file", new Blob([file.bytes], { type: CSV_CONTENT_TYPE }), file.filename);
|
|
28
|
+
return form;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/commands/upload/results.ts
|
|
33
|
+
const UploadResult = z.object({
|
|
34
|
+
model_id: z.number().int(),
|
|
35
|
+
table_id: z.number().int()
|
|
36
|
+
});
|
|
37
|
+
const uploadResultView = {
|
|
38
|
+
compactPick: UploadResult,
|
|
39
|
+
tableColumns: [{
|
|
40
|
+
key: "model_id",
|
|
41
|
+
label: "Model ID"
|
|
42
|
+
}, {
|
|
43
|
+
key: "table_id",
|
|
44
|
+
label: "Table ID"
|
|
45
|
+
}]
|
|
46
|
+
};
|
|
47
|
+
const UploadUpdateAction = z.enum(["append", "replace"]);
|
|
48
|
+
const UploadUpdateResult = z.object({
|
|
49
|
+
table_id: z.number().int(),
|
|
50
|
+
action: UploadUpdateAction
|
|
51
|
+
});
|
|
52
|
+
const uploadUpdateResultView = {
|
|
53
|
+
compactPick: UploadUpdateResult,
|
|
54
|
+
tableColumns: [{
|
|
55
|
+
key: "table_id",
|
|
56
|
+
label: "Table ID"
|
|
57
|
+
}, {
|
|
58
|
+
key: "action",
|
|
59
|
+
label: "Action"
|
|
60
|
+
}]
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/commands/upload/requests.ts
|
|
65
|
+
const UPLOAD_TABLE_ID_HEADER = "metabase-table-id";
|
|
66
|
+
const UPLOAD_UPDATE_PATHS = {
|
|
67
|
+
append: "append-csv",
|
|
68
|
+
replace: "replace-csv"
|
|
69
|
+
};
|
|
70
|
+
async function updateTableFromCsv(client, tableId, action, file) {
|
|
71
|
+
await client.requestRaw(`/api/table/${tableId}/${UPLOAD_UPDATE_PATHS[action]}`, {
|
|
72
|
+
method: "POST",
|
|
73
|
+
body: buildCsvFormData(file),
|
|
74
|
+
expectContentType: "binary"
|
|
75
|
+
});
|
|
76
|
+
return {
|
|
77
|
+
table_id: tableId,
|
|
78
|
+
action
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function parseCreateUploadResult(bodyText, headers) {
|
|
82
|
+
return UploadResult.parse({
|
|
83
|
+
model_id: parseResponseInteger(bodyText, "response body"),
|
|
84
|
+
table_id: parseResponseInteger(headers.get(UPLOAD_TABLE_ID_HEADER), `${UPLOAD_TABLE_ID_HEADER} header`)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function parseResponseInteger(value, source) {
|
|
88
|
+
const trimmed = value?.trim() ?? "";
|
|
89
|
+
if (trimmed === "") throw new Error(`upload succeeded but the ${source} was empty`);
|
|
90
|
+
const parsed = Number(trimmed);
|
|
91
|
+
if (!Number.isInteger(parsed)) throw new Error(`upload succeeded but the ${source} was not an integer: ${JSON.stringify(trimmed)}`);
|
|
92
|
+
return parsed;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
export { UploadResult, UploadUpdateResult, buildCsvFormData, parseCreateUploadResult, readCsvFile, requireUploadFilePath, updateTableFromCsv, uploadResultView, uploadUpdateResultView };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import "./table-DE3i82T_.mjs";
|
|
9
|
-
import { DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-D9fftP-i.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import "./field-DsXTeqBy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
6
|
+
import "./table-C3RIKiYM.mjs";
|
|
7
|
+
import { DatabaseSyncResult, DatabaseTaskAck, databaseSyncResultView } from "./database-CIbVSfua.mjs";
|
|
10
8
|
|
|
11
9
|
//#region src/commands/db/rescan-values.ts
|
|
12
10
|
var rescan_values_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { TimeoutError } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-D6kd_G7c.mjs";
|
|
9
|
-
import { Transform, TransformRun } from "./transform-DEF38FWe.mjs";
|
|
1
|
+
import { TimeoutError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
5
|
+
import { pollUntil } from "./poll-DVF9EnEb.mjs";
|
|
6
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-DvNU8ahZ.mjs";
|
|
7
|
+
import { Transform, TransformRun } from "./transform-BVHYzWpK.mjs";
|
|
10
8
|
import { z } from "zod";
|
|
11
9
|
|
|
12
10
|
//#region src/commands/transform/run.ts
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-DlXnOcmP.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
7
5
|
import { z } from "zod";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/transform-job/run.ts
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { collectPaginated } from "./paginate-FVZUxL4J.mjs";
|
|
8
|
-
import { TransformRun, TransformRunCompact, transformRunView } from "./transform-DEF38FWe.mjs";
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
5
|
+
import { collectPaginated } from "./paginate-CMqbqhMC.mjs";
|
|
6
|
+
import { TransformRun, TransformRunCompact, transformRunView } from "./transform-BVHYzWpK.mjs";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/transform/runs.ts
|
|
11
9
|
const TransformRunListEnvelope = listEnvelopeSchema(TransformRunCompact);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { AbortError, ConfigError, MetabaseError, NetworkError, ResponseShapeError, TimeoutError, ValidationError, errorMessage, flagConsumesValue, isNotFoundError, normalizeFlag, toAliasArray, warn } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { setMetabaseAugment } from "./command-augment-DdZIfx1V.mjs";
|
|
4
|
-
import { BASELINE_CAPABILITIES, isPlainObject } from "./capabilities-N0jo5U7S.mjs";
|
|
1
|
+
import { AbortError, BASELINE_CAPABILITIES, ConfigError, DEFAULT_MAX_BYTES, ENV_API_KEY, ENV_DISABLE_KEYRING, ENV_PROFILE, ENV_SKIP_PREFLIGHT, ENV_URL, MetabaseError, NetworkError, ResponseShapeError, TimeoutError, ValidationError, consumeLegacyEnvWarnings, errorMessage, flagConsumesValue, isNotFoundError, isPlainObject, normalizeFlag, package_default, readEnv, reportError, toAliasArray, warn } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import { setMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
5
3
|
import { defineCommand } from "citty";
|
|
6
4
|
import { z } from "zod";
|
|
7
5
|
import { promises } from "node:fs";
|
|
@@ -1629,6 +1627,7 @@ function defineMetabaseCommand(def) {
|
|
|
1629
1627
|
examples: def.examples ?? [],
|
|
1630
1628
|
details: def.details ? def.details : null,
|
|
1631
1629
|
skills: def.skills ?? [],
|
|
1630
|
+
inputSchema: def.inputSchema ?? null,
|
|
1632
1631
|
outputSchema: def.outputSchema ?? null,
|
|
1633
1632
|
capabilities: required
|
|
1634
1633
|
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import { parseId } from "./parse-id-DlXnOcmP.mjs";
|
|
8
|
-
import { Table, TableCompact, tableView } from "./table-DE3i82T_.mjs";
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import "./field-DsXTeqBy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
6
|
+
import { Table, TableCompact, tableView } from "./table-C3RIKiYM.mjs";
|
|
9
7
|
import { z } from "zod";
|
|
10
8
|
|
|
11
9
|
//#region src/commands/db/schema-tables.ts
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-DlXnOcmP.mjs";
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-DOTcPraV.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-CD54Chc5.mjs";
|
|
7
5
|
import { z } from "zod";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/db/schemas.ts
|