⚠️ SettingsCodec was in the same position and is exported here for the same
reason: PluginLayout.settings has been typed as one since the codec landed,
and the authoring barrel never re-exported it, so docs/adapter-api.md
documents a field whose type a third party could not name. One line, and the
alternative is a port that cannot be implemented from outside.
For messages and the generated JSON Schema only. The core never branches
on it — that is the whole reason this is a codec and not an enum, so a
branch on this field would put the defect straight back.
Methods
parse
parse(text:string):Record<string,unknown>
Throws on malformed text; every caller today already catches.
Parameters
text: string
Returns Record<string,unknown>
render
render(value:Record<string,unknown>):string
The inverse, with the trailing newline the harness's own tooling writes.
⚠️
SettingsCodecwas in the same position and is exported here for the same reason:PluginLayout.settingshas been typed as one since the codec landed, and the authoring barrel never re-exported it, sodocs/adapter-api.mddocuments a field whose type a third party could not name. One line, and the alternative is a port that cannot be implemented from outside.