@reporting-bi/cli 0.1.0 → 0.1.2
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 +10 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10729,7 +10729,7 @@ async function push(flags, files) {
|
|
|
10729
10729
|
const force = flags.force === "true";
|
|
10730
10730
|
let filesToPush;
|
|
10731
10731
|
if (files.length > 0) {
|
|
10732
|
-
filesToPush = files.map((f) => path3.relative(root, path3.resolve(f)));
|
|
10732
|
+
filesToPush = files.map((f) => path3.relative(root, path3.resolve(f)).replace(/\\/g, "/"));
|
|
10733
10733
|
} else {
|
|
10734
10734
|
filesToPush = detectModifiedFiles(root, index);
|
|
10735
10735
|
}
|
|
@@ -10865,8 +10865,8 @@ function walkDir(dir, root, knownPaths, result) {
|
|
|
10865
10865
|
const full = path3.join(dir, entry.name);
|
|
10866
10866
|
if (entry.isDirectory()) {
|
|
10867
10867
|
walkDir(full, root, knownPaths, result);
|
|
10868
|
-
} else if (entry.name.
|
|
10869
|
-
const rel = path3.relative(root, full);
|
|
10868
|
+
} else if (!entry.name.startsWith(".")) {
|
|
10869
|
+
const rel = path3.relative(root, full).replace(/\\/g, "/");
|
|
10870
10870
|
if (!knownPaths.has(rel)) {
|
|
10871
10871
|
result.push(rel);
|
|
10872
10872
|
}
|
|
@@ -34509,7 +34509,7 @@ function text(data) {
|
|
|
34509
34509
|
async function mcp() {
|
|
34510
34510
|
const server = new McpServer({
|
|
34511
34511
|
name: "reporting-bi",
|
|
34512
|
-
version: "0.
|
|
34512
|
+
version: "0.1.2"
|
|
34513
34513
|
});
|
|
34514
34514
|
server.tool(
|
|
34515
34515
|
"status",
|
|
@@ -35053,8 +35053,8 @@ async function checkForUpdate() {
|
|
|
35053
35053
|
saveUpdateCheck({ lastCheck: now });
|
|
35054
35054
|
const latest = await fetchLatestVersion();
|
|
35055
35055
|
if (!latest) return;
|
|
35056
|
-
if (!isNewer(latest, "0.
|
|
35057
|
-
console.log(`\x1B[33mUpdating ${PACKAGE_NAME} ${"0.
|
|
35056
|
+
if (!isNewer(latest, "0.1.2")) return;
|
|
35057
|
+
console.log(`\x1B[33mUpdating ${PACKAGE_NAME} ${"0.1.2"} \u2192 ${latest}...\x1B[0m`);
|
|
35058
35058
|
(0, import_node_child_process3.execSync)(npmInstallCmd(latest), { stdio: "inherit" });
|
|
35059
35059
|
console.log(`\x1B[32mUpdated to ${latest}.\x1B[0m`);
|
|
35060
35060
|
} catch {
|
|
@@ -35066,11 +35066,11 @@ async function forceUpdate() {
|
|
|
35066
35066
|
console.error("Could not fetch latest version from npm.");
|
|
35067
35067
|
process.exit(1);
|
|
35068
35068
|
}
|
|
35069
|
-
if (!isNewer(latest, "0.
|
|
35070
|
-
console.log(`Already up to date (${"0.
|
|
35069
|
+
if (!isNewer(latest, "0.1.2")) {
|
|
35070
|
+
console.log(`Already up to date (${"0.1.2"}).`);
|
|
35071
35071
|
return;
|
|
35072
35072
|
}
|
|
35073
|
-
console.log(`Updating ${PACKAGE_NAME} ${"0.
|
|
35073
|
+
console.log(`Updating ${PACKAGE_NAME} ${"0.1.2"} \u2192 ${latest}...`);
|
|
35074
35074
|
(0, import_node_child_process3.execSync)(npmInstallCmd(latest), { stdio: "inherit" });
|
|
35075
35075
|
console.log(`\x1B[32mUpdated to ${latest}.\x1B[0m`);
|
|
35076
35076
|
saveUpdateCheck({ lastCheck: Date.now() });
|
|
@@ -35208,7 +35208,7 @@ Examples:
|
|
|
35208
35208
|
(async () => {
|
|
35209
35209
|
const [command, ...args] = process.argv.slice(2);
|
|
35210
35210
|
if (command === "--version" || command === "-v") {
|
|
35211
|
-
console.log("0.
|
|
35211
|
+
console.log("0.1.2");
|
|
35212
35212
|
return;
|
|
35213
35213
|
}
|
|
35214
35214
|
await checkForUpdate();
|