Skip to content
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9dbf3a2
core: rename auth command to providers for clearer credential management
thdxr Feb 28, 2026
d16e5b9
core: rename control module to account for clearer authentication man…
thdxr Feb 28, 2026
b5515dd
core: add device flow authentication commands
thdxr Feb 28, 2026
7b5b665
core: support managing multiple authenticated accounts with individua…
thdxr Feb 28, 2026
a5d727e
core: enable workspace-aware configuration and account management com…
thdxr Feb 28, 2026
a44f78c
core: maintain backward compatibility with existing account data by r…
thdxr Feb 28, 2026
902268e
core: rename workspace scope to org across account and session surfaces
kitlangton Mar 5, 2026
b19dc93
core: resolve account config env templates after loading control token
kitlangton Mar 5, 2026
e923047
core: route session sharing through org-scoped control APIs
kitlangton Mar 5, 2026
fec8d5b
core: prevent share auth headers from being sent cross-origin
kitlangton Mar 5, 2026
adc9536
core: refactor account module to Effect with repo/service split
kitlangton Mar 6, 2026
48158ce
core: simplify account repo/service after review
kitlangton Mar 6, 2026
f807875
core: effectify CLI account commands with tagged PollResult union
kitlangton Mar 6, 2026
1a2ddf9
core: tighten account service and CLI typing
kitlangton Mar 7, 2026
95279ab
core: group org lookups by account
kitlangton Mar 7, 2026
2db9d31
core: use service shape helper for account api
kitlangton Mar 7, 2026
270f44f
Merge upstream/dev into cli-auth-cloud
kitlangton Mar 7, 2026
7af0546
core: restore session workspace scope
kitlangton Mar 7, 2026
0e642ed
core: separate account repo errors
kitlangton Mar 7, 2026
e5b3407
core: remove dead auth command
kitlangton Mar 7, 2026
a581493
test: cover account service flows
kitlangton Mar 7, 2026
48cf609
core: track active account separately from org selection
kitlangton Mar 7, 2026
a2b527f
core: simplify account error payloads
kitlangton Mar 8, 2026
91b9a03
Merge upstream/dev into cli-auth-cloud
kitlangton Mar 8, 2026
49deb72
chore: bump effect beta
kitlangton Mar 8, 2026
eda8756
core: rename OPENCODE_CONTROL_TOKEN to OPENCODE_CONSOLE_TOKEN
kitlangton Mar 9, 2026
b4b24cf
core: inline helpers and extract magic number in account repo
kitlangton Mar 9, 2026
28f795a
core: fix type error in account repo list mapping
kitlangton Mar 9, 2026
30a501b
core: move org selection from account table to account_state
kitlangton Mar 9, 2026
41114b1
Merge remote-tracking branch 'upstream/dev' into cli-auth-cloud
kitlangton Mar 10, 2026
e59e104
core: improve logout UX with account picker and warn on missing refre…
kitlangton Mar 10, 2026
f003c5d
core: gracefully handle remote account config fetch failure
kitlangton Mar 10, 2026
ae821ae
core: hide account commands from help output
kitlangton Mar 10, 2026
531ba1d
test: truncate tables instead of deleting db file in account tests
kitlangton Mar 10, 2026
0a05161
core: cleanup from simplify review
kitlangton Mar 10, 2026
cf40bf0
core: rename leftover control references to console/account
kitlangton Mar 10, 2026
1568d73
core: remove default server URL, require login URL argument
kitlangton Mar 10, 2026
c632247
core: port missed upstream auth changes into providers
kitlangton Mar 10, 2026
b3bd563
test: update share-next test to match renamed error message
kitlangton Mar 10, 2026
cecfb62
fix: use relative imports in .sql.ts files for drizzle-kit compatibility
kitlangton Mar 10, 2026
3457728
chore: remove commented-out legacy unique index
kitlangton Mar 10, 2026
635d30f
core: rename login param from url to server to remove pointless alias
kitlangton Mar 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,7 @@ const table = sqliteTable("session", {
- Avoid mocks as much as possible
- Test actual implementation, do not duplicate logic into tests
- Tests cannot run from repo root (guard: `do-not-run-tests-from-root`); run from package dirs like `packages/opencode`.

## Type Checking

- Always run `bun typecheck` from package directories (e.g., `packages/opencode`), never `tsc` directly.
1,389 changes: 632 additions & 757 deletions bun.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"dompurify": "3.3.1",
"drizzle-kit": "1.0.0-beta.16-ea816b6",
"drizzle-orm": "1.0.0-beta.16-ea816b6",
"effect": "4.0.0-beta.29",
"ai": "5.0.124",
"hono": "4.10.7",
"hono-openapi": "1.1.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CREATE TABLE `account` (
`id` text PRIMARY KEY,
`email` text NOT NULL,
`url` text NOT NULL,
`access_token` text NOT NULL,
`refresh_token` text NOT NULL,
`token_expiry` integer,
`selected_org_id` text,
`time_created` integer NOT NULL,
`time_updated` integer NOT NULL
);
--> statement-breakpoint
CREATE TABLE `account_state` (
`id` integer PRIMARY KEY NOT NULL,
`active_account_id` text,
FOREIGN KEY (`active_account_id`) REFERENCES `account`(`id`) ON UPDATE no action ON DELETE set null
);
Loading
Loading