Refactor Dockerfile and add linguist module

This commit refactors the Dockerfile to:
- Reintroduce the programmer user creation with sudo privileges
- Add necessary system dependencies for development tools
- Update Go installation to include PATH in root's bashrc
- Install github-linguist gem

It also includes the addition of a new linguist command module with functions to interact with GitHub Linguist for language statistics and file information retrieval.
This commit is contained in:
2026-02-21 11:41:21 +01:00
parent 4d81dba1e5
commit 65fc32459a
22 changed files with 265 additions and 5 deletions

55
old/Notes/jj_to_json.md Normal file
View File

@@ -0,0 +1,55 @@
```bash
jj log | orla agent -m ollama:qwen3:0.6b \
"
Transform the following `jj log` output into JSON according to the given schema.
**Return only valid JSON, without any Markdown formatting :**
- no backticks,
- no code blocks,
- no extra text
Schema:
{
\"type\": \"array\",
\"items\": {
\"type\": \"object\",
\"properties\": {
\"hash\": {\"type\": \"string\"},
\"author\": {\"type\": \"string\"},
\"date\": {\"type\": \"string\"},
\"message\": {\"type\": \"string\"}
},
\"required\": [\"hash\", \"author\", \"date\", \"message\"]
}
}
" | grep -v '```' | jq .
```
```json
[
{
"hash": "252b5de3",
"author": "nrrwwpms",
"date": "2026-01-25 17:36:18",
"message": "(no description set)"
},
{
"hash": "9f9d9bc3",
"author": "stxkzlul",
"date": "2026-01-25 12:08:12",
"message": "Ajout de Dockerfile et configuration MCP"
},
{
"hash": "7412b51a",
"author": "xnrxukn",
"date": "2026-01-25 07:53:42",
"message": "Initial commit"
}
]
```
Ok, on va essayer de développer un outil un peu plus avancé.
Dans le fichier @src/sandbox/__init__.py Nous allons créer une fonction jj_log.
Cette fonction prendra en paramètres:
- un projet