Skip to content

Commit 024228d

Browse files
Refresh runtime state notes with latest hardening
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 7b3a032 commit 024228d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎currentState.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ HyperAgent exposes a TypeScript SDK for browser automation with three primary pa
100100
- Centralized page URL normalization into shared utility (`normalizePageUrl`) and reused it across agent loop, perform, and prompt-builder paths.
101101
- Hardened frame metadata normalization in `FrameContextManager` (sanitized/bounded frame URLs and names, trap-safe OOPIF metadata reads).
102102
- Hardened a11y frame resolution fallback logic to keep XPath traversal working when frame enumeration is trap-prone.
103+
- Hardened a11y context-provider diagnostics for build-map, scrollable-detection, and batch bounding-box collection failure paths (sanitized/truncated warnings and bounded identifiers).
104+
- Hardened CDP script-injector diagnostics for script registration/runtime evaluation failures with bounded key/context identifier formatting.
105+
- Hardened CDP element-resolver diagnostics by sanitizing/truncating encoded IDs and frame IDs in failure/warning paths.
106+
- Hardened `PerformanceTracker` warning paths in a11y DOM capture utilities and tightened metadata typing (`unknown` + safe readers) to reduce unsafe runtime assumptions.
107+
- Hardened CLI diagnostics in task-input/stdin/mcp-config flows with consistent control-character stripping and truncation in file-read/raw-mode/config-parse errors.
108+
- Hardened agent-side DOM streaming callback warnings (`dom-capture`) to avoid noisy unbounded callback failure logs.
109+
- Hardened retry helper warning diagnostics for callback/sleep failure paths, preventing control-character and oversized diagnostic leakage.
110+
- Hardened `examineDom` and HTML→Markdown utilities with bounded diagnostic formatting for LLM/tooling conversion failures.
111+
- Hardened perform-action failure formatting with explicit bounded diagnostics, including trap-prone DOM element lookup failures.
112+
- Hardened Anthropic provider structured-output warning diagnostics in schema validation fallback branches.
103113
- Expanded top-level package exports for key workflow/config types at `@hyperbrowser/agent`.
104114
- Removed stale script entry (`build-dom-tree-script`) and improved README usage docs.
105115
- Added canonical single-action debug writer helper (`writePerformDebug`) while preserving deprecated alias compatibility.

0 commit comments

Comments
 (0)