Setu-TS
    Preparing search index...

    Interface IConfigDiagnosticsSource

    Read-only configuration provenance source — the surface the ConfigPlugin registers under CAPABILITIES.CONFIG_DIAGNOSTICS and the DiagnosticsPlugin consumes to serve GET /v1/config.

    Synchronous by contract: snapshot(instanceId) returns an already-built frozen DTO and performs no environment, filesystem, schema, or lazy-service operation, adds no read to the underlying IConfig, and never enumerates it. A source that throws is reported by the connector as a value-free collection-failed snapshot, never as a fault that changes application behavior.

    const source = ctx.services.get<IConfigDiagnosticsSource>(
    CAPABILITIES.CONFIG_DIAGNOSTICS,
    );
    const snapshot = source.snapshot(instanceId);

    0.8.0

    interface IConfigDiagnosticsSource {
        snapshot(instanceId: string): ConfigDiagnosticsSnapshot;
    }
    Index