Initial commit
CI / check (push) Successful in 56s

This commit is contained in:
rudder
2026-08-12 14:02:25 +03:00
commit 3ab2d4a6cf
85 changed files with 10257 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { ResolvedRudderClientOptions } from '../client/RudderClientOptions.js';
import type { EffectsCenter } from '../effects/EffectsCenter.js';
/**
* RudderContext — the low-level surface every feature service depends on:
* the HTTP transport, client options, and the effects bus.
*
* Built once by {@link RudderClient} and injected into each service. Services
* depend on this narrow interface instead of on the client itself, so the
* module graph stays acyclic (client → services → context, never back).
*/
export interface RudderContext {
readonly options: ResolvedRudderClientOptions;
readonly effects: EffectsCenter;
request<TResponse>(method: string, path: string, body?: unknown): Promise<TResponse>;
}