diff --git a/src/common/config/schemas/agentPluginInstalls.ts b/src/common/config/schemas/agentPluginInstalls.ts index 7a87204b61b..026ee99f972 100644 --- a/src/common/config/schemas/agentPluginInstalls.ts +++ b/src/common/config/schemas/agentPluginInstalls.ts @@ -122,5 +122,4 @@ export const AgentPluginInstallEntrySchema = z.object({ }); export type AgentPluginGitSource = z.infer; -export type AgentPluginInstallSource = z.infer; export type AgentPluginInstallEntry = z.infer; diff --git a/src/common/config/schemas/appConfigOnDisk.ts b/src/common/config/schemas/appConfigOnDisk.ts index b86833c76ce..c6f30660e28 100644 --- a/src/common/config/schemas/appConfigOnDisk.ts +++ b/src/common/config/schemas/appConfigOnDisk.ts @@ -14,7 +14,6 @@ import { HEARTBEAT_MAX_INTERVAL_MS, HEARTBEAT_MIN_INTERVAL_MS } from "@/constant import { DEFAULT_GOAL_DEFAULTS } from "@/constants/goals"; export { RuntimeEnablementOverridesSchema } from "../../schemas/runtimeEnablement"; -export type { RuntimeEnablementOverrides } from "../../schemas/runtimeEnablement"; export { UserPreferencesSchema } from "./userPreferences"; export type { UserPreferences } from "./userPreferences"; export { TaskSettingsSchema } from "./taskSettings"; @@ -26,11 +25,7 @@ export { AgentPluginInstallEntrySchema, AgentPluginInstallSourceSchema, } from "./agentPluginInstalls"; -export type { - AgentPluginGitSource, - AgentPluginInstallEntry, - AgentPluginInstallSource, -} from "./agentPluginInstalls"; +export type { AgentPluginGitSource, AgentPluginInstallEntry } from "./agentPluginInstalls"; /** * Sparse delegated-run (sub-agent) override profile nested under an agent's diff --git a/src/common/config/schemas/providerModelEntry.ts b/src/common/config/schemas/providerModelEntry.ts index 3c0f6e5045c..6d74004cfbb 100644 --- a/src/common/config/schemas/providerModelEntry.ts +++ b/src/common/config/schemas/providerModelEntry.ts @@ -10,5 +10,3 @@ export const ProviderModelEntrySchema = z.union([ }) .strict(), ]); - -export type ProviderModelEntry = z.infer; diff --git a/src/common/config/schemas/providersConfig.ts b/src/common/config/schemas/providersConfig.ts index 986061fa130..aae5127d60e 100644 --- a/src/common/config/schemas/providersConfig.ts +++ b/src/common/config/schemas/providersConfig.ts @@ -8,7 +8,6 @@ import { ProviderModelEntrySchema } from "./providerModelEntry"; export const CacheTtlSchema = z.enum(["5m", "1h"]); /** Anthropic request speed; "fast" opts into Fast mode (see anthropicFastMode.ts). */ export const AnthropicSpeedSchema = z.enum(["standard", "fast"]); -export type AnthropicSpeed = z.infer; // "ultrafast" is OpenAI's model-gated premium tier (DevDay 2026-09-29); requests for // models without it drop the tier (see openaiModelSupportsServiceTier). export const ServiceTierSchema = z.enum(["auto", "default", "flex", "priority", "ultrafast"]); @@ -21,7 +20,6 @@ export const FastModePreviousServiceTierSchema = z.enum([ "ultrafast", "unset", ]); -export type FastModePreviousServiceTier = z.infer; export const XAIServiceTierSchema = z.enum(["default", "priority"]); export type XAIServiceTier = z.infer; export const XAIFastModePreviousServiceTierSchema = z.enum(["default", "unset"]); diff --git a/src/common/config/schemas/userPreferences.ts b/src/common/config/schemas/userPreferences.ts index 46675cf5f51..c49fe69b032 100644 --- a/src/common/config/schemas/userPreferences.ts +++ b/src/common/config/schemas/userPreferences.ts @@ -27,7 +27,6 @@ export const ThemePreferenceSchema = z.enum([ "flexoki-light", "flexoki-dark", ]); -export type ThemePreferenceConfig = z.infer; export const LaunchBehaviorSchema = z.enum(["dashboard", "new-chat", "last-workspace"]); diff --git a/src/common/constants/storage.ts b/src/common/constants/storage.ts index d8835a4e877..386fedba2c5 100644 --- a/src/common/constants/storage.ts +++ b/src/common/constants/storage.ts @@ -766,13 +766,6 @@ export const MAX_PERSISTED_KEY_CHARS = 8192; */ export type PersistedKeyKind = "ui" | "cache" | "workspace-scoped" | "draft"; -/** - * `workspaceId` keys append a scope id to a fixed prefix. The scope id is usually a workspace id, - * but creation drafts reuse the same keys with getDraftScopeId()/getPendingScopeId() scope ids and - * some keys also accept project/global scope ids. - */ -export type PersistedKeyScope = "global" | "workspaceId"; - /** * Which scope ids a workspace key is written under, for the budget model: "workspace" keys are * counted for every workspace and creation draft, "draft" keys only for creation drafts. diff --git a/src/common/orpc/schemas/analytics.ts b/src/common/orpc/schemas/analytics.ts index 90a1f988690..cc3b92e39b2 100644 --- a/src/common/orpc/schemas/analytics.ts +++ b/src/common/orpc/schemas/analytics.ts @@ -122,7 +122,6 @@ export const RawQueryColumnSchema = z.object({ name: z.string(), type: z.string(), }); -export type RawQueryColumn = z.infer; export const RawQueryResultSchema = z.object({ columns: z.array(RawQueryColumnSchema), @@ -132,7 +131,6 @@ export const RawQueryResultSchema = z.object({ rowCountExact: z.boolean(), durationMs: z.number(), }); -export type RawQueryResult = z.infer; /** ETL input validation — each row extracted from chat.jsonl is validated before insert */ export const EventRowSchema = z.object({ workspace_id: z.string(), diff --git a/src/common/orpc/schemas/api.test.ts b/src/common/orpc/schemas/api.test.ts index 1b59ebcbb8f..874688f7d2c 100644 --- a/src/common/orpc/schemas/api.test.ts +++ b/src/common/orpc/schemas/api.test.ts @@ -10,7 +10,7 @@ import { } from "./api"; import { OnChatEventSchema } from "./stream"; import { MCP_ICON_LIMITS } from "../../constants/mcpIcon"; -import type { AWSCredentialStatus, ProviderConfigInfo, ProvidersConfigMap } from "../types"; +import type { ProviderConfigInfo, ProvidersConfigMap } from "../types"; /** * Schema conformance tests for provider types. @@ -24,7 +24,7 @@ import type { AWSCredentialStatus, ProviderConfigInfo, ProvidersConfigMap } from */ describe("ProviderConfigInfoSchema conformance", () => { it("preserves all AWSCredentialStatus fields", () => { - const full: AWSCredentialStatus = { + const full: ProviderConfigInfo["aws"] = { region: "us-east-1", profile: "my-sso-profile", bearerTokenSet: true, diff --git a/src/common/orpc/schemas/artifacts.ts b/src/common/orpc/schemas/artifacts.ts index 4af003f9fe2..ddb56c77e1d 100644 --- a/src/common/orpc/schemas/artifacts.ts +++ b/src/common/orpc/schemas/artifacts.ts @@ -93,7 +93,6 @@ export type ArtifactCapabilities = z.infer; * indexes as corrupt and move their history aside. */ export const ArtifactVersionSourceSchema = z.enum(["publish", "turn-end", "attach_file"]); -export type ArtifactVersionSource = z.infer; /** Shelf pin requested by the agent's `artifact` tool; M5 copies pinned versions to the shelf. */ export const ArtifactPinSchema = z.enum(["project", "global"]); diff --git a/src/common/orpc/schemas/skillsCli.ts b/src/common/orpc/schemas/skillsCli.ts index 7948d240b4f..f727b3af7ce 100644 --- a/src/common/orpc/schemas/skillsCli.ts +++ b/src/common/orpc/schemas/skillsCli.ts @@ -18,5 +18,3 @@ export const SkillsCliCommandSchema = z.object({ /** The exact command to copy. Every argument is shell-safe without quoting. */ command: z.string(), }); - -export type SkillsCliCommand = z.infer; diff --git a/src/common/orpc/types.ts b/src/common/orpc/types.ts index 3b3adeb49b1..1526cff99a7 100644 --- a/src/common/orpc/types.ts +++ b/src/common/orpc/types.ts @@ -30,7 +30,6 @@ export type SendMessageOptions = z.infer; // Provider types (single source of truth - derived from schemas) -export type AWSCredentialStatus = z.infer; export type ProviderModelEntry = z.infer; export type ProviderModelDiscoveryResult = z.infer< typeof schemas.ProviderModelDiscoveryResultSchema diff --git a/src/common/schemas/runtimeEnablement.ts b/src/common/schemas/runtimeEnablement.ts index dc7ba04af1d..bea686a7d9f 100644 --- a/src/common/schemas/runtimeEnablement.ts +++ b/src/common/schemas/runtimeEnablement.ts @@ -6,5 +6,3 @@ import { z } from "zod"; // runtime IDs survive upgrade→downgrade cycles without blocking unrelated edits. // The runtime normalizer in config.ts filters to known IDs at load time. export const RuntimeEnablementOverridesSchema = z.record(z.string(), z.literal(false)); - -export type RuntimeEnablementOverrides = z.infer; diff --git a/src/common/types/evaluation.ts b/src/common/types/evaluation.ts index f1c7e05205e..0ca57e663a4 100644 --- a/src/common/types/evaluation.ts +++ b/src/common/types/evaluation.ts @@ -55,7 +55,6 @@ export const EvaluationInputSchema = z.union([ z.array(EvaluationJsonValueSchema), z.record(z.string(), EvaluationJsonValueSchema), ]); -export type EvaluationInput = z.infer; export const EvaluationStateSchema = EvaluationInputSchema; export type EvaluationState = z.infer; @@ -116,7 +115,6 @@ export const EvaluationProviderOptionsSchema = z.record( z.string(), z.record(z.string(), EvaluationJsonValueSchema) ); -export type EvaluationProviderOptions = z.infer; /** * The sandbox-facing `evaluate(state, spec)` options (consumed by the workflow diff --git a/src/common/types/review.ts b/src/common/types/review.ts index 0b0743cc81f..ae117799f6b 100644 --- a/src/common/types/review.ts +++ b/src/common/types/review.ts @@ -63,18 +63,6 @@ export interface HunkReadState { timestamp: number; } -/** - * Workspace review state (persisted to localStorage) - */ -export interface ReviewState { - /** Workspace ID this review belongs to */ - workspaceId: string; - /** Read state keyed by hunk ID */ - readState: Record; - /** Timestamp of last update */ - lastUpdated: number; -} - /** * Sort order options for review panel hunks */ @@ -229,19 +217,6 @@ export interface Review { statusChangedAt?: number; } -/** - * Persisted state for reviews (per workspace) - * Contains reviews in all states: pending, attached, and checked - */ -export interface ReviewsState { - /** Workspace ID */ - workspaceId: string; - /** All reviews keyed by ID */ - reviews: Record; - /** Last update timestamp */ - lastUpdated: number; -} - /** * Helpers for parsing ReviewNoteData.lineRange. */ diff --git a/src/common/types/sessionTape.ts b/src/common/types/sessionTape.ts index 81516de596d..ecd626d945a 100644 --- a/src/common/types/sessionTape.ts +++ b/src/common/types/sessionTape.ts @@ -116,14 +116,6 @@ export const SessionTapeTrailerSchema = z.object({ }), }); -export const SessionTapeLineSchema = z.union([ - SessionTapeHeaderSchema, - SessionTapeEventLineSchema, - SessionTapeTrailerSchema, -]); - export type SessionTapeHeader = z.infer; -export type SessionTapeEventLine = z.infer; export type SessionTapeEndReason = z.infer; export type SessionTapeTrailer = z.infer; -export type SessionTapeLine = z.infer; diff --git a/src/common/types/stream.ts b/src/common/types/stream.ts index 5312c2129e6..c530ada6099 100644 --- a/src/common/types/stream.ts +++ b/src/common/types/stream.ts @@ -6,9 +6,6 @@ import type { PrefixSwapInvalidatedEventSchema } from "@/common/orpc/schemas/str import type { z } from "zod"; import type { MuxReasoningPart, MuxTextPart, MuxToolPart } from "./message"; import type { - AutoRetryAbandonedEventSchema, - AutoRetryScheduledEventSchema, - AutoRetryStartingEventSchema, ErrorEventSchema, ReasoningDeltaEventSchema, ReasoningEndEventSchema, @@ -78,10 +75,6 @@ export type ReasoningEndEvent = z.infer; */ export type UsageDeltaEvent = z.infer; -export type AutoRetryScheduledEvent = z.infer; -export type AutoRetryStartingEvent = z.infer; -export type AutoRetryAbandonedEvent = z.infer; - /** * Progress event for pre-stream startup work. * Used for both runtime readiness and generic startup breadcrumbs in the barrier UI. diff --git a/src/common/types/tools.ts b/src/common/types/tools.ts index 99639ed8923..c5730c9514e 100644 --- a/src/common/types/tools.ts +++ b/src/common/types/tools.ts @@ -187,7 +187,6 @@ export type TimelineEventToolArgs = z.infer; // Status-update tool types (status page agent mode) -export type StatusUpdateToolArgs = z.infer; export type StatusUpdateToolResult = | { success: true; queued: true; note?: string } | { success: false; error: string }; diff --git a/src/common/utils/planReview/planReviewRecord.ts b/src/common/utils/planReview/planReviewRecord.ts index 462b8889992..5fd1d38c1ac 100644 --- a/src/common/utils/planReview/planReviewRecord.ts +++ b/src/common/utils/planReview/planReviewRecord.ts @@ -103,10 +103,7 @@ export const PlanReviewRecordSchema = z.discriminatedUnion("kind", [ export type PlanReviewRecord = z.infer; export type PlanReviewRecordKind = PlanReviewRecord["kind"]; -export type PlanReviewSnapshotRecord = z.infer; export type PlanReviewFeedbackRecord = z.infer; -export type PlanReviewFeedbackComment = z.infer; -export type PlanReviewFeedbackReply = z.infer; /** * Snapshot content is line-ending-normalized before hashing so anchors map 1:1 across platforms. diff --git a/src/common/utils/planReview/planReviewState.ts b/src/common/utils/planReview/planReviewState.ts index 5729e003232..9f8140a2560 100644 --- a/src/common/utils/planReview/planReviewState.ts +++ b/src/common/utils/planReview/planReviewState.ts @@ -56,7 +56,6 @@ export const PlanReviewStateSchema = z.object({ export type PlanReviewSnapshot = z.infer; export type PlanReviewThread = z.infer; -export type PlanReviewThreadReply = z.infer; export type PlanReviewFeedback = z.infer; export type PlanReviewState = z.infer; diff --git a/src/common/utils/tools/toolDefinitions.ts b/src/common/utils/tools/toolDefinitions.ts index 836005561ae..0de4c926d67 100644 --- a/src/common/utils/tools/toolDefinitions.ts +++ b/src/common/utils/tools/toolDefinitions.ts @@ -103,7 +103,6 @@ import { INSTANCE_DISCOVERY_MAX_LIMIT, } from "@/constants/agentMessaging"; import { - AskUserQuestionOptionSchema, AskUserQuestionQuestionSchema, AskUserQuestionToolArgsSchema, } from "./askUserQuestionSchemas"; @@ -112,11 +111,7 @@ import { // ask_user_question (interactive questions for top-level agents) // ----------------------------------------------------------------------------- -export { - AskUserQuestionOptionSchema, - AskUserQuestionQuestionSchema, - AskUserQuestionToolArgsSchema, -}; +export { AskUserQuestionQuestionSchema, AskUserQuestionToolArgsSchema }; const AskUserQuestionUiOnlySchema = z.object({ questions: z.array(AskUserQuestionQuestionSchema), diff --git a/src/node/services/agentPlugins/codexHooks.ts b/src/node/services/agentPlugins/codexHooks.ts index 63c8ee0199e..4aa91fd2b41 100644 --- a/src/node/services/agentPlugins/codexHooks.ts +++ b/src/node/services/agentPlugins/codexHooks.ts @@ -48,7 +48,6 @@ export const MAPPED_CODEX_HOOK_EVENTS = { UserPromptSubmit: "message.send", Stop: "turn.stop", } as const; -export type MappedCodexHookEvent = keyof typeof MAPPED_CODEX_HOOK_EVENTS; /** Other Codex events: parsed and listed, never run. */ const IGNORED_CODEX_HOOK_EVENTS = new Set([ diff --git a/src/node/services/claudeDesignService.ts b/src/node/services/claudeDesignService.ts index 0aae5f55398..0530eaba0c9 100644 --- a/src/node/services/claudeDesignService.ts +++ b/src/node/services/claudeDesignService.ts @@ -10,7 +10,6 @@ import { CLAUDE_DESIGN_MAX_CREDENTIAL_BYTES, CLAUDE_DESIGN_MAX_ERROR_BYTES, CLAUDE_DESIGN_SCOPES, - CLAUDE_DESIGN_SERVER_NAME, CLAUDE_DESIGN_URL, CLAUDE_DESIGN_READ_TIMEOUT_MS, CLAUDE_DESIGN_TEST_TIMEOUT_MS, @@ -437,5 +436,3 @@ async function needsConsent(response: Response): Promise { reader.cancel().catch(() => undefined); } } - -export { CLAUDE_DESIGN_SERVER_NAME }; diff --git a/src/node/services/coderOauthService.test.ts b/src/node/services/coderOauthService.test.ts index 2d07bc5a46d..d931b31c9a9 100644 --- a/src/node/services/coderOauthService.test.ts +++ b/src/node/services/coderOauthService.test.ts @@ -6,7 +6,7 @@ import { Err, Ok } from "@/common/types/result"; import type { FileLeaseManager, ProvidersConfig, ProvidersConfigStore } from "@/node/config"; import type { ProviderService } from "@/node/services/providerService"; import type { WindowService } from "@/node/services/windowService"; -import type { ProviderModelEntry } from "@/common/config/schemas/providerModelEntry"; +import type { ProviderModelEntry } from "@/common/orpc/types"; import type { CoderOauthAuth } from "@/node/utils/coderOauthAuth"; import { CODER_GATEWAY_DEFAULT_PROVIDER_NAMES } from "@/common/constants/coderOAuth"; import { CoderOauthService } from "./coderOauthService"; diff --git a/src/node/services/planReviewService.prepareFeedback.test.ts b/src/node/services/planReviewService.prepareFeedback.test.ts index e06e8153d9d..ff9bdfb72d0 100644 --- a/src/node/services/planReviewService.prepareFeedback.test.ts +++ b/src/node/services/planReviewService.prepareFeedback.test.ts @@ -6,7 +6,7 @@ import { parsePlanReviewEnvelope, } from "@/common/utils/planReview/planReviewEnvelope"; import type { - PlanReviewFeedbackComment, + PlanReviewFeedbackRecord, PlanReviewRecord, } from "@/common/utils/planReview/planReviewRecord"; import { @@ -38,7 +38,7 @@ describe("preparePlanReviewFeedback reply thread context", () => { await historyHandle.cleanup(); }); - async function seed(comments: PlanReviewFeedbackComment[]): Promise { + async function seed(comments: PlanReviewFeedbackRecord["comments"]): Promise { const records: PlanReviewRecord[] = [ { v: 1,