Repository navigation
improvement(workflow-code): source check type-checks with the pinned TypeScript - #10345
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The PR appears safe to merge; no actionable issues remain. SummaryBoth source check commands now run the pinned TypeScript release after compiling and report type errors alongside compile findings.
Reviews (5) · Last reviewed commit: "fix(workflow-code): a check removes work..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 36 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
8245a24 to
8c87fcc
Compare
8c87fcc to
e91237e
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
e91237e to
7062c65
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
…TypeScript check runs TypeScript 7.0.2 over the directory's tsconfig.json after the compile and reports each error as E_TYPE (JSON, display and GitHub annotations), so the edit loop is check && apply --yes with no separate tsc step. The release installs once with npm into ~/.sim/cache/typescript; offline before that, check warns W_TYPES_UNCHECKED and decides on the compile alone. --no-types skips it. Type errors on a line the compile already flags, or in a file as the last get or apply wrote it, are left out. A workspace directory whose get could not list resources now regenerates workspace.d.ts from its declarations on check, so a new tables/<key>.ts is typed in the same check.
One unavailable path builds W_TYPES_UNCHECKED, reportCheck merges the type check's findings, files are read once and concurrently, and npm and tsc run without the Sim API key.
…d project error chains in the type check
7062c65 to
03fc900
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 37 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
… declares nothing
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 37 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
Summary
sim workflows source checkandsim workspaces source checktype-check the directory after the compile, with the TypeScript release the declarations are built for (7.0.2). The edit loop is nowcheck && apply --yeswith no separatebunx -p typescript@… tscstepE_TYPEfinding (file, line, column, frame,TSnnnn: …message) in the display output, the--output jsondocument and GitHub Actions annotations;checkedlists what ran (["compile", "types"])--no-typesskips it. Warm cost is ~40-80 ms over the compile alone; the first check installs the release once withnpminto~/.sim/cache/typescript/<version>(~1.7-3.2 s cold)npm) before that install:W_TYPES_UNCHECKEDwarning, and the check passes or fails on the compile alone. npm and tsc run without the Sim API key; embedded runs skip the type check.sim/sdk/workspace.d.tsfrom its declarations on check, so a newtables/<key>.tsandtable('<key>')type-check in the same runE_TYPE/W_TYPES_UNCHECKEDregistered in the diagnostic codes; primer, group help,.sim/AGENTS.mdguides, check help, docs pages and SDK README drop the separate tsc step;typecheckCommandreplaced bySOURCE_TYPESCRIPT_VERSIONType of Change
Testing
workspace-source-get.test.ts(new table typed with and without a resource listing, type error at file/line + annotation, dedupe against compile errors, workflow-folder scope, offline install fallback, npm env withoutSIM_API_KEY,--no-types) andworkflow-source-get.test.ts(standalone workflow directory); each proven red by reverting its guardcheck:audits,check:test-types,check:migrations, docs compatibility, lint, root type-check,test:scripts, block-registry checkbun run generate(openapi, cli-api, cli-docs, workflow-code-docs)Checklist
test-auditauthoring gate)