Download packages/core/src/v1/config/console-state.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/v1/config/console-state.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/v1/config/console-state.ts
-
curl -L -o console-state.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/v1/config/console-state.ts
535 Bytes
| export * as ConfigConsoleStateV1 from "./console-state" | |
| import { Schema } from "effect" | |
| import { NonNegativeInt } from "../../schema" | |
| export class ConsoleState extends Schema.Class<ConsoleState>("ConsoleState")({ | |
| consoleManagedProviders: Schema.mutable(Schema.Array(Schema.String)), | |
| activeOrgName: Schema.optional(Schema.String), | |
| switchableOrgCount: NonNegativeInt, | |
| }) {} | |
| export const emptyConsoleState: ConsoleState = ConsoleState.make({ | |
| consoleManagedProviders: [], | |
| activeOrgName: undefined, | |
| switchableOrgCount: 0, | |
| }) | |