trace-mcp 1.17.0 → 1.18.0
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 +20 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -88596,7 +88596,7 @@ import https from "https";
|
|
|
88596
88596
|
import { spawnSync } from "child_process";
|
|
88597
88597
|
import path63 from "path";
|
|
88598
88598
|
import fs64 from "fs";
|
|
88599
|
-
var CURRENT_VERSION = true ? "1.
|
|
88599
|
+
var CURRENT_VERSION = true ? "1.18.0" : "0.0.0-dev";
|
|
88600
88600
|
var UPDATE_CACHE_PATH = path63.join(TRACE_MCP_HOME, "update-check.json");
|
|
88601
88601
|
function readCache() {
|
|
88602
88602
|
try {
|
|
@@ -115505,7 +115505,7 @@ var TopologyStore = class {
|
|
|
115505
115505
|
};
|
|
115506
115506
|
|
|
115507
115507
|
// src/server/server.ts
|
|
115508
|
-
var PKG_VERSION = true ? "1.
|
|
115508
|
+
var PKG_VERSION = true ? "1.18.0" : "0.0.0-dev";
|
|
115509
115509
|
function j2(value) {
|
|
115510
115510
|
return JSON.stringify(value, (_key, val) => val === null || val === void 0 ? void 0 : val);
|
|
115511
115511
|
}
|
|
@@ -117860,6 +117860,22 @@ function downloadFile(url2, dest, timeoutMs = 6e4) {
|
|
|
117860
117860
|
doGet(url2);
|
|
117861
117861
|
});
|
|
117862
117862
|
}
|
|
117863
|
+
function pinToDock(appPath) {
|
|
117864
|
+
try {
|
|
117865
|
+
const dockPlist = execSync6("defaults read com.apple.dock persistent-apps", {
|
|
117866
|
+
encoding: "utf-8",
|
|
117867
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
117868
|
+
});
|
|
117869
|
+
if (dockPlist.includes(appPath)) return;
|
|
117870
|
+
const entry = `<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>${appPath}</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>`;
|
|
117871
|
+
execSync6(
|
|
117872
|
+
`defaults write com.apple.dock persistent-apps -array-add '${entry}'`,
|
|
117873
|
+
{ stdio: "pipe" }
|
|
117874
|
+
);
|
|
117875
|
+
execSync6("killall Dock", { stdio: "pipe" });
|
|
117876
|
+
} catch {
|
|
117877
|
+
}
|
|
117878
|
+
}
|
|
117863
117879
|
async function installGuiApp(opts = {}) {
|
|
117864
117880
|
if (process.platform !== "darwin") {
|
|
117865
117881
|
return { installed: false, error: "Menu bar app is macOS only" };
|
|
@@ -117902,6 +117918,7 @@ async function installGuiApp(opts = {}) {
|
|
|
117902
117918
|
execSync6(`unzip -q -o "${zipPath}" -d "${INSTALL_DIR}"`, { stdio: "pipe" });
|
|
117903
117919
|
fs101.writeFileSync(path112.join(INSTALL_DIR, ".trace-mcp-version"), release.tag, "utf-8");
|
|
117904
117920
|
fs101.rmSync(tmpDir, { recursive: true, force: true });
|
|
117921
|
+
pinToDock(appPath);
|
|
117905
117922
|
return { installed: true, path: appPath };
|
|
117906
117923
|
} catch (err47) {
|
|
117907
117924
|
return { installed: false, error: err47.message };
|
|
@@ -121137,7 +121154,7 @@ var ProjectManager = class {
|
|
|
121137
121154
|
|
|
121138
121155
|
// src/cli.ts
|
|
121139
121156
|
init_global();
|
|
121140
|
-
var PKG_VERSION2 = true ? "1.
|
|
121157
|
+
var PKG_VERSION2 = true ? "1.18.0" : "0.0.0-dev";
|
|
121141
121158
|
function registerDefaultPlugins2(registry) {
|
|
121142
121159
|
for (const p5 of createAllLanguagePlugins()) registry.registerLanguagePlugin(p5);
|
|
121143
121160
|
for (const p5 of createAllIntegrationPlugins()) registry.registerFrameworkPlugin(p5);
|