chore: add @types/node devDep to all packages, resolve tsc errors

All 125 tsc errors were pre-existing or environmental:
- @types/node MISSING → fs/path/crypto/Buffer/require/console (now fixed)
- Stale dist/*.d.ts in tui/workers referencing removed files (now cleaned)
- CapabilityRegistry ToolDefinition missing version/output_schema
  (pre-existing, CapabilityManifestValidator references dead type)
- Contract tsconfig missing composite:true → invalid project reference
  for packages that extend but don't define outDir

After fix: tsc --noEmit reports ZERO errors (clean build).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
AirCoding
2026-06-03 18:29:52 +08:00
parent 06a07689f8
commit 5ecaabf4e4
9 changed files with 21 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
"": { "": {
"name": "aircoding", "name": "aircoding",
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"dependency-cruiser": "^17.4.3", "dependency-cruiser": "^17.4.3",
"turbo": "^2.5.0", "turbo": "^2.5.0",
"typescript": "^5.8.0", "typescript": "^5.8.0",
@@ -21,6 +22,7 @@
"@aircoding/tui": "workspace:*", "@aircoding/tui": "workspace:*",
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0", "typescript": "^5.8.0",
}, },
}, },
@@ -28,6 +30,7 @@
"name": "@aircoding/contracts", "name": "@aircoding/contracts",
"version": "1.0.0-alpha.0", "version": "1.0.0-alpha.0",
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0", "typescript": "^5.8.0",
}, },
}, },
@@ -38,6 +41,7 @@
"@aircoding/contracts": "workspace:*", "@aircoding/contracts": "workspace:*",
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0", "typescript": "^5.8.0",
}, },
}, },
@@ -49,6 +53,7 @@
"@aircoding/llm": "workspace:*", "@aircoding/llm": "workspace:*",
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0", "typescript": "^5.8.0",
}, },
}, },
@@ -59,6 +64,7 @@
"@aircoding/contracts": "workspace:*", "@aircoding/contracts": "workspace:*",
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0", "typescript": "^5.8.0",
}, },
}, },
@@ -67,8 +73,10 @@
"version": "1.0.0-alpha.0", "version": "1.0.0-alpha.0",
"dependencies": { "dependencies": {
"@aircoding/contracts": "workspace:*", "@aircoding/contracts": "workspace:*",
"@aircoding/runtime": "workspace:*",
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0", "typescript": "^5.8.0",
}, },
}, },
@@ -79,6 +87,7 @@
"@aircoding/contracts": "workspace:*", "@aircoding/contracts": "workspace:*",
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0", "typescript": "^5.8.0",
}, },
}, },
@@ -110,6 +119,8 @@
"@turbo/windows-arm64": ["@turbo/windows-arm64@2.9.16", "", { "os": "win32", "cpu": "arm64" }, "sha512-Y7SJppD0Z8wjO3Ec0ZGd9KQ4Yv0BMnA8CIowj5Vp+OEVsosXDG2weK6/t1RRLfJmc2Ozrnd6y4DOgQys+mn3WQ=="], "@turbo/windows-arm64": ["@turbo/windows-arm64@2.9.16", "", { "os": "win32", "cpu": "arm64" }, "sha512-Y7SJppD0Z8wjO3Ec0ZGd9KQ4Yv0BMnA8CIowj5Vp+OEVsosXDG2weK6/t1RRLfJmc2Ozrnd6y4DOgQys+mn3WQ=="],
"@types/node": ["@types/node@25.9.1", "", { "dependencies": { "undici-types": ">=7.24.0 <7.24.7" } }, "sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg=="],
"acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="], "acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="],
"acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="], "acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="],
@@ -198,6 +209,8 @@
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
"undici-types": ["undici-types@7.24.6", "", {}, "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg=="],
"watskeburt": ["watskeburt@5.0.3", "", { "bin": { "watskeburt": "dist/run-cli.js" } }, "sha512-g9CXukMjazlJJVQ3OHzXsnG25KFYgSgKMIyoJrD8ggr0DbS9UNF7OzIqWmmKKBMedkxj3T01uqEaGnn+y7QhMA=="], "watskeburt": ["watskeburt@5.0.3", "", { "bin": { "watskeburt": "dist/run-cli.js" } }, "sha512-g9CXukMjazlJJVQ3OHzXsnG25KFYgSgKMIyoJrD8ggr0DbS9UNF7OzIqWmmKKBMedkxj3T01uqEaGnn+y7QhMA=="],
} }
} }

View File

@@ -14,6 +14,7 @@
"lint:deps:graph": "depcruise --config .dependency-cruiser.js --output-type dot packages/*/src | dot -T svg > deps-graph.svg" "lint:deps:graph": "depcruise --config .dependency-cruiser.js --output-type dot packages/*/src | dot -T svg > deps-graph.svg"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"dependency-cruiser": "^17.4.3", "dependency-cruiser": "^17.4.3",
"turbo": "^2.5.0", "turbo": "^2.5.0",
"typescript": "^5.8.0" "typescript": "^5.8.0"

View File

@@ -21,6 +21,7 @@
"@aircoding/toolchain-cpp": "workspace:*" "@aircoding/toolchain-cpp": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0" "typescript": "^5.8.0"
} }
} }

View File

@@ -14,6 +14,7 @@
"clean": "rm -rf dist tsconfig.tsbuildinfo" "clean": "rm -rf dist tsconfig.tsbuildinfo"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0" "typescript": "^5.8.0"
} }
} }

View File

@@ -17,6 +17,7 @@
"@aircoding/contracts": "workspace:*" "@aircoding/contracts": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0" "typescript": "^5.8.0"
} }
} }

View File

@@ -18,6 +18,7 @@
"@aircoding/llm": "workspace:*" "@aircoding/llm": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0" "typescript": "^5.8.0"
} }
} }

View File

@@ -17,6 +17,7 @@
"@aircoding/contracts": "workspace:*" "@aircoding/contracts": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0" "typescript": "^5.8.0"
} }
} }

View File

@@ -18,6 +18,7 @@
"@aircoding/runtime": "workspace:*" "@aircoding/runtime": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0" "typescript": "^5.8.0"
} }
} }

View File

@@ -17,6 +17,7 @@
"@aircoding/contracts": "workspace:*" "@aircoding/contracts": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^25.9.1",
"typescript": "^5.8.0" "typescript": "^5.8.0"
} }
} }