feat(setup): add memory, automation, security, and gateway setup flows
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import type { Prompter } from './prompts.js';
|
||||
import type { ConfigBuilder } from './config.js';
|
||||
|
||||
const TOOL_PROFILES = [
|
||||
{ label: 'full (unrestricted)', value: 'full' },
|
||||
{ label: 'coding (fs + runtime + sessions + memory)', value: 'coding' },
|
||||
{ label: 'messaging (send only)', value: 'messaging' },
|
||||
{ label: 'minimal (status only)', value: 'minimal' },
|
||||
];
|
||||
|
||||
export async function setupSecurity(p: Prompter, builder: ConfigBuilder): Promise<void> {
|
||||
const sandbox = await p.confirm('Enable Docker sandboxing?', false);
|
||||
if (sandbox) {
|
||||
builder.setSandboxEnabled(true);
|
||||
p.println('✓ Docker sandboxing enabled');
|
||||
}
|
||||
|
||||
const pairing = await p.confirm('Enable DM pairing for unknown senders?', false);
|
||||
if (pairing) {
|
||||
builder.setPairingEnabled(true);
|
||||
p.println('✓ DM pairing enabled');
|
||||
}
|
||||
|
||||
const profile = await p.choose('Tool policy profile:', TOOL_PROFILES);
|
||||
builder.setToolProfile(profile);
|
||||
}
|
||||
Reference in New Issue
Block a user