@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,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
7
|
import { collectPaginated } from "./paginate-CTSfuYiF.mjs";
|
|
8
|
-
import { TransformRun, TransformRunCompact, transformRunView } from "./transform-
|
|
8
|
+
import { TransformRun, TransformRunCompact, transformRunView } from "./transform-DR4ejuPM.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform/runs.ts
|
|
11
11
|
const TransformRunListEnvelope = listEnvelopeSchema(TransformRunCompact);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { package_default } from "./package-
|
|
1
|
+
import { package_default } from "./package-DFUprkSZ.mjs";
|
|
2
2
|
import { setMetabaseAugment } from "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { AbortError, ConfigError, MetabaseError, NetworkError, TimeoutError, VERBOSE_ENV, ValidationError, errorMessage, isNotFoundError, isPlainObject, toMetabaseError } from "./predicates-CGO17Q15.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
7
|
import "./field-B3gvaqpK.mjs";
|
|
8
8
|
import { Table, TableCompact, tableView } from "./table-B-PYcgGb.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/db/schemas.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, parseEnumCsv, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, parseEnumCsv, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/domain/search.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/segment/index.ts
|
|
4
|
+
var segment_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "segment",
|
|
7
|
+
description: "Inspect Metabase segments"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-Bkd7Nbds.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-BnBRKHr7.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Le3Bqn7b.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DuA8-cCq.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-DdaP94H3.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { segment_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem, warn } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
5
|
import { readInput } from "./input-BQ-BZA8h.mjs";
|
|
6
|
-
import { defineMetabaseCommand, outputFlags, readEnvLicenseToken, writeLicense } from "./runtime-
|
|
6
|
+
import { defineMetabaseCommand, outputFlags, readEnvLicenseToken, writeLicense } from "./runtime-CDu6fykq.mjs";
|
|
7
7
|
import { promptPassword } from "./prompt-DgDNy_Pc.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { SettingValue, settingValueView } from "./setting-CTaAeMci.mjs";
|
|
9
9
|
import { parseSettingKey } from "./key-CCJdVWKc.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -8,9 +8,9 @@ var setting_default = defineCommand({
|
|
|
8
8
|
alias: "settings"
|
|
9
9
|
},
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
set: () => import("./set-
|
|
11
|
+
list: () => import("./list-yxVAE1S7.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-C6SR3A9t.mjs").then((m) => m.default),
|
|
13
|
+
set: () => import("./set-CwVWeAsi.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -1,10 +1,10 @@
|
|
|
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
9
|
import { z } from "zod";
|
|
10
10
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/skills/index.ts
|
|
4
|
+
var skills_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "skills",
|
|
7
|
+
description: "Discover and read CLI-bundled skills (SKILL.md files served from the installed version)"
|
|
8
|
+
},
|
|
9
|
+
default: "list",
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-L63TpX1t.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-7macOPAI.mjs").then((m) => m.default),
|
|
13
|
+
path: () => import("./path-DLByFMMA.mjs").then((m) => m.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { skills_default as default };
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { ConfigError, isNotFoundError } from "./predicates-CGO17Q15.mjs";
|
|
2
|
+
import { parseYamlResult } from "./yaml-ECiog374.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { closeSync, openSync, readFileSync, readSync, readdirSync, statSync } from "node:fs";
|
|
5
|
+
import { dirname, join, resolve } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
|
|
8
|
+
//#region src/core/skills.ts
|
|
9
|
+
const Frontmatter = z.object({
|
|
10
|
+
name: z.string().min(1),
|
|
11
|
+
description: z.string().default(""),
|
|
12
|
+
hidden: z.boolean().default(false)
|
|
13
|
+
}).loose();
|
|
14
|
+
const SkillExtraFile = z.object({
|
|
15
|
+
path: z.string(),
|
|
16
|
+
content: z.string()
|
|
17
|
+
});
|
|
18
|
+
const SkillContent = z.object({
|
|
19
|
+
name: z.string(),
|
|
20
|
+
description: z.string(),
|
|
21
|
+
body: z.string(),
|
|
22
|
+
references: z.array(SkillExtraFile),
|
|
23
|
+
templates: z.array(SkillExtraFile)
|
|
24
|
+
});
|
|
25
|
+
const SKILL_DIR_NAMES = ["skills", "skill-data"];
|
|
26
|
+
const SKILL_MD_FILENAME = "SKILL.md";
|
|
27
|
+
const SKILL_REFERENCES_DIR = "references";
|
|
28
|
+
const SKILL_TEMPLATES_DIR = "templates";
|
|
29
|
+
const SKILLS_DIR_ENV = "MB_SKILLS_DIR";
|
|
30
|
+
const FRONTMATTER_PREFIX_BYTES = 8192;
|
|
31
|
+
const FRONTMATTER_FENCE = "---";
|
|
32
|
+
function loadAllSkills() {
|
|
33
|
+
return discoverSkills(resolveSkillDirs());
|
|
34
|
+
}
|
|
35
|
+
function loadVisibleSkills() {
|
|
36
|
+
return loadAllSkills().filter((s) => !s.hidden);
|
|
37
|
+
}
|
|
38
|
+
function findSkillByName(all, name) {
|
|
39
|
+
const hit = all.find((s) => s.name === name);
|
|
40
|
+
if (hit === void 0) throw new ConfigError(`unknown skill name: ${name} (${availableSkillNames(all)})`);
|
|
41
|
+
return hit;
|
|
42
|
+
}
|
|
43
|
+
function selectSkillsByNames(all, requested) {
|
|
44
|
+
if (requested.length === 0) throw new ConfigError("no skill names provided");
|
|
45
|
+
const byName = new Map(all.map((s) => [s.name, s]));
|
|
46
|
+
const missing = [];
|
|
47
|
+
const found = [];
|
|
48
|
+
for (const name of requested) {
|
|
49
|
+
const hit = byName.get(name);
|
|
50
|
+
if (hit === void 0) {
|
|
51
|
+
missing.push(name);
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
found.push(hit);
|
|
55
|
+
}
|
|
56
|
+
if (missing.length > 0) throw new ConfigError(`unknown skill name(s): ${missing.join(", ")} (${availableSkillNames(all)})`);
|
|
57
|
+
return found;
|
|
58
|
+
}
|
|
59
|
+
function availableSkillNames(all) {
|
|
60
|
+
const names = all.filter((s) => !s.hidden).map((s) => s.name);
|
|
61
|
+
return `available: ${names.length === 0 ? "none" : names.join(", ")}`;
|
|
62
|
+
}
|
|
63
|
+
function resolveSkillDirs() {
|
|
64
|
+
const override = process.env[SKILLS_DIR_ENV];
|
|
65
|
+
if (override !== void 0 && override !== "") {
|
|
66
|
+
if (!isDirectory(override)) throw new ConfigError(`${SKILLS_DIR_ENV} points at ${override}, which is not a directory`);
|
|
67
|
+
return [resolve(override)];
|
|
68
|
+
}
|
|
69
|
+
const root = findPackageRoot();
|
|
70
|
+
if (root === null) return [];
|
|
71
|
+
return SKILL_DIR_NAMES.map((name) => join(root, name)).filter(isDirectory);
|
|
72
|
+
}
|
|
73
|
+
function findPackageRoot() {
|
|
74
|
+
const here = fileURLToPath(import.meta.url);
|
|
75
|
+
let dir = dirname(here);
|
|
76
|
+
while (true) {
|
|
77
|
+
for (const name of SKILL_DIR_NAMES) if (isDirectory(join(dir, name))) return dir;
|
|
78
|
+
const parent = dirname(dir);
|
|
79
|
+
if (parent === dir) return null;
|
|
80
|
+
dir = parent;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function discoverSkills(dirs) {
|
|
84
|
+
const skills = [];
|
|
85
|
+
for (const dir of dirs) {
|
|
86
|
+
let entries;
|
|
87
|
+
try {
|
|
88
|
+
entries = readdirSync(dir);
|
|
89
|
+
} catch (error) {
|
|
90
|
+
if (isNotFoundError(error)) continue;
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
for (const entryName of entries) {
|
|
94
|
+
const skillDir = join(dir, entryName);
|
|
95
|
+
const fm = readFrontmatterFromSkill(skillDir);
|
|
96
|
+
if (fm === null) continue;
|
|
97
|
+
skills.push({
|
|
98
|
+
name: fm.name,
|
|
99
|
+
description: fm.description,
|
|
100
|
+
hidden: fm.hidden,
|
|
101
|
+
dir: skillDir
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
skills.sort((a, b) => a.name.localeCompare(b.name));
|
|
106
|
+
return skills;
|
|
107
|
+
}
|
|
108
|
+
function readFrontmatterFromSkill(skillDir) {
|
|
109
|
+
const skillMd = join(skillDir, SKILL_MD_FILENAME);
|
|
110
|
+
const prefix = readFilePrefix(skillMd, FRONTMATTER_PREFIX_BYTES);
|
|
111
|
+
if (prefix === null) return null;
|
|
112
|
+
return parseFrontmatter(prefix);
|
|
113
|
+
}
|
|
114
|
+
function readFilePrefix(path, maxBytes) {
|
|
115
|
+
let fd;
|
|
116
|
+
try {
|
|
117
|
+
fd = openSync(path, "r");
|
|
118
|
+
} catch (error) {
|
|
119
|
+
if (isNotFoundError(error)) return null;
|
|
120
|
+
throw error;
|
|
121
|
+
}
|
|
122
|
+
try {
|
|
123
|
+
const buffer = Buffer.alloc(maxBytes);
|
|
124
|
+
const bytesRead = readSync(fd, buffer, 0, maxBytes, 0);
|
|
125
|
+
return buffer.toString("utf8", 0, bytesRead);
|
|
126
|
+
} finally {
|
|
127
|
+
closeSync(fd);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function parseFrontmatter(content) {
|
|
131
|
+
const trimmed = content.trimStart();
|
|
132
|
+
if (!trimmed.startsWith(FRONTMATTER_FENCE)) return null;
|
|
133
|
+
const afterOpening = trimmed.slice(FRONTMATTER_FENCE.length);
|
|
134
|
+
const closingIndex = afterOpening.indexOf(`\n${FRONTMATTER_FENCE}`);
|
|
135
|
+
if (closingIndex < 0) return null;
|
|
136
|
+
const block = afterOpening.slice(0, closingIndex);
|
|
137
|
+
const result = parseYamlResult(block, Frontmatter);
|
|
138
|
+
if (!result.ok) return null;
|
|
139
|
+
return result.value;
|
|
140
|
+
}
|
|
141
|
+
function readSkillContent(info, opts) {
|
|
142
|
+
const body = readFileSync(join(info.dir, SKILL_MD_FILENAME), "utf8");
|
|
143
|
+
if (!opts.includeExtras) return {
|
|
144
|
+
name: info.name,
|
|
145
|
+
description: info.description,
|
|
146
|
+
body,
|
|
147
|
+
references: [],
|
|
148
|
+
templates: []
|
|
149
|
+
};
|
|
150
|
+
return {
|
|
151
|
+
name: info.name,
|
|
152
|
+
description: info.description,
|
|
153
|
+
body,
|
|
154
|
+
references: collectExtraFiles(info.dir, SKILL_REFERENCES_DIR),
|
|
155
|
+
templates: collectExtraFiles(info.dir, SKILL_TEMPLATES_DIR)
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function collectExtraFiles(skillDir, subdirName) {
|
|
159
|
+
const subdir = join(skillDir, subdirName);
|
|
160
|
+
if (!isDirectory(subdir)) return [];
|
|
161
|
+
const entries = readdirSync(subdir).toSorted();
|
|
162
|
+
const out = [];
|
|
163
|
+
for (const entry of entries) {
|
|
164
|
+
const full = join(subdir, entry);
|
|
165
|
+
if (!isFile(full)) continue;
|
|
166
|
+
out.push({
|
|
167
|
+
path: `${subdirName}/${entry}`,
|
|
168
|
+
content: readFileSync(full, "utf8")
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
return out;
|
|
172
|
+
}
|
|
173
|
+
function isDirectory(path) {
|
|
174
|
+
try {
|
|
175
|
+
return statSync(path).isDirectory();
|
|
176
|
+
} catch (error) {
|
|
177
|
+
if (isNotFoundError(error)) return false;
|
|
178
|
+
throw error;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function isFile(path) {
|
|
182
|
+
try {
|
|
183
|
+
return statSync(path).isFile();
|
|
184
|
+
} catch (error) {
|
|
185
|
+
if (isNotFoundError(error)) return false;
|
|
186
|
+
throw error;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
//#endregion
|
|
191
|
+
export { SkillContent, findSkillByName, loadAllSkills, loadVisibleSkills, readSkillContent, selectSkillsByNames };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/snippet/index.ts
|
|
4
|
+
var snippet_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "snippet",
|
|
7
|
+
description: "Inspect Metabase native query snippets"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-vF4EneaE.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-R7OaVL_t.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-DZxUeqdf.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-qnFY5IuC.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-WaEW85NB.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { snippet_default as default };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem, warn } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError, errorMessage } from "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, createClient, defineMetabaseCommand, localUrl, outputFlags, parseInteger, parseOptionalInteger, profileFlag, resolveLicenseToken } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { pollUntil } from "./poll-
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
5
|
+
import { connectionFlags, createClient, defineMetabaseCommand, localUrl, outputFlags, parseInteger, parseOptionalInteger, profileFlag, resolveLicenseToken } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
|
+
import { pollUntil } from "./poll-p9Y7-JEQ.mjs";
|
|
8
|
+
import "./yaml-ECiog374.mjs";
|
|
9
|
+
import { runProcess } from "./process-zJeVJZTM.mjs";
|
|
10
|
+
import { Workspace } from "./workspace-DUfqhPm5.mjs";
|
|
11
|
+
import { CONTAINER_REPO_DIR, checkDockerReady, containerLifecycleStatus, containerNameFor, pullImage, removeContainer, runWorkspaceContainer, scrubContainerConfig, waitForConfigConsumed } from "./docker-D5FTIoD0.mjs";
|
|
12
|
+
import { REPO_SYNC_MODES, RepoSyncMode, buildCredentialsJson, generateWorkspaceCredentials, injectCredentialsIntoConfig, injectRepoSettingsIntoConfig } from "./workspace-credentials-4lIxxz4g.mjs";
|
|
12
13
|
import { z } from "zod";
|
|
13
14
|
import { stat } from "node:fs/promises";
|
|
14
15
|
import { resolve } from "node:path";
|
|
@@ -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 { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-CysSaCbf.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-BQe0NvJZ.mjs";
|
|
8
|
+
import "./poll-p9Y7-JEQ.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/stash.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-CDu6fykq.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/auth/status.ts
|
|
@@ -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 { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { IsDirtyResult } from "./is-dirty-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed } from "./poll-task-BQe0NvJZ.mjs";
|
|
7
|
+
import "./poll-p9Y7-JEQ.mjs";
|
|
8
|
+
import { IsDirtyResult } from "./is-dirty-CZWcG0vj.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/git-sync/status.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-CDu6fykq.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/license/status.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
|
-
import { defineMetabaseCommand, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import "./process-
|
|
9
|
-
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-
|
|
10
|
-
import { LocalWorkspaceState } from "./ps-
|
|
5
|
+
import { defineMetabaseCommand, 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, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-D5FTIoD0.mjs";
|
|
10
|
+
import { LocalWorkspaceState } from "./ps-BxQdpkr5.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/workspace/stop.ts
|
|
@@ -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 { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-B3gvaqpK.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/summary.ts
|
|
@@ -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 "./field-B3gvaqpK.mjs";
|
|
8
8
|
import "./table-B-PYcgGb.mjs";
|
|
9
9
|
import { DatabaseSyncResult, databaseSyncResultView } from "./database-vvig8k4x.mjs";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/table/index.ts
|
|
4
|
+
var table_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "table",
|
|
7
|
+
description: "Inspect Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DJcGwJ4W.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-CACaBFLt.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-29_qlqbz.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-dH16G5UV.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-B0bjPqKC.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { table_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform/index.ts
|
|
4
|
+
var transform_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform",
|
|
7
|
+
description: "Manage Metabase transforms"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-ViT2KWhv.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-B7i_nYJB.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-V-q2rU0T.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DzgXF082.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-VTAS9EUt.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-DzUneMKe.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-Cl-9RtC4.mjs").then((mod) => mod.default),
|
|
17
|
+
cancel: () => import("./cancel-BrUVO_ax.mjs").then((mod) => mod.default),
|
|
18
|
+
"get-run": () => import("./get-run-CwFuR4Uw.mjs").then((mod) => mod.default),
|
|
19
|
+
runs: () => import("./runs-BH6s1Zao.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { transform_default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform-job/index.ts
|
|
4
|
+
var transform_job_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform-job",
|
|
7
|
+
description: "Manage Metabase transform jobs"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-J277Qtki.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-B08K82JV.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Dq25vsMu.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BgcroYkF.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-CUx6RT9e.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { transform_job_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
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, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
7
|
+
import { readBody } from "./body-XtR7-uCO.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { requireBothOrNeither } from "./flag-pair-Fmcdkrfx.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DFUprkSZ.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { writeJson } from "./render-DuoDUTVL.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-CGO17Q15.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-CDu6fykq.mjs";
|
|
6
6
|
import { CollectionTreeNode } from "./collection-B3sPXRLs.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -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 { Table, TableUpdateInput, tableView } from "./table-B-PYcgGb.mjs";
|
|
12
12
|
|