fix(permissions): tools MCP inter-projets exposés (idea_project_*) + contactable agent/template persisté — update_agent_contactable (application/web-server/app-tauri), defaultContactable TemplateEditor save/reopen, groupes MCP 'IdeA inter-projets' avec fallback, permissions agent Contactable — #267 (QA verte)

This commit is contained in:
2026-09-07 18:13:27 +02:00
parent 9266d121cd
commit f6101a8249
30 changed files with 632 additions and 89 deletions

View File

@ -271,6 +271,12 @@ export interface AgentGateway {
agentId: string,
effort: EffortSelection | null,
): Promise<Agent>;
/** Changes whether this agent may be contacted from another project. */
updateAgentContactable(
projectId: string,
agentId: string,
contactable: boolean,
): Promise<Agent>;
/** Reads an agent's `.md` context by agent id. */
readContext(projectId: string, agentId: string): Promise<string>;
/** Overwrites an agent's `.md` context. */
@ -630,6 +636,7 @@ export interface CreateTemplateInput {
content: string;
defaultProfileId: string;
defaultAgentName?: string | null;
defaultContactable?: boolean;
systemPermissions?: SystemPermissionSet | null;
mcpToolPermissions?: McpToolPolicy | null;
}
@ -640,6 +647,7 @@ export interface UpdateTemplateInput {
content: string;
defaultProfileId: string;
defaultAgentName?: string | null;
defaultContactable?: boolean;
systemPermissions?: SystemPermissionSet | null;
mcpToolPermissions?: McpToolPolicy | null;
}