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:
Christian Byrne
2025-03-13 10:53:56 -07:00
committed by GitHub
parent fe5e4e0d8a
commit 8b69b280fa
23 changed files with 671 additions and 339 deletions

View File

@@ -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
}