mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 18:55:37 -04:00
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { Database } from "@opencode-ai/core/database/database"
|
|
import { ModelsDev } from "@opencode-ai/core/models-dev"
|
|
import { Observability } from "@opencode-ai/core/observability"
|
|
import { Schema } from "effect"
|
|
|
|
export const ServerOptions = Schema.Struct({
|
|
client: Schema.optional(Schema.String),
|
|
hostname: Schema.optional(Schema.String),
|
|
port: Schema.optional(
|
|
Schema.Int.check(Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(65_535)),
|
|
),
|
|
password: Schema.optional(Schema.String),
|
|
simulation: Schema.optional(Schema.Boolean),
|
|
database: Schema.optional(Database.Options),
|
|
models: Schema.optional(ModelsDev.Options),
|
|
observability: Schema.optional(Observability.Options),
|
|
config: Schema.optional(
|
|
Schema.Struct({
|
|
directory: Schema.optional(Schema.String),
|
|
project: Schema.optional(Schema.Boolean),
|
|
file: Schema.optional(Schema.String),
|
|
content: Schema.optional(Schema.String),
|
|
}),
|
|
),
|
|
windows: Schema.optional(
|
|
Schema.Struct({
|
|
gitbash: Schema.optional(Schema.String),
|
|
}),
|
|
),
|
|
fs: Schema.optional(
|
|
Schema.Struct({
|
|
filewatcher: Schema.optional(Schema.Boolean),
|
|
fff: Schema.optional(Schema.Boolean),
|
|
}),
|
|
),
|
|
})
|
|
export type ServerOptions = typeof ServerOptions.Type
|