@spencer-kit/coder-studio 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/esm/bin.mjs +10 -17
- package/dist/esm/bin.mjs.map +2 -2
- package/dist/esm/server-runner.mjs +10 -17
- package/dist/esm/server-runner.mjs.map +2 -2
- package/dist/web/assets/index-DBpngHWV.js +111 -0
- package/dist/web/assets/index-DBpngHWV.js.map +1 -0
- package/dist/web/assets/index-DUGzjla1.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-BwryTUQ9.css +0 -1
- package/dist/web/assets/index-Z64V-v_U.js +0 -111
- package/dist/web/assets/index-Z64V-v_U.js.map +0 -1
|
@@ -1043,7 +1043,7 @@ async function readFile(workspaceId, rootPath, relPath) {
|
|
|
1043
1043
|
const abs = resolveSafe(rootPath, relPath);
|
|
1044
1044
|
const imageType = getImageTypeInfo(relPath);
|
|
1045
1045
|
if (imageType) {
|
|
1046
|
-
const
|
|
1046
|
+
const bytes = await fsReadFile(abs);
|
|
1047
1047
|
const params = new URLSearchParams({
|
|
1048
1048
|
workspaceId,
|
|
1049
1049
|
path: relPath
|
|
@@ -1052,8 +1052,9 @@ async function readFile(workspaceId, rootPath, relPath) {
|
|
|
1052
1052
|
kind: "image",
|
|
1053
1053
|
mime: imageType.mime,
|
|
1054
1054
|
url: `/api/file?${params.toString()}`,
|
|
1055
|
-
size:
|
|
1056
|
-
isTextBacked: imageType.isTextBacked
|
|
1055
|
+
size: bytes.byteLength,
|
|
1056
|
+
isTextBacked: imageType.isTextBacked,
|
|
1057
|
+
version: createHash("sha256").update(bytes).digest("hex")
|
|
1057
1058
|
};
|
|
1058
1059
|
}
|
|
1059
1060
|
const content = await fsReadFile(abs, "utf-8");
|
|
@@ -8168,20 +8169,8 @@ function createTreeVisibilityFilter() {
|
|
|
8168
8169
|
return (name) => !isTreeHidden(name);
|
|
8169
8170
|
}
|
|
8170
8171
|
function createWatcherIgnoreFilter(rootPath) {
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
return (path10) => DEFAULT_WATCHER_IGNORED_PATTERNS.some((p) => p.test(normalizePath(path10)));
|
|
8174
|
-
}
|
|
8175
|
-
const gitignoreContent = readFileSync5(gitignorePath, "utf-8");
|
|
8176
|
-
const ig = ignore().add(gitignoreContent);
|
|
8177
|
-
return (path10) => {
|
|
8178
|
-
const normalizedPath = normalizePath(path10);
|
|
8179
|
-
if (DEFAULT_WATCHER_IGNORED_PATTERNS.some((p) => p.test(normalizedPath))) {
|
|
8180
|
-
return true;
|
|
8181
|
-
}
|
|
8182
|
-
const relativePath = relativeToRoot(rootPath, path10);
|
|
8183
|
-
return isIgnoredByGitignore(ig, relativePath);
|
|
8184
|
-
};
|
|
8172
|
+
void rootPath;
|
|
8173
|
+
return (path10) => DEFAULT_WATCHER_IGNORED_PATTERNS.some((p) => p.test(normalizePath(path10)));
|
|
8185
8174
|
}
|
|
8186
8175
|
var DEFAULT_WATCHER_IGNORED_PATTERNS;
|
|
8187
8176
|
var init_gitignore = __esm({
|
|
@@ -10001,6 +9990,7 @@ var init_workspace = __esm({
|
|
|
10001
9990
|
bottomPanelHeight: z6.number(),
|
|
10002
9991
|
focusMode: z6.boolean(),
|
|
10003
9992
|
activeSessionId: z6.string().optional(),
|
|
9993
|
+
fileTreeExpandedDirs: z6.array(z6.string()).optional(),
|
|
10004
9994
|
paneLayout: z6.object({
|
|
10005
9995
|
id: z6.string(),
|
|
10006
9996
|
type: z6.enum(["leaf", "split"]),
|
|
@@ -12016,6 +12006,9 @@ var init_settings2 = __esm({
|
|
|
12016
12006
|
themeId: z13.string().optional(),
|
|
12017
12007
|
terminalRenderer: z13.enum(["standard", "compatibility"]).optional(),
|
|
12018
12008
|
terminalCopyOnSelect: z13.boolean().optional(),
|
|
12009
|
+
terminalFontSize: z13.number().int().min(10).max(18).optional(),
|
|
12010
|
+
desktopTerminalFontSize: z13.number().int().min(10).max(18).optional(),
|
|
12011
|
+
mobileTerminalFontSize: z13.number().int().min(10).max(18).optional(),
|
|
12019
12012
|
locale: z13.enum(["zh", "en"]).optional()
|
|
12020
12013
|
}).optional(),
|
|
12021
12014
|
providers: ProviderSettingsSchema.optional()
|