forked niri forked from okami.mom/niri

fix(memory): support structured edit_file operations #72

targeting main from deleted fork:fix/memory-structured-edits
Closed opened by and assigned to callie.on-her.computer
targeting main from deleted fork:fix/memory-structured-edits

Fix the edit_file schema/runtime mismatch for memory:// resources.

  • route non-empty structured edits to a server-side memory editor
  • preserve path hardening, frontend access policy, expected_hash checks, Markdown validation, backups, atomic replacement, and memory-index sync
  • expose the existing pure hashline primitives to the runtime
  • update tool/bootstrap descriptions
  • cover append, anchored replace, stale hashes, invalid Markdown rollback, and frontend skill denial

Verified with npm run typecheck and the full npm test suite.

Commits 0