Write a YAML value (lossless)
noyalib_setSet a YAML value at a dotted/indexed path, preserving comments and formatting. Use for version bumps and config patches.
Instructions
Set the YAML value at a dotted/indexed path in the given file, rewriting only the touched span so every comment, blank line, and sibling entry is preserved byte-for-byte (written atomically). Use this for Renovate-style version bumps and config patches; use noyalib_get first when you need to read the current value. On a parse error the document is left unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the YAML file on disk. | |
| path | Yes | Dotted/indexed path into the YAML. | |
| value | Yes | Replacement value as a YAML fragment (e.g. `0.0.2`, `\"hello\"`, `[1, 2, 3]`). Must parse in the target position; the document is left unchanged on parse error. |