export * as WorkerdProfile from "./workerd" import type { Config } from "@opencode/schema/config" import { ServerWorkerd } from "@opencode/server/workerd" export type Configuration = Omit export interface Options extends Omit { readonly config?: Configuration } export function make({ config, ...options }: Options) { const server = { ...options, config: config === undefined ? undefined : { content: JSON.stringify(config) }, } return { options: ServerWorkerd.serverOptions(server), replacements: ServerWorkerd.replacements(server), } }