| ... | ... | @@ -9,8 +9,8 @@ import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"; |
| 9 | 9 | |
| 10 | 10 | export const DEFAULT_TAILSCALE_SERVE_PORT = 443; |
| 11 | 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 | 14 | |
| 15 | 15 | // tailscale is a real executable everywhere (`tailscale.exe` on Windows), so |
| 16 | 16 | // it is always spawned directly rather than through cmd.exe shell mode. |
| ... | ... | @@ -47,7 +47,7 @@ const STDERR_DIAGNOSTIC_PATTERNS: ReadonlyArray< |
| 47 | 47 | ]; |
| 48 | 48 | |
| 49 | 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 | 51 | if (stderr.trim().length === 0) { |
| 52 | 52 | return undefined; |
| 53 | 53 | } |
| ... | ... | @@ -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 | 70 | "TailscaleCommandOutputError", |
| 71 | 71 | { |
| 72 | 72 | ...TailscaleCommandContext, |
| ... | ... | @@ -137,7 +137,6 @@ const TailscaleStatusJson = Schema.Struct({ |
| 137 | 137 | Self: Schema.optional(TailscaleStatusSelf), |
| 138 | 138 | }); |
| 139 | 139 | |
| 140 | | export type TailscaleStatusSelf = typeof TailscaleStatusSelf.Type; |
| 141 | 140 | export type TailscaleStatusJson = typeof TailscaleStatusJson.Type; |
| 142 | 141 | |
| 143 | 142 | export interface TailscaleStatus { |