Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6775c46
Add permission-scoped developer window automation and local MCP [#403]
ambroise-leclerc Oct 28, 2026
6a14166
Merge develop into 403-agent-automation and keep build diagnostics on…
ambroise-leclerc Oct 28, 2026
1d6da15
Address review of the agent automation and refresh the bundle checksu…
ambroise-leclerc Oct 28, 2026
cd26686
Fix a sign conversion in the capability comparison [#403]
ambroise-leclerc Oct 28, 2026
200e2da
Bound completions in bytes, report cancellation as 130, align benchma…
ambroise-leclerc Oct 28, 2026
ab179b6
Fix automation isolation, cancellation and reporting after review [#403]
ambroise-leclerc Oct 28, 2026
b1481fd
Authenticate automation callbacks and revoke closed endpoints [#403]
ambroise-leclerc Oct 29, 2026
fcffd42
Wait until the startup deadline without rounding [#403]
ambroise-leclerc Oct 29, 2026
2b81504
Bind automation to the launched window and separate run output [#403]
ambroise-leclerc Oct 29, 2026
5da7e9f
Split MCP watchdog regressions and bound attachment startup [#403]
ambroise-leclerc Oct 29, 2026
6184180
Cover silent startup peers and clarify test storage limits [#403]
ambroise-leclerc Oct 29, 2026
632baaa
Recover automation transport and navigation failures safely [#403]
ambroise-leclerc Oct 29, 2026
cfff2a2
Handle aliased POSIX errors in strict GCC builds [#403]
ambroise-leclerc Oct 29, 2026
b75bede
Combine watchdog restart checks and compress fixtures faster [#403]
ambroise-leclerc Oct 29, 2026
7482468
Keep cancelled work exclusive and harden native attachment lifecycle …
ambroise-leclerc Oct 29, 2026
56658ac
Wait for transient browser profile locks during cleanup [#403]
ambroise-leclerc Oct 29, 2026
cd2ce0c
Preserve launcher signal handling through CEF initialization [#403]
ambroise-leclerc Oct 29, 2026
b1fe8ac
Restore native signal actions after Chrome browser startup [#403]
ambroise-leclerc Oct 29, 2026
70aeb51
Fix bootstrap exit status and document local model qualification [#403]
ambroise-leclerc Oct 29, 2026
de31271
Fix automation entry labels and dev script ownership [#403]
ambroise-leclerc Oct 29, 2026
4a1c92b
Merge develop and preserve automation window settings [#403]
ambroise-leclerc Oct 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build*/
.vscode/

# Compiled binaries
__pycache__/
*.exe
*.dll
*.lib
Expand Down
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ wf() { build/test/web/webfront-wf --project "$PWD" --manifest-dir js/developer -
wf restore && wf run build build-distribution
```

On Linux, configuring tests with an enabled browser frontend requires `xvfb-run`, even if the subsequent CTest invocation selects only `-L fast`. Install Xvfb for the browser suite, or explicitly disable browser frontends (`-DWEBFRONT_EMBED_CEF=OFF -DWEBFRONT_EMBED_WEBKITGTK=OFF`) for a C++-only workflow. Missing Xvfb may skip only the optional Automation window tests; it must not silently remove the required Jasmine, developer journey or WfDriver coverage.

Important CMake options:

The headers of the embedded assets are generated, and checked by CTest, in pure CMake (`js/core/EmbedAsset.cmake`; the
Expand Down
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ endif()

option(BUILD_SHARED_LIBS "Enable compilation of shared libraries" OFF)
option(ENABLE_TESTING "Enable Test Builds" OFF)
option(WEBFRONT_BUILD_AUTOMATION "Build the optional local developer CLI/MCP launcher" OFF)
option(WEBFRONT_BUILD_EXAMPLES "Build the example applications" ${WEBFRONT_IS_TOP_LEVEL})
option(ENABLE_COVERAGE "Enable test coverage instrumentation" OFF)
option(ENABLE_FUZZING "Enable Fuzzing Builds" OFF)
Expand Down Expand Up @@ -117,6 +118,23 @@ webfront_add_embedded_assets()
# Opt-in consumer test registration; inclusion alone downloads nothing and registers no tests.
include(WebFrontJasmine)

if(WEBFRONT_BUILD_AUTOMATION OR (ENABLE_TESTING AND
(WEBFRONT_EMBED_CEF OR WEBFRONT_EMBED_WKWEBVIEW OR WEBFRONT_EMBED_WEBVIEW2 OR WEBFRONT_EMBED_WEBKITGTK)))
webfront_default_embedded_frontend(_automation_default FALLBACK CEF)
webfront_select_frontend(WEBFRONT_AUTOMATION_FRONTEND "${_automation_default}"
"Developer automation frontend" EMBEDDED_ONLY REQUIRE_AVAILABLE)
if(NOT ${WEBFRONT_FRONTEND_${WEBFRONT_AUTOMATION_FRONTEND}_OPTION})
message(FATAL_ERROR "Automation needs an explicitly enabled embedded frontend")
endif()
add_executable(webfront-agent js/developer/tools/WebFrontAgent.cpp)
target_link_libraries(webfront-agent PRIVATE WebFront WebFront_options WebFront_warnings)
if(WIN32)
target_link_libraries(webfront-agent PRIVATE ws2_32 bcrypt advapi32)
endif()
target_compile_definitions(webfront-agent PRIVATE WEBFRONT_AUTOMATION_FRONTEND_TYPE=${WEBFRONT_AUTOMATION_FRONTEND_TYPE})
webfront_setup_frontends_for_target(webfront-agent)
endif()

if(ENABLE_TESTING OR ENABLE_FUZZING)
include(TestHardening)
endif()
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ The builds remove TypeScript types without checking them; `wf check` runs the Ty

The type packages come next: `wf install typescript@5.9.3 @types/react@19.3.0 @types/react-dom@19.3.0` then `wf check` type-check the starter. Both commands are described in the [developer environment reference](docs/DEVELOPER_ENVIRONMENT.md).

An optional native [automation launcher](docs/AUTOMATION.md) exposes the developer window through
local stdio MCP or a JSON CLI, with explicit permissions for check/build/test/preview and bounded
UI inspection/actions. It requires a compatible environment built from the sources; the pinned
0.6.2 archive predates this API.

### 5. Try the result

![Game of Life running in a native window](docs/images/life-preview.jpg)
Expand Down
27 changes: 27 additions & 0 deletions cmake/Frontends.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,33 @@ function(webfront_find_xvfb out)
endif()
endfunction()

# Optional repository window regressions must not make configuration depend on a display runner.
function(webfront_optional_window_test_runner out_prefix out_available)
set(prefix "")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
webfront_find_xvfb(display)
if(NOT display)
message(WARNING "Skipping optional browser window regressions, including AutomationMcpWindow: xvfb-run was not found")
set(${out_prefix} "" PARENT_SCOPE)
set(${out_available} OFF PARENT_SCOPE)
return()
endif()
set(prefix "${display}" -a)
endif()
set(${out_prefix} "${prefix}" PARENT_SCOPE)
set(${out_available} ON PARENT_SCOPE)
endfunction()

# Repository-selected browser coverage is mandatory; independently registered engine hooks may be headless.
function(webfront_require_browser_test_display frontend)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND WEBFRONT_FRONTEND_${frontend}_XVFB_LINUX)
webfront_find_xvfb(display)
if(NOT display)
message(FATAL_ERROR "${frontend} requires xvfb-run; mandatory browser coverage cannot be skipped")
endif()
endif()
endfunction()

function(webfront_set_browser_test_properties name assets_directory timeout)
set_tests_properties(${name} PROPERTIES
LABELS "web-integration" TIMEOUT "${timeout}"
Expand Down
Loading
Loading