@@ -2,7 +2,7 @@ import { cmd } from "./cmd"
22import { Duration , Effect , Match , Option } from "effect"
33import { UI } from "../ui"
44import { runtime } from "@/effect/runtime"
5- import { AccountID , AccountEffect , OrgID , PollExpired , type PollResult } from "@/account/effect"
5+ import { AccountID , Account , OrgID , PollExpired , type PollResult } from "@/account/effect"
66import { type AccountError } from "@/account/schema"
77import * as Prompt from "../effect/prompt"
88import open from "open"
@@ -17,7 +17,7 @@ const isActiveOrgChoice = (
1717) => Option . isSome ( active ) && active . value . id === choice . accountID && active . value . active_org_id === choice . orgID
1818
1919const loginEffect = Effect . fn ( "login" ) ( function * ( url : string ) {
20- const service = yield * AccountEffect . Service
20+ const service = yield * Account . Service
2121
2222 yield * Prompt . intro ( "Log in" )
2323 const login = yield * service . login ( url )
@@ -58,7 +58,7 @@ const loginEffect = Effect.fn("login")(function* (url: string) {
5858} )
5959
6060const logoutEffect = Effect . fn ( "logout" ) ( function * ( email ?: string ) {
61- const service = yield * AccountEffect . Service
61+ const service = yield * Account . Service
6262 const accounts = yield * service . list ( )
6363 if ( accounts . length === 0 ) return yield * println ( "Not logged in" )
6464
@@ -98,7 +98,7 @@ interface OrgChoice {
9898}
9999
100100const switchEffect = Effect . fn ( "switch" ) ( function * ( ) {
101- const service = yield * AccountEffect . Service
101+ const service = yield * Account . Service
102102
103103 const groups = yield * service . orgsByAccount ( )
104104 if ( groups . length === 0 ) return yield * println ( "Not logged in" )
@@ -129,7 +129,7 @@ const switchEffect = Effect.fn("switch")(function* () {
129129} )
130130
131131const orgsEffect = Effect . fn ( "orgs" ) ( function * ( ) {
132- const service = yield * AccountEffect . Service
132+ const service = yield * Account . Service
133133
134134 const groups = yield * service . orgsByAccount ( )
135135 if ( groups . length === 0 ) return yield * println ( "No accounts found" )
0 commit comments