Skip to content

Commit ee910db

Browse files
committed
first commit
0 parents  commit ee910db

File tree

88 files changed

+20124
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+20124
-0
lines changed

.cursorignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
2+
dist/
3+
entry/

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: [aib]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish to Comfy registry
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "pyproject.toml"
9+
10+
jobs:
11+
publish-node:
12+
name: Publish Custom Node to registry
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v4
17+
- name: Publish Custom Node
18+
uses: Comfy-Org/publish-node-action@main
19+
with:
20+
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here.

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
__pycache__
2+
hash
3+
.env
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
pnpm-debug.log*
11+
lerna-debug.log*
12+
13+
ui/node_modules
14+
# ui/src/utils/encryptUtils.ts
15+
db
16+
dist-ssr
17+
*.local
18+
backup
19+
# Editor directories and files
20+
.vscode/*
21+
!.vscode/extensions.json
22+
.idea
23+
.DS_Store
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
.cache
30+
# dev
31+
ui/yarn.lock

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (C) 2025 AIDC-AI
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<div align="center">
2+
3+
# 🚀 ComfyUI-Copilot: Your Intelligent Assistant for Comfy-UI
4+
5+
<!-- Enhancing Image Generation Development with Smart Assistance -->
6+
7+
<h4 align="center">
8+
9+
<div align="center">
10+
<img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version">
11+
<img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License">
12+
<img src="https://img.shields.io/github/stars/your-repo/ComfyUI-Copilot?color=yellow" alt="Stars">
13+
<img src="https://img.shields.io/github/issues/your-repo/ComfyUI-Copilot?color=red" alt="Issues">
14+
<img src="https://img.shields.io/badge/python-3.10%2B-purple.svg" alt="Python">
15+
16+
</h4>
17+
18+
19+
👾 _**AIDC**_
20+
21+
[**Github**](https://github.com/AIDC-AI/ComfyUI-Copilot) 📑
22+
23+
</div>
24+
25+
<视频链接占位符>
26+
27+
## 🌟 Introduction
28+
29+
Welcome to **ComfyUI-Copilot**, an intelligent assistant built on the Comfy-UI framework that simplifies and enhances the AI algorithm debugging and deployment process through natural language interactions.
30+
31+
Whether it's generating text, images, or audio, ComfyUI-Copilot offers intuitive node recommendations, workflow building aids, and model querying services to streamline your development process.
32+
33+
<div align="center">
34+
<img src="assets/Framework.png"/>
35+
</div>
36+
37+
---
38+
39+
## 🤔 Why Choose ComfyUI-Copilot?
40+
41+
- **Ease of Use**: Lower the barriers to entry with natural language interaction, making Comfy-UI accessible even for beginners.
42+
- **Smart Recommendations**: Leverage AI-driven node suggestions and workflow implementations to boost development efficiency.
43+
- **Real-Time Assistance**: Benefit from round-the-clock interactive support to address any issues encountered during development.
44+
45+
---
46+
47+
## ⚙️ Core Features
48+
49+
- **Interactive Q&A Bot**: Access a robust Q&A platform where users can inquire about model intricacies, node details, and parameter utilization with ease.
50+
- **Natural Language Node Suggestions**: Employ our advanced search mechanism to swiftly identify desired nodes and enhance workflow construction efficacy.
51+
<img src="assets/comfycopilot_nodes_recommend.gif"/>
52+
- **Node Query System**: Dive deeper into nodes by exploring their explanations, parameter definitions, usage tips, and downstream workflow recommendations.
53+
<img src="assets/comfycopilot_nodes_search.gif"/>
54+
- **Smart Workflow Assistance**: Automatically discern developer needs to recommend and build fitting workflow frameworks, minimizing manual setup time.
55+
<img src="assets/工作流检索.png"/>
56+
- **Model Querying**: Prompt Copilot to seek foundational models and 'lora' based on requirements.
57+
- **Up-and-Coming Features**:
58+
59+
- **Automated Parameter Tuning**: Exploit machine learning algorithms for seamless analysis and optimization of critical workflow parameters.
60+
- **Error Diagnosis and Fix Suggestions**: Receive comprehensive error insights and corrective advice to swiftly pinpoint and resolve issues.
61+
62+
---
63+
64+
## 🚀 Getting Started
65+
66+
**Repository Overview**: Visit the [GitHub Repository](https://code.alibaba-inc.com/aidc-innovation/ComfyUI-Copilot) to access the complete codebase.
67+
68+
1. **Installation**:
69+
70+
```bash
71+
cd ComfyUI/custom_nodes
72+
git clone [email protected]:aidc-innovation/ComfyUI-Copilot.git
73+
```
74+
75+
or
76+
77+
```bash
78+
cd ComfyUI/custom_nodes
79+
git clone http://gitlab.alibaba-inc.com/aidc-innovation/ComfyUI-Copilot.git
80+
```
81+
2. **Activation**: After running the ComfyUI project, find the Copilot activation button at the top-right corner of the board to launch its service.
82+
3. **API Key Application**: For internal users, obtain the API key from the [access link](https://aidc-appsmith.alibaba-inc.com/app/comfyui-copilot-website/page1-677648e0b007d02d2b193eeb) and insert it on the Copilot settings page for uninterrupted ComfyUI-Copilot services.
83+
84+
---
85+
86+
## 🤝 Contributions
87+
88+
We welcome any form of contribution! Feel free to make issues, pull requests, or suggest new features.
89+
90+
---
91+
92+
## 📞 Contact Us
93+
94+
For any queries or suggestions, please feel free to contact: [email protected]
95+
96+
---
97+
98+
## 📄 License
99+
100+
This project is licensed under the MIT License - see the [LICENSE](https://opensource.org/licenses/MIT) file for details.
101+
102+
---
103+
104+
### [Image Placement Placeholder]
105+
106+
_(A visually engaging illustration or screenshot of ComfyUI-Copilot in action, highlighting its interface and showcasing user interaction.)_
107+
108+
---
109+
110+
This refactored README not only enhances the technical prowess of ComfyUI-Copilot but also makes it more appealing and accessible to users. It strategically spots where visual aids could further engage viewers and clarifies the setup and utilization of the tool.

README_for_developer.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test

__init__.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (C) 2025 AIDC-AI
2+
# Licensed under the MIT License.
3+
4+
import asyncio
5+
import server
6+
from aiohttp import web
7+
import folder_paths
8+
from .service.conversation_service import *
9+
10+
WEB_DIRECTORY = "entry"
11+
NODE_CLASS_MAPPINGS = {}
12+
__all__ = ['NODE_CLASS_MAPPINGS']
13+
version = "V2.1.0"
14+
15+
workspace_path = os.path.join(os.path.dirname(__file__))
16+
comfy_path = os.path.dirname(folder_paths.__file__)
17+
db_dir_path = os.path.join(workspace_path, "db")
18+
19+
dist_path = os.path.join(workspace_path, 'dist/copilot_web')
20+
if os.path.exists(dist_path):
21+
server.PromptServer.instance.app.add_routes([
22+
web.static('/copilot_web/', dist_path),
23+
])
24+
else:
25+
print(f"🦄🦄🔴🔴Error: Web directory not found: {dist_path}")

assets/Framework.png

732 KB
Loading
7.38 MB
Loading

0 commit comments

Comments
 (0)