@metabase/cli 0.1.17 → 0.2.0
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 +61 -35
- package/dist/{add-collection-C-t9SQBk.mjs → add-collection-BTSGp4f9.mjs} +4 -5
- package/dist/add-collection-DlAwt2Z3.mjs +9 -0
- package/dist/append-DY1-O789.mjs +42 -0
- package/dist/{archive-wNXwIiF0.mjs → archive-BOEEMrYL.mjs} +6 -8
- package/dist/{archive-CaoUUTIb.mjs → archive-CJ9rElKn.mjs} +6 -8
- package/dist/{archive-DS-KEB4a.mjs → archive-CWtUzlHO.mjs} +5 -7
- package/dist/{archive-LG8u7ec5.mjs → archive-DCPw3df6.mjs} +5 -7
- package/dist/{archive-D1FX-sbU.mjs → archive-DOa1u1aJ.mjs} +5 -7
- package/dist/{archive-C7dnyzVY.mjs → archive-pHsa4dL0.mjs} +8 -9
- package/dist/{archive-qSOcACQo.mjs → archive-w6TX-zEk.mjs} +7 -8
- package/dist/auth-BrQtY0pO.mjs +22 -0
- package/dist/{body-IcJ5kFtk.mjs → body-C1_AaTS4.mjs} +3 -3
- package/dist/{branches-BlNCTmFB.mjs → branches-BsBzaGIf.mjs} +5 -7
- package/dist/{cancel-BnveTPNw.mjs → cancel-BNM0yyx-.mjs} +4 -6
- package/dist/{cancel-task-CSVI8Zgl.mjs → cancel-task-Bggzn4JL.mjs} +5 -7
- package/dist/capabilities-DrDJo_ng.mjs +684 -0
- package/dist/{card-DEmcRlNO.mjs → card-B8G5jQQT.mjs} +24 -18
- package/dist/card-DHCcmpgr.mjs +26 -0
- package/dist/{cards-CMgGA8OZ.mjs → cards-D0hvA13L.mjs} +7 -8
- package/dist/cli.mjs +175 -29
- package/dist/{collection-DrLpA1SO.mjs → collection-CFoLPrY5.mjs} +1 -1
- package/dist/collection-D0O9gp3S.mjs +23 -0
- package/dist/{collection-namespace-CsaxEqOb.mjs → collection-namespace-DqPNrCdQ.mjs} +2 -2
- package/dist/{create-I5Cv-MBa.mjs → create-05rX4oL-.mjs} +11 -12
- package/dist/{create-B6LQutd0.mjs → create-BR7x66KW.mjs} +12 -13
- package/dist/{create-B79M8YpX.mjs → create-C17Fh1_X.mjs} +9 -10
- package/dist/{create-FZOrCw5k.mjs → create-C8ndg3g4.mjs} +28 -21
- package/dist/{create-C7u3umLj.mjs → create-CZ9KFnbi.mjs} +8 -9
- package/dist/{create-B1xfaZJB.mjs → create-Cii_utzV.mjs} +5 -7
- package/dist/{create-SHKlj0z3.mjs → create-Cyv7vHV_.mjs} +8 -9
- package/dist/{create-Bg_uMu0p.mjs → create-DKuixGJ2.mjs} +8 -9
- package/dist/{create-AeWNv0v-.mjs → create-E6L3WMqV.mjs} +8 -9
- package/dist/{create-LHqwcVbS.mjs → create-a3s1S2Dw.mjs} +11 -12
- package/dist/{create-branch-CGyT99Ny.mjs → create-branch-Dxn6UnV_.mjs} +5 -7
- package/dist/{create-BpkWlgoR.mjs → create-oLb0E-ZP.mjs} +17 -14
- package/dist/csv-T6_vlLJS.mjs +58 -0
- package/dist/{current-task-C-0hw2Ae.mjs → current-task-DxWbw-bU.mjs} +5 -7
- package/dist/{dashboard-DOplbKyQ.mjs → dashboard-B-MTpfeS.mjs} +35 -15
- package/dist/dashboard-BpSPoeAn.mjs +35 -0
- package/dist/{database-D9fftP-i.mjs → database-CIbVSfua.mjs} +2 -2
- package/dist/db-DBRijnh4.mjs +27 -0
- package/dist/{delete-tCVrYjKD.mjs → delete--P1xFX37.mjs} +6 -8
- package/dist/{delete-Do3nn9sl.mjs → delete-BBOIUl0D.mjs} +6 -8
- package/dist/{delete--NYYN6wv.mjs → delete-Ce2EBQYA.mjs} +6 -8
- package/dist/{delete-runtime-B0ha5QR4.mjs → delete-runtime-B-8I9V1g.mjs} +2 -3
- package/dist/{delete-table-CWSGPw0i.mjs → delete-table-Bj32NsXn.mjs} +6 -8
- package/dist/{dependencies-CyFocD8I.mjs → dependencies-ixzjVjUz.mjs} +5 -7
- package/dist/{dirty-BXM0YJ_a.mjs → dirty-CH70h5m5.mjs} +5 -7
- package/dist/{document-1W7NRaO_.mjs → document-CL4ML5FN.mjs} +20 -4
- package/dist/document-dZpuFu3I.mjs +22 -0
- package/dist/{eid-p-zn_1RJ.mjs → eid-XjkBbyb_.mjs} +10 -11
- package/dist/embedding-CKdw8q7p.mjs +11 -0
- package/dist/{export-B_8wghyo.mjs → export-CChMg-mL.mjs} +7 -9
- package/dist/field-B1heFeCz.mjs +21 -0
- package/dist/{field-CMY_LWUe.mjs → field-DsXTeqBy.mjs} +6 -4
- package/dist/{fields-BsufL9kv.mjs → fields-C7h2QwUp.mjs} +6 -8
- package/dist/{get-Cl5Ak73C.mjs → get-AvGH_oph.mjs} +8 -9
- package/dist/{get-DurjkUKJ.mjs → get-B6ZJCJ8H.mjs} +5 -7
- package/dist/{get-68P-L4ja.mjs → get-BWHJDa0B.mjs} +5 -7
- package/dist/{get-B67pe00Z.mjs → get-BsyccuCH.mjs} +5 -7
- package/dist/{get-C7mq17-2.mjs → get-C98IFgFi.mjs} +5 -7
- package/dist/{get-BTKeO4vE.mjs → get-Cj90oyxG.mjs} +5 -7
- package/dist/{get-BJoZkATD.mjs → get-D9r2znrn.mjs} +5 -7
- package/dist/{get-D3k2JUsa.mjs → get-DRZENkCj.mjs} +5 -7
- package/dist/{get-4lufgahL.mjs → get-DWWmpQ87.mjs} +5 -7
- package/dist/{get-CPw0ROO4.mjs → get-Dg1J0wxb.mjs} +5 -7
- package/dist/{get-B45uYMAs.mjs → get-DrWYvefc.mjs} +7 -8
- package/dist/{get-DTqBuIf3.mjs → get-KVN9ANVh.mjs} +4 -6
- package/dist/get-RlP_xiUd.mjs +67 -0
- package/dist/{get-Df_3LCVC.mjs → get-cyR67Lmq.mjs} +5 -7
- package/dist/{get-DeLnNVQE.mjs → get-kqY2lwhO.mjs} +16 -9
- package/dist/{get-run-Dq4qfGfD.mjs → get-run-C4C_QQqO.mjs} +5 -7
- package/dist/git-sync-JHa7bIyY.mjs +31 -0
- package/dist/{group-BNE_RiH5.mjs → group-CILtQqCL.mjs} +2 -1
- package/dist/{has-remote-changes-E-4N_O_t.mjs → has-remote-changes-dLUGr0MD.mjs} +5 -7
- package/dist/{import-Dg0j3HCP.mjs → import-Byull6jF.mjs} +7 -9
- package/dist/{input-7Sj85_K7.mjs → input-m9ctfLxZ.mjs} +6 -3
- package/dist/is-dirty-Bb2dfEYs.mjs +8 -0
- package/dist/{is-dirty-DWw1yBeR.mjs → is-dirty-CU3ovgdG.mjs} +3 -4
- package/dist/{items-CQtt9X4M.mjs → items-CEGDYWuF.mjs} +7 -9
- package/dist/{key-bltP32Pm.mjs → key-Ge4VwWvS.mjs} +1 -1
- package/dist/{library-B5AvpACG.mjs → library-DHWWa4Tt.mjs} +6 -6
- package/dist/{list-BFVuPodI.mjs → list-3z1ZChTG.mjs} +4 -6
- package/dist/{list-D3TSAqwl.mjs → list-B9TyELob.mjs} +4 -6
- package/dist/{list-BAOTQHst.mjs → list-BFm4iEBt.mjs} +4 -6
- package/dist/{list-BKUvhAs4.mjs → list-BliCJAjt.mjs} +4 -6
- package/dist/{list-BgUWqZa2.mjs → list-Bpv06V24.mjs} +6 -8
- package/dist/{list-DG0FIhTK.mjs → list-Br48kL09.mjs} +4 -6
- package/dist/{list-BHAWYZ1z.mjs → list-BtcpNl4-.mjs} +4 -6
- package/dist/{list-B1uVWy6A.mjs → list-BuyRG3GB.mjs} +7 -8
- package/dist/{list-CvhVYOVl.mjs → list-CMb03cv3.mjs} +5 -7
- package/dist/{list-CfqpDTna.mjs → list-CmCJwaGT.mjs} +4 -6
- package/dist/{list-C4bALfCs.mjs → list-Cur_72xZ.mjs} +5 -7
- package/dist/{list-BF-W4jOZ.mjs → list-D9FY30xH.mjs} +8 -9
- package/dist/{list-D5Gdz8hi.mjs → list-DEkPxVZu.mjs} +4 -6
- package/dist/{list-C9O2RY5u.mjs → list-O2w5xd1q.mjs} +4 -6
- package/dist/{list-KxQNqp4T.mjs → list-th_Ym6Cv.mjs} +6 -8
- package/dist/{login-Bt6j6yBM.mjs → login-hKlYsAa1.mjs} +8 -10
- package/dist/{logout-ANkL02p0.mjs → logout-DO8GVC6b.mjs} +4 -6
- package/dist/measure-R3T20wnB.mjs +25 -0
- package/dist/{measure-DoJvtCaA.mjs → measure-S9WszHre.mjs} +5 -4
- package/dist/{parameter-values-D4J8Ctu0.mjs → parameter-values-BJb2GuLz.mjs} +7 -9
- package/dist/{parse-enum-BL9i_brN.mjs → parse-enum-Cfne2suT.mjs} +1 -1
- package/dist/{parse-id-D4LeTUsP.mjs → parse-id-DfY0Lugw.mjs} +1 -1
- package/dist/{parse-ref-CB_KvF9h.mjs → parse-ref-C_MsXYI6.mjs} +1 -1
- package/dist/{path-5nQgdvrs.mjs → path-DzhQVCH8.mjs} +4 -6
- package/dist/{poll-BpAJpvb-.mjs → poll-D1Yg78c3.mjs} +2 -2
- package/dist/{poll-task-TilgciQn.mjs → poll-task-DLUZaglY.mjs} +2 -2
- package/dist/{preflight-OfHU3Toi.mjs → preflight-Cy2jUSca.mjs} +4 -5
- package/dist/{process-j8UHMHc2.mjs → process-D5HN1wpT.mjs} +1 -1
- package/dist/{prompt-C85xd9HR.mjs → prompt-ZG9Drin_.mjs} +1 -1
- package/dist/{publish-DKiqyDwo.mjs → publish-3hmHoaX-.mjs} +7 -9
- package/dist/{query-CQ3xXa9P.mjs → query-DTASj9Zu.mjs} +9 -10
- package/dist/{query-BWJ5h1g3.mjs → query-DkZViD_3.mjs} +15 -15
- package/dist/{query-result-D6mfoVfQ.mjs → query-result-CbTFdlSf.mjs} +1 -1
- package/dist/{remove-collection-CO-aMzTO.mjs → remove-collection-D3wH9H6R.mjs} +7 -9
- package/dist/replace-CFzqkZXs.mjs +42 -0
- package/dist/requests-KBiY9UYy.mjs +96 -0
- package/dist/{rescan-values-DpL6LGAK.mjs → rescan-values-B1WycObS.mjs} +7 -9
- package/dist/{resolve-Dj2MTBkn.mjs → resolve-Ct084wx3.mjs} +1 -1
- package/dist/{run-DUcdaZs3.mjs → run-B8qEEdC8.mjs} +4 -6
- package/dist/{run-QYJ-mAaG.mjs → run-cw0qTEQ7.mjs} +7 -9
- package/dist/{runs-DgasTnGd.mjs → runs-BOA4kK_X.mjs} +6 -8
- package/dist/{runtime-BJtuxWM8.mjs → runtime-B-c-Fc2i.mjs} +3 -4
- package/dist/{schema-tables-ooYjimrV.mjs → schema-tables-DRYzSVcW.mjs} +6 -8
- package/dist/{schemas-HjFPzsd-.mjs → schemas-BiMjD25L.mjs} +4 -6
- package/dist/{search-vaT5EwhG.mjs → search-DjKxRXO5.mjs} +4 -6
- package/dist/{segment-TXktTCfU.mjs → segment-BPb1H6DW.mjs} +6 -5
- package/dist/segment-CZkk0g79.mjs +25 -0
- package/dist/{selectors-DlmZpo2L.mjs → selectors-B7MJUn3I.mjs} +3 -3
- package/dist/{set-active-oZOUe9V7.mjs → set-active-CF868qdW.mjs} +4 -6
- package/dist/{set-CLHJauzG.mjs → set-kyoORFG3.mjs} +10 -10
- package/dist/setting-BZgjURQ_.mjs +20 -0
- package/dist/{setup-D1de5Sbc.mjs → setup-D9joJYPb.mjs} +11 -12
- package/dist/{skills-B6gfH0iR.mjs → skills-BqI05u72.mjs} +1 -1
- package/dist/{skills-NhgVypJ7.mjs → skills-D8NrJxjp.mjs} +3 -3
- package/dist/{snippet-CtA2Pkoa.mjs → snippet-DWiXNy4T.mjs} +7 -4
- package/dist/snippet-y_FzKxaQ.mjs +22 -0
- package/dist/{stash-DoRwelwY.mjs → stash-BVMerTaF.mjs} +7 -9
- package/dist/{status-CmRgHTrV.mjs → status-C-0jFjFn.mjs} +4 -6
- package/dist/{status-BpMOlfsA.mjs → status-x8bDOa1i.mjs} +6 -8
- package/dist/{summary-BEu7pmpq.mjs → summary-B-R9SdMF.mjs} +5 -7
- package/dist/{sync-schema-DTUXubMg.mjs → sync-schema-wne2KXIW.mjs} +9 -11
- package/dist/{table-DE3i82T_.mjs → table-C3RIKiYM.mjs} +16 -4
- package/dist/table-CS2-2INi.mjs +21 -0
- package/dist/transform-6hqM1DXA.mjs +31 -0
- package/dist/{transform-DEF38FWe.mjs → transform-JQel7e5H.mjs} +31 -5
- package/dist/transform-job-DuERhLaj.mjs +25 -0
- package/dist/transform-tag-DaNKreDj.mjs +21 -0
- package/dist/{transforms-CWvMpLc9.mjs → transforms-DB2WNP2R.mjs} +5 -7
- package/dist/{tree-D18vYSe4.mjs → tree-BIOphGVs.mjs} +4 -6
- package/dist/{unpublish-CJbL4ZsC.mjs → unpublish-BWM36ZTg.mjs} +5 -7
- package/dist/{update-mr9todHq.mjs → update-6umfSz5t.mjs} +9 -10
- package/dist/{update-BjjZIe2W.mjs → update-7Ts7KrB8.mjs} +9 -10
- package/dist/{update-Doia9MP_.mjs → update-BCbv880u.mjs} +12 -13
- package/dist/{update-CSxwZ2us.mjs → update-BchtHlbH.mjs} +10 -11
- package/dist/{update-BvsvyBw9.mjs → update-BiUeEGU-.mjs} +12 -13
- package/dist/{update-DhOfrW1j.mjs → update-BlzcZwRQ.mjs} +18 -15
- package/dist/{update-Bos8nnv0.mjs → update-CTZg2Lia.mjs} +13 -14
- package/dist/{update-DV7IY7IQ.mjs → update-DJDuIhYG.mjs} +9 -10
- package/dist/{update-Dxa_6H2A.mjs → update-HxYcvpSq.mjs} +15 -15
- package/dist/{update-Ck0Kxv8u.mjs → update-Sz0QRGWB.mjs} +9 -10
- package/dist/{update-dashcard-CZUWZhal.mjs → update-dashcard-CfDpy7Lz.mjs} +11 -11
- package/dist/{update-7DacwIvi.mjs → update-zfLbmC-H.mjs} +9 -10
- package/dist/{upgrade-CBW8V9qZ.mjs → upgrade-BWl0VjMK.mjs} +5 -7
- package/dist/upload-CPzOhGeX.mjs +16 -0
- package/dist/{uuid-D6JVJ-R1.mjs → uuid-D_YeqDui.mjs} +3 -5
- package/dist/{validate-BqNW4Sk1.mjs → validate-clAWO3X-.mjs} +1 -2
- package/dist/{validate-query-CcZVKYPV.mjs → validate-query-CsK2_2_u.mjs} +2 -3
- package/dist/{values-DBvuGnnA.mjs → values-DSk8ZJ3B.mjs} +5 -7
- package/dist/{verify-LIShMNZ2.mjs → verify-DkQdLjf3.mjs} +2 -2
- package/dist/{wait-DUHze3_B.mjs → wait-DvSsMjea.mjs} +6 -8
- package/dist/{wait-flags-Ybpt98PK.mjs → wait-flags-dXGThljd.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +31 -22
- package/skill-data/dashboard/SKILL.md +130 -0
- package/skill-data/data-workflow/SKILL.md +17 -15
- package/skill-data/data-workflow/references/building-clean-tables.md +1 -1
- package/skill-data/document/SKILL.md +3 -3
- package/skill-data/git-sync/SKILL.md +5 -5
- package/skill-data/mbql/SKILL.md +17 -17
- package/skill-data/mbql/references/operators.md +4 -3
- package/skill-data/metadata/SKILL.md +78 -0
- package/skill-data/metadata/references/semantic-types.md +83 -0
- package/skill-data/native-sql/SKILL.md +118 -0
- package/skill-data/native-sql/references/template-tags.md +178 -0
- package/skill-data/transform/SKILL.md +6 -6
- package/skill-data/visualization/SKILL.md +3 -3
- package/skill-data/visualization/references/settings.md +2 -0
- package/dist/add-collection-Dek6kiRI.mjs +0 -11
- package/dist/auth-Kv2MRkRk.mjs +0 -22
- package/dist/capabilities-N0jo5U7S.mjs +0 -239
- package/dist/card-Bp58WEUF.mjs +0 -26
- package/dist/collection-D8TI20Ir.mjs +0 -23
- package/dist/dashboard-C9pQCnX6.mjs +0 -28
- package/dist/db-DWykmBOh.mjs +0 -28
- package/dist/document-DNDm8_Py.mjs +0 -22
- package/dist/error-5H_tcfL8.mjs +0 -227
- package/dist/field-CFt1-KDR.mjs +0 -21
- package/dist/get-CDLa6LiC.mjs +0 -50
- package/dist/git-sync-ByvjqSiy.mjs +0 -31
- package/dist/is-dirty-D7UMN0mt.mjs +0 -10
- package/dist/manifest-BVf8P4bl.mjs +0 -126
- package/dist/measure-CgFwtL1r.mjs +0 -25
- package/dist/metadata-ClehtgZj.mjs +0 -39
- package/dist/metadata-DplshwI3.mjs +0 -38
- package/dist/notice-DyVl5aYB.mjs +0 -206
- package/dist/segment-BPC725mo.mjs +0 -25
- package/dist/setting-DHYO-W5g.mjs +0 -20
- package/dist/snippet-DtLmHr2J.mjs +0 -22
- package/dist/table-B1iBqmNu.mjs +0 -22
- package/dist/transform-BuIooRQh.mjs +0 -31
- package/dist/transform-job-C3yz0krA.mjs +0 -25
- package/dist/transform-tag-CJD6mJUe.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-CtVziW85.mjs} +0 -0
- /package/dist/{transform-tag-rsIrckCM.mjs → transform-tag-wFiWmiyO.mjs} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/document/index.ts
|
|
5
|
+
var document_default = defineCommandGroup({
|
|
6
|
+
name: "document",
|
|
7
|
+
description: "Manage Metabase documents",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "document",
|
|
10
|
+
purpose: "author the ProseMirror document body"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
list: () => import("./list-Br48kL09.mjs").then((mod) => mod.default),
|
|
14
|
+
get: () => import("./get-B6ZJCJ8H.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-CZ9KFnbi.mjs").then((mod) => mod.default),
|
|
16
|
+
update: () => import("./update-7Ts7KrB8.mjs").then((mod) => mod.default),
|
|
17
|
+
archive: () => import("./archive-DCPw3df6.mjs").then((mod) => mod.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { document_default as default };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import { readBody } from "./body-IcJ5kFtk.mjs";
|
|
8
|
-
import { bodyInputFlags } from "./body-flags-DWTTxJpP.mjs";
|
|
1
|
+
import { ConfigError, connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./input-m9ctfLxZ.mjs";
|
|
5
|
+
import { readBody } from "./body-C1_AaTS4.mjs";
|
|
6
|
+
import { bodyInputFlags } from "./body-flags-CgHgJBRC.mjs";
|
|
9
7
|
import { z } from "zod";
|
|
10
8
|
|
|
11
9
|
//#region src/domain/eid-translation.ts
|
|
@@ -32,7 +30,7 @@ const EID_MODELS = [
|
|
|
32
30
|
"user"
|
|
33
31
|
];
|
|
34
32
|
const EidModel = z.enum(EID_MODELS);
|
|
35
|
-
const EidTranslateInput = z.object({ entity_ids: z.partialRecord(EidModel, z.array(z.string().
|
|
33
|
+
const EidTranslateInput = z.object({ entity_ids: z.partialRecord(EidModel, z.array(z.string().length(21))) }).loose();
|
|
36
34
|
const EidTranslateEntry = z.object({
|
|
37
35
|
status: z.string(),
|
|
38
36
|
type: EidModel,
|
|
@@ -90,11 +88,12 @@ var eid_default = defineMetabaseCommand({
|
|
|
90
88
|
description: "Comma-separated EIDs to translate (used with --model)"
|
|
91
89
|
}
|
|
92
90
|
},
|
|
91
|
+
inputSchema: EidTranslateInput,
|
|
93
92
|
outputSchema: EidTranslateResult,
|
|
94
93
|
examples: [
|
|
95
|
-
"mb eid --model card
|
|
94
|
+
"mb eid --model card Ss3mHTaWs8T-VLPYEeraG,5oQpn8LO4qXBRZ1Wq3jIp",
|
|
96
95
|
"mb eid --file translate.json",
|
|
97
|
-
"mb eid --body '{\"entity_ids\":{\"card\":[\"
|
|
96
|
+
"mb eid --body '{\"entity_ids\":{\"card\":[\"Ss3mHTaWs8T-VLPYEeraG\"]}}'"
|
|
98
97
|
],
|
|
99
98
|
async run({ args, ctx, getClient }) {
|
|
100
99
|
const pair = requireBothOrNeither({
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { warn } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Ybpt98PK.mjs";
|
|
9
|
-
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-TilgciQn.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary, warn } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import "./poll-D1Yg78c3.mjs";
|
|
6
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-dXGThljd.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-DLUZaglY.mjs";
|
|
10
8
|
import { z } from "zod";
|
|
11
9
|
|
|
12
10
|
//#region src/commands/git-sync/export.ts
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/field/index.ts
|
|
5
|
+
var field_default = defineCommandGroup({
|
|
6
|
+
name: "field",
|
|
7
|
+
description: "Manage Metabase fields",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "metadata",
|
|
10
|
+
purpose: "semantic types, FK targets, visibility, dropdown behavior"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
get: () => import("./get-C98IFgFi.mjs").then((m) => m.default),
|
|
14
|
+
values: () => import("./values-DSk8ZJ3B.mjs").then((m) => m.default),
|
|
15
|
+
summary: () => import("./summary-B-R9SdMF.mjs").then((m) => m.default),
|
|
16
|
+
update: () => import("./update-6umfSz5t.mjs").then((m) => m.default)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { field_default as default };
|
|
@@ -119,6 +119,8 @@ const FieldSemanticType = z.enum([
|
|
|
119
119
|
"type/Birthdate",
|
|
120
120
|
"type/Structured",
|
|
121
121
|
"type/SerializedJSON",
|
|
122
|
+
"type/JSON",
|
|
123
|
+
"type/DruidJSON",
|
|
122
124
|
"type/XML",
|
|
123
125
|
"type/User",
|
|
124
126
|
"type/Author",
|
|
@@ -218,17 +220,17 @@ const fieldView = {
|
|
|
218
220
|
};
|
|
219
221
|
const NonBlankNullable = z.string().min(1).nullable();
|
|
220
222
|
const FieldUpdateInput = z.object({
|
|
221
|
-
display_name:
|
|
223
|
+
display_name: NonBlankNullable.optional(),
|
|
222
224
|
description: NonBlankNullable.optional(),
|
|
223
225
|
caveats: NonBlankNullable.optional(),
|
|
224
226
|
points_of_interest: NonBlankNullable.optional(),
|
|
225
227
|
semantic_type: FieldSemanticType.nullable().optional(),
|
|
226
228
|
coercion_strategy: FieldCoercionStrategy.nullable().optional(),
|
|
227
229
|
fk_target_field_id: z.number().int().positive().nullable().optional(),
|
|
228
|
-
visibility_type: FieldVisibilityType.optional(),
|
|
229
|
-
has_field_values: FieldValuesType.optional(),
|
|
230
|
+
visibility_type: FieldVisibilityType.nullable().optional(),
|
|
231
|
+
has_field_values: FieldValuesType.nullable().optional(),
|
|
230
232
|
settings: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
231
|
-
nfc_path: z.array(z.string()).nullable().optional(),
|
|
233
|
+
nfc_path: z.array(z.string().min(1)).nullable().optional(),
|
|
232
234
|
json_unfolding: z.boolean().nullable().optional()
|
|
233
235
|
}).loose();
|
|
234
236
|
const FieldValues = z.object({
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
-
import { TableQueryMetadata } from "./table-DE3i82T_.mjs";
|
|
1
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { FieldCompact, fieldView } from "./field-DsXTeqBy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
6
|
+
import { TableQueryMetadata } from "./table-C3RIKiYM.mjs";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/table/fields.ts
|
|
11
9
|
const FieldListEnvelope = listEnvelopeSchema(FieldCompact);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./embedding-CKdw8q7p.mjs";
|
|
5
|
+
import "./field-DsXTeqBy.mjs";
|
|
6
|
+
import "./parameter-BZ6y-Gfs.mjs";
|
|
7
|
+
import { Card, cardView } from "./card-B8G5jQQT.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
10
9
|
|
|
11
10
|
//#region src/commands/card/get.ts
|
|
12
11
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
-
import { Document, documentView } from "./document-1W7NRaO_.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import { Document, documentView } from "./document-CL4ML5FN.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/document/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
-
import { Snippet, snippetView } from "./snippet-CtA2Pkoa.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import { Snippet, snippetView } from "./snippet-DWiXNy4T.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/snippet/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./collection-DrLpA1SO.mjs";
|
|
7
|
-
import { Library, fetchLibrary, libraryView } from "./resolve-Dj2MTBkn.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./collection-CFoLPrY5.mjs";
|
|
5
|
+
import { Library, fetchLibrary, libraryView } from "./resolve-Ct084wx3.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/library/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Field, fieldView } from "./field-CMY_LWUe.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { Field, fieldView } from "./field-DsXTeqBy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/field/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
-
import { Transform, transformView } from "./transform-DEF38FWe.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import { Transform, transformView } from "./transform-JQel7e5H.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/transform/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
-
import { TransformJob, transformJobView } from "./transform-job-CtixL4An.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import { TransformJob, transformJobView } from "./transform-job-CtVziW85.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/transform-job/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
-
import { Segment, segmentView } from "./segment-TXktTCfU.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import { Segment, segmentView } from "./segment-BPb1H6DW.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/segment/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Collection, collectionView } from "./collection-DrLpA1SO.mjs";
|
|
7
|
-
import { parseCollectionRef } from "./parse-ref-CB_KvF9h.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { Collection, collectionView } from "./collection-CFoLPrY5.mjs";
|
|
5
|
+
import { parseCollectionRef } from "./parse-ref-C_MsXYI6.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/collection/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { SettingValue, settingValueView } from "./setting-m46MUtW5.mjs";
|
|
7
|
-
import { parseSettingKey, rethrowSettingError } from "./key-bltP32Pm.mjs";
|
|
1
|
+
import { connectionFlags, formatScalar, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJsonOrPlain } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { SettingValue, settingValueView } from "./setting-Cko6bE_w.mjs";
|
|
5
|
+
import { parseSettingKey, rethrowSettingError } from "./key-Ge4VwWvS.mjs";
|
|
8
6
|
import { z } from "zod";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/setting/get.ts
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { DashboardDetail, dashboardView } from "./dashboard-DOplbKyQ.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./embedding-CKdw8q7p.mjs";
|
|
5
|
+
import "./parameter-BZ6y-Gfs.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
7
|
+
import { DashboardDetail, dashboardView } from "./dashboard-B-MTpfeS.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/dashboard/get.ts
|
|
11
10
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ConfigError } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { renderList, writeText } from "./capabilities-N0jo5U7S.mjs";
|
|
6
|
-
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-B6gfH0iR.mjs";
|
|
1
|
+
import { ConfigError, listEnvelopeSchema, outputFlags, renderList, wrapList, writeText } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseCsv } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { SkillContent, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames } from "./skills-BqI05u72.mjs";
|
|
7
5
|
|
|
8
6
|
//#region src/commands/skills/get.ts
|
|
9
7
|
const SkillGetEnvelope = listEnvelopeSchema(SkillContent);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./field-DsXTeqBy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
6
|
+
import "./table-C3RIKiYM.mjs";
|
|
7
|
+
import { Database, databaseView } from "./database-CIbVSfua.mjs";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
//#region src/commands/db/hints.ts
|
|
11
|
+
function fullRollupOversizeHint(dbId) {
|
|
12
|
+
return `this database is too large for a full rollup — get the table map with \`mb db get ${dbId} --include tables\`, then fetch fields per table of interest with \`mb table fields <table-id>\``;
|
|
13
|
+
}
|
|
14
|
+
function tableMapOversizeHint(dbId) {
|
|
15
|
+
return `this database has too many tables for one map — traverse by schema with \`mb db schemas ${dbId}\` + \`mb db schema-tables ${dbId} <schema>\`, or find tables by name with \`mb search <term> --models table --db-id ${dbId}\``;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/commands/db/get.ts
|
|
20
|
+
const DatabaseGetInclude = z.enum(["tables", "tables.fields"]);
|
|
21
|
+
function includeOversizeHint(include, id) {
|
|
22
|
+
if (include === "tables.fields") return fullRollupOversizeHint(id);
|
|
23
|
+
if (include === "tables") return tableMapOversizeHint(id);
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
var get_default = defineMetabaseCommand({
|
|
27
|
+
meta: {
|
|
28
|
+
name: "get",
|
|
29
|
+
description: "Get a database by id"
|
|
30
|
+
},
|
|
31
|
+
details: "`--include tables` returns the table map (id, name, schema, description per table) — one call that fits most databases. `--include tables.fields` is the full rollup; on all but small databases prefer the map plus `mb table fields <table-id>` per table of interest.",
|
|
32
|
+
capabilities: { minVersion: 58 },
|
|
33
|
+
args: {
|
|
34
|
+
...outputFlags,
|
|
35
|
+
...profileFlag,
|
|
36
|
+
...connectionFlags,
|
|
37
|
+
include: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: `Hydrate related entities: ${DatabaseGetInclude.options.join("|")}. tables is the compact table map; tables.fields adds every field — fine for small databases, use the map plus table fields <id> for large ones`
|
|
40
|
+
},
|
|
41
|
+
id: {
|
|
42
|
+
type: "positional",
|
|
43
|
+
description: "Database id",
|
|
44
|
+
required: true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
outputSchema: Database,
|
|
48
|
+
examples: [
|
|
49
|
+
"mb db get 1",
|
|
50
|
+
"mb db get 1 --json",
|
|
51
|
+
"mb db get 1 --include tables --json",
|
|
52
|
+
"mb db get 1 --include tables.fields --json"
|
|
53
|
+
],
|
|
54
|
+
async run({ args, ctx, getClient }) {
|
|
55
|
+
const id = parseId(args.id);
|
|
56
|
+
const include = parseEnum(args.include, DatabaseGetInclude, "--include");
|
|
57
|
+
const client = await getClient();
|
|
58
|
+
const database = await client.requestParsed(Database, `/api/database/${id}`, { query: { include } });
|
|
59
|
+
renderItem(database, databaseView, {
|
|
60
|
+
...ctx,
|
|
61
|
+
oversizeHint: includeOversizeHint(include, id)
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { get_default as default };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
-
import { Measure, measureView } from "./measure-DoJvtCaA.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import { Measure, measureView } from "./measure-S9WszHre.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/measure/get.ts
|
|
10
8
|
var get_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
8
|
-
import { Table, TableQueryMetadata, tableView } from "./table-DE3i82T_.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./field-DsXTeqBy.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
6
|
+
import { Table, TableQueryMetadata, tableView } from "./table-C3RIKiYM.mjs";
|
|
9
7
|
import { z } from "zod";
|
|
10
8
|
|
|
9
|
+
//#region src/commands/table/hints.ts
|
|
10
|
+
function tableFieldsOversizeHint(tableId) {
|
|
11
|
+
return `use \`mb table fields ${tableId}\` — list output truncates gracefully instead of failing`;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
11
15
|
//#region src/commands/table/get.ts
|
|
12
16
|
const TableGetInclude = z.enum(["fields"]);
|
|
13
17
|
var get_default = defineMetabaseCommand({
|
|
@@ -42,7 +46,10 @@ var get_default = defineMetabaseCommand({
|
|
|
42
46
|
const client = await getClient();
|
|
43
47
|
if (include === "fields") {
|
|
44
48
|
const table$1 = await client.requestParsed(TableQueryMetadata, `/api/table/${id}/query_metadata`);
|
|
45
|
-
renderItem(table$1, tableView,
|
|
49
|
+
renderItem(table$1, tableView, {
|
|
50
|
+
...ctx,
|
|
51
|
+
oversizeHint: tableFieldsOversizeHint(id)
|
|
52
|
+
});
|
|
46
53
|
return;
|
|
47
54
|
}
|
|
48
55
|
const table = await client.requestParsed(Table, `/api/table/${id}`);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-D4LeTUsP.mjs";
|
|
7
|
-
import { TransformRun, transformRunView } from "./transform-DEF38FWe.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderItem } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import { parseId } from "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import { TransformRun, transformRunView } from "./transform-JQel7e5H.mjs";
|
|
8
6
|
|
|
9
7
|
//#region src/commands/transform/get-run.ts
|
|
10
8
|
var get_run_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
2
|
+
import { defineCommandGroup } from "./group-CILtQqCL.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/git-sync/index.ts
|
|
5
|
+
var git_sync_default = defineCommandGroup({
|
|
6
|
+
name: "git-sync",
|
|
7
|
+
description: "Sync Metabase content with a git remote",
|
|
8
|
+
skills: [{
|
|
9
|
+
skill: "git-sync",
|
|
10
|
+
purpose: "import/export round-trip and dirty checks"
|
|
11
|
+
}],
|
|
12
|
+
subCommands: {
|
|
13
|
+
status: () => import("./status-x8bDOa1i.mjs").then((mod) => mod.default),
|
|
14
|
+
"is-dirty": () => import("./is-dirty-Bb2dfEYs.mjs").then((mod) => mod.default),
|
|
15
|
+
"has-remote-changes": () => import("./has-remote-changes-dLUGr0MD.mjs").then((mod) => mod.default),
|
|
16
|
+
dirty: () => import("./dirty-CH70h5m5.mjs").then((mod) => mod.default),
|
|
17
|
+
"current-task": () => import("./current-task-DxWbw-bU.mjs").then((mod) => mod.default),
|
|
18
|
+
"cancel-task": () => import("./cancel-task-Bggzn4JL.mjs").then((mod) => mod.default),
|
|
19
|
+
wait: () => import("./wait-DvSsMjea.mjs").then((mod) => mod.default),
|
|
20
|
+
import: () => import("./import-Byull6jF.mjs").then((mod) => mod.default),
|
|
21
|
+
export: () => import("./export-CChMg-mL.mjs").then((mod) => mod.default),
|
|
22
|
+
stash: () => import("./stash-BVMerTaF.mjs").then((mod) => mod.default),
|
|
23
|
+
branches: () => import("./branches-BsBzaGIf.mjs").then((mod) => mod.default),
|
|
24
|
+
"create-branch": () => import("./create-branch-Dxn6UnV_.mjs").then((mod) => mod.default),
|
|
25
|
+
"add-collection": () => import("./add-collection-DlAwt2Z3.mjs").then((mod) => mod.default),
|
|
26
|
+
"remove-collection": () => import("./remove-collection-D3wH9H6R.mjs").then((mod) => mod.default)
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { git_sync_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setMetabaseAugment } from "./command-augment-
|
|
1
|
+
import { setMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
2
2
|
import { defineCommand } from "citty";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/group.ts
|
|
@@ -18,6 +18,7 @@ function defineCommandGroup(def) {
|
|
|
18
18
|
examples: [],
|
|
19
19
|
details: null,
|
|
20
20
|
skills: def.skills ?? [],
|
|
21
|
+
inputSchema: null,
|
|
21
22
|
outputSchema: null,
|
|
22
23
|
capabilities: null
|
|
23
24
|
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "./poll-BpAJpvb-.mjs";
|
|
7
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-TilgciQn.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./poll-D1Yg78c3.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-DLUZaglY.mjs";
|
|
8
6
|
import { z } from "zod";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/git-sync/has-remote-changes.ts
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Ybpt98PK.mjs";
|
|
9
|
-
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-TilgciQn.mjs";
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DrDJo_ng.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-B-c-Fc2i.mjs";
|
|
4
|
+
import "./parse-id-DfY0Lugw.mjs";
|
|
5
|
+
import "./poll-D1Yg78c3.mjs";
|
|
6
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-dXGThljd.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-DLUZaglY.mjs";
|
|
10
8
|
import { z } from "zod";
|
|
11
9
|
|
|
12
10
|
//#region src/commands/git-sync/import.ts
|