feat(cli): enable lazycodex codex installs
This commit is contained in:
@@ -6,7 +6,6 @@ import { doctor } from "./doctor"
|
||||
import { refreshModelCapabilities } from "./refresh-model-capabilities"
|
||||
import { createMcpOAuthCommand } from "./mcp-oauth"
|
||||
import { boulder } from "./boulder"
|
||||
import { isLazycodexPublishingEnabled } from "./lazycodex-feature-flag"
|
||||
import type { InstallArgs } from "./types"
|
||||
import type { RunOptions } from "./run"
|
||||
import type { GetLocalVersionOptions } from "./get-local-version/types"
|
||||
@@ -33,14 +32,11 @@ type InstallCommandOptions = {
|
||||
readonly skipAuth?: boolean
|
||||
}
|
||||
|
||||
type Environment = Readonly<Record<string, string | undefined>>
|
||||
|
||||
export function resolveInstallArgs(
|
||||
options: InstallCommandOptions,
|
||||
invocationName: string | undefined = process.env.OMO_INVOCATION_NAME,
|
||||
env: Environment = process.env,
|
||||
): InstallArgs {
|
||||
const defaultPlatform = invocationName === "lazycodex" && isLazycodexPublishingEnabled(env) ? "codex" : undefined
|
||||
const defaultPlatform = invocationName === "lazycodex" ? "codex" : undefined
|
||||
|
||||
return {
|
||||
tui: options.tui !== false,
|
||||
|
||||
Reference in New Issue
Block a user