@autocode-cli/autocode 0.1.10 → 0.1.12

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.
Files changed (118) hide show
  1. package/README.md +7 -6
  2. package/dist/cli/commands/comment.js +1 -1
  3. package/dist/cli/commands/comment.js.map +1 -1
  4. package/dist/cli/commands/init.js +1 -1
  5. package/dist/cli/commands/init.js.map +1 -1
  6. package/dist/cli/commands/list.js +1 -1
  7. package/dist/cli/commands/list.js.map +1 -1
  8. package/dist/cli/commands/move.js +2 -2
  9. package/dist/cli/commands/move.js.map +1 -1
  10. package/dist/cli/commands/new.js +1 -1
  11. package/dist/cli/commands/new.js.map +1 -1
  12. package/dist/cli/commands/next.js +1 -1
  13. package/dist/cli/commands/next.js.map +1 -1
  14. package/dist/cli/commands/serve.js +1 -1
  15. package/dist/cli/commands/serve.js.map +1 -1
  16. package/dist/cli/commands/show.js +1 -1
  17. package/dist/cli/commands/show.js.map +1 -1
  18. package/dist/cli/commands/stats.d.ts +9 -0
  19. package/dist/cli/commands/stats.d.ts.map +1 -0
  20. package/dist/cli/commands/stats.js +108 -0
  21. package/dist/cli/commands/stats.js.map +1 -0
  22. package/dist/cli/parser.d.ts.map +1 -1
  23. package/dist/cli/parser.js +2 -0
  24. package/dist/cli/parser.js.map +1 -1
  25. package/dist/server/api.d.ts.map +1 -1
  26. package/dist/server/api.js +28 -16
  27. package/dist/server/api.js.map +1 -1
  28. package/dist/server/dashboard/pages/index.d.ts +1 -0
  29. package/dist/server/dashboard/pages/index.d.ts.map +1 -1
  30. package/dist/server/dashboard/pages/index.js +1 -0
  31. package/dist/server/dashboard/pages/index.js.map +1 -1
  32. package/dist/server/dashboard/pages/stats-page.d.ts +8 -0
  33. package/dist/server/dashboard/pages/stats-page.d.ts.map +1 -0
  34. package/dist/server/dashboard/pages/stats-page.js +624 -0
  35. package/dist/server/dashboard/pages/stats-page.js.map +1 -0
  36. package/dist/server/dashboard/scripts/index.d.ts.map +1 -1
  37. package/dist/server/dashboard/scripts/index.js +30 -1
  38. package/dist/server/dashboard/scripts/index.js.map +1 -1
  39. package/dist/server/dashboard/styles/base.d.ts.map +1 -1
  40. package/dist/server/dashboard/styles/base.js +9 -0
  41. package/dist/server/dashboard/styles/base.js.map +1 -1
  42. package/dist/server/dashboard.d.ts +1 -1
  43. package/dist/server/dashboard.d.ts.map +1 -1
  44. package/dist/server/dashboard.js +1 -1
  45. package/dist/server/dashboard.js.map +1 -1
  46. package/dist/server/index.d.ts.map +1 -1
  47. package/dist/server/index.js +8 -1
  48. package/dist/server/index.js.map +1 -1
  49. package/dist/services/claude.d.ts +9 -0
  50. package/dist/services/claude.d.ts.map +1 -1
  51. package/dist/services/claude.js +105 -2
  52. package/dist/services/claude.js.map +1 -1
  53. package/dist/services/stats.d.ts +58 -0
  54. package/dist/services/stats.d.ts.map +1 -0
  55. package/dist/services/stats.js +196 -0
  56. package/dist/services/stats.js.map +1 -0
  57. package/dist/utils/fs.js +1 -1
  58. package/dist/utils/fs.js.map +1 -1
  59. package/package.json +1 -1
  60. package/templates/catalog.yaml +1 -1
  61. package/templates/prompts/backlog.en.md +3 -3
  62. package/templates/prompts/backlog.fr.md +3 -3
  63. package/templates/prompts/changelog.en.md +4 -9
  64. package/templates/prompts/changelog.fr.md +4 -9
  65. package/templates/prompts/deploy-prod.en.md +4 -8
  66. package/templates/prompts/deploy-prod.fr.md +4 -8
  67. package/templates/prompts/deploy-staging.en.md +5 -9
  68. package/templates/prompts/deploy-staging.fr.md +5 -9
  69. package/templates/prompts/design.en.md +3 -3
  70. package/templates/prompts/design.fr.md +3 -3
  71. package/templates/prompts/dev.en.md +5 -6
  72. package/templates/prompts/dev.fr.md +5 -6
  73. package/templates/prompts/done.en.md +2 -2
  74. package/templates/prompts/done.fr.md +2 -2
  75. package/templates/prompts/git-commit.en.md +5 -7
  76. package/templates/prompts/git-commit.fr.md +5 -7
  77. package/templates/prompts/git-push.en.md +4 -8
  78. package/templates/prompts/git-push.fr.md +4 -8
  79. package/templates/prompts/git-tag.en.md +4 -8
  80. package/templates/prompts/git-tag.fr.md +4 -8
  81. package/templates/prompts/in-progress.en.md +4 -6
  82. package/templates/prompts/in-progress.fr.md +4 -6
  83. package/templates/prompts/qualification.en.md +3 -3
  84. package/templates/prompts/qualification.fr.md +3 -3
  85. package/templates/prompts/ready.en.md +4 -6
  86. package/templates/prompts/ready.fr.md +4 -6
  87. package/templates/prompts/retest-cypress.en.md +4 -5
  88. package/templates/prompts/retest-cypress.fr.md +4 -5
  89. package/templates/prompts/retest-playwright.en.md +3 -3
  90. package/templates/prompts/retest-playwright.fr.md +3 -3
  91. package/templates/prompts/retest.en.md +3 -3
  92. package/templates/prompts/retest.fr.md +3 -3
  93. package/templates/prompts/review-best-practices.en.md +4 -5
  94. package/templates/prompts/review-best-practices.fr.md +4 -5
  95. package/templates/prompts/review-code.en.md +3 -3
  96. package/templates/prompts/review-code.fr.md +3 -3
  97. package/templates/prompts/review-consistency.en.md +4 -5
  98. package/templates/prompts/review-consistency.fr.md +4 -5
  99. package/templates/prompts/review-no-duplication.en.md +4 -5
  100. package/templates/prompts/review-no-duplication.fr.md +4 -5
  101. package/templates/prompts/review-security.en.md +4 -5
  102. package/templates/prompts/review-security.fr.md +4 -5
  103. package/templates/prompts/specification.en.md +3 -3
  104. package/templates/prompts/specification.fr.md +3 -3
  105. package/templates/prompts/splitter.en.md +12 -4
  106. package/templates/prompts/splitter.fr.md +12 -5
  107. package/templates/prompts/testing-cypress.en.md +4 -5
  108. package/templates/prompts/testing-cypress.fr.md +4 -5
  109. package/templates/prompts/testing-integration.en.md +4 -5
  110. package/templates/prompts/testing-integration.fr.md +4 -5
  111. package/templates/prompts/testing-playwright.en.md +3 -3
  112. package/templates/prompts/testing-playwright.fr.md +3 -3
  113. package/templates/prompts/testing-unit.en.md +4 -5
  114. package/templates/prompts/testing-unit.fr.md +4 -5
  115. package/templates/prompts/update-docs.en.md +4 -5
  116. package/templates/prompts/update-docs.fr.md +4 -5
  117. package/templates/prompts/validate-staging.en.md +9 -14
  118. package/templates/prompts/validate-staging.fr.md +9 -14
