Skip to content

readInstalledPluginIds

readInstalledPluginIds(read?): Promise<string[] | null>

Defined in: src/service.ts:156

Keys of enabledPlugins in the operator’s global ~/.claude/settings.json — the plugin ids a trimmed auto spawn disables per-spawn (see trimDecision). Enumerated at runtime, never hardcoded, so the trim is machine-agnostic. A successful read+parse yields the ids ([] when the key is absent/empty — nothing enabled means nothing to disable); null when the read or parse THROWS (missing file, bad JSON), so callers can tell a transient error from a legitimately empty config. Async fs only — this server is a single Bun loop pumping the live web terminal, so a sync read here would freeze typing (see src/instrument.ts). read is the test seam; production reads the real file.

(path) => Promise<string>

Promise<string[] | null>