@metabase/cli 0.1.7 → 0.1.8-alpha.drop-workspaces.a42f32e
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 +1 -1
- package/README.md +2 -224
- package/dist/{add-collection-DQjTlDNF.mjs → add-collection-CuLyFlrE.mjs} +5 -5
- package/dist/add-collection-DkucDB2N.mjs +10 -0
- package/dist/{archive-BXzghEQX.mjs → archive-C1lk1rR7.mjs} +6 -7
- package/dist/{archive-CBGKzEAl.mjs → archive-C2AfP9G_.mjs} +5 -6
- package/dist/{archive-DTN9tLGT.mjs → archive-COAWrOVp.mjs} +5 -6
- package/dist/{archive-De8jzzq7.mjs → archive-DNVqPMhp.mjs} +6 -7
- package/dist/{archive-CuVk8iwN.mjs → archive-Dt1qDaIF.mjs} +6 -7
- package/dist/{archive-B3qiL-kK.mjs → archive-mdSqCzVw.mjs} +5 -6
- package/dist/auth-WILFa6Xf.mjs +19 -0
- package/dist/{body-tcURGnGh.mjs → body-b76dLVpL.mjs} +2 -2
- package/dist/{branches-CIGkjXIk.mjs → branches-DwV1q-4h.mjs} +5 -6
- package/dist/{cancel-pPsvgJ0Z.mjs → cancel-DDKstWQM.mjs} +4 -5
- package/dist/{cancel-task-BLGE4UlL.mjs → cancel-task-DX_OdGan.mjs} +5 -6
- package/dist/{render-0_GsapXa.mjs → capabilities-Dj3NgPHg.mjs} +28 -2
- package/dist/card-Bd8jLmZW.mjs +20 -0
- package/dist/{card-ezYiriML.mjs → card-BtPiKjbB.mjs} +1 -1
- package/dist/{cards-Dq3nx_9n.mjs → cards-CYKPNOp3.mjs} +5 -6
- package/dist/cli.mjs +23 -24
- package/dist/collection-gz4k8jWl.mjs +20 -0
- package/dist/{create-BrUqxreg.mjs → create-B4aKAWaQ.mjs} +7 -8
- package/dist/{create-9DBTkbMq.mjs → create-BfRIHlHk.mjs} +11 -12
- package/dist/{create-aPaUEGdr.mjs → create-BfseKO3F.mjs} +7 -8
- package/dist/{create-w3mQg9n4.mjs → create-BqiR1kvi.mjs} +7 -8
- package/dist/{create-BcgoukG4.mjs → create-BscN4jFB.mjs} +9 -10
- package/dist/{create-BdPoSk_7.mjs → create-CE1WZ4du.mjs} +9 -10
- package/dist/{create-DHscDhRd.mjs → create-CQxJpVXk.mjs} +9 -10
- package/dist/{create-BIphz0kO.mjs → create-DRhRPfD-.mjs} +10 -11
- package/dist/{create-branch-DGoc9CUU.mjs → create-branch-2yEa7-9x.mjs} +5 -6
- package/dist/{current-task-DZM28rnr.mjs → current-task-5buIatuG.mjs} +5 -6
- package/dist/dashboard-BL8_Ysst.mjs +21 -0
- package/dist/{database-BXiue1in.mjs → database-_Td7rG4o.mjs} +1 -1
- package/dist/db-Bw8m4M2J.mjs +22 -0
- package/dist/{delete-BrJOotpW.mjs → delete-C3i5dE4s.mjs} +6 -7
- package/dist/{delete-BPaFdHZP.mjs → delete-CF8in6gw.mjs} +6 -7
- package/dist/{delete-runtime-uuYbd4k2.mjs → delete-runtime-Bo7v-0au.mjs} +2 -2
- package/dist/{delete-table-CNupWUO0.mjs → delete-table-m-6cOPnX.mjs} +6 -7
- package/dist/{dirty-BCkNOY8c.mjs → dirty-hGWiemB-.mjs} +5 -6
- package/dist/{eid-CLY5X0Uw.mjs → eid-BP0H-LTl.mjs} +6 -7
- package/dist/{error-ZsFeevV2.mjs → error-BLukG0Vf.mjs} +1 -1
- package/dist/{export-CgHgWW3I.mjs → export-wh9l0s7F.mjs} +7 -8
- package/dist/field-GgVH-HUD.mjs +18 -0
- package/dist/{fields-RkRWU-u9.mjs → fields-BD52yx5k.mjs} +6 -7
- package/dist/{get-CTDqioaj.mjs → get-436DayeX.mjs} +5 -6
- package/dist/{get-B8l4t4Pz.mjs → get-B1jyFBkg.mjs} +5 -6
- package/dist/{get-42tJ7BNp.mjs → get-BLUldOxi.mjs} +5 -6
- package/dist/{get-sMpa-X4E.mjs → get-BVMyLnhh.mjs} +6 -7
- package/dist/{get-B9kwSs6U.mjs → get-BhFiIyyH.mjs} +5 -6
- package/dist/{get-CRvbChoX.mjs → get-C5PKCCzj.mjs} +5 -6
- package/dist/{get-y17zJMnU.mjs → get-C_LAPJ7J.mjs} +5 -6
- package/dist/{get-CiZrZJLt.mjs → get-CgdzDOTX.mjs} +7 -8
- package/dist/{get-DmzgSgrl.mjs → get-Cu7Om0g2.mjs} +6 -7
- package/dist/{get-DsqGHNHN.mjs → get-DETcYP1F.mjs} +5 -6
- package/dist/{get-Bo4Cpd_c.mjs → get-DSmnRBrw.mjs} +5 -7
- package/dist/{get-CvmqPN30.mjs → get-EJOWmpkC.mjs} +5 -6
- package/dist/{get-run-CBwcRc8E.mjs → get-run-BEvwTmr7.mjs} +5 -6
- package/dist/{get-C9O_aEGo.mjs → get-z9XIWbVG.mjs} +5 -6
- package/dist/git-sync-oYYp_Z6v.mjs +28 -0
- package/dist/{has-remote-changes-CfRidwXT.mjs → has-remote-changes-BNjTil7k.mjs} +5 -6
- package/dist/{import-BZV0Z2KR.mjs → import-C0iBM0UR.mjs} +7 -8
- package/dist/is-dirty-C_RyVkc1.mjs +9 -0
- package/dist/{is-dirty-hKcB4OH9.mjs → is-dirty-D_e5Xoke.mjs} +4 -4
- package/dist/{items-C94eW2Yd.mjs → items-D6h0ejme.mjs} +7 -8
- package/dist/{list-DfDZr55C.mjs → list-B3CgwSU4.mjs} +6 -7
- package/dist/{list-BS_Bxejg.mjs → list-BJxm0-6m.mjs} +6 -7
- package/dist/{list-DuSoEk_J.mjs → list-BZkOPBmK.mjs} +6 -7
- package/dist/{list-BJXaGk-z.mjs → list-CSX_xieo.mjs} +4 -5
- package/dist/{list-C-oZe1_p.mjs → list-CWItVq2v.mjs} +5 -6
- package/dist/{list-CU6sOfI-.mjs → list-CkCgkJFh.mjs} +5 -6
- package/dist/{list-BmHoYJr7.mjs → list-CmVbbX3f.mjs} +4 -5
- package/dist/{list-DrINpVLM.mjs → list-D0ZVA1e1.mjs} +4 -5
- package/dist/{list-HS15y_WN.mjs → list-DLC82gFo.mjs} +4 -5
- package/dist/{list-BFlzLGlw.mjs → list-DcV2bfg8.mjs} +4 -5
- package/dist/{list-B0V7FeL2.mjs → list-ZX3ooQ9h.mjs} +4 -6
- package/dist/{list-CF1pMN4S.mjs → list-pXgd_HTy.mjs} +4 -5
- package/dist/{list-CqN4gvCk.mjs → list-r3gm10tz.mjs} +5 -6
- package/dist/{login-enh9Yimb.mjs → login-DSS8QywX.mjs} +9 -10
- package/dist/{logout-BWLPLDh8.mjs → logout-B6acbVng.mjs} +4 -5
- package/dist/{manifest-BNh0Lw6p.mjs → manifest-B_OfG-Ss.mjs} +1 -2
- package/dist/measure-DDn0jAB8.mjs +19 -0
- package/dist/{metadata-D2TxboMm.mjs → metadata-C-bcafH-.mjs} +6 -7
- package/dist/{metadata-BTTEBWdS.mjs → metadata-D_wFDaCb.mjs} +7 -8
- package/dist/{parse-id-0_tOPvfI.mjs → parse-id-BapRoz4R.mjs} +1 -1
- package/dist/{path-C8GrBdgT.mjs → path-DmYXSF59.mjs} +4 -6
- package/dist/{poll-4eoh5J0r.mjs → poll-CYFFYOiB.mjs} +1 -1
- package/dist/{poll-task-51WRdugU.mjs → poll-task-Dalt24ov.mjs} +2 -2
- package/dist/{preflight-BhsErYz3.mjs → preflight-G7NUAKod.mjs} +3 -3
- package/dist/{query-BBCAF-tG.mjs → query-COWTai5j.mjs} +11 -12
- package/dist/{query-DYVBnu9d.mjs → query-DRosi9Ha.mjs} +7 -8
- package/dist/{query-result-ABPLz6I4.mjs → query-result-PoQE05Pe.mjs} +1 -1
- package/dist/{remove-collection-CBAHz0Dk.mjs → remove-collection-CLWw-48s.mjs} +7 -8
- package/dist/{rescan-values-cfTSNQZo.mjs → rescan-values-C3L03Crf.mjs} +7 -8
- package/dist/{run-qgdEJv-I.mjs → run-PL8TRDGx.mjs} +7 -8
- package/dist/{runs-BFIIH4GL.mjs → runs-B86YP36a.mjs} +6 -7
- package/dist/{runtime-Duawf5lE.mjs → runtime-C2EDX9E7.mjs} +10 -77
- package/dist/{schema-tables-C2xM3dho.mjs → schema-tables-CZr0QT1g.mjs} +6 -7
- package/dist/{schemas-BP7xiktH.mjs → schemas-DnGJlmQl.mjs} +4 -5
- package/dist/{search-DYP3lOlq.mjs → search-thFe-n3F.mjs} +4 -5
- package/dist/segment-ydERbF0L.mjs +19 -0
- package/dist/{set-DpRQqdo7.mjs → set-CDQE4s8H.mjs} +7 -8
- package/dist/{setting-DUa96KF3.mjs → setting-BTMmbmKB.mjs} +3 -3
- package/dist/{setup-BPlllnim.mjs → setup-mOHveOFI.mjs} +6 -7
- package/dist/{skills-BkregMyb.mjs → skills-BDPVoBWU.mjs} +33 -2
- package/dist/{skills-SqbPo0BI.mjs → skills-d2iLclsk.mjs} +3 -3
- package/dist/snippet-i1Z8-yJQ.mjs +19 -0
- package/dist/{stash-C89zNKxo.mjs → stash-B4RTStPo.mjs} +7 -8
- package/dist/{status-B1EJ_jv0.mjs → status-B7H0JH52.mjs} +6 -7
- package/dist/{status-BNvFPemM.mjs → status-DoVvjifV.mjs} +4 -5
- package/dist/{summary-Cihbx0Qs.mjs → summary-BsdiF7LZ.mjs} +5 -6
- package/dist/{sync-schema-C3odu0ZH.mjs → sync-schema-CvXkT9Rg.mjs} +7 -8
- package/dist/{table-qDD2kApF.mjs → table-CkWja2UH.mjs} +1 -1
- package/dist/table-DoAu2iwB.mjs +19 -0
- package/dist/transform-JzFSQdFi.mjs +24 -0
- package/dist/transform-job-C8q3Fcf7.mjs +19 -0
- package/dist/{tree-mvq9gM9w.mjs → tree-CGBtDXfk.mjs} +4 -5
- package/dist/{update-CbBnHz42.mjs → update-B89kI8l9.mjs} +10 -11
- package/dist/{update-CtOo3LsX.mjs → update-BA48uHRd.mjs} +9 -10
- package/dist/{update-DCrOQ1PW.mjs → update-BHit5RyS.mjs} +11 -12
- package/dist/{update-BoIiuC70.mjs → update-BJhk_A4R.mjs} +10 -11
- package/dist/{update-tRparnUs.mjs → update-BJn9ZitD.mjs} +12 -13
- package/dist/{update-C0jP0AKT.mjs → update-C44bumhM.mjs} +8 -9
- package/dist/{update-Rr4usmCo.mjs → update-DqAKFmkw.mjs} +8 -9
- package/dist/{update-VvKMnwsM.mjs → update-JpO3b8g3.mjs} +10 -11
- package/dist/{update-DwRxdflw.mjs → update-WMzbyUw2.mjs} +8 -9
- package/dist/{update-dashcard-DFvIz8Qj.mjs → update-dashcard-C8BGZtY7.mjs} +8 -9
- package/dist/{upgrade-D-Rl_fH9.mjs → upgrade-DeiR3fjf.mjs} +34 -7
- package/dist/{uuid-BSVUk8u2.mjs → uuid-BWvbC2Z8.mjs} +3 -4
- package/dist/{validate-dPEOnOf8.mjs → validate-CqVB_3_p.mjs} +1 -1
- package/dist/{validate-query-CYvOP8Ld.mjs → validate-query-BUTNK00f.mjs} +2 -2
- package/dist/{values-D1RJE4H6.mjs → values-07BZxAK5.mjs} +5 -6
- package/dist/{verify-A7BWfBPZ.mjs → verify-D2q5RI4i.mjs} +1 -1
- package/dist/{wait-DK5QDZ8n.mjs → wait-DWyuBO_X.mjs} +6 -7
- package/dist/{wait-flags-DlfbIXHw.mjs → wait-flags-Crs-j7Z8.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +13 -26
- package/skill-data/git-sync/SKILL.md +8 -63
- package/skill-data/transform/SKILL.md +3 -4
- package/skill-data/visualization/SKILL.md +158 -0
- package/skill-data/visualization/references/settings.md +414 -0
- package/skills/metabase-cli/SKILL.md +1 -1
- package/dist/add-collection-C9BdVBs2.mjs +0 -11
- package/dist/auth-D9eAyVoG.mjs +0 -19
- package/dist/capabilities-7e9MgquN.mjs +0 -29
- package/dist/card-DDDrWcDU.mjs +0 -20
- package/dist/collection-DkEvCDar.mjs +0 -20
- package/dist/create-B1dyuL9Y.mjs +0 -54
- package/dist/credentials-qryRLUed.mjs +0 -88
- package/dist/dashboard-BLf1RZlk.mjs +0 -21
- package/dist/database-Ce1gOJF7.mjs +0 -17
- package/dist/db-CWTFe_FZ.mjs +0 -22
- package/dist/delete-FFj1xQWO.mjs +0 -104
- package/dist/deprovision-BNr9fPDY.mjs +0 -67
- package/dist/docker-Ds252Mwc.mjs +0 -515
- package/dist/field-LL6W_c-c.mjs +0 -18
- package/dist/git-sync-CrWTo3YX.mjs +0 -28
- package/dist/is-dirty-CPzOnnH6.mjs +0 -10
- package/dist/license-B37055sr.mjs +0 -17
- package/dist/list-DUXdt0XI.mjs +0 -36
- package/dist/logs-Cu3QtvPs.mjs +0 -60
- package/dist/measure-CDlEPFtB.mjs +0 -19
- package/dist/parse-schemas-D-qVLl4z.mjs +0 -12
- package/dist/process-CM7Uu5q_.mjs +0 -105
- package/dist/provision-Chf86BF0.mjs +0 -83
- package/dist/ps-CEYtsKBj.mjs +0 -80
- package/dist/ps-CIDwaubS.mjs +0 -11
- package/dist/remove-2yInufA6.mjs +0 -64
- package/dist/segment-B6HnNGDs.mjs +0 -19
- package/dist/set-Tt-ioa4L.mjs +0 -68
- package/dist/snippet-dJ68tGsl.mjs +0 -19
- package/dist/start-DJZA67WF.mjs +0 -414
- package/dist/status-D5wSqYV_.mjs +0 -34
- package/dist/stop-5rCLmkCQ.mjs +0 -87
- package/dist/table-J2f0STnB.mjs +0 -19
- package/dist/transform-job-OW4SDhsQ.mjs +0 -19
- package/dist/transform-q1LYWQtW.mjs +0 -24
- package/dist/update-DEZayTb4.mjs +0 -78
- package/dist/url-BB6jeNQj.mjs +0 -56
- package/dist/wait-B17I_pWy.mjs +0 -19
- package/dist/workspace-D8HtUN0y.mjs +0 -72
- package/dist/workspace-credentials-8CBMQJFz.mjs +0 -100
- package/dist/workspace-ri6r3zWo.mjs +0 -25
- package/dist/yaml-Gv6wRFMF.mjs +0 -43
- package/skill-data/viz/SKILL.md +0 -137
- package/skill-data/viz/references/settings.md +0 -312
- package/skill-data/workspace/SKILL.md +0 -390
- /package/dist/{body-flags-D7q87Btw.mjs → body-flags-D78h_-Ua.mjs} +0 -0
- /package/dist/{collection-Bcy8cWYH.mjs → collection-B3sPXRLs.mjs} +0 -0
- /package/dist/{dashboard-B4bn3z6t.mjs → dashboard-FY5UzJ_Z.mjs} +0 -0
- /package/dist/{field-E0IBy4Uw.mjs → field-MGxpNQUH.mjs} +0 -0
- /package/dist/{input-cMSEqISy.mjs → input-xewHccej.mjs} +0 -0
- /package/dist/{key-vkNkH82H.mjs → key-C2XG394c.mjs} +0 -0
- /package/dist/{measure-Bt3InQsA.mjs → measure-ClESGxIb.mjs} +0 -0
- /package/dist/{paginate-BexjkjbY.mjs → paginate-Dfm9eO9A.mjs} +0 -0
- /package/dist/{parse-enum-CrEWOhuY.mjs → parse-enum-Dr7ACrTR.mjs} +0 -0
- /package/dist/{parse-ref-DKag6a6I.mjs → parse-ref-BiETXmvm.mjs} +0 -0
- /package/dist/{prompt-CFKoys7k.mjs → prompt-u4WhE4T5.mjs} +0 -0
- /package/dist/{render-khznBlla.mjs → render-BQHJhSP1.mjs} +0 -0
- /package/dist/{revision-message-flag-DY29-cgz.mjs → revision-message-flag-WmsIzUOM.mjs} +0 -0
- /package/dist/{segment-DhBmcr_E.mjs → segment-Be2v4ilr.mjs} +0 -0
- /package/dist/{setting-BzCng1Ub.mjs → setting-oL97SNeO.mjs} +0 -0
- /package/dist/{snippet-bi_0XbNT.mjs → snippet-xh42tYly.mjs} +0 -0
- /package/dist/{transform-BKahefz_.mjs → transform-DyJb0bV0.mjs} +0 -0
- /package/dist/{transform-job-DjhoJbiV.mjs → transform-job-DpDGoqQt.mjs} +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
9
|
-
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-DlfbIXHw.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./parse-id-BapRoz4R.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, formatSyncTask, pollSyncTask, throwIfFailedTask } from "./poll-task-Dalt24ov.mjs";
|
|
7
|
+
import "./poll-CYFFYOiB.mjs";
|
|
8
|
+
import { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Crs-j7Z8.mjs";
|
|
10
9
|
import { z } from "zod";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/git-sync/stash.ts
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import { IsDirtyResult } from "./is-dirty-hKcB4OH9.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed, formatSyncTask } from "./poll-task-Dalt24ov.mjs";
|
|
6
|
+
import "./poll-CYFFYOiB.mjs";
|
|
7
|
+
import { IsDirtyResult } from "./is-dirty-D_e5Xoke.mjs";
|
|
9
8
|
import { z } from "zod";
|
|
10
9
|
|
|
11
10
|
//#region src/commands/git-sync/status.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { ParsedVersionSchema, ProbedUser, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, originOnly, readProfileRecord, resolveProfileName } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { renderTimestamp, renderUserName, renderUserRole, renderVersionTag } from "./render-khznBlla.mjs";
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { ParsedVersionSchema, ProbedUser, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, originOnly, readProfileRecord, resolveProfileName } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { renderTimestamp, renderUserName, renderUserRole, renderVersionTag } from "./render-BQHJhSP1.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/auth/status.ts
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/field/summary.ts
|
|
10
9
|
var summary_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
9
|
-
import { DatabaseSyncResult, databaseSyncResultView } from "./database-BXiue1in.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import "./table-CkWja2UH.mjs";
|
|
8
|
+
import { DatabaseSyncResult, databaseSyncResultView } from "./database-_Td7rG4o.mjs";
|
|
10
9
|
import { z } from "zod";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/db/sync-schema.ts
|
|
@@ -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: "Manage Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-BZkOPBmK.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-Cu7Om0g2.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-C-bcafH-.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-BD52yx5k.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-BA48uHRd.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-pXgd_HTy.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-436DayeX.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BscN4jFB.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BJhk_A4R.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-CF8in6gw.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-m-6cOPnX.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-PL8TRDGx.mjs").then((mod) => mod.default),
|
|
17
|
+
cancel: () => import("./cancel-DDKstWQM.mjs").then((mod) => mod.default),
|
|
18
|
+
"get-run": () => import("./get-run-BEvwTmr7.mjs").then((mod) => mod.default),
|
|
19
|
+
runs: () => import("./runs-B86YP36a.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-CmVbbX3f.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-EJOWmpkC.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-BfseKO3F.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-WMzbyUw2.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-C3i5dE4s.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { transform_job_default as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { CollectionTreeNode } from "./collection-Bcy8cWYH.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { writeJson } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { CollectionTreeNode } from "./collection-B3sPXRLs.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/collection/tree.ts
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import "./validate-
|
|
11
|
-
import {
|
|
12
|
-
import { Measure, MeasureUpdateInput, measureView } from "./measure-Bt3InQsA.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
9
|
+
import "./validate-CqVB_3_p.mjs";
|
|
10
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-BUTNK00f.mjs";
|
|
11
|
+
import { Measure, MeasureUpdateInput, measureView } from "./measure-ClESGxIb.mjs";
|
|
13
12
|
|
|
14
13
|
//#region src/commands/measure/update.ts
|
|
15
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Table, TableUpdateInput, tableView } from "./table-qDD2kApF.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import "./field-MGxpNQUH.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
8
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
10
|
+
import { Table, TableUpdateInput, tableView } from "./table-CkWja2UH.mjs";
|
|
12
11
|
|
|
13
12
|
//#region src/commands/table/update.ts
|
|
14
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import "./validate-
|
|
13
|
-
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CYvOP8Ld.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import "./field-MGxpNQUH.mjs";
|
|
7
|
+
import { Card, CardUpdateInput, cardView } from "./card-BtPiKjbB.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
9
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
10
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
11
|
+
import "./validate-CqVB_3_p.mjs";
|
|
12
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-BUTNK00f.mjs";
|
|
14
13
|
|
|
15
14
|
//#region src/commands/card/update.ts
|
|
16
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import "./validate-
|
|
11
|
-
import {
|
|
12
|
-
import { Transform, TransformUpdateInput, transformView } from "./transform-BKahefz_.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
9
|
+
import "./validate-CqVB_3_p.mjs";
|
|
10
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-BUTNK00f.mjs";
|
|
11
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-DyJb0bV0.mjs";
|
|
13
12
|
|
|
14
13
|
//#region src/commands/transform/update.ts
|
|
15
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import "./
|
|
13
|
-
import {
|
|
14
|
-
import { preflightDashcardCardReferences } from "./preflight-BhsErYz3.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import "./field-MGxpNQUH.mjs";
|
|
7
|
+
import "./card-BtPiKjbB.mjs";
|
|
8
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
9
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
10
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
11
|
+
import "./validate-CqVB_3_p.mjs";
|
|
12
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-FY5UzJ_Z.mjs";
|
|
13
|
+
import { preflightDashcardCardReferences } from "./preflight-G7NUAKod.mjs";
|
|
15
14
|
|
|
16
15
|
//#region src/commands/dashboard/update.ts
|
|
17
16
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-bi_0XbNT.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
9
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-xh42tYly.mjs";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/snippet/update.ts
|
|
13
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { Field, FieldUpdateInput, fieldView } from "./field-MGxpNQUH.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
8
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/field/update.ts
|
|
13
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import "./validate-
|
|
11
|
-
import {
|
|
12
|
-
import { Segment, SegmentUpdateInput, segmentView } from "./segment-DhBmcr_E.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
9
|
+
import "./validate-CqVB_3_p.mjs";
|
|
10
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-BUTNK00f.mjs";
|
|
11
|
+
import { Segment, SegmentUpdateInput, segmentView } from "./segment-Be2v4ilr.mjs";
|
|
13
12
|
|
|
14
13
|
//#region src/commands/segment/update.ts
|
|
15
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-DjhoJbiV.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
9
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-DpDGoqQt.mjs";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/transform-job/update.ts
|
|
13
12
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-B4bn3z6t.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
8
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
9
|
+
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-FY5UzJ_Z.mjs";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/dashboard/update-dashcard.ts
|
|
13
12
|
var update_dashcard_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags, package_default } from "./error-
|
|
3
|
-
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { promptConfirm } from "./prompt-CFKoys7k.mjs";
|
|
7
|
-
import { streamProcess } from "./process-CM7Uu5q_.mjs";
|
|
1
|
+
import { AbortError, NetworkError, TimeoutError, UnknownError, errorMessage, isNotFoundError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
+
import { outputFlags, package_default } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { HttpError, USER_AGENT, combineAborts, defineMetabaseCommand, parseJson, throwIfAborted } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderItem, writeText } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { promptConfirm } from "./prompt-u4WhE4T5.mjs";
|
|
8
6
|
import { z } from "zod";
|
|
9
7
|
import { realpathSync } from "node:fs";
|
|
10
8
|
import { compare, valid } from "semver";
|
|
9
|
+
import { spawn } from "node:child_process";
|
|
11
10
|
|
|
12
11
|
//#region src/core/http/npm-registry.ts
|
|
13
12
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org";
|
|
@@ -250,6 +249,34 @@ function compareSemver(a, b) {
|
|
|
250
249
|
return compare(a, b);
|
|
251
250
|
}
|
|
252
251
|
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/runtime/process.ts
|
|
254
|
+
var ProcessNotFoundError = class extends Error {
|
|
255
|
+
command;
|
|
256
|
+
constructor(command) {
|
|
257
|
+
super(`command not found: ${command}`);
|
|
258
|
+
this.name = "ProcessNotFoundError";
|
|
259
|
+
this.command = command;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const stdoutDecoder = new TextDecoder("utf-8");
|
|
263
|
+
function streamProcess(command, args, options = {}) {
|
|
264
|
+
return new Promise((resolve, reject) => {
|
|
265
|
+
const child = spawn(command, args, {
|
|
266
|
+
stdio: "inherit",
|
|
267
|
+
...options.shell === true ? { shell: true } : {}
|
|
268
|
+
});
|
|
269
|
+
child.on("error", (error) => {
|
|
270
|
+
if (isNotFoundError(error)) {
|
|
271
|
+
reject(new ProcessNotFoundError(command));
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
reject(error);
|
|
275
|
+
});
|
|
276
|
+
child.on("close", (code) => resolve(code));
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
253
280
|
//#endregion
|
|
254
281
|
//#region src/commands/upgrade.ts
|
|
255
282
|
const UpgradeCommandSchema = z.object({
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseInteger } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import { writeJson, writeText } from "./render-0_GsapXa.mjs";
|
|
2
|
+
import { outputFlags } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseInteger } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { writeJson, writeText } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
5
|
import { z } from "zod";
|
|
7
6
|
import { randomUUID } from "node:crypto";
|
|
8
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigError, escapeJsonPointerSegment } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { isPlainObject } from "./capabilities-
|
|
2
|
+
import { isPlainObject } from "./capabilities-Dj3NgPHg.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import Ajv2020 from "ajv/dist/2020.js";
|
|
5
5
|
import addFormats from "ajv-formats";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { writeJson } from "./
|
|
3
|
-
import { assertNotLegacyEnvelopeWrappingMbql5, isMbql5Query, validateQuery } from "./validate-
|
|
2
|
+
import { writeJson } from "./capabilities-Dj3NgPHg.mjs";
|
|
3
|
+
import { assertNotLegacyEnvelopeWrappingMbql5, isMbql5Query, validateQuery } from "./validate-CqVB_3_p.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/validate-query.ts
|
|
6
6
|
const skipValidateFlag = { "skip-validate": {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { parseId } from "./parse-id-0_tOPvfI.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { formatScalar, renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { FieldValues, fieldValuesView } from "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/field/values.ts
|
|
10
9
|
var values_default = defineMetabaseCommand({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetabaseError, NetworkError, TimeoutError, errorMessage } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { HttpError, createClient, probeServer } from "./runtime-
|
|
2
|
+
import { HttpError, createClient, probeServer } from "./runtime-C2EDX9E7.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/user.ts
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-4eoh5J0r.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, formatSyncTask, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-Dalt24ov.mjs";
|
|
7
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CYFFYOiB.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/git-sync/wait.ts
|
|
11
10
|
const WaitResult = SyncTaskOrIdle;
|
|
@@ -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-BapRoz4R.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-CYFFYOiB.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitScheduleFlags = {
|