Skip to content

Make workspace typecheck green and gate it in CI - #42

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/api-typecheck-ci-9b7f
Aug 9, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/api-typecheck-ci-9b7f

Conversation

@Modsofthenation

@Modsofthenation Modsofthenation commented Aug 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

pnpm -r typecheck was still failing on @prm/api (called out in AGENTS). For a public merge bar that is unacceptable.

Changes

  • Fix ReviewDTO mapping, logActivity null entity ids, director briefing narrowing, and P1 assignmentFor typing
  • Add pnpm -r typecheck to CI before pnpm test
  • Update AGENTS.md (typecheck is now expected green)

Test plan

  • pnpm -r typecheck passes
  • pnpm test (73 pass)
Open in Web Open in Cursor 

Summary by CodeRabbit

  • Quality Improvements

    • Automated checks now include recursive type validation alongside the test suite.
    • Review and contribution guidance now clearly identifies typechecking and tests as required merge criteria.
  • Reliability

    • Improved handling of optional activity metadata and review data during API processing.
    • Clarified assignment and briefing data handling to support more consistent API behavior.

cursoragent and others added 2 commits August 9, 2026 11:53
Fix residual @prm/api TypeScript errors (ReviewDTO mapping, logActivity null
ids, director briefing narrowing, P1 assignmentFor helper) and run
`pnpm -r typecheck` before tests on every PR to main.

Co-authored-by: Damon  <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0b3ac812-9646-4aeb-8487-f399863e8a5d

📥 Commits

Reviewing files that changed from the base of the PR and between 086455f and 58a28be.

📒 Files selected for processing (5)
  • .github/workflows/ci.yml
  • AGENTS.md
  • CONTRIBUTING.md
  • apps/api/src/index.ts
  • apps/api/src/store.ts

📝 Walkthrough

Walkthrough

The change adds recursive workspace typechecking to CI and contributor guidance. It also tightens API typing for review mapping, bundle generation, route assignment, and nullable activity logging.

Changes

Typecheck and API contracts

Layer / File(s) Summary
API type contracts and adapters
apps/api/src/index.ts, apps/api/src/store.ts
Review mapping now returns ReviewDTO. Readonly bundle generation reuses a typed briefing value. P1 route assignment mapping returns selected identifiers or null. logActivity accepts explicit null identifiers.
Workspace typecheck validation
.github/workflows/ci.yml, AGENTS.md, CONTRIBUTING.md
CI runs pnpm -r typecheck before tests. Contributor guidance requires typechecking and tests as the merge gate.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: cursoragent

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/api-typecheck-ci-9b7f

Comment @coderabbitai help to get the list of available commands.

@cursor
cursor Bot merged commit 77c6d0a into main Aug 9, 2026
1 of 2 checks passed
@cursor
cursor Bot deleted the cursor/api-typecheck-ci-9b7f branch August 9, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants