- #70: implémentation suppression modèles locaux téléchargés - #100: correction scroll OpenCode - #102: correction fit TUI après switch/layout - memory note scoping UX
This commit is contained in:
@ -99,6 +99,17 @@ export type ModelSource =
|
||||
| { type: "localPath"; path: string }
|
||||
| { type: "huggingFace"; repo: string };
|
||||
|
||||
/**
|
||||
* Derived state of an IdeA-managed local model artifact cache (#70, mirror of
|
||||
* `ModelArtifactDto`, tagged on `state`). Only Hugging Face sources are managed;
|
||||
* local `.gguf` paths stay `notManaged`.
|
||||
*/
|
||||
export type ModelArtifact =
|
||||
| { state: "notManaged" }
|
||||
| { state: "missing" }
|
||||
| { state: "downloading" }
|
||||
| { state: "downloaded"; path: string; sizeBytes?: number };
|
||||
|
||||
/**
|
||||
* A declared local model server (F35, mirror of the backend flat
|
||||
* `LocalModelServerConfigDto`, camelCase wire). Global to IdeA (not project
|
||||
@ -138,6 +149,8 @@ export interface LocalModelServerConfig {
|
||||
args: string[];
|
||||
autoStart: boolean;
|
||||
stopPolicy: StopPolicy;
|
||||
/** Derived managed artifact cache state. Present on list results. */
|
||||
artifact?: ModelArtifact;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user