AgentConfig: the mechanism AgentConfigService implements.
API
@Interface()
export abstract class AgentConfig {
abstract exists(projectId: string, agentId: string): Promise<boolean>;
abstract requireExists(projectId: string, agentId: string): Promise<void>;
abstract isSystemAgent(projectId: string, agentId: string): Promise<boolean>;
abstract isBuiltinAgent(projectId: string, agentId: string): Promise<boolean>;
abstract readCardMeta(
projectId: string,
agentId: string,
): Promise<{
name?: string;
description?: string;
author: AgentAuthor;
toolCount: number;
/** Package owners from valid stored MCP entries, omitted if the config could not be read. */
mcpPluginNames?: string[];
version: number;
kernelOutdated: boolean;
system?: true;
}>;
abstract getConfig(projectId: string, agentId: string): Promise<AgentConfigView>;
abstract updateConfig(
projectId: string,
agentId: string,
req: AgentConfigUpdateRequest,
): Promise<void>;
abstract stampMissingAuthor(
projectId: string,
agentId: string,
author: AgentAuthor,
): Promise<boolean>;
abstract resetConfig(projectId: string, agentId: string): Promise<void>;
abstract kernelUpdate(projectId: string, agentId: string): Promise<AgentKernelUpdateResponse>;
abstract insertTemplatePlaceholder(
projectId: string,
agentId: string,
feature: "vault" | "skills" | "schedules",
): Promise<AgentConfigView>;
abstract getVault(projectId: string, agentId: string): Promise<VaultResponse>;
abstract updateVault(
projectId: string,
agentId: string,
req: VaultUpdateRequest,
): Promise<VaultResponse>;
}Contract Topology
Static AST wiring across @Module / @Provide / @Use@Useconsumed by (19)
AgentServiceProviderHostAgentTasksProviderInstalledAgentSkillsProviderMemoryServiceProviderOrganizationModuleStorageModuleAmspRoutesAdminPluginRoutesOrgRoutesPluginRoutesSchedulerRoutesSessionApiRoutesAgentRoutesWorkbenchRoutesWorkbenchServiceAgentServiceInstalledAgentSkillsHostAgentTasksMemoryService
Members (13)
exists
exists(projectId: string, agentId: string): Promise<boolean>@paramprojectId
string@paramagentId
string@returns
Promise<boolean>requireExists
requireExists(projectId: string, agentId: string): Promise<void>@paramprojectId
string@paramagentId
string@returns
Promise<void>isSystemAgent
isSystemAgent(projectId: string, agentId: string): Promise<boolean>Whether the Agent is the Project's system Agent (core state/system-agent.ts).
@paramprojectId
string@paramagentId
string@returns
Promise<boolean>isBuiltinAgent
isBuiltinAgent(projectId: string, agentId: string): Promise<boolean>Whether the Agent is built in, and so never deleted: the system Agent counts only as itself.
@paramprojectId
string@paramagentId
string@returns
Promise<boolean>readCardMeta
readCardMeta(projectId: string, agentId: string): Promise<{ name?: string; description?: string; author: AgentAuthor; toolCount: number; mcpPluginNames?: string[]; version: number; kernelOutdated: boolean; system?: true; }>@paramprojectId
string@paramagentId
string@returns
Promise<{ name?: string; description?: string; author: AgentAuthor; toolCount: number; mcpPluginNames?: string[]; version: number; kernelOutdated: boolean; system?: true; }>getConfig
getConfig(projectId: string, agentId: string): Promise<AgentConfigView>@paramprojectId
string@paramagentId
string@returns
Promise<AgentConfigView>updateConfig
updateConfig(projectId: string, agentId: string, req: AgentConfigUpdateRequest): Promise<void>@paramprojectId
string@paramagentId
string@paramreq
AgentConfigUpdateRequest@returns
Promise<void>stampMissingAuthor
stampMissingAuthor(projectId: string, agentId: string, author: AgentAuthor): Promise<boolean>Writes author only into a config that has none; false when it had one or there is no config.
@paramprojectId
string@paramagentId
string@paramauthor
AgentAuthor@returns
Promise<boolean>resetConfig
resetConfig(projectId: string, agentId: string): Promise<void>@paramprojectId
string@paramagentId
string@returns
Promise<void>kernelUpdate
kernelUpdate(projectId: string, agentId: string): Promise<AgentKernelUpdateResponse>@paramprojectId
string@paramagentId
string@returns
Promise<AgentKernelUpdateResponse>insertTemplatePlaceholder
insertTemplatePlaceholder(projectId: string, agentId: string, feature: "vault" | "skills" | "schedules"): Promise<AgentConfigView>@paramprojectId
string@paramagentId
string@paramfeature
"vault" | "skills" | "schedules"@returns
Promise<AgentConfigView>getVault
getVault(projectId: string, agentId: string): Promise<VaultResponse>@paramprojectId
string@paramagentId
string@returns
Promise<VaultResponse>updateVault
updateVault(projectId: string, agentId: string, req: VaultUpdateRequest): Promise<VaultResponse>@paramprojectId
string@paramagentId
string@paramreq
VaultUpdateRequest@returns
Promise<VaultResponse>