Browse Source

fix(tooling): avoid local biome schema mismatch noise

Alvin Unreal 3 months ago
parent
commit
87960438cd
3 changed files with 13 additions and 6 deletions
  1. 0 1
      biome.json
  2. 12 3
      oh-my-opencode-slim.schema.json
  3. 1 2
      src/config/council-schema.ts

+ 0 - 1
biome.json

@@ -1,5 +1,4 @@
 {
-  "$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
   "assist": { "actions": { "source": { "organizeImports": "on" } } },
   "files": {
     "includes": ["**", "!oh-my-opencode-slim.schema.json"]

+ 12 - 3
oh-my-opencode-slim.schema.json

@@ -600,8 +600,7 @@
         "timeout": {
           "default": 180000,
           "type": "number",
-          "minimum": 0,
-          "description": "Councillor timeout (ms)"
+          "minimum": 0
         },
         "default_preset": {
           "default": "default",
@@ -621,7 +620,17 @@
           "description": "Number of retry attempts for councillors that return empty responses (e.g. due to provider rate limiting). Default: 3 retries.",
           "type": "integer",
           "minimum": 0,
-        "maximum": 5
+          "maximum": 5
+        },
+        "master": {
+          "description": "DEPRECATED — ignored. Council agent synthesizes directly."
+        },
+        "master_timeout": {
+          "description": "DEPRECATED — ignored. Use \"timeout\" instead."
+        },
+        "master_fallback": {
+          "description": "DEPRECATED — ignored. No separate master session."
+        }
       },
       "required": [
         "presets"

+ 1 - 2
src/config/council-schema.ts

@@ -59,8 +59,7 @@ export const CouncilPresetSchema = z
         for (const [innerKey, innerRaw] of Object.entries(
           raw as Record<string, unknown>,
         )) {
-          const innerParsed =
-            CouncillorConfigSchema.safeParse(innerRaw);
+          const innerParsed = CouncillorConfigSchema.safeParse(innerRaw);
           if (!innerParsed.success) {
             ctx.addIssue({
               code: z.ZodIssueCode.custom,