* Detect known error patterns in a log string and return detection results. * @param {string} logContent - Contents of the agent stdio log * @returns {{ inferenceAccessError: boolean, mcpPolicyError: boolean, agenticEngineTimeout: boolean, modelNotSupportedError: boolean, http400ResponseError: boo
(logContent)
| 95 | * @returns {{ inferenceAccessError: boolean, mcpPolicyError: boolean, agenticEngineTimeout: boolean, modelNotSupportedError: boolean, http400ResponseError: boolean, capiQuotaExceededError: boolean }} |
| 96 | */ |
| 97 | function detectErrors(logContent) { |
| 98 | return { |
| 99 | inferenceAccessError: INFERENCE_ACCESS_ERROR_PATTERN.test(logContent), |
| 100 | mcpPolicyError: MCP_POLICY_BLOCKED_PATTERN.test(logContent), |
| 101 | agenticEngineTimeout: AGENTIC_ENGINE_TIMEOUT_PATTERN.test(logContent), |
| 102 | modelNotSupportedError: MODEL_NOT_SUPPORTED_PATTERN.test(logContent), |
| 103 | http400ResponseError: HTTP_400_RESPONSE_ERROR_PATTERN.test(logContent), |
| 104 | capiQuotaExceededError: isCAPIQuotaExceededError(logContent), |
| 105 | }; |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Write GitHub Actions outputs to $GITHUB_OUTPUT. |
no test coverage detected