瀏覽代碼

Add disabled config schema descriptions

Berserk Agent 1 月之前
父節點
當前提交
cb825e4cd9
共有 2 個文件被更改,包括 14 次插入2 次删除
  1. 2 0
      oh-my-opencode-slim.schema.json
  2. 12 2
      src/config/schema.ts

+ 2 - 0
oh-my-opencode-slim.schema.json

@@ -198,12 +198,14 @@
       }
     },
     "disabled_tools": {
+      "description": "Tool names to disable completely. Disabled tools are not registered with OpenCode and cannot be used by agents.",
       "type": "array",
       "items": {
         "type": "string"
       }
     },
     "disabled_skills": {
+      "description": "Skill names to disable completely. Disabled skills are not granted to agents, even when referenced by presets or agent overrides.",
       "type": "array",
       "items": {
         "type": "string"

+ 12 - 2
src/config/schema.ts

@@ -311,8 +311,18 @@ export const PluginConfigSchema = z
           "By default, 'observer' is disabled. Remove it from this list and configure a vision-capable model to enable.",
       ),
     disabled_mcps: z.array(z.string()).optional(),
-    disabled_tools: z.array(z.string()).optional(),
-    disabled_skills: z.array(z.string()).optional(),
+    disabled_tools: z
+      .array(z.string())
+      .optional()
+      .describe(
+        'Tool names to disable completely. Disabled tools are not registered with OpenCode and cannot be used by agents.',
+      ),
+    disabled_skills: z
+      .array(z.string())
+      .optional()
+      .describe(
+        'Skill names to disable completely. Disabled skills are not granted to agents, even when referenced by presets or agent overrides.',
+      ),
     // Multiplexer config (new unified config - preferred)
     multiplexer: MultiplexerConfigSchema.optional(),
     // Legacy tmux config (for backward compatibility)