@metabase/cli 0.1.15 → 0.1.17
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 +69 -32
- package/dist/{add-collection-CXhrMjXU.mjs → add-collection-C-t9SQBk.mjs} +5 -5
- package/dist/add-collection-Dek6kiRI.mjs +11 -0
- package/dist/{archive-BUwiCFnd.mjs → archive-C7dnyzVY.mjs} +9 -7
- package/dist/{archive-Blc1dz8Z.mjs → archive-CaoUUTIb.mjs} +8 -7
- package/dist/{archive-D-Ovk0-E.mjs → archive-D1FX-sbU.mjs} +7 -6
- package/dist/{archive-CQiaCBSj.mjs → archive-DS-KEB4a.mjs} +7 -6
- package/dist/{archive-yTvDRQUZ.mjs → archive-LG8u7ec5.mjs} +7 -6
- package/dist/{archive-BxGSR7El.mjs → archive-qSOcACQo.mjs} +8 -6
- package/dist/{archive-Drt-rWvU.mjs → archive-wNXwIiF0.mjs} +8 -7
- package/dist/auth-Kv2MRkRk.mjs +22 -0
- package/dist/{body-B9XTTDEu.mjs → body-IcJ5kFtk.mjs} +3 -3
- package/dist/{branches-Ct3PK5U3.mjs → branches-BlNCTmFB.mjs} +7 -6
- package/dist/{cancel-tST8Bh0w.mjs → cancel-BnveTPNw.mjs} +6 -5
- package/dist/{cancel-task-BHnzRQKL.mjs → cancel-task-CSVI8Zgl.mjs} +7 -6
- package/dist/{capabilities-BX1rnVuH.mjs → capabilities-N0jo5U7S.mjs} +1 -1
- package/dist/card-Bp58WEUF.mjs +26 -0
- package/dist/{card-wCPcuKSi.mjs → card-DEmcRlNO.mjs} +6 -5
- package/dist/{cards-BySIFsLG.mjs → cards-CMgGA8OZ.mjs} +8 -6
- package/dist/cli.mjs +54 -26
- package/dist/collection-D8TI20Ir.mjs +23 -0
- package/dist/{collection-namespace-D8ohM5gD.mjs → collection-namespace-CsaxEqOb.mjs} +2 -2
- package/dist/command-augment-DdZIfx1V.mjs +11 -0
- package/dist/{create-HZ-9GMLx.mjs → create-AeWNv0v-.mjs} +9 -8
- package/dist/create-B1xfaZJB.mjs +35 -0
- package/dist/{create-DxDD6n1d.mjs → create-B6LQutd0.mjs} +17 -12
- package/dist/{create-C7FPeJqF.mjs → create-B79M8YpX.mjs} +10 -9
- package/dist/{create-DGxZmbxh.mjs → create-Bg_uMu0p.mjs} +9 -8
- package/dist/{create-C43RQYgj.mjs → create-BpkWlgoR.mjs} +18 -12
- package/dist/{create-DnT1Sayk.mjs → create-C7u3umLj.mjs} +9 -8
- package/dist/{create-4mAGsBd0.mjs → create-FZOrCw5k.mjs} +21 -12
- package/dist/{create-fIDFkdox.mjs → create-I5Cv-MBa.mjs} +16 -11
- package/dist/{create-D3cVDtxM.mjs → create-LHqwcVbS.mjs} +16 -11
- package/dist/{create-BDWthCYq.mjs → create-SHKlj0z3.mjs} +9 -8
- package/dist/{create-branch-jPE7nW-E.mjs → create-branch-CGyT99Ny.mjs} +7 -6
- package/dist/{current-task-rW54KJax.mjs → current-task-C-0hw2Ae.mjs} +7 -6
- package/dist/dashboard-C9pQCnX6.mjs +28 -0
- package/dist/{dashboard-B4bn3z6t.mjs → dashboard-DOplbKyQ.mjs} +7 -5
- package/dist/{database-BmsxuRmO.mjs → database-D9fftP-i.mjs} +1 -1
- package/dist/db-DWykmBOh.mjs +28 -0
- package/dist/{delete-BWO6uB4P.mjs → delete--NYYN6wv.mjs} +8 -7
- package/dist/{delete-CeigtfRI.mjs → delete-Do3nn9sl.mjs} +8 -7
- package/dist/{delete-runtime-PzLFavb0.mjs → delete-runtime-B0ha5QR4.mjs} +3 -3
- package/dist/{delete-CBwztF6P.mjs → delete-tCVrYjKD.mjs} +8 -7
- package/dist/{delete-table-BXzvDEPG.mjs → delete-table-CWSGPw0i.mjs} +8 -7
- package/dist/{dependencies-D2N9eqm1.mjs → dependencies-CyFocD8I.mjs} +7 -6
- package/dist/{dirty-DoEZRSGB.mjs → dirty-BXM0YJ_a.mjs} +7 -6
- package/dist/document-DNDm8_Py.mjs +22 -0
- package/dist/{eid-1mROiwJr.mjs → eid-p-zn_1RJ.mjs} +13 -7
- package/dist/{error-D5bZ5BUX.mjs → error-5H_tcfL8.mjs} +2 -2
- package/dist/{export-Bgv5B4_F.mjs → export-B_8wghyo.mjs} +9 -8
- package/dist/field-CFt1-KDR.mjs +21 -0
- package/dist/{fields-VA7tXHJz.mjs → fields-BsufL9kv.mjs} +8 -7
- package/dist/{get-DAsaor0n.mjs → get-4lufgahL.mjs} +7 -6
- package/dist/{get-B8etVxWD.mjs → get-68P-L4ja.mjs} +7 -6
- package/dist/{get-qnGGGRTa.mjs → get-B45uYMAs.mjs} +8 -6
- package/dist/get-B67pe00Z.mjs +36 -0
- package/dist/{get-DvQoDU2m.mjs → get-BJoZkATD.mjs} +7 -6
- package/dist/{get-BgIE_YEg.mjs → get-BTKeO4vE.mjs} +7 -6
- package/dist/{get-RQFSmnpY.mjs → get-C7mq17-2.mjs} +7 -6
- package/dist/{get-CGkhSY5L.mjs → get-CDLa6LiC.mjs} +9 -8
- package/dist/{get-D9o38nK5.mjs → get-CPw0ROO4.mjs} +7 -6
- package/dist/{get-Wj88mnhn.mjs → get-Cl5Ak73C.mjs} +9 -7
- package/dist/{get-CqnCaosn.mjs → get-D3k2JUsa.mjs} +7 -6
- package/dist/{get-C-UeGtgW.mjs → get-DTqBuIf3.mjs} +6 -5
- package/dist/{get-eUYDNALt.mjs → get-DeLnNVQE.mjs} +8 -7
- package/dist/{get-DLRBq8kR.mjs → get-Df_3LCVC.mjs} +7 -6
- package/dist/{get-BtAD26gc.mjs → get-DurjkUKJ.mjs} +7 -6
- package/dist/{get-run-CATz-XMS.mjs → get-run-Dq4qfGfD.mjs} +7 -6
- package/dist/git-sync-ByvjqSiy.mjs +31 -0
- package/dist/group-BNE_RiH5.mjs +28 -0
- package/dist/{has-remote-changes-B6YEMC90.mjs → has-remote-changes-E-4N_O_t.mjs} +7 -6
- package/dist/{import-Bl2Wj9Xf.mjs → import-Dg0j3HCP.mjs} +9 -8
- package/dist/{input-BXWgdKiS.mjs → input-7Sj85_K7.mjs} +1 -1
- package/dist/is-dirty-D7UMN0mt.mjs +10 -0
- package/dist/{is-dirty-D9MoFj0T.mjs → is-dirty-DWw1yBeR.mjs} +4 -4
- package/dist/{items-LjtICjvX.mjs → items-CQtt9X4M.mjs} +9 -8
- package/dist/{key-C8q5oIr5.mjs → key-bltP32Pm.mjs} +1 -1
- package/dist/library-B5AvpACG.mjs +24 -0
- package/dist/{list-ChK06rJh.mjs → list-B1uVWy6A.mjs} +8 -6
- package/dist/{list-DaJk60dd.mjs → list-BAOTQHst.mjs} +6 -5
- package/dist/{list-C410Ptw_.mjs → list-BF-W4jOZ.mjs} +9 -7
- package/dist/{list-DMik04Dh.mjs → list-BFVuPodI.mjs} +6 -5
- package/dist/{list-DfoNv0gb.mjs → list-BHAWYZ1z.mjs} +6 -5
- package/dist/{list-DcjenlTM.mjs → list-BKUvhAs4.mjs} +6 -5
- package/dist/{list-Dq86BAMG.mjs → list-BgUWqZa2.mjs} +8 -7
- package/dist/{list-CfWblVHJ.mjs → list-C4bALfCs.mjs} +7 -6
- package/dist/{list-CoRX8Ruc.mjs → list-C9O2RY5u.mjs} +6 -5
- package/dist/{list-cnqPlJgC.mjs → list-CfqpDTna.mjs} +6 -5
- package/dist/{list-C6U3Ftg8.mjs → list-CvhVYOVl.mjs} +7 -6
- package/dist/{list-B5Q7E2Km.mjs → list-D3TSAqwl.mjs} +6 -5
- package/dist/list-D5Gdz8hi.mjs +100 -0
- package/dist/{list-Bjp9nd0o.mjs → list-DG0FIhTK.mjs} +6 -5
- package/dist/{list-DtrfE0sF.mjs → list-KxQNqp4T.mjs} +8 -7
- package/dist/{login-Cn2UtFUt.mjs → login-Bt6j6yBM.mjs} +10 -9
- package/dist/{logout-_HXgEmqA.mjs → logout-ANkL02p0.mjs} +6 -5
- package/dist/{manifest-DYeLri80.mjs → manifest-BVf8P4bl.mjs} +9 -2
- package/dist/measure-CgFwtL1r.mjs +25 -0
- package/dist/{metadata-8yqT8OZI.mjs → metadata-ClehtgZj.mjs} +9 -8
- package/dist/{metadata-DHODjg1d.mjs → metadata-DplshwI3.mjs} +8 -7
- package/dist/{command-augment-CAur0XOQ.mjs → notice-DyVl5aYB.mjs} +1 -11
- package/dist/parameter-CiJ4CwWE.mjs +118 -0
- package/dist/parameter-values-D4J8Ctu0.mjs +56 -0
- package/dist/{parse-enum-BatHQ-Gs.mjs → parse-enum-BL9i_brN.mjs} +1 -1
- package/dist/{parse-id-DNPeV0Iu.mjs → parse-id-D4LeTUsP.mjs} +1 -1
- package/dist/{parse-ref-CZr1bYIl.mjs → parse-ref-CB_KvF9h.mjs} +1 -1
- package/dist/{path-BflajM08.mjs → path-5nQgdvrs.mjs} +6 -5
- package/dist/{poll-CYkX02Bm.mjs → poll-BpAJpvb-.mjs} +2 -2
- package/dist/{poll-task-oXpl3wzp.mjs → poll-task-TilgciQn.mjs} +2 -2
- package/dist/{preflight-BdJr2amA.mjs → preflight-OfHU3Toi.mjs} +4 -4
- package/dist/{process-DsGf7Mg5.mjs → process-j8UHMHc2.mjs} +1 -1
- package/dist/{prompt-Bc_bHSD0.mjs → prompt-C85xd9HR.mjs} +1 -1
- package/dist/publish-DKiqyDwo.mjs +67 -0
- package/dist/{query-CxTjguwp.mjs → query-BWJ5h1g3.mjs} +19 -13
- package/dist/{query-DWQaN7hO.mjs → query-CQ3xXa9P.mjs} +10 -8
- package/dist/{query-result-L5_NrwQR.mjs → query-result-D6mfoVfQ.mjs} +1 -1
- package/dist/{remove-collection-BwcFi8Fs.mjs → remove-collection-CO-aMzTO.mjs} +9 -8
- package/dist/{rescan-values-B9Qtsd32.mjs → rescan-values-DpL6LGAK.mjs} +9 -8
- package/dist/resolve-Dj2MTBkn.mjs +84 -0
- package/dist/{run-C-vftXCu.mjs → run-DUcdaZs3.mjs} +6 -5
- package/dist/{run-3eFtdI2Z.mjs → run-QYJ-mAaG.mjs} +9 -8
- package/dist/{runs-CpRTkn1W.mjs → runs-DgasTnGd.mjs} +8 -7
- package/dist/{runtime-C1QgWHM7.mjs → runtime-BJtuxWM8.mjs} +5 -3
- package/dist/{schema-tables-rdeupgsu.mjs → schema-tables-ooYjimrV.mjs} +8 -7
- package/dist/{schemas-Cr7RjYqV.mjs → schemas-HjFPzsd-.mjs} +6 -5
- package/dist/{search-D7Yq2MDu.mjs → search-vaT5EwhG.mjs} +11 -5
- package/dist/segment-BPC725mo.mjs +25 -0
- package/dist/{selectors-DPc2ZDdd.mjs → selectors-DlmZpo2L.mjs} +4 -4
- package/dist/{set-X2N6x7pe.mjs → set-CLHJauzG.mjs} +9 -8
- package/dist/{set-active-BoBa3pOw.mjs → set-active-oZOUe9V7.mjs} +6 -5
- package/dist/setting-DHYO-W5g.mjs +20 -0
- package/dist/{setup-C47WUieB.mjs → setup-D1de5Sbc.mjs} +8 -7
- package/dist/{skills-CJ8g8fhQ.mjs → skills-B6gfH0iR.mjs} +1 -1
- package/dist/{skills-Po0YPVU5.mjs → skills-NhgVypJ7.mjs} +3 -3
- package/dist/snippet-DtLmHr2J.mjs +22 -0
- package/dist/{stash-BV4sEp73.mjs → stash-DoRwelwY.mjs} +9 -8
- package/dist/{status-BKF9rRnk.mjs → status-BpMOlfsA.mjs} +8 -7
- package/dist/{status-Cf8c0NON.mjs → status-CmRgHTrV.mjs} +6 -5
- package/dist/{summary-RgLcBcEh.mjs → summary-BEu7pmpq.mjs} +7 -6
- package/dist/{sync-schema-DKEel2Sv.mjs → sync-schema-DTUXubMg.mjs} +11 -10
- package/dist/table-B1iBqmNu.mjs +22 -0
- package/dist/{table-qDD2kApF.mjs → table-DE3i82T_.mjs} +9 -2
- package/dist/transform-BuIooRQh.mjs +31 -0
- package/dist/transform-job-C3yz0krA.mjs +25 -0
- package/dist/transform-tag-CJD6mJUe.mjs +21 -0
- package/dist/{transforms-BOQ9CG0l.mjs → transforms-CWvMpLc9.mjs} +7 -6
- package/dist/{tree-CF8mscd9.mjs → tree-D18vYSe4.mjs} +6 -5
- package/dist/{unpublish-CmaRNjK3.mjs → unpublish-CJbL4ZsC.mjs} +20 -18
- package/dist/{update-Kz4kyqY_.mjs → update-7DacwIvi.mjs} +10 -9
- package/dist/{update-CgQOSuZt.mjs → update-BjjZIe2W.mjs} +10 -9
- package/dist/{update-nwXgVNQa.mjs → update-Bos8nnv0.mjs} +18 -13
- package/dist/{update-BXZBEeUp.mjs → update-BvsvyBw9.mjs} +17 -12
- package/dist/{update-DQPg0_-d.mjs → update-CSxwZ2us.mjs} +11 -10
- package/dist/{update-BuypOaXq.mjs → update-Ck0Kxv8u.mjs} +10 -9
- package/dist/{update-B59h7KmS.mjs → update-DV7IY7IQ.mjs} +10 -9
- package/dist/{update-DERsb0eO.mjs → update-DhOfrW1j.mjs} +19 -13
- package/dist/{update-DR4WkAET.mjs → update-Doia9MP_.mjs} +17 -12
- package/dist/{update-rhfPHALN.mjs → update-Dxa_6H2A.mjs} +22 -13
- package/dist/{update-dashcard-BJVeSGvO.mjs → update-dashcard-CZUWZhal.mjs} +11 -9
- package/dist/{update-DoQpy9SA.mjs → update-mr9todHq.mjs} +10 -9
- package/dist/{upgrade-CNrkJF6s.mjs → upgrade-CBW8V9qZ.mjs} +7 -6
- package/dist/{uuid-Dpl3ALKq.mjs → uuid-D6JVJ-R1.mjs} +10 -5
- package/dist/{validate-VawhJ5Sc.mjs → validate-BqNW4Sk1.mjs} +2 -2
- package/dist/{validate-query-CSV-TTnd.mjs → validate-query-CcZVKYPV.mjs} +3 -3
- package/dist/{values-DMYpkoEH.mjs → values-DBvuGnnA.mjs} +7 -6
- package/dist/{verify-By9ZYzx4.mjs → verify-LIShMNZ2.mjs} +2 -2
- package/dist/{wait-BzIAj8lJ.mjs → wait-DUHze3_B.mjs} +8 -7
- package/dist/{wait-flags-DQrxnlwv.mjs → wait-flags-Ybpt98PK.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +45 -57
- package/skill-data/data-workflow/SKILL.md +116 -0
- package/skill-data/{data-analysis/SKILL.md → data-workflow/references/answering-questions.md} +7 -13
- package/skill-data/{data-transformation/SKILL.md → data-workflow/references/building-clean-tables.md} +46 -48
- package/skill-data/{semantic-layer/SKILL.md → data-workflow/references/reusable-definitions.md} +29 -54
- package/skill-data/document/SKILL.md +10 -20
- package/skill-data/git-sync/SKILL.md +36 -36
- package/skill-data/mbql/SKILL.md +3 -15
- package/skill-data/mbql/references/operators.md +9 -0
- package/skill-data/transform/SKILL.md +26 -42
- package/skill-data/visualization/SKILL.md +6 -6
- package/skill-data/visualization/references/settings.md +12 -0
- package/skills/metabase-cli/SKILL.md +2 -2
- package/dist/add-collection-Bnuh0d4j.mjs +0 -10
- package/dist/auth-Bkue4Psy.mjs +0 -19
- package/dist/card-faWo9ZWU.mjs +0 -20
- package/dist/collection-DcRz7fmf.mjs +0 -20
- package/dist/dashboard-pXAxJTTx.mjs +0 -21
- package/dist/db-CmHHj5eI.mjs +0 -22
- package/dist/document-DQIhL75C.mjs +0 -19
- package/dist/field-B-UcqFzm.mjs +0 -18
- package/dist/git-sync-CwOvcUI2.mjs +0 -28
- package/dist/is-dirty-MT0BT4CS.mjs +0 -9
- package/dist/list-Cx8JxS2C.mjs +0 -42
- package/dist/measure-BIAoqgcS.mjs +0 -19
- package/dist/publish-CGUkIqSm.mjs +0 -70
- package/dist/segment-BN8sFunv.mjs +0 -19
- package/dist/setting-zZjcOPyE.mjs +0 -17
- package/dist/snippet-DK0ZA8m5.mjs +0 -19
- package/dist/table-COAKXNuj.mjs +0 -21
- package/dist/transform-Bto4U82j.mjs +0 -25
- package/dist/transform-job-_fW1y2tg.mjs +0 -22
- package/dist/transform-tag-C8n1oTr1.mjs +0 -18
- package/skill-data/robot-data-engineer/SKILL.md +0 -142
- /package/dist/{body-flags-D7q87Btw.mjs → body-flags-DWTTxJpP.mjs} +0 -0
- /package/dist/{collection-Deiziuu2.mjs → collection-DrLpA1SO.mjs} +0 -0
- /package/dist/{document-qfwR0r63.mjs → document-1W7NRaO_.mjs} +0 -0
- /package/dist/{field-E0IBy4Uw.mjs → field-CMY_LWUe.mjs} +0 -0
- /package/dist/{measure-JJAdFoqK.mjs → measure-DoJvtCaA.mjs} +0 -0
- /package/dist/{paginate-BexjkjbY.mjs → paginate-FVZUxL4J.mjs} +0 -0
- /package/dist/{render-CkuFkWlQ.mjs → render-BTKnWL0d.mjs} +0 -0
- /package/dist/{revision-message-flag-C7zBeWEt.mjs → revision-message-flag-CHrJgFFx.mjs} +0 -0
- /package/dist/{segment-B9SEv9V_.mjs → segment-TXktTCfU.mjs} +0 -0
- /package/dist/{setting-i0pugNHl.mjs → setting-m46MUtW5.mjs} +0 -0
- /package/dist/{snippet-NNzqlksR.mjs → snippet-CtA2Pkoa.mjs} +0 -0
- /package/dist/{transform-n376akp8.mjs → transform-DEF38FWe.mjs} +0 -0
- /package/dist/{transform-job-C8lIS-7Q.mjs → transform-job-CtixL4An.mjs} +0 -0
- /package/dist/{transform-tag-DB46AhAj.mjs → transform-tag-rsIrckCM.mjs} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./poll-BpAJpvb-.mjs";
|
|
7
|
+
import "./poll-task-TilgciQn.mjs";
|
|
8
|
+
import { IsDirtyResult, is_dirty_default } from "./is-dirty-DWw1yBeR.mjs";
|
|
9
|
+
|
|
10
|
+
export { is_dirty_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
2
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { renderSummary } from "./capabilities-
|
|
4
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
3
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-TilgciQn.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/git-sync/is-dirty.ts
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand, parseEnum, parseEnumCsv } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
+
import { COLLECTION_ITEM_FILTER_MODELS, COLLECTION_PINNED_STATES, CollectionItem, CollectionItemCompact, CollectionItemFilterModel, CollectionPinnedState, collectionItemView } from "./collection-DrLpA1SO.mjs";
|
|
8
|
+
import { parseCollectionRef } from "./parse-ref-CB_KvF9h.mjs";
|
|
9
|
+
import { collectPaginated } from "./paginate-FVZUxL4J.mjs";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/collection/items.ts
|
|
11
12
|
const CollectionItemListEnvelope = listEnvelopeSchema(CollectionItemCompact);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/library/index.ts
|
|
5
|
+
var library_default = defineCommandGroup({
|
|
6
|
+
name: "library",
|
|
7
|
+
description: "Curate the Metabase Library — publish trusted tables to its Data collection",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "core",
|
|
10
|
+
purpose: "publish tables to the Library"
|
|
11
|
+
}, {
|
|
12
|
+
skill: "data-workflow",
|
|
13
|
+
purpose: "which tables are worth publishing"
|
|
14
|
+
}],
|
|
15
|
+
subCommands: {
|
|
16
|
+
get: () => import("./get-B67pe00Z.mjs").then((m) => m.default),
|
|
17
|
+
create: () => import("./create-B1xfaZJB.mjs").then((m) => m.default),
|
|
18
|
+
publish: () => import("./publish-DKiqyDwo.mjs").then((m) => m.default),
|
|
19
|
+
unpublish: () => import("./unpublish-CJbL4ZsC.mjs").then((m) => m.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { library_default as default };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./parameter-CiJ4CwWE.mjs";
|
|
7
|
+
import { parseEnumFlag } from "./parse-enum-BL9i_brN.mjs";
|
|
8
|
+
import { Dashboard, DashboardCompact, dashboardView } from "./dashboard-DOplbKyQ.mjs";
|
|
7
9
|
import { z } from "zod";
|
|
8
10
|
|
|
9
11
|
//#region src/commands/dashboard/list.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { TransformTag, TransformTagCompact, transformTagView } from "./transform-tag-rsIrckCM.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/transform-tag/list.ts
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./field-CMY_LWUe.mjs";
|
|
7
|
+
import "./parameter-CiJ4CwWE.mjs";
|
|
8
|
+
import { Card, CardCompact, cardView } from "./card-DEmcRlNO.mjs";
|
|
9
|
+
import { parseEnumFlag } from "./parse-enum-BL9i_brN.mjs";
|
|
8
10
|
import { z } from "zod";
|
|
9
11
|
|
|
10
12
|
//#region src/commands/card/list.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { Transform, TransformCompact, transformView } from "./transform-DEF38FWe.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/transform/list.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { Measure, MeasureCompact, measureView } from "./measure-DoJvtCaA.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/measure/list.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { Segment, SegmentCompact, segmentView } from "./segment-TXktTCfU.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/segment/list.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./field-CMY_LWUe.mjs";
|
|
7
|
+
import "./table-DE3i82T_.mjs";
|
|
8
|
+
import { Database, DatabaseCompact, databaseView } from "./database-D9fftP-i.mjs";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/db/list.ts
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { parseEnumFlag } from "./parse-enum-BL9i_brN.mjs";
|
|
7
|
+
import { Collection, CollectionCompact, collectionView } from "./collection-DrLpA1SO.mjs";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/collection/list.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { Setting, SettingCompact, settingView } from "./setting-m46MUtW5.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/setting/list.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { Snippet, SnippetCompact, snippetView } from "./snippet-CtA2Pkoa.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/snippet/list.ts
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { warn } from "./
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { warn } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { ParsedVersionSchema, ProbedUser, ProfileAuthMethod, ProfileLastFailure, TokenFeatures, createCredentialRefresher, defineMetabaseCommand, displayUrl, listProfileRecords, profileAuthMethod, resolveRecordCredential, writeProbeFailure, writeProbeResult } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { verifyAndProbe } from "./verify-LIShMNZ2.mjs";
|
|
6
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
7
|
+
import { renderAuthMethod, renderTimestamp, renderUserRole, renderVersionTag } from "./render-BTKnWL0d.mjs";
|
|
7
8
|
import { z } from "zod";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/auth/list.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { TransformJob, TransformJobCompact, transformJobView } from "./transform-job-CtixL4An.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/transform-job/list.ts
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { listTruncationNotice, warn } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { loadVisibleSkills } from "./skills-B6gfH0iR.mjs";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
//#region src/output/skill-list.ts
|
|
10
|
+
const DEFAULT_TERMINAL_WIDTH = 80;
|
|
11
|
+
const MIN_WRAP_WIDTH = 24;
|
|
12
|
+
const DESCRIPTION_INDENT = " ";
|
|
13
|
+
function renderSkillList(rows, maxBytes) {
|
|
14
|
+
if (rows.length === 0) {
|
|
15
|
+
process.stdout.write("(no results)\n");
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const width = wrapWidth();
|
|
19
|
+
const blocks = rows.map((row) => renderSkillBlock(row, width));
|
|
20
|
+
const fullText = blocks.join("");
|
|
21
|
+
const fullBytes = Buffer.byteLength(fullText, "utf8");
|
|
22
|
+
if (maxBytes <= 0 || fullBytes <= maxBytes) {
|
|
23
|
+
process.stdout.write(fullText);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
let used = 0;
|
|
27
|
+
let kept = "";
|
|
28
|
+
for (const block of blocks) {
|
|
29
|
+
const next = used + Buffer.byteLength(block, "utf8");
|
|
30
|
+
if (next > maxBytes) break;
|
|
31
|
+
used = next;
|
|
32
|
+
kept += block;
|
|
33
|
+
}
|
|
34
|
+
process.stdout.write(kept);
|
|
35
|
+
warn(listTruncationNotice(fullBytes));
|
|
36
|
+
}
|
|
37
|
+
function renderSkillBlock(row, width) {
|
|
38
|
+
const lines = wrapText(row.description, width - DESCRIPTION_INDENT.length);
|
|
39
|
+
const body = lines.map((line) => DESCRIPTION_INDENT + line).join("\n");
|
|
40
|
+
return body === "" ? `${row.name}\n\n` : `${row.name}\n${body}\n\n`;
|
|
41
|
+
}
|
|
42
|
+
function wrapText(text, width) {
|
|
43
|
+
const limit = Math.max(width, MIN_WRAP_WIDTH);
|
|
44
|
+
const words = text.split(/\s+/).filter((word) => word.length > 0);
|
|
45
|
+
const lines = [];
|
|
46
|
+
let current = "";
|
|
47
|
+
for (const word of words) if (current === "") current = word;
|
|
48
|
+
else if (current.length + 1 + word.length <= limit) current += ` ${word}`;
|
|
49
|
+
else {
|
|
50
|
+
lines.push(current);
|
|
51
|
+
current = word;
|
|
52
|
+
}
|
|
53
|
+
if (current !== "") lines.push(current);
|
|
54
|
+
return lines;
|
|
55
|
+
}
|
|
56
|
+
function wrapWidth() {
|
|
57
|
+
const columns = process.stdout.columns;
|
|
58
|
+
return typeof columns === "number" && columns > 0 ? columns : DEFAULT_TERMINAL_WIDTH;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/commands/skills/list.ts
|
|
63
|
+
const SkillSummary = z.object({
|
|
64
|
+
name: z.string(),
|
|
65
|
+
description: z.string()
|
|
66
|
+
});
|
|
67
|
+
const SkillListEnvelope = listEnvelopeSchema(SkillSummary);
|
|
68
|
+
const skillSummaryView = {
|
|
69
|
+
compactPick: SkillSummary,
|
|
70
|
+
tableColumns: [{
|
|
71
|
+
key: "name",
|
|
72
|
+
label: "Name"
|
|
73
|
+
}, {
|
|
74
|
+
key: "description",
|
|
75
|
+
label: "Description"
|
|
76
|
+
}]
|
|
77
|
+
};
|
|
78
|
+
var list_default = defineMetabaseCommand({
|
|
79
|
+
meta: {
|
|
80
|
+
name: "list",
|
|
81
|
+
description: "List CLI-bundled skills — always consult the matching skill before acting on a task; they are the source of truth for every workflow."
|
|
82
|
+
},
|
|
83
|
+
args: { ...outputFlags },
|
|
84
|
+
outputSchema: SkillListEnvelope,
|
|
85
|
+
examples: ["mb skills list", "mb skills list --json"],
|
|
86
|
+
run({ ctx }) {
|
|
87
|
+
const items = loadVisibleSkills().map((s) => ({
|
|
88
|
+
name: s.name,
|
|
89
|
+
description: s.description
|
|
90
|
+
}));
|
|
91
|
+
if (ctx.format === "json" || ctx.fields !== void 0 || ctx.full) {
|
|
92
|
+
renderList(wrapList(items), skillSummaryView, ctx);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
renderSkillList(items, ctx.maxBytes);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
export { list_default as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { Document, DocumentCompact, documentView } from "./document-1W7NRaO_.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/document/list.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderList } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./field-CMY_LWUe.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { Table, TableCompact, tableView } from "./table-DE3i82T_.mjs";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/table/list.ts
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { ConfigError, errorMessage, warn } from "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { ConfigError, errorMessage, warn } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
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-BJtuxWM8.mjs";
|
|
5
|
+
import { verifyAndProbe } from "./verify-LIShMNZ2.mjs";
|
|
6
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
7
|
+
import { EMPTY_CELL, renderUserName, renderUserRole, renderVersionTag } from "./render-BTKnWL0d.mjs";
|
|
8
|
+
import { promptPassword, promptSelect, promptText } from "./prompt-C85xd9HR.mjs";
|
|
9
|
+
import { openBrowser } from "./process-j8UHMHc2.mjs";
|
|
10
|
+
import { readInput } from "./input-7Sj85_K7.mjs";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { createServer } from "node:http";
|
|
12
13
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { errorMessage, warn } from "./
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { errorMessage, warn } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { clearProfile, consumeKeychainResidualWarning, defineMetabaseCommand, readProfileCredential, resolveProfileName, revokeOAuthCredential } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderSummary } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import { promptConfirm } from "./prompt-C85xd9HR.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
|
|
8
9
|
//#region src/commands/auth/logout.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { resolveCitty, toAliasArray } from "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { getMetabaseAugment } from "./command-augment-DdZIfx1V.mjs";
|
|
3
|
+
import { Capabilities, writeJson } from "./capabilities-N0jo5U7S.mjs";
|
|
3
4
|
import { defineCommand } from "citty";
|
|
4
5
|
import { z } from "zod";
|
|
5
6
|
|
|
@@ -22,10 +23,15 @@ const ManifestArg = z.object({
|
|
|
22
23
|
alias: z.array(z.string()).optional(),
|
|
23
24
|
options: z.array(z.string()).optional()
|
|
24
25
|
});
|
|
26
|
+
const ManifestSkill = z.object({
|
|
27
|
+
skill: z.string(),
|
|
28
|
+
purpose: z.string()
|
|
29
|
+
});
|
|
25
30
|
const ManifestEntry = z.object({
|
|
26
31
|
command: z.string(),
|
|
27
32
|
description: z.string(),
|
|
28
33
|
details: z.string().optional(),
|
|
34
|
+
skills: z.array(ManifestSkill),
|
|
29
35
|
examples: z.array(z.string()),
|
|
30
36
|
args: z.array(ManifestArg),
|
|
31
37
|
outputSchema: z.unknown().nullable(),
|
|
@@ -58,6 +64,7 @@ async function walk(cmd, path) {
|
|
|
58
64
|
const entry = {
|
|
59
65
|
command: path.join(" "),
|
|
60
66
|
description: readDescription(meta),
|
|
67
|
+
skills: Array.from(augment.skills),
|
|
61
68
|
examples: Array.from(augment.examples),
|
|
62
69
|
args: convertArgs(args),
|
|
63
70
|
outputSchema: augment.outputSchema ? z.toJSONSchema(augment.outputSchema) : null,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-BNE_RiH5.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-BHAWYZ1z.mjs").then((mod) => mod.default),
|
|
17
|
+
get: () => import("./get-Df_3LCVC.mjs").then((mod) => mod.default),
|
|
18
|
+
create: () => import("./create-LHqwcVbS.mjs").then((mod) => mod.default),
|
|
19
|
+
update: () => import("./update-BvsvyBw9.mjs").then((mod) => mod.default),
|
|
20
|
+
archive: () => import("./archive-wNXwIiF0.mjs").then((mod) => mod.default)
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { measure_default as default };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderItem } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./field-CMY_LWUe.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import "./table-DE3i82T_.mjs";
|
|
9
|
+
import { Database, databaseView } from "./database-D9fftP-i.mjs";
|
|
9
10
|
|
|
10
11
|
//#region src/commands/db/metadata.ts
|
|
11
12
|
var metadata_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import "./notice-DyVl5aYB.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-5H_tcfL8.mjs";
|
|
3
|
+
import "./command-augment-DdZIfx1V.mjs";
|
|
4
|
+
import { defineMetabaseCommand } from "./runtime-BJtuxWM8.mjs";
|
|
5
|
+
import { renderItem } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
+
import "./field-CMY_LWUe.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
+
import { TableQueryMetadata, tableView } from "./table-DE3i82T_.mjs";
|
|
8
9
|
|
|
9
10
|
//#region src/commands/table/metadata.ts
|
|
10
11
|
var metadata_default = defineMetabaseCommand({
|
|
@@ -203,14 +203,4 @@ function itemOversizeMessage(bytes, maxBytes) {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
//#endregion
|
|
206
|
-
|
|
207
|
-
const augments = new WeakMap();
|
|
208
|
-
function setMetabaseAugment(cmd, augment) {
|
|
209
|
-
augments.set(cmd, augment);
|
|
210
|
-
}
|
|
211
|
-
function getMetabaseAugment(cmd) {
|
|
212
|
-
return augments.get(cmd) ?? null;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
//#endregion
|
|
216
|
-
export { AbortError, ChainedRequestError, ConfigError, MetabaseError, NetworkError, ResponseShapeError, TimeoutError, UnknownError, ValidationError, errorMessage, escapeJsonPointerSegment, flagConsumesValue, getMetabaseAugment, isNotFoundError, itemOversizeMessage, listTruncationNotice, normalizeFlag, resolveCitty, setMetabaseAugment, toAliasArray, toMetabaseError, warn };
|
|
206
|
+
export { AbortError, ChainedRequestError, ConfigError, MetabaseError, NetworkError, ResponseShapeError, TimeoutError, UnknownError, ValidationError, errorMessage, escapeJsonPointerSegment, flagConsumesValue, isNotFoundError, itemOversizeMessage, listTruncationNotice, normalizeFlag, resolveCitty, toAliasArray, toMetabaseError, warn };
|