This commit is contained in:
KittyFishing 2026-05-13 08:21:27 +08:00 committed by GitHub
commit 96201e8a20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 39 additions and 13 deletions

View file

@ -108,8 +108,10 @@ if __name__ == "__main__":
query = input("\033[36ms01 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -138,8 +138,10 @@ if __name__ == "__main__":
query = input("\033[36ms02 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -199,8 +199,10 @@ if __name__ == "__main__":
query = input("\033[36ms03 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -175,8 +175,10 @@ if __name__ == "__main__":
query = input("\033[36ms04 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -215,8 +215,10 @@ if __name__ == "__main__":
query = input("\033[36ms05 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -244,8 +244,10 @@ if __name__ == "__main__":
query = input("\033[36ms06 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -231,8 +231,10 @@ if __name__ == "__main__":
query = input("\033[36ms07 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -222,8 +222,10 @@ if __name__ == "__main__":
query = input("\033[36ms08 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -385,8 +385,10 @@ if __name__ == "__main__":
query = input("\033[36ms09 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
if query.strip() == "/team":
print(TEAM.list_all())
continue

View file

@ -466,8 +466,10 @@ if __name__ == "__main__":
query = input("\033[36ms10 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
if query.strip() == "/team":
print(TEAM.list_all())
continue

View file

@ -560,8 +560,10 @@ if __name__ == "__main__":
query = input("\033[36ms11 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
if query.strip() == "/team":
print(TEAM.list_all())
continue

View file

@ -770,8 +770,10 @@ if __name__ == "__main__":
query = input("\033[36ms12 >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
history.append({"role": "user", "content": query})
agent_loop(history)
response_content = history[-1]["content"]

View file

@ -714,8 +714,10 @@ if __name__ == "__main__":
query = input("\033[36ms_full >> \033[0m")
except (EOFError, KeyboardInterrupt):
break
if query.strip().lower() in ("q", "exit", ""):
if query.strip().lower() in ("q", "exit"):
break
if not query.strip():
continue
if query.strip() == "/compact":
if history:
print("[manual compact via /compact]")