Files
aimsight-libredesk/.vscode/tasks.json
T
maximeandClaude Opus 5.5 10ed887417 Noms plus clairs : snippets/, scripts de test numérotés, verifier_ollama.py
- base_connaissances/ → snippets/ (corpus/ → textes/, instructions.md → consignes_redaction.md, decoupage.py → fichiers.py, importer.py → envoyer.py) ; python3 -m snippets.envoyer.
- instance-de-test/ : 1_demarrer.sh, 2_creer_boite_et_cle.py, 3_brancher_ia.py, 4_essayer_brouillons.py, voir_empreintes.sh, connexion_admin.py.
- ollama/verifier.py → ollama/verifier_ollama.py ; tests, tâches VS Code et docs alignés.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:27:06 +01:00

132 lines
4.4 KiB
JSON

{
"version": "2.0.0",
"options": { "cwd": "${workspaceFolder}" },
"tasks": [
{
"label": "Tests",
"type": "shell",
"command": "python3 -m unittest discover -s tests -v",
"group": { "kind": "test", "isDefault": true },
"problemMatcher": []
},
{
"label": "Instance de test : démarrer",
"type": "shell",
"command": "bash instance-de-test/1_demarrer.sh '${input:motDePasse}'",
"problemMatcher": []
},
{
"label": "Instance de test : préparer",
"type": "shell",
"command": "python3 instance-de-test/2_creer_boite_et_cle.py '${input:motDePasse}'",
"problemMatcher": []
},
{
"label": "Instance de test : arrêter",
"type": "shell",
"command": "docker compose -f instance-de-test/docker-compose.yml -p ldtest stop",
"problemMatcher": []
},
{
"label": "Instance de test : effacer",
"type": "shell",
"command": "[ \"${input:confirmation}\" = oui ] || { echo annulé; exit 1; } && docker compose -f instance-de-test/docker-compose.yml -p ldtest down -v",
"problemMatcher": []
},
{
"label": "Instance de test : brancher sur Ollama",
"type": "shell",
"command": "eval \"$(grep '^export ANTHROPIC_API_KEY=' .env)\" && python3 instance-de-test/3_brancher_ia.py '${input:motDePasse}' http://ollama:11434/v1 bge-m3:567m",
"problemMatcher": []
},
{
"label": "Instance de test : essai des brouillons",
"type": "shell",
"command": "python3 instance-de-test/4_essayer_brouillons.py '${input:motDePasse}'",
"problemMatcher": []
},
{
"label": "Instance de test : voir les empreintes",
"type": "shell",
"command": "bash instance-de-test/voir_empreintes.sh",
"problemMatcher": []
},
{
"label": "Ollama : construire",
"type": "shell",
"command": "docker compose -f ollama/compose.yml build",
"problemMatcher": []
},
{
"label": "Ollama : lancer (instance de test)",
"type": "shell",
"command": "RESEAU_LIBREDESK=ldtest_libredesk OLLAMA_PORT=11435 docker compose -f ollama/compose.yml -f ollama/compose.reseau.yml up -d",
"problemMatcher": []
},
{
"label": "Ollama : arrêter",
"type": "shell",
"command": "docker compose -f ollama/compose.yml stop",
"problemMatcher": []
},
{
"label": "Ollama : vérifier (poste, port 11435)",
"type": "shell",
"command": "python3 ollama/verifier_ollama.py http://127.0.0.1:11435/v1",
"problemMatcher": []
},
{
"label": "Snippets : envoyer en simulation (instance de test)",
"type": "shell",
"command": "set -a && . instance-de-test/.env && set +a && python3 -m snippets.envoyer",
"problemMatcher": []
},
{
"label": "Snippets : ENVOYER (instance de test)",
"type": "shell",
"command": "set -a && . instance-de-test/.env && set +a && python3 -m snippets.envoyer --ecrire",
"problemMatcher": []
},
{
"label": "Snippets : envoyer en simulation (PRODUCTION)",
"type": "shell",
"command": "set -a && . ./.env && set +a && LIBREDESK_URL='${input:urlProduction}' python3 -m snippets.envoyer",
"problemMatcher": []
},
{
"label": "Snippets : ENVOYER (PRODUCTION)",
"type": "shell",
"command": "[ \"${input:confirmationProduction}\" = oui ] || { echo annulé; exit 1; } && set -a && . ./.env && set +a && LIBREDESK_URL='${input:urlProduction}' python3 -m snippets.envoyer --ecrire",
"problemMatcher": []
}
],
"inputs": [
{
"id": "motDePasse",
"type": "promptString",
"description": "Mot de passe de l'utilisateur System de l'instance de test",
"default": "TestAdmin-2026!",
"password": true
},
{
"id": "urlProduction",
"type": "promptString",
"description": "Adresse de LibreDesk en PRODUCTION (les clés admin temporaires viennent de .env)"
},
{
"id": "confirmation",
"type": "pickString",
"description": "Effacer l'instance de test et toutes ses données ?",
"options": ["non", "oui"],
"default": "non"
},
{
"id": "confirmationProduction",
"type": "pickString",
"description": "ÉCRIRE dans la base de connaissances de la PRODUCTION ?",
"options": ["non", "oui"],
"default": "non"
}
]
}