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