File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
lib/copilot/tools/server/blocks Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 11import { getBlock } from '@/blocks'
2+ import { isHiddenFromDisplay } from '@/blocks/types'
23import { isTriggerBehavior , isTriggerInternalKey } from '@/executor/constants'
34import type { NormalizedBlockOutput } from '@/executor/types'
45import type { SerializedBlock } from '@/serializer/types'
@@ -29,12 +30,8 @@ export function filterOutputForLog(
2930 // Skip internal keys (underscore prefix)
3031 if ( key . startsWith ( '_' ) ) continue
3132
32- // Skip fields marked as hidden in block config
33- if ( blockConfig ?. outputs ) {
34- const outputDef = blockConfig . outputs [ key ]
35- if ( outputDef && typeof outputDef === 'object' && outputDef . hiddenFromDisplay ) {
36- continue
37- }
33+ if ( blockConfig ?. outputs && isHiddenFromDisplay ( blockConfig . outputs [ key ] ) ) {
34+ continue
3835 }
3936
4037 // Skip runtime-injected trigger keys not in block config
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ function extractOutputs(
357357 // Use block-level outputs
358358 if ( blockConfig . outputs ) {
359359 for ( const [ key , def ] of Object . entries ( blockConfig . outputs ) ) {
360- if ( def && typeof def === 'object' && ( def as any ) . hiddenFromDisplay ) continue
360+ if ( isHiddenFromDisplay ( def ) ) continue
361361 outputs [ key ] = extractOutputField ( def )
362362 }
363363 }
You can’t perform that action at this time.
0 commit comments