@metabase/cli 0.1.4 → 0.1.5
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/.claude-plugin/marketplace.json +19 -0
- package/README.md +40 -7
- package/dist/{add-collection-CffaBB-Y.mjs → add-collection-C_iovi9i.mjs} +3 -3
- package/dist/{add-collection-CPL1njYZ.mjs → add-collection-ucsyAMkV.mjs} +6 -6
- package/dist/{api-key-9p1UPnXn.mjs → api-key-BENHbTbV.mjs} +1 -1
- package/dist/{archive-BAcEXbT9.mjs → archive-BKPO8lEO.mjs} +3 -3
- package/dist/{archive-B_B3MQp0.mjs → archive-DdaP94H3.mjs} +3 -3
- package/dist/{archive-uJrslh9r.mjs → archive-Dvzrmdbk.mjs} +3 -3
- package/dist/{archive-GdGm7l2e.mjs → archive-WaEW85NB.mjs} +4 -4
- package/dist/auth-DICRtJDy.mjs +19 -0
- package/dist/{body-D6dHGjMT.mjs → body-XtR7-uCO.mjs} +1 -1
- package/dist/{branches-Bpe40fEd.mjs → branches-XUY4JY-X.mjs} +4 -4
- package/dist/{cancel-BWTY6oYI.mjs → cancel-BrUVO_ax.mjs} +3 -3
- package/dist/{cancel-task--BfiAXfS.mjs → cancel-task-oXheTOB6.mjs} +4 -4
- package/dist/card-l-UmrUIo.mjs +20 -0
- package/dist/{cards-CVlFJxYh.mjs → cards-CONTTAG9.mjs} +3 -3
- package/dist/cli.mjs +28 -25
- package/dist/collection-oV0olVY-.mjs +19 -0
- package/dist/{create-izE3EKCt.mjs → create-Ca9lIDwP.mjs} +3 -3
- package/dist/{create-ov-De5dO.mjs → create-CrUq6sib.mjs} +4 -4
- package/dist/{create-DQVdMT2Y.mjs → create-Cs2xntFG.mjs} +4 -4
- package/dist/{create-doyv3SxU.mjs → create-D3Z878yr.mjs} +3 -3
- package/dist/{create-Bu-YhIDL.mjs → create-DZxUeqdf.mjs} +4 -4
- package/dist/{create-DP8RrLDi.mjs → create-Dq25vsMu.mjs} +4 -4
- package/dist/{create-BzElku2l.mjs → create-Le3Bqn7b.mjs} +3 -3
- package/dist/{create-BykvNpSA.mjs → create-V-q2rU0T.mjs} +4 -4
- package/dist/{create-branch-B49UQyCK.mjs → create-branch-D5u14AxL.mjs} +4 -4
- package/dist/{create-DYoc9IXW.mjs → create-kYpjobrq.mjs} +4 -4
- package/dist/{create-Cz3_Wxdt.mjs → create-swbIXdo5.mjs} +3 -3
- package/dist/{credentials-xKSoP6eh.mjs → credentials-BIQ1cEzM.mjs} +8 -7
- package/dist/{current-task-DweHmjlk.mjs → current-task-DCq7rk9V.mjs} +4 -4
- package/dist/dashboard-hbKDd36X.mjs +20 -0
- package/dist/{database-BNlvldUL.mjs → database-BSvzYlRe.mjs} +3 -3
- package/dist/db-qVK6NsdB.mjs +22 -0
- package/dist/{delete-DojHmKeM.mjs → delete-CUx6RT9e.mjs} +4 -4
- package/dist/{delete-DIz9Tgz5.mjs → delete-VTAS9EUt.mjs} +4 -4
- package/dist/{delete-table-DjN8E3sd.mjs → delete-table-DzUneMKe.mjs} +4 -4
- package/dist/{deprovision-_HDcBApz.mjs → deprovision-CpJfGgCt.mjs} +8 -8
- package/dist/{dirty-Co8V0SZ3.mjs → dirty-nkAOXxgC.mjs} +4 -4
- package/dist/{docker-D9sC_37H.mjs → docker-D5FTIoD0.mjs} +3 -3
- package/dist/{eid-Cr5r-t9B.mjs → eid-CDFXX_6H.mjs} +1 -1
- package/dist/{export-CVMFxoo1.mjs → export-BWvY7X_G.mjs} +5 -5
- package/dist/field-C0LE7RQI.mjs +18 -0
- package/dist/{fields-Coha7vKv.mjs → fields-dH16G5UV.mjs} +3 -3
- package/dist/get-7macOPAI.mjs +79 -0
- package/dist/{get-AOvWo48B.mjs → get-B08K82JV.mjs} +4 -4
- package/dist/{get-bNtA7vWe.mjs → get-B7i_nYJB.mjs} +4 -4
- package/dist/{get-CJwzbVjc.mjs → get-BcqxMVC1.mjs} +3 -3
- package/dist/{get-DXv2FkA7.mjs → get-BnBRKHr7.mjs} +3 -3
- package/dist/{get-BVTz9B_H.mjs → get-C6SR3A9t.mjs} +2 -2
- package/dist/{get-BSKoL8ek.mjs → get-CACaBFLt.mjs} +3 -3
- package/dist/{get-C_6K7MSW.mjs → get-CKxlhMy1.mjs} +2 -2
- package/dist/{get-Be6EFh94.mjs → get-D8e_RzZ0.mjs} +3 -3
- package/dist/{get-Br6WayZv.mjs → get-D96QEU49.mjs} +3 -3
- package/dist/{get-DZrV7v9d.mjs → get-DAWofnzK.mjs} +3 -3
- package/dist/{get-BOtKerj8.mjs → get-DNN1X2gN.mjs} +3 -3
- package/dist/{get-BxzCKVC6.mjs → get-R7OaVL_t.mjs} +4 -4
- package/dist/{get-run-CSrXHDGS.mjs → get-run-CwFuR4Uw.mjs} +4 -4
- package/dist/git-sync-DV7YjniX.mjs +28 -0
- package/dist/{has-remote-changes-D6xgsuUr.mjs → has-remote-changes-BAnIXQXU.mjs} +4 -4
- package/dist/{import-Dv0ORSNw.mjs → import-CfdPEMng.mjs} +5 -5
- package/dist/{is-dirty-WNi8a6O9.mjs → is-dirty-CZWcG0vj.mjs} +2 -2
- package/dist/is-dirty-LxVbm2C5.mjs +10 -0
- package/dist/{items-CTcAMknV.mjs → items-DqwahOKf.mjs} +3 -3
- package/dist/{license-DLLTpFvP.mjs → license-Cb6ewEJO.mjs} +3 -3
- package/dist/{list-DjhZU-FY.mjs → list-Bkd7Nbds.mjs} +2 -2
- package/dist/{list-DhWG5jiW.mjs → list-BpNU1neq.mjs} +2 -2
- package/dist/{list-CocYwmnI.mjs → list-BqNMpIXy.mjs} +2 -2
- package/dist/{list-DvUjMQze.mjs → list-CQkDqphl.mjs} +2 -2
- package/dist/{list-xQmtQPSl.mjs → list-D41gfkKb.mjs} +2 -2
- package/dist/{list-CbJeP0Z6.mjs → list-DBOYoJtA.mjs} +3 -3
- package/dist/{list-NiwCL_1X.mjs → list-DJcGwJ4W.mjs} +3 -3
- package/dist/{list-BNzdnE1c.mjs → list-DV6CONhp.mjs} +2 -2
- package/dist/{list-DI7K3K6k.mjs → list-J277Qtki.mjs} +3 -3
- package/dist/list-L63TpX1t.mjs +44 -0
- package/dist/{list-DSs0Q78i.mjs → list-ViT2KWhv.mjs} +3 -3
- package/dist/{list-BxdXvGTK.mjs → list-oftHLFbE.mjs} +2 -2
- package/dist/{list-FXuSCYpa.mjs → list-vF4EneaE.mjs} +3 -3
- package/dist/{list-8oVMvlLV.mjs → list-yxVAE1S7.mjs} +2 -2
- package/dist/{login-SXsSH0I1.mjs → login-D1nZwgKv.mjs} +2 -2
- package/dist/{logout-bgOXjxbN.mjs → logout-DD4q5whi.mjs} +2 -2
- package/dist/{logs-BnwVbFuD.mjs → logs-Ci3mJE2z.mjs} +6 -6
- package/dist/measure-XhJuL77y.mjs +19 -0
- package/dist/{metadata-B0WZT3Yb.mjs → metadata-29_qlqbz.mjs} +3 -3
- package/dist/{metadata-Bu2HOmuX.mjs → metadata-BDat-jN9.mjs} +3 -3
- package/dist/{package-D-aVYFKM.mjs → package-DFUprkSZ.mjs} +7 -2
- package/dist/{parse-id-B3B-0hUA.mjs → parse-id-CysSaCbf.mjs} +1 -1
- package/dist/{parse-schemas-DgtVLikM.mjs → parse-schemas-B10n01ez.mjs} +1 -1
- package/dist/path-DLByFMMA.mjs +58 -0
- package/dist/{poll-BCnrcUVf.mjs → poll-p9Y7-JEQ.mjs} +1 -1
- package/dist/{poll-task-0b1V6G-8.mjs → poll-task-BQe0NvJZ.mjs} +2 -2
- package/dist/{preflight-5ACaYnDp.mjs → preflight-CvFu0Cct.mjs} +1 -1
- package/dist/{provision-29Zt62Ft.mjs → provision-BP-b4Are.mjs} +9 -9
- package/dist/{ps-C5FOLwL2.mjs → ps-Bk6unzaX.mjs} +6 -6
- package/dist/{ps-BMFiRCi4.mjs → ps-BxQdpkr5.mjs} +2 -2
- package/dist/{query-aba8MEe_.mjs → query-C7zTlFJA.mjs} +3 -3
- package/dist/{query-DxA353Hy.mjs → query-CFH4nBlK.mjs} +3 -3
- package/dist/{remove-BfgU_CQi.mjs → remove-BuWxx3hY.mjs} +2 -2
- package/dist/{remove-B3ZEqBF7.mjs → remove-C6bS0Z6w.mjs} +6 -6
- package/dist/{remove-collection-Brv72xUe.mjs → remove-collection-Bc4roCq0.mjs} +6 -6
- package/dist/{rescan-values-DIAdjoq7.mjs → rescan-values-DabyRYQ_.mjs} +3 -3
- package/dist/{run-CgXRo0hD.mjs → run-Cl-9RtC4.mjs} +6 -6
- package/dist/{runs-DtLRw6xg.mjs → runs-BH6s1Zao.mjs} +4 -4
- package/dist/{runtime-Br8L4NPm.mjs → runtime-CDu6fykq.mjs} +1 -1
- package/dist/{schema-tables-DiKMY6lx.mjs → schema-tables-i58wp_p3.mjs} +3 -3
- package/dist/{schemas-Bvr8cOzo.mjs → schemas-_m8RYRl9.mjs} +3 -3
- package/dist/{search-BT_TCcTd.mjs → search-DObOsjbP.mjs} +3 -3
- package/dist/segment-DfxZdJmR.mjs +19 -0
- package/dist/{set-DtG0KH6P.mjs → set-CJA9dpK6.mjs} +2 -2
- package/dist/{set-CAIkXlPy.mjs → set-CwVWeAsi.mjs} +3 -3
- package/dist/{setting-BDOi5fk_.mjs → setting-Czy4ws6h.mjs} +3 -3
- package/dist/{setup-LjTvvlJy.mjs → setup-DqBOe3HZ.mjs} +3 -3
- package/dist/skills-C2rTVj0n.mjs +18 -0
- package/dist/skills-CHU7uuDU.mjs +191 -0
- package/dist/snippet-BCY4KHBU.mjs +19 -0
- package/dist/{start-CXKt0Q7A.mjs → start-CfruN4wF.mjs} +9 -8
- package/dist/{stash-dRw1UEwg.mjs → stash-CWuXKSZq.mjs} +5 -5
- package/dist/{status-BWep0PFe.mjs → status-1oUnw803.mjs} +2 -2
- package/dist/{status-C2niMfrQ.mjs → status-D-RYZB9G.mjs} +5 -5
- package/dist/{status-BEONmJWv.mjs → status-J9HIDcA5.mjs} +2 -2
- package/dist/{stop-BdedYfwU.mjs → stop-D8Hr4cKX.mjs} +7 -7
- package/dist/{summary-BPDA4K99.mjs → summary-Lt2XLBK9.mjs} +3 -3
- package/dist/{sync-schema-D95LLRpf.mjs → sync-schema-BDElSynU.mjs} +3 -3
- package/dist/table-BwX3Ib5f.mjs +19 -0
- package/dist/transform-iaAi37V0.mjs +24 -0
- package/dist/transform-job-Bemonf82.mjs +19 -0
- package/dist/{translate-CG_Ka0dO.mjs → translate-Cqsd0Px5.mjs} +3 -3
- package/dist/{tree-DazZT7dR.mjs → tree-DfvjDjmk.mjs} +2 -2
- package/dist/{update-DTIWJxob.mjs → update-B0bjPqKC.mjs} +4 -4
- package/dist/{update-CJSDB6S8.mjs → update-BYduslhn.mjs} +9 -9
- package/dist/{update-BBfvArCx.mjs → update-BgcroYkF.mjs} +5 -5
- package/dist/{update-djgvzO3K.mjs → update-CVxOxmt6.mjs} +4 -4
- package/dist/{update-DE6kjV-f.mjs → update-CqnDMNtZ.mjs} +5 -5
- package/dist/{update-bW-i6gjZ.mjs → update-D9Z8cL7h.mjs} +4 -4
- package/dist/{update-659eQR1L.mjs → update-DuA8-cCq.mjs} +4 -4
- package/dist/{update-9kVyE3BJ.mjs → update-DzgXF082.mjs} +5 -5
- package/dist/{update-dashcard-BhD5x__K.mjs → update-dashcard-CQ3kmmss.mjs} +4 -4
- package/dist/{update-WyRKlQPh.mjs → update-qnFY5IuC.mjs} +5 -5
- package/dist/{update-DSWZSfpw.mjs → update-zp7pCBZH.mjs} +4 -4
- package/dist/{upgrade-D58rvXHM.mjs → upgrade-CIgTr2CG.mjs} +3 -3
- package/dist/{url-DKkSu2D8.mjs → url-B5MgZXzg.mjs} +6 -6
- package/dist/{uuid-BF20B59s.mjs → uuid-CJz9TmHI.mjs} +2 -2
- package/dist/{values-DyjmpcbT.mjs → values-BXN6tx1i.mjs} +3 -3
- package/dist/{wait-CeUPCgdc.mjs → wait-BFqBlg0y.mjs} +2 -2
- package/dist/{wait-flags-BR-yqe7y.mjs → wait-flags-CN-e9zNq.mjs} +2 -2
- package/dist/{wait-DhkTaV6E.mjs → wait-tDp9ZOou.mjs} +5 -5
- package/dist/workspace-BBsT0H0g.mjs +24 -0
- package/dist/{workspace-credentials-Cctumbru.mjs → workspace-credentials-4lIxxz4g.mjs} +2 -41
- package/dist/yaml-ECiog374.mjs +43 -0
- package/package.json +5 -2
- package/skill-data/core/SKILL.md +575 -0
- package/skill-data/git-sync/SKILL.md +196 -0
- package/skill-data/transform/SKILL.md +235 -0
- package/skill-data/workspace/SKILL.md +408 -0
- package/skills/metabase-cli/SKILL.md +42 -0
- package/dist/auth-N4w5xtwW.mjs +0 -19
- package/dist/card-4rZRb5bc.mjs +0 -20
- package/dist/collection-Cp_B02I4.mjs +0 -19
- package/dist/dashboard-BYBiA-IG.mjs +0 -20
- package/dist/db-CObVU22j.mjs +0 -22
- package/dist/field-CbljasCH.mjs +0 -18
- package/dist/git-sync-BGkS8o5b.mjs +0 -28
- package/dist/is-dirty-BOZ4xz92.mjs +0 -10
- package/dist/measure-B54VtKym.mjs +0 -19
- package/dist/segment-C2ui5dSd.mjs +0 -19
- package/dist/snippet-BcgVYsoR.mjs +0 -19
- package/dist/table-lCNGbvej.mjs +0 -19
- package/dist/transform-BGAm1s4f.mjs +0 -24
- package/dist/transform-job-cNTJ30pm.mjs +0 -19
- package/dist/workspace-DtcBldk0.mjs +0 -24
- /package/dist/{delete-runtime-BkAdygbs.mjs → delete-runtime-DfFMWJJ6.mjs} +0 -0
- /package/dist/{process-FjsqDwKo.mjs → process-zJeVJZTM.mjs} +0 -0
- /package/dist/{snippet-Dw0Sjzkr.mjs → snippet-CSWqkslB.mjs} +0 -0
- /package/dist/{transform-IEX4Mx3X.mjs → transform-DR4ejuPM.mjs} +0 -0
- /package/dist/{transform-job-Csr86muI.mjs → transform-job-BrhOLO4M.mjs} +0 -0
- /package/dist/{workspace-C5q4nbpY.mjs → workspace-DUfqhPm5.mjs} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./poll-
|
|
11
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
12
|
-
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-
|
|
13
|
-
import { waitForDatabaseProvisioned } from "./wait-
|
|
14
|
-
import { parseSchemasCsv } from "./parse-schemas-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
|
+
import "./poll-p9Y7-JEQ.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-CN-e9zNq.mjs";
|
|
12
|
+
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-DUfqhPm5.mjs";
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-BFqBlg0y.mjs";
|
|
14
|
+
import { parseSchemasCsv } from "./parse-schemas-B10n01ez.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/workspace/database/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-BrhOLO4M.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/transform-job/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
10
|
import "./field-B3gvaqpK.mjs";
|
|
11
11
|
import { Card, CardUpdateInput, cardView } from "./card-CQxvHeyP.mjs";
|
|
12
12
|
import "./validate-CB0bu50i.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
10
|
import "./field-B3gvaqpK.mjs";
|
|
11
11
|
import "./card-CQxvHeyP.mjs";
|
|
12
12
|
import "./validate-CB0bu50i.mjs";
|
|
13
13
|
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-CnMD04PQ.mjs";
|
|
14
|
-
import { preflightDashcardCardReferences } from "./preflight-
|
|
14
|
+
import { preflightDashcardCardReferences } from "./preflight-CvFu0Cct.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/dashboard/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
10
|
import { Field, FieldUpdateInput, fieldView } from "./field-B3gvaqpK.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/field/update.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
10
|
import "./validate-CB0bu50i.mjs";
|
|
11
11
|
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
12
|
import { Segment, SegmentUpdateInput, segmentView } from "./segment-BMrUBz94.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
10
|
import "./validate-CB0bu50i.mjs";
|
|
11
11
|
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-
|
|
12
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-DR4ejuPM.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/transform/update.ts
|
|
15
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
10
|
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-CnMD04PQ.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update-dashcard.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-CSWqkslB.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/snippet/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
10
10
|
import "./validate-CB0bu50i.mjs";
|
|
11
11
|
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CavIA0Q2.mjs";
|
|
12
12
|
import { Measure, MeasureUpdateInput, measureView } from "./measure-BEQfnLdN.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { package_default } from "./package-
|
|
1
|
+
import { package_default } from "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem, writeText } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage } from "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, outputFlags, parseJson, throwIfAborted } from "./runtime-
|
|
5
|
+
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, outputFlags, parseJson, throwIfAborted } from "./runtime-CDu6fykq.mjs";
|
|
6
6
|
import { promptConfirm } from "./prompt-DgDNy_Pc.mjs";
|
|
7
|
-
import { streamProcess } from "./process-
|
|
7
|
+
import { streamProcess } from "./process-zJeVJZTM.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { realpathSync } from "node:fs";
|
|
10
10
|
import { compare, valid } from "semver";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { defineMetabaseCommand, localUrl, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import "./process-
|
|
9
|
-
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-
|
|
5
|
+
import { defineMetabaseCommand, localUrl, outputFlags } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
|
+
import "./poll-p9Y7-JEQ.mjs";
|
|
8
|
+
import "./process-zJeVJZTM.mjs";
|
|
9
|
+
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-D5FTIoD0.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/workspace/url.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { writeJson, writeText } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { defineMetabaseCommand, outputFlags, parseInteger } from "./runtime-
|
|
5
|
+
import { defineMetabaseCommand, outputFlags, parseInteger } from "./runtime-CDu6fykq.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
7
|
import { FieldValues, fieldValuesView } from "./field-B3gvaqpK.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/values.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pollUntil } from "./poll-
|
|
2
|
-
import { Workspace } from "./workspace-
|
|
1
|
+
import { pollUntil } from "./poll-p9Y7-JEQ.mjs";
|
|
2
|
+
import { Workspace } from "./workspace-DUfqhPm5.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/workspace/database/wait.ts
|
|
5
5
|
async function waitForDatabaseProvisioned(client, workspaceId, databaseId, schedule) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseId } from "./parse-id-
|
|
2
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
1
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-p9Y7-JEQ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitFlags = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { SyncTaskOrIdle, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
|
+
import { SyncTaskOrIdle, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-BQe0NvJZ.mjs";
|
|
8
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-p9Y7-JEQ.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/git-sync/wait.ts
|
|
11
11
|
const WaitResult = SyncTaskOrIdle;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/workspace/index.ts
|
|
4
|
+
var workspace_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "workspace",
|
|
7
|
+
description: "Manage Metabase workspaces (workspace-manager)"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DBOYoJtA.mjs").then((mod) => mod.default),
|
|
11
|
+
create: () => import("./create-kYpjobrq.mjs").then((mod) => mod.default),
|
|
12
|
+
database: () => import("./database-BSvzYlRe.mjs").then((mod) => mod.default),
|
|
13
|
+
start: () => import("./start-CfruN4wF.mjs").then((mod) => mod.default),
|
|
14
|
+
stop: () => import("./stop-D8Hr4cKX.mjs").then((mod) => mod.default),
|
|
15
|
+
remove: () => import("./remove-C6bS0Z6w.mjs").then((mod) => mod.default),
|
|
16
|
+
logs: () => import("./logs-Ci3mJE2z.mjs").then((mod) => mod.default),
|
|
17
|
+
url: () => import("./url-B5MgZXzg.mjs").then((mod) => mod.default),
|
|
18
|
+
credentials: () => import("./credentials-BIQ1cEzM.mjs").then((mod) => mod.default),
|
|
19
|
+
ps: () => import("./ps-Bk6unzaX.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { workspace_default as default };
|
|
@@ -1,47 +1,8 @@
|
|
|
1
|
-
import { ConfigError
|
|
1
|
+
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
2
|
+
import { parseYaml, stringifyYaml } from "./yaml-ECiog374.mjs";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
import { randomBytes } from "node:crypto";
|
|
4
|
-
import { YAMLParseError, parse, stringify } from "yaml";
|
|
5
5
|
|
|
6
|
-
//#region src/runtime/yaml.ts
|
|
7
|
-
function parseYaml(input, schema, opts = {}) {
|
|
8
|
-
const result = parseYamlResult(input, schema, opts);
|
|
9
|
-
if (!result.ok) throw result.error;
|
|
10
|
-
return result.value;
|
|
11
|
-
}
|
|
12
|
-
function parseYamlResult(input, schema, opts = {}) {
|
|
13
|
-
const sourcePrefix = opts.source ? `${opts.source}: ` : "";
|
|
14
|
-
let raw;
|
|
15
|
-
try {
|
|
16
|
-
raw = parse(input);
|
|
17
|
-
} catch (error) {
|
|
18
|
-
if (error instanceof YAMLParseError) return {
|
|
19
|
-
ok: false,
|
|
20
|
-
error: new ConfigError(`${sourcePrefix}invalid YAML: ${error.message}`)
|
|
21
|
-
};
|
|
22
|
-
return {
|
|
23
|
-
ok: false,
|
|
24
|
-
error: new ConfigError(`${sourcePrefix}invalid YAML: ${errorMessage(error)}`)
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const parsed = schema.safeParse(raw);
|
|
28
|
-
if (!parsed.success) return {
|
|
29
|
-
ok: false,
|
|
30
|
-
error: new ValidationError(`${sourcePrefix}value did not match expected schema`, {
|
|
31
|
-
source: opts.source ?? "<input>",
|
|
32
|
-
zodIssues: parsed.error.issues
|
|
33
|
-
})
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
ok: true,
|
|
37
|
-
value: parsed.data
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function stringifyYaml(value) {
|
|
41
|
-
return stringify(value, { lineWidth: 0 });
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//#endregion
|
|
45
6
|
//#region src/core/workspace-credentials.ts
|
|
46
7
|
const API_KEY_NAME = "Workspace API Key";
|
|
47
8
|
const API_KEY_GROUP = "admin";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ConfigError, ValidationError, errorMessage } from "./predicates-CGO17Q15.mjs";
|
|
2
|
+
import { YAMLParseError, parse, stringify } from "yaml";
|
|
3
|
+
|
|
4
|
+
//#region src/runtime/yaml.ts
|
|
5
|
+
function parseYaml(input, schema, opts = {}) {
|
|
6
|
+
const result = parseYamlResult(input, schema, opts);
|
|
7
|
+
if (!result.ok) throw result.error;
|
|
8
|
+
return result.value;
|
|
9
|
+
}
|
|
10
|
+
function parseYamlResult(input, schema, opts = {}) {
|
|
11
|
+
const sourcePrefix = opts.source ? `${opts.source}: ` : "";
|
|
12
|
+
let raw;
|
|
13
|
+
try {
|
|
14
|
+
raw = parse(input);
|
|
15
|
+
} catch (error) {
|
|
16
|
+
if (error instanceof YAMLParseError) return {
|
|
17
|
+
ok: false,
|
|
18
|
+
error: new ConfigError(`${sourcePrefix}invalid YAML: ${error.message}`)
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
ok: false,
|
|
22
|
+
error: new ConfigError(`${sourcePrefix}invalid YAML: ${errorMessage(error)}`)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const parsed = schema.safeParse(raw);
|
|
26
|
+
if (!parsed.success) return {
|
|
27
|
+
ok: false,
|
|
28
|
+
error: new ValidationError(`${sourcePrefix}value did not match expected schema`, {
|
|
29
|
+
source: opts.source ?? "<input>",
|
|
30
|
+
zodIssues: parsed.error.issues
|
|
31
|
+
})
|
|
32
|
+
};
|
|
33
|
+
return {
|
|
34
|
+
ok: true,
|
|
35
|
+
value: parsed.data
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function stringifyYaml(value) {
|
|
39
|
+
return stringify(value, { lineWidth: 0 });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { parseYaml, parseYamlResult, stringifyYaml };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metabase/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Metabase CLI",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"mb": "./dist/cli.mjs"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
|
-
"dist"
|
|
14
|
+
"dist",
|
|
15
|
+
"skills",
|
|
16
|
+
"skill-data",
|
|
17
|
+
".claude-plugin"
|
|
15
18
|
],
|
|
16
19
|
"type": "module",
|
|
17
20
|
"publishConfig": {
|