@devries-cameron20 / t3code-1 / commits / 1d58f2ecc4
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

refactor(tailscale): keep package internals private (#10011)

Julius Marminge committed Sep 5, 2026 at 00:42 UTC 1d58f2ecc4b2f6cea9897dcf46734af6210d053e
1 file changed +4 -5
packages/tailscale/src/tailscale.ts
+4 -5
@@ -9,8 +9,8 @@ import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
9
10 export const DEFAULT_TAILSCALE_SERVE_PORT = 443;
11 export const TAILSCALE_STATUS_TIMEOUT = Duration.millis(1_500);
12 -export const TAILSCALE_SERVE_TIMEOUT = Duration.seconds(10);
13 -export const TAILSCALE_PROBE_TIMEOUT = Duration.millis(2_500);
12 +const TAILSCALE_SERVE_TIMEOUT = Duration.seconds(10);
13 +const TAILSCALE_PROBE_TIMEOUT = Duration.millis(2_500);
14
15 // tailscale is a real executable everywhere (`tailscale.exe` on Windows), so
16 // it is always spawned directly rather than through cmd.exe shell mode.
@@ -47,7 +47,7 @@ const STDERR_DIAGNOSTIC_PATTERNS: ReadonlyArray<
47 ];
48
49 /** Classifies stderr into a safe label, dropping the text itself. */
50 -export const stderrDiagnosticOf = (stderr: string): TailscaleStderrDiagnostic | undefined => {
50 +const stderrDiagnosticOf = (stderr: string): TailscaleStderrDiagnostic | undefined => {
51 if (stderr.trim().length === 0) {
52 return undefined;
53 }
@@ -66,7 +66,7 @@ export class TailscaleCommandSpawnError extends Schema.TaggedErrorClass<Tailscal
66 }
67 }
68
69 -export class TailscaleCommandOutputError extends Schema.TaggedErrorClass<TailscaleCommandOutputError>()(
69 +class TailscaleCommandOutputError extends Schema.TaggedErrorClass<TailscaleCommandOutputError>()(
70 "TailscaleCommandOutputError",
71 {
72 ...TailscaleCommandContext,
@@ -137,7 +137,6 @@ const TailscaleStatusJson = Schema.Struct({
137 Self: Schema.optional(TailscaleStatusSelf),
138 });
139
140 -export type TailscaleStatusSelf = typeof TailscaleStatusSelf.Type;
140 export type TailscaleStatusJson = typeof TailscaleStatusJson.Type;
141
142 export interface TailscaleStatus {