feat(littleblue): blue tool registry (list/propose action via local API) + run_turn extraEnv

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-04 21:42:27 +10:00
parent 3aa8dc578b
commit ff681847ed
5 changed files with 67 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ const STDIO_PATH = fileURLToPath(new URL('../../mcp/companion-stdio.js', import.
*/
export async function runAgentTurn({
agent, persona, registryName, toolNames, spaceId = null, view = null,
sessionId, resume = false, userText, claudeExe = 'claude', home, onEvent
sessionId, resume = false, userText, claudeExe = 'claude', home, onEvent, extraEnv = {}
}) {
const agentActor = { kind: 'agent', id: agent.id, capabilities: agent.capabilities, scopes: agent.scopes };
const mcpConfigPath = join(tmpdir(), `void-mcp-${randomUUID()}.json`);
@@ -30,7 +30,8 @@ export async function runAgentTurn({
VOID_AGENT_JSON: JSON.stringify(agentActor),
VOID_VIEW_JSON: view ? JSON.stringify(view) : '',
DATABASE_URL: process.env.DATABASE_URL || '',
OLLAMA_URL: process.env.OLLAMA_URL || ''
OLLAMA_URL: process.env.OLLAMA_URL || '',
...extraEnv
}
}
}