mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 10:37:35 +00:00
Combine the completed comment cleanup from 319 stacked PRs into one change against `main`, so the full CI suite validates the combined result once. This replaces the previous audit stack; no additional audit work is included. The change shortens redundant comments across 2,753 source and shell-snapshot files (25,235 net lines removed). Conflicts preserve current-main executable code. Runtime behavior, test assertions, directives, licenses, generated notices, SAFETY rationales, and compatibility markers are preserved. The audit tracker remains local, outside the repository. Validation: - Equivalent source/emitted AST and executable tokens across all 2,750 source files, with separate checks for embedded shell, SQL, JavaScript, CSS, and generated fixtures. - Identical executable lines in the three shell snapshots; protected comments unchanged. - Changed-code quality gate passed with no new findings. - 358 tests passed, 2 skipped across 23 focused test files. - `git diff --check` passed.
50 lines
2.3 KiB
TypeScript
50 lines
2.3 KiB
TypeScript
import type { UpdateStatus } from '../shared/update-status-types'
|
|
import type { ElectronAutoUpdater } from './electron-updater-loader'
|
|
|
|
export type UpdaterHandlerContext = {
|
|
autoUpdater: ElectronAutoUpdater
|
|
clearBackgroundCheckLaunchPending: () => void
|
|
clearAvailableUpdateContext: () => void
|
|
consumeMissingManifestPrereleaseFallbackResult: () => { userInitiated: boolean } | null
|
|
getPublishingWindowLastGoodCheck: () => { lastGoodTag: string } | null
|
|
getMissingManifestPrereleaseFallbackUserInitiated: () => boolean | null
|
|
getCurrentStatus: () => UpdateStatus
|
|
getActiveUpdateCheckEventAttemptId: () => number | null
|
|
getKnownReleaseUrl: () => string | undefined
|
|
getPendingInstallVersion: () => string
|
|
getUserInitiatedCheck: () => boolean
|
|
handleQuitAndInstallFailure: (error?: unknown) => boolean
|
|
isQuitAndInstallHandoffActive: () => boolean
|
|
hasInstallableDownloadedVersion: () => boolean
|
|
isLocalBuildCheck: () => boolean
|
|
isPinnedBuildCheck: () => boolean
|
|
shouldHandleUpdaterErrorEvent: () => boolean
|
|
clearUpdateAvailableEventPending: (attemptId: number | null) => void
|
|
isActiveUpdateCheckAttempt: (attemptId: number) => boolean
|
|
markUpdateCheckEventAttempt: () => boolean
|
|
markUpdateAvailableEventPending: (attemptId: number | null) => void
|
|
markMissingManifestPrereleaseFallbackChecking: () => void
|
|
performQuitAndInstall: () => void | Promise<void>
|
|
commitStagedMacInstall: () => void
|
|
failMacStaging: (error: unknown) => void
|
|
isAwaitingMacStaging: () => boolean
|
|
isMacStagingDeferredToInstall: () => boolean
|
|
shouldDeferMacQuitForInstall: () => boolean
|
|
recordCompletedUpdateCheck: () => void
|
|
restoreReleaseUpdateSource: () => void
|
|
sendCheckFailureStatus: (
|
|
message: string,
|
|
userInitiated?: boolean,
|
|
source?: 'event' | 'promise' | 'fallback-promise',
|
|
sourceError?: unknown
|
|
) => Promise<void>
|
|
sendErrorStatus: (message: string, userInitiated?: boolean) => void
|
|
sendStatus: (status: UpdateStatus) => void
|
|
scheduleAutomaticUpdateCheck: (delayMs: number) => void
|
|
shouldSuppressMissingManifestPrereleaseFallbackEvent: (message: string, error: unknown) => boolean
|
|
suppressMissingManifestPrereleaseFallbackPromiseFailure: (message: string) => void
|
|
setAvailableReleaseUrl: (releaseUrl: string | null) => void
|
|
setAvailableVersion: (version: string | null) => void
|
|
setUserInitiatedCheck: (value: boolean) => void
|
|
}
|