test(cli-executor): add end-to-end orchestration validation tests

Solution-ID: SOL-1735410003

Issue-ID: ISS-1766921318981-23

Task-ID: T4
This commit is contained in:
catlog22
2025-12-29 17:50:33 +08:00
parent 99eeeff6f7
commit 99291053f5
3 changed files with 515 additions and 1 deletions

View File

@@ -596,7 +596,7 @@ async function executeCliTool(
ensureHistoryDir(workingDir); // Ensure history directory exists
// NEW: Check if model is a custom LiteLLM endpoint ID
if (model && !['gemini', 'qwen', 'codex'].includes(tool)) {
if (model) {
const endpoint = findEndpointById(workingDir, model);
if (endpoint) {
// Route to LiteLLM executor