tanuki-telemetry 1.3.1 → 1.3.3
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/cli.js +22 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -46,7 +46,28 @@ async function update() {
|
|
|
46
46
|
if (typeof installAllTemplateCommands === "function") {
|
|
47
47
|
await installAllTemplateCommands();
|
|
48
48
|
}
|
|
49
|
-
// 2.
|
|
49
|
+
// 2. Sync MCP server version with CLI version
|
|
50
|
+
console.log(" Syncing server version...");
|
|
51
|
+
try {
|
|
52
|
+
execSync(`cd ~/.claude/mcp-servers/telemetry && npm version ${local} --no-git-tag-version --allow-same-version 2>&1`, { stdio: "pipe", timeout: 5000 });
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
// Non-critical
|
|
56
|
+
}
|
|
57
|
+
// 3. Build MCP server + frontend from source
|
|
58
|
+
console.log(" Building MCP server...");
|
|
59
|
+
try {
|
|
60
|
+
execSync("cd ~/.claude/mcp-servers/telemetry && npm run build 2>&1", {
|
|
61
|
+
stdio: "inherit", timeout: 60000,
|
|
62
|
+
});
|
|
63
|
+
execSync("cd ~/.claude/mcp-servers/telemetry/frontend && npm run build 2>&1", {
|
|
64
|
+
stdio: "inherit", timeout: 120000,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
console.log(" Source build failed — continuing with existing dist");
|
|
69
|
+
}
|
|
70
|
+
// 3. Stop existing container
|
|
50
71
|
console.log(" Stopping existing dashboard...");
|
|
51
72
|
try {
|
|
52
73
|
execSync("docker compose -f ~/.claude/mcp-servers/telemetry/docker-compose.yml down 2>&1", { stdio: "inherit", timeout: 30000 });
|