Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
refactor(mcp-host): stop exporting helpers only their own module calls
marcotebb0df4b581e3b
diff --git a/mcp-host/src/workflow/dashboardCharts.ts b/mcp-host/src/workflow/dashboardCharts.tsindex 4d55ea550..31f53237b 100644--- a/mcp-host/src/workflow/dashboardCharts.ts+++ b/mcp-host/src/workflow/dashboardCharts.ts@@ -410,7 +410,7 @@ export interface PreparedChart {}/** Validate one chart spec found at `where` in the arguments. */-export function prepareDashboardChart(raw: unknown, where: string): PreparedChart {+function prepareDashboardChart(raw: unknown, where: string): PreparedChart {if (!isRecord(raw)) {return {warnings: [],diff --git a/mcp-host/src/workflow/embeddedImages.ts b/mcp-host/src/workflow/embeddedImages.tsindex c04972aca..23b128da0 100644--- a/mcp-host/src/workflow/embeddedImages.ts+++ b/mcp-host/src/workflow/embeddedImages.ts@@ -200,7 +200,7 @@ export function fitImageBox(}/** The path an image argument names: a filename, or an object carrying `path`. */-export function imageRefPath(ref: unknown): string | undefined {+function imageRefPath(ref: unknown): string | undefined {if (typeof ref === 'string') return ref.trim() || undefinedif (ref && typeof ref === 'object') {const p = (ref as { path?: unknown }).path@@ -218,7 +218,7 @@ export function imageRefPath(ref: unknown): string | undefined {* failing the whole document for it helped nobody. Returns undefined, with a* warning, when the file is missing.*/-export function resolveImagePath(+function resolveImagePath(requested: string,outputDir: string,warnings: string[]diff --git a/mcp-host/src/workflow/pptxTables.ts b/mcp-host/src/workflow/pptxTables.tsindex 6d7e40a98..e03c334e2 100644--- a/mcp-host/src/workflow/pptxTables.ts+++ b/mcp-host/src/workflow/pptxTables.ts@@ -35,7 +35,7 @@ export interface TableLayout {}/** Body text size for a table of `columns` columns on a slide of this width class. */-export function tableFontSize(columns: number, wide: boolean): number {+function tableFontSize(columns: number, wide: boolean): number {const base = wide ? 12 : 10return Math.max(base - (columns >= 7 ? 2 : columns >= 5 ? 1 : 0), 8)}diff --git a/mcp-host/src/workflow/xlsxFormats.ts b/mcp-host/src/workflow/xlsxFormats.tsindex 9030489da..0f24391ca 100644--- a/mcp-host/src/workflow/xlsxFormats.ts+++ b/mcp-host/src/workflow/xlsxFormats.ts@@ -112,7 +112,7 @@ export function formatSpec(value: unknown): FormatSpec | undefined {}/** Header words, lowercased and without accents: "Tasa de conversión" → tasa, de, conversion. */-export function headerTokens(header: unknown): string[] {+function headerTokens(header: unknown): string[] {return String(header ?? '').replace(/([a-z])([A-Z])/g, '$1 $2').normalize('NFD')diff --git a/mcp-host/src/workflow/xlsxSheet.ts b/mcp-host/src/workflow/xlsxSheet.tsindex 4d98736e9..815d1fff2 100644--- a/mcp-host/src/workflow/xlsxSheet.ts+++ b/mcp-host/src/workflow/xlsxSheet.ts@@ -200,7 +200,7 @@ const NAMED_COLORS: Record<string, string> = {* Excel ARGB ("FF1E3A8A"), rgb(), or a basic CSS name. Alpha is dropped:* Excel fills and fonts are opaque.*/-export function parseColor(input: unknown): string | undefined {+function parseColor(input: unknown): string | undefined {const text = String(input ?? '').trim()const css = text.startsWith('#')const hex = css ? text.slice(1) : text