@autocode-cli/autocode 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli/commands/init.js +1 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/list.js +2 -2
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/move.js +3 -3
- package/dist/cli/commands/move.js.map +1 -1
- package/dist/cli/commands/new.js +3 -3
- package/dist/cli/commands/new.js.map +1 -1
- package/dist/core/column.d.ts +0 -4
- package/dist/core/column.d.ts.map +1 -1
- package/dist/core/column.js +0 -6
- package/dist/core/column.js.map +1 -1
- package/dist/core/ticket.d.ts +1 -1
- package/dist/core/ticket.js +4 -4
- package/dist/core/ticket.js.map +1 -1
- package/dist/core/workflow.d.ts +1 -1
- package/dist/core/workflow.js +4 -4
- package/dist/server/api.d.ts.map +1 -1
- package/dist/server/api.js +168 -5
- package/dist/server/api.js.map +1 -1
- package/dist/server/dashboard/pages/autocreate.d.ts +9 -0
- package/dist/server/dashboard/pages/autocreate.d.ts.map +1 -0
- package/dist/server/dashboard/pages/autocreate.js +847 -0
- package/dist/server/dashboard/pages/autocreate.js.map +1 -0
- package/dist/server/dashboard/pages/index.d.ts +1 -0
- package/dist/server/dashboard/pages/index.d.ts.map +1 -1
- package/dist/server/dashboard/pages/index.js +1 -0
- package/dist/server/dashboard/pages/index.js.map +1 -1
- package/dist/server/dashboard/pages/pipeline-configurator.d.ts.map +1 -1
- package/dist/server/dashboard/pages/pipeline-configurator.js +198 -0
- package/dist/server/dashboard/pages/pipeline-configurator.js.map +1 -1
- package/dist/server/dashboard/scripts/index.js +3 -3
- package/dist/server/dashboard.d.ts +1 -1
- package/dist/server/dashboard.d.ts.map +1 -1
- package/dist/server/dashboard.js +1 -1
- package/dist/server/dashboard.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +9 -1
- package/dist/server/index.js.map +1 -1
- package/dist/services/autocreate.d.ts +34 -0
- package/dist/services/autocreate.d.ts.map +1 -0
- package/dist/services/autocreate.js +503 -0
- package/dist/services/autocreate.js.map +1 -0
- package/dist/services/claude.d.ts +4 -1
- package/dist/services/claude.d.ts.map +1 -1
- package/dist/services/claude.js +7 -4
- package/dist/services/claude.js.map +1 -1
- package/dist/types/index.d.ts +49 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/templates/analysis-prompt.en.md +77 -0
- package/templates/analysis-prompt.fr.md +87 -0
- package/templates/catalog.yaml +103 -1
- package/templates/prompts/accessibility-check.en.md +25 -0
- package/templates/prompts/accessibility-check.fr.md +25 -0
- package/templates/prompts/api-endpoints-test.en.md +26 -0
- package/templates/prompts/api-endpoints-test.fr.md +26 -0
- package/templates/prompts/backlog.en.md +8 -19
- package/templates/prompts/backlog.fr.md +8 -19
- package/templates/prompts/build-dist.en.md +20 -0
- package/templates/prompts/build-dist.fr.md +20 -0
- package/templates/prompts/ci-gitlab-validate.en.md +22 -0
- package/templates/prompts/ci-gitlab-validate.fr.md +22 -0
- package/templates/prompts/claude-integration-test.en.md +22 -0
- package/templates/prompts/claude-integration-test.fr.md +22 -0
- package/templates/prompts/cli-smoke-test.en.md +30 -0
- package/templates/prompts/cli-smoke-test.fr.md +30 -0
- package/templates/prompts/dashboard-responsive.en.md +27 -0
- package/templates/prompts/dashboard-responsive.fr.md +27 -0
- package/templates/prompts/dead-code-check.en.md +25 -0
- package/templates/prompts/dead-code-check.fr.md +25 -0
- package/templates/prompts/deps-licenses.en.md +23 -0
- package/templates/prompts/deps-licenses.fr.md +23 -0
- package/templates/prompts/deps-outdated.en.md +23 -0
- package/templates/prompts/deps-outdated.fr.md +23 -0
- package/templates/prompts/design.en.md +2 -2
- package/templates/prompts/design.fr.md +2 -2
- package/templates/prompts/dev.en.md +2 -2
- package/templates/prompts/dev.fr.md +2 -2
- package/templates/prompts/docs-readme-validate.en.md +22 -0
- package/templates/prompts/docs-readme-validate.fr.md +22 -0
- package/templates/prompts/done.en.md +2 -2
- package/templates/prompts/done.fr.md +2 -2
- package/templates/prompts/error-handling-review.en.md +24 -0
- package/templates/prompts/error-handling-review.fr.md +24 -0
- package/templates/prompts/esm-compatibility.en.md +24 -0
- package/templates/prompts/esm-compatibility.fr.md +24 -0
- package/templates/prompts/file-watcher-test.en.md +20 -0
- package/templates/prompts/file-watcher-test.fr.md +20 -0
- package/templates/prompts/format-prettier-setup.en.md +21 -0
- package/templates/prompts/format-prettier-setup.fr.md +21 -0
- package/templates/prompts/git-conventional-commits.en.md +21 -0
- package/templates/prompts/git-conventional-commits.fr.md +21 -0
- package/templates/prompts/git-hooks-setup.en.md +27 -0
- package/templates/prompts/git-hooks-setup.fr.md +27 -0
- package/templates/prompts/graceful-shutdown.en.md +25 -0
- package/templates/prompts/graceful-shutdown.fr.md +25 -0
- package/templates/prompts/i18n-completeness.en.md +21 -0
- package/templates/prompts/i18n-completeness.fr.md +21 -0
- package/templates/prompts/in-progress.en.md +2 -2
- package/templates/prompts/in-progress.fr.md +2 -2
- package/templates/prompts/landing-html-validate.en.md +23 -0
- package/templates/prompts/landing-html-validate.fr.md +23 -0
- package/templates/prompts/lint-eslint-setup.en.md +20 -0
- package/templates/prompts/lint-eslint-setup.fr.md +20 -0
- package/templates/prompts/node-version-check.en.md +21 -0
- package/templates/prompts/node-version-check.fr.md +21 -0
- package/templates/prompts/npm-publish-dry-run.en.md +25 -0
- package/templates/prompts/npm-publish-dry-run.fr.md +25 -0
- package/templates/prompts/pkg-exports-validate.en.md +23 -0
- package/templates/prompts/pkg-exports-validate.fr.md +23 -0
- package/templates/prompts/port-conflict-handling.en.md +22 -0
- package/templates/prompts/port-conflict-handling.fr.md +22 -0
- package/templates/prompts/qualification.en.md +2 -2
- package/templates/prompts/qualification.fr.md +2 -2
- package/templates/prompts/retest-cypress.en.md +2 -6
- package/templates/prompts/retest-cypress.fr.md +2 -6
- package/templates/prompts/retest-playwright.en.md +1 -4
- package/templates/prompts/retest-playwright.fr.md +1 -4
- package/templates/prompts/retest.en.md +1 -4
- package/templates/prompts/retest.fr.md +1 -4
- package/templates/prompts/review-best-practices.en.md +2 -6
- package/templates/prompts/review-best-practices.fr.md +2 -6
- package/templates/prompts/review-code.en.md +2 -6
- package/templates/prompts/review-code.fr.md +2 -6
- package/templates/prompts/review-consistency.en.md +2 -6
- package/templates/prompts/review-consistency.fr.md +2 -6
- package/templates/prompts/review-no-duplication.en.md +2 -6
- package/templates/prompts/review-no-duplication.fr.md +2 -6
- package/templates/prompts/review-security.en.md +2 -2
- package/templates/prompts/review-security.fr.md +2 -2
- package/templates/prompts/security-audit.en.md +20 -0
- package/templates/prompts/security-audit.fr.md +20 -0
- package/templates/prompts/security-secrets.en.md +26 -0
- package/templates/prompts/security-secrets.fr.md +26 -0
- package/templates/prompts/specification.en.md +2 -2
- package/templates/prompts/specification.fr.md +2 -2
- package/templates/prompts/splitter.en.md +3 -4
- package/templates/prompts/splitter.fr.md +3 -4
- package/templates/prompts/template-validation.en.md +23 -0
- package/templates/prompts/template-validation.fr.md +23 -0
- package/templates/prompts/testing-coverage.en.md +20 -0
- package/templates/prompts/testing-coverage.fr.md +20 -0
- package/templates/prompts/testing-cypress.en.md +1 -4
- package/templates/prompts/testing-cypress.fr.md +1 -4
- package/templates/prompts/testing-integration.en.md +1 -4
- package/templates/prompts/testing-integration.fr.md +1 -4
- package/templates/prompts/testing-playwright.en.md +1 -4
- package/templates/prompts/testing-playwright.fr.md +1 -4
- package/templates/prompts/testing-unit.en.md +1 -4
- package/templates/prompts/testing-unit.fr.md +1 -4
- package/templates/prompts/testing-vitest.en.md +17 -0
- package/templates/prompts/testing-vitest.fr.md +17 -0
- package/templates/prompts/typecheck.en.md +17 -0
- package/templates/prompts/typecheck.fr.md +17 -0
- package/templates/prompts/update-docs.en.md +2 -6
- package/templates/prompts/update-docs.fr.md +2 -6
- package/templates/prompts/version-semver.en.md +20 -0
- package/templates/prompts/version-semver.fr.md +20 -0
- package/templates/prompts/websocket-test.en.md +19 -0
- package/templates/prompts/websocket-test.fr.md +19 -0
- package/templates/prompts/yaml-validate.en.md +24 -0
- package/templates/prompts/yaml-validate.fr.md +24 -0
- package/templates/prompts/ready.en.md +0 -31
- package/templates/prompts/ready.fr.md +0 -31
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Test d'intégration Claude
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que l'intégration avec Claude CLI fonctionne correctement.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Vérifier que le service claude.ts est correctement implémenté
|
|
8
|
+
2. Tester la détection de Claude CLI:
|
|
9
|
+
```bash
|
|
10
|
+
which claude || echo "Claude CLI non installé"
|
|
11
|
+
```
|
|
12
|
+
3. Vérifier la gestion des erreurs si Claude absent
|
|
13
|
+
4. Tester l'appel à Claude via l'API /api/claude
|
|
14
|
+
5. Vérifier le format des prompts générés
|
|
15
|
+
6. Tester l'autocreate avec Claude
|
|
16
|
+
|
|
17
|
+
## Critères de validation
|
|
18
|
+
- [ ] Service claude.ts sans erreur de compilation
|
|
19
|
+
- [ ] Gestion gracieuse si Claude CLI absent
|
|
20
|
+
- [ ] API /api/claude répond correctement
|
|
21
|
+
- [ ] Prompts générés sont valides
|
|
22
|
+
- [ ] Timeouts configurés correctement
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CLI Smoke Test
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify all CLI commands work correctly after build.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Test basic commands:
|
|
8
|
+
```bash
|
|
9
|
+
node dist/index.js --version
|
|
10
|
+
node dist/index.js --help
|
|
11
|
+
```
|
|
12
|
+
2. Test each subcommand (help):
|
|
13
|
+
```bash
|
|
14
|
+
node dist/index.js init --help
|
|
15
|
+
node dist/index.js new --help
|
|
16
|
+
node dist/index.js list --help
|
|
17
|
+
node dist/index.js show --help
|
|
18
|
+
node dist/index.js move --help
|
|
19
|
+
node dist/index.js next --help
|
|
20
|
+
node dist/index.js serve --help
|
|
21
|
+
node dist/index.js stats --help
|
|
22
|
+
```
|
|
23
|
+
3. Verify Commander.js parses arguments correctly
|
|
24
|
+
4. Test in temporary directory: `init`, `new`, `list`
|
|
25
|
+
|
|
26
|
+
## Validation Criteria
|
|
27
|
+
- [ ] `--version` displays correct version (0.1.x)
|
|
28
|
+
- [ ] `--help` displays complete help
|
|
29
|
+
- [ ] All subcommands have their help
|
|
30
|
+
- [ ] `init` creates .autocode/ structure
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Test smoke CLI
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que toutes les commandes CLI fonctionnent correctement après le build.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Tester les commandes de base:
|
|
8
|
+
```bash
|
|
9
|
+
node dist/index.js --version
|
|
10
|
+
node dist/index.js --help
|
|
11
|
+
```
|
|
12
|
+
2. Tester chaque sous-commande (help):
|
|
13
|
+
```bash
|
|
14
|
+
node dist/index.js init --help
|
|
15
|
+
node dist/index.js new --help
|
|
16
|
+
node dist/index.js list --help
|
|
17
|
+
node dist/index.js show --help
|
|
18
|
+
node dist/index.js move --help
|
|
19
|
+
node dist/index.js next --help
|
|
20
|
+
node dist/index.js serve --help
|
|
21
|
+
node dist/index.js stats --help
|
|
22
|
+
```
|
|
23
|
+
3. Vérifier que Commander.js parse correctement les arguments
|
|
24
|
+
4. Tester dans un répertoire temporaire: `init`, `new`, `list`
|
|
25
|
+
|
|
26
|
+
## Critères de validation
|
|
27
|
+
- [ ] `--version` affiche la version correcte (0.1.x)
|
|
28
|
+
- [ ] `--help` affiche l'aide complète
|
|
29
|
+
- [ ] Toutes les sous-commandes ont leur aide
|
|
30
|
+
- [ ] `init` crée la structure .autocode/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Dashboard Responsive Test
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify dashboard displays correctly on all screens.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Start server: `node dist/index.js serve`
|
|
8
|
+
2. Test on different sizes:
|
|
9
|
+
- Mobile: 375x667 (iPhone)
|
|
10
|
+
- Tablet: 768x1024 (iPad)
|
|
11
|
+
- Desktop: 1920x1080
|
|
12
|
+
3. Check components:
|
|
13
|
+
- Scrollable Kanban board
|
|
14
|
+
- Adaptive ticket modals
|
|
15
|
+
- Responsive navigation menu
|
|
16
|
+
4. Use Playwright for screenshots:
|
|
17
|
+
```bash
|
|
18
|
+
npx playwright test screenshots.spec.ts
|
|
19
|
+
```
|
|
20
|
+
5. Check dark/light mode on each size
|
|
21
|
+
|
|
22
|
+
## Validation Criteria
|
|
23
|
+
- [ ] Dashboard usable on mobile
|
|
24
|
+
- [ ] Kanban columns horizontally scrollable
|
|
25
|
+
- [ ] Modals adapt to screen
|
|
26
|
+
- [ ] No cut content
|
|
27
|
+
- [ ] Playwright screenshot tests pass
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Test responsive du dashboard
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que le dashboard s'affiche correctement sur tous les écrans.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Démarrer le serveur: `node dist/index.js serve`
|
|
8
|
+
2. Tester sur différentes tailles:
|
|
9
|
+
- Mobile: 375x667 (iPhone)
|
|
10
|
+
- Tablet: 768x1024 (iPad)
|
|
11
|
+
- Desktop: 1920x1080
|
|
12
|
+
3. Vérifier les composants:
|
|
13
|
+
- Kanban board scrollable
|
|
14
|
+
- Modal tickets adaptatifs
|
|
15
|
+
- Menu navigation responsive
|
|
16
|
+
4. Utiliser Playwright pour screenshots:
|
|
17
|
+
```bash
|
|
18
|
+
npx playwright test screenshots.spec.ts
|
|
19
|
+
```
|
|
20
|
+
5. Vérifier le dark/light mode sur chaque taille
|
|
21
|
+
|
|
22
|
+
## Critères de validation
|
|
23
|
+
- [ ] Dashboard utilisable sur mobile
|
|
24
|
+
- [ ] Colonnes Kanban scrollables horizontalement
|
|
25
|
+
- [ ] Modals s'adaptent à l'écran
|
|
26
|
+
- [ ] Pas de contenu coupé
|
|
27
|
+
- [ ] Tests Playwright screenshots passent
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Dead Code Detection
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Identify and remove unused code in the project.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Install knip if missing: `npm install -D knip`
|
|
8
|
+
2. Run analysis: `npx knip`
|
|
9
|
+
3. Identify:
|
|
10
|
+
- Unused exports
|
|
11
|
+
- Orphan files
|
|
12
|
+
- Unused dependencies
|
|
13
|
+
- Unreferenced types
|
|
14
|
+
4. Analyze results by module:
|
|
15
|
+
- src/core/
|
|
16
|
+
- src/server/
|
|
17
|
+
- src/services/
|
|
18
|
+
- src/utils/
|
|
19
|
+
5. Remove or fix dead code
|
|
20
|
+
|
|
21
|
+
## Validation Criteria
|
|
22
|
+
- [ ] knip runs without errors
|
|
23
|
+
- [ ] Unused exports identified
|
|
24
|
+
- [ ] Orphan files removed
|
|
25
|
+
- [ ] No unjustified false positives
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Détection de code mort
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Identifier et supprimer le code non utilisé dans le projet.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Installer knip si absent: `npm install -D knip`
|
|
8
|
+
2. Exécuter l'analyse: `npx knip`
|
|
9
|
+
3. Identifier:
|
|
10
|
+
- Exports non utilisés
|
|
11
|
+
- Fichiers orphelins
|
|
12
|
+
- Dépendances non utilisées
|
|
13
|
+
- Types non référencés
|
|
14
|
+
4. Analyser les résultats par module:
|
|
15
|
+
- src/core/
|
|
16
|
+
- src/server/
|
|
17
|
+
- src/services/
|
|
18
|
+
- src/utils/
|
|
19
|
+
5. Supprimer ou corriger le code mort
|
|
20
|
+
|
|
21
|
+
## Critères de validation
|
|
22
|
+
- [ ] knip s'exécute sans erreur
|
|
23
|
+
- [ ] Exports non utilisés identifiés
|
|
24
|
+
- [ ] Fichiers orphelins supprimés
|
|
25
|
+
- [ ] Aucun false positive non justifié
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# License Check
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify all dependencies have compatible licenses.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Install license-checker: `npx license-checker`
|
|
8
|
+
2. List all licenses:
|
|
9
|
+
```bash
|
|
10
|
+
npx license-checker --summary
|
|
11
|
+
```
|
|
12
|
+
3. Identify licenses:
|
|
13
|
+
- Permissive (MIT, Apache-2.0, BSD) ✓
|
|
14
|
+
- Copyleft (GPL, LGPL) ⚠️
|
|
15
|
+
- Unknown ❌
|
|
16
|
+
4. Check compatibility with project license
|
|
17
|
+
5. Document exceptions if needed
|
|
18
|
+
|
|
19
|
+
## Validation Criteria
|
|
20
|
+
- [ ] All dependencies have identified license
|
|
21
|
+
- [ ] No incompatible licenses (strict GPL)
|
|
22
|
+
- [ ] LICENSE file present in package
|
|
23
|
+
- [ ] Required attributions documented
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Vérification des licences
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que toutes les dépendances ont des licences compatibles.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Installer license-checker: `npx license-checker`
|
|
8
|
+
2. Lister toutes les licences:
|
|
9
|
+
```bash
|
|
10
|
+
npx license-checker --summary
|
|
11
|
+
```
|
|
12
|
+
3. Identifier les licences:
|
|
13
|
+
- Permissives (MIT, Apache-2.0, BSD) ✓
|
|
14
|
+
- Copyleft (GPL, LGPL) ⚠️
|
|
15
|
+
- Inconnues ❌
|
|
16
|
+
4. Vérifier la compatibilité avec la licence du projet
|
|
17
|
+
5. Documenter les exceptions si nécessaire
|
|
18
|
+
|
|
19
|
+
## Critères de validation
|
|
20
|
+
- [ ] Toutes les dépendances ont une licence identifiée
|
|
21
|
+
- [ ] Pas de licence incompatible (GPL strict)
|
|
22
|
+
- [ ] Fichier LICENSE présent dans le package
|
|
23
|
+
- [ ] Attributions requises documentées
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Outdated Dependencies Check
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Identify dependencies that have newer versions available.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Run `npm outdated` to list updates
|
|
8
|
+
2. Analyze available updates:
|
|
9
|
+
- Current: installed version
|
|
10
|
+
- Wanted: semver compatible version
|
|
11
|
+
- Latest: latest version
|
|
12
|
+
3. For each outdated dependency, evaluate:
|
|
13
|
+
- Potential breaking changes
|
|
14
|
+
- Release notes
|
|
15
|
+
- Impact on project
|
|
16
|
+
4. Update with `npm update` or modify package.json
|
|
17
|
+
5. Test after update
|
|
18
|
+
|
|
19
|
+
## Validation Criteria
|
|
20
|
+
- [ ] `npm outdated` executed
|
|
21
|
+
- [ ] Critical dependencies up to date (typescript, vitest, playwright)
|
|
22
|
+
- [ ] No dependencies with known vulnerabilities
|
|
23
|
+
- [ ] Tests pass after update
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Vérification des dépendances obsolètes
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Identifier les dépendances qui ont des versions plus récentes disponibles.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Exécuter `npm outdated` pour lister les mises à jour
|
|
8
|
+
2. Analyser les mises à jour disponibles:
|
|
9
|
+
- Current: version installée
|
|
10
|
+
- Wanted: version compatible semver
|
|
11
|
+
- Latest: dernière version
|
|
12
|
+
3. Pour chaque dépendance obsolète, évaluer:
|
|
13
|
+
- Breaking changes potentiels
|
|
14
|
+
- Notes de version
|
|
15
|
+
- Impact sur le projet
|
|
16
|
+
4. Mettre à jour avec `npm update` ou modifier package.json
|
|
17
|
+
5. Tester après mise à jour
|
|
18
|
+
|
|
19
|
+
## Critères de validation
|
|
20
|
+
- [ ] `npm outdated` exécuté
|
|
21
|
+
- [ ] Dépendances critiques à jour (typescript, vitest, playwright)
|
|
22
|
+
- [ ] Aucune dépendance avec vulnérabilité connue
|
|
23
|
+
- [ ] Tests passent après mise à jour
|
|
@@ -13,8 +13,8 @@ Create technical and/or UX design for the feature. Prepare mockups, diagrams, or
|
|
|
13
13
|
5. Define state management approach if applicable
|
|
14
14
|
6. Document design decisions and trade-offs
|
|
15
15
|
7. If out of scope work detected:
|
|
16
|
-
- Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>"
|
|
17
|
-
- Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>"
|
|
16
|
+
- Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column ready`
|
|
17
|
+
- Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
|
|
18
18
|
- In scope: handle directly in current ticket
|
|
19
19
|
8. Document: `autocode comment <ticket-key> "Design complete: <summary>"`
|
|
20
20
|
9. Advance: `autocode next <ticket-key>`
|
|
@@ -13,8 +13,8 @@ Creer le design technique et/ou UX pour la fonctionnalite. Preparer les maquette
|
|
|
13
13
|
5. Definir l'approche de gestion d'etat si applicable
|
|
14
14
|
6. Documenter les decisions de design et compromis
|
|
15
15
|
7. Si travail hors scope detecte :
|
|
16
|
-
- Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>"
|
|
17
|
-
- Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>"
|
|
16
|
+
- Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column ready`
|
|
17
|
+
- Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column backlog`
|
|
18
18
|
- Dans le scope : traiter directement dans le ticket actuel
|
|
19
19
|
8. Documenter : `autocode comment <ticket-key> "Design termine : <resume>"`
|
|
20
20
|
9. Avancer : `autocode next <ticket-key>`
|
|
@@ -13,8 +13,8 @@ Implement the feature or fix according to specifications. Write clean, maintaina
|
|
|
13
13
|
5. Handle edge cases and errors gracefully
|
|
14
14
|
6. Test locally before proceeding
|
|
15
15
|
7. If out of scope work detected:
|
|
16
|
-
- Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>"
|
|
17
|
-
- Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>"
|
|
16
|
+
- Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column ready`
|
|
17
|
+
- Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
|
|
18
18
|
- In scope: handle directly in current ticket
|
|
19
19
|
8. Document: `autocode comment <ticket-key> "Development complete: <files modified>"`
|
|
20
20
|
9. Advance: `autocode next <ticket-key>`
|
|
@@ -13,8 +13,8 @@ Implementer la fonctionnalite ou le correctif selon les specifications. Ecrire d
|
|
|
13
13
|
5. Gerer les cas limites et erreurs elegamment
|
|
14
14
|
6. Tester localement avant de continuer
|
|
15
15
|
7. Si travail hors scope detecte :
|
|
16
|
-
- Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>"
|
|
17
|
-
- Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>"
|
|
16
|
+
- Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column ready`
|
|
17
|
+
- Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column backlog`
|
|
18
18
|
- Dans le scope : traiter directement dans le ticket actuel
|
|
19
19
|
8. Documenter : `autocode comment <ticket-key> "Developpement termine : <fichiers modifies>"`
|
|
20
20
|
9. Avancer : `autocode next <ticket-key>`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# README Validation
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify README.md is complete, up-to-date and well-structured.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Check essential sections:
|
|
8
|
+
- Installation (`npm install -g @autocode-cli/autocode`)
|
|
9
|
+
- Quick Start
|
|
10
|
+
- CLI commands list
|
|
11
|
+
- API documentation
|
|
12
|
+
- Configuration
|
|
13
|
+
2. Verify code examples work
|
|
14
|
+
3. Validate links (no broken links)
|
|
15
|
+
4. Check consistency with current version
|
|
16
|
+
5. Ensure new features are documented
|
|
17
|
+
|
|
18
|
+
## Validation Criteria
|
|
19
|
+
- [ ] All CLI commands documented
|
|
20
|
+
- [ ] Code examples up to date
|
|
21
|
+
- [ ] Links functional
|
|
22
|
+
- [ ] Mentioned version correct
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Validation README
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que le README.md est complet, à jour et bien structuré.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Vérifier les sections essentielles:
|
|
8
|
+
- Installation (`npm install -g @autocode-cli/autocode`)
|
|
9
|
+
- Quick Start
|
|
10
|
+
- Liste des commandes CLI
|
|
11
|
+
- Documentation API
|
|
12
|
+
- Configuration
|
|
13
|
+
2. Vérifier que les exemples de code fonctionnent
|
|
14
|
+
3. Valider les liens (pas de liens cassés)
|
|
15
|
+
4. Vérifier la cohérence avec la version actuelle
|
|
16
|
+
5. S'assurer que les nouvelles fonctionnalités sont documentées
|
|
17
|
+
|
|
18
|
+
## Critères de validation
|
|
19
|
+
- [ ] Toutes les commandes CLI documentées
|
|
20
|
+
- [ ] Exemples de code à jour
|
|
21
|
+
- [ ] Liens fonctionnels
|
|
22
|
+
- [ ] Version mentionnée correcte
|
|
@@ -9,8 +9,8 @@ Archive of completed and validated tickets. End of workflow.
|
|
|
9
9
|
1. Document: `autocode comment <ticket-key> "Ticket completed"`
|
|
10
10
|
|
|
11
11
|
> If problem discovered: `autocode move <ticket-key> <target-column-slug>` or create a new ticket:
|
|
12
|
-
> - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>"
|
|
13
|
-
> - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>"
|
|
12
|
+
> - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column ready`
|
|
13
|
+
> - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
|
|
14
14
|
|
|
15
15
|
## Validation Criteria
|
|
16
16
|
|
|
@@ -9,8 +9,8 @@ Archive des tickets termines et valides. Fin du workflow.
|
|
|
9
9
|
1. Documenter : `autocode comment <ticket-key> "Ticket termine"`
|
|
10
10
|
|
|
11
11
|
> Si probleme decouvert : `autocode move <ticket-key> <target-column-slug>` ou creer un nouveau ticket :
|
|
12
|
-
> - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>"
|
|
13
|
-
> - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>"
|
|
12
|
+
> - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column ready`
|
|
13
|
+
> - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column backlog`
|
|
14
14
|
|
|
15
15
|
## Criteres de Validation
|
|
16
16
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Error Handling Review
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify errors are correctly handled throughout the code.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Analyze critical files:
|
|
8
|
+
- src/server/api.ts (REST endpoints)
|
|
9
|
+
- src/core/ticket.ts (file operations)
|
|
10
|
+
- src/services/claude.ts (external calls)
|
|
11
|
+
2. Check patterns:
|
|
12
|
+
- try/catch around I/O
|
|
13
|
+
- Appropriate HTTP codes (400, 404, 500)
|
|
14
|
+
- Explicit error messages
|
|
15
|
+
3. Verify error logging
|
|
16
|
+
4. Test error cases via API
|
|
17
|
+
5. Check async/await errors
|
|
18
|
+
|
|
19
|
+
## Validation Criteria
|
|
20
|
+
- [ ] File operations in try/catch
|
|
21
|
+
- [ ] Correct HTTP codes for each error
|
|
22
|
+
- [ ] Clear error messages for user
|
|
23
|
+
- [ ] Errors logged for debug
|
|
24
|
+
- [ ] No unhandled crashes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Revue de la gestion des erreurs
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que les erreurs sont correctement gérées dans tout le code.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Analyser les fichiers critiques:
|
|
8
|
+
- src/server/api.ts (endpoints REST)
|
|
9
|
+
- src/core/ticket.ts (opérations fichiers)
|
|
10
|
+
- src/services/claude.ts (appels externes)
|
|
11
|
+
2. Vérifier les patterns:
|
|
12
|
+
- try/catch autour des I/O
|
|
13
|
+
- Codes HTTP appropriés (400, 404, 500)
|
|
14
|
+
- Messages d'erreur explicites
|
|
15
|
+
3. Vérifier le logging des erreurs
|
|
16
|
+
4. Tester les cas d'erreur via l'API
|
|
17
|
+
5. Vérifier les erreurs async/await
|
|
18
|
+
|
|
19
|
+
## Critères de validation
|
|
20
|
+
- [ ] Opérations fichiers dans try/catch
|
|
21
|
+
- [ ] Codes HTTP corrects pour chaque erreur
|
|
22
|
+
- [ ] Messages d'erreur clairs pour l'utilisateur
|
|
23
|
+
- [ ] Erreurs loggées pour debug
|
|
24
|
+
- [ ] Pas de crash non géré
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ESM Compatibility
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify project is correctly configured as ES module.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Check package.json:
|
|
8
|
+
- `"type": "module"` present
|
|
9
|
+
- `"module"` or `"exports"` configured
|
|
10
|
+
2. Check tsconfig.json:
|
|
11
|
+
- `"module": "NodeNext"`
|
|
12
|
+
- `"moduleResolution": "NodeNext"`
|
|
13
|
+
3. Check imports:
|
|
14
|
+
- .js extension in imports
|
|
15
|
+
- No `require()` in code
|
|
16
|
+
4. Test compiled package import
|
|
17
|
+
5. Verify dependency compatibility
|
|
18
|
+
|
|
19
|
+
## Validation Criteria
|
|
20
|
+
- [ ] `"type": "module"` in package.json
|
|
21
|
+
- [ ] Imports with .js extensions
|
|
22
|
+
- [ ] No require() in src/
|
|
23
|
+
- [ ] Package import works
|
|
24
|
+
- [ ] ESM compatible dependencies
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Compatibilité ESM
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que le projet est correctement configuré comme module ES.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Vérifier package.json:
|
|
8
|
+
- `"type": "module"` présent
|
|
9
|
+
- `"module"` ou `"exports"` configuré
|
|
10
|
+
2. Vérifier tsconfig.json:
|
|
11
|
+
- `"module": "NodeNext"`
|
|
12
|
+
- `"moduleResolution": "NodeNext"`
|
|
13
|
+
3. Vérifier les imports:
|
|
14
|
+
- Extension .js dans les imports
|
|
15
|
+
- Pas de `require()` dans le code
|
|
16
|
+
4. Tester l'import du package compilé
|
|
17
|
+
5. Vérifier la compatibilité avec les dépendances
|
|
18
|
+
|
|
19
|
+
## Critères de validation
|
|
20
|
+
- [ ] `"type": "module"` dans package.json
|
|
21
|
+
- [ ] Imports avec extensions .js
|
|
22
|
+
- [ ] Pas de require() dans src/
|
|
23
|
+
- [ ] Import du package fonctionne
|
|
24
|
+
- [ ] Dépendances ESM compatibles
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# File Watcher Test
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify file monitoring system works correctly.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Start server with watcher: `node dist/index.js serve`
|
|
8
|
+
2. Create a new ticket file in .autocode/tickets/
|
|
9
|
+
3. Verify dashboard detects the change
|
|
10
|
+
4. Modify an existing ticket
|
|
11
|
+
5. Verify real-time update via WebSocket
|
|
12
|
+
6. Delete a ticket
|
|
13
|
+
7. Test with many files (performance)
|
|
14
|
+
|
|
15
|
+
## Validation Criteria
|
|
16
|
+
- [ ] File creation detected (<1s)
|
|
17
|
+
- [ ] Modification detected and propagated
|
|
18
|
+
- [ ] Deletion detected
|
|
19
|
+
- [ ] No memory leak on prolonged watch
|
|
20
|
+
- [ ] Acceptable performance with 100+ tickets
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Test du file watcher
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que le système de surveillance des fichiers fonctionne correctement.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Démarrer le serveur avec watcher: `node dist/index.js serve`
|
|
8
|
+
2. Créer un nouveau fichier ticket dans .autocode/tickets/
|
|
9
|
+
3. Vérifier que le dashboard détecte le changement
|
|
10
|
+
4. Modifier un ticket existant
|
|
11
|
+
5. Vérifier la mise à jour en temps réel via WebSocket
|
|
12
|
+
6. Supprimer un ticket
|
|
13
|
+
7. Tester avec de nombreux fichiers (performance)
|
|
14
|
+
|
|
15
|
+
## Critères de validation
|
|
16
|
+
- [ ] Création de fichier détectée (<1s)
|
|
17
|
+
- [ ] Modification détectée et propagée
|
|
18
|
+
- [ ] Suppression détectée
|
|
19
|
+
- [ ] Pas de fuite mémoire sur watch prolongé
|
|
20
|
+
- [ ] Performance acceptable avec 100+ tickets
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Prettier Setup
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Set up automatic code formatting with Prettier to ensure consistency.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Check if Prettier is installed (`npm ls prettier`)
|
|
8
|
+
2. If missing, install Prettier:
|
|
9
|
+
```bash
|
|
10
|
+
npm install -D prettier
|
|
11
|
+
```
|
|
12
|
+
3. Create .prettierrc configuration file
|
|
13
|
+
4. Create .prettierignore to exclude dist/, node_modules/
|
|
14
|
+
5. Run `npx prettier --check src/` to verify
|
|
15
|
+
6. Format with `npx prettier --write src/` if needed
|
|
16
|
+
|
|
17
|
+
## Validation Criteria
|
|
18
|
+
- [ ] Prettier is installed
|
|
19
|
+
- [ ] .prettierrc exists with consistent configuration
|
|
20
|
+
- [ ] `npx prettier --check src/` passes without errors
|
|
21
|
+
- [ ] dist/ and node_modules/ are ignored
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Configuration Prettier
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Mettre en place le formatage automatique du code avec Prettier pour assurer la cohérence.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Vérifier si Prettier est installé (`npm ls prettier`)
|
|
8
|
+
2. Si absent, installer Prettier:
|
|
9
|
+
```bash
|
|
10
|
+
npm install -D prettier
|
|
11
|
+
```
|
|
12
|
+
3. Créer le fichier .prettierrc avec la configuration
|
|
13
|
+
4. Créer .prettierignore pour exclure dist/, node_modules/
|
|
14
|
+
5. Exécuter `npx prettier --check src/` pour vérifier
|
|
15
|
+
6. Formater avec `npx prettier --write src/` si nécessaire
|
|
16
|
+
|
|
17
|
+
## Critères de validation
|
|
18
|
+
- [ ] Prettier est installé
|
|
19
|
+
- [ ] .prettierrc existe avec configuration cohérente
|
|
20
|
+
- [ ] `npx prettier --check src/` passe sans erreur
|
|
21
|
+
- [ ] dist/ et node_modules/ sont ignorés
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Conventional Commits Validation
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
Verify commits follow Conventional Commits convention.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Analyze recent commits: `git log --oneline -20`
|
|
8
|
+
2. Check format: `type(scope): description`
|
|
9
|
+
3. Valid types: feat, fix, docs, style, refactor, test, chore, perf, ci, build, release
|
|
10
|
+
4. Project examples:
|
|
11
|
+
- `fix(landing): update messaging`
|
|
12
|
+
- `release: v0.1.13`
|
|
13
|
+
- `feat(pipeline): add pipeline analysis`
|
|
14
|
+
5. Install commitlint if missing to automate
|
|
15
|
+
6. Configure husky for pre-commit hook
|
|
16
|
+
|
|
17
|
+
## Validation Criteria
|
|
18
|
+
- [ ] Recent commits follow format
|
|
19
|
+
- [ ] Types used are valid
|
|
20
|
+
- [ ] Descriptions are clear and concise
|
|
21
|
+
- [ ] Scope optional but consistent
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Validation des commits conventionnels
|
|
2
|
+
|
|
3
|
+
## Rôle
|
|
4
|
+
Vérifier que les commits suivent la convention Conventional Commits.
|
|
5
|
+
|
|
6
|
+
## Actions
|
|
7
|
+
1. Analyser les derniers commits: `git log --oneline -20`
|
|
8
|
+
2. Vérifier le format: `type(scope): description`
|
|
9
|
+
3. Types valides: feat, fix, docs, style, refactor, test, chore, perf, ci, build, release
|
|
10
|
+
4. Exemples du projet:
|
|
11
|
+
- `fix(landing): update messaging`
|
|
12
|
+
- `release: v0.1.13`
|
|
13
|
+
- `feat(pipeline): add pipeline analysis`
|
|
14
|
+
5. Installer commitlint si absent pour automatiser
|
|
15
|
+
6. Configurer husky pour pre-commit hook
|
|
16
|
+
|
|
17
|
+
## Critères de validation
|
|
18
|
+
- [ ] Derniers commits suivent le format
|
|
19
|
+
- [ ] Types utilisés sont valides
|
|
20
|
+
- [ ] Descriptions sont claires et concises
|
|
21
|
+
- [ ] Scope optionnel mais cohérent
|