feat: remove API worker and batch size configurations; update CodexLens settings for v2

This commit is contained in:
catlog22
2026-03-17 20:44:26 +08:00
parent f37189dc64
commit ef2c5a58e1
11 changed files with 313 additions and 142 deletions

View File

@@ -2356,6 +2356,28 @@ async function executeV2BridgeCommand(
});
}
/**
* List known models via v2 bridge (list-models subcommand).
* Returns JSON array of {name, type, installed, cache_path}.
*/
export async function executeV2ListModels(): Promise<SearchResult> {
return executeV2BridgeCommand('list-models', []);
}
/**
* Download a single model by name via v2 bridge (download-model subcommand).
*/
export async function executeV2DownloadModel(modelName: string): Promise<SearchResult> {
return executeV2BridgeCommand('download-model', [modelName], { timeout: 600000 });
}
/**
* Delete a model from cache via v2 bridge (delete-model subcommand).
*/
export async function executeV2DeleteModel(modelName: string): Promise<SearchResult> {
return executeV2BridgeCommand('delete-model', [modelName]);
}
/**
* Action: init (v2) - Initialize index and sync files.
*/