Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fine there

Julius Marmingeac0e720de19e
diff --git a/apps/server/src/attachmentPaths.ts b/apps/server/src/attachmentPaths.ts
index f9fb60566..7023d5a3a 100644
--- a/apps/server/src/attachmentPaths.ts
+++ b/apps/server/src/attachmentPaths.ts
@@ -1,6 +1,6 @@
import path from "node:path";
-import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
+export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
export function normalizeAttachmentRelativePath(rawRelativePath: string): string | null {
const normalized = path.normalize(rawRelativePath).replace(/^[/\\]+/, "");
diff --git a/apps/server/src/imageMime.ts b/apps/server/src/imageMime.ts
index f808cefdc..249deff0c 100644
--- a/apps/server/src/imageMime.ts
+++ b/apps/server/src/imageMime.ts
@@ -1,7 +1,5 @@
import Mime from "@effect/platform-node/Mime";
-export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
-
export const IMAGE_EXTENSION_BY_MIME_TYPE: Record<string, string> = {
"image/avif": ".avif",
"image/bmp": ".bmp",
diff --git a/apps/server/src/orchestration/Layers/ProjectionPipeline.ts b/apps/server/src/orchestration/Layers/ProjectionPipeline.ts
index 45e6196b5..8f8e01a51 100644
--- a/apps/server/src/orchestration/Layers/ProjectionPipeline.ts
+++ b/apps/server/src/orchestration/Layers/ProjectionPipeline.ts
@@ -37,12 +37,8 @@ import {
OrchestrationProjectionPipeline,
type OrchestrationProjectionPipelineShape,
} from "../Services/ProjectionPipeline.ts";
-import { attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
-import {
- ATTACHMENTS_ROUTE_PREFIX,
- inferImageExtension,
- parseBase64DataUrl,
-} from "../../imageMime.ts";
+import { ATTACHMENTS_ROUTE_PREFIX, attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
+import { inferImageExtension, parseBase64DataUrl } from "../../imageMime.ts";
export const ORCHESTRATION_PROJECTOR_NAMES = {
projects: "projection.projects",
diff --git a/apps/server/src/wsServer.ts b/apps/server/src/wsServer.ts
index 85991dc2b..c40ef39a4 100644
--- a/apps/server/src/wsServer.ts
+++ b/apps/server/src/wsServer.ts
@@ -55,8 +55,11 @@ import { Open } from "./open";
import { ServerConfig } from "./config";
import { GitCore } from "./git/Services/GitCore.ts";
import { tryHandleProjectFaviconRequest } from "./projectFaviconRoute";
-import { normalizeAttachmentRelativePath, resolveAttachmentRelativePath } from "./attachmentPaths";
-import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
+import {
+ ATTACHMENTS_ROUTE_PREFIX,
+ normalizeAttachmentRelativePath,
+ resolveAttachmentRelativePath,
+} from "./attachmentPaths";
/**
* ServerShape - Service API for server lifecycle control.