* chore: add react developer tools to electron * feat: add small convert modal * feat: separate modals and add hugging face extension * feat: fully implement hugging face converter * fix: forgot to uncomment this... * fix: typo * feat: try hf-to-gguf script first and then use convert.py HF-to-GGUF has support for some unusual models maybe using convert.py first would be better but we can change the usage order later * fix: pre-install directory changed * fix: sometimes exit code is undefined * chore: download additional files for qwen * fix: event handling changed * chore: add one more necessary package * feat: download gguf-py from llama.cpp * fix: cannot interpret wildcards on GNU tar Co-authored-by: hiento09 <136591877+hiento09@users.noreply.github.com> --------- Co-authored-by: hiento09 <136591877+hiento09@users.noreply.github.com>
37 lines
1020 B
TypeScript
37 lines
1020 B
TypeScript
export enum ExtensionTypeEnum {
|
|
Assistant = 'assistant',
|
|
Conversational = 'conversational',
|
|
Inference = 'inference',
|
|
Model = 'model',
|
|
SystemMonitoring = 'systemMonitoring',
|
|
HuggingFace = 'huggingFace',
|
|
}
|
|
|
|
export interface ExtensionType {
|
|
type(): ExtensionTypeEnum | undefined
|
|
}
|
|
/**
|
|
* Represents a base extension.
|
|
* This class should be extended by any class that represents an extension.
|
|
*/
|
|
export abstract class BaseExtension implements ExtensionType {
|
|
/**
|
|
* Returns the type of the extension.
|
|
* @returns {ExtensionType} The type of the extension
|
|
* Undefined means its not extending any known extension by the application.
|
|
*/
|
|
type(): ExtensionTypeEnum | undefined {
|
|
return undefined
|
|
}
|
|
/**
|
|
* Called when the extension is loaded.
|
|
* Any initialization logic for the extension should be put here.
|
|
*/
|
|
abstract onLoad(): void
|
|
/**
|
|
* Called when the extension is unloaded.
|
|
* Any cleanup logic for the extension should be put here.
|
|
*/
|
|
abstract onUnload(): void
|
|
}
|