Skip to content

Commit 161715b

Browse files
refactor(server): classify service exports (pingdotgg#10276)
1 parent 0af04f1 commit 161715b

20 files changed

Lines changed: 21 additions & 7 deletions

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ const resolveNativeAppIconUncached = Effect.fn("NativeAppIconResolver.resolveUnc
206206
return yield* existingFile(cachePath);
207207
});
208208

209+
/** @public Service construction is part of the canonical Effect module API. */
209210
export const make = Effect.gen(function* () {
210211
const fileSystem = yield* FileSystem.FileSystem;
211212
const hostPlatform = yield* HostProcessPlatform;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const DESKTOP_INSTALL_TIMEOUT = Duration.minutes(2);
2525

2626
/** Progress stage a desktop update state maps to, or null when the state
2727
carries no progress worth streaming. */
28-
export function desktopUpdateProgressStage(
28+
function desktopUpdateProgressStage(
2929
state: DesktopUpdateState,
3030
): ServerSelfUpdateProgressStage | null {
3131
switch (state.status) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function nonRepositoryListRefs(): VcsListRefsResult {
142142
};
143143
}
144144

145+
/** @public Service construction is part of the canonical Effect module API. */
145146
export const make = Effect.gen(function* () {
146147
const registry = yield* VcsDriverRegistry.VcsDriverRegistry;
147148
const git = yield* GitVcsDriver.GitVcsDriver;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class BrowserTraceCollector extends Context.Service<
1010
}
1111
>()("t3/observability/BrowserTraceCollector") {}
1212

13+
/** @public Service construction is part of the canonical Effect module API. */
1314
export const make = (sink: TraceSink): BrowserTraceCollector["Service"] =>
1415
BrowserTraceCollector.of({
1516
record: (records) =>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ const buildIdleSnapshot = (input: {
153153
updatedAt: input.updatedAt,
154154
});
155155

156+
/** @public Service construction is part of the canonical Effect module API. */
156157
export const make = Effect.gen(function* PreviewManagerMake() {
157158
const serverEpoch = NodeCrypto.randomUUID();
158159
const stateRef = yield* SynchronizedRef.make<ManagerState>(initialState);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ const serversEqual = (
289289
return true;
290290
};
291291

292+
/** @public Service construction is part of the canonical Effect module API. */
292293
export const make = Effect.gen(function* PortDiscoveryMake() {
293294
const net = yield* Net.NetService;
294295
const processRunner = yield* ProcessRunner.ProcessRunner;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ function sameTranscriptIdentity(
615615
);
616616
}
617617

618+
/** @public Service construction is part of the canonical Effect module API. */
618619
export const make = Effect.gen(function* () {
619620
const fileSystem = yield* FileSystem.FileSystem;
620621
// Different project imports can arrive concurrently from multiple clients.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class ProjectSetupScriptRunner extends Context.Service<
8383
}
8484
>()("t3/project/ProjectSetupScriptRunner") {}
8585

86+
/** @public Service construction is part of the canonical Effect module API. */
8687
export const make = Effect.gen(function* () {
8788
const projectionSnapshotQuery = yield* ProjectionSnapshotQuery.ProjectionSnapshotQuery;
8889
const terminalManager = yield* TerminalManager.TerminalManager;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const logT3ProjectFileLoadError = (error: T3ProjectFileLoadError) =>
5959
}),
6060
);
6161

62+
/** @public Service construction is part of the canonical Effect module API. */
6263
export const make = Effect.gen(function* () {
6364
const fileSystem = yield* FileSystem.FileSystem;
6465
const path = yield* Path.Path;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const makePublishProof = Effect.fn("makePublishProof")(function* (input: {
211211
});
212212

213213
// Compact, log-safe view of the fields the awareness phase ladder reads.
214-
export function describeThreadShellForAwareness(
214+
function describeThreadShellForAwareness(
215215
thread: Option.Option<OrchestrationThreadShell>,
216216
): Record<string, unknown> {
217217
if (Option.isNone(thread)) {
@@ -290,6 +290,7 @@ export function resolveAgentAwarenessRelayActiveThreadIds(input: {
290290
.map((thread) => thread.id);
291291
}
292292

293+
/** @public Service construction is part of the canonical Effect module API. */
293294
export const make = Effect.gen(function* () {
294295
const secrets = yield* ServerSecretStore.ServerSecretStore;
295296
const serverEnvironment = yield* ServerEnvironment.ServerEnvironment;

0 commit comments

Comments
 (0)