Skip to content

Commit 74d0d2b

Browse files
authored
docs: update AGENTS.md (anomalyco#6800)
1 parent 235837d commit 74d0d2b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/app/AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
## Debugging
22

3-
- To test the opencode app, use the playwrite mcp server, the app is already
3+
- To test the opencode app, use the playwright MCP server, the app is already
44
running at http://localhost:3000
55
- NEVER try to restart the app, or the server process, EVER.
66

7+
78
## SolidJS
89

910
- Always prefer `createStore` over multiple `createSignal` calls

packages/opencode/AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Build/Test Commands
44

55
- **Install**: `bun install`
6-
- **Run**: `bun run index.ts`
6+
- **Run**: `bun run --conditions=browser ./src/index.ts`
77
- **Typecheck**: `bun run typecheck` (npm run typecheck)
88
- **Test**: `bun test` (runs all tests)
99
- **Single test**: `bun test test/tool/tool.test.ts` (specific test file)
@@ -24,4 +24,4 @@
2424
- **Validation**: All inputs validated with Zod schemas
2525
- **Logging**: Use `Log.create({ service: "name" })` pattern
2626
- **Storage**: Use `Storage` namespace for persistence
27-
- **API Client**: Go TUI communicates with TypeScript server via stainless SDK. When adding/modifying server endpoints in `packages/opencode/src/server/server.ts`, ask the user to generate a new client SDK to proceed with client-side changes.
27+
- **API Client**: The TypeScript TUI (built with SolidJS + OpenTUI) communicates with the OpenCode server using `@opencode-ai/sdk`. When adding/modifying server endpoints in `packages/opencode/src/server/server.ts`, run `./script/generate.ts` to regenerate the SDK and related files.

0 commit comments

Comments
 (0)