mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
Add node pack actions: install, uninstall, enable, disable, change version (#3016)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -5,11 +5,6 @@ type RegistryPack = components['schemas']['Node']
|
||||
type WorkflowNodeProperties = ComfyWorkflowJSON['nodes'][0]['properties']
|
||||
export type PackField = keyof RegistryPack | null
|
||||
|
||||
export type PackWithSelectedVersion = {
|
||||
nodePack: RegistryPack
|
||||
selectedVersion?: InstallPackParams['selected_version']
|
||||
}
|
||||
|
||||
export interface TabItem {
|
||||
id: string
|
||||
label: string
|
||||
@@ -175,10 +170,6 @@ export interface InstallPackParams extends ManagerPackInfo {
|
||||
* Semantic version, Git commit hash, `latest`, or `nightly`.
|
||||
*/
|
||||
selected_version: WorkflowNodeProperties['ver'] | SelectedVersion
|
||||
/**
|
||||
* If set to `imported`, returns only the packs that were imported at app startup.
|
||||
*/
|
||||
mode?: 'imported' | 'default'
|
||||
/**
|
||||
* The GitHub link to the repository of the pack to install.
|
||||
* Required if `selected_version` is `nightly`.
|
||||
@@ -189,6 +180,7 @@ export interface InstallPackParams extends ManagerPackInfo {
|
||||
* Used in coordination with pip package whitelist and version lock features.
|
||||
*/
|
||||
pip?: string[]
|
||||
mode: ManagerDatabaseSource
|
||||
channel: ManagerChannel
|
||||
skip_post_install?: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user