@reporting-bi/cli 0.0.19 → 0.0.20
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 +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34447,7 +34447,7 @@ function text(data) {
|
|
|
34447
34447
|
async function mcp() {
|
|
34448
34448
|
const server = new McpServer({
|
|
34449
34449
|
name: "reporting-bi",
|
|
34450
|
-
version: "0.0.
|
|
34450
|
+
version: "0.0.20"
|
|
34451
34451
|
});
|
|
34452
34452
|
server.tool(
|
|
34453
34453
|
"status",
|
|
@@ -34991,8 +34991,8 @@ async function checkForUpdate() {
|
|
|
34991
34991
|
saveUpdateCheck({ lastCheck: now });
|
|
34992
34992
|
const latest = await fetchLatestVersion();
|
|
34993
34993
|
if (!latest) return;
|
|
34994
|
-
if (!isNewer(latest, "0.0.
|
|
34995
|
-
console.log(`\x1B[33mUpdating ${PACKAGE_NAME} ${"0.0.
|
|
34994
|
+
if (!isNewer(latest, "0.0.20")) return;
|
|
34995
|
+
console.log(`\x1B[33mUpdating ${PACKAGE_NAME} ${"0.0.20"} \u2192 ${latest}...\x1B[0m`);
|
|
34996
34996
|
(0, import_node_child_process2.execSync)(npmInstallCmd(latest), { stdio: "inherit" });
|
|
34997
34997
|
console.log(`\x1B[32mUpdated to ${latest}.\x1B[0m`);
|
|
34998
34998
|
} catch {
|
|
@@ -35004,11 +35004,11 @@ async function forceUpdate() {
|
|
|
35004
35004
|
console.error("Could not fetch latest version from npm.");
|
|
35005
35005
|
process.exit(1);
|
|
35006
35006
|
}
|
|
35007
|
-
if (!isNewer(latest, "0.0.
|
|
35008
|
-
console.log(`Already up to date (${"0.0.
|
|
35007
|
+
if (!isNewer(latest, "0.0.20")) {
|
|
35008
|
+
console.log(`Already up to date (${"0.0.20"}).`);
|
|
35009
35009
|
return;
|
|
35010
35010
|
}
|
|
35011
|
-
console.log(`Updating ${PACKAGE_NAME} ${"0.0.
|
|
35011
|
+
console.log(`Updating ${PACKAGE_NAME} ${"0.0.20"} \u2192 ${latest}...`);
|
|
35012
35012
|
(0, import_node_child_process2.execSync)(npmInstallCmd(latest), { stdio: "inherit" });
|
|
35013
35013
|
console.log(`\x1B[32mUpdated to ${latest}.\x1B[0m`);
|
|
35014
35014
|
saveUpdateCheck({ lastCheck: Date.now() });
|
|
@@ -35146,7 +35146,7 @@ Examples:
|
|
|
35146
35146
|
(async () => {
|
|
35147
35147
|
const [command, ...args] = process.argv.slice(2);
|
|
35148
35148
|
if (command === "--version" || command === "-v") {
|
|
35149
|
-
console.log("0.0.
|
|
35149
|
+
console.log("0.0.20");
|
|
35150
35150
|
return;
|
|
35151
35151
|
}
|
|
35152
35152
|
await checkForUpdate();
|