You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
- Use Bun APIs when possible, like `Bun.file()`
15
15
- Rely on type inference when possible; avoid explicit type annotations or interfaces unless necessary for exports or clarity
16
16
- Prefer functional array methods (flatMap, filter, map) over for loops; use type guards on filter to maintain type inference downstream
17
+
- In `src/config`, follow the existing self-export pattern at the top of the file (for example `export * as ConfigAgent from "./agent"`) when adding a new config module.
17
18
18
19
Reduce total variable count by inlining when a value is only used once.
Copy file name to clipboardExpand all lines: packages/opencode/AGENTS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,10 @@ See `specs/effect/migration.md` for the compact pattern reference and examples.
23
23
- Use `Effect.callback` for callback-based APIs.
24
24
- Prefer `DateTime.nowAsDate` over `new Date(yield* Clock.currentTimeMillis)` when you need a `Date`.
25
25
26
+
## Module conventions
27
+
28
+
- In `src/config`, follow the existing self-export pattern at the top of the file (for example `export * as ConfigAgent from "./agent"`) when adding a new config module.
0 commit comments