@basegrid_tech/mcp 0.17.6 → 0.17.8
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 +16 -23
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -149,28 +149,6 @@ function getDbPath() {
|
|
|
149
149
|
import { execFileSync, execFile } from "child_process";
|
|
150
150
|
import fs2 from "fs";
|
|
151
151
|
import path2 from "path";
|
|
152
|
-
function getUserShellEnv() {
|
|
153
|
-
if (process.platform === "win32") return { ...process.env };
|
|
154
|
-
try {
|
|
155
|
-
const shell = process.env.SHELL || "/bin/zsh";
|
|
156
|
-
const output = execFileSync(shell, ["-ilc", "env"], {
|
|
157
|
-
encoding: "utf-8",
|
|
158
|
-
timeout: 5e3,
|
|
159
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
160
|
-
});
|
|
161
|
-
const env = {};
|
|
162
|
-
for (const line of output.split("\n")) {
|
|
163
|
-
const idx = line.indexOf("=");
|
|
164
|
-
if (idx > 0) {
|
|
165
|
-
env[line.substring(0, idx)] = line.substring(idx + 1);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return env;
|
|
169
|
-
} catch {
|
|
170
|
-
return { ...process.env };
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
var resolvedEnv = getUserShellEnv();
|
|
174
152
|
var DEFAULT_NO_PROXY_HOSTS = [
|
|
175
153
|
"localhost",
|
|
176
154
|
"127.0.0.1",
|
|
@@ -1740,6 +1718,7 @@ var DEFAULTS_KEYS_MAP = {
|
|
|
1740
1718
|
sidebarWidth: true,
|
|
1741
1719
|
navigationHistoryEnabled: true,
|
|
1742
1720
|
experimentalClaudeStreamRuntime: true,
|
|
1721
|
+
experimentalCodexAppServerRuntime: true,
|
|
1743
1722
|
experimentalHeadlessHiddenTerminals: true,
|
|
1744
1723
|
sendAnonymousUsageData: true,
|
|
1745
1724
|
reviewAgent: true,
|
|
@@ -1762,6 +1741,10 @@ var INTERNAL_DEFAULTS_KEYS = /* @__PURE__ */ new Set([
|
|
|
1762
1741
|
"lastStorageCleanupBytes",
|
|
1763
1742
|
"ui:activeWorktreePath"
|
|
1764
1743
|
]);
|
|
1744
|
+
var RETIRED_DEFAULTS_KEYS = /* @__PURE__ */ new Set([
|
|
1745
|
+
// 0.17.6 (#771): попап лимитов остался в единственном режиме.
|
|
1746
|
+
"usagePopoverMode"
|
|
1747
|
+
]);
|
|
1765
1748
|
function loadDefaults(d) {
|
|
1766
1749
|
const rows = d.prepare("SELECT key, value FROM defaults").all();
|
|
1767
1750
|
const map = {};
|
|
@@ -1771,14 +1754,24 @@ function loadDefaults(d) {
|
|
|
1771
1754
|
const whitelist = new Set(DEFAULTS_KEYS);
|
|
1772
1755
|
const result = {};
|
|
1773
1756
|
const unknownKeys = [];
|
|
1757
|
+
const retiredKeys = [];
|
|
1774
1758
|
for (const dbKey of Object.keys(map)) {
|
|
1775
1759
|
if (whitelist.has(dbKey)) {
|
|
1776
1760
|
result[dbKey] = map[dbKey];
|
|
1777
1761
|
} else if (INTERNAL_DEFAULTS_KEYS.has(dbKey)) {
|
|
1762
|
+
} else if (RETIRED_DEFAULTS_KEYS.has(dbKey)) {
|
|
1763
|
+
retiredKeys.push(dbKey);
|
|
1778
1764
|
} else {
|
|
1779
1765
|
unknownKeys.push(dbKey);
|
|
1780
1766
|
}
|
|
1781
1767
|
}
|
|
1768
|
+
if (retiredKeys.length > 0) {
|
|
1769
|
+
const del = d.prepare("DELETE FROM defaults WHERE key = ?");
|
|
1770
|
+
for (const key of retiredKeys) del.run(key);
|
|
1771
|
+
logger_default.info(
|
|
1772
|
+
`[database] loadDefaults: removed ${retiredKeys.length} retired key(s) from defaults table: ${retiredKeys.join(", ")}`
|
|
1773
|
+
);
|
|
1774
|
+
}
|
|
1782
1775
|
if (unknownKeys.length > 0) {
|
|
1783
1776
|
logger_default.warn(
|
|
1784
1777
|
`[database] loadDefaults: ${unknownKeys.length} unknown key(s) in defaults table will be ignored: ${unknownKeys.join(", ")}`
|
|
@@ -4384,7 +4377,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
|
|
|
4384
4377
|
console.error = (...args) => _origError("[mcp:error]", ...args);
|
|
4385
4378
|
async function main() {
|
|
4386
4379
|
configManager.init();
|
|
4387
|
-
const version = true ? "0.17.
|
|
4380
|
+
const version = true ? "0.17.8" : createRequire(import.meta.url)("../package.json").version;
|
|
4388
4381
|
const server = createMcpServer(version);
|
|
4389
4382
|
const transport = new StdioServerTransport();
|
|
4390
4383
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basegrid_tech/mcp",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.8",
|
|
4
4
|
"description": "BaseGrid MCP server — task management, git, and workflow tools for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"zod": "^4.3.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@basegrid/server": "0.17.
|
|
46
|
-
"@basegrid/shared": "0.17.
|
|
45
|
+
"@basegrid/server": "0.17.8",
|
|
46
|
+
"@basegrid/shared": "0.17.8",
|
|
47
47
|
"tsup": "^8.5.1",
|
|
48
48
|
"tsx": "^4.21.0",
|
|
49
49
|
"typescript": "^6.0.3"
|