refactor: organize shared foundation modules by owner (#42914)

This commit is contained in:
Neil
2026-11-15 19:09:38 -08:00
committed by GitHub
parent ae2ed119a4
commit 61ae9700f2
931 changed files with 1103 additions and 2423 deletions
@@ -6,7 +6,7 @@ import {
reviewRefreshIntervalMs,
scaleReviewRefreshInterval,
type PRAutoRefreshCadence
} from '../../review-refresh-policy'
} from '../../source-control/hosted-review/review-refresh-policy'
export function detailedChecksStatus(checks: readonly PRCheckDetail[]): CheckStatus | undefined {
if (checks.length === 0) {
@@ -1,6 +1,6 @@
// Keep Project request payloads separate from ProjectV2 domain shapes so renderer domain imports do not pull IPC arguments.
import type { GitHubProjectFieldMutationValue, GitHubProjectOwnerType } from './project-types'
import type { GitHubIssueUpdate } from '../../issue-mutation-types'
import type { GitHubIssueUpdate } from '../../work-items/issue-mutation-types'
/** Set by a click: it may start the stopped WSL distro gh lives in (E9). Loads that also run
* unprompted (mount effects, restore) leave it unset. Local IPC only. */
@@ -0,0 +1,13 @@
import { z } from 'zod'
const APP_STAR_SOURCE_VALUES = [
'star_nag',
'agent_value_moment',
'onboarding_completed',
'settings',
'landing'
] as const
// Main validates untrusted renderer sources against this closed enum before attaching star telemetry.
export const appStarSourceSchema = z.enum(APP_STAR_SOURCE_VALUES)
export type AppStarSource = z.infer<typeof appStarSourceSchema>
@@ -1,4 +1,4 @@
import type { ClassifiedError } from '../../classified-error'
import type { ClassifiedError } from '../../errors/classified-error'
import { GITHUB_SEARCH_RESULT_WINDOW_ERROR_PATTERN } from './work-items-query-bounds'
export function getWorkItemPageErrorTypes(errors: unknown): ClassifiedError['type'][] {
@@ -1,4 +1,4 @@
import type { ClassifiedError } from '../../classified-error'
import type { ClassifiedError } from '../../errors/classified-error'
import type { ExecutionHostId } from '../../execution-host'
import type { PRCheckDetail } from '../checks/check-types'
import type { GitHubIssueTimelineItem, PRComment } from '../comments/comment-types'