Skip to content

Commit a91295c

Browse files
committed
feat: Enhance workspace storage management and model handling
- Introduced user storage directory management with fallback to workspace overrides. - Added functions to create and manage workspace overrides, including copying configurations and runtime environments. - Updated initialization and configuration functions to utilize available models more effectively. - Enhanced error handling for model availability and configuration during workflow execution. - Improved user feedback in the UI regarding storage status and model assignments. - Refactored model recommendation logic to streamline model selection based on user preferences and categories. - Added new UI elements for managing workspace overrides and displaying storage information.
1 parent 40b2510 commit a91295c

6 files changed

Lines changed: 477 additions & 75 deletions

File tree

src/cliDetector.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ export interface DetectedEnvironment {
7474
models: ModelInfo[];
7575
}
7676

77+
export function getUsableModels(models: ModelInfo[]): ModelInfo[] {
78+
return models.filter(model => model.id !== '__none__');
79+
}
80+
81+
export function hasUsableModels(models: ModelInfo[]): boolean {
82+
return getUsableModels(models).length > 0;
83+
}
84+
7785
export async function detectEnvironment(): Promise<DetectedEnvironment> {
7886
const config = loadConfig();
7987
const clis: CliInfo[] = [];

0 commit comments

Comments
 (0)