Skip to content

Commit bdc1ce8

Browse files
authored
refactor(plugins): localize internal declarations (#102021)
1 parent 22376d8 commit bdc1ce8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

extensions/diffs/src/language-hints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from "./shiki-curated-languages.js";
99
import type { DiffViewerPayload } from "./types.js";
1010

11-
export const BASE_DIFF_VIEWER_LANGUAGE_HINTS = [
11+
const BASE_DIFF_VIEWER_LANGUAGE_HINTS = [
1212
...Object.keys(bundledLanguagesBase),
1313
"text",
1414
"ansi",

extensions/diffs/src/viewer-assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const VIEWER_LOADER_PATH = `${VIEWER_ASSET_PREFIX}viewer.js`;
88
export const VIEWER_RUNTIME_PATH = `${VIEWER_ASSET_PREFIX}viewer-runtime.js`;
99
export const LANGUAGE_PACK_VIEWER_ASSET_PREFIX = "/plugins/diffs-language-pack/assets/";
1010
export const LANGUAGE_PACK_VIEWER_LOADER_PATH = `${LANGUAGE_PACK_VIEWER_ASSET_PREFIX}viewer.js`;
11-
export const LANGUAGE_PACK_VIEWER_RUNTIME_PATH = `${LANGUAGE_PACK_VIEWER_ASSET_PREFIX}viewer-runtime.js`;
11+
const LANGUAGE_PACK_VIEWER_RUNTIME_PATH = `${LANGUAGE_PACK_VIEWER_ASSET_PREFIX}viewer-runtime.js`;
1212
const VIEWER_RUNTIME_RELATIVE_IMPORT_PATH = "./viewer-runtime.js";
1313
const VIEWER_RUNTIME_CANDIDATE_RELATIVE_PATHS = [
1414
"./assets/viewer-runtime.js",

extensions/file-transfer/src/tools/descriptors.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const FILE_WRITE_HARD_MAX_BYTES = 16 * 1024 * 1024;
2323
const PAIRED_NODE_DESCRIPTION =
2424
"Existing paired node id, display name, or IP shown by nodes status. Do not use local, host, gateway, or auto; use local file/exec tools for local workspace paths.";
2525

26-
export const FileFetchToolSchema = Type.Object({
26+
const FileFetchToolSchema = Type.Object({
2727
node: Type.String({
2828
description: PAIRED_NODE_DESCRIPTION,
2929
}),
@@ -46,7 +46,7 @@ export const FILE_FETCH_TOOL_DESCRIPTOR: FileTransferToolDescriptor = {
4646
parameters: FileFetchToolSchema,
4747
};
4848

49-
export const DirListToolSchema = Type.Object({
49+
const DirListToolSchema = Type.Object({
5050
node: Type.String({
5151
description: PAIRED_NODE_DESCRIPTION,
5252
}),
@@ -75,7 +75,7 @@ export const DIR_LIST_TOOL_DESCRIPTOR: FileTransferToolDescriptor = {
7575
parameters: DirListToolSchema,
7676
};
7777

78-
export const DirFetchToolSchema = Type.Object({
78+
const DirFetchToolSchema = Type.Object({
7979
node: Type.String({
8080
description: PAIRED_NODE_DESCRIPTION,
8181
}),
@@ -104,7 +104,7 @@ export const DIR_FETCH_TOOL_DESCRIPTOR: FileTransferToolDescriptor = {
104104
parameters: DirFetchToolSchema,
105105
};
106106

107-
export const FileWriteToolSchema = Type.Object({
107+
const FileWriteToolSchema = Type.Object({
108108
node: Type.String({ description: PAIRED_NODE_DESCRIPTION }),
109109
path: Type.String({
110110
description: "Absolute path on the node to write. Canonicalized server-side.",

0 commit comments

Comments
 (0)