Conversation
Set up a repo-managed Cloud Agent environment: - .cursor/install.sh installs the pinned Bun toolchain (.bun-version=1.3.14) and refreshes site deps via 'bun install --frozen-lockfile' (idempotent). - .cursor/environment.json runs the install script and starts the Astro dev server (astro-dev terminal on port 4321). Validated on the VM: install is idempotent, 'bun run verify' passes the full CI pipeline, and the dev server serves /ja, /en, entry, and browse routes. Co-authored-by: mildreins <mildreins@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Sets up a repo-managed Cursor Cloud Agent development environment for FinWiki so future agents boot into a ready-to-work state that mirrors CI.
日本語
.cursor/install.sh:.bun-version(1.3.14)に固定した Bun をインストールし、bun install --frozen-lockfileでsite/の依存を復元します。再実行しても安全(冪等)です。.cursor/environment.json: 上記 install を実行し、Astro dev server(astro-devterminal、http://localhost:4321/、port 4321)を起動します。English
.cursor/install.sh: installs the pinned Bun toolchain (from.bun-version= 1.3.14) and restoressite/dependencies viabun install --frozen-lockfile. Idempotent and safe to re-run..cursor/environment.json: runs the install script and starts the Astro dev server (astro-devterminal,http://localhost:4321/, port 4321).Why
CI (
.github/workflows/required-verification.yml) usesoven-sh/setup-bunwith.bun-version, thenbun run verify. The default Cloud Agent image ships Node but not Bun, so a fresh agent could not run the toolchain. This environment installs the exact pinned Bun and site dependencies, matching CI.Validation
Local (setup VM):
./.cursor/install.shruns to completion and is idempotent (Checked 281 installs across 377 packages (no changes)on re-run).bun run verifypasses the full canonical pipeline (install, all audits, i18n check, typecheck, all tests, Astro build, Pagefind index, static assembly, route/HTML audits, whitespace check):FinWiki required verification: PASS./,/ja/,/en/, entry pages (e.g./ja/banking/sony-bank/), domain listings, and/ja/browse/all return HTTP 200 with rendered titles.Prebuilt environment build:
bld-20260901-84817bba-5820-47d8-9548-e5196d1de3b7(built off this branch) SUCCEEDED — fresh checkout ran.cursor/install.sh(Using bun 1.3.14 (pinned 1.3.14),280 packages installed), produced a ready snapshot.site/node_modules, frozen install idempotent,index:counts/i18n:check/bun test tools/verify.test.ts/release:checkall PASS, and the dev server returned HTTP 200 for/ja/and/en/.Notes
.cursor/environment.jsonis the authoritative config once merged tomain; no competing dashboard configuration is created.site/dist/,_vercel_public/, etc.) remain gitignored; no corpus,docs/, or generated public surfaces are touched, so noREADME.md/CHANGELOG.md/ AI-discovery regeneration is required for this environment-only change.