@debugg-ai/debugg-ai-mcp 1.0.53 → 1.0.55

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.
@@ -25,16 +25,20 @@ export async function resolveProjectContext() {
25
25
  return null;
26
26
  }
27
27
  try {
28
- // Race against a timeout so a slow/unreachable backend never blocks startup
29
- return await Promise.race([
28
+ // Race against a timeout so a slow/unreachable backend never blocks startup.
29
+ // Cancel the timer when the inner promise settles to prevent leaked callbacks.
30
+ let timer;
31
+ const result = await Promise.race([
30
32
  resolveProjectContextInner(repoName),
31
33
  new Promise((resolve) => {
32
- setTimeout(() => {
34
+ timer = setTimeout(() => {
33
35
  logger.warn('Project context resolution timed out — continuing without it');
34
36
  resolve(null);
35
37
  }, STARTUP_TIMEOUT_MS);
36
38
  }),
37
39
  ]);
40
+ clearTimeout(timer);
41
+ return result;
38
42
  }
39
43
  catch (err) {
40
44
  logger.warn(`Failed to resolve project context: ${err}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@debugg-ai/debugg-ai-mcp",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "Zero-Config, Fully AI-Managed End-to-End Testing for all code gen platforms.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,6 +10,7 @@
10
10
  "dist"
11
11
  ],
12
12
  "scripts": {
13
+ "lint": "eslint .",
13
14
  "build": "tsc && shx chmod +x dist/index.js",
14
15
  "prepare": "npm run build",
15
16
  "watch": "tsc --watch",
@@ -55,15 +56,18 @@
55
56
  "zod": "^3.25.32"
56
57
  },
57
58
  "devDependencies": {
59
+ "@eslint/js": "^10.0.1",
58
60
  "@faker-js/faker": "^9.9.0",
59
61
  "@types/jest": "^30.0.0",
60
62
  "@types/node": "^22.15.24",
61
63
  "@types/uuid": "^10.0.0",
64
+ "eslint": "^10.2.0",
62
65
  "jest": "^30.0.5",
63
66
  "jest-environment-jsdom": "^30.0.5",
64
67
  "jest-mock-axios": "^4.8.0",
65
68
  "shx": "^0.4.0",
66
69
  "ts-jest": "^29.4.1",
67
- "typescript": "^5.8.3"
70
+ "typescript": "^5.8.3",
71
+ "typescript-eslint": "^8.58.2"
68
72
  }
69
73
  }