mirror of
https://gitee.com/zhangsken/opencode.git
synced 2026-10-16 10:30:01 +08:00
chore: generate
This commit is contained in:
+5
-5
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"permission": { "bash": "deny", "*": "ask", "edit": "deny" },
|
||||
"agent": {
|
||||
"reviewer": { "prompt": "Legacy prompt", "permission": { "bash": "deny", "edit": "deny" } }
|
||||
"reviewer": { "prompt": "Legacy prompt", "permission": { "bash": "deny", "edit": "deny" } },
|
||||
},
|
||||
"agents": {
|
||||
"reviewer": {
|
||||
"system": "Native prompt"
|
||||
"system": "Native prompt",
|
||||
},
|
||||
"native": {}
|
||||
"native": {},
|
||||
},
|
||||
"command": { "review": { "template": "Legacy review" } },
|
||||
"commands": {
|
||||
"review": { "template": "Native review" },
|
||||
"modern": { "template": "Native command" }
|
||||
}
|
||||
"modern": { "template": "Native command" },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"hidden": true,
|
||||
"color": "#123abc",
|
||||
"steps": 4,
|
||||
"disabled": true
|
||||
"disabled": true,
|
||||
},
|
||||
"quick": { "model": "openai/gpt-4.1#fast", "disabled": false }
|
||||
}
|
||||
"quick": { "model": "openai/gpt-4.1#fast", "disabled": false },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"description": "Review code",
|
||||
"agent": "reviewer",
|
||||
"model": { "providerID": "anthropic", "model": "claude-sonnet", "variant": "thinking" },
|
||||
"subtask": true
|
||||
"subtask": true,
|
||||
},
|
||||
"quick": { "template": "Quick review", "model": "openai/gpt-4.1#fast" }
|
||||
}
|
||||
"quick": { "template": "Quick review", "model": "openai/gpt-4.1#fast" },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
"policies": [{ "action": "provider.use", "effect": "deny", "resource": "openai" }],
|
||||
"websearch": "native-only",
|
||||
"warming": true,
|
||||
"experimental": { "portable_shell_scanner": true }
|
||||
"experimental": { "portable_shell_scanner": true },
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
"typescript": { "command": ["typescript-language-server", "--stdio"] },
|
||||
"compatible": { "command": ["custom-lsp"], "extensions": [".custom"] },
|
||||
"incompatible": { "command": ["incompatible-lsp"] },
|
||||
"disabled": { "disabled": true }
|
||||
}
|
||||
"disabled": { "disabled": true },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,18 +1,11 @@
|
||||
{
|
||||
"lsp": {
|
||||
"typescript": {
|
||||
"command": [
|
||||
"typescript-language-server",
|
||||
"--stdio"
|
||||
]
|
||||
"command": ["typescript-language-server", "--stdio"]
|
||||
},
|
||||
"compatible": {
|
||||
"command": [
|
||||
"custom-lsp"
|
||||
],
|
||||
"extensions": [
|
||||
".custom"
|
||||
]
|
||||
"command": ["custom-lsp"],
|
||||
"extensions": [".custom"]
|
||||
},
|
||||
"disabled": {
|
||||
"disabled": true
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"type": { "type": "local", "command": ["type-mcp"] },
|
||||
"enabled": { "type": "remote", "url": "https://example.com/mcp" },
|
||||
"explicit-enabled": { "type": "local", "command": ["enabled-mcp"], "disabled": false },
|
||||
"explicit-disabled": { "type": "local", "command": ["disabled-mcp"], "disabled": true }
|
||||
}
|
||||
}
|
||||
"explicit-disabled": { "type": "local", "command": ["disabled-mcp"], "disabled": true },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -8,30 +8,22 @@
|
||||
},
|
||||
"existing": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"existing-mcp"
|
||||
],
|
||||
"command": ["existing-mcp"],
|
||||
"enabled": true
|
||||
},
|
||||
"flat-disabled": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"legacy"
|
||||
],
|
||||
"command": ["legacy"],
|
||||
"enabled": false
|
||||
},
|
||||
"flat-enabled": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"legacy"
|
||||
],
|
||||
"command": ["legacy"],
|
||||
"enabled": true
|
||||
},
|
||||
"type": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"type-mcp"
|
||||
],
|
||||
"command": ["type-mcp"],
|
||||
"enabled": true
|
||||
},
|
||||
"enabled": {
|
||||
@@ -41,16 +33,12 @@
|
||||
},
|
||||
"explicit-enabled": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"enabled-mcp"
|
||||
],
|
||||
"command": ["enabled-mcp"],
|
||||
"enabled": true
|
||||
},
|
||||
"explicit-disabled": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"disabled-mcp"
|
||||
],
|
||||
"command": ["disabled-mcp"],
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
"mcp": {
|
||||
"legacy": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"legacy-mcp"
|
||||
],
|
||||
"command": ["legacy-mcp"],
|
||||
"enabled": false
|
||||
},
|
||||
"shared": {
|
||||
@@ -13,9 +11,7 @@
|
||||
},
|
||||
"native": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"native-mcp"
|
||||
],
|
||||
"command": ["native-mcp"],
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
"client_secret": "secret",
|
||||
"scope": "read write",
|
||||
"callback_port": 19877,
|
||||
"redirect_uri": "http://127.0.0.1:19877/callback"
|
||||
}
|
||||
"redirect_uri": "http://127.0.0.1:19877/callback",
|
||||
},
|
||||
},
|
||||
"anonymous": { "type": "remote", "url": "https://anonymous.example.com/mcp", "oauth": false }
|
||||
}
|
||||
}
|
||||
"anonymous": { "type": "remote", "url": "https://anonymous.example.com/mcp", "oauth": false },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"mcp": { "timeout": { "startup": 1000, "catalog": 2000 } }
|
||||
"mcp": { "timeout": { "startup": 1000, "catalog": 2000 } },
|
||||
}
|
||||
|
||||
+2
-2
@@ -2,6 +2,6 @@
|
||||
// An object-valued type must not hide a flat enabled-only server.
|
||||
"mcp": {
|
||||
"servers": { "type": {}, "enabled": false },
|
||||
"timeout": { "enabled": true }
|
||||
}
|
||||
"timeout": { "enabled": true },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"mcp": {
|
||||
"servers": { "type": "local", "command": ["server-named-servers"] },
|
||||
"timeout": { "type": "remote", "url": "https://timeout.example.com/mcp" }
|
||||
}
|
||||
"timeout": { "type": "remote", "url": "https://timeout.example.com/mcp" },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
"mcp": {
|
||||
"servers": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"server-named-servers"
|
||||
]
|
||||
"command": ["server-named-servers"]
|
||||
},
|
||||
"timeout": {
|
||||
"type": "remote",
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"startup": {
|
||||
"type": "local",
|
||||
"command": ["startup-mcp"],
|
||||
"timeout": { "startup": 1000, "catalog": 3000, "execution": 3000 }
|
||||
}
|
||||
}
|
||||
}
|
||||
"timeout": { "startup": 1000, "catalog": 3000, "execution": 3000 },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -2,31 +2,23 @@
|
||||
"mcp": {
|
||||
"safe": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"safe-mcp"
|
||||
],
|
||||
"command": ["safe-mcp"],
|
||||
"enabled": true,
|
||||
"timeout": 3000
|
||||
},
|
||||
"unsafe": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"unsafe-mcp"
|
||||
],
|
||||
"command": ["unsafe-mcp"],
|
||||
"enabled": true
|
||||
},
|
||||
"partial": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"partial-mcp"
|
||||
],
|
||||
"command": ["partial-mcp"],
|
||||
"enabled": true
|
||||
},
|
||||
"startup": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"startup-mcp"
|
||||
],
|
||||
"command": ["startup-mcp"],
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"model": { "providerID": "anthropic", "model": "claude-sonnet", "variant": "fast" }
|
||||
"model": { "providerID": "anthropic", "model": "claude-sonnet", "variant": "fast" },
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"model": "anthropic/claude-sonnet",
|
||||
"permission": "deny"
|
||||
"permission": "deny",
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"model": "anthropic/claude-sonnet#fast"
|
||||
"model": "anthropic/claude-sonnet#fast",
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"snapshots": false,
|
||||
"media": {
|
||||
"image": { "auto_resize": false, "max_width": 1920, "max_height": 1080, "max_base64_bytes": 4096 }
|
||||
"image": { "auto_resize": false, "max_width": 1920, "max_height": 1080, "max_base64_bytes": 4096 },
|
||||
},
|
||||
"compaction": { "auto": false, "keep": { "tokens": 12000 }, "buffer": 2048 },
|
||||
"experimental": {
|
||||
"subagent_depth": 3,
|
||||
"policies": [{ "effect": "deny", "action": "provider.use", "resource": "openai" }],
|
||||
"batch_tool": true
|
||||
}
|
||||
"batch_tool": true,
|
||||
},
|
||||
}
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
"preserve_recent_tokens": 100,
|
||||
"keep": { "tokens": 200 },
|
||||
"reserved": 300,
|
||||
"buffer": 400
|
||||
"buffer": 400,
|
||||
},
|
||||
"mcp": { "timeout": { "catalog": 8000, "execution": 8000 } }
|
||||
"mcp": { "timeout": { "catalog": 8000, "execution": 8000 } },
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"skills": ["./skills", "https://example.com/skills", "/opt/skills", "http://localhost:8080/skills"]
|
||||
"skills": ["./skills", "https://example.com/skills", "/opt/skills", "http://localhost:8080/skills"],
|
||||
}
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
{
|
||||
"skills": {
|
||||
"paths": [
|
||||
"./skills",
|
||||
"/opt/skills"
|
||||
],
|
||||
"urls": [
|
||||
"https://example.com/skills",
|
||||
"http://localhost:8080/skills"
|
||||
]
|
||||
"paths": ["./skills", "/opt/skills"],
|
||||
"urls": ["https://example.com/skills", "http://localhost:8080/skills"]
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@
|
||||
// Empty shell in a global update removes the setting.
|
||||
"shell": "bash",
|
||||
"model": { "providerID": "example", "model": "demo" },
|
||||
"snapshots": false
|
||||
"snapshots": false,
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"model": { "providerID": "example", "model": "demo" },
|
||||
"snapshots": false
|
||||
"snapshots": false,
|
||||
}
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@
|
||||
"mcp": {
|
||||
"modern": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"modern-mcp"
|
||||
],
|
||||
"command": ["modern-mcp"],
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
|
||||
+2
-4
@@ -5,9 +5,7 @@
|
||||
"servers": {
|
||||
"modern": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"modern-mcp"
|
||||
],
|
||||
"command": ["modern-mcp"],
|
||||
"disabled": true
|
||||
}
|
||||
}
|
||||
@@ -19,4 +17,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@
|
||||
"mcp": {
|
||||
"modern": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"modern-mcp"
|
||||
],
|
||||
"command": ["modern-mcp"],
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
|
||||
+2
-4
@@ -10,9 +10,7 @@
|
||||
"servers": {
|
||||
"modern": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"modern-mcp"
|
||||
],
|
||||
"command": ["modern-mcp"],
|
||||
"disabled": false
|
||||
}
|
||||
},
|
||||
@@ -31,4 +29,4 @@
|
||||
"permission": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@
|
||||
"mcp": {
|
||||
"modern": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"modern-mcp"
|
||||
],
|
||||
"command": ["modern-mcp"],
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
|
||||
+2
-4
@@ -5,9 +5,7 @@
|
||||
"servers": {
|
||||
"modern": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"modern-mcp"
|
||||
],
|
||||
"command": ["modern-mcp"],
|
||||
"disabled": true
|
||||
}
|
||||
}
|
||||
@@ -19,4 +17,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-4
@@ -10,9 +10,7 @@
|
||||
"servers": {
|
||||
"modern": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"modern-mcp"
|
||||
],
|
||||
"command": ["modern-mcp"],
|
||||
"disabled": false
|
||||
}
|
||||
},
|
||||
@@ -29,4 +27,4 @@
|
||||
}
|
||||
},
|
||||
"shell": ""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user