Skip to content

Commit 6da0f9d

Browse files
Apply PR #15487: core: make account login upgrades safe while adding multi-account workspace auth
2 parents ba00652 + 03c8efe commit 6da0f9d

File tree

14 files changed

+2008
-89
lines changed

14 files changed

+2008
-89
lines changed

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,7 @@ const table = sqliteTable("session", {
111111
- Avoid mocks as much as possible
112112
- Test actual implementation, do not duplicate logic into tests
113113
- Tests cannot run from repo root (guard: `do-not-run-tests-from-root`); run from package dirs like `packages/opencode`.
114+
115+
## Type Checking
116+
117+
- Always run `bun typecheck` from package directories (e.g., `packages/opencode`), never `tsc` directly.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CREATE TABLE `account` (
2+
`id` text PRIMARY KEY,
3+
`email` text NOT NULL,
4+
`url` text NOT NULL,
5+
`access_token` text NOT NULL,
6+
`refresh_token` text NOT NULL,
7+
`token_expiry` integer,
8+
`workspace_id` text,
9+
`time_created` integer NOT NULL,
10+
`time_updated` integer NOT NULL
11+
);

0 commit comments

Comments
 (0)