From 285e72039eda3b27684ad4c67620350a9150d30f Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Fri, 3 Apr 2026 18:23:10 +0200 Subject: [PATCH] chore: rename .cursor to .smartIde for agents, rules, hooks Update internal references and .gitignore ssh_config path. Gateway and docs paths use .smartIde/agents. --- .gitignore | 2 +- {.cursor => .smartIde}/agents/agent-loop.md | 6 +-- .../branch-align-by-script-from-test.md | 10 ++-- .../agents/change-to-all-branches.md | 8 +-- .../agents/closure-point-7-justification.md | 2 +- {.cursor => .smartIde}/agents/code.md | 12 ++--- .../agents/deploy-by-script.md | 10 ++-- .../agents/deploy-pprod-or-prod.md | 8 +-- {.cursor => .smartIde}/agents/docupdate.md | 8 +-- {.cursor => .smartIde}/agents/evol.md | 8 +-- {.cursor => .smartIde}/agents/fix-lint.md | 18 +++---- {.cursor => .smartIde}/agents/fix-search.md | 12 ++--- {.cursor => .smartIde}/agents/fix.md | 10 ++-- .../agents/gitea-issues-process.md | 6 +-- .../agents/notary-ai-loop.md | 6 +-- .../agents/notary-ai-process.md | 6 +-- .../agents/push-by-script.md | 14 ++--- {.cursor => .smartIde}/agents/setup-host.md | 4 +- {.cursor => .smartIde}/hooks.json | 2 +- .../hooks/remonter-mails.sh | 0 .../pousse-commit-msg-lecoffreio-now.txt | 2 +- .../pousse-commit-msg-lecoffreio.txt | 4 +- .../rules/cloture-evolution.mdc | 6 +-- {.cursor => .smartIde}/rules/cloture-lint.mdc | 4 +- {.cursor => .smartIde}/rules/rules.mdc | 28 +++++----- ai_working_help/docs/notary-ai-api.md | 6 +-- .../docs/GITEA_ISSUES_SCRIPTS_AGENTS.md | 12 ++--- .../ia_dev/docs/WORKFLOWS_AND_COMPONENTS.md | 54 +++++++++---------- projects/ia_dev/docs/agents-scripts-split.md | 2 +- projects/lecoffreio/docs/Code-Standards.md | 4 +- .../docs/WORKFLOWS_AND_COMPONENTS.md | 54 +++++++++---------- .../lecoffreio/docs/agents-scripts-split.md | 2 +- 32 files changed, 165 insertions(+), 165 deletions(-) rename {.cursor => .smartIde}/agents/agent-loop.md (91%) rename {.cursor => .smartIde}/agents/branch-align-by-script-from-test.md (79%) rename {.cursor => .smartIde}/agents/change-to-all-branches.md (88%) rename {.cursor => .smartIde}/agents/closure-point-7-justification.md (89%) rename {.cursor => .smartIde}/agents/code.md (83%) rename {.cursor => .smartIde}/agents/deploy-by-script.md (87%) rename {.cursor => .smartIde}/agents/deploy-pprod-or-prod.md (87%) rename {.cursor => .smartIde}/agents/docupdate.md (86%) rename {.cursor => .smartIde}/agents/evol.md (78%) rename {.cursor => .smartIde}/agents/fix-lint.md (81%) rename {.cursor => .smartIde}/agents/fix-search.md (78%) rename {.cursor => .smartIde}/agents/fix.md (74%) rename {.cursor => .smartIde}/agents/gitea-issues-process.md (92%) rename {.cursor => .smartIde}/agents/notary-ai-loop.md (85%) rename {.cursor => .smartIde}/agents/notary-ai-process.md (88%) rename {.cursor => .smartIde}/agents/push-by-script.md (92%) rename {.cursor => .smartIde}/agents/setup-host.md (84%) rename {.cursor => .smartIde}/hooks.json (59%) rename {.cursor => .smartIde}/hooks/remonter-mails.sh (100%) rename {.cursor => .smartIde}/pousse-commit-msg-lecoffreio-now.txt (97%) rename {.cursor => .smartIde}/pousse-commit-msg-lecoffreio.txt (96%) rename {.cursor => .smartIde}/rules/cloture-evolution.mdc (91%) rename {.cursor => .smartIde}/rules/cloture-lint.mdc (91%) rename {.cursor => .smartIde}/rules/rules.mdc (78%) diff --git a/.gitignore b/.gitignore index 307eae4..e091024 100644 --- a/.gitignore +++ b/.gitignore @@ -60,7 +60,7 @@ deploy/env-full-*-for-bdd-injection.txt lecoffre-anchor-api/test-api-ok.sh # .env files (nouveau chemin: .secrets//.env.) .secrets/*/.env.* -.cursor/ssh_config +.smartIde/ssh_config tmp_commit_msg.txt diff --git a/.cursor/agents/agent-loop.md b/.smartIde/agents/agent-loop.md similarity index 91% rename from .cursor/agents/agent-loop.md rename to .smartIde/agents/agent-loop.md index 4c39ccf..497c655 100644 --- a/.cursor/agents/agent-loop.md +++ b/.smartIde/agents/agent-loop.md @@ -16,7 +16,7 @@ En tant qu'agent, avant de solliciter l'ia, regarde ce que tu peux scripter (imp - Sous-agents : uniquement si nécessaire ; descriptions courtes ; éviter « explore » si grep/read/chemin connu suffit. - Réponses concises, sans répéter règles ou docs déjà référencées. -- **Lint (obligatoire avant clôture)** : Sur le dépôt applicatif du projet (`repository_root` et `build_dirs` dans `projects//conf.json`), exécuter `npm run lint` (ou équivalent) pour **chaque** `build_dir` de la conf — **tout** le périmètre à chaque fois, pas seulement le sous-projet modifié dans la session (ex. tâche front : lancer aussi le lint sur les autres `build_dirs`). Compter **erreurs + warnings**. Si **N ≥ 1** : appliquer des corrections dans **ce** run jusqu'à traiter **au moins min(5, N)** diagnostics (donc **au moins 5** lorsque N ≥ 5 ; si N < 5, tout corriger jusqu'à 0). **Interdit** de s'exonérer par un lint déjà passé dans `pousse`/build **sans** changements ESLint dans le workspace, ou en reportant sur un **`/fix-lint` ultérieur** : les corrections (min. 5 quand N ≥ 5) font partie **du même run** que la clôture. Clôture : commandes, périmètres, **décompte avant/après**. Voir `.cursor/rules/cloture-lint.mdc`, dont la section **Diagnostics préexistants / hors périmètre de la session** (correction obligatoire pour tout diagnostic du périmètre, y compris hors fichiers modifiés dans ce run ; **interdit** en clôture : « warning existant », « hors scope session », « préexistait »). +- **Lint (obligatoire avant clôture)** : Sur le dépôt applicatif du projet (`repository_root` et `build_dirs` dans `projects//conf.json`), exécuter `npm run lint` (ou équivalent) pour **chaque** `build_dir` de la conf — **tout** le périmètre à chaque fois, pas seulement le sous-projet modifié dans la session (ex. tâche front : lancer aussi le lint sur les autres `build_dirs`). Compter **erreurs + warnings**. Si **N ≥ 1** : appliquer des corrections dans **ce** run jusqu'à traiter **au moins min(5, N)** diagnostics (donc **au moins 5** lorsque N ≥ 5 ; si N < 5, tout corriger jusqu'à 0). **Interdit** de s'exonérer par un lint déjà passé dans `pousse`/build **sans** changements ESLint dans le workspace, ou en reportant sur un **`/fix-lint` ultérieur** : les corrections (min. 5 quand N ≥ 5) font partie **du même run** que la clôture. Clôture : commandes, périmètres, **décompte avant/après**. Voir `.smartIde/rules/cloture-lint.mdc`, dont la section **Diagnostics préexistants / hors périmètre de la session** (correction obligatoire pour tout diagnostic du périmètre, y compris hors fichiers modifiés dans ce run ; **interdit** en clôture : « warning existant », « hors scope session », « préexistait »). # Agent agent-loop @@ -43,7 +43,7 @@ Tu es l'agent qui **orchestre** la surveillance des mails et leur traitement. Tu **Références obligatoires** : lire `projects/ia_dev/docs/GITEA_ISSUES_SCRIPTS_AGENTS.md` (contexte d'exécution). Usage standalone : tous les scripts sont invoqués depuis la **racine de ia_dev** : `./gitea-issues/