Skip to content

Commit 5180f83

Browse files
test(server): un-export helpers only the pruned tests imported
knip --exports flags these once their sole test importers are gone; each is still used inside its own module, so only the export keyword goes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 389d622 commit 5180f83

7 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎apps/server/src/auth/SessionStore.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function toAuthClientSession(input: Omit<AuthClientSession, "current">): AuthCli
482482
};
483483
}
484484

485-
export const make = Effect.gen(function* () {
485+
const make = Effect.gen(function* () {
486486
const crypto = yield* Crypto.Crypto;
487487
const serverConfig = yield* ServerConfig.ServerConfig;
488488
const serverEnvironment = yield* ServerEnvironment.ServerEnvironmentIdentity;

‎apps/server/src/cli/connect.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ const unlinkRelayEnvironment = Effect.fn("cloud.cli.unlink_relay_environment")(f
441441
* A missing CLI login or a failed relay DELETE leaves that record registered, so
442442
* those outcomes warn to deregister it from the T3 Connect account page.
443443
*/
444-
export const reportCloudDisconnectResults = Effect.fn("cloud.cli.report_disconnect_results")(
444+
const reportCloudDisconnectResults = Effect.fn("cloud.cli.report_disconnect_results")(
445445
function* (input: {
446446
readonly clearAuthorization: boolean;
447447
readonly liveResult: LiveCloudActionResult;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export const ProjectCommandError = Schema.Union([
169169
]);
170170
export type ProjectCommandError = typeof ProjectCommandError.Type;
171171

172-
export function projectCommandErrorFromLiveServerRequest(cause: unknown): ProjectCommandError {
172+
function projectCommandErrorFromLiveServerRequest(cause: unknown): ProjectCommandError {
173173
if (isEnvironmentHttpCommonError(cause)) {
174174
return new ProjectLiveServerDeclaredResponseError({
175175
operation: "callLiveServer",

‎apps/server/src/http.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function isLoopbackHostname(hostname: string): boolean {
283283
return LOOPBACK_HOSTNAMES.has(normalizedHostname);
284284
}
285285

286-
export function resolveDevRedirectUrl(devUrl: URL, requestUrl: URL): string {
286+
function resolveDevRedirectUrl(devUrl: URL, requestUrl: URL): string {
287287
const redirectUrl = new URL(devUrl.toString());
288288
redirectUrl.pathname = requestUrl.pathname;
289289
redirectUrl.search = requestUrl.search;

‎apps/server/src/mcp/toolkits/preview/handlers.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ import { PreviewSnapshotToolkit, PreviewStandardToolkit, PreviewToolkit } from "
3838
* preference, which is desktop-local and unreadable from here — filling in
3939
* `true` would silently override it for every `preview_open`.
4040
*/
41-
export function normalizePreviewOpenInput(
42-
input: PreviewAutomationOpenInput,
43-
): PreviewAutomationOpenInput {
41+
function normalizePreviewOpenInput(input: PreviewAutomationOpenInput): PreviewAutomationOpenInput {
4442
const open = input.open ?? input.show;
4543
return {
4644
...input,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function addUniqueDiagnosticValue(values: Array<string>, value: string | undefin
8686
}
8787
}
8888

89-
export function remoteRefreshFailureDiagnostics(cause: Cause.Cause<unknown>) {
89+
function remoteRefreshFailureDiagnostics(cause: Cause.Cause<unknown>) {
9090
const failureTags: Array<string> = [];
9191
const failureOperations: Array<string> = [];
9292
const defectTags: Array<string> = [];

‎apps/server/src/workspace/WorkspacePaths.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function toPosixRelativePath(input: string): string {
107107
return input.replaceAll("\\", "/");
108108
}
109109

110-
export const make = Effect.gen(function* () {
110+
const make = Effect.gen(function* () {
111111
const fileSystem = yield* FileSystem.FileSystem;
112112
const path = yield* Path.Path;
113113

0 commit comments

Comments
 (0)