eigent/backend
puzhen 4b005c79e5 fix: resolve npx path on Windows for browser login launch
On Windows, subprocess.Popen uses CreateProcess which cannot execute
.cmd files directly. This causes FileNotFoundError when launching the
Electron login browser via bare "npx" command in the packaged app.

Fix by:
- Resolving npx path via ~/.eigent/bin/npx.cmd or shutil.which fallback
- Wrapping the command with cmd.exe /d /s /c on Windows
- Ensuring ~/.eigent/bin is on PATH for the spawned process

Closes #1376
2026-03-01 23:13:56 +00:00
..
.vscode chore: fix pre commit format and pipeline issue (#1144) 2026-02-04 08:06:29 +08:00
app fix: resolve npx path on Windows for browser login launch 2026-03-01 23:13:56 +00:00
benchmark benchmark: update benchmark (#1207) 2026-02-12 16:35:18 +08:00
lang chore: fix pre commit format and pipeline issue (#1144) 2026-02-04 08:06:29 +08:00
scripts Feat skills (#1221) 2026-02-19 02:29:21 +08:00
tests Revert "feat: add model type autocomplete with api based suggestions and plat…" (#1352) 2026-02-24 02:02:46 +08:00
.gitignore test: add basic benchmark (#1138) 2026-02-05 01:15:55 -08:00
.pre-commit-config.yaml 🎨 add example skills (#1370) 2026-02-26 12:58:39 +08:00
.python-version chore: upgrade backend Python to 3.11 (#1142) 2026-02-05 05:24:52 +08:00
babel.cfg chore: fix pre commit format and pipeline issue (#1144) 2026-02-04 08:06:29 +08:00
cli.py chore: fix pre commit format and pipeline issue (#1144) 2026-02-04 08:06:29 +08:00
main.py chore: fix pre commit format and pipeline issue (#1144) 2026-02-04 08:06:29 +08:00
messages.pot chore: fix pre commit format and pipeline issue (#1144) 2026-02-04 08:06:29 +08:00
pyproject.toml chore: update camel version 2026-02-21 17:01:29 +08:00
README.md Initial commit of eigent-main 2025-08-12 01:16:39 +02:00
uv.lock chore: update camel version 2026-02-21 17:01:29 +08:00

uv run uvicorn main:api --port 5001

i18n operation process: https://github.com/Anbarryprojects/fastapi-babel


pybabel extract -F babel.cfg -o messages.pot . --ignore-pot-creation-date  # Extract multilingual strings from code to messages.pot file
pybabel init -i messages.pot -d lang -l zh_CN   # Generate Chinese language pack, can only be generated initially, subsequent execution will cause overwrite
pybabel compile -d lang -l zh_CN                # Compile language pack


pybabel update -i messages.pot -d lang
# -i messages.pot: Specify the input file as the generated .pot file
# -d translations: Specify the translation directory, which typically contains .po files for each language
# -l zh: Specify the language code
# regular search
\berror\b(?!\])