refactor(v2): move session storage under storage
This commit is contained in:
parent
8b38c9b999
commit
dc55ece384
7 changed files with 12 additions and 12 deletions
|
|
@ -465,7 +465,7 @@ Avoid leaking Drizzle or SQLite error codes above the storage implementation. Fo
|
|||
|
||||
The first implementation PR should be small and reversible:
|
||||
|
||||
- Add `packages/opencode/src/v2/session/storage.ts` with the `SessionStorage` service shape.
|
||||
- Add `packages/opencode/src/v2/storage/session.ts` with the `SessionStorage` service shape.
|
||||
- Implement SQL and in-memory read backends for `get`, `list`, `messages`, and `context`.
|
||||
- Refactor `v2/session.ts` to consume `SessionStorage.Service` instead of raw Drizzle calls.
|
||||
- Keep table schemas and existing migrations unchanged.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue