feat: rename data directory, add global project settings, multi-project CLI commands, and provider badge in model selector

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-02 09:10:42 -07:00
parent 1fa8837c6b
commit 566f531361
80 changed files with 857 additions and 652 deletions

View File

@@ -1,7 +1,7 @@
/**
* projectDetection.ts - Client-side project detection utilities
*
* Provides utilities for scanning and detecting kb projects.
* Provides utilities for scanning and detecting fusion projects.
* These functions prepare data for API calls rather than accessing
* the filesystem directly (which is not possible from browser).
*/
@@ -134,11 +134,11 @@ function getDefaultScanPath(): string {
/**
* Sorts detected projects by likelihood of being a kb project.
* Projects with .kb/kb.db are ranked higher.
* Projects with .fusion/fusion.db are ranked higher.
*/
export function sortDetectedProjects(projects: DetectedProject[]): DetectedProject[] {
return [...projects].sort((a, b) => {
// Existing projects (with kb.db) come first
// Existing projects (with fusion.db) come first
if (a.existing && !b.existing) return -1;
if (!a.existing && b.existing) return 1;
return 0;