Commit c941a2c
committed
docs(agents): add guidance to make working with opencode better
After working with the codebase using opencode a bit:
- Add guidance on regenerating SDK after schema changes
- Document type predicate pattern for filtering discriminated unions
- Discourage use of 'as' casts when TypeScript's type narrowing fails
- Add guidance to run prettier after changing code with ./script/format.ts
- .gitignore: exclude bun-build files
Significantly reduces errors in the output in my experience.
Signed-off-by: Christian Stewart <[email protected]>1 parent eed48e7 commit c941a2c
2 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
5 | 33 | | |
6 | 34 | | |
7 | 35 | | |
| |||
0 commit comments