The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(nodeSummary): remove local truncate wrapper in favor of direct import
Steven Enamakelb7893df58ecc
diff --git a/app/src/lib/flows/nodeSummary.ts b/app/src/lib/flows/nodeSummary.tsindex 02e6e3bd07..394cc05a18 100644--- a/app/src/lib/flows/nodeSummary.ts+++ b/app/src/lib/flows/nodeSummary.ts@@ -26,10 +26,6 @@ function num(config: Record<string, unknown>, key: string): number | undefined {return typeof v === 'number' && Number.isFinite(v) ? v : undefined;}-function truncate(value: string, max = 52): string {- return truncateText(value, max);-}-/*** @param kind the node kind (may be an unknown string for a future kind)* @param config the node's free-form config object@@ -66,7 +62,7 @@ export function describeNode(: t('flows.nodeSummary.agent.defaultModel');return prompt? t('flows.nodeSummary.agent.withPrompt')- .replace('{prompt}', truncate(prompt, 40))+ .replace('{prompt}', truncateText(prompt, 40)).replace('{model}', modelLabel): t('flows.nodeSummary.agent.default').replace('{model}', modelLabel);}@@ -88,7 +84,7 @@ export function describeNode(return url? t('flows.nodeSummary.http.withUrl').replace('{method}', method)- .replace('{url}', truncate(url, 40))+ .replace('{url}', truncateText(url, 40)): t('flows.nodeSummary.http.noUrl').replace('{method}', method);}case 'code': {@@ -163,7 +159,7 @@ export function describeNode(case 'dedup': {const key = str(config, 'key');return key- ? t('flows.nodeSummary.dedup.withKey').replace('{key}', truncate(key, 40))+ ? t('flows.nodeSummary.dedup.withKey').replace('{key}', truncateText(key, 40)): t('flows.nodeSummary.dedup.default');}case 'loop': {@@ -175,7 +171,7 @@ export function describeNode(if (condition) {return t('flows.nodeSummary.loop.whileCondition').replace('{max}', String(max ?? 25))- .replace('{condition}', truncate(condition, 30));+ .replace('{condition}', truncateText(condition, 30));}return t('flows.nodeSummary.loop.upTo').replace('{max}', String(max ?? 25));}