mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Add typecheck tool that typechecks projects like tsc --noEmit
Adds a 'typecheck' AI tool backed by a new src/lib/typecheck module that runs the real TypeScript compiler against the project VFS in the browser: - In-memory CompilerHost over project files, with tsconfig.json parsing (including local extends chains and Vite-style project references) - TypeScript's bundled lib.*.d.ts files served as lazy-loaded chunks - Type declarations for npm dependencies acquired from jsdelivr via @typescript/ata, pinned to package-lock.json/package.json versions (including declared @types/* packages, since ATA's own DT fallback always fetches latest), cached per session - Vite ambient type shim (asset imports, import.meta.env) when vite/client types are unavailable - Missing external type declarations reported as notes instead of errors - Network concurrency capped at 16 in-flight requests to avoid the browser failing dependency downloads with ERR_INSUFFICIENT_RESOURCES
This commit is contained in:
7 files changed
+740
-9
No files matched your search
+2
-1
@@ -68,6 +68,7 @@
|
||||
"@sentry/react": "^10.22.0",
|
||||
"@std/encoding": "npm:@jsr/std__encoding@^1.0.10",
|
||||
"@tanstack/react-query": "^5.56.2",
|
||||
"@typescript/ata": "^0.9.8",
|
||||
"@unhead/addons": "^2.0.10",
|
||||
"@unhead/react": "^2.0.10",
|
||||
"acorn": "^8.16.0",
|
||||
@@ -110,6 +111,7 @@
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"tailwindcss-safe-area": "^0.8.0",
|
||||
"turndown": "^7.2.1",
|
||||
"typescript": "^5.8.3",
|
||||
"uri-templates": "^0.2.0",
|
||||
"use-stick-to-bottom": "^1.1.1",
|
||||
"vaul": "^0.9.3",
|
||||
@@ -147,7 +149,6 @@
|
||||
"jsdom": "^26.1.0",
|
||||
"postcss": "^8.4.47",
|
||||
"tailwindcss": "^3.4.11",
|
||||
"typescript": "^5.5.3",
|
||||
"typescript-eslint": "^8.0.1",
|
||||
"vite": "^6.3.5",
|
||||
"vite-plugin-pwa": "^1.1.0",
|
||||
|
||||
Reference in new issue
Block a user