Skip to main content

Module settings

Module settings 

Source
Expand description

Settings: global settings.json merged with the trusted project’s.

Port of packages/coding-agent/src/core/settings-manager.ts in pi v1.0.0. Each scope is an order-preserving document. Edits re-read its file under the file’s lock, change it and write it back the way pi does. Readers use the typed view of the merged document.

Structs§

SettingsManager
Both scopes and their merged view.

Enums§

Scope
Which file a setting lives in.
SettingsError
Settings errors.

Functions§

js_string
JavaScript’s String(value) for a JSON value.