Files

8 lines
808 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 最关键
- **中文优先**:所有回答和推理过程必须使用中文,代码、标识符、文件名、技术术语保持原文不翻译。
- **运行时是 Bun,不是 Node.js**。执行 TS 文件用 `bun run <file>`,不能用 `node``npm``npx`
- **双语言项目**`data/` 是 TypeScript (Bun)`engine/` 是 Python 3.10+。两个模块通过 Redis Pub/Sub 通信。
- **data/ 必须在 data/ 目录下运行**:`package.json``data/` 中,依赖安装到 `data/node_modules`。命令如 `bun install``bun run lint` 需要 `workdir=data`
- **engine/ 必须在 engine/ 目录下运行**Python 虚拟环境在 `engine/.venv/`,导入包使用相对路径(`from common import Kline`)。命令如 `python -c "from common import Kline"` 需要 `workdir=engine`