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

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

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

Visibility: public

[refactor\(server\): classify service exports](https://git.cafe/pingdotgg/t3code/pull/10276.md)

Version: 3

Head commit: 4f890a2689834d586693264eb984b6392359c77d

Base commit: 1c4dfeec34410f080a13c3201fd45494fea2350b

Comparison base: 1c4dfeec34410f080a13c3201fd45494fea2350b

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

## apps/server/src/assets/NativeAppIconResolver.ts

Status: modified; +1; −0

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

## apps/server/src/desktopUpdate/DesktopAppUpdate.ts

Status: modified; +1; −1

```diff
@@ -25,7 +25,7 @@
 
 /** Progress stage a desktop update state maps to, or null when the state
     carries no progress worth streaming. */
-export function desktopUpdateProgressStage(
+function desktopUpdateProgressStage(
   state: DesktopUpdateState,
 ): ServerSelfUpdateProgressStage | null {
   switch (state.status) {
```

## apps/server/src/git/GitWorkflowService.ts

Status: modified; +1; −0

```diff
@@ -142,6 +142,7 @@
   };
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const registry = yield* VcsDriverRegistry.VcsDriverRegistry;
   const git = yield* GitVcsDriver.GitVcsDriver;
```

## apps/server/src/observability/BrowserTraceCollector.ts

Status: modified; +1; −0

```diff
@@ -10,6 +10,7 @@
   }
 >()("t3/observability/BrowserTraceCollector") {}
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = (sink: TraceSink): BrowserTraceCollector["Service"] =>
   BrowserTraceCollector.of({
     record: (records) =>
```

## apps/server/src/preview/Manager.ts

Status: modified; +1; −0

```diff
@@ -153,6 +153,7 @@
   updatedAt: input.updatedAt,
 });
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* PreviewManagerMake() {
   const serverEpoch = NodeCrypto.randomUUID();
   const stateRef = yield* SynchronizedRef.make<ManagerState>(initialState);
```

## apps/server/src/preview/PortScanner.ts

Status: modified; +1; −0

```diff
@@ -289,6 +289,7 @@
   return true;
 };
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* PortDiscoveryMake() {
   const net = yield* Net.NetService;
   const processRunner = yield* ProcessRunner.ProcessRunner;
```

## apps/server/src/project/AgentSessionScanner.ts

Status: modified; +1; −0

```diff
@@ -615,6 +615,7 @@
   );
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const fileSystem = yield* FileSystem.FileSystem;
   // Different project imports can arrive concurrently from multiple clients.
```

## apps/server/src/project/ProjectSetupScriptRunner.ts

Status: modified; +1; −0

```diff
@@ -83,6 +83,7 @@
   }
 >()("t3/project/ProjectSetupScriptRunner") {}
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const projectionSnapshotQuery = yield* ProjectionSnapshotQuery.ProjectionSnapshotQuery;
   const terminalManager = yield* TerminalManager.TerminalManager;
```

## apps/server/src/project/T3ProjectFileLoader.ts

Status: modified; +1; −0

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

## apps/server/src/relay/AgentAwarenessRelay.ts

Status: modified; +2; −1

```diff
@@ -211,7 +211,7 @@
 });
 
 // Compact, log-safe view of the fields the awareness phase ladder reads.
-export function describeThreadShellForAwareness(
+function describeThreadShellForAwareness(
   thread: Option.Option<OrchestrationThreadShell>,
 ): Record<string, unknown> {
   if (Option.isNone(thread)) {
@@ -290,6 +290,7 @@
     .map((thread) => thread.id);
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const secrets = yield* ServerSecretStore.ServerSecretStore;
   const serverEnvironment = yield* ServerEnvironment.ServerEnvironment;
```

## apps/server/src/review/ReviewService.ts

Status: modified; +1; −0

```diff
@@ -31,6 +31,7 @@
   }
 >()("t3/review/ReviewService") {}
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const config = yield* ServerConfig.ServerConfig;
   const fileSystem = yield* FileSystem.FileSystem;
```

## apps/server/src/terminal/Manager.ts

Status: modified; +1; −0

```diff
@@ -1385,6 +1385,7 @@
   );
 });
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.fn("TerminalManager.make")(function* () {
   const { terminalLogsDir } = yield* ServerConfig.ServerConfig;
   const ptyAdapter = yield* PtyAdapter.PtyAdapter;
```

## apps/server/src/textGeneration/TextGeneration.ts

Status: modified; +1; −0

```diff
@@ -153,6 +153,7 @@
       ),
   });
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const registry = yield* ProviderInstanceRegistry.ProviderInstanceRegistry;
   return makeTextGenerationFromRegistry(registry);
```

## apps/server/src/textGeneration/TextGenerationPresets.ts

Status: modified; +0; −5

```diff
@@ -1,10 +1,5 @@
 import type { TextGenerationPolicy } from "./TextGenerationPolicy.ts";
 
-export const defaultTextGenerationPolicy: TextGenerationPolicy = {
-  kind: "default",
-  inferRepositoryConventions: false,
-};
-
 export const conventionalCommitsTextGenerationPolicy: TextGenerationPolicy = {
   kind: "conventional_commits",
   commitInstructions:
```

## apps/server/src/vcs/VcsProjectConfig.ts

Status: modified; +1; −0

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

## apps/server/src/vcs/VcsProvisioningService.ts

Status: modified; +1; −0

```diff
@@ -35,6 +35,7 @@
   return Effect.succeed(kind);
 }
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const registry = yield* VcsDriverRegistry.VcsDriverRegistry;
 
```

## apps/server/src/vcs/VcsStatusBroadcaster.ts

Status: modified; +1; −0

```diff
@@ -217,6 +217,7 @@
     Effect.orElseSucceed(() => cwd),
   );
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const autoPullPolicy = yield* VcsAutoPullPolicy;
   const workflow = yield* GitWorkflowService.GitWorkflowService;
```

## apps/server/src/workspace/WorkspaceEntries.ts

Status: modified; +1; −0

```diff
@@ -128,6 +128,7 @@
   return path.resolve(expandHomePathWith(input.cwd, path), input.partialPath);
 });
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const path = yield* Path.Path;
   const workspacePaths = yield* WorkspacePaths.WorkspacePaths;
```

## apps/server/src/workspace/WorkspaceFileSystem.ts

Status: modified; +1; −0

```diff
@@ -132,6 +132,7 @@
   }
 >()("t3/workspace/WorkspaceFileSystem") {}
 
+/** @public Service construction is part of the canonical Effect module API. */
 export const make = Effect.gen(function* () {
   const fileSystem = yield* FileSystem.FileSystem;
   const path = yield* Path.Path;
```

## apps/server/src/workspace/WorkspaceSearchIndex.ts

Status: modified; +2; −0

```diff
@@ -551,6 +551,8 @@
  * workspace root and variant. WorkspaceSearchIndexMap owns memoization and
  * idle cleanup; using a default cwd here would mix resources from different
  * workspaces.
+ *
+ * @public Service construction is part of the canonical Effect module API.
  */
 export const layer = (key: string) => {
   const { cwd, variant } = parseWorkspaceSearchIndexKey(key);
```
