50 lines
1.0 KiB
Markdown
50 lines
1.0 KiB
Markdown
|
|
```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"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
```
|