Add quality gates: linting, formatting, tests, CI#1
Merged
Conversation
Extract shared Zod env helpers (intFromEnv, floatFromEnv, csvFromEnv) into @repo/env. Extract logtape logging setup from Construct into @repo/log, migrate Cortex and Synapse from console.log to structured logging. Add named SIMILARITY constants in cairn replacing magic numbers across 7 files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Massive cleanup pass across the entire monorepo: - Add oxlint (.oxlintrc.json) with correctness/suspicious/perf rules - Add oxfmt for consistent formatting - Add lefthook pre-commit hooks (typecheck + lint + fmt-check) - Add GitHub Actions CI (.github/workflows/ci.yml) - Add comprehensive test suites (376 tests across cairn, construct, synapse) - Add structured error classes per package (src/errors.ts) - Add test fixtures and helpers (fixtures.ts, test-db.ts) - Add per-app CLAUDE.md files for AI-assisted development - Add @repo/env and @repo/log shared packages - Consolidate docs from .docs/ into per-app docs/ directories - Bump tsconfig target/lib to ES2023 - Fix all lint warnings: toSorted(), addEventListener(), variable shadowing, function scoping Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Deploying sprawl with
|
| Latest commit: |
38395db
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://774206b8.sprawl.pages.dev |
| Branch Preview URL: | https://cleanup-quality-gates.sprawl.pages.dev |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
src/errors.ts).docs/to per-appdocs/directories@repo/envand@repo/logtoSorted(), etc.)Test plan
just checkpasses (typecheck + lint + fmt-check + test)🤖 Generated with Claude Code