Open History to see the last commit
1import * as Schema from "effect/Schema";
2
3import { PortSchema, PositiveInt, TrimmedNonEmptyString } from "./baseSchemas.ts";
4
5export const DesktopBackendBootstrap = Schema.Struct({
6 mode: Schema.Literal("desktop"),
7 noBrowser: Schema.Boolean,
8 port: PortSchema,
9 // Omitted when the desktop launches the backend inside WSL, since the
10 // Windows-side baseDir maps to /mnt/c/... and the Linux side should use its
11 // own home directory instead.
12 t3Home: Schema.optional(Schema.String),
13 host: Schema.String,
14 desktopBootstrapToken: Schema.String,
15 tailscaleServeEnabled: Schema.Boolean,
16 tailscaleServePort: PortSchema,
17 otlpTracesUrl: Schema.optional(Schema.String),
18 otlpMetricsUrl: Schema.optional(Schema.String),
19 desktopTelemetryFd: Schema.optionalKey(PositiveInt),
20 desktopTelemetryControlFd: Schema.optionalKey(PositiveInt),
21 resourceMonitorPath: Schema.optionalKey(TrimmedNonEmptyString),
22});
23
24export type DesktopBackendBootstrap = typeof DesktopBackendBootstrap.Type;