The best way to control Claude Code, Codex and more from any computer or phone
refactor(desktop): classify app exports (#10267)
Julius Marminge committed
Sep 7, 2026 at 15:00 UTC
89dd9ab32b4aaba6f34689353cb14fa6549e34fc
16 files changed
+18
-4
apps/desktop/src/app/DesktopAppActivation.ts
+1
@@ -213,6 +213,7 @@ export class DesktopAppActivation extends Context.Service<
213
214
const { logWarning } = makeComponentLogger("desktop-app-activation");
215
216
+/** @public Service construction is part of the canonical Effect module API. */
217
export const make = Effect.gen(function* () {
218
const desktopEnvironment = yield* DesktopEnvironment.DesktopEnvironment;
219
const desktopWindow = yield* DesktopWindow.DesktopWindow;
apps/desktop/src/app/DesktopAppIdentity.ts
+1
@@ -66,6 +66,7 @@ export const resolveUserDataPath = Effect.gen(function* () {
66
: environment.path.join(environment.appDataDirectory, environment.userDataDirName);
67
}).pipe(Effect.withSpan("desktop.appIdentity.resolveUserDataPath"));
68
69
+/** @public Service construction is part of the canonical Effect module API. */
70
export const make = Effect.gen(function* () {
71
const assets = yield* DesktopAssets.DesktopAssets;
72
const electronApp = yield* ElectronApp.ElectronApp;
apps/desktop/src/app/DesktopAssets.ts
+1
@@ -119,6 +119,7 @@ const resolveIconPath = Effect.fn("desktop.assets.resolveIconPath")(function* (
119
return yield* resolveResourcePath(`icon.${ext}`);
120
});
121
122
+/** @public Service construction is part of the canonical Effect module API. */
123
export const make = Effect.gen(function* () {
124
const context = yield* Effect.context<
125
FileSystem.FileSystem | DesktopEnvironment.DesktopEnvironment
apps/desktop/src/app/DesktopClerk.ts
+1
@@ -83,6 +83,7 @@ function createDesktopClerkBridge(stateDir: string, isDevelopment: boolean) {
83
});
84
}
85
86
+/** @public Service construction is part of the canonical Effect module API. */
87
export const make = Effect.gen(function* () {
88
const environment = yield* DesktopEnvironment.DesktopEnvironment;
89
const electronApp = yield* ElectronApp.ElectronApp;
apps/desktop/src/app/DesktopConnectionCatalogStore.ts
+1
@@ -375,6 +375,7 @@ const migrateSavedEnvironmentRecords = Effect.fn(
375
};
376
});
377
378
+/** @public Service construction is part of the canonical Effect module API. */
379
export const make = Effect.gen(function* () {
380
const environment = yield* DesktopEnvironment.DesktopEnvironment;
381
const fileSystem = yield* FileSystem.FileSystem;
apps/desktop/src/app/DesktopLifecycle.ts
+1
@@ -159,6 +159,7 @@ function quitFromSignal(
159
);
160
}
161
162
+/** @public Service construction is part of the canonical Effect module API. */
163
export const make = DesktopLifecycle.of({
164
relaunch: Effect.fn("desktop.lifecycle.relaunch")(function* (reason) {
165
const electronApp = yield* ElectronApp.ElectronApp;
apps/desktop/src/app/DesktopLinuxUrlHandler.ts
+2
-1
@@ -20,7 +20,7 @@ import { makeComponentLogger } from "./DesktopObservability.ts";
20
// our own handler entry pointing at the current AppImage and claim the
21
// scheme default via xdg-mime, exactly what the file manager's "set as
22
// default" checkbox would record in mimeapps.list.
23
-export const URL_HANDLER_DESKTOP_ENTRY_NAME = "t3code-url-handler.desktop";
23
+const URL_HANDLER_DESKTOP_ENTRY_NAME = "t3code-url-handler.desktop";
24
25
const { logInfo, logWarning } = makeComponentLogger("desktop-linux-url-handler");
26
@@ -92,6 +92,7 @@ export class DesktopLinuxUrlHandler extends Context.Service<
92
}
93
>()("@t3tools/desktop/app/DesktopLinuxUrlHandler") {}
94
95
+/** @public Service construction is part of the canonical Effect module API. */
96
export const make = Effect.gen(function* () {
97
const environment = yield* DesktopEnvironment.DesktopEnvironment;
98
const fileSystem = yield* FileSystem.FileSystem;
apps/desktop/src/app/DesktopPreReadyPlatform.ts
+1
@@ -46,6 +46,7 @@ export class DesktopPreReadyElectronOptions extends Context.Service<
46
}
47
>()("@t3tools/desktop/app/DesktopPreReadyPlatform/DesktopPreReadyElectronOptions") {}
48
49
+/** @public Service construction is part of the canonical Effect module API. */
50
export const make = Effect.gen(function* () {
51
const platform = yield* HostProcessPlatform;
52
return yield* Effect.sync((): DesktopPreReadyElectronOptions["Service"] => {
apps/desktop/src/shell/DesktopShellEnvironment.ts
+1
@@ -533,6 +533,7 @@ const installShellEnvironment = (
533
return Effect.void;
534
};
535
536
+/** @public Service construction is part of the canonical Effect module API. */
537
export const make = Effect.gen(function* () {
538
const environment = yield* DesktopEnvironment.DesktopEnvironment;
539
const fileSystem = yield* FileSystem.FileSystem;
apps/desktop/src/ssh/DesktopSshEnvironment.ts
+1
@@ -128,6 +128,7 @@ const makePasswordPrompt = (
128
prompts.request(request).pipe(Effect.mapError(toSshPasswordPromptError)),
129
});
130
131
+/** @public Service construction is part of the canonical Effect module API. */
132
export const make = Effect.gen(function* () {
133
const manager = yield* SshTunnel.SshEnvironmentManager;
134
const prompts = yield* DesktopSshPasswordPrompts.DesktopSshPasswordPrompts;
apps/desktop/src/ssh/DesktopSshPasswordPrompts.ts
+1
@@ -222,6 +222,7 @@ const failPending = (
222
error: DesktopSshPasswordPromptRequestError,
223
) => Deferred.fail(pending.deferred, error).pipe(Effect.asVoid);
224
225
+/** @public Service construction is part of the canonical Effect module API. */
226
export const make = Effect.fn("desktop.sshPasswordPrompts.make")(function* (
227
options: DesktopSshPasswordPromptsOptions = {},
228
) {
apps/desktop/src/updates/DesktopUpdates.ts
+1
@@ -271,6 +271,7 @@ function isArm64HostRunningIntelBuild(runtimeInfo: DesktopRuntimeInfo): boolean
271
return runtimeInfo.hostArch === "arm64" && runtimeInfo.appArch === "x64";
272
}
273
274
+/** @public Service construction is part of the canonical Effect module API. */
275
export const make = Effect.gen(function* () {
276
const config = yield* DesktopConfig.DesktopConfig;
277
const pool = yield* DesktopBackendPool.DesktopBackendPool;
apps/desktop/src/updates/remoteUpdateFlow.ts
+1
-1
@@ -31,7 +31,7 @@ export const MAX_REMOTE_UPDATE_CHECKS = 2;
31
export const MAX_REMOTE_UPDATE_DOWNLOADS = 3;
32
33
/** Same predicate DesktopUpdates.installDownloadedUpdate uses for admission. */
34
-export function isInstallableDesktopUpdateState(state: DesktopUpdateState): boolean {
34
+function isInstallableDesktopUpdateState(state: DesktopUpdateState): boolean {
35
return (
36
state.downloadedVersion !== null &&
37
(state.status === "downloaded" ||
apps/desktop/src/updates/updateMachine.ts
+2
-2
@@ -5,13 +5,13 @@ import type {
5
DesktopUpdateState,
6
} from "@t3tools/contracts";
7
8
-export function nextStatusAfterDownloadFailure(
8
+function nextStatusAfterDownloadFailure(
9
currentState: DesktopUpdateState,
10
): DesktopUpdateState["status"] {
11
return currentState.availableVersion ? "available" : "error";
12
}
13
14
-export function getCanRetryAfterDownloadFailure(currentState: DesktopUpdateState): boolean {
14
+function getCanRetryAfterDownloadFailure(currentState: DesktopUpdateState): boolean {
15
return currentState.availableVersion !== null;
16
}
17
apps/desktop/src/window/DesktopApplicationMenu.ts
+1
@@ -103,6 +103,7 @@ const handleCheckForUpdatesMenuClick = Effect.gen(function* () {
103
yield* checkForUpdatesFromMenu;
104
}).pipe(Effect.withSpan("desktop.menu.handleCheckForUpdatesClick"));
105
106
+/** @public Service construction is part of the canonical Effect module API. */
107
export const make = Effect.gen(function* () {
108
const electronApp = yield* ElectronApp.ElectronApp;
109
const electronMenu = yield* ElectronMenu.ElectronMenu;
apps/desktop/src/window/DesktopWindow.ts
+1
@@ -278,6 +278,7 @@ function bindFirstRevealTrigger(
278
}
279
}
280
281
+/** @public Service construction is part of the canonical Effect module API. */
282
export const make = Effect.gen(function* () {
283
const environment = yield* DesktopEnvironment.DesktopEnvironment;
284
const assets = yield* DesktopAssets.DesktopAssets;