@@ -12,15 +12,14 @@ Rediger ET executer des tests E2E automatises pour prevenir les regressions.
12
12
  4. Decrire les tests clairement (describe/it)
13
13
  5. Executer les tests : npx cypress run
14
14
  6. Si echecs : corriger les tests ou le code
15
- 7. Commit + push des tests
16
- 8. Si travail hors scope detecte :
15
+ 7. Si travail hors scope detecte :
17
16
  - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
18
17
  - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
19
18
  - Dans le scope : traiter directement dans le ticket actuel
20
- 9. Documenter : `autocode comment <key> "Tests Cypress OK"`
21
- 10. Avancer : `autocode next <key>`
19
+ 8. Documenter : `autocode comment <ticket-key> "Tests Cypress OK"`
20
+ 9. Avancer : `autocode next <ticket-key>`
22
21
 
23
- > Ou retour : `autocode move <key> <targetColumn>`
22
+ > Ou retour : `autocode move <ticket-key> <target-column-slug>`
24
23
 
25
24
  ## Criteres de Validation
26
25
 
@@ -13,15 +13,14 @@ Run integration tests to verify components work correctly together. Ensure syste
13
13
  5. Test database operations
14
14
  6. Test external service connections
15
15
  7. Fix any failing tests
16
- 8. Commit + push test files
17
- 9. If out of scope work detected:
16
+ 8. If out of scope work detected:
18
17
  - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
19
18
  - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
20
19
  - In scope: handle directly in current ticket
21
- 10. Document: `autocode comment <key> "Integration tests passed"`
22
- 11. Advance: `autocode next <key>`
20
+ 9. Document: `autocode comment <ticket-key> "Integration tests passed"`
21
+ 10. Advance: `autocode next <ticket-key>`
23
22
 
