feat: add setup flow for dedicated research agent
This commit is contained in:
@@ -8,6 +8,13 @@ const TOOL_PROFILES = [
|
||||
{ label: 'full (unrestricted)', value: 'full' },
|
||||
];
|
||||
|
||||
const RESEARCH_AGENT_TIERS = [
|
||||
{ label: 'complex (recommended)', value: 'complex' as const },
|
||||
{ label: 'default', value: 'default' as const },
|
||||
{ label: 'fast', value: 'fast' as const },
|
||||
{ label: 'local', value: 'local' as const },
|
||||
];
|
||||
|
||||
export async function setupSecurity(p: Prompter, builder: ConfigBuilder): Promise<void> {
|
||||
p.println(' Docker sandboxing runs tool commands in isolated containers.');
|
||||
p.println(' Requires Docker installed and running.');
|
||||
@@ -34,4 +41,14 @@ export async function setupSecurity(p: Prompter, builder: ConfigBuilder): Promis
|
||||
p.println(' minimal — status checks only (read-only, safest)');
|
||||
const profile = await p.choose('Tool policy profile:', TOOL_PROFILES);
|
||||
builder.setToolProfile(profile);
|
||||
|
||||
p.println();
|
||||
p.println(' Research agent adds a dedicated specialist for deep web research.');
|
||||
p.println(' Enables /research command and automatic routing for messages starting with "research ..." or "look up ...".');
|
||||
const enableResearchAgent = await p.confirm('Enable a dedicated research agent?', true);
|
||||
if (enableResearchAgent) {
|
||||
const tier = await p.choose('Research agent model tier:', RESEARCH_AGENT_TIERS);
|
||||
builder.setResearchAgentEnabled({ modelTier: tier });
|
||||
p.println(`✓ Research agent enabled (tier=${tier})`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user