Skip to content

Commit f1bfde8

Browse files
jsollycursoragent
andcommitted
chore(agents): align ship and worktree config
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ecc74d2 commit f1bfde8

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

.cursor/worktrees.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"setup-worktree-unix": ["npm run worktree:init"]
3+
}

.git-hooks/post-checkout

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
# Auto-provision a freshly-created worktree on the manual `git worktree add` path.
3+
# Never fail checkout if the shared provisioner is unavailable or errors.
4+
prov="${DOTAGENTS_POSTCHECKOUT:-$HOME/code/dotagents/hooks/post-checkout-provision.sh}"
5+
[ -f "$prov" ] && bash "$prov" "$@"
6+
exit 0

AGENTS.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
Ship profile: `vercel-static`
44

5-
**Integration: branch → PR → CI-gated auto-merge (canonical).** Open a PR from your branch; `.github/workflows/auto-merge.yml` enables squash auto-merge once **`CI / ci`** is green. Direct push to `main` is break-glass only.
5+
Integration: `pr-auto-merge`
66

7-
Production URL: <https://learnthefar.com>
8-
9-
Vercel Git integration deploys production on merge to `main`. After merge, verify <https://learnthefar.com> returns HTTP 200 — do not run a manual `vercel deploy` unless Git integration is broken.
7+
CI owner: `local`
108

11-
Local gate before push: `npm run check && npm run build` (full gate also runs in GitHub CI on the PR).
9+
Production URL: <https://learnthefar.com>
1210

1311
## Development
1412

@@ -20,6 +18,10 @@ astro dev --background
2018

2119
Manage the background server with `astro dev stop`, `astro dev status`, and `astro dev logs`.
2220

21+
## Worktrees
22+
23+
Fresh worktrees run `npm run worktree:init` through Cursor's setup command or the manual Git `post-checkout` hook. This is required because staged Markdown lint runs before the gate's lazy dependency check. The app has no required gitignored local configuration or state, so `.worktreeinclude` is intentionally absent.
24+
2325
## Documentation
2426

2527
Full documentation: <https://docs.astro.build>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"node": "24.x"
77
},
88
"scripts": {
9+
"worktree:init": "npm ci",
910
"dev": "astro dev",
1011
"build": "astro build",
1112
"check:ts": "astro check --minimumSeverity warning --minimumFailingSeverity warning",

0 commit comments

Comments
 (0)