Skip to content

Commit 229d670

Browse files
committed
format code
1 parent d9418c1 commit 229d670

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ We welcome any friendly suggestions and helpful contributions! Just create issue
130130

131131
Or contact @mannaandpoem via 📧email: mannaandpoem@gmail.com
132132

133-
## Roadmap
134-
135-
- [ ] Improve the UI’s visual appeal to create a more intuitive and seamless user experience.
136-
137133
## Community Group
138134
Join our networking group on Feishu and share your experience with other developers!
139135

@@ -162,4 +158,4 @@ OpenManus is built by contributors from MetaGPT. Huge thanks to this agent commu
162158
journal = {GitHub repository},
163159
howpublished = {\url{https://github.com/mannaandpoem/OpenManus}},
164160
}
165-
```
161+
```

README_zh.md

-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ python run_flow.py
130130

131131
或通过 📧 邮件联系 @mannaandpoemmannaandpoem@gmail.com
132132

133-
## 发展路线
134-
135-
- [ ] 提高用户界面的视觉吸引力,以创建更直观和无缝的用户体验。
136-
137133
## 交流群
138134

139135
加入我们的飞书交流群,与其他开发者分享经验!

app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,4 @@ async def generic_exception_handler(request: Request, exc: Exception):
244244
if __name__ == "__main__":
245245
import uvicorn
246246

247-
uvicorn.run(app, host="localhost", port=5172)
247+
uvicorn.run(app, host="localhost", port=5172)

app/flow/base.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,31 @@ def add_agent(self, key: str, agent: BaseAgent) -> None:
6161
async def execute(self, input_text: str) -> str:
6262
"""Execute the flow with given input"""
6363

64+
6465
class PlanStepStatus(str, Enum):
6566
"""Enum class defining possible statuses of a plan step"""
67+
6668
NOT_STARTED = "not_started"
6769
IN_PROGRESS = "in_progress"
6870
COMPLETED = "completed"
6971
BLOCKED = "blocked"
70-
72+
7173
@classmethod
7274
def get_all_statuses(cls) -> list[str]:
7375
"""Return a list of all possible step status values"""
7476
return [status.value for status in cls]
75-
77+
7678
@classmethod
7779
def get_active_statuses(cls) -> list[str]:
7880
"""Return a list of values representing active statuses (not started or in progress)"""
7981
return [cls.NOT_STARTED.value, cls.IN_PROGRESS.value]
80-
82+
8183
@classmethod
8284
def get_status_marks(cls) -> Dict[str, str]:
8385
"""Return a mapping of statuses to their marker symbols"""
8486
return {
8587
cls.COMPLETED.value: "[✓]",
8688
cls.IN_PROGRESS.value: "[→]",
8789
cls.BLOCKED.value: "[!]",
88-
cls.NOT_STARTED.value: "[ ]"
90+
cls.NOT_STARTED.value: "[ ]",
8991
}

app/flow/planning.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,15 @@ def _generate_plan_text_from_storage(self) -> str:
337337
plan_text += "Steps:\n"
338338

339339
status_marks = PlanStepStatus.get_status_marks()
340-
340+
341341
for i, (step, status, notes) in enumerate(
342342
zip(steps, step_statuses, step_notes)
343343
):
344344
# Use status marks to indicate step status
345-
status_mark = status_marks.get(status, status_marks[PlanStepStatus.NOT_STARTED.value])
346-
345+
status_mark = status_marks.get(
346+
status, status_marks[PlanStepStatus.NOT_STARTED.value]
347+
)
348+
347349
plan_text += f"{i}. {status_mark} {step}\n"
348350
if notes:
349351
plan_text += f" Notes: {notes}\n"

0 commit comments

Comments
 (0)