mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
refactor: organize shared foundation modules by owner (#42914)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user