Testing, Boost & System Ops
Beyond database operations, Setup -> Console surfaces automated testing, ProcessWire Boost / MCP diagnostics, maintenance mode, and cache controls.
1. Boost & AI Governance (./boost/)
Section titled “1. Boost & AI Governance (./boost/)”- Synchronize & Configure Boost: Regenerate
AGENTS.md,.agents/map.json, and module skills (syncBoost()), and configure enabled features (guidelines,skills,mcp), target agents, and enabled modules (configureBoost()). - MCP JSON-RPC Tool Inspector: Execute allowlisted read-only MCP tools (such as
pw_query,pw_schema_read,pw_module_list) directly in-process viaexecuteReadOnlyMcpTool()with validated JSON arguments (MAX_JSON_ELEMENTS = 512). - Remote Skills & Module Scaffold: Audit and install skills from a GitHub repository (
installRemoteBoostSkills()) or scaffold newStandard,Process,Fieldtype, orInputfieldProcessWire module stubs (scaffoldComponentFile()).
2. Automated Testing (./testing/)
Section titled “2. Automated Testing (./testing/)”- Discovers Pest unit/feature test files in
tests/andsite/tests/alongside Playwright E2E specs intests/e2e/(getDiscoveredTestFiles()). - Runs Pest suites (
runTests(), default 60s timeout) and Playwright E2E suites (runE2eTests(), default 120s timeout) after strict argument sanitization (sanitizeTestArgs(),sanitizeE2eArgs()) to block shell injection. - Initializes Playwright E2E configuration (
initPlaywrightE2e()) when not yet configured.
3. Maintenance Mode & System Caches (Overview)
Section titled “3. Maintenance Mode & System Caches (Overview)”- Maintenance Mode: Calls
enableMaintenanceMode(?string $secret, ?int $retry, int $status = 503, ?string $redirect)anddisableMaintenanceMode()to toggle ProcessWire maintenance mode with an optional preview bypass token. - System & WireCache Flush: Clears Modules, FileCompiler, and WireCache selectively via
clearSystemCaches($mode).