Skip to content

Commit e2b85a3

Browse files
konardclaude
andcommitted
style: apply linter auto-formatting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eb98254 commit e2b85a3

File tree

14 files changed

+76
-50
lines changed

14 files changed

+76
-50
lines changed

packages/app/src/docker-git/open-project.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defaultTemplateConfig } from "@lib/core/domain"
2-
import { runDockerInspectContainerRuntimeInfo, type DockerContainerRuntimeInfo } from "@lib/shell/docker"
2+
import { type DockerContainerRuntimeInfo, runDockerInspectContainerRuntimeInfo } from "@lib/shell/docker"
33
import { buildSshCommand, connectProjectSsh, probeProjectSshReady, type ProjectItem } from "@lib/usecases/projects"
44
import { Effect, pipe } from "effect"
55

@@ -221,8 +221,9 @@ export const selectOpenProject = (
221221
)
222222
}
223223

224-
const uniqueContainerNames = (projects: ReadonlyArray<ApiProjectDetails>): ReadonlyArray<string> =>
225-
Array.from(new Set(projects.map((project) => project.containerName)))
224+
const uniqueContainerNames = (
225+
projects: ReadonlyArray<ApiProjectDetails>
226+
): ReadonlyArray<string> => [...new Set(projects.map((project) => project.containerName))]
226227

227228
export const resolveRuntimeOwnedProject = <E, R>(
228229
projects: ReadonlyArray<ApiProjectDetails>,
@@ -257,7 +258,9 @@ export const resolveOpenProjectEffect = <E, R>(
257258
deps: ResolveOpenProjectDeps<E, R>
258259
): Effect.Effect<ApiProjectDetails, ProjectResolutionError | E, R> =>
259260
resolveRuntimeOwnedProject(projects, selector, deps).pipe(
260-
Effect.flatMap((ownedProject) => ownedProject === null ? selectOpenProject(projects, selector) : Effect.succeed(ownedProject))
261+
Effect.flatMap((ownedProject) =>
262+
ownedProject === null ? selectOpenProject(projects, selector) : Effect.succeed(ownedProject)
263+
)
261264
)
262265

263266
const listProjectDetails = () =>
@@ -315,10 +318,10 @@ const attemptDirectConnect = <E, R>(
315318
Effect.flatMap((ready) =>
316319
ready
317320
? pipe(
318-
deps.log(`Opening SSH: ${item.sshCommand}`),
319-
Effect.zipRight(deps.connect(item)),
320-
Effect.as(true)
321-
)
321+
deps.log(`Opening SSH: ${item.sshCommand}`),
322+
Effect.zipRight(deps.connect(item)),
323+
Effect.as(true)
324+
)
322325
: Effect.succeed(false)
323326
)
324327
)

packages/app/src/lib/core/templates/docker-compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* jscpd:ignore-start */
22
import {
3-
resolveComposeProjectName,
43
dockerGitSharedCacheVolumeName,
54
dockerGitSharedCodexVolumeName,
65
resolveComposeNetworkName,
6+
resolveComposeProjectName,
77
resolveProjectBootstrapVolumeName,
88
type TemplateConfig
99
} from "../domain.js"

packages/app/src/lib/usecases/auth-sync.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,14 @@ export const syncAuthArtifacts = (
169169
yield* _(copyFileIfNeeded(sourceGlobal, targetGlobal))
170170
yield* _(syncGithubTokenKeysInFile(sourceGlobal, targetGlobal))
171171
yield* _(copyFileIfNeeded(sourceProject, targetProject))
172-
yield* _(copyCodexFile(fs, path, { sourceDir: sourceCodex, targetDir: targetCodex, fileName: "auth.json", label: "auth" }))
172+
yield* _(
173+
copyCodexFile(fs, path, {
174+
sourceDir: sourceCodex,
175+
targetDir: targetCodex,
176+
fileName: "auth.json",
177+
label: "auth"
178+
})
179+
)
173180
if (sourceCodex !== targetCodex) {
174181
yield* _(
175182
copyCodexFile(fs, path, {

packages/lib/src/core/command-builders.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ const buildTemplateConfig = ({
216216
dockerSharedNetworkName,
217217
enableMcpPlaywright,
218218
gitTokenLabel,
219-
skipGithubAuth,
220219
names,
221220
paths,
222221
ramLimit,
223-
repo
222+
repo,
223+
skipGithubAuth
224224
}: BuildTemplateConfigInput): CreateCommand["config"] => ({
225225
containerName: names.containerName,
226226
serviceName: names.serviceName,

packages/lib/src/core/domain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export type {
66
AuthClaudeLoginCommand,
77
AuthClaudeLogoutCommand,
88
AuthClaudeStatusCommand,
9-
AuthCodexLoginCommand,
109
AuthCodexImportCommand,
10+
AuthCodexLoginCommand,
1111
AuthCodexLogoutCommand,
1212
AuthCodexStatusCommand,
1313
AuthCommand,

packages/lib/src/core/templates/docker-compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
2-
resolveComposeProjectName,
32
dockerGitSharedCacheVolumeName,
43
dockerGitSharedCodexVolumeName,
54
resolveComposeNetworkName,
5+
resolveComposeProjectName,
66
resolveProjectBootstrapVolumeName,
77
type TemplateConfig
88
} from "../domain.js"

packages/lib/src/shell/docker.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import { ExitCode } from "@effect/platform/CommandExecutor"
44
import type { PlatformError } from "@effect/platform/Error"
55
import { Duration, Effect, pipe, Schedule } from "effect"
66

7-
import { runCommandCapture, runCommandExitCode, runCommandWithCapturedOutput, runCommandWithExitCodes } from "./command-runner.js"
7+
import {
8+
runCommandCapture,
9+
runCommandExitCode,
10+
runCommandWithCapturedOutput,
11+
runCommandWithExitCodes
12+
} from "./command-runner.js"
813
import { composeSpec, resolveDockerComposeEnv } from "./docker-compose-env.js"
914
import { parseInspectNetworkEntry } from "./docker-inspect-parse.js"
1015
import { CommandFailedError, DockerCommandError } from "./errors.js"

packages/lib/src/usecases/account-pool.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ const upsertProviderPool = (
5050
): AccountPoolState => {
5151
const existing = state.pools.findIndex((p) => p.provider === pool.provider)
5252
const nextPools = [...state.pools]
53-
if (existing >= 0) {
54-
nextPools[existing] = pool
55-
} else {
53+
if (existing === -1) {
5654
nextPools.push(pool)
55+
} else {
56+
nextPools[existing] = pool
5757
}
5858
return { pools: nextPools, updatedAt: now }
5959
}
@@ -262,8 +262,7 @@ export const advanceActiveIndex = (
262262
export const listAccounts = (
263263
state: AccountPoolState,
264264
provider: AccountPoolProvider
265-
): ReadonlyArray<AccountEntry> =>
266-
findProviderPool(state, provider).accounts
265+
): ReadonlyArray<AccountEntry> => findProviderPool(state, provider).accounts
267266

268267
/**
269268
* List all accounts across all providers.
@@ -273,8 +272,7 @@ export const listAccounts = (
273272
*/
274273
export const listAllAccounts = (
275274
state: AccountPoolState
276-
): ReadonlyArray<AccountEntry> =>
277-
state.pools.flatMap((pool) => pool.accounts)
275+
): ReadonlyArray<AccountEntry> => state.pools.flatMap((pool) => pool.accounts)
278276

279277
/**
280278
* Get pool summary for a provider.

packages/lib/src/usecases/actions/prepare-files.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,14 @@ export const prepareProjectFiles = (
275275
const rewriteManagedFiles = options.force || options.forceEnv
276276
const envOnlyRefresh = options.forceEnv && !options.force
277277
const createdFiles = yield* _(writeProjectFiles(resolvedOutDir, projectConfig, rewriteManagedFiles))
278-
yield* _(ensureAuthorizedKeys(resolvedOutDir, projectConfig.authorizedKeysPath, globalConfig.authorizedKeysPath, options.force))
278+
yield* _(
279+
ensureAuthorizedKeys(
280+
resolvedOutDir,
281+
projectConfig.authorizedKeysPath,
282+
globalConfig.authorizedKeysPath,
283+
options.force
284+
)
285+
)
279286
yield* _(ensureEnvFile(resolvedOutDir, projectConfig.envGlobalPath, defaultGlobalEnvContents))
280287
yield* _(ensureEnvFile(resolvedOutDir, projectConfig.envProjectPath, defaultProjectEnvContents, envOnlyRefresh))
281288
yield* _(ensureCodexConfigFile(baseDir, globalConfig.codexAuthPath))

packages/lib/src/usecases/auth-codex.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ export const authCodexLogin = (
187187
runCodexLogin(cwd, accountPath).pipe(
188188
Effect.flatMap((output) => (output.length === 0 ? Effect.void : Effect.log(output)))
189189
)).pipe(
190-
Effect.zipRight(autoSyncState(`chore(state): auth codex ${normalizeAccountLabel(command.label, "default")}`))
191-
)
190+
Effect.zipRight(autoSyncState(`chore(state): auth codex ${normalizeAccountLabel(command.label, "default")}`))
191+
)
192192

193193
// CHANGE: show Codex auth status for a given label
194194
// WHY: make it obvious whether Codex is connected

0 commit comments

Comments
 (0)