smart-terminal-mcp 1.2.26 → 1.2.30

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.
@@ -2,7 +2,8 @@
2
2
  "permissions": {
3
3
  "allow": [
4
4
  "WebSearch",
5
- "Bash(dir:*)"
5
+ "Bash(dir:*)",
6
+ "Bash(npm test:*)"
6
7
  ]
7
8
  }
8
9
  }
@@ -6,7 +6,7 @@
6
6
  "serverCard": {
7
7
  "serverInfo": {
8
8
  "name": "smart-terminal-mcp",
9
- "version": "1.2.13"
9
+ "version": "1.2.27"
10
10
  },
11
11
  "tools": [
12
12
  {
@@ -284,14 +284,14 @@
284
284
  "minimum": 500,
285
285
  "maximum": 300000,
286
286
  "default": 30000,
287
- "description": "Hard timeout in ms"
287
+ "description": "Hard timeout in ms; timeout must be greater than idleTimeout"
288
288
  },
289
289
  "idleTimeout": {
290
290
  "type": "integer",
291
291
  "minimum": 100,
292
292
  "maximum": 10000,
293
293
  "default": 500,
294
- "description": "Idle timeout in ms"
294
+ "description": "Idle timeout in ms; must be less than timeout"
295
295
  },
296
296
  "maxLines": {
297
297
  "type": "integer",
@@ -7217,8 +7217,8 @@ var require_windowsConoutConnection = __commonJS({
7217
7217
  var workerData = {
7218
7218
  conoutPipeName: _conoutPipeName
7219
7219
  };
7220
- var scriptPath = __dirname.replace("node_modules.asar", "node_modules.asar.unpacked");
7221
- this._worker = new worker_threads_1.Worker(path_1.join(scriptPath, "worker/conoutSocketWorker.js"), { workerData });
7220
+ var scriptPath2 = __dirname.replace("node_modules.asar", "node_modules.asar.unpacked");
7221
+ this._worker = new worker_threads_1.Worker(path_1.join(scriptPath2, "worker/conoutSocketWorker.js"), { workerData });
7222
7222
  this._worker.on("message", function(message) {
7223
7223
  switch (message) {
7224
7224
  case 1:
@@ -24417,13 +24417,12 @@ function registerTools(server, manager) {
24417
24417
  }
24418
24418
 
24419
24419
  // src/index.js
24420
- import { fileURLToPath } from "url";
24421
24420
  var log2 = (msg) => process.stderr.write(`[smart-terminal-mcp] ${msg}
24422
24421
  `);
24423
24422
  function createSandboxServer() {
24424
24423
  const server = new McpServer({
24425
24424
  name: "smart-terminal-mcp",
24426
- version: "1.2.13"
24425
+ version: "1.2.27"
24427
24426
  });
24428
24427
  const manager = new SessionManager();
24429
24428
  registerTools(server, manager);
@@ -24434,7 +24433,7 @@ async function main() {
24434
24433
  const manager = new SessionManager();
24435
24434
  const server = new McpServer({
24436
24435
  name: "smart-terminal-mcp",
24437
- version: "1.2.13"
24436
+ version: "1.2.27"
24438
24437
  });
24439
24438
  registerTools(server, manager);
24440
24439
  const shutdown = () => {
@@ -24449,8 +24448,9 @@ async function main() {
24449
24448
  await server.connect(transport);
24450
24449
  log2("Server started on stdio transport");
24451
24450
  }
24452
- var isMain = process.argv[1] && (process.argv[1].endsWith("index.js") || process.argv[1].endsWith("smart-terminal-mcp") || typeof import.meta !== "undefined" && import.meta.url && process.argv[1].includes(fileURLToPath(import.meta.url)));
24453
- if (isMain) {
24451
+ var scriptPath = (process.argv[1] || "").replace(/\\/g, "/");
24452
+ var isScanning = scriptPath.includes(".smithery") || scriptPath.includes("/scan-");
24453
+ if (!isScanning) {
24454
24454
  main().catch((err) => {
24455
24455
  process.stderr.write(`[smart-terminal-mcp] Fatal: ${err.message}
24456
24456
  ${err.stack}