Skip to content

Commit ca7b578

Browse files
Agent Communication MCP Serverclaude
andcommitted
fix: complete TypeScript strict mode sync with main
- Updated tsconfig.all.json to use main's strict TypeScript configuration - Fixed unnecessary type assertions in agent-work-verifier.ts and fs-extra-safe.ts - Resolved 305 ESLint errors by aligning TypeScript strictness with ESLint rules - All tests pass with 84.08% branch coverage (above 78% threshold) - CI pipeline now passes completely This completes the clean sync baseline between main and test branches. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0c2bea9 commit ca7b578

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/core/agent-work-verifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ async function findActiveTaskPath(
165165
}
166166
}
167167

168-
return activeTaskPath as string | null;
168+
return activeTaskPath;
169169
}
170170

171171
/**

src/utils/fs-extra-safe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class SafeFileSystem implements SafeFsInterface {
402402
await nodeFs.mkdir(dirPath, { recursive: true, ...options } as MakeDirectoryOptions);
403403
} else if (options !== null && options !== undefined) {
404404
// options is a Mode (string/number)
405-
await nodeFs.mkdir(dirPath, { recursive: true, mode: options as Mode } as MakeDirectoryOptions);
405+
await nodeFs.mkdir(dirPath, { recursive: true, mode: options } as MakeDirectoryOptions);
406406
} else {
407407
// options is null/undefined
408408
await nodeFs.mkdir(dirPath, { recursive: true });

tsconfig.all.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"lib": ["ES2022"],
88
"outDir": "./dist",
99
"rootDir": ".",
10-
"strict": false,
10+
"strict": true,
1111
"esModuleInterop": true,
1212
"allowSyntheticDefaultImports": true,
1313
"skipLibCheck": true,
1414
"forceConsistentCasingInFileNames": true,
1515
"declaration": false,
1616
"declarationMap": false,
1717
"sourceMap": false,
18-
"noImplicitAny": false,
19-
"noImplicitReturns": false,
20-
"noUnusedLocals": false,
21-
"noUnusedParameters": false,
22-
"exactOptionalPropertyTypes": false,
23-
"noImplicitOverride": false,
24-
"noPropertyAccessFromIndexSignature": false,
18+
"noImplicitAny": true,
19+
"noImplicitReturns": true,
20+
"noUnusedLocals": true,
21+
"noUnusedParameters": true,
22+
"exactOptionalPropertyTypes": true,
23+
"noImplicitOverride": true,
24+
"noPropertyAccessFromIndexSignature": true,
2525
"resolveJsonModule": true,
2626
"noEmit": true
2727
},

0 commit comments

Comments
 (0)