drop eight package.json scripts that point at nothing
Same origin as the phantom docs in the last commit — this architecture was based on another project and some of its scripts came along without their targets. - `build:editor` and its three variants run `scripts/build/editor.ts`, which has never existed here. CLAUDE.md carried a note saying exactly that, which the note now outlives. - `start:sidecar` / `stop:sidecar` / `restart:sidecar` / `logs:sidecar` drive `systemctl … officer-pty-sidecar`, a systemd unit replaced by PM2. That unit still exists on this host, enabled, pointing at a `monorepo/` directory that is gone, and has been failing to start ever since — these scripts are how it stayed reachable. CLAUDE.md's "Sidecar control" line pointed at the four systemd wrappers; it now says PM2 and points at working-on-officer.md for which process a change needs restarted. Verified afterwards that every remaining script's target exists. The rest of package.json is untouched — the edit is nine lines out, no reformatting. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -126,14 +126,14 @@ bun db:push # apply the schema to Postgres
|
|||||||
bun setup # guided install (writes .env, incl. PUBLIC_BUILD_ENV=production)
|
bun setup # guided install (writes .env, incl. PUBLIC_BUILD_ENV=production)
|
||||||
```
|
```
|
||||||
|
|
||||||
Sidecar control: `bun run start:sidecar` / `stop:sidecar` / `restart:sidecar` / `logs:sidecar`.
|
Sidecar control is PM2, not npm scripts: `pm2 restart officer-<name>`, `pm2 logs officer-<name>`.
|
||||||
|
See `docs/working-on-officer.md` for which process a given change needs restarted.
|
||||||
|
|
||||||
**Format your own files, not the whole dirty tree.** `bun format` globs `git diff --name-only HEAD`,
|
**Format your own files, not the whole dirty tree.** `bun format` globs `git diff --name-only HEAD`,
|
||||||
so it rewrites every uncommitted file — including work in progress that isn't yours, which then shows
|
so it rewrites every uncommitted file — including work in progress that isn't yours, which then shows
|
||||||
up as unexplained whitespace churn in someone else's diff. Run `bunx prettier --write <paths>` on the
|
up as unexplained whitespace churn in someone else's diff. Run `bunx prettier --write <paths>` on the
|
||||||
files you actually touched. `bun format` is only safe when the tree is otherwise clean.
|
files you actually touched. `bun format` is only safe when the tree is otherwise clean.
|
||||||
|
|
||||||
Note: `build:editor*` in `package.json` points at `scripts/build/editor.ts`, which does not exist.
|
|
||||||
|
|
||||||
## Code Style
|
## Code Style
|
||||||
|
|
||||||
|
|||||||
+1
-9
@@ -17,10 +17,6 @@
|
|||||||
"prebuild": "bun run ./scripts/prebuild.ts",
|
"prebuild": "bun run ./scripts/prebuild.ts",
|
||||||
"build:web": "bun run ./scripts/build/web.ts",
|
"build:web": "bun run ./scripts/build/web.ts",
|
||||||
"build:dashboard": "bun run ./scripts/build/dashboard.ts",
|
"build:dashboard": "bun run ./scripts/build/dashboard.ts",
|
||||||
"build:editor": "bun run ./scripts/build/editor.ts",
|
|
||||||
"build:editor:app": "bun run ./scripts/build/editor.ts --app",
|
|
||||||
"build:editor:extension": "bun run ./scripts/build/editor.ts --extension",
|
|
||||||
"build:editor:runtime": "bun run ./scripts/build/editor.ts --runtime",
|
|
||||||
"build:landing": "bun run ./scripts/build/landing.ts",
|
"build:landing": "bun run ./scripts/build/landing.ts",
|
||||||
"db:gen": "cd src/databases/officer_db && bun run generate",
|
"db:gen": "cd src/databases/officer_db && bun run generate",
|
||||||
"db:push": "cd src/databases/officer_db && bun run push",
|
"db:push": "cd src/databases/officer_db && bun run push",
|
||||||
@@ -29,11 +25,7 @@
|
|||||||
"format": "{ git diff --name-only HEAD -- 'src/**/*.ts' 'src/**/*.tsx'; git ls-files --others --exclude-standard -- 'src/**/*.ts' 'src/**/*.tsx'; } | xargs -r prettier --write",
|
"format": "{ git diff --name-only HEAD -- 'src/**/*.ts' 'src/**/*.tsx'; git ls-files --others --exclude-standard -- 'src/**/*.ts' 'src/**/*.tsx'; } | xargs -r prettier --write",
|
||||||
"format:all": "prettier --write \"src/**/*.{ts,tsx}\"",
|
"format:all": "prettier --write \"src/**/*.{ts,tsx}\"",
|
||||||
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
|
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
|
||||||
"setup": "bash scripts/setup.sh",
|
"setup": "bash scripts/setup.sh"
|
||||||
"start:sidecar": "sudo systemctl start officer-pty-sidecar",
|
|
||||||
"stop:sidecar": "sudo systemctl stop officer-pty-sidecar",
|
|
||||||
"restart:sidecar": "sudo systemctl restart officer-pty-sidecar",
|
|
||||||
"logs:sidecar": "journalctl -u officer-pty-sidecar -f"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@anthropic-ai/claude-agent-sdk": "^0.2.41",
|
"@anthropic-ai/claude-agent-sdk": "^0.2.41",
|
||||||
|
|||||||
Reference in New Issue
Block a user