feat: add runtime context awareness — system.info tool + date/time in system prompt

- assembleSystemPrompt() now injects '# Runtime Context' with current date/time
- New system.info tool: date, time, hostname, platform, arch, uptime, memory, Node.js version
- Tool available in all profiles (minimal/messaging/coding/full)
- 983 tests passing (+7 new)
This commit is contained in:
William Valentin
2026-02-07 16:22:17 -08:00
parent 33f6f142bc
commit 8bf88049bf
9 changed files with 228 additions and 16 deletions
+3
View File
@@ -9,11 +9,13 @@ const PROFILE_TOOLS: Record<ToolProfile, Set<string>> = {
'file.read',
'file.list',
'web.fetch',
'system.info',
]),
messaging: new Set([
'file.read',
'file.list',
'web.fetch',
'system.info',
'memory.read',
'memory.write',
'memory.search',
@@ -23,6 +25,7 @@ const PROFILE_TOOLS: Record<ToolProfile, Set<string>> = {
'file.read',
'file.list',
'web.fetch',
'system.info',
'memory.read',
'memory.write',
'memory.search',