refactor(pipeline 日誌): 步驟連號單一任務、輸入輸出與成敗訊息更明確、清除 bot-check 雜訊

This commit is contained in:
Jeffery
2026-06-23 15:15:24 +08:00
parent 0602f47100
commit 374bb4ec75
4 changed files with 89 additions and 121 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import {
getLLMConfig,
} from './config.js';
import { verifyRemoteAccess } from './git.js';
import { step, line, ok, error } from './log.js';
import { step, line, ok, error, result } from './log.js';
const httpsAgent = GITEA_SKIP_TLS_VERIFY ? new https.Agent({ rejectUnauthorized: false }) : undefined;
const api = (path) => `${GITEA_SERVER_URL.replace(/\/$/, '')}/api/v1${path}`;
@@ -175,6 +175,6 @@ export async function runPreflight(workspace = process.env.GITHUB_WORKSPACE || '
if (llm.keyIndex) ok(`LLM provider=${llm.provider} 驗證通過(key ${llm.keyIndex}/${llm.total}`);
else ok(`LLM provider=${llm.provider} 連線正常`);
ok('前置驗證通過');
result(true, '前置驗證通過');
return true;
}