| 12 | const DEFAULT_OAUTH_REFRESH_TOKEN_TTL_SECONDS = 30 * 24 * 60 * 60; |
| 13 | |
| 14 | export interface ServerConfig { |
| 15 | host: string; |
| 16 | port: number; |
| 17 | oauth: OAuthConfig; |
| 18 | allowedRoots: string[]; |
| 19 | allowedHosts: string[]; |
| 20 | publicBaseUrl: string; |
| 21 | toolMode: ToolMode; |
| 22 | toolNaming: ToolNamingMode; |
| 23 | widgets: WidgetMode; |
| 24 | stateDir: string; |
| 25 | worktreeRoot: string; |
| 26 | skillsEnabled: boolean; |
| 27 | skillPaths: string[]; |
| 28 | agentDir: string; |
| 29 | logging: LoggingConfig; |
| 30 | } |
| 31 | |
| 32 | function parsePort(value: string | number | undefined): number { |
| 33 | if (value === undefined || value === "") return 7676; |
nothing calls this directly
no outgoing calls
no test coverage detected