feat: add privacy-aware security manager onboarding
All checks were successful
Codex Template Compliance / template-compliance (pull_request) Successful in 7s
Build / test-and-image (pull_request) Successful in 52s

This commit is contained in:
2026-07-05 21:39:55 +02:00
parent d13652a70b
commit 0c7ddc53b4
14 changed files with 767 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ export function createTerminalToolRegistry({
getDelta,
buildBrief,
intelligenceStore,
securityProfileStore,
triggerSweep,
isSweepInProgress,
telegramAlerter,
@@ -14,6 +15,10 @@ export function createTerminalToolRegistry({
const deltaFor = runtime => runtime?.delta || getDelta?.() || null;
return new TerminalToolRegistry([
tool('get_system_status', 'Get server, sweep, LLM, Telegram, source, and memory health.', {}, async () => getHealth?.() || {}),
tool('get_security_profile', 'Get the operator-approved Security Manager profile for personal risk relevance, location, dependencies, mobility, alert preferences, and response language.', {}, async () => ({
available: Boolean(securityProfileStore?.exists),
profile: securityProfileStore?.getAgentProfile() || null,
})),
tool('get_latest_brief', 'Build the latest operator intelligence brief.', {}, async (_args, runtime) => {
const data = dataFor(runtime);
return { brief: data && buildBrief ? buildBrief(data) : 'No completed sweep.' };