feat: subagent list dialog - working

This commit is contained in:
tanzhenxin
2025-09-04 16:34:51 +08:00
parent 9fcc7a4cbe
commit e44e28a640
24 changed files with 1340 additions and 307 deletions

View File

@@ -0,0 +1,9 @@
import { COLOR_OPTIONS } from './constants.js';
export const shouldShowColor = (backgroundColor?: string): boolean =>
backgroundColor !== undefined && backgroundColor !== 'auto';
export const getColorForDisplay = (colorName?: string): string | undefined =>
!colorName || colorName === 'auto'
? undefined
: COLOR_OPTIONS.find((color) => color.name === colorName)?.value;