24
- > Or return: `autocode move <key> <targetColumn>`
23
+ > Or return: `autocode move <ticket-key> <target-column-slug>`
25
24
 
26
25
  ## Validation Criteria
27
26
 
@@ -13,15 +13,14 @@ Executer les tests d'integration pour verifier que les composants fonctionnent c
13
13
  5. Tester les operations base de donnees
14
14
  6. Tester les connexions aux services externes
15
15
  7. Corriger les tests en echec
16
- 8. Commit + push des fichiers de test
17
- 9. Si travail hors scope detecte :
16
+ 8. Si travail hors scope detecte :
18
17
  - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
19
18
  - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
20
19
  - Dans le scope : traiter directement dans le ticket actuel
21
- 10. Documenter : `autocode comment <key> "Tests d'integration OK"`
22
- 11. Avancer : `autocode next <key>`
20
+ 9. Documenter : `autocode comment <ticket-key> "Tests d'integration OK"`
21
+ 10. Avancer : `autocode next <ticket-key>`
23
22
 
24
- > Ou retour : `autocode move <key> <targetColumn>`
23
+ > Ou retour : `autocode move <ticket-key> <target-column-slug>`
25
24
 
26
25
  ## Criteres de Validation
27
26
 
@@ -16,10 +16,10 @@ Live functional testing with Playwright. Manually verify feature works by naviga
16
16
  - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
17
17
  - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
18
18
  - In scope: handle directly in current ticket
19
- 8. Document: `autocode comment <key> "Playwright tests OK"`
20
- 9. Advance: `autocode next <key>`
19
+ 8. Document: `autocode comment <ticket-key> "Playwright tests OK"`
20
+ 9. Advance: `autocode next <ticket-key>`
21
21
 
22
- > Or return: `autocode move <key> <targetColumn>`
22
+ > Or return: `autocode move <ticket-key> <target-column-slug>`
23
23
 
24
24
  ## Validation Criteria
25
25
 
@@ -16,10 +16,10 @@ Test fonctionnel live avec Playwright. Verifier manuellement que la feature fonc
16
16
  - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
17
17
  - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
18
18
  - Dans le scope : traiter directement dans le ticket actuel
19
- 8. Documenter : `autocode comment <key> "Tests Playwright OK"`
20
- 9. Avancer : `autocode next <key>`
19
+ 8. Documenter : `autocode comment <ticket-key> "Tests Playwright OK"`
20
+ 9. Avancer : `autocode next <ticket-key>`
21
21
 
22
- > Ou retour : `autocode move <key> <targetColumn>`
22
+ > Ou retour : `autocode move <ticket-key> <target-column-slug>`
23
23
 
24
24
  ## Criteres de Validation
25
25
 
@@ -13,15 +13,14 @@ Write and run unit tests for the implemented feature. Ensure code coverage and r
13
13
  5. Run all unit tests: `npm test` or equivalent
14
14
  6. Fix any failing tests
15
15
  7. Verify coverage meets project standards
16
- 8. Commit + push test files
17
- 9. If out of scope work detected:
16
+ 8. If out of scope work detected:
18
17
  - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
19
18
  - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
20
19
  - In scope: handle directly in current ticket
21
- 10. Document: `autocode comment <key> "Unit tests passed: <coverage>%"`
22
- 11. Advance: `autocode next <key>`
20
+ 9. Document: `autocode comment <ticket-key> "Unit tests passed: <coverage>%"`
21
+ 10. Advance: `autocode next <ticket-key>`
23
22
 
24
- > Or return: `autocode move <key> <targetColumn>`
23
+ > Or return: `autocode move <ticket-key> <target-column-slug>`
25
24
 
26
25
  ## Validation Criteria
27
26
 
@@ -13,15 +13,14 @@ Ecrire et executer les tests unitaires pour la fonctionnalite implementee. Assur
13
13
  5. Executer tous les tests unitaires : `npm test` ou equivalent
14
14
  6. Corriger les tests en echec
15
15
  7. Verifier que la couverture respecte les standards du projet
16
- 8. Commit + push des fichiers de test
17
- 9. Si travail hors scope detecte :
16
+ 8. Si travail hors scope detecte :
18
17
  - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
19
18
  - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
20
19
  - Dans le scope : traiter directement dans le ticket actuel
21
- 10. Documenter : `autocode comment <key> "Tests unitaires OK : <couverture>%"`
22
- 11. Avancer : `autocode next <key>`
20
+ 9. Documenter : `autocode comment <ticket-key> "Tests unitaires OK : <couverture>%"`
21
+ 10. Avancer : `autocode next <ticket-key>`
23
22
 
