# Files changed · PR \#10267 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/10267/diffs)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

[refactor\(desktop\): classify app exports](https://git.cafe/pingdotgg/t3code/pull/10267.md)

Version: 4

Head commit: 4c6bb9a0b545be177647d1d38a9fbc98c797492b

Base commit: bf20c623db759b3d1f960d3250dacadb6cf348cf

Comparison base: bf20c623db759b3d1f960d3250dacadb6cf348cf

Showing up to 20 entries from this revision. If the pull request changes, reopen the first page before continuing.

## apps/desktop/src/app/DesktopAppActivation.ts

Status: modified; +1; −0

```diff
@@ -213,6 +213,7 @@
 
 const { logWarning } = makeComponentLogger("desktop-app-activation");
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const desktopEnvironment = yield* DesktopEnvironment.DesktopEnvironment;
   const desktopWindow = yield* DesktopWindow.DesktopWindow;
```

## apps/desktop/src/app/DesktopAppIdentity.ts

Status: modified; +1; −0

```diff
@@ -66,6 +66,7 @@
     : environment.path.join(environment.appDataDirectory, environment.userDataDirName);
 }).pipe(Effect.withSpan("desktop.appIdentity.resolveUserDataPath"));
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const assets = yield* DesktopAssets.DesktopAssets;
   const electronApp = yield* ElectronApp.ElectronApp;
```

## apps/desktop/src/app/DesktopAssets.ts

Status: modified; +1; −0

```diff
@@ -119,6 +119,7 @@
   return yield* resolveResourcePath(`icon.${ext}`);
 });
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const context = yield* Effect.context<
     FileSystem.FileSystem | DesktopEnvironment.DesktopEnvironment
```

## apps/desktop/src/app/DesktopClerk.ts

Status: modified; +1; −0

```diff
@@ -83,6 +83,7 @@
   });
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const environment = yield* DesktopEnvironment.DesktopEnvironment;
   const electronApp = yield* ElectronApp.ElectronApp;
```

## apps/desktop/src/app/DesktopConnectionCatalogStore.ts

Status: modified; +1; −0

```diff
@@ -375,6 +375,7 @@
   };
 });
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const environment = yield* DesktopEnvironment.DesktopEnvironment;
   const fileSystem = yield* FileSystem.FileSystem;
```

## apps/desktop/src/app/DesktopLifecycle.ts

Status: modified; +1; −0

```diff
@@ -159,6 +159,7 @@
   );
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = DesktopLifecycle.of({
   relaunch: Effect.fn("desktop.lifecycle.relaunch")(function* (reason) {
     const electronApp = yield* ElectronApp.ElectronApp;
```

## apps/desktop/src/app/DesktopLinuxUrlHandler.ts

Status: modified; +2; −1

```diff
@@ -20,7 +20,7 @@
 // our own handler entry pointing at the current AppImage and claim the
 // scheme default via xdg-mime, exactly what the file manager's "set as
 // default" checkbox would record in mimeapps.list.
-export const URL_HANDLER_DESKTOP_ENTRY_NAME = "t3code-url-handler.desktop";
+const URL_HANDLER_DESKTOP_ENTRY_NAME = "t3code-url-handler.desktop";
 
 const { logInfo, logWarning } = makeComponentLogger("desktop-linux-url-handler");
 
@@ -92,6 +92,7 @@
   }
 >()("@t3tools/desktop/app/DesktopLinuxUrlHandler") {}
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const environment = yield* DesktopEnvironment.DesktopEnvironment;
   const fileSystem = yield* FileSystem.FileSystem;
```

## apps/desktop/src/app/DesktopPreReadyPlatform.ts

Status: modified; +1; −0

```diff
@@ -46,6 +46,7 @@
   }
 >()("@t3tools/desktop/app/DesktopPreReadyPlatform/DesktopPreReadyElectronOptions") {}
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const platform = yield* HostProcessPlatform;
   return yield* Effect.sync((): DesktopPreReadyElectronOptions["Service"] => {
```

## apps/desktop/src/shell/DesktopShellEnvironment.ts

Status: modified; +1; −0

```diff
@@ -533,6 +533,7 @@
   return Effect.void;
 };
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const environment = yield* DesktopEnvironment.DesktopEnvironment;
   const fileSystem = yield* FileSystem.FileSystem;
```

## apps/desktop/src/ssh/DesktopSshEnvironment.ts

Status: modified; +1; −0

```diff
@@ -128,6 +128,7 @@
     prompts.request(request).pipe(Effect.mapError(toSshPasswordPromptError)),
 });
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const manager = yield* SshTunnel.SshEnvironmentManager;
   const prompts = yield* DesktopSshPasswordPrompts.DesktopSshPasswordPrompts;
```

## apps/desktop/src/ssh/DesktopSshPasswordPrompts.ts

Status: modified; +1; −0

```diff
@@ -222,6 +222,7 @@
   error: DesktopSshPasswordPromptRequestError,
 ) => Deferred.fail(pending.deferred, error).pipe(Effect.asVoid);
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.fn("desktop.sshPasswordPrompts.make")(function* (
   options: DesktopSshPasswordPromptsOptions = {},
 ) {
```

## apps/desktop/src/updates/DesktopUpdates.ts

Status: modified; +1; −0

```diff
@@ -271,6 +271,7 @@
   return runtimeInfo.hostArch === "arm64" && runtimeInfo.appArch === "x64";
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const config = yield* DesktopConfig.DesktopConfig;
   const pool = yield* DesktopBackendPool.DesktopBackendPool;
```

## apps/desktop/src/updates/remoteUpdateFlow.ts

Status: modified; +1; −1

```diff
@@ -31,7 +31,7 @@
 export const MAX_REMOTE_UPDATE_DOWNLOADS = 3;
 
 /** Same predicate DesktopUpdates.installDownloadedUpdate uses for admission. */
-export function isInstallableDesktopUpdateState(state: DesktopUpdateState): boolean {
+function isInstallableDesktopUpdateState(state: DesktopUpdateState): boolean {
   return (
     state.downloadedVersion !== null &&
     (state.status === "downloaded" ||
```

## apps/desktop/src/updates/updateMachine.ts

Status: modified; +2; −2

```diff
@@ -5,13 +5,13 @@
   DesktopUpdateState,
 } from "@t3tools/contracts";
 
-export function nextStatusAfterDownloadFailure(
+function nextStatusAfterDownloadFailure(
   currentState: DesktopUpdateState,
 ): DesktopUpdateState["status"] {
   return currentState.availableVersion ? "available" : "error";
 }
 
-export function getCanRetryAfterDownloadFailure(currentState: DesktopUpdateState): boolean {
+function getCanRetryAfterDownloadFailure(currentState: DesktopUpdateState): boolean {
   return currentState.availableVersion !== null;
 }
 
```

## apps/desktop/src/window/DesktopApplicationMenu.ts

Status: modified; +1; −0

```diff
@@ -103,6 +103,7 @@
   yield* checkForUpdatesFromMenu;
 }).pipe(Effect.withSpan("desktop.menu.handleCheckForUpdatesClick"));
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const electronApp = yield* ElectronApp.ElectronApp;
   const electronMenu = yield* ElectronMenu.ElectronMenu;
```

## apps/desktop/src/window/DesktopWindow.ts

Status: modified; +1; −0

```diff
@@ -278,6 +278,7 @@
   }
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const environment = yield* DesktopEnvironment.DesktopEnvironment;
   const assets = yield* DesktopAssets.DesktopAssets;
```
