Skip to content

override.set / override.remove and config.set-content: operations for the web editors - #31

Merged
jcombs-pointblue merged 1 commit into
masterfrom
claude/web-editor-ops
Oct 5, 2026
Merged

jcombs-pointblue merged 1 commit into
masterfrom
claude/web-editor-ops

Conversation

@jcombs-pointblue

Copy link
Copy Markdown
Contributor

Summary

Two gaps found while building DirXMLDevWeb's W1 editors, where every editor is a front end to the core's operations.

  • override.set --env E --key K --value V and override.remove --env E --key K. A stage override was only editable as a text file. As operations, the key is resolved against the tree before anything is written, the base value stays untouched, the result notes the base and the previous value, and removing an environment's last key removes its file.
  • config.set-content --kind K [--driver D] --content-file F. Replaces one whole configuration document: a driver's config-values, shim-config-info, driver-filter or engine-control-values, or the driver set's config-values. The root element is checked. This is what a raw-XML editor saves through; the typed operations (gcv.set, filter.set-attr, driver.set) still change one thing at a time.

Both go through Transaction, so validation, the diff of changed files and the refusal on a new error apply as for every other operation. The CLI and the MCP catalog gain them for free.

Test plan

  • mvn -o test: green, with OverrideAndConfigContentOpsTest (set, replace, remove with file deletion, refusals for an unknown key, a bad environment name, the wrong root, malformed XML, a missing driver, an unknown kind)
  • bin/ci-portable.sh: green

🤖 Generated with Claude Code

… the web editors need

- OverrideOps: a stage override as an edit operation; the key must resolve against the tree,
  the base value is untouched, and an environment's last key takes its file with it
- ConfigOps.SetContent: replace a whole configuration document (driver config-values,
  shim-config-info, driver-filter, engine-control-values; the driver set's config-values)
  with the root element checked
- registry entries, tests, getting-started 3.1, CHANGELOG

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jcombs-pointblue
jcombs-pointblue merged commit bd60e14 into master Oct 5, 2026
4 checks passed
@jcombs-pointblue
jcombs-pointblue deleted the claude/web-editor-ops branch October 5, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant