Restructure Codra into npm workspaces and extract the review engine into @codra/core - #87
Merged
devarshishimpi merged 6 commits intoAug 13, 2026
Conversation
…hecks and model output
devarshishimpi
marked this pull request as ready for review
August 13, 2026 01:12
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…ss multiple files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Converts the repo into an npm workspace monorepo. Moves shared contracts and the review engine out of
src/into real packages (packages/schema,packages/core), with the worker wired to them via ports and adapters.What changed
1. Workspace structure
package.jsonaddsworkspaces: ["packages/*", "apps/*"]and fan-out scripts.tsconfig.base.jsonshared by all packages.apps/workerholds the Cloudflare Worker entrypoint.CONTRIBUTING.mddocuments the new layout.2.
@codra/schemasrc/shared/*moved topackages/schema(types, zod contracts, only depends onzod).@shared/schemaimports updated to@codra/schema.3.
@codra/corepackages/core(pipeline, parsing, diffing, rules, prompts, etc).@codra/core/ports);src/server/adapters/implements them.packages/core/test/in-memory.tslets the package's test suite run with no database, the acceptance bar for the extraction.picomatchmoved from root deps to@codra/core.Guardrails
scripts/check-core-boundary.mjs(npm run check:boundaries) asserts@codra/corepurity as a check rather than a convention: no
hono/postgres/wrangler/Octokit in themanifest, no banned import specifiers, and no banned identifiers (
AppBindings,KVNamespace,GitHubService,ModelService, …). The identifier half exists because aimport type { AppBindings }leaves no runtime trace and would silently reintroduce thecoupling this extraction removes.
import-x/no-restricted-pathsrules covering the new package boundaries.Part of #66
Closes #67 #68 #69
Type of change
How Has This Been Tested?
Checklist: