Files
orca/src/shared/worktree/visibility-defaults.ts
T
OrcaWinandm4air 91c55c1227 refactor(settings): move WorktreeVisibilityDefaults into its own module (#24884)
global-settings-types.ts sits at the 300-line max-lines ceiling; merging main's two new
agent-state-rules settings with experimentalManagedServers put it at 301. The worktree
visibility defaults type moves next to the other visibility types and is re-exported so its
38 importers are unchanged.

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-02 14:37:39 -07:00

16 lines
621 B
TypeScript

import type {
CustomWorktreeVisibilitySource,
ExternalWorktreeVisibility,
WorktreeVisibilitySourcePreferences
} from '../repo-types'
/** Host-owned worktree visibility defaults, used when a repository has no explicit override. */
export type WorktreeVisibilityDefaults = {
/** Default for worktrees outside a recognized source. */
external?: ExternalWorktreeVisibility
/** Host-owned roots applied to every repository on that host. */
customSources?: CustomWorktreeVisibilitySource[]
/** Defaults for built-in and host-owned custom sources. */
sourcePreferences?: WorktreeVisibilitySourcePreferences
}