Showing the changes to packages (2 of 12 files). Show all
Unified · Split
| @@ -21,8 +21,8 @@ export const ExecutionEnvironmentPlatform = Schema.Struct({ · 20 unmodified lines | ||
| 21 | 21 | export type ExecutionEnvironmentPlatform = typeof ExecutionEnvironmentPlatform.Type; |
| 22 | 22 | |
| 23 | 23 | /** How a server can replace itself with another version when asked over RPC: |
| 24 | − "boot-service" rewrites the systemd user unit and restarts it; "respawn" | |
| 25 | − installs the target version and respawns the foreground process. */ | |
| 24 | + "boot-service" hands off through its systemd unit or macOS LaunchAgent; | |
| 25 | + "respawn" installs the target version and replaces the foreground process. */ | |
| 26 | 26 | export const ServerSelfUpdateMethod = Schema.Literals(["boot-service", "respawn"]); |
| 27 | 27 | export type ServerSelfUpdateMethod = typeof ServerSelfUpdateMethod.Type; |
| 28 | 28 | |
| @@ -51,4 +51,11 @@ export const HostProcessArguments = Context.Reference<ReadonlyArray<string>>( · 50 unmodified lines | ||
| 51 | 51 | }, |
| 52 | 52 | ); |
| 53 | 53 | |
| 54 | +export const HostProcessUserId = Context.Reference<number | null>( | |
| 55 | + "@t3tools/shared/hostProcess/HostProcessUserId", | |
| 56 | + { | |
| 57 | + defaultValue: () => (typeof process.getuid === "function" ? process.getuid() : null), | |
| 58 | + }, | |
| 59 | +); | |
| 60 | + | |
| 54 | 61 | export const isHostWindows = Effect.map(HostProcessPlatform, (platform) => platform === "win32"); |