24
- > Ou retour : `autocode move <key> <targetColumn>`
23
+ > Ou retour : `autocode move <ticket-key> <target-column-slug>`
25
24
 
26
25
  ## Criteres de Validation
27
26
 
@@ -11,15 +11,14 @@ Document changes for future developers and users.
11
11
  3. Document new features
12
12
  4. Update existing guides if impacted
13
13
  5. Verify doc consistency
14
- 6. Commit + push
15
- 7. If out of scope work detected:
14
+ 6. If out of scope work detected:
16
15
  - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
17
16
  - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
18
17
  - In scope: handle directly in current ticket
19
- 8. Document: `autocode comment <key> "Documentation updated"`
20
- 9. Advance: `autocode next <key>`
18
+ 7. Document: `autocode comment <ticket-key> "Documentation updated"`
19
+ 8. Advance: `autocode next <ticket-key>`
21
20
 
22
- > Or return: `autocode move <key> <targetColumn>`
21
+ > Or return: `autocode move <ticket-key> <target-column-slug>`
23
22
 
24
23
  ## Validation Criteria
25
24
 
@@ -11,15 +11,14 @@ Documenter les changements pour les futurs developpeurs et utilisateurs.
11
11
  3. Documenter les nouvelles features
12
12
  4. Mettre a jour les guides existants si impactes
13
13
  5. Verifier la coherence de la doc
14
- 6. Commit + push
15
- 7. Si travail hors scope detecte :
14
+ 6. Si travail hors scope detecte :
16
15
  - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
17
16
  - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
18
17
  - Dans le scope : traiter directement dans le ticket actuel
19
- 8. Documenter : `autocode comment <key> "Documentation mise a jour"`
20
- 9. Avancer : `autocode next <key>`
18
+ 7. Documenter : `autocode comment <ticket-key> "Documentation mise a jour"`
19
+ 8. Avancer : `autocode next <ticket-key>`
21
20
 
22
- > Ou retour : `autocode move <key> <targetColumn>`
21
+ > Ou retour : `autocode move <ticket-key> <target-column-slug>`
23
22
 
24
23
  ## Criteres de Validation
25
24
 
@@ -7,20 +7,15 @@ Final validation: verify everything works in staging AND git repo is clean.
7
7
  ## Actions
8
8
 
9
9
  1. Execute git status - must be clean
10
- 2. If uncommitted files: commit and push
11
- 3. Navigate to staging environment
12
- 4. Test developed feature
13
- 5. Verify visually everything is OK
14
- 6. Capture proof (screenshot)
15
- 7. Confirm feature works
16
- 8. If out of scope work detected:
17
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
18
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
19
- - In scope: handle directly in current ticket
20
- 9. Document: `autocode comment <key> "Staging validation OK"`
21
- 10. Advance: `autocode next <key>`
22
-
23
- > Or return: `autocode move <key> <targetColumn>`
10
+ 2. Navigate to staging environment
11
+ 3. Test developed feature
12
+ 4. Verify visually everything is OK
13
+ 5. Capture proof (screenshot)
14
+ 6. Confirm feature works
15
+ 7. Document: `autocode comment <ticket-key> "Staging validation OK"`
16
+ 8. Advance: `autocode next <ticket-key>`
17
+
18
+ > Or return: `autocode move <ticket-key> <target-column-slug>`
24
19
 
25
20
  ## Validation Criteria
26
21
 
@@ -7,20 +7,15 @@ Validation finale : verifier que tout fonctionne en staging ET que le repo git e
7
7
  ## Actions
8
8
 
9
9
  1. Executer git status - doit etre propre
10
- 2. Si fichiers non commites : commit et push
11
- 3. Naviguer vers l'environnement staging
12
- 4. Tester la feature developpee
13
- 5. Verifier visuellement que tout est OK
14
- 6. Capturer une preuve (screenshot)
15
- 7. Confirmer que la feature fonctionne
16
- 8. Si travail hors scope detecte :
17
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
18
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
19
- - Dans le scope : traiter directement dans le ticket actuel
20
- 9. Documenter : `autocode comment <key> "Validation staging OK"`
21
- 10. Avancer : `autocode next <key>`
22
-
23
- > Ou retour : `autocode move <key> <targetColumn>`
10
+ 2. Naviguer vers l'environnement staging
11
+ 3. Tester la feature developpee
12
+ 4. Verifier visuellement que tout est OK
13
+ 5. Capturer une preuve (screenshot)
14
+ 6. Confirmer que la feature fonctionne
15
+ 7. Documenter : `autocode comment <ticket-key> "Validation staging OK"`
16
+ 8. Avancer : `autocode next <ticket-key>`
17
+
18
+ > Ou retour : `autocode move <ticket-key> <target-column-slug>`
24
19
 
25
20
  ## Criteres de Validation
26
21