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.

niceee

Julius Marmingec9b0da63a11f
diff --git a/apps/server/src/main.test.ts b/apps/server/src/main.test.ts
index 85469ffb0..c16fe9aab 100644
--- a/apps/server/src/main.test.ts
+++ b/apps/server/src/main.test.ts
@@ -24,7 +24,7 @@ const testLayer = Layer.mergeAll(
cwd: "/tmp/t3-test-workspace",
fixPath: Effect.void,
findAvailablePort,
- resolveStaticDir: () => Effect.undefined,
+ resolveStaticDir: Effect.undefined,
} satisfies CliConfigShape),
Layer.succeed(Server, {
createServer,
diff --git a/apps/server/src/main.ts b/apps/server/src/main.ts
index 077934ad6..535b71d3f 100644
--- a/apps/server/src/main.ts
+++ b/apps/server/src/main.ts
@@ -26,7 +26,7 @@ export interface CliConfigShape {
readonly cwd: string;
readonly fixPath: Effect.Effect<unknown, never>;
readonly findAvailablePort: (preferred: number) => Effect.Effect<number, StartupError>;
- readonly resolveStaticDir: () => Effect.Effect<string | undefined>;
+ readonly resolveStaticDir: Effect.Effect<string | undefined>;
}
export class CliConfig extends ServiceMap.Service<CliConfig, CliConfigShape>()(
@@ -141,7 +141,7 @@ const resolveCliConfig = Effect.fn(function* (input: CliInput) {
const devUrl = env.devUrl;
const noBrowser = env.noBrowser ?? mode === "desktop";
const authToken = Option.getOrUndefined(input.token) ?? env.authToken;
- const staticDir = devUrl ? undefined : yield* cliConfig.resolveStaticDir();
+ const staticDir = devUrl ? undefined : yield* cliConfig.resolveStaticDir;
return {
mode,
@@ -245,11 +245,10 @@ export const CliConfigLive = Layer.effect(
cwd: process.cwd(),
fixPath: Effect.sync(fixPath),
findAvailablePort,
- resolveStaticDir: () =>
- resolveStaticDir().pipe(
- Effect.provideService(FileSystem.FileSystem, fileSystem),
- Effect.provideService(Path.Path, path),
- ),
+ resolveStaticDir: resolveStaticDir().pipe(
+ Effect.provideService(FileSystem.FileSystem, fileSystem),
+ Effect.provideService(Path.Path, path),
+ ),
} satisfies CliConfigShape;
}),
);