feat(setup): add memory, automation, security, and gateway setup flows

This commit is contained in:
William Valentin
2026-02-10 09:34:04 -08:00
parent b673632b0f
commit 182d86957b
5 changed files with 196 additions and 0 deletions
+26
View File
@@ -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);
}