-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '95f7a6a4dc4e9ac3eabbfafac0f04549d62cd0d6' into feature/…
…tmux-shell
- Loading branch information
Showing
171 changed files
with
8,303 additions
and
5,681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
import re | ||
import sys | ||
from typing import Set, Tuple | ||
|
||
|
||
def find_version_references(directory: str) -> Tuple[Set[str], Set[str]]: | ||
openhands_versions = set() | ||
runtime_versions = set() | ||
|
||
version_pattern_openhands = re.compile(r'openhands:(\d{1})\.(\d{2})') | ||
version_pattern_runtime = re.compile(r'runtime:(\d{1})\.(\d{2})') | ||
|
||
for root, _, files in os.walk(directory): | ||
# Skip .git directory | ||
if '.git' in root: | ||
continue | ||
|
||
for file in files: | ||
if file.endswith( | ||
('.md', '.yml', '.yaml', '.txt', '.html', '.py', '.js', '.ts') | ||
): | ||
file_path = os.path.join(root, file) | ||
try: | ||
with open(file_path, 'r', encoding='utf-8') as f: | ||
content = f.read() | ||
|
||
# Find all openhands version references | ||
matches = version_pattern_openhands.findall(content) | ||
openhands_versions.update(matches) | ||
|
||
# Find all runtime version references | ||
matches = version_pattern_runtime.findall(content) | ||
runtime_versions.update(matches) | ||
except Exception as e: | ||
print(f'Error reading {file_path}: {e}', file=sys.stderr) | ||
|
||
return openhands_versions, runtime_versions | ||
|
||
|
||
def main(): | ||
repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) | ||
openhands_versions, runtime_versions = find_version_references(repo_root) | ||
|
||
exit_code = 0 | ||
|
||
if len(openhands_versions) > 1: | ||
print('Error: Multiple openhands versions found:', file=sys.stderr) | ||
print('Found versions:', sorted(openhands_versions), file=sys.stderr) | ||
exit_code = 1 | ||
elif len(openhands_versions) == 0: | ||
print('Warning: No openhands version references found', file=sys.stderr) | ||
|
||
if len(runtime_versions) > 1: | ||
print('Error: Multiple runtime versions found:', file=sys.stderr) | ||
print('Found versions:', sorted(runtime_versions), file=sys.stderr) | ||
exit_code = 1 | ||
elif len(runtime_versions) == 0: | ||
print('Warning: No runtime version references found', file=sys.stderr) | ||
|
||
sys.exit(exit_code) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: repo | ||
agent: CodeAct | ||
--- | ||
This repository contains the code for OpenHands, an automated AI software engineer. It has a Python backend | ||
(in the `openhands` directory) and React frontend (in the `frontend` directory). | ||
|
||
## General Setup: | ||
To set up the entire repo, including frontend and backend, run `make build`. | ||
You don't need to do this unless the user asks you to, or if you're trying to run the entire application. | ||
|
||
Before pushing any changes, you should ensure that any lint errors or simple test errors have been fixed. | ||
|
||
* If you've made changes to the backend, you should run `pre-commit run --all-files --config ./dev_config/python/.pre-commit-config.yaml` | ||
* If you've made changes to the frontend, you should run `cd frontend && npm run lint:fix && npm run build ; cd ..` | ||
|
||
If either command fails, it may have automatically fixed some issues. You should fix any issues that weren't automatically fixed, | ||
then re-run the command to ensure it passes. | ||
|
||
## Repository Structure | ||
Backend: | ||
- Located in the `openhands` directory | ||
- Testing: | ||
- All tests are in `tests/unit/test_*.py` | ||
- To test new code, run `poetry run pytest tests/unit/test_xxx.py` where `xxx` is the appropriate file for the current functionality | ||
- Write all tests with pytest | ||
|
||
Frontend: | ||
- Located in the `frontend` directory | ||
- Prerequisites: A recent version of NodeJS / NPM | ||
- Setup: Run `npm install` in the frontend directory | ||
- Testing: | ||
- Run tests: `npm run test` | ||
- To run specific tests: `npm run test -- -t "TestName"` | ||
- Building: | ||
- Build for production: `npm run build` | ||
- Environment Variables: | ||
- Set in `frontend/.env` or as environment variables | ||
- Available variables: VITE_BACKEND_HOST, VITE_USE_TLS, VITE_INSECURE_SKIP_VERIFY, VITE_FRONTEND_PORT | ||
- Internationalization: | ||
- Generate i18n declaration file: `npm run make-i18n` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 11 additions & 32 deletions
43
docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/about.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,28 @@ | ||
# 📚 Divers | ||
|
||
## ⭐️ Stratégie de recherche | ||
|
||
# À propos d'OpenHands | ||
|
||
## Stratégie de recherche | ||
|
||
La réplication complète d'applications de niveau production avec des LLM est une entreprise complexe. Notre stratégie implique : | ||
|
||
1. **Recherche technique fondamentale :** Se concentrer sur la recherche fondamentale pour comprendre et améliorer les aspects techniques de la génération et de la gestion de code | ||
2. **Capacités spécialisées :** Améliorer l'efficacité des composants de base grâce à la curation de données, aux méthodes d'entraînement, etc. | ||
3. **Planification des tâches :** Développer des capacités de détection de bugs, de gestion de base de code et d'optimisation | ||
1. **Recherche technique fondamentale :** Se concentrer sur la recherche fondamentale pour comprendre et améliorer les aspects techniques de la génération et de la gestion du code | ||
2. **Capacités spécialisées :** Améliorer l'efficacité des composants de base grâce à la curation des données, aux méthodes d'entraînement, et plus encore | ||
3. **Planification des tâches :** Développer des capacités pour la détection des bugs, la gestion des bases de code et l'optimisation | ||
4. **Évaluation :** Établir des métriques d'évaluation complètes pour mieux comprendre et améliorer nos modèles | ||
|
||
## 🚧 Agent par défaut | ||
## Agent par défaut | ||
|
||
Notre Agent par défaut est actuellement le [CodeActAgent](agents), qui est capable de générer du code et de gérer des fichiers. | ||
|
||
## 🤝 Comment contribuer | ||
|
||
OpenHands est un projet communautaire et nous accueillons les contributions de tous. Que vous soyez développeur, chercheur ou simplement enthousiaste à l'idée de faire progresser le domaine de l'ingénierie logicielle avec l'IA, il existe de nombreuses façons de s'impliquer : | ||
|
||
- **Contributions de code :** Aidez-nous à développer les fonctionnalités de base, l'interface frontend ou les solutions de sandboxing | ||
- **Recherche et évaluation :** Contribuez à notre compréhension des LLM dans l'ingénierie logicielle, participez à l'évaluation des modèles ou suggérez des améliorations | ||
- **Retours et tests :** Utilisez la boîte à outils OpenHands, signalez des bugs, suggérez des fonctionnalités ou donnez votre avis sur la facilité d'utilisation | ||
|
||
Pour plus de détails, veuillez consulter [ce document](https://github.com/All-Hands-AI/OpenHands/blob/main/CONTRIBUTING.md). | ||
|
||
## 🤖 Rejoignez notre communauté | ||
|
||
Nous avons à la fois un espace de travail Slack pour la collaboration sur la construction d'OpenHands et un serveur Discord pour discuter de tout ce qui est lié, par exemple, à ce projet, LLM, agent, etc. | ||
|
||
- [Espace de travail Slack](https://join.slack.com/t/openhands-ai/shared_invite/zt-2wkh4pklz-w~h_DVDtEe9H5kyQlcNxVw) | ||
- [Serveur Discord](https://discord.gg/ESHStjSjD4) | ||
|
||
Si vous souhaitez contribuer, n'hésitez pas à rejoindre notre communauté. Simplifions ensemble l'ingénierie logicielle ! | ||
|
||
🐚 **Codez moins, faites plus avec OpenHands.** | ||
|
||
[](https://star-history.com/#All-Hands-AI/OpenHands&Date) | ||
|
||
## 🛠️ Construit avec | ||
## Construit avec | ||
|
||
OpenHands est construit en utilisant une combinaison de frameworks et de bibliothèques puissants, fournissant une base solide pour son développement. Voici les principales technologies utilisées dans le projet : | ||
|
||
        | ||
|
||
Veuillez noter que la sélection de ces technologies est en cours et que des technologies supplémentaires peuvent être ajoutées ou des technologies existantes peuvent être supprimées à mesure que le projet évolue. Nous nous efforçons d'adopter les outils les plus appropriés et les plus efficaces pour améliorer les capacités d'OpenHands. | ||
|
||
## 📜 Licence | ||
## Licence | ||
|
||
Distribué sous la licence MIT. Voir [notre licence](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) pour plus d'informations. | ||
Distribué sous la [Licence](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) MIT. |
Oops, something went wrong.