@reporting-bi/cli 0.1.3 → 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/dist/index.js +22 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10278,8 +10278,21 @@ async function logout(domain2) {
|
|
|
10278
10278
|
console.log(`Logged out from ${domain2}.`);
|
|
10279
10279
|
}
|
|
10280
10280
|
|
|
10281
|
+
// src/logo.ts
|
|
10282
|
+
var LOGO = `
|
|
10283
|
+
\x1B[36m\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557
|
|
10284
|
+
\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551
|
|
10285
|
+
\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551
|
|
10286
|
+
\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551
|
|
10287
|
+
\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551
|
|
10288
|
+
\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D\x1B[0m`;
|
|
10289
|
+
function printLogo() {
|
|
10290
|
+
console.log(LOGO);
|
|
10291
|
+
}
|
|
10292
|
+
|
|
10281
10293
|
// src/commands/status.ts
|
|
10282
10294
|
function status() {
|
|
10295
|
+
printLogo();
|
|
10283
10296
|
const creds = loadCredentials();
|
|
10284
10297
|
const local = findLocalConfig();
|
|
10285
10298
|
const domains = Object.keys(creds.connections);
|
|
@@ -35072,7 +35085,7 @@ function text(data) {
|
|
|
35072
35085
|
async function mcp() {
|
|
35073
35086
|
const server = new McpServer({
|
|
35074
35087
|
name: "reporting-bi",
|
|
35075
|
-
version: "0.1.
|
|
35088
|
+
version: "0.1.5"
|
|
35076
35089
|
});
|
|
35077
35090
|
server.tool(
|
|
35078
35091
|
"status",
|
|
@@ -35618,8 +35631,8 @@ async function checkForUpdate() {
|
|
|
35618
35631
|
saveUpdateCheck({ lastCheck: now });
|
|
35619
35632
|
const latest = await fetchLatestVersion();
|
|
35620
35633
|
if (!latest) return;
|
|
35621
|
-
if (!isNewer(latest, "0.1.
|
|
35622
|
-
console.log(`\x1B[33mUpdating ${PACKAGE_NAME} ${"0.1.
|
|
35634
|
+
if (!isNewer(latest, "0.1.5")) return;
|
|
35635
|
+
console.log(`\x1B[33mUpdating ${PACKAGE_NAME} ${"0.1.5"} \u2192 ${latest}...\x1B[0m`);
|
|
35623
35636
|
(0, import_node_child_process3.execSync)(npmInstallCmd(latest), { stdio: "inherit" });
|
|
35624
35637
|
console.log(`\x1B[32mUpdated to ${latest}.\x1B[0m`);
|
|
35625
35638
|
} catch {
|
|
@@ -35631,11 +35644,11 @@ async function forceUpdate() {
|
|
|
35631
35644
|
console.error("Could not fetch latest version from npm.");
|
|
35632
35645
|
process.exit(1);
|
|
35633
35646
|
}
|
|
35634
|
-
if (!isNewer(latest, "0.1.
|
|
35635
|
-
console.log(`Already up to date (${"0.1.
|
|
35647
|
+
if (!isNewer(latest, "0.1.5")) {
|
|
35648
|
+
console.log(`Already up to date (${"0.1.5"}).`);
|
|
35636
35649
|
return;
|
|
35637
35650
|
}
|
|
35638
|
-
console.log(`Updating ${PACKAGE_NAME} ${"0.1.
|
|
35651
|
+
console.log(`Updating ${PACKAGE_NAME} ${"0.1.5"} \u2192 ${latest}...`);
|
|
35639
35652
|
(0, import_node_child_process3.execSync)(npmInstallCmd(latest), { stdio: "inherit" });
|
|
35640
35653
|
console.log(`\x1B[32mUpdated to ${latest}.\x1B[0m`);
|
|
35641
35654
|
saveUpdateCheck({ lastCheck: Date.now() });
|
|
@@ -35785,7 +35798,7 @@ Examples:
|
|
|
35785
35798
|
(async () => {
|
|
35786
35799
|
const [command, ...args] = process.argv.slice(2);
|
|
35787
35800
|
if (command === "--version" || command === "-v") {
|
|
35788
|
-
console.log("0.1.
|
|
35801
|
+
console.log("0.1.5");
|
|
35789
35802
|
return;
|
|
35790
35803
|
}
|
|
35791
35804
|
await checkForUpdate();
|
|
@@ -35848,6 +35861,8 @@ Examples:
|
|
|
35848
35861
|
init(args);
|
|
35849
35862
|
break;
|
|
35850
35863
|
default:
|
|
35864
|
+
printLogo();
|
|
35865
|
+
console.log();
|
|
35851
35866
|
console.log(USAGE_default);
|
|
35852
35867
|
break;
|
|
35853
35868
|
}
|