claudetracer 1.0.3 → 1.0.6
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/bin/dashboard.ts +8 -8
- package/package.json +1 -1
package/bin/dashboard.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { execSync } from "child_process";
|
|
3
|
-
import * as path from "path";
|
|
4
3
|
|
|
5
|
-
const
|
|
4
|
+
const url = "https://tracer-dashboard-alpha.vercel.app";
|
|
6
5
|
|
|
7
|
-
console.log("\n
|
|
6
|
+
console.log("\n📊 Opening Tracer Dashboard...\n");
|
|
8
7
|
|
|
9
8
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
9
|
+
const platform = process.platform;
|
|
10
|
+
if (platform === "darwin") execSync(`open ${url}`);
|
|
11
|
+
else if (platform === "win32") execSync(`start ${url}`);
|
|
12
|
+
else execSync(`xdg-open ${url}`);
|
|
13
|
+
console.log(`✅ Dashboard opened at ${url}\n`);
|
|
14
14
|
} catch (e) {
|
|
15
|
-
console.
|
|
15
|
+
console.log(`Open this URL in your browser: ${url}\n`);
|
|
16
16
|
}
|