完善客户端模块与工作区能力
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-13 19:45:30 +08:00
parent 0148b91a15
commit 22add3f01f
97 changed files with 4756 additions and 3226 deletions

View File

@@ -66,9 +66,7 @@ export interface OpencodeProviderModelEntry {
export interface OpencodeRuntimeConfig {
'$schema': string;
enabled_providers: string[];
permission: {
external_directory: 'ask';
};
permission: 'allow';
provider: Record<string, OpencodeProviderEntry>;
mcp?: Record<string, OpencodeMcpServerEntry>;
model?: string;
@@ -283,9 +281,7 @@ export async function buildOpencodeRuntimeConfig(
const config: OpencodeRuntimeConfig = {
'$schema': OPENCODE_CONFIG_SCHEMA,
enabled_providers: [],
permission: {
external_directory: 'ask',
},
permission: 'allow',
provider: {},
};
if (options.mcpServers && Object.keys(options.mcpServers).length > 0) {