mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
feat: unify CLI output handling and enhance theme variables
- Updated `CliStreamMonitorNew`, `CliStreamMonitorLegacy`, and `CliViewerPage` components to prioritize `unitContent` from payloads, falling back to `data` when necessary. - Enhanced `colorGenerator` to include legacy variables for compatibility with shadcn/ui. - Refactored orchestrator index to unify node exports under a single module. - Improved `appStore` to clear both new and legacy CSS variables when applying themes. - Added new options to CLI execution for raw and final output modes, improving programmatic output handling. - Enhanced `cli-output-converter` to normalize cumulative delta frames and avoid duplication in streaming outputs. - Introduced a new unified workflow specification for prompt template-based workflows, replacing the previous multi-type node system. - Added tests for CLI final output handling and streaming output converter to ensure correct behavior in various scenarios.
This commit is contained in:
@@ -51,8 +51,9 @@ const applyThemeToDocument = (
|
||||
document.documentElement.classList.remove('light', 'dark');
|
||||
document.documentElement.classList.add(resolvedTheme);
|
||||
|
||||
// Clear custom CSS variables list
|
||||
// Clear custom CSS variables list (includes both new and legacy variables)
|
||||
const customVars = [
|
||||
// New theme system variables
|
||||
'--bg', '--bg-secondary', '--surface', '--surface-hover',
|
||||
'--border', '--border-hover', '--text', '--text-secondary',
|
||||
'--text-tertiary', '--text-disabled', '--accent', '--accent-hover',
|
||||
@@ -63,7 +64,13 @@ const applyThemeToDocument = (
|
||||
'--warning', '--warning-light', '--warning-text', '--error',
|
||||
'--error-light', '--error-text', '--info', '--info-light',
|
||||
'--info-text', '--destructive', '--destructive-hover', '--destructive-light',
|
||||
'--hover', '--active', '--focus'
|
||||
'--hover', '--active', '--focus',
|
||||
// Legacy shadcn/ui compatibility variables
|
||||
'--background', '--foreground', '--card', '--card-foreground',
|
||||
'--primary-foreground', '--secondary-foreground', '--accent-foreground',
|
||||
'--destructive-foreground', '--muted-foreground', '--sidebar-background',
|
||||
'--sidebar-foreground', '--input', '--ring', '--indigo', '--indigo-light',
|
||||
'--orange', '--orange-light'
|
||||
];
|
||||
|
||||
// Apply custom theme or preset theme
|
||||
|
||||
Reference in New Issue
Block a user