File tree Expand file tree Collapse file tree 5 files changed +9
-34
lines changed
Expand file tree Collapse file tree 5 files changed +9
-34
lines changed Original file line number Diff line number Diff line change @@ -5127,11 +5127,11 @@ export function SimilarwebIcon(props: SVGProps<SVGSVGElement>) {
51275127 < path
51285128 d = 'M22.099 5.781c-1.283 -2 -3.14 -3.67 -5.27 -4.52l-0.63 -0.213a7.433 7.433 0 0 0 -2.15 -0.331c-2.307 0.01 -4.175 1.92 -4.175 4.275a4.3 4.3 0 0 0 0.867 2.602l-0.26 -0.342c0.124 0.186 0.26 0.37 0.417 0.556 0.663 0.802 1.604 1.635 2.822 2.58 2.999 2.32 4.943 4.378 5.104 6.93 0.038 0.344 0.062 0.696 0.062 1.051 0 1.297 -0.283 2.67 -0.764 3.635h0.005s-0.207 0.377 -0.077 0.487c0.066 0.057 0.21 0.1 0.46 -0.053a12.104 12.104 0 0 0 3.4 -3.33 12.111 12.111 0 0 0 2.088 -6.635 12.098 12.098 0 0 0 -1.9 -6.692zm-9.096 8.718 -1.878 -1.55c-3.934 -2.87 -5.98 -5.966 -4.859 -9.783a8.73 8.73 0 0 1 0.37 -1.016v-0.004s0.278 -0.583 -0.327 -0.295a12.067 12.067 0 0 0 -6.292 9.975 12.11 12.11 0 0 0 2.053 7.421 9.394 9.394 0 0 0 2.154 2.168H4.22c4.148 3.053 7.706 1.446 7.706 1.446h0.003a4.847 4.847 0 0 0 2.962 -4.492 4.855 4.855 0 0 0 -1.889 -3.87z'
51295129 fill = 'currentColor'
5130- />
5130+ />
51315131 </ svg >
51325132 )
51335133}
5134-
5134+
51355135export function CalComIcon ( props : SVGProps < SVGSVGElement > ) {
51365136 return (
51375137 < svg
Original file line number Diff line number Diff line change @@ -5131,7 +5131,7 @@ export function SimilarwebIcon(props: SVGProps<SVGSVGElement>) {
51315131 </ svg >
51325132 )
51335133}
5134-
5134+
51355135export function CalComIcon ( props : SVGProps < SVGSVGElement > ) {
51365136 return (
51375137 < svg
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
1313 normalizeVariables ,
1414 sanitizeVariable ,
1515} from './normalize'
16- import { resolveValueForDisplay } from './resolve-values'
16+ import { formatValueForDisplay , resolveValueForDisplay } from './resolve-values'
1717
1818const logger = createLogger ( 'WorkflowComparison' )
1919
@@ -322,19 +322,6 @@ export function generateWorkflowDiffSummary(
322322 return result
323323}
324324
325- function formatValueForDisplay ( value : unknown ) : string {
326- if ( value === null || value === undefined ) return '(none)'
327- if ( typeof value === 'string' ) {
328- if ( value . length > 50 ) return `${ value . slice ( 0 , 50 ) } ...`
329- return value || '(empty)'
330- }
331- if ( typeof value === 'boolean' ) return value ? 'enabled' : 'disabled'
332- if ( typeof value === 'number' ) return String ( value )
333- if ( Array . isArray ( value ) ) return `[${ value . length } items]`
334- if ( typeof value === 'object' ) return `${ JSON . stringify ( value ) . slice ( 0 , 50 ) } ...`
335- return String ( value )
336- }
337-
338325/**
339326 * Convert a WorkflowDiffSummary to a human-readable string for AI description generation
340327 */
Original file line number Diff line number Diff line change @@ -32,6 +32,6 @@ export {
3232export type { ResolutionContext , ResolvedValue } from './resolve-values'
3333export {
3434 extractExtendedContext ,
35- getBlockCredentialId ,
35+ formatValueForDisplay ,
3636 resolveValueForDisplay ,
3737} from './resolve-values'
Original file line number Diff line number Diff line change @@ -206,7 +206,10 @@ function parseMcpToolId(toolId: string): string {
206206 return withoutPrefix
207207}
208208
209- function formatValueForDisplay ( value : unknown ) : string {
209+ /**
210+ * Formats a value for display in diff descriptions.
211+ */
212+ export function formatValueForDisplay ( value : unknown ) : string {
210213 if ( value === null || value === undefined ) return '(none)'
211214 if ( typeof value === 'string' ) {
212215 if ( value . length > 50 ) return `${ value . slice ( 0 , 50 ) } ...`
@@ -338,18 +341,3 @@ export async function resolveValueForDisplay(
338341 resolved : false ,
339342 }
340343}
341-
342- /**
343- * Gets the credential ID from a block's subBlocks.
344- * Used to provide credential context for selector resolution.
345- *
346- * @param blockId - The block ID to extract credential from
347- * @param currentState - The current workflow state
348- * @returns The credential ID if found, undefined otherwise
349- */
350- export function getBlockCredentialId (
351- blockId : string ,
352- currentState : WorkflowState
353- ) : string | undefined {
354- return extractExtendedContext ( blockId , currentState ) . credentialId
355- }
You can’t perform that action at this time.
0 commit comments