From cf749073df5f64572a00680f1d22680ded9cc3cf Mon Sep 17 00:00:00 2001
From: Xinfan Chen <xinfanchen@XinfandeMac-mini.local>
Date: Fri, 27 Mar 2026 11:54:42 +0800
Subject: [PATCH] 前端、飞书、微信均能正常使用
---
aigc-director/aigc-claw/backend/api_server.py | 2
aigc-director/references/run_project/start_backend.md | 5
aigc-director/references/send_message/wechat.md | 39 +++++
aigc-director/SKILL.md | 53 +++++--
FilmAgent.md | 143 ++++++++++++++++++++
aigc-director/references/run_project/start_frontend.md | 5
README.md | 143 --------------------
7 files changed, 223 insertions(+), 167 deletions(-)
diff --git a/FilmAgent.md b/FilmAgent.md
new file mode 100644
index 0000000..c7b9699
--- /dev/null
+++ b/FilmAgent.md
@@ -0,0 +1,143 @@
+<p align="center">
+ <img src="pics/cover_page.jpg" width="300" style="margin-bottom: 0.2;"/>
+<p>
+
+<h2 align="center"> <a href="https://github.com/HITsz-TMG/FilmAgent">FilmAgent: A Multi-Agent Framework for End-to-End Film Automation in Virtual 3D Spaces</a></h2>
+<!-- <h5 align="center"> If you like our project, please consider giving us a star ⭐ on GitHub to stay updated with the latest developments. </h2> -->
+<h4 align="center">
+
+<div align="center">
+<img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version">
+<img src="https://img.shields.io/badge/License-Apache%202.0-green.svg" alt="License">
+<img src="https://img.shields.io/github/stars/HITsz-TMG/FilmAgent?color=yellow" alt="Stars">
+<img src="https://img.shields.io/github/issues/HITsz-TMG/FilmAgent?color=red" alt="Issues">
+<img src="https://img.shields.io/badge/python-3.8-purple.svg" alt="Python">
+
+<!-- <img src="https://img.shields.io/github/stars/AIDC-AI/Marco-o1?color=yellow" alt="Stars"> -->
+
+<!-- [](https://filmagent.github.io/)
+[](https://arxiv.org/abs/2501.12909)
+[](https://www.youtube.com/watch?v=hTI-0777iHU)
+ -->
+
+</h4>
+
+<div align="center">
+
+<!-- **Affiliations:** -->
+
+_**Zhenran Xu, Longyue Wang, Jifang Wang, Zhouyi Li, Senbao Shi, Xue Yang, Yiyu Wang, Baotian Hu, Jun Yu, Min Zhang**_
+
+🎯 [**Project Page**](https://filmagent.github.io) :octocat: [**Code**](https://github.com/HITsz-TMG/FilmAgent) 📝 [**Paper**](https://arxiv.org/abs/2501.12909) 🧑💻 [**Slides**](https://filmagent.github.io/static/SA24_FilmAgent.pdf) 📽️ [**Video**](https://www.youtube.com/watch?v=hTI-0777iHU)
+
+<a href="https://trendshift.io/repositories/12871" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12871" alt="HITsz-TMG%2FFilmAgent | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+
+</div>
+
+#
+
+**FilmAgent** is a multi-agent collaborative system for end-to-end film automation in 3D virtual spaces.
+FilmAgent simulates key crew roles—directors, screenwriters, actors, and cinematographers, and integrates efficient human workflows within a sandbox environment.
+
+<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/intro.png" height="100%" width="78%"/></div>
+
+## 💥 News
+
+- `2025/2/24`: 🚀 We have integrated **DeepSeek**-v3 and r1 for model selection, allowing for more sophisticated decision-making processes.
+- `2025/2/11`: 🎬 We’ve just released a fan-made video about ***NeZha2***, in celebration of its record-breaking success at the box office. Click the image below to watch the video! 👇
+ [<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/nezha_youtube.png" width="450"></div>](https://www.youtube.com/watch?v=jY3n-AzBtUQ)
+- `2025/1/23`: 🙌 We're excited that FilmAgent is recommended by [AK](https://x.com/_akhaliq/status/1882268452716728789), [el.cine](https://x.com/EHuanglu/status/1882294685919772928) and [Theoretically Media](https://www.youtube.com/watch?v=0ebXKegfxWk&t=899s). Thanks!
+- `2025/1/22`: 📄 Our paper is now accessible at https://arxiv.org/abs/2501.12909.
+
+
+
+## 🚀 Framework
+
+Following the traditional film studio workflow, we divide the whole film automation process into three sequential stages: idea development, scriptwriting and cinematography, and apply the **Critique-Correct-Verify**, **Debate-Judge** collaboration strategies. After these stages, each line in the script is specified with the positions of the actors, their actions, their dialogue, and the chosen camera shots.
+
+<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/framework.png" height="100%" width="85%"/></div>
+
+## 🌟 Build Your own Film with FilmAgent
+
+1. Install Package
+```Shell
+conda create -n filmagent python==3.9.18
+conda activate filmagent
+pip install -r env.txt
+```
+
+2. Create `Script` and `Logs` folders in the Filmagent directory, then replace the absolute pathname '/path/to/' with your specific path and modify the `topic` in the `main.py`. Modify the api_key in `LLMCaller.py`. Run the following commands to get the movie script created by the agents collaboratively:
+```bash
+cd /path/to/FilmAgent
+conda activate filmagent
+python main.py --model "gpt-4o" # openai
+# python main.py --model "deepseek-chat" ## deepseek-v3
+# python main.py --model "deepseek-reasoner" ## deepseek-r1 Using this model for a multi-agent process will be very slow, you could try using a single-agent process instead. (Refer to step 6)
+```
+
+3. We use [ChatTTS](https://github.com/2noise/ChatTTS) to provide voice acting for the characters in the script. You need to download the [ChatTTS](https://github.com/2noise/ChatTTS) repository to the `TTS` directory. Then replace the absolute pathname '/path/to/' with your specific path in the `tts_main.py`. Run the following commands to deploy the text-to-speech service:
+```bash
+cd /path/to/TTS
+conda create -n tts python==3.9.18
+conda activate tts
+pip install -r env_tts.txt
+python tts_main.py
+```
+
+4. Modify the `Script_path`, `actos_path`, `Audio_path` and `url` in the `GenerateAudio.py`. Run the following commands to get the audio files:
+```bash
+cd /path/to/FilmAgent
+conda activate filmagent
+python GenerateAudio.py
+```
+
+5. We now have the `script.json`, `actors_profile.json`, and a series of `.wav` audio files. Next, we need to execute the script in Unity. The recommended version of the Unity editor is **Unity 2022.3.14f1c1**. You need to download the Unity project file we provide [[Dropbox](https://www.dropbox.com/scl/fi/atxhxnqppeofmt471dxr5/TheBigBang.zip?rlkey=o7zuqficetabkk2h1w1npkv3v&st=5s41rzdv&dl=0)][[Baidu Disk](https://pan.baidu.com/s/10wgfvtcG-xnx1fA9Rd_zwg?pwd=5aif)]. After decompression, open `TheBigBang\Assets\TheBigBang\Manyrooms.unity` with Unity. Then replace all the absolute pathnames '/path/to/' with your specific path in `TheBigBang\Assets\Scirpts\StartVideo.cs` and `TheBigBang\Assets\Scirpts\ScriptExecute.cs`. Press **'ctrl+R'** in the unity interface to recompile, click **'Play'** to enter Game mode, then press **'E'** to start executing the script (sometimes the audio files load slowly, so you may need to play it 2 or 3 times before it can run normally).
+
+> [!IMPORTANT]
+> Please add `"com.unity.nuget.newtonsoft-json": "3.0.2"` inside `Packages/manifest.json` if it throws an error, "*the type or namespace name jobject could not be found.*"
+
+<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/unity_1.png" height="100%" width="50%"/><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/unity_2.png" height="100%" width="50%"/></div>
+
+6. For the tests on 15 topics in our experimental section, we provide three .py files: `test_full.py` (The full FilmAgent framework, utilizing multi-agent collaboration.), `test_no_interation.py` (A single agent is responsible for planning, scriptwriting, and cinematography, representing our FilmAgent framework without multi-agent collaboration algorithms.) and `test_cot.py` (A single agent generates the chain-of-thought rationale and the complete script). Modify the `model` in these `.py` files, you can try different LLMs.
+
+## 🌈 Case Study
+
+### 🤝 What does Multi-Agent Collaboration do?
+The following table records some comparisons of the scripts and camera settings **before (⬅️) and after (➡️)** multi-agent collaboration, with excerpts from their discussion process.
+
+<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/cases.png" height="100%" width="70%"/></div>
+
+📌 **Case Highlights:**
+- **Case #1** shows that Director-Screenwriter discussion reduces hallucinations in non-existent actions (e.g., standing suggest), enhances plot coherence, and ensures consistency across scenes.
+- **Case #2** shows that Actor-Director-Screenwriter discussion improves the alignment of dialogue with character profiles.
+- **Case #3**, in the Debate-Judge method in cinematography, demonstrates the correction of an inappropriate dynamic shot, which is replaced with a medium shot to better convey body language.
+- **Case #4** replaces a series of identical static shots with a mix of dynamic and static shots, resulting in a more diverse camera setup.
+
+### ⚖️ Comparison with Sora
+
+<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/sora.png" height="100%" width="70%"/></div>
+
+While Sora (🔗 [Video](https://github.com/user-attachments/assets/65bb4c12-cba0-4ee9-a673-63ea5103fd76)) shows great adaptability to diverse locations, characters and shots, it **struggles with consistency and narrative delivery**, along with **strange artifacts**.
+
+In contrast, FilmAgent requires pre-built 3D spaces, but it produces **coherent, physics-compliant** videos with strong **storytelling capabilities** (▶️ Watch on [Youtube](https://www.youtube.com/watch?v=yOOycdfolFY)).
+
+### ✨ Integration with Text-to-Video Models (e.g. Sora, Vidu)
+
+We are currently working towards **merging the power of text-to-video models with FilmAgent**, unlocking enhanced storytelling, greater adaptability, and improved consistency. 🚀
+
+Here is a preview of our work—a fan-made tribute to the box office phenomenon *NeZha2* [▶️[video link](https://www.youtube.com/watch?v=jY3n-AzBtUQ)]. This video celebrates *NeZha2* surpassing a CNY 8 billion at the box office, officially crowning it as the highest-grossing film in a single territory! 🎉
+
+## 📚 Citation
+
+If you find FilmAgent useful for your research and applications, please cite using this BibTeX:
+```bibtex
+@misc{xu2025filmagent,
+ title={FilmAgent: A Multi-Agent Framework for End-to-End Film Automation in Virtual 3D Spaces},
+ author={Zhenran Xu and Longyue Wang and Jifang Wang and Zhouyi Li and Senbao Shi and Xue Yang and Yiyu Wang and Baotian Hu and Jun Yu and Min Zhang},
+ year={2025},
+ eprint={2501.12909},
+ archivePrefix={arXiv},
+ primaryClass={cs.CL},
+ url={https://arxiv.org/abs/2501.12909},
+}
+```
diff --git a/README.md b/README.md
index c7b9699..e69de29 100644
--- a/README.md
+++ b/README.md
@@ -1,143 +0,0 @@
-<p align="center">
- <img src="pics/cover_page.jpg" width="300" style="margin-bottom: 0.2;"/>
-<p>
-
-<h2 align="center"> <a href="https://github.com/HITsz-TMG/FilmAgent">FilmAgent: A Multi-Agent Framework for End-to-End Film Automation in Virtual 3D Spaces</a></h2>
-<!-- <h5 align="center"> If you like our project, please consider giving us a star ⭐ on GitHub to stay updated with the latest developments. </h2> -->
-<h4 align="center">
-
-<div align="center">
-<img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version">
-<img src="https://img.shields.io/badge/License-Apache%202.0-green.svg" alt="License">
-<img src="https://img.shields.io/github/stars/HITsz-TMG/FilmAgent?color=yellow" alt="Stars">
-<img src="https://img.shields.io/github/issues/HITsz-TMG/FilmAgent?color=red" alt="Issues">
-<img src="https://img.shields.io/badge/python-3.8-purple.svg" alt="Python">
-
-<!-- <img src="https://img.shields.io/github/stars/AIDC-AI/Marco-o1?color=yellow" alt="Stars"> -->
-
-<!-- [](https://filmagent.github.io/)
-[](https://arxiv.org/abs/2501.12909)
-[](https://www.youtube.com/watch?v=hTI-0777iHU)
- -->
-
-</h4>
-
-<div align="center">
-
-<!-- **Affiliations:** -->
-
-_**Zhenran Xu, Longyue Wang, Jifang Wang, Zhouyi Li, Senbao Shi, Xue Yang, Yiyu Wang, Baotian Hu, Jun Yu, Min Zhang**_
-
-🎯 [**Project Page**](https://filmagent.github.io) :octocat: [**Code**](https://github.com/HITsz-TMG/FilmAgent) 📝 [**Paper**](https://arxiv.org/abs/2501.12909) 🧑💻 [**Slides**](https://filmagent.github.io/static/SA24_FilmAgent.pdf) 📽️ [**Video**](https://www.youtube.com/watch?v=hTI-0777iHU)
-
-<a href="https://trendshift.io/repositories/12871" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12871" alt="HITsz-TMG%2FFilmAgent | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
-
-</div>
-
-#
-
-**FilmAgent** is a multi-agent collaborative system for end-to-end film automation in 3D virtual spaces.
-FilmAgent simulates key crew roles—directors, screenwriters, actors, and cinematographers, and integrates efficient human workflows within a sandbox environment.
-
-<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/intro.png" height="100%" width="78%"/></div>
-
-## 💥 News
-
-- `2025/2/24`: 🚀 We have integrated **DeepSeek**-v3 and r1 for model selection, allowing for more sophisticated decision-making processes.
-- `2025/2/11`: 🎬 We’ve just released a fan-made video about ***NeZha2***, in celebration of its record-breaking success at the box office. Click the image below to watch the video! 👇
- [<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/nezha_youtube.png" width="450"></div>](https://www.youtube.com/watch?v=jY3n-AzBtUQ)
-- `2025/1/23`: 🙌 We're excited that FilmAgent is recommended by [AK](https://x.com/_akhaliq/status/1882268452716728789), [el.cine](https://x.com/EHuanglu/status/1882294685919772928) and [Theoretically Media](https://www.youtube.com/watch?v=0ebXKegfxWk&t=899s). Thanks!
-- `2025/1/22`: 📄 Our paper is now accessible at https://arxiv.org/abs/2501.12909.
-
-
-
-## 🚀 Framework
-
-Following the traditional film studio workflow, we divide the whole film automation process into three sequential stages: idea development, scriptwriting and cinematography, and apply the **Critique-Correct-Verify**, **Debate-Judge** collaboration strategies. After these stages, each line in the script is specified with the positions of the actors, their actions, their dialogue, and the chosen camera shots.
-
-<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/framework.png" height="100%" width="85%"/></div>
-
-## 🌟 Build Your own Film with FilmAgent
-
-1. Install Package
-```Shell
-conda create -n filmagent python==3.9.18
-conda activate filmagent
-pip install -r env.txt
-```
-
-2. Create `Script` and `Logs` folders in the Filmagent directory, then replace the absolute pathname '/path/to/' with your specific path and modify the `topic` in the `main.py`. Modify the api_key in `LLMCaller.py`. Run the following commands to get the movie script created by the agents collaboratively:
-```bash
-cd /path/to/FilmAgent
-conda activate filmagent
-python main.py --model "gpt-4o" # openai
-# python main.py --model "deepseek-chat" ## deepseek-v3
-# python main.py --model "deepseek-reasoner" ## deepseek-r1 Using this model for a multi-agent process will be very slow, you could try using a single-agent process instead. (Refer to step 6)
-```
-
-3. We use [ChatTTS](https://github.com/2noise/ChatTTS) to provide voice acting for the characters in the script. You need to download the [ChatTTS](https://github.com/2noise/ChatTTS) repository to the `TTS` directory. Then replace the absolute pathname '/path/to/' with your specific path in the `tts_main.py`. Run the following commands to deploy the text-to-speech service:
-```bash
-cd /path/to/TTS
-conda create -n tts python==3.9.18
-conda activate tts
-pip install -r env_tts.txt
-python tts_main.py
-```
-
-4. Modify the `Script_path`, `actos_path`, `Audio_path` and `url` in the `GenerateAudio.py`. Run the following commands to get the audio files:
-```bash
-cd /path/to/FilmAgent
-conda activate filmagent
-python GenerateAudio.py
-```
-
-5. We now have the `script.json`, `actors_profile.json`, and a series of `.wav` audio files. Next, we need to execute the script in Unity. The recommended version of the Unity editor is **Unity 2022.3.14f1c1**. You need to download the Unity project file we provide [[Dropbox](https://www.dropbox.com/scl/fi/atxhxnqppeofmt471dxr5/TheBigBang.zip?rlkey=o7zuqficetabkk2h1w1npkv3v&st=5s41rzdv&dl=0)][[Baidu Disk](https://pan.baidu.com/s/10wgfvtcG-xnx1fA9Rd_zwg?pwd=5aif)]. After decompression, open `TheBigBang\Assets\TheBigBang\Manyrooms.unity` with Unity. Then replace all the absolute pathnames '/path/to/' with your specific path in `TheBigBang\Assets\Scirpts\StartVideo.cs` and `TheBigBang\Assets\Scirpts\ScriptExecute.cs`. Press **'ctrl+R'** in the unity interface to recompile, click **'Play'** to enter Game mode, then press **'E'** to start executing the script (sometimes the audio files load slowly, so you may need to play it 2 or 3 times before it can run normally).
-
-> [!IMPORTANT]
-> Please add `"com.unity.nuget.newtonsoft-json": "3.0.2"` inside `Packages/manifest.json` if it throws an error, "*the type or namespace name jobject could not be found.*"
-
-<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/unity_1.png" height="100%" width="50%"/><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/unity_2.png" height="100%" width="50%"/></div>
-
-6. For the tests on 15 topics in our experimental section, we provide three .py files: `test_full.py` (The full FilmAgent framework, utilizing multi-agent collaboration.), `test_no_interation.py` (A single agent is responsible for planning, scriptwriting, and cinematography, representing our FilmAgent framework without multi-agent collaboration algorithms.) and `test_cot.py` (A single agent generates the chain-of-thought rationale and the complete script). Modify the `model` in these `.py` files, you can try different LLMs.
-
-## 🌈 Case Study
-
-### 🤝 What does Multi-Agent Collaboration do?
-The following table records some comparisons of the scripts and camera settings **before (⬅️) and after (➡️)** multi-agent collaboration, with excerpts from their discussion process.
-
-<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/cases.png" height="100%" width="70%"/></div>
-
-📌 **Case Highlights:**
-- **Case #1** shows that Director-Screenwriter discussion reduces hallucinations in non-existent actions (e.g., standing suggest), enhances plot coherence, and ensures consistency across scenes.
-- **Case #2** shows that Actor-Director-Screenwriter discussion improves the alignment of dialogue with character profiles.
-- **Case #3**, in the Debate-Judge method in cinematography, demonstrates the correction of an inappropriate dynamic shot, which is replaced with a medium shot to better convey body language.
-- **Case #4** replaces a series of identical static shots with a mix of dynamic and static shots, resulting in a more diverse camera setup.
-
-### ⚖️ Comparison with Sora
-
-<div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/pics/sora.png" height="100%" width="70%"/></div>
-
-While Sora (🔗 [Video](https://github.com/user-attachments/assets/65bb4c12-cba0-4ee9-a673-63ea5103fd76)) shows great adaptability to diverse locations, characters and shots, it **struggles with consistency and narrative delivery**, along with **strange artifacts**.
-
-In contrast, FilmAgent requires pre-built 3D spaces, but it produces **coherent, physics-compliant** videos with strong **storytelling capabilities** (▶️ Watch on [Youtube](https://www.youtube.com/watch?v=yOOycdfolFY)).
-
-### ✨ Integration with Text-to-Video Models (e.g. Sora, Vidu)
-
-We are currently working towards **merging the power of text-to-video models with FilmAgent**, unlocking enhanced storytelling, greater adaptability, and improved consistency. 🚀
-
-Here is a preview of our work—a fan-made tribute to the box office phenomenon *NeZha2* [▶️[video link](https://www.youtube.com/watch?v=jY3n-AzBtUQ)]. This video celebrates *NeZha2* surpassing a CNY 8 billion at the box office, officially crowning it as the highest-grossing film in a single territory! 🎉
-
-## 📚 Citation
-
-If you find FilmAgent useful for your research and applications, please cite using this BibTeX:
-```bibtex
-@misc{xu2025filmagent,
- title={FilmAgent: A Multi-Agent Framework for End-to-End Film Automation in Virtual 3D Spaces},
- author={Zhenran Xu and Longyue Wang and Jifang Wang and Zhouyi Li and Senbao Shi and Xue Yang and Yiyu Wang and Baotian Hu and Jun Yu and Min Zhang},
- year={2025},
- eprint={2501.12909},
- archivePrefix={arXiv},
- primaryClass={cs.CL},
- url={https://arxiv.org/abs/2501.12909},
-}
-```
diff --git a/aigc-director/SKILL.md b/aigc-director/SKILL.md
index 0e9c95a..efa22a8 100644
--- a/aigc-director/SKILL.md
+++ b/aigc-director/SKILL.md
@@ -10,7 +10,6 @@
# AIGC-Director Agent Skill
> **本地运行**:这是一个**本地部署**的视频生成项目,**前后端都运行在本机**:
-> - 项目根目录:`aigc-claw/`
> - 后端:`http://localhost:8000`
> - 前端:`http://localhost:3000`
> - 所有 API 调用都请求本地服务器,不要请求其他地址!
@@ -21,6 +20,24 @@
> **核心原则**:每个阶段的产物都必须展示给用户,必须停下来等待用户确认后才能继续下一阶段。
> **防止遗忘**:在整个流程中,Agent 可能会忘记之前的用户输入或之前阶段的产物内容。**每当进入一个新的阶段时,Agent 都必须重新加载这篇SKILL文档,确保不会忘记任何细节**。
+
+---
+
+## 项目结构
+
+```
+aigc-director/ ← OpenClaw 调用的 skill 根目录
+├── aigc-claw/ ← 前后端项目代码
+│ ├── backend/ ← FastAPI 后端(端口 8000)
+│ └── frontend/ ← Next.js 前端(端口 3000)
+├── references/ ← OpenClaw 调用时的参考文档
+│ ├── init_project/ ← 项目初始化
+│ ├── run_project/ ← 服务启动
+│ ├── workflow/ ← 六阶段工作流 API
+│ ├── sandbox/ ← 临时工作台 API
+│ └── send_message/ ← 消息发送
+└── SKILL.md ← skill 正文
+```
---
@@ -46,25 +63,15 @@
### 1. 本地部署(仅初始化时执行)
-当用户要求"初始化项目"、"配置项目"、"部署项目"时,需要先进行项目初始化:
-
-```bash
-# 参考 init_project/init_all.md 执行完整初始化流程
-```
+当用户要求"初始化项目"、"配置项目"、"部署项目"时,需要先进行项目初始化:参考 [init_all.md](references/init_project/init_all.md) 执行完整初始化流程。
> **注意**:仅在用户首次下载项目或需要重新配置环境时使用。项目已初始化过则跳过此步骤,直接检查服务运行状态。
### 2. 检查本地服务
-```bash
-# 检查后端 (本地 8000) 是否运行
-lsof -i :8000 | grep LISTEN || echo "后端未运行"
+参考 [start_backend.md](references/run_project/start_backend.md) 和 [start_frontend.md](references/run_project/start_frontend.md) 检查服务是否运行。
-# 检查前端 (本地 3000) 是否运行
-lsof -i :3000 | grep LISTEN || echo "前端未运行"
-```
-
-> **⚠️ 强制要求**:如果服务未运行,必须先启动服务再继续!参考 [start_backend.md](references/run_project/start_backend.md) 和 [start_frontend.md](references/run_project/start_frontend.md)
+> **⚠️ 强制要求**:如果服务未运行,必须先启动服务再继续!
### 2. 路由判断
@@ -168,9 +175,25 @@
1. 刚完成什么
2. 下一步做什么
3. 需要用户决策的内容
-4. **Web 界面链接**:`http://[服务器IP]:3000/?session={session_id}&stage={stage}`
+4. **Web 界面链接**:`http://[本地IP]:3000/?session={session_id}&stage={stage}`(注意,这里使用本地 IPv4 地址,不要用 localhost!)
5. 产物图片/视频(直接发送文件,禁止只发路径)
+### Web 界面链接格式
+
+```python
+# 获取本地 IPv4 地址
+import socket
+local_ip = socket.gethostbyname(socket.gethostname())
+
+# 构造前端 URL
+frontend_url = f"http://{local_ip}:3000/?session={session_id}&stage={stage}"
+
+# 发送给用户
+send_to_user(f"📊 查看详情:{frontend_url}")
+```
+
+> **重要**:必须使用本地 IPv4 地址(如 `192.168.1.x`),不要使用 `localhost` 或 `127.0.0.1`,否则用户无法从其他设备访问!
+
---
## 详细参考
diff --git a/aigc-director/aigc-claw/backend/api_server.py b/aigc-director/aigc-claw/backend/api_server.py
index e6d22f0..1a58729 100644
--- a/aigc-director/aigc-claw/backend/api_server.py
+++ b/aigc-director/aigc-claw/backend/api_server.py
@@ -758,7 +758,7 @@
{"id": "script_generation", "name": "剧本生成", "order": 1, "description": "将灵感���化为结构化剧本"},
{"id": "character_design", "name": "角色/场景设计", "order": 2, "description": "生成角色设计图和场景背景"},
{"id": "storyboard", "name": "分镜设计", "order": 3, "description": "设计镜头语言和分镜脚本"},
- {"id": "reference_generation", "name": "参考图生成", "order": 4, "description": "生��高精度参考图"},
+ {"id": "reference_generation", "name": "参考图生成", "order": 4, "description": "生成高精度参考图"},
{"id": "video_generation", "name": "视频生成", "order": 5, "description": "将参考图/分镜图生成视频"},
{"id": "post_production", "name": "后期剪辑", "order": 6, "description": "拼接视频片段为最终成片"},
]
diff --git a/aigc-director/references/run_project/start_backend.md b/aigc-director/references/run_project/start_backend.md
index a260e31..86b39cf 100644
--- a/aigc-director/references/run_project/start_backend.md
+++ b/aigc-director/references/run_project/start_backend.md
@@ -5,10 +5,7 @@
## 检查是否已运行
```bash
-# 方式1:推荐(检查端口监听)
-lsof -i :8000 | grep LISTEN
-
-# 方式2:备用(检查服务响应)
+# 推荐(检查服务响应)
curl -s http://localhost:8000/api/health && echo "后端运行中" || echo "后端未运行"
```
diff --git a/aigc-director/references/run_project/start_frontend.md b/aigc-director/references/run_project/start_frontend.md
index 6a49c29..1a82cee 100644
--- a/aigc-director/references/run_project/start_frontend.md
+++ b/aigc-director/references/run_project/start_frontend.md
@@ -5,10 +5,7 @@
## 检查是否已运行
```bash
-# 方式1:推荐(检查端口监听)
-lsof -i :3000 | grep LISTEN
-
-# 方式2:备用(检查服务响应)
+# 推荐(检查服务响应)
curl -s http://localhost:3000 > /dev/null 2>&1 && echo "前端运行中" || echo "前端未运行"
```
diff --git a/aigc-director/references/send_message/wechat.md b/aigc-director/references/send_message/wechat.md
index e69de29..ce8abcb 100644
--- a/aigc-director/references/send_message/wechat.md
+++ b/aigc-director/references/send_message/wechat.md
@@ -0,0 +1,39 @@
+# 微信发送消息
+
+## 注意事项
+
+微信不支持 Markdown 语法,**不要使用 Markdown 表格**!
+
+如果需要发送表格内容,改用**带缩进的编号列表**格式:
+
+```markdown
+1. 选项1:说明内容
+ - 详情1
+ - 详情2
+2. 选项2:说明内容
+ - 详情1
+ - 详情2
+3. 选项3:说明内容
+ - 详情1
+ - 详情2
+```
+
+## 示例
+
+❌ 错误(Markdown 表格,微信不显示):
+```
+| 选项 | 说明 |
+|------|------|
+| A | xxx |
+| B | yyy |
+```
+
+✅ 正确(缩进编号列表):
+```
+1. 选项A:xxx
+ - 详情1
+ - 详情2
+2. 选项B:yyy
+ - 详情1
+ - 详情2
+```
\ No newline at end of file
--
Gitblit v1.8.0