Parameters
resolveSettings() accepts a single options object. All fields are optional.
| Parameter | Type | Default | Description |
|---|---|---|---|
options.cwd | string | process.cwd() | Directory to resolve project and local settings relative to |
options.settingSources | SettingSource[] | All sources | Which filesystem sources to load. Pass [] to skip user, project, and local settings. Endpoint-managed policy loads in all cases. resolveSettings() includes server-managed settings only when you pass options.serverManagedSettings |
options.managedSettings | Settings | undefined | Policy-tier settings supplied by the embedding host. Follows the same rules as managedSettings in Options, except that resolveSettings() doesn't execute a configured policyHelper, so the snapshot can include settings that a live session drops |
options.serverManagedSettings | Settings | undefined | Server-managed settings payload from /api/claude_code/settings. Non-restrictive keys pass through unfiltered |