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.

log?

Julius Marmingef6d40ce841c4
diff --git a/apps/server/scripts/cli.ts b/apps/server/scripts/cli.ts
index 8fa9b215e..09dda3486 100644
--- a/apps/server/scripts/cli.ts
+++ b/apps/server/scripts/cli.ts
@@ -19,7 +19,7 @@ const RepoRoot = Effect.service(Path.Path).pipe(
Effect.flatMap((path) => path.fromFileUrl(new URL("../../..", import.meta.url))),
);
-const runCommand = Effect.fn(function* (command: ChildProcess.Command) {
+const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) {
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
const child = yield* spawner.spawn(command);
const exitCode = yield* child.exitCode;
diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts
index 2dc0f7b72..813ad9689 100644
--- a/scripts/build-desktop-artifact.ts
+++ b/scripts/build-desktop-artifact.ts
@@ -162,7 +162,7 @@ const resolveBooleanFlag = (flag: Option.Option<boolean>, envValue: boolean) =>
const mergeOptions = <A>(a: Option.Option<A>, b: Option.Option<A>, defaultValue: A) =>
Option.getOrElse(a, () => Option.getOrElse(b, () => defaultValue));
-const resolveBuildOptions = Effect.fn(function* (input: BuildCliInput) {
+const resolveBuildOptions = Effect.fn("resolveBuildOptions")(function* (input: BuildCliInput) {
const path = yield* Path.Path;
const repoRoot = yield* RepoRoot;
const env = yield* BuildEnvConfig.asEffect();
@@ -208,7 +208,7 @@ const commandOutputOptions = (verbose: boolean) =>
stderr: "inherit",
}) as const;
-const runCommand = Effect.fn(function* (command: ChildProcess.Command) {
+const runCommand = Effect.fn("runCommand")(function* (command: ChildProcess.Command) {
const commandSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
const child = yield* commandSpawner.spawn(command);
const exitCode = yield* child.exitCode;
@@ -321,7 +321,7 @@ function validateBundledClientAssets(clientDir: string) {
});
}
-const createBuildConfig = Effect.fn(function* (
+const createBuildConfig = Effect.fn("createBuildConfig")(function* (
platform: typeof BuildPlatform.Type,
target: string,
productName: string,
@@ -366,7 +366,7 @@ const createBuildConfig = Effect.fn(function* (
return buildConfig;
});
-const assertPlatformBuildResources = Effect.fn(function* (
+const assertPlatformBuildResources = Effect.fn("assertPlatformBuildResources")(function* (
platform: typeof BuildPlatform.Type,
stageResourcesDir: string,
verbose: boolean,
@@ -399,7 +399,9 @@ const assertPlatformBuildResources = Effect.fn(function* (
}
});
-const buildDesktopArtifact = Effect.fn(function* (options: ResolvedBuildOptions) {
+const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
+ options: ResolvedBuildOptions,
+) {
const repoRoot = yield* RepoRoot;
const path = yield* Path.Path;
const fs = yield* FileSystem.FileSystem;