Skip to content

Commit 775ef96

Browse files
authored
refactor(deadcode): localize internal type aliases (#101243)
1 parent ffa6ebd commit 775ef96

12 files changed

Lines changed: 12 additions & 12 deletions

File tree

extensions/browser/src/browser/pw-download-capture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { writeExternalFileWithinOutputRoot } from "./output-files.js";
77
import { DEFAULT_DOWNLOAD_DIR } from "./paths.js";
88
import { sanitizeUntrustedFileName } from "./safe-filename.js";
99

10-
export type BrowserDownloadCaptureState = {
10+
type BrowserDownloadCaptureState = {
1111
downloadWaiterDepth: number;
1212
};
1313

extensions/canvas/src/a2ui-jsonl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const A2UI_ACTION_KEYS = [
1010
] as const;
1111

1212
/** Supported A2UI message dialects accepted by the Canvas host. */
13-
export type A2UIVersion = "v0.8" | "v0.9";
13+
type A2UIVersion = "v0.8" | "v0.9";
1414

1515
/** Builds a minimal A2UI JSONL payload that renders text in a single surface. */
1616
export function buildA2UITextJsonl(text: string) {

extensions/copilot/src/byok-proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { ResolvedCopilotProvider } from "./provider-bridge.js";
99

1010
const LOOPBACK_HOST = "127.0.0.1";
1111

12-
export type CopilotByokProxyHandle = {
12+
type CopilotByokProxyHandle = {
1313
close: () => Promise<void>;
1414
provider: ResolvedCopilotProvider;
1515
};

extensions/discord/src/inbound-event-delivery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
normalizeOptionalString as readString,
66
} from "openclaw/plugin-sdk/string-coerce-runtime";
77

8-
export type DiscordInboundEventDeliveryEnd = () => void;
8+
type DiscordInboundEventDeliveryEnd = () => void;
99

1010
type ActiveEvent = {
1111
outboundTo: string;

src/agents/bootstrap-routing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type BootstrapRoutingInput = {
3131
};
3232

3333
/** Bootstrap placement decision consumed by system/runtime context assembly. */
34-
export type WorkspaceBootstrapRouting = {
34+
type WorkspaceBootstrapRouting = {
3535
bootstrapMode: BootstrapMode;
3636
includeBootstrapInSystemContext: boolean;
3737
includeBootstrapInRuntimeContext: boolean;

src/agents/cli-session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function clearAllCliSessions(entry: Partial<MutableCliSessionFields>): vo
116116

117117
type CliSessionInvalidatedReason = "auth-profile" | "auth-epoch" | "message-policy" | "cwd" | "mcp";
118118

119-
export type CliSessionContentDriftReason = "system-prompt" | "prompt-tools";
119+
type CliSessionContentDriftReason = "system-prompt" | "prompt-tools";
120120

121121
export type CliSessionReuseResult =
122122
| { mode: "none" }

src/agents/tools/gateway-caller-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { copyChannelAgentToolMeta } from "../channel-tools.js";
66
import { copyToolTerminalPresentation } from "../tool-terminal-presentation.js";
77
import type { AnyAgentTool } from "./common.js";
88

9-
export type GatewayToolCallerIdentity = {
9+
type GatewayToolCallerIdentity = {
1010
agentId: string;
1111
sessionKey: string;
1212
};

src/agents/worktrees/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type GitResult = {
1111
code: number | null;
1212
};
1313

14-
export type WorktreeListEntry = {
14+
type WorktreeListEntry = {
1515
path: string;
1616
lockedReason?: string;
1717
};

ui/src/app/web-push.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { GatewayBrowserClient } from "../api/gateway.ts";
33
import type { ApplicationGateway } from "./gateway.ts";
44

5-
export type WebPushSnapshot = {
5+
type WebPushSnapshot = {
66
supported: boolean;
77
permission: NotificationPermission | "unsupported";
88
subscribed: boolean;

ui/src/lib/sessions/reconcile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type SessionChangedResult = {
2828
result: SessionsListResult | null;
2929
};
3030

31-
export type SessionChangedEventInfo = {
31+
type SessionChangedEventInfo = {
3232
key: string;
3333
agentId: string | null;
3434
runId: string | null;

0 commit comments

Comments
 (0)