This project focuses on local-first academic writing workflows for Chinese social science writing, fund applications, literature reviews, and related report flows.
pip install -r requirements.txt
python api_server.pycd frontend
npm install
npm run devOptional console entry:
streamlit run streamlit_app.pyRun the backend checks:
python -m compileall app api_server.py tests
python -m pytestRun the frontend build:
cd frontend
npm run build- Keep React, Streamlit, API, and CLI aligned through the shared service layer.
- Do not add product-only logic directly in one frontend if it should be shared by all entry points.
- Prefer stable enum values for presets and run modes.
- Preserve local-first assumptions. Do not introduce accounts, multi-tenant state, or cloud-only dependencies without discussion.
- Document behavior changes in
README.mdanddocs/capability_matrix.md.
- Describe the scenario, expected behavior, and observed behavior.
- Include sample input files or reduced repro steps when possible.
- If the change affects Word fidelity, note whether it was verified with Win32 Word or python-docx fallback.