feat: complete Aider Page Data review workflow
This commit is contained in:
+19
-2
@@ -162,6 +162,11 @@ export function resolveExcelMcpServerPath(overridePath, runtimeRoot) {
|
||||
);
|
||||
}
|
||||
|
||||
function resolveBundledMcpRuntimeRoot(sandboxMcp) {
|
||||
if (!sandboxMcp?.containerized || !sandboxMcp?.serverPath) return undefined;
|
||||
return path.dirname(sandboxMcp.serverPath);
|
||||
}
|
||||
|
||||
export const CAPABILITY_CATALOG = [
|
||||
{
|
||||
key: 'shell',
|
||||
@@ -535,6 +540,7 @@ export function buildAgentExtensionPolicy(
|
||||
}
|
||||
|
||||
const extensions = [];
|
||||
const bundledMcpRuntimeRoot = resolveBundledMcpRuntimeRoot(sandboxMcp);
|
||||
if (capabilities.static_publish || (capabilities.private_data_space && sandboxMcp)) {
|
||||
const localRoot = resolveSandboxMcpLocalRoot(sandboxMcp);
|
||||
const compatRoot = resolveSandboxMcpCompatRoot(sandboxMcp);
|
||||
@@ -645,7 +651,12 @@ export function buildAgentExtensionPolicy(
|
||||
display_name: 'tkmind-search',
|
||||
bundled: false,
|
||||
cmd: resolveSandboxMcpNodeExecPath(process.env.GOOSED_MCP_NODE_PATH),
|
||||
args: [resolveMindSearchMcpServerPath(process.env.TKMIND_SEARCH_MCP_SERVER_PATH)],
|
||||
args: [
|
||||
resolveMindSearchMcpServerPath(
|
||||
process.env.TKMIND_SEARCH_MCP_SERVER_PATH,
|
||||
bundledMcpRuntimeRoot,
|
||||
),
|
||||
],
|
||||
envs: {
|
||||
TKMIND_SEARCH_ENABLED: '1',
|
||||
TKMIND_SEARCH_MODE: mindSearchConfig.mode,
|
||||
@@ -687,7 +698,13 @@ export function buildAgentExtensionPolicy(
|
||||
display_name: 'Excel Analyst',
|
||||
bundled: false,
|
||||
cmd: resolveSandboxMcpNodeExecPath(sandboxMcp?.nodeExecPath),
|
||||
args: [resolveExcelMcpServerPath(process.env.GOOSED_EXCEL_MCP_SERVER_PATH), excelWorkspaceRoot],
|
||||
args: [
|
||||
resolveExcelMcpServerPath(
|
||||
process.env.GOOSED_EXCEL_MCP_SERVER_PATH,
|
||||
bundledMcpRuntimeRoot,
|
||||
),
|
||||
excelWorkspaceRoot,
|
||||
],
|
||||
envs: {
|
||||
EXCEL_ANALYST_ENABLED: '1',
|
||||
MINDSPACE_WORKSPACE_ROOT: excelWorkspaceRoot,
|
||||
|
||||
Reference in New Issue
Block a user