chore(team): checkpoint remaining diagnostics changes
This commit is contained in:
parent
fc3bd61f93
commit
7b4c6cc380
3 changed files with 11 additions and 6 deletions
|
|
@ -462,11 +462,14 @@ async function main() {
|
|||
const result = await runCommand(command);
|
||||
const output = `${result.stdout}\n${result.stderr}`;
|
||||
const assistantText = extractAssistantText(output);
|
||||
const textForMatch = assistantText || output;
|
||||
const matched = testCase.expected ? testCase.expected.test(textForMatch) : false;
|
||||
const matched = testCase.expected
|
||||
? result.ok && assistantText.length > 0 && testCase.expected.test(assistantText)
|
||||
: false;
|
||||
const unsupportedMatched = testCase.expectedUnsupported
|
||||
? /cannot|unable|unsupported|text-only|vision|image|не могу|не поддерживает|изображен/i.test(
|
||||
textForMatch
|
||||
? result.ok &&
|
||||
assistantText.length > 0 &&
|
||||
/cannot|unable|unsupported|text-only|vision|image|не могу|не поддерживает|изображен/i.test(
|
||||
assistantText
|
||||
)
|
||||
: false;
|
||||
results.push({
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ const SECRET_FLAG_PATTERN =
|
|||
const SECRET_ENV_ASSIGNMENT_PATTERN =
|
||||
/\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 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 {
|
||||
/** Title above the steps, e.g. "Launching team" */
|
||||
|
|
|
|||
|
|
@ -67,7 +67,8 @@ const MAX_DIAGNOSTIC_ITEMS = 20;
|
|||
const MAX_PERMISSION_REQUEST_IDS = 10;
|
||||
const SECRET_FLAG_PATTERN =
|
||||
/(--(?: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 =
|
||||
| Record<string, MemberSpawnStatusEntry>
|
||||
|
|
|
|||
Loading…
Reference in a new issue