Skip to content

chore: add .company/environment.json for cloud environments - #833

Open
Makisuo wants to merge 1 commit into
mainfrom
chore/company-environment
Open

chore: add .company/environment.json for cloud environments#833
Makisuo wants to merge 1 commit into
mainfrom
chore/company-environment

Conversation

@Makisuo

@Makisuo Makisuo commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Adds .company/environment.json (schema: https://api.thecompany.company/schemas/v1/environment.json) so The Company Company cloud environments can build and ready this repo.

Phases

  • installbun install --frozen-lockfile, run once into the cached snapshot. This is the same command every CI job runs through the shared .github/actions/bun-install composite action.
  • prepare — the same install, re-run per task after checkout to reconcile node_modules with the branch's lockfile. Idempotent; a no-op when nothing drifted.
  • start — omitted. The repo's long-running services (docker Postgres, ClickHouse, the full alchemy dev stack) need Docker and .env.local secrets, and the test suite runs on embedded PGlite, so no background service is required for agent tasks.
  • env — omitted. No non-secret variables are required; CI runs the same install without .env.local.

Verification

Ran the install command in a fresh worktree in the cloud sandbox: bun install --frozen-lockfile exits 0 (1593 packages installed, ~8s), including the repo's own prepare hook (effect-tsgo patch).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Chores
    • Added environment configuration for automated installation and preparation workflows.
    • Configured dependency installation to use the frozen lockfile with defined timeouts.

Declares how The Company Company builds and readies this repo:

- install: bun install --frozen-lockfile (same command CI's shared
  bun-install action runs), baked into the cached snapshot.
- prepare: the same install, re-run per task after checkout to
  reconcile node_modules with the branch's lockfile; a no-op when
  nothing drifted.
- start: omitted. The long-running services (docker Postgres,
  ClickHouse, the alchemy dev stack) need Docker and .env.local
  secrets, and the test suite runs on embedded PGlite, so no
  background service is required.
- env: omitted. No non-secret variables are required; CI runs
  without .env.local.

Verified in-sandbox: bun install --frozen-lockfile exits 0
(1593 packages installed).
@the-company-company

Copy link
Copy Markdown

Co · session: Set up .company/environment.json for maple

  • Auto-fix ; feedback on this pull request flows to the session and gets addressed
  • Review ; Co reviews new pushes

@co <ask> hands Co a task · @co mute pauses · @co archive ends the session

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: aaac10da-b19d-4fae-8389-bb78ba576eb4

📥 Commits

Reviewing files that changed from the base of the PR and between 0cf587a and a94af77.

📒 Files selected for processing (1)
  • .company/environment.json

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

Adds .company/environment.json with schema metadata and install and prepare commands that run bun install --frozen-lockfile with separate timeouts.

Changes

Environment setup

Layer / File(s) Summary
Environment installation commands
.company/environment.json
Defines the environment schema and configures timed install and prepare commands for frozen Bun dependency installation.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to a94af

The environment configuration adds the intended frozen Bun installation and preparation commands, with no unresolved merge-blocking concerns.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the addition of .company/environment.json for cloud environment setup.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/company-environment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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.

1 participant