mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-20 19:03:51 +08:00
feat: remove API worker and batch size configurations; update CodexLens settings for v2
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user