Skip to content

Commit 59fd080

Browse files
committed
claude.md: @oxide/api and @oxide/api-mocks are local
1 parent b735817 commit 59fd080

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Keep the console a thin client over the Oxide API: minimize client-only state, surface API concepts, and bias toward simple, predictable UI that works everywhere.
44
- Favor well-supported libraries, avoid premature abstractions, and use routes to capture state.
55
- Before starting a feature, skim an existing page or form with similar behavior and mirror the conventions—this codebase is intentionally conventional. Look for similar pages in `app/pages` and forms in `app/forms` to use as templates.
6+
- `@oxide/api` is at `app/api` and `@oxide/api-mocks` is at `mock-api/index.ts`.
67
- Use Node.js 22+, then install deps and start the mock-backed dev server (skip if `npm run dev` is already running in another terminal):
78

89
```sh

app/api/__tests__/safety.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const grepFiles = (s: string) =>
3535
it('mock-api is only referenced in test files', () => {
3636
expect(grepFiles('api-mocks')).toMatchInlineSnapshot(`
3737
[
38+
"AGENTS.md",
3839
"app/api/__tests__/client.spec.tsx",
3940
"mock-api/msw/db.ts",
4041
"test/e2e/instance-create.e2e.ts",

0 commit comments

Comments
 (0)