From 64a14c12c66e682d126516826ae81fd20c3486b2 Mon Sep 17 00:00:00 2001 From: Brad Harris Date: Fri, 14 Aug 2026 03:10:00 -0600 Subject: [PATCH] Delete six unreferenced exports found by the 2026-08-14 audit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pure deletion, no behavior change. Every symbol was verified with a repo-wide grep covering e2e/, bin/, scripts/, tests, config, and markdown. - observability/service-resources.ts: isSubsystemDegraded — zero callers - agents/telemetry.ts: AgentHistoryResult, and AgentHistoryEntry which it orphaned (no history function lives in this module) - applied-migrations-store.ts: the APPLIED_MIGRATIONS_STORE_PATH_FN re-export alias — zero importers; appliedStorePath stays, used in-file - templates/store.ts: the unused arg-parser value/type import block and the ParsedArg re-export — zero importers. The line-14 `export ... from` stays; both of its names have importers. - web use-jobs.ts: JobRunTriggerSource - web use-release-stream.ts: AssistedRequiredCheck and the RequiredCheckName type-only import it orphaned Co-Authored-By: Claude Opus 5 (1M context) --- apps/server/src/agents/telemetry.ts | 43 ------------------- apps/server/src/applied-migrations-store.ts | 2 - .../src/observability/service-resources.ts | 4 -- apps/server/src/templates/store.ts | 6 --- apps/web/src/hooks/use-jobs.ts | 4 -- apps/web/src/hooks/use-release-stream.ts | 2 - 6 files changed, 61 deletions(-) diff --git a/apps/server/src/agents/telemetry.ts b/apps/server/src/agents/telemetry.ts index 1dff06b93..73f03a89b 100644 --- a/apps/server/src/agents/telemetry.ts +++ b/apps/server/src/agents/telemetry.ts @@ -33,49 +33,6 @@ export type ActivitySummaryResult = { }>; }; -export type AgentHistoryEntry = { - id: string; - name: string; - type: string; - project: string; - status: string; - createdAt: string; - latestEventType: string | null; - latestEventMessage: string | null; - pins: Array<{ label: string; value: string; type: string }>; - git: { - branch: string | null; - worktreeBranch: string | null; - } | null; - events?: Array<{ - type: string; - message: string; - createdAt: string; - }>; - feedback?: Array<{ - id: number; - persona: string; - severity: string; - description: string; - filePath: string | null; - suggestion: string | null; - status: string; - }>; - reviews?: Array<{ - persona: string; - status: string; - verdict: string | null; - summary: string | null; - filesReviewed: string[] | null; - }>; -}; - -export type AgentHistoryResult = { - agents: AgentHistoryEntry[]; - total: number; - hasMore: boolean; -}; - export type FeedbackSummaryResult = { period: { start: string; end: string }; totalFindings: number; diff --git a/apps/server/src/applied-migrations-store.ts b/apps/server/src/applied-migrations-store.ts index a3695bc52..dc7945883 100644 --- a/apps/server/src/applied-migrations-store.ts +++ b/apps/server/src/applied-migrations-store.ts @@ -125,5 +125,3 @@ function isAppliedState(value: unknown): value is AppliedMigrationsState { } return true; } - -export { appliedStorePath as APPLIED_MIGRATIONS_STORE_PATH_FN }; diff --git a/apps/server/src/observability/service-resources.ts b/apps/server/src/observability/service-resources.ts index 1fb6a82d8..df5ed6f20 100644 --- a/apps/server/src/observability/service-resources.ts +++ b/apps/server/src/observability/service-resources.ts @@ -930,7 +930,3 @@ export class ServiceResources { ); } } - -export function isSubsystemDegraded(state: SubsystemHealthState): boolean { - return state === "degraded"; -} diff --git a/apps/server/src/templates/store.ts b/apps/server/src/templates/store.ts index c66495de7..103d453bc 100644 --- a/apps/server/src/templates/store.ts +++ b/apps/server/src/templates/store.ts @@ -5,14 +5,8 @@ import type { Pool } from "pg"; import type { AgentType } from "../agent-type-settings.js"; import { isUniqueViolation } from "../shared/lib/pg-errors.js"; -import { - parseTemplateArgs, - substituteArgs, - type TemplatePromptArg as ParsedArg, -} from "./arg-parser.js"; export { parseTemplateArgs, substituteArgs } from "./arg-parser.js"; -export type { TemplatePromptArg as ParsedArg } from "./arg-parser.js"; export type TemplateRecord = { id: string; diff --git a/apps/web/src/hooks/use-jobs.ts b/apps/web/src/hooks/use-jobs.ts index ac03fd04d..a0dd723be 100644 --- a/apps/web/src/hooks/use-jobs.ts +++ b/apps/web/src/hooks/use-jobs.ts @@ -13,10 +13,6 @@ import type { export type { JobAgentType, JobNotifyConfig, JobReport, JobRunStatus }; -export type JobRunTriggerSource = NonNullable< - JobRunRecord["config"]["triggerSource"] ->; - export type Job = JobWithLatestRun & { nextRun: string | null }; export type JobRun = JobRunRecord; diff --git a/apps/web/src/hooks/use-release-stream.ts b/apps/web/src/hooks/use-release-stream.ts index e4ae257c7..bf7d2fe96 100644 --- a/apps/web/src/hooks/use-release-stream.ts +++ b/apps/web/src/hooks/use-release-stream.ts @@ -19,7 +19,6 @@ import type { AssistedUpdateState } from "../../../server/src/assisted-update-st import type { AssistedUpdateMetadata, AssistedUpdateMode, - RequiredCheckName, } from "../../../server/src/release-metadata"; import type { CheckResult } from "../../../server/src/release-checks"; import type { UpdateMigrationManifest } from "../../../server/src/update-migrations"; @@ -42,7 +41,6 @@ export type { }; // These server types carry different names; keep the names web code uses. -export type AssistedRequiredCheck = RequiredCheckName; export type AssistedCheckResult = CheckResult; export type PendingMigration = PendingMigrationSummary;