mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 21:03:08 +00:00
fix: remove MCP permission settings references removed in v0.8.0rc
v0.8.0rc removed getMCPPermissionSettings and related properties. Removed all references from auto-mode-service.ts to fix build. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,7 @@ import {
|
|||||||
getEnableSandboxModeSetting,
|
getEnableSandboxModeSetting,
|
||||||
filterClaudeMdFromContext,
|
filterClaudeMdFromContext,
|
||||||
getMCPServersFromSettings,
|
getMCPServersFromSettings,
|
||||||
getMCPPermissionSettings,
|
|
||||||
getPromptCustomization,
|
getPromptCustomization,
|
||||||
} from '../lib/settings-helpers.js';
|
} from '../lib/settings-helpers.js';
|
||||||
|
|
||||||
@@ -2070,7 +2070,6 @@ This mock response was generated because AUTOMAKER_MOCK_AGENT=true was set.
|
|||||||
const mcpServers = await getMCPServersFromSettings(this.settingsService, '[AutoMode]');
|
const mcpServers = await getMCPServersFromSettings(this.settingsService, '[AutoMode]');
|
||||||
|
|
||||||
// Load MCP permission settings (global setting only)
|
// Load MCP permission settings (global setting only)
|
||||||
const mcpPermissions = await getMCPPermissionSettings(this.settingsService, '[AutoMode]');
|
|
||||||
|
|
||||||
// Build SDK options using centralized configuration for feature implementation
|
// Build SDK options using centralized configuration for feature implementation
|
||||||
const sdkOptions = createAutoModeOptions({
|
const sdkOptions = createAutoModeOptions({
|
||||||
@@ -2080,8 +2079,6 @@ This mock response was generated because AUTOMAKER_MOCK_AGENT=true was set.
|
|||||||
autoLoadClaudeMd,
|
autoLoadClaudeMd,
|
||||||
enableSandboxMode,
|
enableSandboxMode,
|
||||||
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
||||||
mcpAutoApproveTools: mcpPermissions.mcpAutoApproveTools,
|
|
||||||
mcpUnrestrictedTools: mcpPermissions.mcpUnrestrictedTools,
|
|
||||||
thinkingLevel: options?.thinkingLevel,
|
thinkingLevel: options?.thinkingLevel,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -2125,8 +2122,6 @@ This mock response was generated because AUTOMAKER_MOCK_AGENT=true was set.
|
|||||||
settingSources: sdkOptions.settingSources,
|
settingSources: sdkOptions.settingSources,
|
||||||
sandbox: sdkOptions.sandbox, // Pass sandbox configuration
|
sandbox: sdkOptions.sandbox, // Pass sandbox configuration
|
||||||
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined, // Pass MCP servers configuration
|
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined, // Pass MCP servers configuration
|
||||||
mcpAutoApproveTools: mcpPermissions.mcpAutoApproveTools, // Pass MCP auto-approve setting
|
|
||||||
mcpUnrestrictedTools: mcpPermissions.mcpUnrestrictedTools, // Pass MCP unrestricted tools setting
|
|
||||||
thinkingLevel: options?.thinkingLevel, // Pass thinking level for extended thinking
|
thinkingLevel: options?.thinkingLevel, // Pass thinking level for extended thinking
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2416,8 +2411,6 @@ After generating the revised spec, output:
|
|||||||
allowedTools: allowedTools,
|
allowedTools: allowedTools,
|
||||||
abortController,
|
abortController,
|
||||||
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
||||||
mcpAutoApproveTools: mcpPermissions.mcpAutoApproveTools,
|
|
||||||
mcpUnrestrictedTools: mcpPermissions.mcpUnrestrictedTools,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let revisionText = '';
|
let revisionText = '';
|
||||||
@@ -2556,8 +2549,6 @@ After generating the revised spec, output:
|
|||||||
allowedTools: allowedTools,
|
allowedTools: allowedTools,
|
||||||
abortController,
|
abortController,
|
||||||
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
||||||
mcpAutoApproveTools: mcpPermissions.mcpAutoApproveTools,
|
|
||||||
mcpUnrestrictedTools: mcpPermissions.mcpUnrestrictedTools,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let taskOutput = '';
|
let taskOutput = '';
|
||||||
@@ -2646,8 +2637,6 @@ Implement all the changes described in the plan above.`;
|
|||||||
allowedTools: allowedTools,
|
allowedTools: allowedTools,
|
||||||
abortController,
|
abortController,
|
||||||
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
mcpServers: Object.keys(mcpServers).length > 0 ? mcpServers : undefined,
|
||||||
mcpAutoApproveTools: mcpPermissions.mcpAutoApproveTools,
|
|
||||||
mcpUnrestrictedTools: mcpPermissions.mcpUnrestrictedTools,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
for await (const msg of continuationStream) {
|
for await (const msg of continuationStream) {
|
||||||
|
|||||||
Reference in New Issue
Block a user