# captureDiagnostics

**Kind:** Function

**Source:** [`atloria-monorepo/apps/cli/src/utils/ai-auth-debugger.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/cli/src/utils/ai-auth-debugger.ts#L52)

Capture comprehensive diagnostics about current page state

## Signature

```ts
async function captureDiagnostics(page: any, phase: string, attemptLog: any[]): Promise<AuthDiagnostics>
```

## Parameters

| Name | Type |
|---|---|
| `page` | `any` |
| `phase` | `string` |
| `attemptLog` | `any[]` |

**Returns:** `Promise<AuthDiagnostics>`
