@metabase/cli 0.1.6 → 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 +16 -238
- package/dist/{add-collection-BU8r3r2M.mjs → add-collection-CuLyFlrE.mjs} +8 -6
- package/dist/add-collection-DkucDB2N.mjs +10 -0
- package/dist/{archive-DMPS8Kih.mjs → archive-C1lk1rR7.mjs} +5 -6
- package/dist/{archive-C1enZgKV.mjs → archive-C2AfP9G_.mjs} +6 -7
- package/dist/{archive-lWgqiFAt.mjs → archive-COAWrOVp.mjs} +5 -6
- package/dist/{archive-BNinrUak.mjs → archive-DNVqPMhp.mjs} +7 -8
- package/dist/{archive-CRhiBpPJ.mjs → archive-Dt1qDaIF.mjs} +5 -6
- package/dist/{archive-CDA0KxL8.mjs → archive-mdSqCzVw.mjs} +5 -6
- package/dist/auth-WILFa6Xf.mjs +19 -0
- package/dist/{body-DjdFxjpg.mjs → body-b76dLVpL.mjs} +2 -2
- package/dist/{branches-B1WRfG7-.mjs → branches-DwV1q-4h.mjs} +5 -6
- package/dist/{cancel-Dl_Ho056.mjs → cancel-DDKstWQM.mjs} +6 -7
- package/dist/{cancel-task-CdigdCaO.mjs → cancel-task-DX_OdGan.mjs} +6 -7
- package/dist/{render-CfznwleY.mjs → capabilities-Dj3NgPHg.mjs} +66 -10
- package/dist/card-Bd8jLmZW.mjs +20 -0
- package/dist/{card-DlCAaAPq.mjs → card-BtPiKjbB.mjs} +1 -1
- package/dist/{cards-BGiJS675.mjs → cards-CYKPNOp3.mjs} +4 -5
- package/dist/cli.mjs +23 -24
- package/dist/collection-gz4k8jWl.mjs +20 -0
- package/dist/{create-Be_0Vier.mjs → create-B4aKAWaQ.mjs} +8 -9
- package/dist/{create-dhxPxfF3.mjs → create-BfRIHlHk.mjs} +12 -13
- package/dist/{create-CzzrbL0u.mjs → create-BfseKO3F.mjs} +8 -9
- package/dist/{create-BTcpaop_.mjs → create-BqiR1kvi.mjs} +7 -8
- package/dist/{create-BYlIju0b.mjs → create-BscN4jFB.mjs} +10 -11
- package/dist/{create-CwGtmwqm.mjs → create-CE1WZ4du.mjs} +9 -10
- package/dist/{create-DGth_uOp.mjs → create-CQxJpVXk.mjs} +9 -10
- package/dist/{create-BNiva__H.mjs → create-DRhRPfD-.mjs} +11 -12
- package/dist/{create-branch-DKZkoQ64.mjs → create-branch-2yEa7-9x.mjs} +6 -7
- package/dist/{current-task-CCRzm0_7.mjs → current-task-5buIatuG.mjs} +7 -8
- package/dist/dashboard-BL8_Ysst.mjs +21 -0
- package/dist/{database-lH-B3G1I.mjs → database-_Td7rG4o.mjs} +1 -1
- package/dist/db-Bw8m4M2J.mjs +22 -0
- package/dist/{delete-Dimc-2y8.mjs → delete-C3i5dE4s.mjs} +8 -7
- package/dist/{delete-ZjnV35OJ.mjs → delete-CF8in6gw.mjs} +8 -7
- package/dist/{delete-runtime-B6RQo_pw.mjs → delete-runtime-Bo7v-0au.mjs} +6 -6
- package/dist/{delete-table-agZJpivt.mjs → delete-table-m-6cOPnX.mjs} +8 -7
- package/dist/{dirty-D4d0yHqj.mjs → dirty-hGWiemB-.mjs} +5 -6
- package/dist/{eid-BXzaQh0o.mjs → eid-BP0H-LTl.mjs} +12 -8
- package/dist/{error-C9S6PN3-.mjs → error-BLukG0Vf.mjs} +3 -2
- package/dist/{export-DTygoXBP.mjs → export-wh9l0s7F.mjs} +10 -10
- package/dist/field-GgVH-HUD.mjs +18 -0
- package/dist/{field-yomXlkvl.mjs → field-MGxpNQUH.mjs} +12 -3
- package/dist/{fields-CoQi99gv.mjs → fields-BD52yx5k.mjs} +6 -7
- package/dist/{get-C2p383Qc.mjs → get-436DayeX.mjs} +5 -6
- package/dist/{get-D3SbEQSE.mjs → get-B1jyFBkg.mjs} +4 -5
- package/dist/{get-C3HdQ91a.mjs → get-BLUldOxi.mjs} +5 -6
- package/dist/{get-CP3Z3NiH.mjs → get-BVMyLnhh.mjs} +6 -7
- package/dist/{get-Bzys7vgp.mjs → get-BhFiIyyH.mjs} +4 -5
- package/dist/{get-lb7q3JYs.mjs → get-C5PKCCzj.mjs} +3 -4
- package/dist/{get-DQTZG_NP.mjs → get-C_LAPJ7J.mjs} +4 -5
- package/dist/{get-CzuzeKSe.mjs → get-CgdzDOTX.mjs} +7 -8
- package/dist/{get-C_w1kvN3.mjs → get-Cu7Om0g2.mjs} +6 -7
- package/dist/{get-Ddr0XLh7.mjs → get-DETcYP1F.mjs} +5 -6
- package/dist/{get-DFxZXaKz.mjs → get-DSmnRBrw.mjs} +5 -7
- package/dist/{get-Hc93A0Yz.mjs → get-EJOWmpkC.mjs} +5 -6
- package/dist/{get-run-B7sKdaDU.mjs → get-run-BEvwTmr7.mjs} +5 -6
- package/dist/{get-DSWFjy7O.mjs → get-z9XIWbVG.mjs} +4 -5
- package/dist/git-sync-oYYp_Z6v.mjs +28 -0
- package/dist/{has-remote-changes-BY10-nnE.mjs → has-remote-changes-BNjTil7k.mjs} +7 -7
- package/dist/{import-CiMz4Wz-.mjs → import-C0iBM0UR.mjs} +11 -10
- package/dist/is-dirty-C_RyVkc1.mjs +9 -0
- package/dist/{is-dirty-BZOaryxT.mjs → is-dirty-D_e5Xoke.mjs} +5 -5
- package/dist/{items-BWfvkY-J.mjs → items-D6h0ejme.mjs} +4 -5
- package/dist/{list-BI4zr8LW.mjs → list-B3CgwSU4.mjs} +6 -7
- package/dist/{list-DZ8fNUoQ.mjs → list-BJxm0-6m.mjs} +6 -7
- package/dist/{list-sD5N3fGk.mjs → list-BZkOPBmK.mjs} +6 -7
- package/dist/{list-2j7GsXsl.mjs → list-CSX_xieo.mjs} +3 -4
- package/dist/{list-D4sFiqX8.mjs → list-CWItVq2v.mjs} +5 -6
- package/dist/{list-Brgh-Z2v.mjs → list-CkCgkJFh.mjs} +4 -5
- package/dist/{list-d58BprgJ.mjs → list-CmVbbX3f.mjs} +4 -5
- package/dist/{list--OYdUTtu.mjs → list-D0ZVA1e1.mjs} +4 -5
- package/dist/{list-CL7eCOQE.mjs → list-DLC82gFo.mjs} +3 -4
- package/dist/{list-SOG0whQ-.mjs → list-DcV2bfg8.mjs} +3 -4
- package/dist/{list-Clz5igWg.mjs → list-ZX3ooQ9h.mjs} +4 -6
- package/dist/{list-C3hfovHv.mjs → list-pXgd_HTy.mjs} +4 -5
- package/dist/{list-DXH7TlkU.mjs → list-r3gm10tz.mjs} +4 -5
- package/dist/{login-Bm2AnCez.mjs → login-DSS8QywX.mjs} +17 -14
- package/dist/{logout-BlyRJODO.mjs → logout-B6acbVng.mjs} +9 -9
- package/dist/{manifest-BBR46KFM.mjs → manifest-B_OfG-Ss.mjs} +1 -2
- package/dist/measure-DDn0jAB8.mjs +19 -0
- package/dist/{metadata-DqiI2q9q.mjs → metadata-C-bcafH-.mjs} +6 -7
- package/dist/{metadata-B8ZSF9LA.mjs → metadata-D_wFDaCb.mjs} +7 -8
- package/dist/{parse-id-lk_K-CEF.mjs → parse-id-BapRoz4R.mjs} +1 -1
- package/dist/{path-AEtZ3mBq.mjs → path-DmYXSF59.mjs} +4 -6
- package/dist/{poll-DHKDpCiq.mjs → poll-CYFFYOiB.mjs} +1 -1
- package/dist/{poll-task-Cooi0lQV.mjs → poll-task-Dalt24ov.mjs} +19 -3
- package/dist/{preflight-aXV5LyDs.mjs → preflight-G7NUAKod.mjs} +3 -3
- package/dist/{query-BlsVNZpD.mjs → query-COWTai5j.mjs} +12 -12
- package/dist/{query-AaKzYnTY.mjs → query-DRosi9Ha.mjs} +9 -8
- package/dist/query-result-PoQE05Pe.mjs +19 -0
- package/dist/{remove-collection-CoCmrrQs.mjs → remove-collection-CLWw-48s.mjs} +10 -9
- package/dist/{render-OQn3iRsI.mjs → render-BQHJhSP1.mjs} +1 -1
- package/dist/{rescan-values-C0FDsjT7.mjs → rescan-values-C3L03Crf.mjs} +9 -10
- package/dist/{run-B4Wn43zm.mjs → run-PL8TRDGx.mjs} +14 -14
- package/dist/{runs-Bbaszr18.mjs → runs-B86YP36a.mjs} +5 -6
- package/dist/{runtime-Dmv5VtUK.mjs → runtime-C2EDX9E7.mjs} +16 -87
- package/dist/{schema-tables-CaWinbuK.mjs → schema-tables-CZr0QT1g.mjs} +6 -7
- package/dist/{schemas-DUgGpAyB.mjs → schemas-DnGJlmQl.mjs} +4 -5
- package/dist/{search-BLrBXLUk.mjs → search-thFe-n3F.mjs} +4 -5
- package/dist/segment-ydERbF0L.mjs +19 -0
- package/dist/{set-DfGsta5O.mjs → set-CDQE4s8H.mjs} +7 -7
- package/dist/setting-BTMmbmKB.mjs +17 -0
- package/dist/{setup-C9ikBRw_.mjs → setup-mOHveOFI.mjs} +7 -8
- package/dist/{skills-CiN1OQ8W.mjs → skills-BDPVoBWU.mjs} +33 -2
- package/dist/{skills-CUHIcQS6.mjs → skills-d2iLclsk.mjs} +3 -3
- package/dist/snippet-i1Z8-yJQ.mjs +19 -0
- package/dist/{stash-EIDcSvpF.mjs → stash-B4RTStPo.mjs} +11 -10
- package/dist/{status-95ElRAu9.mjs → status-B7H0JH52.mjs} +10 -8
- package/dist/{status-B0_MiZEf.mjs → status-DoVvjifV.mjs} +4 -5
- package/dist/{summary-C12LiEuJ.mjs → summary-BsdiF7LZ.mjs} +5 -6
- package/dist/{sync-schema-Ba8M3DiX.mjs → sync-schema-CvXkT9Rg.mjs} +9 -10
- package/dist/{table-C7a5V6Zn.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-Des2ZG9d.mjs → tree-CGBtDXfk.mjs} +3 -4
- package/dist/{update-DzAN4SPj.mjs → update-B89kI8l9.mjs} +10 -11
- package/dist/{update-_QfgNa53.mjs → update-BA48uHRd.mjs} +10 -11
- package/dist/{update-DBi5U8zb.mjs → update-BHit5RyS.mjs} +12 -13
- package/dist/{update-mYVnoYNV.mjs → update-BJhk_A4R.mjs} +11 -12
- package/dist/{update-Bx54nWEI.mjs → update-BJn9ZitD.mjs} +12 -13
- package/dist/{update-F6DmZncY.mjs → update-C44bumhM.mjs} +9 -10
- package/dist/{update-CyIZdbIQ.mjs → update-DqAKFmkw.mjs} +9 -10
- package/dist/{update-njHe3j-s.mjs → update-JpO3b8g3.mjs} +10 -11
- package/dist/{update-DSgceARZ.mjs → update-WMzbyUw2.mjs} +9 -10
- package/dist/{update-dashcard-wpSjv4M7.mjs → update-dashcard-C8BGZtY7.mjs} +8 -9
- package/dist/{upgrade-iAuvhX-W.mjs → upgrade-DeiR3fjf.mjs} +41 -28
- package/dist/{uuid-CMKnS8-z.mjs → uuid-BWvbC2Z8.mjs} +3 -4
- package/dist/{validate-dPEOnOf8.mjs → validate-CqVB_3_p.mjs} +1 -1
- package/dist/{validate-query-Cw6WE5Y8.mjs → validate-query-BUTNK00f.mjs} +2 -2
- package/dist/values-07BZxAK5.mjs +44 -0
- package/dist/{verify-D5YtTqqp.mjs → verify-D2q5RI4i.mjs} +1 -1
- package/dist/{wait-Bv3Tsnv4.mjs → wait-DWyuBO_X.mjs} +8 -9
- package/dist/{wait-flags-Dzq9BGQY.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-C0w6ACQF.mjs +0 -11
- package/dist/auth-CzXb_zB2.mjs +0 -19
- package/dist/capabilities-7e9MgquN.mjs +0 -29
- package/dist/card-DP4rfoOi.mjs +0 -21
- package/dist/collection-tY18ezvn.mjs +0 -21
- package/dist/create-CHF313Qg.mjs +0 -52
- package/dist/credentials-dzeq7ckm.mjs +0 -88
- package/dist/dashboard-ChM_Tu0l.mjs +0 -22
- package/dist/database-CIXwHKjK.mjs +0 -17
- package/dist/db-DrQn_i3W.mjs +0 -22
- package/dist/delete-CM3jnAeQ.mjs +0 -100
- package/dist/deprovision-CwxcIT3k.mjs +0 -65
- package/dist/docker-Oq80q3tu.mjs +0 -515
- package/dist/field-Z6Pcxf4n.mjs +0 -19
- package/dist/git-sync-CiGAad76.mjs +0 -28
- package/dist/is-dirty-Ume4oV0j.mjs +0 -10
- package/dist/license-Dxarh-gG.mjs +0 -17
- package/dist/list-zSO0DMw-.mjs +0 -36
- package/dist/logs-CywPikkL.mjs +0 -60
- package/dist/measure-C44EK_xt.mjs +0 -20
- package/dist/parse-schemas-BqUdWUwq.mjs +0 -12
- package/dist/process-C7V8LJ-j.mjs +0 -105
- package/dist/provision-UWcNDoDe.mjs +0 -82
- package/dist/ps-CJU0EbrC.mjs +0 -80
- package/dist/ps-DEroLgbI.mjs +0 -11
- package/dist/remove-BFWun0e8.mjs +0 -63
- package/dist/segment-B3Uwwcsm.mjs +0 -20
- package/dist/set-B8cUbRLD.mjs +0 -68
- package/dist/setting-D2p2MA7f.mjs +0 -18
- package/dist/snippet-B7D0uWlz.mjs +0 -20
- package/dist/start-3PX3ahjT.mjs +0 -413
- package/dist/status-CEplmC44.mjs +0 -34
- package/dist/stop-CQ0XGrN8.mjs +0 -83
- package/dist/table-e6h8SLVX.mjs +0 -20
- package/dist/transform-BMYh1lsC.mjs +0 -25
- package/dist/transform-job-Cm7z5TfH.mjs +0 -20
- package/dist/update-DHZubok3.mjs +0 -77
- package/dist/url-DWaT6WIZ.mjs +0 -56
- package/dist/values-BfSTAbzc.mjs +0 -37
- package/dist/wait-8yV9_WIo.mjs +0 -19
- package/dist/workspace-BBXJczJK.mjs +0 -72
- package/dist/workspace-CKLZrR7l.mjs +0 -26
- package/dist/workspace-credentials-BXpABsNZ.mjs +0 -100
- package/dist/yaml-YTQiYJ9s.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/{input-cMSEqISy.mjs → input-xewHccej.mjs} +0 -0
- /package/dist/{parse-enum-CrEWOhuY.mjs → parse-enum-Dr7ACrTR.mjs} +0 -0
- /package/dist/{prompt-CFKoys7k.mjs → prompt-u4WhE4T5.mjs} +0 -0
- /package/dist/{snippet-COggaWxx.mjs → snippet-xh42tYly.mjs} +0 -0
- /package/dist/{transform-GTW3G-01.mjs → transform-DyJb0bV0.mjs} +0 -0
- /package/dist/{transform-job-DeTDPMxt.mjs → transform-job-DpDGoqQt.mjs} +0 -0
|
@@ -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 { gitSyncWaitFlags, parseWaitFlags } from "./wait-flags-Dzq9BGQY.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/import.ts
|
|
@@ -76,7 +75,8 @@ var import_default = defineMetabaseCommand({
|
|
|
76
75
|
message: kickoff.message ?? null,
|
|
77
76
|
task_id: kickoff.task_id
|
|
78
77
|
};
|
|
79
|
-
|
|
78
|
+
const text$1 = kickoff.task_id === null ? kickoff.message ?? "Already up to date; nothing to import." : `Started import task #${kickoff.task_id}.`;
|
|
79
|
+
renderSummary(result$1, syncImportView, text$1, ctx);
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
const final = await pollSyncTask(client, wait.schedule);
|
|
@@ -85,7 +85,8 @@ var import_default = defineMetabaseCommand({
|
|
|
85
85
|
task_id: kickoff.task_id,
|
|
86
86
|
final
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
const text = final === null ? `Import task #${kickoff.task_id} finished.` : formatSyncTask(final);
|
|
89
|
+
renderSummary(result, syncImportView, text, ctx);
|
|
89
90
|
throwIfFailedTask(final, "import");
|
|
90
91
|
}
|
|
91
92
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
+
import "./error-BLukG0Vf.mjs";
|
|
3
|
+
import "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./poll-task-Dalt24ov.mjs";
|
|
6
|
+
import "./poll-CYFFYOiB.mjs";
|
|
7
|
+
import { IsDirtyResult, is_dirty_default } from "./is-dirty-D_e5Xoke.mjs";
|
|
8
|
+
|
|
9
|
+
export { is_dirty_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
2
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
3
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
4
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-Dalt24ov.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/git-sync/is-dirty.ts
|
|
@@ -32,7 +32,7 @@ var is_dirty_default = defineMetabaseCommand({
|
|
|
32
32
|
async run({ ctx, getClient }) {
|
|
33
33
|
const client = await getClient();
|
|
34
34
|
const result = await client.requestParsed(IsDirtyResult, REMOTE_SYNC_PATHS.isDirty);
|
|
35
|
-
|
|
35
|
+
renderSummary(result, isDirtyView, result.is_dirty ? "dirty" : "clean", ctx);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum, parseEnumCsv } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { parseId } from "./parse-id-lk_K-CEF.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum, parseEnumCsv } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
6
|
import { COLLECTION_ITEM_FILTER_MODELS, COLLECTION_PINNED_STATES, CollectionItem, CollectionItemCompact, CollectionItemFilterModel, CollectionPinnedState, collectionItemView } from "./collection-B3sPXRLs.mjs";
|
|
8
7
|
import { parseCollectionRef } from "./parse-ref-BiETXmvm.mjs";
|
|
9
8
|
import { collectPaginated } from "./paginate-Dfm9eO9A.mjs";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { parseEnumFlag } from "./parse-enum-CrEWOhuY.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { Card, CardCompact, cardView } from "./card-BtPiKjbB.mjs";
|
|
7
|
+
import { parseEnumFlag } from "./parse-enum-Dr7ACrTR.mjs";
|
|
9
8
|
import { z } from "zod";
|
|
10
9
|
|
|
11
10
|
//#region src/commands/card/list.ts
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseEnum } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import { Database, DatabaseCompact, databaseView } from "./database-lH-B3G1I.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseEnum } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import "./table-CkWja2UH.mjs";
|
|
7
|
+
import { Database, DatabaseCompact, databaseView } from "./database-_Td7rG4o.mjs";
|
|
9
8
|
import { z } from "zod";
|
|
10
9
|
|
|
11
10
|
//#region src/commands/db/list.ts
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import { Table, TableCompact, tableView } from "./table-C7a5V6Zn.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { Table, TableCompact, tableView } from "./table-CkWja2UH.mjs";
|
|
9
8
|
import { z } from "zod";
|
|
10
9
|
|
|
11
10
|
//#region src/commands/table/list.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import { renderList } from "./render-CfznwleY.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
5
|
import { Setting, SettingCompact, settingView } from "./setting-oL97SNeO.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { ParsedVersionSchema, ProbedUser, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, listProfileRecords, originOnly, readProfile, writeProbeFailure, writeProbeResult } from "./runtime-
|
|
4
|
-
import { verifyAndProbe } from "./verify-
|
|
5
|
-
import { warn } from "./capabilities-
|
|
6
|
-
import {
|
|
7
|
-
import { renderTimestamp, renderUserRole, renderVersionTag } from "./render-OQn3iRsI.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { ParsedVersionSchema, ProbedUser, ProfileLastFailure, TokenFeatures, defineMetabaseCommand, listProfileRecords, originOnly, readProfile, writeProbeFailure, writeProbeResult } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { verifyAndProbe } from "./verify-D2q5RI4i.mjs";
|
|
5
|
+
import { renderList, warn } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
|
+
import { renderTimestamp, renderUserRole, renderVersionTag } from "./render-BQHJhSP1.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/auth/list.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { parseEnumFlag } from "./parse-enum-CrEWOhuY.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseEnumFlag } from "./parse-enum-Dr7ACrTR.mjs";
|
|
7
6
|
import { Collection, CollectionCompact, collectionView } from "./collection-B3sPXRLs.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { TransformJob, TransformJobCompact, transformJobView } from "./transform-job-DeTDPMxt.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { TransformJob, TransformJobCompact, transformJobView } from "./transform-job-DpDGoqQt.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform-job/list.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { Snippet, SnippetCompact, snippetView } from "./snippet-COggaWxx.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { Snippet, SnippetCompact, snippetView } from "./snippet-xh42tYly.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/snippet/list.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import { renderList } from "./render-CfznwleY.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
5
|
import { Measure, MeasureCompact, measureView } from "./measure-ClESGxIb.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import { renderList } from "./render-CfznwleY.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
5
|
import { Segment, SegmentCompact, segmentView } from "./segment-Be2v4ilr.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import "./yaml-YTQiYJ9s.mjs";
|
|
7
|
-
import { loadVisibleSkills } from "./skills-CiN1OQ8W.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { loadVisibleSkills } from "./skills-BDPVoBWU.mjs";
|
|
8
6
|
import { z } from "zod";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/skills/list.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { Transform, TransformCompact, transformView } from "./transform-GTW3G-01.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { Transform, TransformCompact, transformView } from "./transform-DyJb0bV0.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/transform/list.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { parseEnumFlag } from "./parse-enum-CrEWOhuY.mjs";
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { parseEnumFlag } from "./parse-enum-Dr7ACrTR.mjs";
|
|
7
6
|
import { Dashboard, DashboardCompact, dashboardView } from "./dashboard-FY5UzJ_Z.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ConfigError, errorMessage } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { DEFAULT_PROFILE, ParsedVersionSchema, ProbedUser, defineMetabaseCommand, explicitProfileName, keyringFallbackWarning, normalizeUrl, readEnvCredentials, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-
|
|
4
|
-
import { verifyAndProbe } from "./verify-
|
|
5
|
-
import { warn } from "./capabilities-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { readInput } from "./input-cMSEqISy.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { DEFAULT_PROFILE, ParsedVersionSchema, ProbedUser, defineMetabaseCommand, explicitProfileName, keyringFallbackWarning, normalizeUrl, readEnvCredentials, writeProbeFailure, writeProbeResult, writeProfile } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { verifyAndProbe } from "./verify-D2q5RI4i.mjs";
|
|
5
|
+
import { renderSummary, warn } from "./capabilities-Dj3NgPHg.mjs";
|
|
6
|
+
import { EMPTY_CELL, renderUserName, renderUserRole, renderVersionTag } from "./render-BQHJhSP1.mjs";
|
|
7
|
+
import { promptPassword, promptText } from "./prompt-u4WhE4T5.mjs";
|
|
8
|
+
import { readInput } from "./input-xewHccej.mjs";
|
|
10
9
|
import { z } from "zod";
|
|
11
10
|
|
|
12
11
|
//#region src/commands/auth/login.ts
|
|
@@ -84,14 +83,14 @@ var login_default = defineMetabaseCommand({
|
|
|
84
83
|
url,
|
|
85
84
|
apiKey
|
|
86
85
|
}, profileName);
|
|
87
|
-
if (location$1.backend === "file") warn(keyringFallbackWarning(location$1
|
|
88
|
-
|
|
86
|
+
if (location$1.backend === "file") warn(keyringFallbackWarning(location$1));
|
|
87
|
+
renderSummary({
|
|
89
88
|
profile: profileName,
|
|
90
89
|
url,
|
|
91
90
|
authenticated: false,
|
|
92
91
|
user: null,
|
|
93
92
|
version: null
|
|
94
|
-
}, loginView, ctx);
|
|
93
|
+
}, loginView, `Saved credentials for profile "${profileName}" (${url}) without verifying.`, ctx);
|
|
95
94
|
return;
|
|
96
95
|
}
|
|
97
96
|
const result = await verifyAndProbe(url, apiKey);
|
|
@@ -106,18 +105,22 @@ var login_default = defineMetabaseCommand({
|
|
|
106
105
|
url,
|
|
107
106
|
apiKey
|
|
108
107
|
}, profileName);
|
|
109
|
-
if (location.backend === "file") warn(keyringFallbackWarning(location
|
|
108
|
+
if (location.backend === "file") warn(keyringFallbackWarning(location));
|
|
110
109
|
await writeProbeResult(profileName, {
|
|
111
110
|
user: result.user,
|
|
112
111
|
server: result.server
|
|
113
112
|
});
|
|
114
|
-
|
|
113
|
+
const who = renderUserName(result.user);
|
|
114
|
+
const role = renderUserRole(result.user);
|
|
115
|
+
const versionTag = renderVersionTag(result.server.version);
|
|
116
|
+
const serverClause = versionTag === EMPTY_CELL ? "" : ` Server ${versionTag}.`;
|
|
117
|
+
renderSummary({
|
|
115
118
|
profile: profileName,
|
|
116
119
|
url,
|
|
117
120
|
authenticated: true,
|
|
118
121
|
user: result.user,
|
|
119
122
|
version: result.server.version
|
|
120
|
-
}, loginView, ctx);
|
|
123
|
+
}, loginView, `Logged in to ${url} as ${who} (${role}). Saved to profile "${profileName}".${serverClause}`, ctx);
|
|
121
124
|
}
|
|
122
125
|
});
|
|
123
126
|
function formatVerifyFailureMessage(profileName, failure) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { clearProfile, defineMetabaseCommand, resolveProfileName } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import { promptConfirm } from "./prompt-CFKoys7k.mjs";
|
|
2
|
+
import { outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { clearProfile, defineMetabaseCommand, resolveProfileName } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { promptConfirm } from "./prompt-u4WhE4T5.mjs";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/commands/auth/logout.ts
|
|
@@ -54,20 +53,21 @@ var logout_default = defineMetabaseCommand({
|
|
|
54
53
|
initialValue: false
|
|
55
54
|
});
|
|
56
55
|
if (!ok) {
|
|
57
|
-
|
|
56
|
+
renderSummary({
|
|
58
57
|
profile: profileName,
|
|
59
58
|
cleared: false,
|
|
60
59
|
aborted: true
|
|
61
|
-
}, logoutView, ctx);
|
|
60
|
+
}, logoutView, `Left credentials for profile "${profileName}" untouched.`, ctx);
|
|
62
61
|
return;
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
const cleared = await clearProfile(profileName);
|
|
66
|
-
|
|
65
|
+
const message = cleared ? `Cleared stored credentials for profile "${profileName}".` : `No stored credentials for profile "${profileName}".`;
|
|
66
|
+
renderSummary({
|
|
67
67
|
profile: profileName,
|
|
68
68
|
cleared,
|
|
69
69
|
aborted: false
|
|
70
|
-
}, logoutView, ctx);
|
|
70
|
+
}, logoutView, message, ctx);
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getMetabaseAugment, resolveCitty, toAliasArray } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { Capabilities } from "./capabilities-
|
|
3
|
-
import { writeJson } from "./render-CfznwleY.mjs";
|
|
2
|
+
import { Capabilities, writeJson } from "./capabilities-Dj3NgPHg.mjs";
|
|
4
3
|
import { defineCommand } from "citty";
|
|
5
4
|
import { z } from "zod";
|
|
6
5
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/measure/index.ts
|
|
4
|
+
var measure_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "measure",
|
|
7
|
+
description: "Manage Metabase measures"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DLC82gFo.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-C_LAPJ7J.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-CE1WZ4du.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-B89kI8l9.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-Dt1qDaIF.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { measure_default as default };
|
|
@@ -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 { TableQueryMetadata, tableView } from "./table-C7a5V6Zn.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 "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import { TableQueryMetadata, tableView } from "./table-CkWja2UH.mjs";
|
|
9
8
|
|
|
10
9
|
//#region src/commands/table/metadata.ts
|
|
11
10
|
var metadata_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 { Database, databaseView } from "./database-lH-B3G1I.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 "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
7
|
+
import "./table-CkWja2UH.mjs";
|
|
8
|
+
import { Database, databaseView } from "./database-_Td7rG4o.mjs";
|
|
10
9
|
|
|
11
10
|
//#region src/commands/db/metadata.ts
|
|
12
11
|
var metadata_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import {
|
|
6
|
-
import "./yaml-YTQiYJ9s.mjs";
|
|
7
|
-
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-CiN1OQ8W.mjs";
|
|
2
|
+
import { listEnvelopeSchema, outputFlags, wrapList } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderList } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import { findSkillByName, loadAllSkills, loadVisibleSkills } from "./skills-BDPVoBWU.mjs";
|
|
8
6
|
import { z } from "zod";
|
|
9
7
|
|
|
10
8
|
//#region src/commands/skills/path.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TimeoutError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { combineAborts, throwIfAborted } from "./runtime-
|
|
2
|
+
import { combineAborts, throwIfAborted } from "./runtime-C2EDX9E7.mjs";
|
|
3
3
|
import { setTimeout } from "node:timers/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/poll.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseJsonOrPlain } from "./runtime-
|
|
2
|
-
import { pollUntil } from "./poll-
|
|
1
|
+
import { parseJsonOrPlain } from "./runtime-C2EDX9E7.mjs";
|
|
2
|
+
import { pollUntil } from "./poll-CYFFYOiB.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/domain/git-sync.ts
|
|
@@ -173,6 +173,22 @@ function throwIfFailedTask(final, verb) {
|
|
|
173
173
|
const detail = final.error_message ? `: ${final.error_message}` : "";
|
|
174
174
|
throw new Error(`git-sync ${verb} ${final.status}${detail}`);
|
|
175
175
|
}
|
|
176
|
+
function formatSyncTask(task) {
|
|
177
|
+
const kind = task.sync_task_type === "export" ? "Export" : "Import";
|
|
178
|
+
const label = `${kind} task #${task.id}`;
|
|
179
|
+
const detail = task.error_message ? `: ${task.error_message}` : "";
|
|
180
|
+
switch (task.status) {
|
|
181
|
+
case "running": {
|
|
182
|
+
const percent = task.progress === null ? "" : ` (${Math.round(task.progress * 100)}%)`;
|
|
183
|
+
return `${label} is running${percent}.`;
|
|
184
|
+
}
|
|
185
|
+
case "successful": return `${label} succeeded.`;
|
|
186
|
+
case "errored": return `${label} errored${detail}.`;
|
|
187
|
+
case "timed-out": return `${label} timed out${detail}.`;
|
|
188
|
+
case "conflict": return `${label} hit conflicts${detail}.`;
|
|
189
|
+
case "cancelled": return `${label} was cancelled.`;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
176
192
|
|
|
177
193
|
//#endregion
|
|
178
|
-
export { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, SyncTask, SyncTaskOrIdle, fetchCurrentTask, fetchOptionalParsed, pollSyncTask, syncDirtyItemView, syncTaskIdleView, syncTaskView, throwIfFailedTask };
|
|
194
|
+
export { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, SyncTask, SyncTaskOrIdle, fetchCurrentTask, fetchOptionalParsed, formatSyncTask, pollSyncTask, syncDirtyItemView, syncTaskIdleView, syncTaskView, throwIfFailedTask };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChainedRequestError, ConfigError, MetabaseError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { HttpError } from "./runtime-
|
|
3
|
-
import { writeJson } from "./
|
|
4
|
-
import { Card } from "./card-
|
|
2
|
+
import { HttpError } from "./runtime-C2EDX9E7.mjs";
|
|
3
|
+
import { writeJson } from "./capabilities-Dj3NgPHg.mjs";
|
|
4
|
+
import { Card } from "./card-BtPiKjbB.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/dashboard/preflight.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary, writeJson } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./input-xewHccej.mjs";
|
|
6
|
+
import "./field-MGxpNQUH.mjs";
|
|
7
|
+
import { CardQueryResult, cardQueryView } from "./card-BtPiKjbB.mjs";
|
|
8
|
+
import { readBody } from "./body-b76dLVpL.mjs";
|
|
9
|
+
import { bodyInputFlags } from "./body-flags-D78h_-Ua.mjs";
|
|
10
|
+
import { assertNotLegacyEnvelopeWrappingMbql5, getQuerySchemaBundle, isMbql5Query, validateQuery } from "./validate-CqVB_3_p.mjs";
|
|
11
|
+
import { skipValidateFlag } from "./validate-query-BUTNK00f.mjs";
|
|
12
|
+
import { formatQueryResult } from "./query-result-PoQE05Pe.mjs";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
|
|
15
15
|
//#region src/commands/query.ts
|
|
@@ -84,7 +84,7 @@ var query_default = defineMetabaseCommand({
|
|
|
84
84
|
method: "POST",
|
|
85
85
|
body
|
|
86
86
|
});
|
|
87
|
-
|
|
87
|
+
renderSummary(queryResult, cardQueryView, () => formatQueryResult(queryResult), ctx);
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-BH9qgQ5u.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand, parseJson } from "./runtime-
|
|
4
|
-
import "./capabilities-
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-BLukG0Vf.mjs";
|
|
3
|
+
import { defineMetabaseCommand, parseJson } from "./runtime-C2EDX9E7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-Dj3NgPHg.mjs";
|
|
5
|
+
import "./field-MGxpNQUH.mjs";
|
|
6
|
+
import { CardQueryResult, cardQueryView } from "./card-BtPiKjbB.mjs";
|
|
7
|
+
import { parseId } from "./parse-id-BapRoz4R.mjs";
|
|
8
|
+
import { formatQueryResult } from "./query-result-PoQE05Pe.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { Writable } from "node:stream";
|
|
11
11
|
|
|
@@ -86,7 +86,8 @@ var query_default = defineMetabaseCommand({
|
|
|
86
86
|
body: { parameters }
|
|
87
87
|
});
|
|
88
88
|
const limit = args.limit === void 0 || args.limit === "" ? null : parseId(args.limit, "limit");
|
|
89
|
-
|
|
89
|
+
const limited = applyLimit(result, limit);
|
|
90
|
+
renderSummary(limited, cardQueryView, () => formatQueryResult(limited), ctx);
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
93
|
function parseParameters(raw) {
|