The best way to control Claude Code, Codex and more from any computer or phone
fine there
Julius Marminge committed
Feb 28, 2026 at 23:16 UTC
ac0e720de19e452b75cd1a13cb576b0dec242721
4 files changed
+8
-11
apps/server/src/attachmentPaths.ts
+1
-1
@@ -1,6 +1,6 @@
1
import path from "node:path";
2
3
-import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
3
+export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
4
5
export function normalizeAttachmentRelativePath(rawRelativePath: string): string | null {
6
const normalized = path.normalize(rawRelativePath).replace(/^[/\\]+/, "");
apps/server/src/imageMime.ts
-2
@@ -1,7 +1,5 @@
1
import Mime from "@effect/platform-node/Mime";
2
3
-export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
4
-
3
export const IMAGE_EXTENSION_BY_MIME_TYPE: Record<string, string> = {
4
"image/avif": ".avif",
5
"image/bmp": ".bmp",
apps/server/src/orchestration/Layers/ProjectionPipeline.ts
+2
-6
@@ -37,12 +37,8 @@ import {
37
OrchestrationProjectionPipeline,
38
type OrchestrationProjectionPipelineShape,
39
} from "../Services/ProjectionPipeline.ts";
40
-import { attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
41
-import {
42
- ATTACHMENTS_ROUTE_PREFIX,
43
- inferImageExtension,
44
- parseBase64DataUrl,
45
-} from "../../imageMime.ts";
40
+import { ATTACHMENTS_ROUTE_PREFIX, attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
41
+import { inferImageExtension, parseBase64DataUrl } from "../../imageMime.ts";
42
43
export const ORCHESTRATION_PROJECTOR_NAMES = {
44
projects: "projection.projects",
apps/server/src/wsServer.ts
+5
-2
@@ -55,8 +55,11 @@ import { Open } from "./open";
55
import { ServerConfig } from "./config";
56
import { GitCore } from "./git/Services/GitCore.ts";
57
import { tryHandleProjectFaviconRequest } from "./projectFaviconRoute";
58
-import { normalizeAttachmentRelativePath, resolveAttachmentRelativePath } from "./attachmentPaths";
59
-import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
58
+import {
59
+ ATTACHMENTS_ROUTE_PREFIX,
60
+ normalizeAttachmentRelativePath,
61
+ resolveAttachmentRelativePath,
62
+} from "./attachmentPaths";
63
64
/**
65
* ServerShape - Service API for server lifecycle control.