Snider
d5d3525602
refactor(actions): expose fluent builders for all actions
...
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-15 14:30:45 +01:00
Snider
284d39de18
Align console warning types with RFC
2026-04-15 14:29:06 +01:00
Snider
75ed16743a
Align console handling with AX principles
2026-04-15 14:27:13 +01:00
Snider
f6e235d83e
Align webview behavior with RFC
2026-04-15 14:21:23 +01:00
Snider
d6fcd6a2f4
fix(console): defer limit trimming until append
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-15 14:19:00 +01:00
Snider
f4a094e87c
Align console filters with spec
2026-04-15 14:17:21 +01:00
Snider
3002b4801d
feat(webview): CDP history nav + deterministic console limits + exception text
...
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
- webview.go: back/forward navigation uses Page.getNavigationHistory +
navigateToHistoryEntry (bounds-checked, load-wait) — replaces deprecated
Page.goBackOrForward
- console.go + webview.go: console limits deterministic, clamp negative limits
to 0, zero-retention supported, error counting normalised, multiple
ConsoleWatcher filters compose as intersection
- webview.go + console.go + angular.go: JS exception text propagation, Angular
router/query param map[string]string per RFC
- audit_issue2_test.go + webview_test.go: history nav, exception text, filter
composition, retention trimming coverage
Verified: GOWORK=off go test ./... passes
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-14 18:35:10 +01:00
Virgil
b993fc18f3
feat(webview): populate element content fields
...
Test / test (push) Successful in 55s
Security Scan / security (push) Failing after 12m32s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 04:47:46 +00:00
Virgil
dff3d576fa
fix(cdp): resolve issue 2 audit findings
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-23 07:34:16 +00:00
Snider
900cb750cf
fix(console): buffer trim panic when limit < 100, add unit tests
...
Security Scan / security (pull_request) Successful in 10s
Test / test (pull_request) Successful in 30s
CLAUDE.md: update error wrapping guidance to reflect coreerr.E() convention.
Console buffer trimming in both Webview.addConsoleMessage and
ConsoleWatcher.addMessage panicked with slice bounds out of range
when consoleLimit was smaller than 100. Use min(100, len) for safe
batch trimming.
Added 22 unit tests covering pure functions (FormatConsoleOutput,
containsString, findString, formatJSValue, getString), ConsoleWatcher
filter/count/handler logic, ExceptionWatcher operations, WaitAction
context handling, and buffer limit enforcement. Coverage: 3.2% → 16.1%.
DX audit findings:
- Error handling: clean (all coreerr.E(), no fmt.Errorf)
- File I/O: clean (no os.ReadFile/os.WriteFile — package uses HTTP/WS only)
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 08:54:22 +00:00
Snider
45f119b9ac
feat: extract go-webview from core/go pkg/webview
...
Chrome DevTools Protocol client for browser automation.
Zero external dependencies (stdlib only).
Module: forge.lthn.ai/core/go-webview
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-19 16:09:11 +00:00