Constants
Agent Connector reads a few optional PHP constants that can be defined in wp-config.php.
AGENT_CONNECTOR_FOR_WP_TIMEOUT_MS— How long a command or PHP evaluation may run, in milliseconds. Default 60000 (60 seconds).AGENT_CONNECTOR_FOR_WP_MAX_OUTPUT_BYTES— The cap on captured output per stream, in bytes. Default 2097152 (2 MiB).AGENT_CONNECTOR_FOR_WP_AUDIT_LOG— Set this to an absolute file path to turn on the file audit log, which records every ability execution to that file. Off by default — leave it undefined and no file is written.AGENT_CONNECTOR_FOR_WP_SANDBOX_DIR— Directory where generated PHP is written. Defaultwp-content/agent-connector-for-wp-sandbox/.
For example, in wp-config.php:
define( 'AGENT_CONNECTOR_FOR_WP_TIMEOUT_MS', 120000 );
define( 'AGENT_CONNECTOR_FOR_WP_AUDIT_LOG', '/var/log/ac4wp-audit.log' );