chore(team): checkpoint remaining diagnostics changes

This commit is contained in:
777genius 2026-05-09 05:22:38 +03:00
parent fc3bd61f93
commit 7b4c6cc380
3 changed files with 11 additions and 6 deletions

View file

@ -462,11 +462,14 @@ async function main() {
const result = await runCommand(command); const result = await runCommand(command);
const output = `${result.stdout}\n${result.stderr}`; const output = `${result.stdout}\n${result.stderr}`;
const assistantText = extractAssistantText(output); const assistantText = extractAssistantText(output);
const textForMatch = assistantText || output; const matched = testCase.expected
const matched = testCase.expected ? testCase.expected.test(textForMatch) : false; ? result.ok && assistantText.length > 0 && testCase.expected.test(assistantText)
: false;
const unsupportedMatched = testCase.expectedUnsupported const unsupportedMatched = testCase.expectedUnsupported
? /cannot|unable|unsupported|text-only|vision|image|не могу|не поддерживает|изображен/i.test( ? result.ok &&
textForMatch assistantText.length > 0 &&
/cannot|unable|unsupported|text-only|vision|image|не могу|не поддерживает|изображен/i.test(
assistantText
) )
: false; : false;
results.push({ results.push({

View file

@ -37,7 +37,8 @@ const SECRET_FLAG_PATTERN =
const SECRET_ENV_ASSIGNMENT_PATTERN = const SECRET_ENV_ASSIGNMENT_PATTERN =
/\b([A-Z0-9_]*(?:API_KEY|TOKEN|SECRET|PASSWORD|AUTHORIZATION)[A-Z0-9_]*\s*=\s*)("[^"]*"|'[^']*'|\S+)/gi; /\b([A-Z0-9_]*(?:API_KEY|TOKEN|SECRET|PASSWORD|AUTHORIZATION)[A-Z0-9_]*\s*=\s*)("[^"]*"|'[^']*'|\S+)/gi;
const AUTH_HEADER_PATTERN = /\b(Authorization\s*:\s*)(Bearer\s+)?("[^"]*"|'[^']*'|\S+)/gi; const AUTH_HEADER_PATTERN = /\b(Authorization\s*:\s*)(Bearer\s+)?("[^"]*"|'[^']*'|\S+)/gi;
const SECRET_VALUE_PATTERN = /\b(sk-[A-Za-z0-9_-]{12,}|[A-Za-z0-9_-]{32,})\b/g; const SECRET_VALUE_PATTERN =
/\b(sk-[A-Za-z0-9._~+/=-]{12,}|[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,})\b/g;
export interface ProvisioningProgressBlockProps { export interface ProvisioningProgressBlockProps {
/** Title above the steps, e.g. "Launching team" */ /** Title above the steps, e.g. "Launching team" */

View file

@ -67,7 +67,8 @@ const MAX_DIAGNOSTIC_ITEMS = 20;
const MAX_PERMISSION_REQUEST_IDS = 10; const MAX_PERMISSION_REQUEST_IDS = 10;
const SECRET_FLAG_PATTERN = const SECRET_FLAG_PATTERN =
/(--(?:api-key|token|password|secret|authorization|auth-token)(?:=|\s+))("[^"]*"|'[^']*'|\S+)/gi; /(--(?:api-key|token|password|secret|authorization|auth-token)(?:=|\s+))("[^"]*"|'[^']*'|\S+)/gi;
const SECRET_VALUE_PATTERN = /\b(sk-[A-Za-z0-9_-]{12,}|[A-Za-z0-9_-]{32,})\b/g; const SECRET_VALUE_PATTERN =
/\b(sk-[A-Za-z0-9._~+/=-]{12,}|[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,})\b/g;
type MemberSpawnStatusCollection = type MemberSpawnStatusCollection =
| Record<string, MemberSpawnStatusEntry> | Record<string, MemberSpawnStatusEntry>