MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / headersToConfigValues

Function headersToConfigValues

packages/core/config/src/sink.ts:31–38  ·  view source on GitHub ↗
(
  headers: Record<string, PluginHeaderValue> | undefined,
)

Source from the content-addressed store, hash-verified

29};
30
31export const headersToConfigValues = (
32 headers: Record<string, PluginHeaderValue> | undefined,
33): Record<string, ConfigHeaderValue> | undefined => {
34 if (!headers) return undefined;
35 const out: Record<string, ConfigHeaderValue> = {};
36 for (const [k, v] of Object.entries(headers)) out[k] = headerToConfigValue(v);
37 return out;
38};
39
40export interface ConfigFileSink {
41 readonly upsertIntegration: (integration: IntegrationConfig) => Effect.Effect<void>;

Callers

nothing calls this directly

Calls 1

headerToConfigValueFunction · 0.85

Tested by

no test coverage detected