Explorar o código

fix: include schema in converted toml config

adamdottv hai 1 ano
pai
achega
c57b52c300
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/opencode/src/config/config.ts

+ 1 - 0
packages/opencode/src/config/config.ts

@@ -150,6 +150,7 @@ export namespace Config {
       .then(async (mod) => {
         const { provider, model, ...rest } = mod.default
         if (provider && model) result.model = `${provider}/${model}`
+        result["$schema"] = "https://opencode.ai/config.json"
         result = mergeDeep(result, rest)
         await Bun.write(
           path.join(Global.Path.config, "config.json"),