feat(engine): SK engine and UI work through 2026-10-10 on 2026.10.12.1
See Changelog/2026-10-11-sk-engine-work-through-10-10.md. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b0f9d74b21
commit
c9743a2612
80 changed files with 6312 additions and 366 deletions
|
|
@ -120,4 +120,19 @@ internal static class EngineJsonStore
|
|||
fields[field] = doc.RootElement.Clone();
|
||||
Write(fields);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets a single string field (e.g. "LoggingLevel"), preserving every other field.
|
||||
/// </summary>
|
||||
public static void SetString(string field, string value)
|
||||
{
|
||||
Dictionary<string, JsonElement> fields = Read();
|
||||
|
||||
using var ms = new MemoryStream();
|
||||
using (var w = new Utf8JsonWriter(ms))
|
||||
w.WriteStringValue(value);
|
||||
using var doc = JsonDocument.Parse(ms.ToArray());
|
||||
fields[field] = doc.RootElement.Clone();
|
||||
Write(fields);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue