Files
GenericAgent/pyproject.toml
T
yanghang cf3fbf3be7 feat(tui_v3): v2 feature parity — export/fold/ask_user/plan card + inline i18n
scrollback-first tui_v3 rounds out v2 parity across this session:

- /export: v2-aligned subcommands (clip/file/all/legacy); clip writes to the
  real OS clipboard via existing copy() (pbcopy/clip.exe/wl-copy/xclip/xsel);
  picker→file prefills an editable filename
- tool-call folding: per-turn fold ported from v2 fold_turns; Ctrl+O toggles;
  incremental repaint folds turn N the moment turn N+1 marker streams in
- ask_user: focus-cycle model (↑↓ moves between candidates and the input box,
  caret hidden on candidate focus); multi-select is checkbox-only with no
  input box; [x]/[ ] ASCII checkboxes instead of Unicode ballot glyphs
- plan card: v2 _refresh_planbar port — 5-row budget, current-step line,
  complete/placeholder states with grace periods, mtime-cached reads
- attachments: bracketed-paste, image/file placeholders, multi-line paste
  aligned to v2 behaviour
- i18n: zh/en layer merged inline (was a separate tui_v3_i18n.py) so the
  frontend ships as one drop-in module

pyproject: add prompt_toolkit + pillow to the `ui` extra.
2026-05-23 02:15:13 +08:00

51 lines
1.3 KiB
TOML

# AI install hint: choose deps by OS/env + needed ui/bot. do NOT install all.
# minimal core first; missing packages can be installed on demand.
[project]
name = "genericagent"
version = "0.1.0"
description = "Minimalist self-evolving autonomous agent framework"
readme = "README.md"
requires-python = ">=3.10,<3.14"
license = { text = "MIT" }
dependencies = [
"requests>=2.28",
"beautifulsoup4>=4.12",
"bottle>=0.12",
"simple-websocket-server>=0.4",
"aiohttp>=3.9",
]
[project.optional-dependencies]
# select extras, not all. match current task/env.
# examples: .[ui] for GUI, bot deps only if bot needed.
ui = [
"streamlit>=1.28",
"pywebview>=4.0",
"textual>=0.70",
# tui_v3 (scrollback-first TUI) — prompt_toolkit replaces textual; rich is
# now a direct dependency (was transitive via textual in tui_v2).
"prompt_toolkit>=3.0,<4",
"rich>=13.0",
"pillow>=9.0",
]
all-frontends = [
"python-telegram-bot>=20.0",
"qq-botpy>=1.0",
"pycryptodome>=3.19",
"qrcode>=7.4",
"lark-oapi>=1.0",
"wecom-aibot-sdk>=1.0",
"dingtalk-stream>=0.20",
]
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
py-modules = []
packages = ["ga_cli"]
[project.scripts]
ga = "ga_cli.cli:main"