| 开发者 | pyrra |
|---|---|
| 更新时间 | 2026年8月25日 20:51 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
configops_apply capability can replace human confirmation for one mutation only by sending dangerouslyRunUndo: true or --dangerously-run-undo. That acknowledgement does not bypass scope, conflict, reference, lock, audit, verification, or compensation checks. ConfigOps exposes no generic option writer, raw SQL tool, or plugin installer.
Visit the ConfigOps website or read the documentation.
Change a supported WordPress or plugin setting as usual. ConfigOps automatically opens an isolated observation for that save, groups the resulting writes, and reduces repeated writes to the same option into the original-to-final change.
A compact evidence card states how many values WordPress wrote, separates likely decisions from housekeeping, and links to the stored diff. Whole-save Undo appears only when every recorded value is restorable and still passes the conflict check.
Version 0.7 adds private Configuration Packs. Save a completed Change Session as a declarative .configops.json desired state, remove individual settings, import it on another website, inspect the complete Apply Preview, and apply it as an ordinary undoable History session.
Packs are not database snapshots. They contain no old values, autoload flags, table names, SQL, or executable code. Complete options containing protected data are excluded before export. Import rechecks the destination's WordPress and plugin versions, adapter ownership, local references, protected values, current baselines, and site scope before writing. URLs, absolute paths, email addresses, and environment-specific values are warned instead of silently rewritten.
Private Packs remain deliberately local files. Version 0.7 includes no cloud, marketplace, account, synchronization, variable substitution, or drift engine.
One action. The hidden writes behind it. A clear diff. A conflict-checked undo.
What a settings save actually wrote
ConfigOps is not a generic activity log. It does more than report that somebody clicked Save: it records the supported Options API writes caused by the request, separates likely decisions from plugin housekeeping, and attributes the responsible component and code path where possible.
ConfigOps is not a backup. It restores only supported setting values that still match the recorded state, so a later legitimate change is not silently overwritten.
ConfigOps is not plugin-version rollback. It works with configuration values, not plugin or theme code.
What ConfigOps records and checks
wp configops commands designed for scripts and language-model tool use.configops_apply and the dangerously-run-undo acknowledgement are both present; all ordinary restore checks remain active.Not generically. ConfigOps records a value-free warning when it observes a direct database write, but understanding or reversing a custom table requires an explicit adapter.
No. An activity log records events, a backup restores a broad site state, and plugin rollback replaces code. ConfigOps explains the supported setting writes behind a save and restores only values that still pass its safety checks.
ConfigOps observes supported Options API mutations in authorized WordPress admin, REST, and WP-CLI requests. It does not record anonymous front-end traffic as settings evidence. Named Change Sessions are available when you want to group several requests into one investigation. WP-CLI's optional --user parameter is not required for observation. A shell-authorized command without a WordPress user is recorded with actor ID 0. If another plugin virtualizes a site or network target through an Options API read filter, ConfigOps refuses undo before writing instead of treating the virtual value as stored database state.
Yes. Version 0.7 supports network activation, isolated per-site evidence, lifecycle and retention across sites, Multi-Network ownership boundaries, and a separate Network Admin ledger for supported Network Options changes. Named Network Change Sessions can group a planned task, and complete network additions and updates can be undone one mutation at a time. Packs remain site-scoped; Network Packs, network deletes, whole-network-change undo, cross-site aggregation, and bulk actions are not supported.
A Pack is strict JSON containing a format and schema version, stable Pack identity and version, a name and description, WordPress/plugin requirements, and a list of desired option states pinned to adapter schemas. It contains no before-state, database metadata, SQL, PHP, callbacks, or executable templates. Reserved variable and extension objects must remain empty in schema version 1. Export is conservative: only complete, restorable, non-secret options owned by a currently available tested adapter are selectable. Import repeats those checks against the destination. A warning is not an automatic rewrite; remove a questionable setting from the preview or configure that value explicitly after Apply.
Yes. ConfigOps is agent-ready through site-scoped native WordPress Abilities and machine-readable JSON WP-CLI commands for authenticated state, capture and mutation reads, named capture control, restore planning, and deliberately authorized single-mutation undo. The same discoverable abilities can be exposed by compatible MCP adapters.
Use a dedicated least-privilege WordPress service user. Mutation evidence may contain non-secret configuration values, even though probable credentials are removed before storage. Do not grant configops_apply unless the agent may actually change settings. The danger acknowledgement skips human confirmation but never the normal safety checks. Generic option-writing tools are not available.
Example commands:
wp --user=configops-agent configops state
wp --user=configops-agent configops captures list --limit=20
wp --user=configops-agent configops restore plan --mutation=842
wp --user=configops-agent configops restore apply --mutation=842 --dangerously-run-undo
Complete generic Options API values already use exact current-value checks. Site administrators can additionally enable Verified key undo for plugin arrays under Support contracts. For unclaimed associative wp_options updates, it cross-checks the complete patch against both typed snapshots, reverses only captured target keys, and preserves unrelated later keys. Current adapter ownership and current parent shapes are checked again before apply. It refuses secrets, root replacements, integer-keyed parent arrays, list-index edits, redacted or truncated evidence, malformed or overlapping paths, autoload drift, adapter-owned options, and any target key that changed again.
Probable secret fields and options are replaced before persistence. Supported adapters may undo neighboring non-secret fields while preserving the current credential. ConfigOps never reconstructs a redacted secret.
No. ConfigOps restores supported Options API values after a conflict check. Side effects in files, caches, remote services, or custom tables may remain. The interface states when undo is limited or unavailable. If earlier referenced media or content has since been deleted or moved to the trash, ConfigOps refuses to restore its local ID.
The host settings request is allowed to finish. ConfigOps marks the observation incomplete through a value-free emergency marker and disables whole-save undo after storage recovers.
While ConfigOps is active, completed and interrupted observations are kept for 30 days by default. Cleanup is bounded and never selects an active Change Session. Developers may change the window with the configops_retention_days filter. Uninstalling ConfigOps removes its observation history, installation options, scheduled cleanup, and capabilities.
Email felix@pyrra.net. Do not post credentials, configuration values, database exports, or customer data in a public support thread.
.configops.json desired state.configops_apply service user to acknowledge dangerously-run-undo; the flag does not bypass restore checks, locking, audit, verification, or compensation.wp configops commands with the same capability checks and bounded response contracts.--user as shell-authorized actor ID 0 instead of silently dropping them.pre_* filter or path-relevant missing-row default virtualizes the target, without falsely blocking normal post-read transforms such as Yoast's option_wpseo.